re PR ada/37139 (DEP prevents using Ada tasking)
[gcc.git] / gcc / ChangeLog
1 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
2
3 PR ada/37139
4 PR ada/67205
5 * common.opt (-ftrampolines): New option.
6 * doc/invoke.texi (Code Gen Options): Document it.
7 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
8 * doc/tm.texi: Regenerate.
9 * builtins.def: Add init_descriptor and adjust_descriptor.
10 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
11 on platforms with descriptors.
12 (expand_builtin_init_descriptor): New function.
13 (expand_builtin_adjust_descriptor): Likewise.
14 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
15 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
16 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
17 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
18 Set STATIC_CHAIN_REG_P on the static chain register, if any.
19 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
20 (expand_call): Likewise. Move around call to prepare_call_address
21 and pass all flags to it.
22 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
23 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
24 (gimple_call_set_by_descriptor): New setter.
25 (gimple_call_by_descriptor_p): New getter.
26 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
27 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
28 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
29 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
30 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
31 * rtl.h (STATIC_CHAIN_REG_P): New macro.
32 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
33 * target.def (custom_function_descriptors): New POD hook.
34 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
35 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
36 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
37 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
38 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
39 (build_common_builtin_nodes): Initialize init_descriptor and
40 adjust_descriptor.
41 * tree-nested.c: Include target.h.
42 (struct nesting_info): Add 'any_descr_created' field.
43 (get_descriptor_type): New function.
44 (lookup_element_for_decl): New function extracted from...
45 (create_field_for_decl): Likewise.
46 (lookup_tramp_for_decl): ...here. Adjust.
47 (lookup_descr_for_decl): New function.
48 (convert_tramp_reference_op): Deal with descriptors.
49 (build_init_call_stmt): New function extracted from...
50 (finalize_nesting_tree_1): ...here. Adjust and deal withdescriptors.
51 * defaults.h (FUNCTION_ALIGNMENT): Define.
52 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
53 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
54 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
55 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
56 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
57
58 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
59
60 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
61 constants in CONST_VECTORs.
62
63 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
64
65 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
66 register as destination of bmask.
67 (vector_init_bshuffle): Likewise.
68 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
69 (bmaskdi_vis): Enable only in 64-bit mode.
70
71 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
72
73 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
74 make LR a separately shrink-wrapped component unless savres_strategy
75 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
76 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
77 wrapping when not both {SAVE,REST}_INLINE_GPRS.
78
79 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
80
81 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
82 and keep looping on failure.
83
84 2016-10-14 David Malcolm <dmalcolm@redhat.com>
85
86 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
87 set.
88 (print_rtx_function): Update example in comment for...
89 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
90 non-virtual pseudos with a '%' sigil followed by the regno, offset
91 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
92 pseudo is dumped as "%0".
93
94 2016-10-14 Jakub Jelinek <jakub@redhat.com>
95
96 PR middle-end/77959
97 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
98 return a MEM.
99
100 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
101
102 * config/sparc/sparc-passes.def: New file.
103 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
104 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
105 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
106
107 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
108
109 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
110 loop peel to loops with exit test at the beginning.
111
112 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
113
114 PR rtl-optimization/68212
115 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
116 frequency when computing scale factor for peeled copies.
117 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
118 values for switch/peel blocks/edges.
119
120 2016-10-14 Pedro Alves <palves@redhat.com>
121
122 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
123
124 2016-10-14 Catherine Moore <clm@codesourcery.com>
125
126 * gcc/config/mips/mips.c (mips_prepare_pch_save): Initialize
127 micromips_globals to zero.
128
129 2016-10-14 Richard Biener <rguenther@suse.de>
130
131 PR tree-optimization/77979
132 * tree-vrp.c (compare_name_with_value): Handle released SSA names
133 in the equivalency sets.
134 (compare_names): Likewise.
135
136 2016-10-14 Martin Liska <mliska@suse.cz>
137
138 * builtins.h(target_char_cst_p): Declare the function.
139 * builtins.c (fold_builtin_memchr): Remove.
140 (target_char_cst_p): Move the function from gimple-fold.c.
141 (fold_builtin_3): Do not call the function.
142 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
143 (gimple_fold_builtin): Call the function.
144 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
145
146 2016-10-14 Martin Liska <mliska@suse.cz>
147
148 * builtins.c (fold_builtin_strcmp): Remove function.
149 (fold_builtin_strncmp): Likewise.
150 (fold_builtin_2): Remove call of the function.
151 (fold_builtin_3): Likewise.
152 * fold-const-call.c (fold_const_call): Add constant folding
153 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
154 * fold-const-call.h (build_cmp_result): Declare the function.
155 * gimple-fold.c (gimple_load_first_char): New function.
156 (gimple_fold_builtin_string_compare): Likewise.
157 (gimple_fold_builtin): Call the function.
158
159 2016-10-14 Nathan Sidwell <nathan@acm.org>
160
161 * gcov-io.c (gcov_open): Deconstify 'mode'.
162
163 2016-10-14 Martin Liska <mliska@suse.cz>
164
165 * fold-const.c (c_getstr): Support of properly \0-terminated
166 string constants. New argument is added.
167 * fold-const.h: New argument is added.
168
169 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
170
171 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
172 New function.
173 (aarch64_print_hint_for_core): Likewise.
174 (aarch64_print_hint_for_arch): Likewise.
175 (aarch64_validate_march): Use it. Fix indentation in type signature.
176 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
177 (aarch64_validate_mtune): Likewise.
178 (aarch64_handle_attr_arch): Likewise.
179 (aarch64_handle_attr_cpu): Likewise.
180 (aarch64_handle_attr_tune): Likewise.
181
182 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
183
184 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
185 and udivmod_optab.
186
187 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
188
189 * config/m68k/m68k.c (m68k_option_override): Check
190 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
191 instead of stack_limit_rtx.
192
193 2016-10-13 Jakub Jelinek <jakub@redhat.com>
194
195 * dwarf2out.c (gen_member_die): Handle inline static data member
196 definitions.
197
198 2016-10-13 Nathan Sidwell <nathan@acm.org>
199
200 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
201 gcov_var.mode. Remove unnecessary fstat.
202
203 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
204
205 PR bootstrap/77962
206 * function.c (thread_prologue_and_epilogue_insns): Call all
207 make_*logue_seq in the same order as traditional. Call them
208 all a second time if shrink_wrapped_separate.
209
210 2016-10-13 Marek Polacek <polacek@redhat.com>
211
212 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
213 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
214 use -Wno-error.
215
216 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
217
218 PR tree-optimization/77937
219 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
220 to infinite when we have a pointer with an increment of -1.
221
222 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
223
224 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
225 into ...
226 * memmodel.h: This file.
227 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
228 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
229 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
230 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
231 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
232 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
233 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
234 compare-elim.c, config/aarch64/aarch64-builtins.c,
235 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
236 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
237 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
238 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
239 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
240 config/darwin.c, config/epiphany/epiphany.c,
241 config/epiphany/mode-switch-use.c,
242 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
243 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
244 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
245 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
246 config/m68k/m68k.c, config/mcore/mcore.c,
247 config/microblaze/microblaze.c, config/mmix/mmix.c,
248 config/mn10300/mn10300.c, config/moxie/moxie.c,
249 config/msp430/msp430.c, config/nds32/nds32-cost.c,
250 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
251 config/nds32/nds32-memory-manipulation.c,
252 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
253 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
254 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
255 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
256 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
257 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
258 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
259 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
260 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
261 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
262 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
263 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
264 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
265 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
266 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
267 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
268 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
269 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
270 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
271 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
272 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
273 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
274 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
275 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
276 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
277 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
278 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
279 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
280 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
281 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
282 var-tracking.c, varasm.c: Include memmodel.h.
283 * genattrtab.c (write_header): Include memmodel.h in generated file.
284 * genautomata.c (main): Likewise.
285 * gengtype.c (open_base_files): Likewise.
286 * genopinit.c (main): Likewise.
287 * genconditions.c (write_header): Include memmodel.h earlier in
288 generated file.
289 * genemit.c (main): Likewise.
290 * genoutput.c (output_prologue): Likewise.
291 * genpeep.c (main): Likewise.
292 * genpreds.c (write_insn_preds_c): Likewise.
293 * genrecog.c (write_header): Likewise.
294 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
295
296 2016-10-13 David Malcolm <dmalcolm@redhat.com>
297
298 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
299 for new "compact" param of print_rtx_function. Check for "cinsn"
300 rather than "insn".
301 * print-rtl-function.c (flag_compact): New decl.
302 (print_rtx_function): Add param "compact" and use it to set
303 flag_compact, adding a description of the effect to the leading
304 comment, and updating the example output.
305 * print-rtl.c (flag_compact): New variable.
306 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
307 mode.
308 (print_rtx_operand_code_i): When printing source locations, wrap
309 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
310 (print_rtx_operand_code_r): Don't print regnos for hard regs and
311 virtuals in compact mode.
312 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
313 apart from in LABEL_REFs.
314 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
315 Don't print basic block ids in compact mode.
316 (print_rtx): In compact mode, prefix the code of insns with "c",
317 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
318 * print-rtl.h (print_rtx_function): Add "compact" param.
319
320 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
321
322 * arm.h (TARGET_VFP): Delete.
323 (TARGET_VFPD32): Remove references to TARGET_VFP.
324 (TARGET_VFP3, TARGET_VFP5): Likewise.
325 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
326 (TARGET_NEON_FP16): Likewise.
327 (TARGET_FMA): Likewise.
328 (TARGET_CRYPTO): Likewise.
329 (TARGET_NEON): Likewise.
330 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
331 (FUNCTION_ARG_REGNO_P): Likewise.
332 * arm.c (arm_option_check_internal): Likewise.
333 (arm_option_override): Likewise.
334 (use_return_insn): Likewise.
335 (arm_function_value_regno_p): Likewise.
336 (arm_apply_result_size): Likewise.
337 (use_vfp_abi): Likewise.
338 (arm_legitimate_address_outer_p): Likewise.
339 (thumb2_legitimate_address_p): Likewise.
340 (arm_legitimate_index_p): Likewise.
341 (thumb2_legitimate_index_p): Likewise.
342 (arm_legitimate_address): Likewise.
343 (arm_get_vfp_saved_size): Likewise.
344 (arm_emit_vfp_multi_reg_pop): Likewise.
345 (arm_get_frame_offsets): Likewise.
346 (arm_save_coproc_regs): Likewise.
347 (arm_hard_regno_mode_ok): Likewise.
348 (arm_expand_epilogue_apcs_frame): Likewise.
349 (arm_expand_epilogue): Likewise.
350 (arm_file_start): Likewise.
351 (arm_conditional_register_usage): Likewise.
352 (arm_validize_comparison): Use vfp_compare_operand directly.
353 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
354 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
355 unsupported usage.
356 (arm_atomic_assign_expand_fenv): Likewise.
357 * arm.md (divsf3): Likewise.
358 (arm_negsi2): Likewise.
359 (absdf2): Likewise.
360 (arm_movdi): Likewise.
361 (arm_movt): Likewise.
362 (cbranchsf4): Change predicate to vfp_compare_operand.
363 (cbranchdf4): Change predicate to vfp_compare_operand.
364 (cstorehf4): Change predicate to vfp_compare_operand.
365 (cstoresf4): Change predicate to vfp_compare_operand.
366 (cstoredf4): Change predicate to vfp_compare_operand.
367 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
368 (movhi_insn_arch4, movhi_bytes): Likewise.
369 * constraints.md (Dt): Likewise.
370 (Dp): Likewise.
371 * iterators.md (SDF): Likewise.
372 * predicates.md (arm_float_compare_operand): Delete.
373 (const_double_vcvt_power_of_two_reciprocal): Remove references to
374 TARGET_VFP.
375 (const_double_vcvt_power_of_two): Likewise.
376 * thumb2.md thumb2_movsi_insn): Likewise.
377 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
378 (movhf_vfp): Likewise.
379 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
380 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
381 (movsf_vfp, thumb2_movsf_vfp): Likewise.
382 (movdf_vfp, thumb2_movdf_vfp): Likewise.
383 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
384 (subsf3_vfp, divsf3_vfp): Likewise.
385 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
386 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
387 (mulsf3negsfsubsf_vfp): Likewise.
388 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
389 (floatunssisf2, sqrtsf2_vfp): Likewise.
390 (movcc_vfp): Likewise.
391 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
392 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
393 (push_multi_vfp): Likewise.
394 (set_fpscr, get_fpscr): Likewise.
395 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
396
397 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
398
399 * arm.h (TARGET_VFP): Unconditionally define to 1.
400 (arm_fpu_desc): Remove 'model' field.
401 (TARGET_FPU_MODEL): Delete.
402 * arm.c (all_fpus): Don't initialize the model field.
403 (arm_can_inline_p): Don't check the FPU model.
404 * arm-fpus.def: Remove redundant model field from all FPU
405 descriptions.
406
407 2016-10-13 Richard Biener <rguenther@suse.de>
408
409 PR middle-end/77826
410 * genmatch.c (struct capture): Add value_match member.
411 (commutate): Preserve value_match.
412 (lower_opt_convert): Likewise.
413 (lower_cond): Likewise.
414 (replace_id): Likewise.
415 (struct dt_operand): Add value_match member.
416 (decision_tree::cmp_node): Compare it.
417 (decision_tree::insert_operand): Honor it when finding and
418 when appending a DT_MATCH.
419 (dt_operand::gen_match_op): Generate a type check after
420 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
421 (parser::get_internal_capture_id): New helper.
422 (parser::finish_match_operand): New function lowering @@<id>.
423 (parser::parse_capture): Parse @@<id> as value-match.
424 (parser::parse_expr): Use get_internal_capture_id.
425 (parser::parse_simplify): Call finish_match_operand.
426 (walk_captures): New helper.
427 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
428 of operand_equal_p.
429 ((X /[ex] A) * A -> X): Likewise.
430 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
431 convert[12] and value-matching.
432 ((A | B) & (A | C) -> A | (B & C)): Likewise.
433 ((X | Y) | Y -> X | Y): Likewise.
434 ((X ^ Y) ^ Y -> X): Likewise.
435 (A - (A & B) -> ~B & A): Likewise.
436 ((T)(P + A) - (T)P -> (T) A): Likewise.
437 ((T)P - (T)(P + A) -> -(T) A): Likewise.
438 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
439 * doc/match-and-simplify.texi: Amend capture section.
440
441 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
442
443 * config/arc/arc.md (umul_600): Remove predicated variant.
444 (umul64_600): Likewise.
445
446 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
447
448 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
449
450 2016-10-13 Bin Cheng <bin.cheng@arm.com>
451
452 * tree-vect-loop.c (loop_niters_no_overflow): New func.
453 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
454 no-overflow information to vect_do_peeling_for_loop_bound and
455 vect_gen_vector_loop_niters.
456
457 2016-10-13 Bin Cheng <bin.cheng@arm.com>
458
459 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
460 iterates 1 time.
461
462 2016-10-13 Bin Cheng <bin.cheng@arm.com>
463
464 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
465 adjust_vec automatically.
466 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
467 param exit_bb to guard_to.
468 (slpeel_checking_verify_cfg_after_peeling):
469 (set_prologue_iterations):
470 (create_lcssa_for_virtual_phi): New func which is factored out from
471 slpeel_tree_peel_loop_to_edge.
472 (slpeel_tree_peel_loop_to_edge):
473 (iv_phi_p): New func.
474 (vect_can_advance_ivs_p): Call iv_phi_p.
475 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
476 new gimple stmts in basic block.
477 (vect_do_peeling_for_loop_bound):
478 (vect_do_peeling_for_alignment):
479 (vect_gen_niters_for_prolog_loop): Rename to...
480 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
481 adjust implementation.
482 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
483 sizetype if necessary.
484 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
485 it to external function.
486 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
487 (vect_gen_vector_loop_niters_mult_vf): New.
488 (slpeel_update_phi_nodes_for_loops): New.
489 (slpeel_update_phi_nodes_for_guard1): Reimplement.
490 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
491 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
492 * tree-vect-loop.c (vect_build_loop_niters): Move to file
493 tree-vect-loop-manip.c
494 (vect_generate_tmps_on_preheader): Delete.
495 (vect_transform_loop): Rename vectorization_factor to vf. Call
496 vect_do_peeling instead of vect_do_peeling-* functions.
497 * tree-vectorizer.h (vect_do_peeling): New decl.
498 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
499 (vect_do_peeling_for_loop_bound): Delete.
500 (vect_do_peeling_for_alignment): Delete.
501
502 2016-10-13 Bin Cheng <bin.cheng@arm.com>
503
504 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
505 duplicated loop after its preheader and after the original loop.
506
507 2016-10-13 Bin Cheng <bin.cheng@arm.com>
508
509 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
510 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
511
512 2016-10-13 Bin Cheng <bin.cheng@arm.com>
513
514 * tree-vect-loop.c (vectorizable_live_operation): Support handling
515 for live variable outside loop but not in lcssa form.
516
517 2016-10-13 Bin Cheng <bin.cheng@arm.com>
518
519 * cfg.c (reset_original_copy_tables): New func.
520 * cfg.h (reset_original_copy_tables): New decl.
521
522 2016-10-13 Jakub Jelinek <jakub@redhat.com>
523
524 PR c/77946
525 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
526 public_flag.
527 * varasm.c (default_binds_local_p_3): Formatting fix.
528
529 2016-10-13 Bin Cheng <bin.cheng@arm.com>
530
531 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
532 style issue.
533 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
534 Remove useless code.
535
536 2016-10-13 Martin Liska <mliska@suse.cz>
537
538 PR tree-optimization/77943
539 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
540 a different EH landing pads.
541
542 2016-10-13 Jakub Jelinek <jakub@redhat.com>
543
544 PR target/77957
545 * hooks.h (hook_tree_void_null): Declare.
546 * hooks.c (hook_tree_void_null): New function.
547 * langhooks.c (lhd_return_null_tree_v): Remove.
548 * langhooks-def.h (lhd_return_null_tree_v): Remove.
549 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
550 set y to const0_rtx.
551 * function.c (stack_protect_epilogue): Likewise.
552 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
553 if TARGET_THREAD_SSP_OFFSET is defined.
554 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
555 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
556 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
557 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
558 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
559 (ix86_stack_protect_guard): New function.
560
561 2016-10-13 Richard Biener <rguenther@suse.de>
562
563 * dwarf2out.c (tree_add_const_value_attribute): Do not try
564 rtl_for_decl_init during early phase.
565 (gen_variable_die): Do not create locations during early phase.
566 (gen_label_die): Likewise.
567 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
568 twice.
569
570 2016-10-12 Richard Biener <rguenther@suse.de>
571
572 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
573 try_add_new_range and made to eturn new range.
574 (evrp_dom_walker::before_dom_children): Push op1 value range before
575 pushing op0 value range.
576
577 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
578
579 PR tree-optimization/77937
580 * gimple-ssa-strength-reduction.c (analyze_increments): Use
581 POINTER_TYPE_P on the candidate type to determine whether
582 candidates in this chain require pointer arithmetic.
583
584 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
585
586 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
587 correction if the type is smaller than a word.
588 (visium_select_cc_mode): Add ... fall through ... comment.
589
590 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
591
592 * config/rs6000/rs6000.c (machine_function): Add new fields
593 gpr_is_wrapped_separately and lr_is_wrapped_separately.
594 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
595 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
596 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
597 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
598 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
599 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
600 (rs6000_get_separate_components): New function.
601 (rs6000_components_for_bb): New function.
602 (rs6000_disqualify_components): New function.
603 (rs6000_emit_prologue_components): New function.
604 (rs6000_emit_epilogue_components): New function.
605 (rs6000_set_handled_components): New function.
606 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
607 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
608 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
609 (rs6000_emit_epilogue): Don't emit GPR restores if
610 gpr_is_wrapped_separately for that register. Don't make a
611 REG_CFA_RESTORE note for registers we did not restore, either.
612
613 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
614
615 * function.c (thread_prologue_and_epilogue_insns): Call
616 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
617 if it has possibly changed. Compute the split_prologue_seq and
618 epilogue_seq later, too.
619 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
620 (dump_components): New function.
621 (struct sw): New struct.
622 (SW): New function.
623 (init_separate_shrink_wrap): New function.
624 (fini_separate_shrink_wrap): New function.
625 (place_prologue_for_one_component): New function.
626 (spread_components): New function.
627 (disqualify_problematic_components): New function.
628 (emit_common_heads_for_components): New function.
629 (emit_common_tails_for_components): New function.
630 (insert_prologue_epilogue_for_components): New function.
631 (try_shrink_wrapping_separate): New function.
632 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
633
634 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
635
636 * regrename.c (build_def_use): Invalidate chains that have a
637 REG_CFA_RESTORE on some instruction.
638
639 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
640
641 * dce.c (delete_unmarked_insns): Don't delete instructions with
642 a REG_CFA_RESTORE note.
643
644 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
645
646 * common.opt (-fshrink-wrap-separate): New flag.
647 * doc/invoke.texi: Document it.
648 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
649 * doc/tm.texi: Regenerate.
650 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
651 * target.def (shrink_wrap): New hook vector.
652 (get_separate_components, components_for_bb, disqualify_components,
653 emit_prologue_components, emit_epilogue_components,
654 set_handled_components): New hooks.
655
656 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
657
658 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
659 vector return by reference only if -Wpsabi.
660 (rs6000_pass_by_reference): Similarly, for argument passing.
661
662 2016-10-12 David Malcolm <dmalcolm@redhat.com>
663
664 * function-tests.c: Include "print-rtl.h".
665 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
666 function, and verify what is dumped.
667 * print-rtl-function.c (print_edge): New function.
668 (begin_any_block): New function.
669 (end_any_block): New function.
670 (can_have_basic_block_p): New function.
671 (print_rtx_function): Track the basic blocks of insns in the
672 chain, wrapping those that are within blocks within "(block)"
673 directives. Remove the "(cfg)" directive.
674
675 2016-10-12 David Malcolm <dmalcolm@redhat.com>
676
677 * selftest.c (selftest::read_file): New function.
678 (selftest::test_read_file): New function.
679 (selftest::selftest_c_tests): Call test_read_file.
680 * selftest.h (selftest::read_file): New decl.
681
682 2016-10-12 Richard Biener <rguenther@suse.de>
683
684 PR debug/77947
685 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
686 function context.
687
688 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
689
690 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
691
692 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
693 dwarf2out_assembly_start.
694
695 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
696
697 * Makefile.in (SELFTEST_FLAGS): New variable.
698 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
699
700 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
701 early_finish hook.
702
703 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
704
705 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
706 dumped in RTL dumps.
707
708 2016-10-12 Martin Liska <mliska@suse.cz>
709
710 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
711 (gimple_fold_builtin_memory_op): Use the function.
712 (gimple_fold_builtin_strchr): Likewise.
713 (gimple_fold_builtin_strcat): Likewise.
714 (gimple_build): Likewise.
715
716 2016-10-12 Nathan Sidwell <nathan@acm.org>
717
718 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
719
720 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
721
722 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
723 equivalent 32-bit constant (modulo 2**32) when that yields
724 smaller instructions.
725 (size_of_int_loc_descriptor): Update accordingly.
726
727 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
728
729 * dwarf2out.c (dwarf2out_early_global_decl): For nested
730 functions, call dwarf2out_decl on the parent function first.
731
732 2016-10-12 Richard Biener <rguenther@suse.de>
733
734 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
735 on the conversion.
736
737 2016-10-12 Richard Biener <rguenther@suse.de>
738
739 * tree-ssa-propagate.c
740 (substitute_and_fold_dom_walker::before_dom_children): Do not
741 ignore ASSERT_EXPRs but only preserve them.
742 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
743 that have been propagated into.
744 (vrp_finalize): Enable DCE for substitute_and_fold.
745
746 2016-10-12 Richard Biener <rguenther@suse.de>
747
748 PR tree-optimization/77920
749 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
750 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
751 (simplify_abs_using_ranges): Likewise.
752 (simplify_conversion_using_ranges): Likewise.
753 (simplify_stmt_using_ranges): Adjust.
754
755 2016-10-12 Jakub Jelinek <jakub@redhat.com>
756
757 PR tree-optimization/77929
758 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
759 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
760
761 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
762
763 PR target/77934
764 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
765 needs a base register for arg 1.
766
767 2016-10-12 Jakub Jelinek <jakub@redhat.com>
768
769 * common.opt (Wimplicit-fallthrough) Turn into alias to
770 -Wimplicit-fallthrough=3. Remove EnabledBy.
771 (Wimplicit-fallthrough=): New option.
772 * gimplify.c (warn_implicit_fallthrough_r): Use
773 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
774 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
775 to -Wimplicit-fallthrough=3.
776 (-Wimplicit-fallthrough=): Document.
777
778 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
779
780 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
781 and GEU in DImode if TARGET_SUBXC.
782 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
783 (seqdi<W:mode>_zero_subxc): Delete.
784 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
785 (neg_seqdi<W:mode>_zero_vis3): Delete.
786 (plus_seqdi<W:mode>_zero): Likewise.
787 (minus_seqdi<W:mode>_zero): Likewise.
788 (plus_plus_sltu<W:mode>): Accept only register.
789 (addx<W:mode>): Likewise.
790 (plus_sltu<W:mode>_vis3): Likewise.
791 (plus_plus_sltu<W:mode>_vis3): Likewise.
792 (neg_sgeu<W:mode>_vis3): Delete.
793 (minus_sgeu<W:mode>_vis3): Likewise.
794 (addxc<W:mode>): Accept only registers.
795 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
796 (minus_neg_sltu<W:mode>_subxc): Accept only register.
797 (neg_plus_sltu<W:mode>_subxc): Likewise.
798 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
799 (minus_minus_sltu<W:mode>_subxc): Accept only register.
800 (sgeu<W:mode>_insn_subxc): Delete.
801 (plus_sgeu<W:mode>_subxc): Likewise.
802 (subxc<W:mode>): Accept only register.
803 (scc splitter): Split always GEU again.
804
805 2016-10-11 Jeff Law <law@redhat.com>
806
807 PR tree-optimization/77424
808 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
809 dead conditionals. Assert that all e->aux fields are NULL.
810
811 2016-10-11 David Malcolm <dmalcolm@redhat.com>
812
813 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
814 operand-printing "switch" statement into...
815 (print_rtx_operand_code_0): ...this new function, ...
816 (print_rtx_operand_code_e): ...this new function, ...
817 (print_rtx_operand_codes_E_and_V): ...this new function, ...
818 (print_rtx_operand_code_i): ...this new function, ...
819 (print_rtx_operand_code_r): ...this new function, ...
820 (print_rtx_operand_code_u): ...this new function, ...
821 (print_rtx_operand): ...and this new function.
822
823 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
824
825 * config/alpha/alpha-passes.def: New file.
826 * config/alpha/t-alpha: New file.
827 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
828 (make_pass_handle_trap_shadows): New prototype.
829 (make_pass_align_insns): Ditto.
830 * config/alpha/alpha.c (alpha_option_override): Don't register
831 passes here.
832 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
833
834 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
835
836 PR target/77924
837 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
838 distinct __ibm128 IBM extended double type if long doubles are
839 128-bits and the default format for long double is IEEE 128-bit.
840
841 2016-10-11 Richard Biener <rguenther@suse.de>
842
843 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
844 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
845 (verify_die): New function.
846 (dwarf2out_finish): Call it.
847 (output_line_info): Handle case of -gsplit-dwarf without
848 DWARF2_ASM_LINE_DEBUG_INFO.
849
850 2016-10-11 Richard Biener <rguenther@suse.de>
851
852 PR debug/77931
853 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
854 sub-chains of BLOCK_VARS and gimple_bind_vars.
855
856 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
857
858 * config/i386/znver1.md : Fix imov/imovx load type reservations.
859
860 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
861
862 * config/sparc/sparc.opt (msubxc): New option.
863 * doc/invoke.texi (SPARC options): Document it and tidy up.
864 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
865 * doc/tm.texi: Regenerate.
866 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
867 (CCNZ): ...this.
868 (CCX_NOOV): Rename into...
869 (CCXNZ): ...this.
870 (CCC): New.
871 (CCXC): Likewise.
872 * config/sparc/predicates.m (fcc_register_operand): Simplify.
873 (fcc0_register_operand): Likewise.
874 (icc_register_operand): New.
875 (icc_or_fcc_register_operand): Simplify.
876 (nz_comparison_operator): New.
877 (c_comparison_operator): Likewise.
878 (noov_compare_operator): Rename into...
879 (icc_comparison_operator): ...this. Use above predicates.
880 (noov_compare64_operator): Rename into...
881 (v9_comparison_operator): ...this and tidy up.
882 (fcc_comparison_operator): New.
883 (icc_or_fcc_comparison_operator): Likewise.
884 (v9_register_compare_operator): Rename info...
885 (v9_register_comparison_operator): ...this.
886 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
887 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
888 for Niagara-7.
889 (sparc_fixed_condition_code_regs): New function.
890 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
891 renaming and add support for CCC/CCXC.
892 (output_cbranch): Likewise.
893 (sparc_print_operand): Likewise.
894 (gen_v9_scc): Remove obsolete assertion.
895 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
896 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
897 (output_cbcond): Remove bogus handling of CC modes.
898 (sparc_register_move_cost): Return 100 for NO_REGS.
899 * config/sparc/sparc.md (W): New mode iterator.
900 (length): Adjust for noov_compare64_operator renaming.
901 (cmpsi_sne): New instruction.
902 (cmpdi_sne): Likewise.
903 (seqdi_special): Delete.
904 (seqdi_special): Likewise.
905 (snesi<P:mode>_special): Likewise.
906 (snedi_special): Likewise.
907 (snedi_special_vis3): Likewise.
908 (snesi patterns): Use W iterator.
909 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
910 (sltu patterns): Likewise.
911 (sgeu patterns): Likewise.
912 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
913 (normal_branch): Use icc_comparison_operator predicate.
914 (inverted_branch): Likewise.
915 (cbcond_sp32): Use comparison_operator predicate.
916 (cbcond_sp64): Likewise.
917 (normal_int_branch_sp64): Adjust for renaming
918 (inverted_int_branch_sp64): Likewise.
919 (mov<I:mode>_cc_reg_sp64): Likewise.
920 (movsf_cc_reg_sp6): Likewise.
921 (movdf_cc_reg_sp64): Likewise.
922 (movtf_cc_reg_hq_sp64): Likewise.
923 (movtf_cc_reg_sp64): Likewise.
924 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
925 (movsf_cc_v9): Likewise.
926 (movdf_cc_v9): Likewise.
927 (movtf_cc_hq_v9): Likewise.
928 (movtf_cc_v9): Likewise.
929 (adddi3): Call gen_adddi3_sp32.
930 (adddi3_insn_sp32): Rename to...
931 (adddi3_sp32): ...this. Accept only register_operand as operand #1
932 and use CCCmode for the carry.
933 (addx_extend_sp32): Use CCCmode for the carry.
934 (addx_extend_sp64): Delete.
935 (adddi3_extend_sp32): Use CCCmode for the carry.
936 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
937 (subdi3): Call gen_subdi3_sp32.
938 (subdi3_insn_sp32): Rename to...
939 (subdi3_sp32): ...this and use CCmode for the carry.
940 (subx_extend_sp32): Use CCCmode for the carry.
941 (subx_extend_sp64): Delete.
942 (subdi3_extend_sp32): Use CCmode for the carry.
943 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
944 (negdi3): Call gen_negdi3_sp32.
945 (negdi3_sp32): Use CCCmode for the carry.
946 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
947 (cmp_nz_ashift_1): Use CCNZ mode.
948 (cmp_nz_set_ashift_1): Likewise.
949 (ctrapsi4): Use comparison_operator predicate.
950 (ctrapdi4): Likewise.
951 (trapsi_insn): Use icc_comparison_operator predicate.
952 (trapdi_insn): Likewise.
953 (edge8 patterns): Use CCNZmode.
954 (edge16 patterns): Likewise.
955 (edge32 patterns): Likewise.
956
957 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
958
959 * config/visium/visium-modes.def (CC_NOOV): Rename into...
960 (CCNZ): ...this.
961 (CC_BTST): Rename into...
962 (CCC): ...this.
963 * config/visium/predicates.md (real_add_operand): New.
964 (visium_btst_operator): Rename into...
965 (visium_equality_comparison_operator): ...this.
966 (visium_noov_operator): Rename into...
967 (visium_nz_comparison_operator): ...this.
968 (visium_c_comparison_operator): New.
969 (visium_branch_operator): Adjust and deal with all CC modes.
970 * config/visium/visium.c (visium_adjust_cost): Adjust.
971 (visium_split_double_add): Use the *_set_carry patterns.
972 (visium_select_cc_mode): Add support for CCC mode and adjust.
973 (output_cbranch): Adjust and use the carry-based operators for
974 floating-point comparisons.
975 * config/visium/visium.md (flags_subst_arith): Adjust.
976 (addsi3_insn_set_carry): New instruction.
977 (subsi3_insn_set_carry): Likewise.
978 (negsi2_insn_set_carry): Likewise.
979 (btst): Adjust.
980 (cmp<mode>_sne): Likewise.
981 (cbranch<mode>4): Use ordered_comparison_operator.
982 (cbranch<mode>4_insn): Likewise.
983 (cbranchsi4_btst_insn): Adjust.
984
985 2016-10-11 Tom de Vries <tom@codesourcery.com>
986
987 PR middle-end/77558
988 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
989 special-casing.
990
991 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
992
993 * tree.h (build_complex_type): Add second parameter with default.
994 * tree.c (build_complex_type): Add NAMED second parameter and adjust
995 recursive call. Create a TYPE_DECL only if NAMED is true.
996 (build_common_tree_nodes): Pass true in calls to build_complex_type.
997
998 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
999
1000 New avr-passes.def to register AVR specific passes.
1001
1002 * config/avr/avr-passes.def: New file.
1003 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
1004 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
1005 (make_avr_pass_recompute_note): New proto.
1006 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
1007 (avr_pass_recompute_notes): Use anonymous namespace.
1008 (avr_register_passes): Remove function...
1009 (avr_option_override): ...and its call.
1010
1011 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
1012
1013 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
1014 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
1015 PTF_AVOID_BRANCHLIKELY_SPEED for others.
1016 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
1017 flags.
1018 * config/mips/mips.c (mips_option_override): Enable the branch
1019 likely depending on the tune flags and optimization level.
1020 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
1021 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
1022 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
1023 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
1024
1025 2016-10-11 Richard Biener <rguenther@suse.de>
1026
1027 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
1028 (output_function): Properly stream the whole block tree.
1029 * lto-streamer-in.c (input_function): Likewise.
1030
1031 2016-10-11 Marek Polacek <polacek@redhat.com>
1032
1033 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
1034
1035 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1036
1037 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
1038 (evrp_dom_walker::before_dom_children): Infer and push new value
1039 ranges for x in y < x.
1040
1041 2016-10-10 Joseph Myers <joseph@codesourcery.com>
1042
1043 PR target/77586
1044 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
1045 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
1046 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1047 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1048 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
1049 (IA64_NO_LIBGCC_TFMODE): Likewise.
1050
1051 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1052
1053 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
1054 copying.
1055
1056 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
1057
1058 * config.gcc: Add aarch64-*-freebsd* support.
1059 * config.host: Likewise.
1060 * config/aarch64/aarch64-freebsd.h: New file.
1061 * config/aarch64/t-aarch64-freebsd: Ditto.
1062
1063 2016-10-10 Jeff Law <law@redhat.com>
1064
1065 PR tree-optimization/71947
1066 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
1067 B with A within a single statement.
1068
1069 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1070
1071 PR tree-optimization/77824
1072 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
1073 zero cost for copies.
1074 (find_candidates_dom_walker::before_dom_children): Replace
1075 MODIFY_EXPR with SSA_NAME.
1076 (replace_mult_candidate): Likewise.
1077 (replace_profitable_candidates): Likewise.
1078
1079 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1080
1081 * config/s390/s390.h: Wrap more macros args in brackets and fix
1082
1083 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
1084
1085 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
1086
1087 2016-10-10 Andreas Schwab <schwab@suse.de>
1088
1089 PR target/77738
1090 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
1091 pseudo is not DImode.
1092
1093 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
1094
1095 * common/config/arc/arc-common.c (arc_option_optimization_table):
1096 Remove compact casesi option.
1097 * config/arc/arc.c (arc_override_options): Use compact casesi
1098 option only for pre-ARCv2 cores.
1099 * doc/invoke.texi (mcompact-casesi): Update text.
1100
1101 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1102
1103 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
1104 Add macro to say we can efficiently handle overlapping unaligned
1105 loads.
1106 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
1107 poor code for processors older than p8.
1108
1109 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
1110
1111 * gen-pass-instances.awk: Remove GNUism.
1112
1113 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1114
1115 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
1116 NULL of (*ipcp_transformations)][node->uid].
1117
1118 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
1119
1120 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
1121 (MALLOC_ABI_ALIGNMENT): Define.
1122
1123 2016-10-09 Jakub Jelinek <jakub@redhat.com>
1124
1125 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
1126 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
1127 VAR_OR_FUNCTION_DECL_P macros.
1128 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
1129 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
1130 chkp_find_bounds_1): Likewise.
1131 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
1132 * hsa-gen.c (get_symbol_for_decl): Likewise.
1133 * cgraphunit.c (check_global_declaration, analyze_functions,
1134 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
1135 Likewise.
1136 * gimple-fold.c (can_refer_decl_in_current_unit_p,
1137 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
1138 Likewise.
1139 * tree.c (set_decl_section_name, copy_node_stat,
1140 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
1141 merge_dllimport_decl_attributes, handle_dll_attribute,
1142 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
1143 verify_type): Likewise.
1144 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
1145 find_explicit_erroneous_behavior): Likewise.
1146 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
1147 * ipa.c (process_references): Likewise.
1148 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
1149 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
1150 notice_global_symbol, assemble_variable, mark_decl_referenced,
1151 build_constant_desc, output_constant_def_contents, do_assemble_alias,
1152 make_decl_one_only, default_section_type_flags,
1153 categorize_decl_for_section, default_encode_section_info): Likewise.
1154 * trans-mem.c (requires_barrier): Likewise.
1155 * gimple-expr.c (mark_addressable): Likewise.
1156 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
1157 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
1158 expand_debug_expr): Likewise.
1159 * tree-dump.c (dequeue_and_dump): Likewise.
1160 * ubsan.c (instrument_bool_enum_load): Likewise.
1161 * tree-pretty-print.c (print_declaration): Likewise.
1162 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1163 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
1164 * asan.c (asan_protect_global, instrument_derefs): Likewise.
1165 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
1166 pass_build_ssa::execute): Likewise.
1167 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
1168 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
1169 Likewise.
1170 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
1171 Likewise.
1172 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
1173 can_be_nonlocal, remap_decls, copy_debug_stmt,
1174 initialize_inlined_parameters, add_local_variables,
1175 reset_debug_binding, replace_locals_op): Likewise.
1176 * dse.c (can_escape): Likewise.
1177 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
1178 Likewise.
1179 * tree-diagnostic.c (default_tree_printer): Likewise.
1180 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
1181 unpack_ts_decl_with_vis_value_fields,
1182 lto_input_ts_decl_common_tree_pointers): Likewise.
1183 * builtins.c (builtin_save_expr, fold_builtin_expect,
1184 readonly_data_expr): Likewise.
1185 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
1186 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
1187 Likewise.
1188 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1189 * gimplify.c (force_constant_size, gimplify_bind_expr,
1190 gimplify_decl_expr, gimplify_var_or_parm_decl,
1191 gimplify_compound_lval, gimplify_init_constructor,
1192 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
1193 gimplify_type_sizes): Likewise.
1194 * cgraphbuild.c (record_reference, record_type_list, mark_address,
1195 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
1196 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
1197 remove_unused_locals): Likewise.
1198 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
1199 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
1200 * function.c (instantiate_expr, instantiate_decls_1,
1201 setjmp_vars_warning, add_local_decl): Likewise.
1202 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
1203 Likewise.
1204 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
1205 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
1206 optimize_va_list_gpr_fpr_size): Likewise.
1207 * tree-nrv.c (pass_nrv::execute): Likewise.
1208 * tsan.c (instrument_expr): Likewise.
1209 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1210 * vtable-verify.c (verify_bb_vtables): Likewise.
1211 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
1212 get_ref_base_and_extent): Likewise.
1213 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
1214 Likewise.
1215 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
1216 analyze_all_variable_accesses): Likewise.
1217 * tree-nested.c (get_nonlocal_debug_decl,
1218 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
1219 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
1220 get_local_debug_decl, convert_local_omp_clauses,
1221 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
1222 Likewise.
1223 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
1224 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
1225 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
1226 dbxout_symbol, dbxout_common_check): Likewise.
1227 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
1228 string_constant): Likewise.
1229 * hsa.c (hsa_get_declaration_name): Likewise.
1230 * passes.c (rest_of_decl_compilation): Likewise.
1231 * tree-ssanames.c (make_ssa_name_fn): Likewise.
1232 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
1233 pack_ts_decl_with_vis_value_fields,
1234 write_ts_decl_common_tree_pointers): Likewise.
1235 * stor-layout.c (place_field): Likewise.
1236 * symtab.c (symtab_node::maybe_create_reference,
1237 symtab_node::verify_base, symtab_node::make_decl_local,
1238 symtab_node::copy_visibility_from,
1239 symtab_node::can_increase_alignment_p): Likewise.
1240 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
1241 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
1242 fortran_common, add_location_or_const_value_attribute,
1243 add_scalar_info, add_linkage_name, set_block_abstract_flags,
1244 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
1245 optimize_one_addr_into_implicit_ptr,
1246 optimize_location_into_implicit_ptr): Likewise.
1247 * gimple-low.c (record_vars_into): Likewise.
1248 * ipa-visibility.c (update_vtable_references): Likewise.
1249 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
1250 Likewise.
1251 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
1252 DFS::DFS_write_tree_body, write_symbol): Likewise.
1253 * langhooks.c (lhd_warn_unused_global_decl,
1254 lhd_set_decl_assembler_name): Likewise.
1255 * attribs.c (decl_attributes): Likewise.
1256 * except.c (output_ttype): Likewise.
1257 * varpool.c (varpool_node::get_create, ctor_for_folding,
1258 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
1259 * fold-const.c (fold_unary_loc): Likewise.
1260 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
1261 ipa_find_agg_cst_from_init): Likewise.
1262 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
1263 expand_omp_target, lower_omp_regimplify_p,
1264 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
1265 find_link_var_op): Likewise.
1266 * tree-chrec.c (chrec_contains_symbols): Likewise.
1267 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
1268 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
1269 execute_fixup_cfg): Likewise.
1270
1271 PR tree-optimization/77901
1272 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
1273 if ranges[i].exp is SSA_NAME when looking for >= and only when
1274 ranges[i].exp is NULL or SSA_NAME when looking for the other
1275 comparison.
1276
1277 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1278
1279 * ipa-cp.c (ipcp_alignment_lattice): Remove.
1280 (ipcp_param_lattices): Remove field alignment.
1281 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
1282 (set_all_contains_variable): Remove call to
1283 ipcp_alignment_lattice::set_to_bottom.
1284 (initialize_node_lattices): Likewise.
1285 (propagate_alignment_accross_jump_function): Remove.
1286 (propagate_constants_accross_call): Remove call to
1287 propagate_alignment_accross_jump_function.
1288 (ipcp_store_alignment_results): Remove.
1289 (ipcp_driver): Remove call to ipcp_store_alignment_results.
1290 (propagate_bits_accross_jump_function): Handle ancestor jump function.
1291 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
1292 pretty-printing of alignment jump function.
1293 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
1294 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
1295 alignments and remove computing ipa_alignment jump function.
1296 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
1297 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
1298 (ipa_read_jump_function): Remove reading of ipa_alignment.
1299 (write_ipcp_transformation_info): Remove streaming for alignment
1300 propagation summary.
1301 (read_ipcp_transformation_info): Remove reading of alignment
1302 propagation summary.
1303 (ipcp_update_alignments): Remove.
1304 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
1305 type.
1306 (ipcp_transform_function): Remove call to ipcp_update_alignments()
1307 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
1308 * ipa-prop.h (ipa_alignment): Remove.
1309 (ipa_jump_func): Remove field alignment.
1310 (ipcp_transformation_summary): Remove field alignments.
1311 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
1312 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
1313 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
1314
1315 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
1316
1317 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
1318
1319 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
1320 change.
1321 (visium_expand_fp_cstore): Likewise.
1322
1323 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1324
1325 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
1326 * diagnostic.c (warning_at_rich_loc_n): New function.
1327 (diagnostic_n_impl_richloc): Likewise.
1328 (diagnostic_n_impl): Move most of the function to
1329 diagnostic_n_impl_richloc and call it.
1330
1331 2016-10-08 Jakub Jelinek <jakub@redhat.com>
1332
1333 * gen-pass-instances.awk: Rewritten.
1334 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
1335 $(PASSES_EXTRA) after passes.def to the script.
1336 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
1337 * config/i386/i386-passes.def: New file.
1338 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
1339 make_pass_stv): Declare.
1340 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
1341 false.
1342 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
1343 or !TARGET_64BIT.
1344 (pass_stv::clone, pass_stv::set_pass_param): New methods.
1345 (pass_stv::timode_p): New non-static data member.
1346 (ix86_option_override): Don't register passes here.
1347
1348 * doc/invoke.texi: Document accepting Else, fallthrough.
1349
1350 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
1351 style changes.
1352
1353 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
1354 FALLTHRU comment styles.
1355
1356 2016-10-07 Andrew Pinski <apinski@cavium.com>
1357
1358 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
1359 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
1360 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
1361 Likewise.
1362 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
1363 Likewise.
1364 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
1365 Likewise.
1366 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
1367 (AARCH64_ARCH): Likewise.
1368 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
1369 Likewise.
1370 (AARCH64_CORE): Likewise.
1371 (AARCH64_ARCH): Likewise.
1372 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
1373 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1374 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
1375 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1376 (AARCH64_ARCH): Likewise.
1377 (AARCH64_CORE): Likewise.
1378 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1379 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
1380 (AARCH64_CORE): Likewise.
1381 (AARCH64_ARCH): Likewise.
1382
1383 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1384
1385 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
1386 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
1387 floating point type infrastructre, and -mfloat128 that enables the
1388 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
1389 if -mfloat128-type. Define __ibm128 to be long double by default.
1390 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
1391 the IEEE 128-bit floating point type infrastructure should
1392 automatically be enabled.
1393 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
1394 instead of -mfloat128 to enable KFmode.
1395 (rs6000_option_override_internal): Split the option -mfloat128
1396 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
1397 systems, automatically set -mfloat128-type, but don't enable it on
1398 other operating systems. Move setting the long double size and
1399 IEEE quad support before the IEEE 128-bit floating point changes.
1400 (rs6000_init_builtins): Do not create a unique type for __ibm128
1401 if long double is IBM extended double, instead rely on __ibm128
1402 being defined as 'long double'. If -mfloat128-type and not
1403 -mfloat128, create the KFmode type with an undocumented __ieee128
1404 keyword.
1405 (rs6000_init_libfuncs): Use -mfloat128-type instead of
1406 -mfloat128 for tests about the types, but keep tests for
1407 -mfloat128 to enable the keyword support.
1408 (rs6000_complex_function_value): Likewise.
1409 (rs6000_scalar_mode_supported_p): Likewise.
1410 (rs6000_floatn_mode): Likewise.
1411 (rs6000_c_mode_for_suffix): Likewise.
1412 (rs6000_opt_masks): Add -mfloat128-type.
1413 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
1414 -mfloat128-type being split from -mfloat128. Add
1415 -mfloat128-hardware, which was missing.
1416 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
1417 -mfloat128 and -mfloat128-type:
1418 (-mfloat128-type): Likewise.
1419 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
1420 that 64-bit Linux systems with enable -mfloat128-type by default
1421 on VSX systems.
1422 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
1423 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
1424 -mfloat128-type instead of -mfloat128.
1425 (FLOAT128_2REG_P): Likewise.
1426 (MASK_FLOAT128_TYPE): Likewise.
1427 (ALTIVEC_ARG_MAX_RETURN): Likewise.
1428 (RS6000_BTM_FLOAT128): Likewise.
1429 (TARGET_FLOAT128): Poison old identifiers.
1430 (OPTION_MASK_FLOAT128): Likewise.
1431 (MASK_FLOAT128): Likewise.
1432 * config/rs6000/rs6000.md (FP): Likewise.
1433 (FLOAT128): Likewise.
1434 (fix_trunc<mode>di2): Likewise.
1435 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
1436 (floatdi<mode>2): Likewise.
1437 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
1438 (neg<mode>2, FLOAT128 iterator): Likewise.
1439 (abs<mode>2, FLOAT128 iterator): Likewise.
1440 (ieee_128bit_negative_zero): Likewise.
1441 (ieee_128bit_vsx_neg<mode>2): Likewise.
1442 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
1443 (ieee_128bit_vsx_abs<mode>2): Likewise.
1444 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
1445 (ieee_128bit_vsx_nabs<mode>2): Likewise.
1446 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
1447 (extendiftf2): Likewise.
1448 (extendifkf2): Likewise.
1449 (extendtfkf2): Likewise.
1450 (trunciftf2): Likewise.
1451 (truncifkf2): Likewise.
1452 (trunckftf2): Likewise.
1453 (trunctfif2): Likewise.
1454 (extendkftf2): Likewise.
1455 (trunctfkf2): Likewise.
1456
1457 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1458
1459 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
1460 before merging in bytes to pass down to real_from_target.
1461
1462 2016-10-07 Richard Biener <rguenther@suse.de>
1463
1464 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
1465 required hack.
1466 (substitute_and_fold_dom_walker::before_dom_children):
1467 Substitute and fold before pass specific folding to avoid
1468 feeding that with SSA names that will be later released.
1469 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
1470 introduced by folding and visited by evaluate_stmt called during
1471 ccp_fold_stmt.
1472 (likely_value): Likewise.
1473 (evaluate_stmt): Likewise.
1474 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
1475 (simplify_div_or_mod_using_ranges): Likewise.
1476 (simplify_min_or_max_using_ranges): Likewise.
1477 (simplify_abs_using_ranges): Likewise.
1478 (simplify_conversion_using_ranges): Likewise.
1479 (simplify_float_conversion_using_ranges): Likewise.
1480 (simplify_stmt_using_ranges): Likewise.
1481
1482 2016-10-07 Marek Polacek <polacek@redhat.com>
1483
1484 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
1485 FALLTHROUGH_LABEL_P here...
1486 (warn_implicit_fallthrough_r): ...not here.
1487
1488 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
1489
1490 PR tree-optimization/77880
1491 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
1492 necessary.
1493
1494 2016-10-07 Marek Polacek <polacek@redhat.com>
1495
1496 PR c++/77803
1497 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
1498
1499 2016-10-07 Richard Biener <rguenther@suse.de>
1500
1501 * bitmap.h: Document constraints on bitmap modification while
1502 iterating over it.
1503
1504 2016-10-07 Richard Biener <rguenther@suse.de>
1505
1506 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
1507 * bitmap.h (bmp_iter_set): When advancing to the next element
1508 check that we didn't remove the current one.
1509 (bmp_iter_and): Likewise.
1510 (bmp_iter_and_compl): Likewise.
1511 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
1512 we currently iterate on but keep a one-level queue.
1513 * sched-deps.c (remove_from_deps): Do not clear current bit
1514 but keep a one-level queue.
1515
1516 2016-10-07 Jakub Jelinek <jakub@redhat.com>
1517
1518 PR tree-optimization/77664
1519 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
1520 for the other ranges.
1521 (optimize_range_tests_diff): Fix up formatting.
1522 (optimize_range_tests_var_bound): New function.
1523 (optimize_range_tests): Use it.
1524
1525 2016-10-07 Martin Liska <mliska@suse.cz>
1526
1527 * coverage.c (build_gcov_exit_decl): Fix priority what
1528 should be really 99.
1529
1530 2016-10-07 Richard Biener <rguenther@suse.de>
1531
1532 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
1533 vars in gimple_bind_vars but not in BLOCK_VARS.
1534
1535 2016-10-07 Richard Biener <rguenther@suse.de>
1536
1537 PR tree-optimization/77879
1538 * tree-ssa-structalias.c (handle_const_call): Properly handle
1539 NRV return slots.
1540 (handle_pure_call): Likewise.
1541
1542 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1543
1544 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
1545 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
1546 possible overflow.
1547
1548 2016-10-06 Andrew Pinski <apinski@cavium.com>
1549
1550 * config/aarch64/aarch64-cores.def: Add a comment before each
1551 set of cores.
1552
1553 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
1554
1555 PR tree-optimization/77862
1556 * tree-vrp.c (add_equivalence): Use get_value_range so that
1557 num_vr_values is checked before accessing vr_values.
1558
1559 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
1560
1561 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
1562 POINTER_TYPE_P.
1563
1564 2016-10-05 Jeff Law <law@redhat.com>
1565
1566 PR tree-optimization/71661
1567 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
1568 removal of a forwarder exposes a new natural loop.
1569
1570 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
1571
1572 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
1573 Introduce ssesuffix variable.
1574 (<mask_codefor><code><mode>3<mask_name>): Ditto.
1575 (*<code><mode>3): Ditto.
1576
1577 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
1578
1579 * postreload.c (reload_cse_simplify): Skip also USE when detecting
1580 noop move.
1581
1582 2016-10-06 Richard Biener <rguenther@suse.de>
1583
1584 PR tree-optimization/77855
1585 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
1586 instead of removing the current item while iterating over the set
1587 which is not safe.
1588
1589 2016-10-06 James Clarke <jrtc27@jrtc27.com>
1590 Eric Botcazou <ebotcazou@adacore.com>
1591
1592 PR target/77759
1593 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
1594 (classify_registers): Don't set it
1595 (function_arg_slotno): Don't initialize and test it. Tidy up.
1596
1597 2016-10-06 Richard Biener <rguenther@suse.de>
1598
1599 PR tree-optimization/77839
1600 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
1601 lattice transition.
1602
1603 2016-10-06 Martin Liska <mliska@suse.cz>
1604
1605 * gcc.c: Set -fprofile-update=atomic when profiling is
1606 enabled and -pthread is set. Warn when one combines
1607 -pthread and -fprofile-update=single for an app using
1608 profiling code.
1609
1610 2016-10-06 Martin Liska <mliska@suse.cz>
1611
1612 PR bootstrap/77788
1613 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
1614 * gimple-ssa-strength-reduction.c (slsr_process_cast):
1615 Initialize a pointer to NULL.
1616 (slsr_process_copy): Likewise.
1617 * input.c (location_get_source_line): Likewise.
1618 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1619
1620 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
1621
1622 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
1623 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
1624 (ix86_handle_option): Deleted handle of OPT_mpcommit.
1625 * config.gcc: Deleted pcommitintrin.h
1626 * config/i386/pcommitintrin.h: Deleted file.
1627 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
1628 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
1629 detection.
1630 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
1631 __PCOMMIT__.
1632 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
1633 (PTA_PCOMMIT): Deleted define.
1634 (ix86_option_override_internal): Deleted handle of option.
1635 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
1636 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
1637 __builtin_ia32_pcommit): Deleted.
1638 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
1639 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
1640 (pcommit): Deleted instruction.
1641 * config/i386/i386.opt: Mention -mpcommit deprecation.
1642 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
1643
1644 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
1645
1646 PR target/77874
1647 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
1648 Remove wrong assert.
1649 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
1650 Use <round_constraint> as operand 1 constraint.
1651
1652 2016-10-05 Jakub Jelinek <jakub@redhat.com>
1653
1654 PR sanitizer/66343
1655 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
1656 (ubsan_instrument_float_cast): And not here.
1657
1658 PR sanitizer/66343
1659 * ubsan.c (ubsan_ids): New GTY(()) array.
1660 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
1661 instead of static local counters.
1662
1663 2016-10-05 Martin Sebor <msebor@redhat.com>
1664
1665 PR bootstrap/77819
1666 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
1667 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
1668 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
1669 (default_printf_pointer_format): Define function.
1670 * targhooks.c (linux_printf_pointer_format): Define new function.
1671 * targhooks.h (linux_printf_pointer_format): Declare.
1672 (gnu_libc_printf_pointer_format): Remove declaration.
1673
1674 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1675
1676 * fold-const.c (native_encode_real): Fix logic for selecting offset
1677 to write to when BYTES_BIG_ENDIAN.
1678
1679 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
1680
1681 * builtins.c (fold_builtin_strchr): Remove function.
1682 (fold_builtin_strrchr): Likewise.
1683 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
1684 * gimple-fold.c (target_char_cst_p): New function.
1685 (gimple_fold_builtin_strchr) Add more foldings.
1686 (gimple_fold_builtin): Add index, strrchr, rindex cases.
1687
1688 2016-10-05 Richard Biener <rguenther@suse.de>
1689
1690 PR middle-end/77863
1691 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
1692 capture ids in c-exprs.
1693
1694 2016-10-05 Richard Biener <rguenther@suse.de>
1695
1696 PR middle-end/77826
1697 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
1698 with types_match for GIMPLE code gen to handle type mismatched
1699 constants properly.
1700 (dt_operand::gen): Adjust.
1701 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
1702 and constant A.
1703
1704 2016-10-05 Richard Biener <rguenther@suse.de>
1705
1706 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
1707
1708 2016-10-05 Richard Biener <rguenther@suse.de>
1709
1710 PR middle-end/77842
1711 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
1712
1713 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
1714
1715 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
1716 version check to protect only DW_TAG_imported_module generation.
1717
1718 2016-10-05 Richard Biener <rguenther@suse.de>
1719
1720 PR middle-end/55152
1721 * match.pd (min(a,-a) -> -abs(a)): New pattern.
1722
1723 2016-10-04 Ian Lance Taylor <iant@golang.org>
1724
1725 * explow.c (allocate_dynamic_stack_space): Call
1726 do_pending_stack_adjust before handling flag_split_stack.
1727
1728 2016-10-04 David Malcolm <dmalcolm@redhat.com>
1729
1730 * genattrtab.c (make_internal_attr): Supply dummy column number to
1731 file_location ctor.
1732 (main): Likewise.
1733 * genoutput.c (init_insn_for_nothing): Likewise.
1734 * gensupport.c (add_define_attr): Likewise.
1735 * read-md.c (message_at_1): Print column number.
1736 (fatal_with_file_and_line): Likewise.
1737 (rtx_reader::read_char): Track column numbers.
1738 (rtx_reader::unread_char): Likewise.
1739 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
1740 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
1741 (rtx_reader::handle_file): Initialize m_read_md_colno.
1742 (rtx_reader::get_current_location): Supply column number to
1743 file_location ctor.
1744 * read-md.h (struct file_location): Add field "colno".
1745 (file_location::file_location): Likewise.
1746 (rtx_reader::get_colno): New accessor.
1747 (rtx_reader::m_read_md_colno): New field.
1748 (rtx_reader::m_last_line_colno): New field.
1749
1750 2016-10-04 Jakub Jelinek <jakub@redhat.com>
1751
1752 * doc/extend.texi (Java Exceptions): Remove.
1753 (java_interface): Remove.
1754
1755 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
1756
1757 PR tree-optimization/77808
1758 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
1759 and addr are different before copying points-to information.
1760
1761 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
1762
1763 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
1764 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
1765 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
1766 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
1767
1768 2016-10-04 Richard Biener <rguenther@suse.de>
1769
1770 PR tree-optimization/77399
1771 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
1772 verify the target can convert.
1773
1774 2016-10-04 Richard Biener <rguenther@suse.de>
1775
1776 PR middle-end/77833
1777 * explow.c (plus_constant): Verify the mode of the constant
1778 pool offset before calling plus_constant.
1779
1780 2016-10-04 Richard Biener <rguenther@suse.de>
1781
1782 PR middle-end/77407
1783 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
1784 type support, mark with :C.
1785 (X / -X -> -1): Mark with :C.
1786
1787 2016-10-04 Jakub Jelinek <jakub@redhat.com>
1788
1789 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
1790 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
1791 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
1792 * doc/tm.texi: Regenerated.
1793 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
1794 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
1795 * config/darwin.h (JCR_SECTION_NAME): Remove.
1796 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
1797 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
1798 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
1799 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
1800 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
1801 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
1802
1803 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1804
1805 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
1806 between "because" and "param" in dump message in call to fprintf.
1807
1808 2016-10-03 Jeff Law <law@redhat.com>
1809
1810 PR tree-optimization/71550
1811 PR tree-optimization/71403
1812 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
1813 (profitable_jump_thread_path): Also return boolean indicating if
1814 the realized path will create an irreducible loop.
1815 Remove loop depth tests from 71403.
1816 (fsm_find_control_statement_thread_paths): Remove loop depth tests
1817 from 71403. If threading will create an irreducible loop, then
1818 throw away loop iteration and related information.
1819
1820 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
1821
1822 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
1823 -Woverloaded-virtual checks for warning options.
1824 * configure: Regenerate.
1825
1826 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1827
1828 PR preprocessor/77699
1829 * input.c (maybe_grow): Don't allocate one byte extra headroom.
1830 (get_next_line): Return false on error.
1831 (read_next_line): Removed, use get_next_line instead.
1832 (read_line_num): Don't copy the line.
1833 (location_get_source_line): Don't use static data.
1834 (selftest::test_reading_source_line): Add more test cases.
1835
1836 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1837
1838 Revert
1839 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1840
1841 * ifcvt.c (noce_try_avoid_const_materialization): New function.
1842 (noce_process_if_block): Use it.
1843
1844 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1845
1846 * doc/invoke.texi: Update -Wint-in-bool-context.
1847
1848 2016-10-02 Jakub Jelinek <jakub@redhat.com>
1849
1850 * dwarf2out.c (output_fde, output_call_frame_info,
1851 dwarf2out_do_cfi_startproc, set_indirect_string,
1852 gen_internal_sym, output_die, output_line_info): Use
1853 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
1854 ASM_GENERATE_INTERNAL_LABEL output.
1855
1856 2016-10-01 Richard Biener <rguenther@suse.de>
1857
1858 PR middle-end/77798
1859 * genmatch.c (get_operand_type): Add operand position arg
1860 and handle COND_EXPR comparison operand with fixed boolean_type_node.
1861 (expr::gen_transform): Adjust.
1862 (dt_simplify::gen_1): Likewise.
1863
1864 2016-10-01 Jakub Jelinek <jakub@redhat.com>
1865
1866 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
1867 comments. Simplify asserts, remove unnecessary conditions.
1868 Formatting fixes.
1869 (*<code><mode>3): Likewise.
1870
1871 2016-09-30 Jakub Jelinek <jakub@redhat.com>
1872
1873 * doc/invoke.texi (-Wregister): Document.
1874
1875 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
1876
1877 * configure.ac: Split CHECKING_P into CHECKING_P and
1878 ENABLE_EXTRA_CHECKING.
1879 * configure: Regenerated.
1880 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
1881 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
1882
1883 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
1884
1885 PR other/31566
1886 * gcc.c (process_command): For @filename handling, output
1887 the correct name if the file does not exist.
1888
1889 2016-09-30 Marek Polacek <polacek@redhat.com>
1890
1891 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
1892 * config/alpha/predicates.md: Likewise.
1893
1894 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1895
1896 * ifcvt.c (noce_try_avoid_const_materialization): New function.
1897 (noce_process_if_block): Use it.
1898
1899 2016-09-30 Martin Liska <mliska@suse.cz>
1900
1901 * doc/invoke.texi: Document asan-use-after-return that
1902 it's disabled by default in runtime.
1903
1904 2016-09-30 Richard Biener <rguenther@suse.de>
1905
1906 * tree-vrp.c (intersect_ranges): If we failed to handle
1907 the intersection choose a constant singleton range if available.
1908
1909 2016-09-30 Richard Biener <rguenther@suse.de>
1910
1911 PR tree-optimization/77399
1912 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1913 float <-> int conversions.
1914
1915 2016-09-30 Alan Modra <amodra@gmail.com>
1916
1917 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
1918
1919 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
1920
1921 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
1922 ext_level before calling CPUID with 0x80000008.
1923 Simplify xgetbv checks.
1924
1925 2016-09-29 David Malcolm <dmalcolm@redhat.com>
1926
1927 * Makefile.in (OBJS): Add print-rtl-function.o.
1928 * print-rtl-function.c: New file.
1929 * print-rtl.h (print_rtx_function): New decl.
1930
1931 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
1932
1933 PR target/77756
1934 * config/i386/cpuid.h (__get_cpuid_count): New.
1935 (__get_cpuid): Rename __level to __leaf.
1936
1937 2016-09-29 Marek Polacek <polacek@redhat.com>
1938
1939 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
1940
1941 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
1942
1943 * builtins.c (expand_builtin_memcmp): don't swap args unless
1944 result is only being compared with zero.
1945
1946 2016-09-29 Marek Polacek <polacek@redhat.com>
1947
1948 * dwarf2out.c (loc_descriptor): Add fall through comment.
1949 (add_const_value_attribute): Likewise.
1950
1951 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
1952
1953 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
1954 with "v6t2". Move "arch" attribute above "pool_range".
1955 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
1956 with "v6t2".
1957 (*thumb2_movhi_vfp): Likewise.
1958 (*arm_movhi_fp16): Likewise.
1959 (*thumb2_movhi_fp16): Likewise.
1960 (*arm_movsi_vfp): Remove "arch" attribute.
1961 (*thumb2_movsi_vfp): Likewise.
1962
1963 2016-09-29 Martin Liska <mliska@suse.cz>
1964
1965 * doc/extend.texi: Remove limitation of Objective C for
1966 __attribute__((constructor)) and __attribute__((destructor)).
1967
1968 2016-09-29 Richard Biener <rguenther@suse.de>
1969
1970 PR tree-optimization/77768
1971 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1972 Handle stores to readonly memory when removing redundant stores.
1973
1974 2016-09-29 Richard Biener <rguenther@suse.de>
1975
1976 PR middle-end/77407
1977 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
1978 X / -X -> -1 simplifications.
1979
1980 2016-09-29 Richard Biener <rguenther@suse.de>
1981
1982 PR middle-end/55152
1983 * match.pd: Add max(a,-a) -> abs(a) pattern.
1984 * tree-ssa-phiopt.c (minmax_replacement): Disable for
1985 HONOR_SIGNED_ZEROS types.
1986
1987 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
1988
1989 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
1990 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
1991
1992 2016-09-29 Richard Biener <rguenther@suse.de>
1993
1994 * tree-vrp.c (set_defs_to_varying): New helper avoiding
1995 writing to vr_const_varying.
1996 (vrp_initialize): Call it.
1997 (vrp_visit_stmt): Likewise.
1998 (evrp_dom_walker::before_dom_children): Likewise.
1999
2000 2016-09-29 Richard Biener <rguenther@suse.de>
2001
2002 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
2003 constructors with vector elements.
2004
2005 2016-09-29 Richard Biener <rguenther@suse.de>
2006
2007 PR tree-optimization/77768
2008 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
2009 with stores to a place we know has a constant value.
2010
2011 2016-09-29 Alan Modra <amodra@gmail.com>
2012
2013 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
2014 * doc/invoke.texi: Document it.
2015 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
2016 (rs6000_passes_float): Comment.
2017 (rs6000_passes_long_double): New static var.
2018 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
2019 (init_cumulative_args): Set up to emit fp .gnu_attribute for
2020 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
2021 to include fp values returned in vectors.
2022 Set rs6000_passes_long_double.
2023 (rs6000_function_arg_advance_1): Likewise for function args.
2024 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
2025 and SPE. Emit long double tag value too.
2026 (rs6000_opt_vars): Add gnu-attr.
2027 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
2028 * configure: Regenerate.
2029 * config.in: Regenerate.
2030
2031 2016-09-28 Jakub Jelinek <jakub@redhat.com>
2032
2033 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
2034 of 0 < x.
2035 (format_floating, format_string, format_directive,
2036 get_destination_size, pass_sprintf_length::handle_gimple_call):
2037 Likewise.
2038
2039 2016-09-28 Jakub Jelinek <jakub@redhat.com>
2040
2041 * gimple-ssa-sprintf.c: Fix comment formatting.
2042 (format_integer): Use is_gimple_assign.
2043 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
2044 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
2045 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
2046 (pass_sprintf_length::execute): Use is_gimple_call.
2047
2048 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2049
2050 * gimple-fold.c (gimple_fold_builtin): After failing to fold
2051 strchr, also try the generic folding.
2052
2053 2016-09-28 Martin Sebor <msebor@redhat.com>
2054
2055 PR c/77762
2056 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
2057 Fix typos.
2058
2059 2016-09-28 Martin Sebor <msebor@redhat.com>
2060
2061 PR middle-end/77683
2062 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
2063 length modifier is not expected.
2064 (format_floating): Ignore l length modifier and fail gracefuly
2065 when it isn't one of the other expected ones.
2066
2067 2016-09-28 Martin Sebor <msebor@redhat.com>
2068
2069 PR bootstrap/77753
2070 * varasm.c (assemble_addr_to_section): Increase local buffer size.
2071
2072 2016-09-27 Richard Biener <rguenther@suse.de>
2073
2074 * dwarf2out.c (cu_die_list): New global.
2075 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
2076 main_comp_unit_die to cu_die_list if we created it.
2077 Move break_out_includes ...
2078 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
2079 the cu_die_list.
2080
2081 2016-09-28 Richard Biener <rguenther@suse.de>
2082
2083 * dwarf2out.c (struct die_struct): Add removed flag.
2084 (lookup_type_die): If the DIE is marked as removed, clear
2085 TYPE_SYMTAB_DIE and return NULL.
2086 (lookup_decl_die): If the DIE is marked as removed, remove it
2087 from the hash and return NULL.
2088 (mark_removed): New helper.
2089 (prune_unused_types_prune): Call it for removed DIEs.
2090 (gen_subprogram_die): Move the premark_used_types call to after
2091 DIEs for the functions scopes are generated.
2092 (process_scope_var): Do not re-create pruned types or type decls.
2093 Make sure to also re-parent type decls.
2094 (dwarf2out_finish): Move unused type pruning and debug_types
2095 handling ...
2096 (dwarf2out_early_finish): ... here.
2097
2098 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
2099
2100 * config/arc/arc-c.c: New file.
2101 * config/arc/arc-c.def: Likewise.
2102 * config/arc/t-arc: Likewise.
2103 * config.gcc: Include arc-c.o as c and cpp object.
2104 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
2105 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
2106 arc_cpu_cpp_builtins.
2107
2108 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
2109
2110 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
2111 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
2112
2113 2016-09-28 Nathan Sidwell <nathan@acm.org>
2114
2115 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
2116 printing.
2117
2118 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2119
2120 PR tree-optimization/61056
2121 * gimple-fold.c (gimple_fold_builtin_strchr):
2122 New function to optimize strchr (s, 0) to strlen.
2123 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
2124
2125 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
2126
2127 PR tree-optimization/77724
2128 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
2129 Add tree_fits_shwi_p check.
2130
2131 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2132
2133 * auto-inc-dec.c (try_merge): Remove break after return.
2134 * cselib.c (autoinc_split): Likewise.
2135 * explow.c (promote_mode): Likewise.
2136 * fixed-value.c (fixed_arithmetic): Likewise.
2137 * hsa.c (hsa_internal_fn::get_arity): Likewise.
2138 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
2139 * trans-mem.c (get_attrs_for): Likewise.
2140 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
2141 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
2142 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
2143 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
2144 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
2145 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
2146 * config/cris/cris.c (cris_op_str): Likewise.
2147 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
2148 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
2149
2150 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
2151
2152 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
2153 IFN_GOACC_REDUCTION_CODES): New.
2154 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
2155 ifn_goacc_reduction_kind): Use them.
2156 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
2157 of internal functions, when applicable.
2158
2159 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
2160
2161 * config/mips/constraints.md (d): Fix documentation.
2162 * doc/md.texi (Machine Constraints): Update accordingly.
2163
2164 2016-09-27 Richard Biener <rguenther@suse.de>
2165
2166 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
2167 cur_line_info_table initialization ...
2168 (dwarf2out_assembly_start): ... here.
2169
2170 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
2171
2172 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
2173 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
2174 (*thumb2_movhi_vfp): Likewise.
2175 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
2176 template. Expand predicable attribute to mark VMOV.F16 as not
2177 predicable. Add "arch" attribute.
2178 (*thumb2_movhi_fp16): Likewise.
2179 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
2180 (*thumb2_movsi_vfp): Add "arch" attribute.
2181
2182 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
2183
2184 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
2185 VAR_DECL string.
2186
2187 2016-09-27 Marek Polacek <polacek@redhat.com>
2188
2189 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
2190 comment.
2191
2192 * config/c6x/c6x.h: Adjust fall through comment.
2193 * config/sh/sh.c (final_prescan_insn): Likewise.
2194 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
2195 (visium_expand_fp_cstore): Likewise.
2196
2197 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2198
2199 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
2200 expected by -Wimplicit-fallthrough.
2201 (thumb1_size_rtx_costs): Likewise.
2202 (thumb2_reorg): Likewise.
2203 (tls_mentioned_p): Add "Fall through" comment.
2204 (thumb2_reorg): Likewise.
2205 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
2206 comment form expected by -Wimplicit-fallthrough.
2207
2208 2016-09-27 Martin Liska <mliska@suse.cz>
2209
2210 PR gcov-profile/46266
2211 * input.h (RESERVED_LOCATION_P): New macro.
2212 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
2213 instread of comparison with UNKNOWN_LOCATION.
2214
2215 2016-09-27 Richard Biener <rguenther@suse.de>
2216
2217 PR tree-optimization/77745
2218 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2219 When removing redundant stores make sure to check compatibility
2220 of the TBAA state for downstream accesses.
2221 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
2222 value-numbering virtual operands for store matches.
2223
2224 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
2225
2226 PR target/51244
2227 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
2228 movrt patterns. Match them before anything else in the SET case.
2229
2230 2016-09-27 Martin Liska <mliska@suse.cz>
2231
2232 PR gcov-profile/7970
2233 PR gcov-profile/16855
2234 PR gcov-profile/44779
2235 * coverage.c (build_gcov_exit_decl): New function.
2236 (coverage_obj_init): Call the function and generate __gcov_exit
2237 destructor.
2238 * doc/gcov.texi: Document when __gcov_exit function is called.
2239
2240 2016-09-27 Marek Polacek <polacek@redhat.com>
2241
2242 PR bootstrap/77751
2243 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2244 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
2245 -Wno-error instead of -Wno-implicit-fallthrough.
2246
2247 2016-09-27 Martin Liska <mliska@suse.cz>
2248
2249 PR bootstrap/77749
2250 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
2251
2252 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2253
2254 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
2255 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
2256 comments. Remove break after return.
2257 (ix86_fp_compare_code_to_integer, has_dispatch,
2258 ix86_simd_clone_usable): Remove break after return.
2259
2260 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2261
2262 PR rlt-optimization/77714
2263 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
2264 REG_EQUAL note.
2265
2266 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
2267
2268 PR ipa/77677
2269 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
2270 extract_range_from_unary_expr to convert value_range.
2271 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
2272 (extract_range_from_unary_expr): This.
2273 * tree-vrp.h (extract_range_from_unary_expr): Declare.
2274
2275 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
2276
2277 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
2278
2279 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2280
2281 * config/i386/i386.c (ix86_print_operand)
2282 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
2283 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
2284 (epilogue_renumber): Likewise.
2285
2286 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
2287
2288 PR middle-end/77719
2289 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
2290 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
2291
2292 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
2293
2294 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
2295 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
2296 is_mm_seq_cst, is_mm_sync): Move to ...
2297 * memmodel.h: This. New file.
2298 * builtins.c: Include memmodel.h.
2299 * optabs.c: Likewise.
2300 * tsan.c: Likewise.
2301 * config/aarch64/aarch64.c: Likewise.
2302 * config/alpha/alpha.c: Likewise.
2303 * config/arm/arm.c: Likewise.
2304 * config/i386/i386.c: Likewise.
2305 * config/ia64/ia64.c: Likewise.
2306 * config/mips/mips.c: Likewise.
2307 * config/rs6000/rs6000.c: Likewise.
2308 * config/sparc/sparc.c: Likewise.
2309 * genconditions.c: Include memmodel.h in generated file.
2310 * genemit.c: Likewise.
2311 * genoutput.c: Likewise.
2312 * genpeep.c: Likewise.
2313 * genpreds.c: Likewise.
2314 * genrecog.c: Likewise.
2315
2316 2016-09-26 David Malcolm <dmalcolm@redhat.com>
2317
2318 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
2319 "c" instead when parsing characters. Move operand parsing into...
2320 (read_rtx_operand): ...this new function, renaming "i" to "idx",
2321 and tightening the scope of various locals.
2322
2323 2016-09-26 Liu Hao <lh_mouse@126.com>
2324
2325 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
2326
2327 2016-09-26 Marek Polacek <polacek@redhat.com>
2328
2329 * system.h: Use __has_attribute to check whether the fallthrough
2330 attribute is supported.
2331
2332 2016-09-26 Marek Polacek <polacek@redhat.com>
2333
2334 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
2335 gimple_call_internal_p.
2336 * ipa-split.c (find_return_bb): Likewise.
2337 (execute_split_functions): Likewise.
2338 * omp-low.c (dump_oacc_loop_part): Likewise.
2339 (oacc_loop_xform_head_tail): Likewise.
2340 * predict.c (predict_loops): Likewise.
2341 * sanopt.c (pass_sanopt::execute): Likewise.
2342 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
2343 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
2344 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
2345 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
2346 (expand_ifn_va_arg): Likewise.
2347 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
2348 (optimize_mask_stores): Likewise.
2349 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
2350 (vect_transform_stmt): Likewise.
2351 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
2352 * tsan.c (instrument_memory_accesses): Likewise.
2353
2354 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2355 Alexander Monakov <amonakov@ispras.ru>
2356
2357 * regrename.c (rename_chains): Check
2358 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
2359 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
2360 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2361
2362 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2363
2364 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
2365 (s390_sched_score): Likewise.
2366
2367 2016-09-26 Martin Liska <mliska@suse.cz>
2368
2369 * doc/gcov.texi: Update program output of gcov tool.
2370
2371 2016-09-26 Martin Liska <mliska@suse.cz>
2372
2373 PR gcov-profile/23332
2374 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
2375 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
2376 * value-prof.c (dump_histogram_value): Do not handle
2377 HIST_TYPE_CONST_DELTA.
2378 (stream_in_histogram_value): Likewise.
2379 (gimple_find_values_to_profile): Likewise.
2380 * value-prof.h (enum hist_type): Likewise.
2381
2382 2016-09-26 Martin Liska <mliska@suse.cz>
2383
2384 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
2385 from default sanitize recover values.
2386 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
2387 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
2388 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
2389 consistent.
2390 * opts.c (finish_options): Do a generic loop over options
2391 that can be recovered.
2392 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
2393 SANITIZE_RETURN.
2394 (common_handle_option): Likewise.
2395 * opts.h: Declare can_recover to sanitizer_opts_s.
2396
2397 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
2398
2399 * target.def(elf_flags_numeric): Change documentation to present tense.
2400 * doc/tm.texi: Regenerate.
2401
2402 2016-09-26 Marek Polacek <polacek@redhat.com>
2403
2404 PR c/7652
2405 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2406 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
2407 -Wno-switch-fallthrough.
2408 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
2409 (expand_builtin): Likewise.
2410 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
2411 * convert.c (convert_to_real_1): Likewise.
2412 (convert_to_integer_1): Likewise.
2413 * final.c (output_alternate_entry_point): Likewise.
2414 * genattrtab.c (make_canonical): Likewise.
2415 (write_test_expr): Likewise.
2416 * genpreds.c (validate_exp): Likewise.
2417 * gimple-ssa-strength-reduction.c
2418 (find_candidates_dom_walker::before_dom_children): Likewise.
2419 * godump.c (go_format_type): Likewise.
2420 * reload1.c (elimination_effects): Likewise.
2421 * resource.c (mark_referenced_resources): Likewise.
2422 (mark_set_resources): Likewise.
2423 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
2424 * varasm.c (output_addressed_constants): Likewise.
2425
2426 2016-09-26 Marek Polacek <polacek@redhat.com>
2427
2428 PR c/7652
2429 * common.opt (Wimplicit-fallthrough): New option.
2430 * doc/extend.texi: Document statement attributes and the fallthrough
2431 attribute.
2432 * doc/invoke.texi: Document -Wimplicit-fallthrough.
2433 * gimple.h (gimple_call_internal_p): New function.
2434 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
2435 (struct label_entry): New struct.
2436 (find_label_entry): New function.
2437 (case_label_p): New function.
2438 (collect_fallthrough_labels): New function.
2439 (last_stmt_in_scope): New function.
2440 (should_warn_for_implicit_fallthrough): New function.
2441 (warn_implicit_fallthrough_r): New function.
2442 (maybe_warn_implicit_fallthrough): New function.
2443 (expand_FALLTHROUGH_r): New function.
2444 (expand_FALLTHROUGH): New function.
2445 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
2446 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
2447 (gimplify_label_expr): New function.
2448 (gimplify_case_label_expr): Set location.
2449 (gimplify_expr): Call gimplify_label_expr.
2450 * internal-fn.c (expand_FALLTHROUGH): New function.
2451 * internal-fn.def (FALLTHROUGH): New internal function.
2452 * langhooks.c (lang_GNU_OBJC): New function.
2453 * langhooks.h (lang_GNU_OBJC): Declare.
2454 * system.h (gcc_fallthrough): Define.
2455 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
2456 * tree.h (FALLTHROUGH_LABEL_P): Define.
2457
2458 2016-09-26 Richard Biener <rguenther@suse.de>
2459
2460 * dwarf2out.c (stripattributes): Remove unused function.
2461 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
2462 Push dwarf_split_debug_info handling into init_sections_and_labels.
2463 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
2464 (DEBUG_MACRO_SECTION_FLAGS): Remove.
2465 (debug_macinfo_section_name): New global.
2466 (output_macinfo): Use debug_macinfo_section_name.
2467 (init_sections_and_labels): Split out section and label generation
2468 from dwarf2out_init. Set debug_macinfo_section_name.
2469 (dwarf2out_init): Move text section label generation and emission
2470 to ...
2471 (dwarf2out_assembly_start): ... here.
2472 (dwarf2out_finish): Call init_sections_and_labels before DWARF
2473 output starts.
2474
2475 2016-09-26 Richard Biener <rguenther@suse.de>
2476
2477 PR debug/77692
2478 * cgraphunit.c (analyze_functions): Before early removing
2479 global vars calls the late_global_decl debug handler mark
2480 the variable as readonly.
2481
2482 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
2483
2484 PR target/51244
2485 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
2486 (sh_rtx_costs): Handle SET of movt and movrt patterns.
2487 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
2488 declare new overloads.
2489 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
2490 operand.
2491
2492 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2493
2494 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
2495 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
2496
2497 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
2498
2499 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
2500 * configure: Regenerate.
2501
2502 2016-09-24 Marek Polacek <polacek@redhat.com>
2503
2504 PR c/77490
2505 * doc/invoke.texi: Document -Wbool-operation.
2506
2507 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2508
2509 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
2510 * config/rs6000/rs6000.c (expand_block_compare): New function used by
2511 cmpmemsi pattern to do builtin expansion of memcmp ().
2512 (compute_current_alignment): Add helper function for
2513 expand_block_compare used to compute alignment as the compare proceeds.
2514 (select_block_compare_mode): Used by expand_block_compare to select
2515 the mode used for reading the next chunk of bytes in the compare.
2516 (do_load_for_compare): Used by expand_block_compare to emit the load
2517 insns for the compare.
2518 (rs6000_emit_dot_insn): Moved this function to avoid a forward
2519 reference from expand_block_compare ().
2520 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
2521 prototype for this function.
2522 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
2523 target option for controlling how much code inline expansion of
2524 memcmp() will be allowed to generate.
2525
2526 2016-09-23 Jakub Jelinek <jakub@redhat.com>
2527
2528 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
2529 hook_bool_mode_false, hook_bool_mode_true,
2530 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
2531 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
2532 hook_bool_const_rtx_insn_const_rtx_insn_true,
2533 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
2534 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
2535 hook_bool_const_tree_hwi_hwi_const_tree_false,
2536 hook_bool_const_tree_hwi_hwi_const_tree_true,
2537 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
2538 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
2539 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
2540 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
2541 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
2542 hook_bool_const_tree_true, hook_bool_tree_tree_false,
2543 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
2544 hook_bool_rtx_insn_true, hook_bool_rtx_false,
2545 hook_bool_uintp_uintp_false,
2546 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
2547 hook_rtx_tree_int_null, hook_uint_mode_0,
2548 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
2549 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
2550 hook_constcharptr_const_rtx_insn_null,
2551 hook_constcharptr_const_tree_const_tree_null,
2552 hook_constcharptr_int_const_tree_null,
2553 hook_constcharptr_int_const_tree_const_tree_null,
2554 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
2555 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
2556 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
2557
2558 * vec.h (vNULL): Extend comment to say = vNULL initialization
2559 isn't needed for static vars.
2560
2561 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
2562 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
2563 = vNULL initialization of file scope vec.
2564 * passes.c (pass_tab, enabled_pass_uid_range_tab,
2565 disabled_pass_uid_range_tab): Likewise.
2566 * haifa-sched.c (sched_luids, h_i_d): Likewise.
2567 * tree-chkp-opt.c (check_infos): Likewise.
2568 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
2569
2570 * vec.h (vnull::operator vec): Add constexpr keyword for
2571 C++11 and later.
2572
2573 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
2574
2575 PR tree-optimization/77654
2576 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
2577 to duplicate_ssa_name_ptr_info.
2578
2579 2016-09-23 David Malcolm <dmalcolm@redhat.com>
2580
2581 PR preprocessor/77672
2582 * input.c (selftest::test_lexer_string_locations_simple): Update
2583 test to expect location information of the terminator character
2584 at the location of the final closing quote.
2585 (selftest::test_lexer_string_locations_hex): Likewise.
2586 (selftest::test_lexer_string_locations_oct): Likewise.
2587 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
2588 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
2589 (selftest::test_lexer_string_locations_ucn4): Likewise.
2590 (selftest::test_lexer_string_locations_ucn8): Likewise.
2591 (selftest::test_lexer_string_locations_u8): Likewise.
2592 (selftest::test_lexer_string_locations_utf8_source): Likewise.
2593 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
2594 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
2595 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
2596 (selftest::test_lexer_string_locations_macro): Likewise.
2597 (selftest::test_lexer_string_locations_long_line): Likewise.
2598
2599 2016-09-23 Richard Biener <rguenther@suse.de>
2600
2601 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
2602 virtual definition to virtual use if the call devirtualizes
2603 to a const or pure function.
2604 (visit_use): Also visit calls we can devirtualize to a
2605 const or pure function.
2606
2607 2016-09-23 Richard Biener <rguenther@suse.de>
2608
2609 PR tree-optimization/77697
2610 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
2611 signal error if we have sth ternary or unhandled.
2612
2613 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2614
2615 * config/arm/arm_neon.h (vabd_f16): New.
2616 (vabdq_f16): New.
2617 (vabs_f16): New.
2618 (vabsq_f16): New.
2619 (vadd_f16): New.
2620 (vaddq_f16): New.
2621 (vcage_f16): New.
2622 (vcageq_f16): New.
2623 (vcagt_f16): New.
2624 (vcagtq_f16): New.
2625 (vcale_f16): New.
2626 (vcaleq_f16): New.
2627 (vcalt_f16): New.
2628 (vcaltq_f16): New.
2629 (vceq_f16): New.
2630 (vceqq_f16): New.
2631 (vceqz_f16): New.
2632 (vceqzq_f16): New.
2633 (vcge_f16): New.
2634 (vcgeq_f16): New.
2635 (vcgez_f16): New.
2636 (vcgezq_f16): New.
2637 (vcgt_f16): New.
2638 (vcgtq_f16): New.
2639 (vcgtz_f16): New.
2640 (vcgtzq_f16): New.
2641 (vcle_f16): New.
2642 (vcleq_f16): New.
2643 (vclez_f16): New.
2644 (vclezq_f16): New.
2645 (vclt_f16): New.
2646 (vcltq_f16): New.
2647 (vcltz_f16): New.
2648 (vcltzq_f16): New.
2649 (vcvt_f16_s16): New.
2650 (vcvt_f16_u16): New.
2651 (vcvt_s16_f16): New.
2652 (vcvt_u16_f16): New.
2653 (vcvtq_f16_s16): New.
2654 (vcvtq_f16_u16): New.
2655 (vcvtq_s16_f16): New.
2656 (vcvtq_u16_f16): New.
2657 (vcvta_s16_f16): New.
2658 (vcvta_u16_f16): New.
2659 (vcvtaq_s16_f16): New.
2660 (vcvtaq_u16_f16): New.
2661 (vcvtm_s16_f16): New.
2662 (vcvtm_u16_f16): New.
2663 (vcvtmq_s16_f16): New.
2664 (vcvtmq_u16_f16): New.
2665 (vcvtn_s16_f16): New.
2666 (vcvtn_u16_f16): New.
2667 (vcvtnq_s16_f16): New.
2668 (vcvtnq_u16_f16): New.
2669 (vcvtp_s16_f16): New.
2670 (vcvtp_u16_f16): New.
2671 (vcvtpq_s16_f16): New.
2672 (vcvtpq_u16_f16): New.
2673 (vcvt_n_f16_s16): New.
2674 (vcvt_n_f16_u16): New.
2675 (vcvtq_n_f16_s16): New.
2676 (vcvtq_n_f16_u16): New.
2677 (vcvt_n_s16_f16): New.
2678 (vcvt_n_u16_f16): New.
2679 (vcvtq_n_s16_f16): New.
2680 (vcvtq_n_u16_f16): New.
2681 (vfma_f16): New.
2682 (vfmaq_f16): New.
2683 (vfms_f16): New.
2684 (vfmsq_f16): New.
2685 (vmax_f16): New.
2686 (vmaxq_f16): New.
2687 (vmaxnm_f16): New.
2688 (vmaxnmq_f16): New.
2689 (vmin_f16): New.
2690 (vminq_f16): New.
2691 (vminnm_f16): New.
2692 (vminnmq_f16): New.
2693 (vmul_f16): New.
2694 (vmul_lane_f16): New.
2695 (vmul_n_f16): New.
2696 (vmulq_f16): New.
2697 (vmulq_lane_f16): New.
2698 (vmulq_n_f16): New.
2699 (vneg_f16): New.
2700 (vnegq_f16): New.
2701 (vpadd_f16): New.
2702 (vpmax_f16): New.
2703 (vpmin_f16): New.
2704 (vrecpe_f16): New.
2705 (vrecpeq_f16): New.
2706 (vrnd_f16): New.
2707 (vrndq_f16): New.
2708 (vrnda_f16): New.
2709 (vrndaq_f16): New.
2710 (vrndm_f16): New.
2711 (vrndmq_f16): New.
2712 (vrndn_f16): New.
2713 (vrndnq_f16): New.
2714 (vrndp_f16): New.
2715 (vrndpq_f16): New.
2716 (vrndx_f16): New.
2717 (vrndxq_f16): New.
2718 (vrsqrte_f16): New.
2719 (vrsqrteq_f16): New.
2720 (vrecps_f16): New.
2721 (vrecpsq_f16): New.
2722 (vrsqrts_f16): New.
2723 (vrsqrtsq_f16): New.
2724 (vsub_f16): New.
2725 (vsubq_f16): New.
2726
2727 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2728
2729 * config.gcc (extra_headers): Add arm_fp16.h
2730 * config/arm/arm_fp16.h: New.
2731 * config/arm/arm_neon.h: Include "arm_fp16.h".
2732
2733 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2734
2735 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
2736 variants).
2737 (vmulf): New (v8hf, v4hf variants).
2738 (vfma): New (v8hf, v4hf variants).
2739 (vfms): New (v8hf, v4hf variants).
2740 (vsub): New (v8hf, v4hf variants).
2741 (vcage): New (v8hf, v4hf variants).
2742 (vcagt): New (v8hf, v4hf variants).
2743 (vcale): New (v8hf, v4hf variants).
2744 (vcalt): New (v8hf, v4hf variants).
2745 (vceq): New (v8hf, v4hf variants).
2746 (vcgt): New (v8hf, v4hf variants).
2747 (vcge): New (v8hf, v4hf variants).
2748 (vcle): New (v8hf, v4hf variants).
2749 (vclt): New (v8hf, v4hf variants).
2750 (vceqz): New (v8hf, v4hf variants).
2751 (vcgez): New (v8hf, v4hf variants).
2752 (vcgtz): New (v8hf, v4hf variants).
2753 (vcltz): New (v8hf, v4hf variants).
2754 (vclez): New (v8hf, v4hf variants).
2755 (vabd): New (v8hf, v4hf variants).
2756 (vmaxf): New (v8hf, v4hf variants).
2757 (vmaxnm): New (v8hf, v4hf variants).
2758 (vminf): New (v8hf, v4hf variants).
2759 (vminnm): New (v8hf, v4hf variants).
2760 (vpmaxf): New (v4hf variant).
2761 (vpminf): New (v4hf variant).
2762 (vpadd): New (v4hf variant).
2763 (vrecps): New (v8hf, v4hf variants).
2764 (vrsqrts): New (v8hf, v4hf variants).
2765 (vabs): New (v8hf, v4hf variants).
2766 (vneg): New (v8hf, v4hf variants).
2767 (vrecpe): New (v8hf, v4hf variants).
2768 (vrnd): New (v8hf, v4hf variants).
2769 (vrnda): New (v8hf, v4hf variants).
2770 (vrndm): New (v8hf, v4hf variants).
2771 (vrndn): New (v8hf, v4hf variants).
2772 (vrndp): New (v8hf, v4hf variants).
2773 (vrndx): New (v8hf, v4hf variants).
2774 (vrsqrte): New (v8hf, v4hf variants).
2775 (vmul_lane): Add v4hf and v8hf variants.
2776 (vmul_n): Add v4hf and v8hf variants.
2777 (vext): New (v8hf, v4hf variants).
2778 (vcvts): New (v8hi, v4hi variants).
2779 (vcvts): New (v8hf, v4hf variants).
2780 (vcvtu): New (v8hi, v4hi variants).
2781 (vcvtu): New (v8hf, v4hf variants).
2782 (vcvts_n): New (v8hf, v4hf variants).
2783 (vcvtu_n): New (v8hi, v4hi variants).
2784 (vcvts_n): New (v8hi, v4hi variants).
2785 (vcvtu_n): New (v8hf, v4hf variants).
2786 (vbsl): New (v8hf, v4hf variants).
2787 (vcvtas): New (v8hf, v4hf variants).
2788 (vcvtau): New (v8hf, v4hf variants).
2789 (vcvtms): New (v8hf, v4hf variants).
2790 (vcvtmu): New (v8hf, v4hf variants).
2791 (vcvtns): New (v8hf, v4hf variants).
2792 (vcvtnu): New (v8hf, v4hf variants).
2793 (vcvtps): New (v8hf, v4hf variants).
2794 (vcvtpu): New (v8hf, v4hf variants).
2795
2796 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2797
2798 * config/arm/arm-builtins.c (hf_UP): New.
2799 (si_UP): New.
2800 (vfp_builtin_data): New. Update comment.
2801 (enum arm_builtins): Include "arm_vfp_builtins.def".
2802 (ARM_BUILTIN_VFP_PATTERN_START): New.
2803 (arm_init_vfp_builtins): New.
2804 (arm_init_builtins): Add arm_init_vfp_builtins.
2805 (arm_expand_vfp_builtin): New.
2806 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
2807 long line.
2808 * config/arm/arm_vfp_builtins.def: New file.
2809 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
2810 (arm-builtins.o): Likewise.
2811
2812 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2813
2814 PR ipa/77677
2815 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
2816 from constant while creating value range.
2817
2818 2016-09-23 Renlin Li <renlin.li@arm.com>
2819
2820 * ira.c (ira): Move ira_use_lra_p initialization code to ...
2821 (ira_init_once): Here.
2822
2823 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
2824 Jakub Jelinek <jakub@redhat.com>
2825
2826 * hooks.h (hook_uint_uintp_false): Rename to...
2827 (hook_bool_uint_uintp_false): ... this.
2828 * hooks.c (hook_uint_uintp_false): Rename to...
2829 (hook_bool_uint_uintp_false): ... this.
2830 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
2831 instead of hook_uint_uintp_false.
2832
2833 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2834
2835 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
2836 (arm_init_builtins): Move body of a loop to the standalone
2837 function arm_init_neon_builtin.
2838 (arm_expand_neon_builtin_1): New. Update comment. Function body
2839 moved from arm_neon_builtin with some white-space fixes.
2840 (arm_expand_neon_builtin): Move code into the standalone function
2841 arm_expand_neon_builtin_1.
2842
2843 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2844
2845 * config/arm/iterators.md (VCVTHI): New.
2846 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
2847 (NEON_VAGLTE): New.
2848 (VFM_LANE_AS): New.
2849 (VH_CVTTO): New.
2850 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
2851 (V_HALF): Add V4HF. Fix white-space.
2852 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
2853 (V_s_elem): Likewise.
2854 (V_sz_elem): Fix white-space.
2855 (V_elem_ch): Likewise.
2856 (VH_elem_ch): New.
2857 (scalar_mul_constraint): Add V8HF and V4HF.
2858 (Is_float_mode): Fix white-space.
2859 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
2860 (q): Add HF. Fix white-space.
2861 (float_sup): New.
2862 (float_SUP): New.
2863 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
2864 (neon_vfm_lane_as): New.
2865 * config/arm/neon.md (add<mode>3_fp16): New.
2866 (sub<mode>3_fp16): New.
2867 (mul<mode>3add<mode>_neon): New.
2868 (fma<VH:mode>4_intrinsic): New.
2869 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
2870 (fmsub<VH:mode>4_intrinsic): New.
2871 (<absneg_str><mode>2): New.
2872 (neon_v<absneg_str><mode>): New.
2873 (neon_v<fp16_rnd_str><mode>): New.
2874 (neon_vrsqrte<mode>): New.
2875 (neon_vpaddv4hf): New.
2876 (neon_vadd<mode>): New.
2877 (neon_vsub<mode>): New.
2878 (neon_vmulf<mode>): New.
2879 (neon_vfma<VH:mode>): New.
2880 (neon_vfms<VH:mode>): New.
2881 (neon_vc<cmp_op><mode>): New.
2882 (neon_vc<cmp_op><mode>_fp16insn): New
2883 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
2884 (neon_vca<cmp_op><mode>): New.
2885 (neon_vca<cmp_op><mode>_fp16insn): New.
2886 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
2887 (neon_vc<cmp_op>z<mode>): New.
2888 (neon_vabd<mode>): New.
2889 (neon_v<maxmin>f<mode>): New.
2890 (neon_vp<maxmin>fv4hf: New.
2891 (neon_<fmaxmin_op><mode>): New.
2892 (neon_vrecps<mode>): New.
2893 (neon_vrsqrts<mode>): New.
2894 (neon_vrecpe<mode>): New (VH variant).
2895 (neon_vdup_lane<mode>_internal): New.
2896 (neon_vdup_lane<mode>): New.
2897 (neon_vcvt<sup><mode>): New (VCVTHI variant).
2898 (neon_vcvt<sup><mode>): New (VH variant).
2899 (neon_vcvt<sup>_n<mode>): New (VH variant).
2900 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
2901 (neon_vcvt<vcvth_op><sup><mode>): New.
2902 (neon_vmul_lane<mode>): New.
2903 (neon_vmul_n<mode>): New.
2904 * config/arm/unspecs.md (UNSPEC_VCALE): New
2905 (UNSPEC_VCALT): New.
2906 (UNSPEC_VFMA_LANE): New.
2907 (UNSPECS_VFMS_LANE): New.
2908
2909 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2910
2911 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
2912 ("*extzv<mode><clobbercc_or_nocc>"):
2913 Correct a typo in a comment.
2914 Merged patterns.
2915 ("*insv<mode>_zEC12", "*insv<mode>_z10")
2916 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
2917 ("*insv<mode>_zEC12_appendbitsleft")
2918 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
2919 ("*insv<mode>_z10_appendbitsleft"): Ditto.
2920 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
2921 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
2922 Provide pattern with operands switched.
2923 ("*pre_z10_extv<mode>"):
2924 Use new subst patterns.
2925 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
2926 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
2927 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
2928 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
2929 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
2930 ("*<risbg_n>_sidi_ior_and_lshiftrt")
2931 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
2932 New patterns.
2933 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
2934 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
2935 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
2936 on zEC12.
2937 ("SINT"): New mode_iterator with SI, HI, QI.
2938 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
2939 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
2940 duplication.
2941
2942 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2943
2944 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
2945 new interface of s390_contiguous_bitmask_p.
2946 ("contiguous_bitmask_nowrap_operand"): New predicate.
2947 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
2948 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
2949 of s390_contiguous_bitmask_p.
2950 ("NxxDw"): Rename NxxDq constraint to NxxDw.
2951 ("NxxSw"): New constraint.
2952 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
2953 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
2954 interface.
2955 (s390_contiguous_bitmask_nowrap_p): Export.
2956 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
2957 former s390_contiguous_bitmask_p.
2958 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
2959 detect contiguous bit ranges with wraparound. Change signature to
2960 return START and END position instead of POS and LENGTH.
2961 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
2962 ranges with wraparound.
2963 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
2964 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
2965 Adapt to new signature of s390_contiguous_bitmask_p.
2966
2967 2016-09-23 Bin Cheng <bin.cheng@arm.com>
2968
2969 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
2970 (create_intersect_range_checks): New.
2971 (vect_create_cond_for_alias_checks): Call above function.
2972
2973 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2974
2975 * config/arm/iterators.md (Code iterators): Fix some white-space
2976 in the comments.
2977 (GLTE): New.
2978 (ABSNEG): New
2979 (FCVT): Moved from vfp.md.
2980 (VCVT_HF_US_N): New.
2981 (VCVT_SI_US_N): New.
2982 (VCVT_HF_US): New.
2983 (VCVTH_US): New.
2984 (FP16_RND): New.
2985 (absneg_str): New.
2986 (FCVTI32typename): Moved from vfp.md.
2987 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
2988 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
2989 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
2990 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
2991 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
2992 (vcvth_op): New.
2993 (fp16_rnd_str): New.
2994 (fp16_rnd_insn): New.
2995 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
2996 (UNSPEC_VCVT_HF_U_N): New.
2997 (UNSPEC_VCVT_SI_S_N): New.
2998 (UNSPEC_VCVT_SI_U_N): New.
2999 (UNSPEC_VCVTH_S): New.
3000 (UNSPEC_VCVTH_U): New.
3001 (UNSPEC_VCVTA_S): New.
3002 (UNSPEC_VCVTA_U): New.
3003 (UNSPEC_VCVTM_S): New.
3004 (UNSPEC_VCVTM_U): New.
3005 (UNSPEC_VCVTN_S): New.
3006 (UNSPEC_VCVTN_U): New.
3007 (UNSPEC_VCVTP_S): New.
3008 (UNSPEC_VCVTP_U): New.
3009 (UNSPEC_VCVTP_S): New.
3010 (UNSPEC_VCVTP_U): New.
3011 (UNSPEC_VRND): New.
3012 (UNSPEC_VRNDA): New.
3013 (UNSPEC_VRNDI): New.
3014 (UNSPEC_VRNDM): New.
3015 (UNSPEC_VRNDN): New.
3016 (UNSPEC_VRNDP): New.
3017 (UNSPEC_VRNDX): New.
3018 * config/arm/vfp.md (<absneg_str>hf2): New.
3019 (neon_vabshf): New.
3020 (neon_v<fp16_rnd_str>hf): New.
3021 (neon_vrndihf): New.
3022 (addhf3): New.
3023 (subhf3): New.
3024 (divhf3): New.
3025 (mulhf3): New.
3026 (*mulsf3neghf_vfp): New.
3027 (*negmulhf3_vfp): New.
3028 (*mulsf3addhf_vfp): New.
3029 (*mulhf3subhf_vfp): New.
3030 (*mulhf3neghfaddhf_vfp): New.
3031 (*mulhf3neghfsubhf_vfp): New.
3032 (fmahf4): New.
3033 (neon_vfmahf): New.
3034 (fmsubhf4_fp16): New.
3035 (neon_vfmshf): New.
3036 (*fnmsubhf4): New.
3037 (*fnmaddhf4): New.
3038 (neon_vsqrthf): New.
3039 (neon_vrsqrtshf): New.
3040 (FCVT): Move to iterators.md.
3041 (FCVTI32typename): Likewise.
3042 (neon_vcvth<sup>hf): New.
3043 (neon_vcvth<sup>si): New.
3044 (neon_vcvth<sup>_nhf_unspec): New.
3045 (neon_vcvth<sup>_nhf): New.
3046 (neon_vcvth<sup>_nsi_unspec): New.
3047 (neon_vcvth<sup>_nsi): New.
3048 (neon_vcvt<vcvth_op>h<sup>si): New.
3049 (neon_<fmaxmin_op>hf): New.
3050
3051 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3052
3053 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
3054 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
3055 ("*insv<mode>_zEC12_appendbitsleft")
3056 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
3057 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
3058
3059 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3060
3061 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
3062 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
3063 construct values without normalization.
3064 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
3065 static local lhs_ops to vNULL.
3066
3067 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3068 Jiong Wang <jiong.wang@arm.com>
3069
3070 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
3071 available when FP16 instructions are available.
3072 (output_move_vfp): Add support for 16-bit data moves.
3073 (arm_validize_comparison): Fix some white-space. Support HFmode
3074 by conversion to SFmode.
3075 * config/arm/arm.md (truncdfhf2): Fix a comment.
3076 (extendhfdf2): Likewise.
3077 (cstorehf4): New.
3078 (movsicc): Fix some white-space.
3079 (movhfcc): New.
3080 (movsfcc): Fix some white-space.
3081 (*cmovhf): New.
3082 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
3083 instructions are available.
3084 (*thumb2_movhi_vfp): Likewise.
3085 (*arm_movhi_fp16): New.
3086 (*thumb2_movhi_fp16): New.
3087 (*movhf_vfp_fp16): New.
3088 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
3089 (*movhf_vfp): Likewise.
3090 (extendhfsf2): Enable when VFP FP16 instructions are available.
3091 (truncsfhf2): Enable when VFP FP16 instructions are available.
3092
3093 2016-09-23 Martin Liska <mliska@suse.cz>
3094
3095 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
3096
3097 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3098
3099 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
3100 V4HF modes.
3101 (arm_evpc_neon_vtrn): Likewise.
3102 (arm_evpc_neon_vrev): Likewise.
3103 (arm_evpc_neon_vext): Likewise.
3104 * config/arm/arm_neon.h (vbsl_f16): New.
3105 (vbslq_f16): New.
3106 (vdup_n_f16): New.
3107 (vdupq_n_f16): New.
3108 (vdup_lane_f16): New.
3109 (vdupq_lane_f16): New.
3110 (vext_f16): New.
3111 (vextq_f16): New.
3112 (vmov_n_f16): New.
3113 (vmovq_n_f16): New.
3114 (vrev64_f16): New.
3115 (vrev64q_f16): New.
3116 (vtrn_f16): New.
3117 (vtrnq_f16): New.
3118 (vuzp_f16): New.
3119 (vuzpq_f16): New.
3120 (vzip_f16): New.
3121 (vzipq_f16): New.
3122 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
3123 (vdup_lane): New (v8hf, v4hf variants).
3124 (vext): New (v8hf, v4hf variants).
3125 (vbsl): New (v8hf, v4hf variants).
3126 * config/arm/iterators.md (VDQWH): New.
3127 (VH): New.
3128 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
3129 (Scalar_mul_8_16): Fix white-space.
3130 (Is_d_reg): Add V4HF and V8HF.
3131 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
3132 (neon_vdup_lane<mode>): New.
3133 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
3134 (*neon_vtrn<mode>_insn): Likewise.
3135 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
3136 (*neon_vzip<mode>_insn): Likewise
3137 (neon_vuzp<mode>_internal): Likewise.
3138 (*neon_vuzp<mode>_insn): Likewise
3139 * config/arm/vec-common.md (vec_perm_const<mode>): New.
3140
3141 2016-09-23 Jiong Wang <jiong.wang@arm.com>
3142 Matthew Wahab <matthew.wahab@arm.com>
3143
3144 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
3145 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
3146 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
3147 available. Also fix some white-space.
3148 * config/arm/vfp.md (*arm_movhi_vfp): New.
3149 (*thumb2_movhi_vfp): New.
3150
3151 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3152
3153 * config/arm/arm-c.c (arm_cpu_builtins): Define
3154 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
3155 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
3156
3157 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3158
3159 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
3160 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
3161 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
3162 arm_v8_2a_fp16_neon_hw.
3163 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
3164 arm_v8_2a_neon.
3165
3166 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3167
3168 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
3169 arm_fp16_alternative_ok and arm_fp16_none_ok.
3170
3171 2016-09-23 Martin Liska <mliska@suse.cz>
3172
3173 * ipa-icf.c (sem_variable::merge): Replace adress with address.
3174
3175 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3176
3177 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
3178 ("armv8.2-a"): New.
3179 ("armv8.2-a+fp16"): New.
3180 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
3181 (FL2_FP16INST): New.
3182 (FL2_FOR_ARCH8_2A): New.
3183 * config/arm/arm-tables.opt: Regenerate.
3184 * config/arm/arm.c (arm_arch8_2): New.
3185 (arm_fp16_inst): New.
3186 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
3187 for incompatible fp16-format settings.
3188 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
3189 (TARGET_NEON_FP16INST): New.
3190 (arm_arch8_2): Declare.
3191 (arm_fp16_inst): Declare.
3192 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
3193 march=armv8.2-a and march=armv8.2-a+fp16.
3194 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
3195 and armv8.2-a+fp16.
3196 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
3197 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
3198
3199 2016-09-23 Martin Liska <mliska@suse.cz>
3200
3201 * doc/extend.texi: Remove fused-madd from i386 target options.
3202
3203 2016-09-23 Martin Liska <mliska@suse.cz>
3204
3205 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3206 Handle movbe.
3207
3208 2016-09-23 Martin Liska <mliska@suse.cz>
3209
3210 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3211 Handle crc32.
3212
3213 2016-09-23 Martin Liska <mliska@suse.cz>
3214
3215 PR target/71652
3216 * config/i386/i386.c (ix86_option_override_internal): Change
3217 signature and return false when there's an error related to
3218 arch string.
3219 (release_options_strings): New function.
3220 (ix86_valid_target_attribute_tree): Call the function.
3221
3222 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3223
3224 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
3225 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
3226 (gen_hsa_ctor_assignment): Likewise.
3227 * print-tree.c (print_node): Likewise.
3228 * tree-dump.c (dequeue_and_dump): Likewise.
3229 * tree-sra.c (sra_modify_constructor_assign): Likewise.
3230 * expr.c (store_constructor): Likewise.
3231 * fold-const.c (operand_equal_p): Likewise.
3232 * tree-pretty-print.c (dump_generic_node): Likewise.
3233 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
3234 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
3235
3236 2016-09-23 Richard Biener <rguenther@suse.de>
3237
3238 * hooks.h (hook_uint_uintp_false): Declare.
3239
3240 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3241
3242 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
3243 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
3244
3245 2016-09-22 Martin Sebor <msebor@redhat.com>
3246
3247 PR target/77676
3248 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
3249 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
3250 (target_int_min): Correct computation.
3251 (format_integer): Use long long as the argument for the ll length
3252 modifier.
3253 (format_floating): Use target_int_max().
3254 (get_string_length): Same.
3255 (format_string): Avoid setting the bounded flag for strings
3256 of unknown length.
3257 (try_substitute_return_value): Avoid setting range info when
3258 the result isn't bounded.
3259 * varasm.c (assemble_name): Increase buffer size.
3260
3261 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
3262 Terry Guo <terry.guo@arm.com>
3263
3264 * target.def (elf_flags_numeric): New target hook.
3265 * targhooks.h (default_asm_elf_flags_numeric): New.
3266 * varasm.c (default_asm_elf_flags_numeric): New.
3267 (default_elf_asm_named_section): Use new target hook.
3268 * config/arm/arm.opt (mpure-code): New.
3269 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
3270 * config/arm/arm.c (arm_asm_init_sections): Add section
3271 attribute to default text section if -mpure-code.
3272 (arm_option_check_internal): Diagnose use of option with
3273 non supported targets and/or options.
3274 (arm_asm_elf_flags_numeric): New.
3275 (arm_function_section): New.
3276 (arm_elf_section_type_flags): New.
3277 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
3278 for -mpure-code.
3279 * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
3280 * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
3281
3282 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
3283
3284 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
3285
3286 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3287
3288 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
3289 * rtl.h: Adjust prototype.
3290
3291 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3292
3293 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
3294 (prev_active_insn): Likewise.
3295 (active_insn_p): Likewise.
3296 * rtl.h: Adjust prototypes.
3297 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
3298 * config/arc/arc.md: Likewise.
3299 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
3300 (branch_needs_nop_p): Likewise.
3301 (use_skip_p): Likewise.
3302 * config/sh/sh.c (gen_block_redirect): Likewise.
3303 (split_branches): Likewise.
3304 * reorg.c (optimize_skip): Likewise.
3305 (fill_simple_delay_slots): Likewise.
3306 (fill_slots_from_thread): Likewise.
3307 (relax_delay_slots): Likewise.
3308 * resource.c (mark_target_live_regs): Likewise.
3309
3310 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3311
3312 * config/cris/cris.c (cris_asm_output_case_end): Change argument
3313 type to rtx_insn *.
3314 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
3315 (prev_nonnote_nondebug_insn): Likewise.
3316 * config/cris/cris-protos.h: Adjust prototype.
3317 * rtl.h: Likewise.
3318 * jump.c (rtx_renumbered_equal_p): Adjust.
3319
3320 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3321
3322 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
3323 * rtl.h: Adjust prototype.
3324 * config/sh/sh.md: Adjust.
3325 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3326
3327 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3328
3329 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
3330 (prev_nondebug_insn): Likewise.
3331 * loop-doloop.c (doloop_condition_get): Likewise.
3332 * rtl.h: Adjust prototype.
3333 * cfgloop.h: Likewise.
3334
3335 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3336
3337 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
3338 (prev_nonnote_insn): Likewise.
3339 * jump.c (reversed_comparison_code_parts): Likewise.
3340 (reversed_comparison): Likewise.
3341 * rtl.h: Adjust prototypes.
3342 * config/arc/arc.md: Adjust.
3343 * cse.c (find_comparison_args): Likewise.
3344 * reorg.c (redundant_insn): Change return type to rtx_insn *.
3345 (fix_reg_dead_note): Change argument type to rtx_insn *.
3346 (delete_prior_computation): Likewise.
3347 (delete_computation): Likewise.
3348 (fill_slots_from_thread): Adjust.
3349 (relax_delay_slots): Likewise.
3350 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3351 (simplify_relational_operation_1): Likewise.
3352 (simplify_ternary_operation): Likewise.
3353
3354 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3355
3356 * config/arc/arc-protos.h (arc_label_align): Change type of
3357 variables from rtx to rtx_insn *.
3358 * config/arc/arc.c (arc_label_align): Likewise.
3359 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
3360 * config/bfin/bfin.c (workaround_speculation): Likewise.
3361 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
3362 (find_last_same_clock): Likewise.
3363 (reorg_split_calls): Likewise.
3364 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
3365 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
3366 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
3367 (same_cmp_following_p): Likewise.
3368 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
3369 (same_cmp_following_p): Likwise.
3370 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
3371 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
3372 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
3373 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
3374 (rl78_alloc_physical_registers_cmp): Likewise.
3375 (rl78_alloc_physical_registers_umul): Likewise.
3376 (rl78_calculate_death_notes): Likewise.
3377 * config/s390/s390-protos.h (s390_label_align): Likewise.
3378 * config/s390/s390.c (s390_label_align): Likewise.
3379 * config/sh/sh.c (barrier_align): Likewise.
3380 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
3381 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
3382 (emit_cbcond_nop): Likewise.
3383
3384 2016-09-22 Martin Liska <mliska@suse.cz>
3385
3386 PR ipa/77653
3387 * ipa-icf.c (sem_variable::merge): Yield merge operation if
3388 alias address matters, not necessarily address of original.
3389
3390 2016-09-22 Richard Biener <rguenther@suse.de>
3391
3392 PR middle-end/77697
3393 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
3394 fold fails.
3395
3396 2016-09-22 Richard Biener <rguenther@suse.de>
3397
3398 PR middle-end/77677
3399 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
3400 from constant folding results.
3401 (gimple_resimplify2): Likewise.
3402 (gimple_resimplify3): Likewise.
3403
3404 2016-09-22 Richard Biener <rguenther@suse.de>
3405
3406 PR middle-end/77678
3407 * expr.c (expand_expr_real_1): Guard array access against negative
3408 offset.
3409
3410 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3411
3412 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
3413 of MPFR_RNDN.
3414 (format_floating): Likewise.
3415
3416 2016-09-22 Jakub Jelinek <jakub@redhat.com>
3417
3418 PR fortran/77665
3419 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
3420 for all IFN_GOMP_SIMD_* internal fns, not just for
3421 IFN_GOMP_SIMD_ORDERED_*.
3422
3423 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3424
3425 PR target/77670
3426 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
3427 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
3428 instructions when you want to invert the test.
3429 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
3430 correct order for XXSEL.
3431 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
3432 for using XSCMP{EQ,GT,GE}DP.
3433
3434 2016-09-21 David Malcolm <dmalcolm@redhat.com>
3435
3436 * genconstants.c (main): Introduce noop_reader and convert call
3437 to read_md_files to a method call.
3438 * genenums.c (main): Likewise.
3439 * genmddeps.c (main): Likewise.
3440 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
3441 rtx_reader_ptr->get_top_level_filename ().
3442 (write_tm_preds_h): Likewise.
3443 (write_insn_preds_c): Likewise.
3444 * gensupport.c (class gen_reader): New subclass of rtx_reader.
3445 (rtx_handle_directive): Convert to...
3446 (gen_reader::handle_unknown_directive): ...this.
3447 (init_rtx_reader_args_cb): Convert return type from bool to
3448 rtx_reader *. Create a gen_reader instance, using it for the
3449 call to read_md_files. Return it if no errors occur.
3450 (init_rtx_reader_args): Convert return type from bool to
3451 rtx_reader *.
3452 * gensupport.h (init_rtx_reader_args_cb): Likewise.
3453 (init_rtx_reader_args_cb): Likewise.
3454 * read-md.c (struct file_name_list): Move to class rtx_reader.
3455 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
3456 (read_md_filename): Delete in favor of
3457 rtx_reader::m_read_md_filename.
3458 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
3459 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
3460 (base_dir): Delete in favor of rtx_reader::m_base_dir.
3461 (first_dir_md_include): Delete in favor of
3462 rtx_reader::m_first_dir_md_include.
3463 (last_dir_md_include_ptr): Delete in favor of
3464 rtx_reader::m_last_dir_md_include_ptr.
3465 (max_include_len): Delete.
3466 (rtx_reader_ptr): New.
3467 (fatal_with_file_and_line): Use get_filename and get_lineno
3468 accessors of rtx_reader_ptr.
3469 (require_char_ws): Likewise.
3470 (rtx_reader::read_char): New method, based on ::read_char.
3471 (rtx_reader::unread_char): New method, based on ::unread_char.
3472 (read_escape): Use get_filename and get_lineno accessors of
3473 rtx_reader_ptr.
3474 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
3475 (read_string): Use get_filename and get_lineno accessors of
3476 rtx_reader_ptr.
3477 (rtx_reader::rtx_reader): New ctor.
3478 (rtx_reader::~rtx_reader): New dtor.
3479 (handle_include): Convert from a function to...
3480 (rtx_reader::handle_include): ...this method, converting
3481 handle_directive from a callback to a virtual function.
3482 (handle_file): Likewise, converting to...
3483 (rtx_reader::handle_file): ...this method.
3484 (handle_toplevel_file): Likewise, converting to...
3485 (rtx_reader::handle_toplevel_file): ...this method.
3486 (rtx_reader::get_current_location): New method.
3487 (parse_include): Convert from a function to...
3488 (rtx_reader::add_include_path): ...this method, dropping redundant
3489 update to unused max_include_len.
3490 (read_md_files): Convert from a function to...
3491 (rtx_reader::read_md_files): ...this method, converting
3492 handle_directive from a callback to a virtual function.
3493 (noop_reader::handle_unknown_directive): New method.
3494 * read-md.h (directive_handler_t): Delete this typedef.
3495 (in_fname): Delete.
3496 (read_md_file): Delete.
3497 (read_md_lineno): Delete.
3498 (read_md_filename): Delete.
3499 (class rtx_reader): New class.
3500 (rtx_reader_ptr): New decl.
3501 (class noop_reader): New subclass of rtx_reader.
3502 (read_char): Reimplement in terms of rtx_reader::read_char.
3503 (unread_char): Reimplement in terms of rtx_reader::unread_char.
3504 (read_md_files): Delete.
3505 * read-rtl.c (read_rtx_code): Update for deletion of globals
3506 read_md_filename and read_md_lineno.
3507
3508 2016-09-21 Jason Merrill <jason@redhat.com>
3509
3510 * input.h (from_macro_definition_at): New.
3511
3512 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3513
3514 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
3515
3516 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3517
3518 PR tree-optimization/77550
3519 * tree-vect-stmts.c (create_array_ref): Change parameters.
3520 (get_group_alias_ptr_type): New function.
3521 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
3522
3523 2016-09-21 Marek Polacek <polacek@redhat.com>
3524
3525 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
3526 Add falls through comment.
3527
3528 2016-09-21 Richard Biener <rguenther@suse.de>
3529
3530 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
3531 (replace_child): Likewise.
3532 (remove_child_TAG): Adjust.
3533 (move_marked_base_types): Likewise.
3534 (prune_unused_types_prune): Clear die_sib of removed children.
3535
3536 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
3537
3538 PR target/77326
3539 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
3540 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
3541
3542 2016-09-21 Richard Biener <rguenther@suse.de>
3543
3544 PR tree-optimization/77648
3545 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
3546 with complex RHS.
3547 (make_transitive_closure_constraints): Adjust comment.
3548 (make_any_offset_constraints): New function.
3549 (handle_rhs_call): Make sure to first expand a pointer to all
3550 subfields before transitively closing it.
3551 (handle_const_call): Likewise. Properly expand returned
3552 pointers as well.
3553 (handle_pure_call): Likewise.
3554
3555 2016-09-21 Richard Biener <rguenther@suse.de>
3556 Jakub Jelinek <jakub@redhat.com>
3557
3558 PR tree-optimization/77621
3559 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
3560 group at non-vectorizable stmts.
3561
3562 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3563
3564 PR tree-optimization/72835
3565 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
3566 (make_new_ssa_for_all_defs): Likewise.
3567 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
3568
3569 2016-09-20 Martin Sebor <msebor@redhat.com>
3570
3571 PR middle-end/49905
3572 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
3573 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
3574 * config/linux.c (gnu_libc_printf_pointer_format): New function.
3575 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
3576 * config/sol2.c (solaris_printf_pointer_format): New function.
3577 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
3578 options.
3579 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
3580 * doc/tm.texi: Regenerate.
3581 * gimple-fold.h (get_range_strlen): New function.
3582 (get_maxval_strlen): Declare existing function.
3583 * gimple-fold.c (get_range_strlen): Add arguments and compute both
3584 maximum and minimum.
3585 (get_range_strlen): Define overload.
3586 (get_maxval_strlen): Adjust.
3587 * gimple-ssa-sprintf.c: New file and pass.
3588 * passes.def (pass_sprintf_length): Add new pass.
3589 * targhooks.h (default_printf_pointer_format): Declare new function.
3590 (gnu_libc_printf_pointer_format): Same.
3591 (solaris_libc_printf_pointer_format): Same.
3592 * targhooks.c (default_printf_pointer_format): Define new function.
3593 * tree-pass.h (make_pass_sprintf_length): Declare new function.
3594 * print-tree.c: Increase buffer size.
3595
3596 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3597
3598 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
3599
3600 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3601
3602 * common.opt: New option -fipa-vrp.
3603 * ipa-cp.c (ipa_get_vr_lat): New.
3604 (ipcp_vr_lattice::print): Likewise.
3605 (print_all_lattices): Call ipcp_vr_lattice::print.
3606 (ipcp_vr_lattice::meet_with): New.
3607 (ipcp_vr_lattice::meet_with_1): Likewise.
3608 (ipcp_vr_lattice::top_p): Likewise.
3609 (ipcp_vr_lattice::bottom_p): Likewsie.
3610 (ipcp_vr_lattice::set_to_bottom): Likewise.
3611 (set_all_contains_variable): Call VR set_to_bottom.
3612 (initialize_node_lattices): Init VR lattices.
3613 (propagate_vr_accross_jump_function): New.
3614 (propagate_constants_accross_call): Call
3615 propagate_vr_accross_jump_function.
3616 (ipcp_store_vr_results): New.
3617 (ipcp_driver): Handle VR.
3618 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
3619 (ipa_set_jf_unknown): Likewise.
3620 (ipa_compute_jump_functions_for_edge): Likewise.
3621 (ipa_node_params_t::duplicate): Likewise.
3622 (ipa_write_jump_function): Likewise.
3623 (ipa_read_jump_function): Likewise.
3624 (write_ipcp_transformation_info): Likewise.
3625 (read_ipcp_transformation_info): Likewise.
3626 (ipcp_update_vr): New.
3627 (ipcp_transform_function): Handle VR.
3628 * ipa-prop.h (struct ipa_vr): New.
3629 * cgraph.c: Include tree-vrp.h.
3630 * cgraphunit.c: Likewise.
3631 * ipa-utils.c: Likewise.
3632 * ipa.c: Likewise.
3633 * opts.c: Likewise.
3634 * toplev.c: Likewise.
3635 * ipa-devirt.c: Likewise.
3636 * ipa-inline-transform.c: Likewise.
3637 * ipa-inline.c: Likewise.
3638 * ipa-profile.c: Likewise.
3639
3640 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3641
3642 * doc/invoke.texi: Document -fdump-tree-evrp.
3643 * passes.def: Define new pass_early_vrp.
3644 * timevar.def: Define new TV_TREE_EARLY_VRP.
3645 * tree-pass.h (make_pass_early_vrp): New.
3646 * tree-ssa-propagate.c: Make replace_uses_in non static.
3647 * tree-ssa-propagate.h: Export replace_uses_in.
3648 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
3649 (extract_range_from_assert): Factor out
3650 extract_range_for_var_from_comparison_expr.
3651 (vrp_initialize_lattice): New.
3652 (vrp_initialize): Factor out vrp_initialize_lattice.
3653 (vrp_valueize): Fix it to reject complex value ranges.
3654 (vrp_free_lattice): New.
3655 (evrp_dom_walker::before_dom_children): Likewise.
3656 (evrp_dom_walker::after_dom_children): Likewise.
3657 (evrp_dom_walker::push_value_range): Likewise.
3658 (evrp_dom_walker::pop_value_range): Likewise.
3659 (execute_early_vrp): Likewise.
3660 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
3661 (make_pass_early_vrp): New.
3662
3663 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
3664
3665 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
3666 instead of exact_log2.
3667
3668 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
3669
3670 PR target/77621
3671 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
3672 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
3673 (ix86_add_stmt_cost): Penalize DFmode vector operations
3674 for !TARGET_VECTORIZE_DOUBLE.
3675
3676 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
3677
3678 * doc/invoke.texi (Warning Options): Simplify language.
3679 (Optimize Options): Complete sentence.
3680
3681 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
3682
3683 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
3684 early_finish hook.
3685
3686 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
3687
3688 PR target/71395
3689 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
3690 inits on power8 and above, use the VMRGEW instruction instead of a
3691 permute.
3692
3693 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
3694 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
3695 initialization.
3696
3697 2016-09-20 Tamar Christina <tamar.christina@arm.com>
3698
3699 * config/aarch64/arm_neon.h
3700 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
3701 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
3702 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
3703
3704 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
3705
3706 * config/var/vax.h (ELIMINABLE_REGS): Define.
3707 (INITIAL_ELIMINATION_OFFSET): Define.
3708
3709 2016-09-20 Jakub Jelinek <jakub@redhat.com>
3710
3711 PR middle-end/77624
3712 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
3713 cast to void * if the cast is from some other pointer type.
3714
3715 2016-09-20 Richard Biener <rguenther@suse.de>
3716
3717 PR tree-optimization/77646
3718 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
3719 a VDEF.
3720
3721 2016-09-20 Tamar Christina <tamar.christina@arm.com>
3722
3723 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
3724 attributes to all inlined functions and make them extern.
3725
3726 2016-09-20 Richard Biener <rguenther@suse.de>
3727
3728 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
3729 hook.
3730 * debug.c (do_nothing_debug_hooks): Adjust.
3731 * dbxout.c (dbx_debug_hooks): Likewise.
3732 * sdbout.c (sdb_debug_hooks): Likewise.
3733 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
3734 (dwarf2out_finish): Move producer, filename and
3735 path annotation ...
3736 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
3737 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
3738
3739 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3740
3741 PR c++/77434
3742 * doc/invoke.texi: Document -Wint-in-bool-context.
3743
3744 PR middle-end/77421
3745 * dwarf2out.c (output_loc_operands): Fix an assertion.
3746
3747 2016-09-19 Joseph Myers <joseph@codesourcery.com>
3748
3749 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
3750 (CR_DECIMAL_DIG): New macro.
3751
3752 2016-09-19 Joseph Myers <joseph@codesourcery.com>
3753
3754 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
3755 element.
3756
3757 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
3758
3759 PR rtl-optimization/77416
3760 * lra-remat.c (operand_to_remat): Process hard coded insn
3761 registers.
3762
3763 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3764
3765 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
3766 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
3767
3768 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
3769
3770 * target.def (lra_p): Wordsmithing.
3771 * doc/tm.texi: Regenerate.
3772
3773 2016-09-19 Jakub Jelinek <jakub@redhat.com>
3774 Jan Hubicka <jh@suse.cz>
3775
3776 PR target/77587
3777 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
3778 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
3779 Call ultimate_alias_target just once, not up to 4 times.
3780
3781 2016-09-19 Richard Biener <rguenther@suse.de>
3782
3783 * dwarf2out.c (early_dwarf_finished): New global.
3784 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
3785 is false.
3786 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
3787 if called from LTO exit early.
3788 (dwarf2out_late_global_decl): When being during the early
3789 debug phase do not add locations but only const value attributes.
3790 Adjust the way we generate early DIEs for LTO.
3791
3792 2016-09-19 Richard Biener <rguenther@suse.de>
3793
3794 PR middle-end/77605
3795 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
3796 proper niter to bound the loops.
3797
3798 2016-09-19 Richard Biener <rguenther@suse.de>
3799
3800 PR tree-optimization/77514
3801 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
3802 search for folded stmt.
3803
3804 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
3805
3806 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
3807 * tree-pass.h (make_pass_early_thread_jumps): Declare.
3808 * tree-ssa-threadbackward.c (fsm_find_thread_path,
3809 fsm_find_thread_path, profitable_jump_thread_path,
3810 fsm_find_control_statement_thread_paths,
3811 find_jump_threads_backwards): Add speed_p parameter.
3812 (pass_data_early_thread_jumps): New pass.
3813 (make_pass_early_thread_jumps): New function.
3814
3815 2016-09-17 Andreas Schwab <schwab@suse.de>
3816
3817 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
3818 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3819
3820 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
3821
3822 * recog.c (rest_of_handle_split_after_reload): Delete.
3823 (pass_split_after_reload::gate): New method.
3824 (pass_split_after_reload::execute): Call split_all_insns directly.
3825
3826 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
3827
3828 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
3829 parameters for functions taking long long arguments.
3830
3831 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3832
3833 PR target/77613
3834 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
3835 splat with truncate.
3836
3837 2016-09-16 Jason Merrill <jason@redhat.com>
3838
3839 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
3840 New.
3841 * hwint.c (exact_log2): Use pow2p_hwi.
3842 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
3843 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
3844 * builtins.c (get_object_alignment_2, get_object_alignment)
3845 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
3846 least_bit_hwi.
3847 * calls.c (compute_argument_addresses, store_one_arg): Use
3848 least_bit_hwi.
3849 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
3850 * combine.c (force_to_mode): Use least_bit_hwi.
3851 (contains_muldiv, find_split_point, combine_simplify_rtx)
3852 (simplify_if_then_else, simplify_set, force_to_mode)
3853 (if_then_else_cond, simplify_and_const_int_1)
3854 (simplify_compare_const): Use pow2p_hwi.
3855 * cse.c (fold_rtx): Use pow2p_hwi.
3856 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
3857 Use least_bit_hwi.
3858 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
3859 (init_expmed_one_conv): Use pow2p_hwi.
3860 * expr.c (is_aligning_offset): Use pow2p_hwi.
3861 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
3862 (fold_binary_loc): Use pow2p_hwi.
3863 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
3864 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
3865 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
3866 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
3867 Use least_bit_hwi.
3868 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
3869 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
3870 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
3871 * omp-low.c (oacc_loop_fixed_partitions)
3872 (oacc_loop_auto_partitions): Use least_bit_hwi.
3873 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
3874 * stor-layout.c (place_field): Use least_bit_hwi.
3875 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
3876 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
3877 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
3878 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
3879 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
3880 * tree-vect-data-refs.c (vect_analyze_group_access_1)
3881 (vect_grouped_store_supported, vect_grouped_load_supported)
3882 (vect_permute_load_chain, vect_shift_permute_load_chain)
3883 (vect_transform_grouped_load): Use pow2p_hwi.
3884 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
3885 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
3886 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
3887 least_bit_hwi.
3888 * tsan.c (instrument_expr): Use least_bit_hwi.
3889 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
3890
3891 2016-09-16 Andreas Schwab <schwab@suse.de>
3892
3893 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
3894 OFFSET, not offset.
3895 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3896
3897 2016-09-16 Jakub Jelinek <jakub@redhat.com>
3898
3899 PR target/77526
3900 * combine.c (rest_of_handle_combine): If any edges have been purged,
3901 free dominators if available.
3902
3903 2016-09-16 Jakub Jelinek <jakub@redhat.com>
3904 Eric Botcazou <ebotcazou@adacore.com>
3905
3906 PR middle-end/77594
3907 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
3908 through into expand_addsub_overflow after expand_neg_overflow.
3909
3910 2016-09-15 David Malcolm <dmalcolm@redhat.com>
3911
3912 * diagnostic-show-locus.c
3913 (selftest::test_fixit_insert_containing_newline): New function.
3914 (selftest::test_fixit_replace_containing_newline): New function.
3915 (selftest::diagnostic_show_locus_c_tests): Call the above.
3916
3917 2016-09-15 Bin Cheng <bin.cheng@arm.com>
3918
3919 PR tree-optimization/77503
3920 * tree-vect-loop.c (vectorizable_reduction): Record reduction
3921 code for CONST_COND_REDUCTION at analysis stage and use it at
3922 transform stage.
3923 * tree-vectorizer.h (struct _stmt_vec_info): New field.
3924 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
3925 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
3926 field.
3927
3928 2016-09-15 Richard Biener <rguenther@suse.de>
3929
3930 PR middle-end/77544
3931 * fold-const.c (split_tree): Do not split constant ~X.
3932
3933 2016-09-15 Jakub Jelinek <jakub@redhat.com>
3934
3935 PR rtl-optimization/77425
3936 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
3937 is NULL.
3938
3939 PR middle-end/77475
3940 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
3941 use %qs instead of %s where desirable, use argument instead of arg in
3942 the diagnostic wording, add list of supported strategies and
3943 spellcheck hint.
3944 (ix86_option_override_internal): Emit target("m...") instead of
3945 option("m...") in the diagnostic. Use %qs instead of %s in invalid
3946 -march/-mtune option diagnostic. Add list of supported arches/tunings
3947 and spellcheck hint. Remove prefix, suffix and sw variables, use
3948 main_args_p ? "..." : "..." in diagnostics to make translation
3949 possible.
3950
3951 2016-09-15 Richard Biener <rguenther@suse.de>
3952
3953 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
3954 extra offset argument.
3955 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
3956 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
3957 to reflect new offset parameter.
3958 * doc/tm.texi: Regenerate.
3959 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3960 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
3961 offset argument.
3962 (darwin_asm_output_dwarf_offset): Likewise.
3963 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
3964 argument.
3965 (darwin_asm_output_dwarf_offset): Pass offset argument through.
3966 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3967 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3968
3969 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
3970
3971 PR fortran/72743
3972 * ipa-icf.c (set_alias_uids): New function.
3973 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
3974 all the merged variable's referring aliases.
3975
3976 2016-09-15 Richard Biener <rguenther@suse.de>
3977
3978 PR tree-optimization/77514
3979 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
3980 only forced_stmts sequence.
3981
3982 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
3983
3984 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
3985 * cfgexpand.c (update_alias_info_with_stack_vars): Use
3986 FOR_EACH_SSA_NAME to iterate over SSA variables.
3987 (pass_expand::execute): Likewise.
3988 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
3989 * tree-cfg.c (dump_function_to_file): Likewise.
3990 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
3991 (update_ssa): Likewise.
3992 * tree-ssa-alias.c (dump_alias_info): Likewise.
3993 * tree-ssa-ccp.c (ccp_finalize): Likewise.
3994 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
3995 (create_outofssa_var_map): Likewise.
3996 (coalesce_ssa_name): Likewise.
3997 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
3998 * tree-ssa-pre.c (compute_avail): Likewise.
3999 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4000 (scc_vn_restore_ssa_info): Likewise.
4001 (free_scc_vn): Likwise.
4002 (run_scc_vn): Likewise.
4003 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
4004 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
4005 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4006 * tree-ssa.c (verify_ssa): Likewise.
4007
4008 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
4009
4010 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
4011 and mips64r2 as default 32-bit and 64-bit architectures.
4012 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
4013 as default 32-bit and 64-bit architectures.
4014
4015 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
4016
4017 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
4018 of succ edge.
4019
4020 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4021
4022 * target.def (lra_p): Change commentary (for the manual) for the
4023 new default.
4024 * doc/tm.texi: Regenerate.
4025
4026 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4027
4028 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
4029 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
4030 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
4031 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
4032
4033 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4034
4035 * targhooks.c (default_lra_p): Return true instead of false.
4036
4037 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4038
4039 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
4040 hook_bool_void_false.
4041 * config/avr/avr.c: Ditto.
4042 * config/bfin/bfin.c: Ditto.
4043 * config/c6x/c6x.c: Ditto.
4044 * config/cr16/cr16.c: Ditto.
4045 * config/cris/cris.c: Ditto.
4046 * config/epiphany/epiphany.c: Ditto.
4047 * config/fr30/fr30.c: Ditto.
4048 * config/frv/frv.c: Ditto.
4049 * config/h8300/h8300.c: Ditto.
4050 * config/ia64/ia64.c: Ditto.
4051 * config/iq2000/iq2000.c: Ditto.
4052 * config/lm32/lm32.c: Ditto.
4053 * config/m32c/m32c.c: Ditto.
4054 * config/m32r/m32r.c: Ditto.
4055 * config/m68k/m68k.c: Ditto.
4056 * config/mcore/mcore.c: Ditto.
4057 * config/microblaze/microblaze.c: Ditto.
4058 * config/mmix/mmix.c: Ditto.
4059 * config/mn10300/mn10300.c: Ditto.
4060 * config/moxie/moxie.c: Ditto.
4061 * config/msp430/msp430.c: Ditto.
4062 * config/nios2/nios2.c: Ditto.
4063 * config/nvptx/nvptx.c: Ditto.
4064 * config/pa/pa.c: Ditto.
4065 * config/pdp11/pdp11.c: Ditto.
4066 * config/rl78/rl78.c: Ditto.
4067 * config/sparc/sparc.c: Ditto.
4068 * config/spu/spu.c: Ditto.
4069 * config/stormy16/stormy16.c: Ditto.
4070 * config/tilegx/tilegx.c: Ditto.
4071 * config/tilepro/tilepro.c: Ditto.
4072 * config/v850/v850.c: Ditto.
4073 * config/vax/vax.c: Ditto.
4074 * config/visium/visium.c: Ditto.
4075 * config/xtensa/xtensa.c: Ditto.
4076
4077 2016-09-14 Jakub Jelinek <jakub@redhat.com>
4078
4079 PR sanitizer/68260
4080 * tsan.c: Include target.h.
4081 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
4082 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
4083 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
4084 BUILT_IN_ATOMIC_TEST_AND_SET entries.
4085 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
4086
4087 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4088 Martin Liska <mliska@suse.cz>
4089
4090 PR middle-end/77574
4091 * predict.c (force_edge_cold): Add braces to a condition.
4092
4093 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4094
4095 PR rtl-optimization/77289
4096 * lra-constraints.c (get_final_hard_regno): Removed.
4097 (get_hard_regno): Add new parameter final_p.
4098 (get_reg_class): Directly call lra_get_elimination_hard_regno.
4099 (operands_match_p): Adjust call to get_hard_regno.
4100 (uses_hard_regs_p): Likewise.
4101 (process_alt_operands): Likewise.
4102
4103 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
4104
4105 PR target/70713
4106 * config/msp430/msp430.c (msp430_start_function): Emit an error
4107 if a function is both weak and specifies an interrupt number.
4108
4109 2016-09-13 Jakub Jelinek <jakub@redhat.com>
4110
4111 PR tree-optimization/77454
4112 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
4113 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
4114 Formatting fix.
4115
4116 2016-09-13 Tamar Christina <tamar.christina@arm.com>
4117
4118 * config/aarch64/aarch64-builtins.c
4119 (aarch64_init_simd_builtins): Fix builtin type signature printing.
4120
4121 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
4122
4123 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
4124 SFmode and SCmode arguments by reference.
4125
4126 2016-09-13 David Malcolm <dmalcolm@redhat.com>
4127
4128 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
4129 Rename to...
4130 (selftest::test_one_liner_fixit_insert_before): ...this, and update
4131 for renaming of add_fixit_insert to add_fixit_insert_before.
4132 (selftest::test_one_liner_fixit_insert_after): New function.
4133 (selftest::test_one_liner_fixit_validation_adhoc_locations):
4134 Update for renaming of add_fixit_insert to add_fixit_insert_before.
4135 (selftest::test_one_liner_many_fixits): Likewise.
4136 (selftest::test_diagnostic_show_locus_one_liner): Update for
4137 renaming, call new test function.
4138 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
4139 renaming of add_fixit_insert to add_fixit_insert_before.
4140 (selftest::test_fixit_consolidation): Likewise.
4141 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
4142 Likewise.
4143 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
4144 (selftest::test_applying_fixits_insert_before): ...this.
4145 (selftest::test_applying_fixits_insert): Update for renaming of
4146 add_fixit_insert to add_fixit_insert_before.
4147 (selftest::test_applying_fixits_insert_after): New function.
4148 (selftest::test_applying_fixits_insert_after_at_line_end): New
4149 function.
4150 (selftest::test_applying_fixits_insert_after_failure): New function.
4151 (selftest::test_applying_fixits_multiple): Update for renaming of
4152 add_fixit_insert to add_fixit_insert_before.
4153 (selftest::change_line): Likewise.
4154 (selftest::test_applying_fixits_unreadable_file): Likewise.
4155 (selftest::test_applying_fixits_line_out_of_range): Likewise.
4156 (selftest::test_applying_fixits_column_validation): Likewise.
4157 (selftest::test_applying_fixits_column_validation): Likewise.
4158 (selftest::edit_context_c_tests): Update for renamed test function;
4159 call new test functions.
4160
4161 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
4162
4163 PR tree-optimization/77536
4164 PR rtl-optimization/68212
4165 * config/rs6000/rs6000.md (div->recip splitter): Remove
4166 optimize_insn_for_speed_p condition.
4167
4168 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
4169
4170 * optabs.c (prepare_cmp_insn): Update documentation comment.
4171
4172 2016-09-13 Jakub Jelinek <jakub@redhat.com>
4173 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4174
4175 PR middle-end/77475
4176 * opts.h (candidates_list_and_hint): Declare.
4177 * opts-common.c (candidates_list_and_hint): New function.
4178 (cmdline_handle_error): Use it.
4179
4180 2016-09-12 David Malcolm <dmalcolm@redhat.com>
4181
4182 * edit-context.c (edited_line::get_len): New accessor.
4183 (edited_file::print_diff): Split out hunk-printing into...
4184 (edited_file::print_diff_hunk): New method.
4185 (edited_file::print_diff_line): New method.
4186
4187 2016-09-12 Andrew Pinski <apinski@cavium.com>
4188
4189 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
4190 New tuning option.
4191 * config/aarch64/aarch64.c (thunderx_tunings): Enable
4192 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
4193 (aarch64_operands_ok_for_ldpstp): Return false if
4194 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
4195 was SImode and the alignment is less than 8 byte.
4196 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4197
4198 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
4199
4200 PR target/77570
4201 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
4202
4203 2016-09-12 Marek Polacek <polacek@redhat.com>
4204
4205 * doc/extend.texi: Use lowercase "boolean".
4206 * doc/invoke.texi: Likewise.
4207 * doc/md.texi: Likewise.
4208 * target.def: Likewise.
4209 * doc/tm.texi: Regenerated.
4210
4211 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4212
4213 PR middle-end/77426
4214 * expmed.c (synth_mult): Delete duplicate mode check.
4215
4216 2016-09-10 Tom de Vries <tom@codesourcery.com>
4217
4218 PR C/71602
4219 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
4220 va_list type only.
4221 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
4222 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
4223
4224 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
4225
4226 PR rtl-optimization/77289
4227 * lra-constraints.c (get_final_hard_regno): Add support for non hard
4228 register numbers. Remove support for subregs.
4229 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
4230 (get_reg_class): Delete removed get_final_hard_regno() argument.
4231 (uses_hard_regs_p): Call get_final_hard_regno().
4232
4233 2016-09-09 Martin Sebor <msebor@redhat.com>
4234
4235 PR c/77520
4236 PR c/77521
4237 * pretty-print.c (pp_quoted_string): New function.
4238 (pp_format): Call it for %c and %s directives.
4239
4240 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4241
4242 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
4243 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
4244 INITIAL_ELIMINATION_OFFSET) : Update documentation.
4245 * target.def (frame_pointer_required, can_eliminate): Likewise.
4246 * doc/tm.texi: Regenerated.
4247 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
4248 ELIMINABLE_REGS.
4249 * df-scan.c (df_hard_reg_init): Likewise.
4250 * ira.c (ira_setup_eliminable_regset): Likewise.
4251 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
4252 init_elim_table): Likewise.
4253 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
4254 set_initial_elim_offsets, update_eliminables,
4255 init_elim_table): Likewise.
4256 * rtlanal.c (get_initial_register_offset): Likewise.
4257 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4258 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4259 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4260 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4261 * config/fr30/fr30.h: Fix comment.
4262 * config/frv/frv.c: Likewise.
4263 * config/frv/frv.h: Likewise.
4264 * config/ft32/ft32.h: Likewise.
4265 * config/visium/visium.h: Likewise.
4266 * config/pa/pa64-linux.h: Likewise.
4267 * config/v850/v850.h: Likewise.
4268 * config/cris/cris.c: Likewise.
4269 * config/ia64/ia64.h: Likewise.
4270 * config/moxie/moxie.h: Likewise.
4271 * config/m32r/m32r.h: Likewise.
4272
4273 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4274
4275 PR target/77267
4276 * config.in: Regenerate.
4277 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
4278 New macro.
4279 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
4280 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
4281 static-libmpxwrappers case.
4282 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
4283 MPX_LD_AS_NEEDED_GUARD_POP.
4284 * configure: Regenerate.
4285 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
4286 defined if linker support "--push-state"/"--pop-state".
4287
4288 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4289
4290 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
4291
4292 2016-09-09 Joseph Myers <joseph@codesourcery.com>
4293
4294 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
4295 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
4296 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
4297 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
4298 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
4299 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
4300 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
4301 Document.
4302 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
4303 width macros from TS 18661-1.
4304 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
4305
4306 2016-09-08 Jakub Jelinek <jakub@redhat.com>
4307
4308 PR fortran/77516
4309 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
4310 OMP_CLAUSE_SAFELEN_EXPR.
4311
4312 2016-09-07 David Malcolm <dmalcolm@redhat.com>
4313
4314 * Makefile.in (OBJS): Add substring-locations.o.
4315 * langhooks-def.h (class substring_loc): New forward decl.
4316 (lhd_get_substring_location): New decl.
4317 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
4318 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
4319 * langhooks.c (lhd_get_substring_location): New function.
4320 * langhooks.h (class substring_loc): New forward decl.
4321 (struct lang_hooks): Add field get_substring_location.
4322 * substring-locations.c: New file, taking definition of
4323 format_warning_va and format_warning_at_substring from
4324 c-family/c-format.c, making them non-static.
4325 * substring-locations.h (class substring_loc): Move class here
4326 from c-family/c-common.h. Add and rewrite comments.
4327 (format_warning_va): New decl.
4328 (format_warning_at_substring): New decl.
4329 (get_source_location_for_substring): Add comment.
4330
4331 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
4332
4333 * config/i386/i386.c: Add 'U' suffix to processor feature bits
4334 to avoid -Wnarrowing warning.
4335 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
4336 * opts.c: Likewise for SANITIZER_OPT bitmasks.
4337
4338 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
4339
4340 * config/aarch64/aarch64.c (aarch64_legitimize_address):
4341 Avoid use of base_offset if offset already in range.
4342
4343 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
4344
4345 * config/sh/sh-protos.h (struct sh_atomic_model,
4346 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4347 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4348 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
4349 * config/sh/sh.h (struct sh_atomic_model,
4350 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4351 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4352 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
4353 Guard with __cplusplus.
4354
4355 2016-09-06 Jakub Jelinek <jakub@redhat.com>
4356
4357 PR target/69255
4358 * config/i386/i386.c (ix86_expand_builtin): For builtin with
4359 unsupported or unknown ISA, use expand_call.
4360
4361 2016-09-06 Martin Liska <mliska@suse.cz>
4362
4363 PR gcov-profile/77378
4364 PR gcov-profile/77466
4365 * tree-profile.c (tree_profiling): Detect whether target can use
4366 -fprofile-update=atomic.
4367
4368 2016-09-06 Richard Biener <rguenther@suse.de>
4369
4370 PR tree-optimization/77479
4371 * tree-vrp.c (update_value_range): Extend overflow handling to
4372 VARYING.
4373
4374 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4375
4376 PR target/77476
4377 * config/i386/i386.md (isa): Add x64_avx512bw.
4378 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
4379 (kmov_isa): New mode attr.
4380 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
4381 (*zero_extend<mode>si2): Likewise.
4382 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
4383
4384 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
4385
4386 * doc/invoke.texi (SPU Options): nops -> NOPs.
4387 (x86 Options): Ditto.
4388
4389 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4390
4391 PR middle-end/77475
4392 * toplev.c (process_options): Temporarily set input_location
4393 to UNKNOWN_LOCATION around targetm.target_option.override () call.
4394
4395 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
4396
4397 PR rtl-optimization/77452
4398 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
4399 inner-mode reference to a CONST_VECTOR constant in the constant pool.
4400
4401 2016-09-05 Marek Polacek <polacek@redhat.com>
4402
4403 PR c/77423
4404 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
4405
4406 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4407
4408 PR other/77421
4409 * gensupport.c (alter_output_for_subst_insn): Remove redundant
4410 *insn_out == '*' test. Don't copy unnecessary to yet another
4411 memory buffer, and don't leak it.
4412
4413 PR rtl-optimization/77425
4414 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
4415
4416 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
4417
4418 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
4419
4420 2016-09-02 David Malcolm <dmalcolm@redhat.com>
4421
4422 * common.opt (fdiagnostics-generate-patch): New option.
4423 * diagnostic.c: Include "edit-context.h".
4424 (diagnostic_initialize): Initialize context->edit_context_ptr.
4425 (diagnostic_finish): Delete context->edit_context_ptr.
4426 (diagnostic_report_diagnostic): Add fix-it hints from the
4427 diagnostic to context->edit_context_ptr, if any.
4428 * diagnostic.h (class edit_context): Add forward decl.
4429 (struct diagnostic_context): Add field "edit_context_ptr".
4430 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
4431 -fdiagnostics-generate-patch.
4432 (-fdiagnostics-generate-patch): New item.
4433 * toplev.c: Include "edit-context.h".
4434 (process_options): Set global_dc->edit_context_ptr to a new
4435 edit_context if the options need one.
4436 (toplev::main): Handle -fdiagnostics-generate-patch by using
4437 global_dc->edit_context_ptr.
4438
4439 2016-09-02 Jakub Jelinek <jakub@redhat.com>
4440
4441 PR c/65467
4442 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
4443 map and firstprivate clauses on target construct for _Atomic
4444 qualified decls.
4445 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
4446 on target construct for _Atomic qualified decls.
4447 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
4448 decls.
4449 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
4450 _Atomic qualified arguments not mentioned in uniform clause.
4451
4452 2016-09-02 David Malcolm <dmalcolm@redhat.com>
4453
4454 * Makefile.in (OBJS-libcommon): Add edit-context.o.
4455 * diagnostic-color.c (color_dict): Add "diff-filename",
4456 "diff-hunk", "diff-delete", and "diff-insert".
4457 (parse_gcc_colors): Update default value of GCC_COLORS in comment
4458 to reflect above changes.
4459 * doc/invoke.texi (-fdiagnostics-color): Update description of
4460 default GCC_COLORS, and of the supported capabilities.
4461 * edit-context.c: New file.
4462 * edit-context.h: New file.
4463 * input.c (struct fcache): Add field "missing_trailing_newline".
4464 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
4465 true.
4466 (add_file_to_cache_tab): Likewise.
4467 (fcache::fcache): Likewise.
4468 (get_next_line): Update c->missing_trailing_newline.
4469 (location_missing_trailing_newline): New function.
4470 * input.h (location_missing_trailing_newline): New decl.
4471 * selftest-run-tests.c (selftest::run_tests): Call
4472 edit_context_c_tests.
4473 * selftest.h (edit_context_c_tests): New decl.
4474
4475 2016-09-02 Jakub Jelinek <jakub@redhat.com>
4476 Richard Biener <rguenth@suse.de>
4477
4478 PR tree-optimization/77444
4479 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
4480 as steptype, remove redundant initialization.
4481
4482 2016-09-02 Jakub Jelinek <jakub@redhat.com>
4483
4484 PR sanitizer/77396
4485 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
4486 (sanopt_optimize_walker): Optimize away
4487 __asan_before_dynamic_init (...) followed by
4488 __asan_after_dynamic_init () without intervening memory loads/stores.
4489 * ipa-pure-const.c (special_builtin_state): Handle
4490 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
4491 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
4492
4493 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4494
4495 * cfg.c (free_original_copy_tables): Replace second assignment of
4496 bb_copy = NULL by bb_original = NULL.
4497
4498 2016-09-02 Jakub Jelinek <jakub@redhat.com>
4499
4500 PR other/77421
4501 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
4502 assignment added in r216794.
4503
4504 2016-09-02 David Malcolm <dmalcolm@redhat.com>
4505
4506 * Makefile.in (OBJS): Add typed-splay-tree.o.
4507 * selftest-run-tests.c (selftest::run_tests): Call
4508 typed_splay_tree_c_tests.
4509 * selftest.h (typed_splay_tree_c_tests): New decl.
4510 * typed-splay-tree.c: New file.
4511 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
4512 (typed_splay_tree::max): New method.
4513 (typed_splay_tree::min): New method.
4514 (typed_splay_tree::foreach): New method.
4515 (typed_splay_tree::closure): New struct.
4516 (typed_splay_tree::inner_foreach_fn): New function.
4517
4518 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4519
4520 * ipa-cp.c (ipcp_store_bits_results): Change option name from
4521 -fipa-cp-bit to -fipa-bit-cp.
4522
4523 2016-09-01 Martin Sebor <msebor@redhat.com>
4524
4525 PR tree-optimization/71831
4526 * tree-object-size.h: Return bool instead of the size and add
4527 argument for the size.
4528 * tree-object-size.c (compute_object_offset): Update signature.
4529 (addr_object_size): Same.
4530 (compute_builtin_object_size): Return bool instead of the size
4531 and add argument for the size. Handle POINTER_PLUS_EXPR when
4532 optimization is disabled.
4533 (expr_object_size): Adjust.
4534 (plus_stmt_object_size): Adjust.
4535 (pass_object_sizes::execute): Adjust.
4536 * builtins.c (fold_builtin_object_size): Adjust.
4537 * doc/extend.texi (Object Size Checking): Update.
4538 * ubsan.c (instrument_object_size): Adjust.
4539
4540 2016-09-01 Martin Sebor <msebor@redhat.com>
4541
4542 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
4543 it fits the output of the formatted function regardless of its
4544 arguments.
4545 * gcc/genmodes.c (parser::parse_expr): Same.
4546 * gimplify.c (gimplify_asm_expr): Same.
4547 * passes.c (pass_manager::register_one_dump_file): Same.
4548 * print-tree.c (print_node): Same.
4549
4550 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4551
4552 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
4553
4554 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4555
4556 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
4557
4558 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4559
4560 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
4561 * config/rs6000/vector.md: Ditto.
4562 * config/rs6000/vsx.md: Ditto.
4563
4564 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
4565
4566 * ipa-inline-analysis.c (param_change_prob): Get to the base object
4567 first in all cases.
4568
4569 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4570
4571 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
4572 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
4573 *return_and_restore_gpregs_<mode>_r11,
4574 *return_and_restore_gpregs_<mode>_r12,
4575 *return_and_restore_gpregs_<mode>_r1,
4576 *return_and_restore_fpregs_<mode>_r11,
4577 *return_and_restore_fpregs_<mode>_r12,
4578 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
4579 directly instead of via the "l" constraint. Renumber operands.
4580 Fix whitespace.
4581
4582 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4583
4584 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
4585 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
4586 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
4587 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
4588 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
4589 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
4590 *call_value_nonlocal_darwin64, reload_macho_picbase,
4591 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
4592 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
4593 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
4594 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
4595 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
4596 *save_fpregs_<mode>_r1): Ditto.
4597 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
4598 *return_and_restore_gpregs_spe): Ditto.
4599
4600 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4601
4602 * config/rs6000/rs6000.md
4603 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
4604 the use of the link register.
4605 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
4606
4607 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4608 Michael Meissner <meissner@linux.vnet.ibm.com>
4609
4610 PR target/72827
4611 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
4612 reg+reg addressing for TImode.
4613 (rs6000_legitimate_address_p): Only allow register indirect
4614 addressing for TImode, even without TARGET_QUAD_MEMORY.
4615
4616 2016-09-01 Richard Biener <rguenther@suse.de>
4617
4618 PR middle-end/77436
4619 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
4620 check whether the result fits the desired result type.
4621
4622 2016-09-01 Nathan Sidwell <nathan@acm.org>
4623
4624 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
4625
4626 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
4627
4628 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
4629 New function.
4630 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
4631
4632 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4633
4634 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
4635 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
4636 for comparisons of integer ZERO_EXTEND against zero.
4637
4638 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
4639
4640 * config/i386/i386.c (ix86_option_override_internal): Also disable the
4641 STV pass if -mstackrealign is enabled.
4642
4643 2016-08-31 Ilya Verbin <iverbin@gmail.com>
4644
4645 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
4646 AVX512IFMA.
4647
4648 2016-08-31 David Malcolm <dmalcolm@redhat.com>
4649
4650 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
4651 (layout_range::intersects_line_p): New method.
4652 (test_range_contains_point_for_single_point): Rename to...
4653 (test_layout_range_for_single_point): ...this, and add testing
4654 for layout_range::intersects_line_p.
4655 (test_range_contains_point_for_single_line): Rename to...
4656 (test_layout_range_for_single_line): ...this, and add testing
4657 for layout_range::intersects_line_p.
4658 (test_range_contains_point_for_multiple_lines): Rename to...
4659 (test_layout_range_for_multiple_lines): ...this, and add testing
4660 for layout_range::intersects_line_p.
4661 (layout::layout): Populate m_fixit_hints.
4662 (layout::get_expanded_location): Handle the case of a line-span
4663 for a fix-it hint.
4664 (layout::validate_fixit_hint_p): New method.
4665 (get_line_span_for_fixit_hint): New function.
4666 (layout::calculate_line_spans): Add spans for fixit-hints.
4667 (layout::should_print_annotation_line_p): New method.
4668 (layout::print_any_fixits): Drop param "richloc", instead using
4669 validated fixits in m_fixit_hints. Add "const" to hint pointers.
4670 (diagnostic_show_locus): Avoid printing blank annotation lines.
4671 (selftest::test_diagnostic_context::test_diagnostic_context):
4672 Initialize show_column and start_span.
4673 (selftest::test_diagnostic_context::start_span_cb): New static
4674 function.
4675 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
4676 (selftest::diagnostic_show_locus_c_tests): Update for function
4677 renamings. Call test_diagnostic_show_locus_fixit_lines.
4678
4679 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
4680
4681 PR tree-optimization/73714
4682 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
4683
4684 2016-08-31 David Malcolm <dmalcolm@redhat.com>
4685
4686 * selftest.c: Move "namespace selftest {" to top of file,
4687 removing explicit "selftest::" qualifiers throughout.
4688
4689 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
4690
4691 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
4692 New types.
4693 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
4694 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
4695 Replace builtin with vector extension.
4696 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
4697 New types.
4698 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
4699 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
4700 Replace builtin with vector extension.
4701 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
4702 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
4703 Replace builtin with vector extension.
4704 * config/i386/xmmintrin.h (__m128_u): New type.
4705 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
4706 (_mm_load_ps, _mm_store_ps): Simplify.
4707
4708 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
4709
4710 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
4711
4712 2016-08-30 David Malcolm <dmalcolm@redhat.com>
4713
4714 * diagnostic-show-locus.c (colorizer::begin_state): Support more
4715 than 3 ranges per diagnostic by alternating between color 1 and
4716 color 2.
4717 (layout::layout): Replace use of rich_location::MAX_RANGES
4718 with richloc->get_num_locations ().
4719 (layout::calculate_line_spans): Replace use of
4720 rich_location::MAX_RANGES with m_layout_ranges.length ().
4721 (layout::print_annotation_line): Handle arbitrary numbers of
4722 ranges in caret-printing by defaulting to '^'.
4723 (selftest::test_one_liner_many_fixits): New function.
4724 (test_diagnostic_show_locus_one_liner): Call it.
4725 * diagnostic.c (diagnostic_initialize): Update for renaming
4726 of rich_location::MAX_RANGES to
4727 rich_location::STATICALLY_ALLOCATED_RANGES.
4728 * diagnostic.h (struct diagnostic_context): Likewise.
4729
4730 2016-08-30 David Malcolm <dmalcolm@redhat.com>
4731
4732 * selftest.c (selftest::named_temp_file::named_temp_file): New
4733 ctor.
4734 (selftest::temp_source_file::~temp_source_file): Move to...
4735 (selftest::named_temp_file::~named_temp_file): ...here.
4736 (selftest::test_named_temp_file): New function.
4737 (selftest::selftest_c_tests): Call test_named_temp_file.
4738 * selftest.h (class named_temp_file): New class.
4739 (class temp_source_file): Convert to a subclass of named_temp_file.
4740
4741 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
4742
4743 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
4744 USEs of LR_REGNO in returns and sibcalls.
4745 (rs6000_output_mi_thunk): Similar.
4746 (rs6000_sibcall_aix): Similar.
4747 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
4748 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
4749 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
4750 Remove the USE of LR_REGNO from the patterns as well. Delete an
4751 obsolete comment.
4752 (return_internal_<mode>): Delete.
4753
4754 2016-08-30 Tamar Christina <tamar.christina@arm.com>
4755
4756 * gcc/config/aarch64/aarch64-simd.md
4757 (aarch64_ld2<mode>_dreg_le): New.
4758 (aarch64_ld2<mode>_dreg_be): New.
4759 (aarch64_ld2<mode>_dreg): Removed.
4760 (aarch64_ld3<mode>_dreg_le): New.
4761 (aarch64_ld3<mode>_dreg_be): New.
4762 (aarch64_ld3<mode>_dreg): Removed.
4763 (aarch64_ld4<mode>_dreg_le): New.
4764 (aarch64_ld4<mode>_dreg_be): New.
4765 (aarch64_ld4<mode>_dreg): Removed.
4766 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
4767
4768 2016-08-30 David Malcolm <dmalcolm@redhat.com>
4769
4770 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
4771 redundant location param.
4772 (test_one_liner_fixit_remove): Likewise.
4773 (test_one_liner_fixit_replace): Likewise.
4774 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
4775 * gcc-rich-location.c
4776 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
4777 get_range_from_loc. Drop overload taking a const char *.
4778 * gcc-rich-location.h
4779 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
4780 a const char *.
4781
4782 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4783
4784 * config/linux.c (linux_libc_has_function): Return true on musl.
4785
4786 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4787
4788 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
4789
4790 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
4791
4792 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
4793 used for abnormal egdes.
4794
4795 2016-08-30 Jakub Jelinek <jakub@redhat.com>
4796
4797 PR tree-optimization/72866
4798 * tree-vect-patterns.c (search_type_for_mask): Turn into
4799 a small wrapper, move all code to ...
4800 (search_type_for_mask_1): ... this new function. Add caching
4801 and adjust recursive calls.
4802
4803 PR debug/77363
4804 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
4805 instead of lookup_type_die (type_main_variant (type)) even for array
4806 types.
4807
4808 PR middle-end/77377
4809 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
4810 constant pool reference return x instead of c.
4811
4812 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
4813
4814 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
4815 include MQ.
4816
4817 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4818
4819 * input.c
4820 (selftest::test_make_location_nonpure_range_endpoints): Fix
4821 header comment.
4822
4823 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4824
4825 * diagnostic-show-locus.c
4826 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
4827 function.
4828 (selftest::test_diagnostic_show_locus_one_liner): Call it.
4829 * input.c (get_pure_location): Move to libcpp/line-map.c.
4830 * input.h (get_pure_location): Convert decl to an inline function
4831 calling implementation in libcpp.
4832
4833 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
4834
4835 PR target/77403
4836 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
4837 template for intel asm dialect.
4838 (vec_set_hi_<mode><mask_name>): Ditto.
4839
4840 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4841
4842 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
4843 (selftest::fail_formatted): Likewise.
4844
4845 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4846
4847 * input.c (make_location): Call get_start and get_finish
4848 on the endpoints to avoid storing packed ranges or ad-hoc
4849 ranges in them.
4850 (selftest::test_make_location_nonpure_range_endpoints): New function.
4851 (selftest::input_c_tests): Call it.
4852 * input.h (get_start): New inline function.
4853
4854 2016-08-29 Tom de Vries <tom@codesourcery.com>
4855
4856 PR c/77398
4857 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
4858 with assert.
4859
4860 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
4861
4862 * Makefile.in (gcov-iov.h): Add dummy recipe.
4863
4864 2016-08-29 Nathan Sidwell <nathan@acm.org>
4865
4866 * config/nvptx/nvptx.c: #include tree-vrp.h.
4867
4868 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
4869
4870 PR target/77324
4871 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
4872 HIGH+LO construct during reload.
4873
4874 2016-08-28 Tom de Vries <tom@codesourcery.com>
4875
4876 PR lto/70955
4877 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
4878 'sysv_abi va_list' attribute.
4879 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
4880 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
4881 attributes.
4882
4883 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4884
4885 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
4886 * emit-rtl.c (unshare_all_rtl_1): Adjust.
4887 (unshare_all_rtl_again): Likewise.
4888 * function.c (assign_stack_local_1): Likewise.
4889 (assign_stack_temp_for_type): Likewise.
4890
4891 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4892
4893 * cfgbuild.c (make_edges): Adjust.
4894 * cfgrtl.c (can_delete_label_p): Likewise.
4895 * dwarf2cfi.c (create_trace_edges): Likewise.
4896 * except.c (sjlj_emit_dispatch_table): Likewise.
4897 * function.h (struct expr_status): make x_forced_labels a vector.
4898 * jump.c (rebuild_jump_labels_1): Adjust.
4899 * reload1.c (set_initial_label_offsets): Likewise.
4900 * stmt.c (force_label_rtx): Likewise.
4901 (expand_label): Likewise.
4902
4903 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4904
4905 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
4906
4907 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
4908
4909 PR tree-optimization/71077
4910 PR tree-optimization/68542
4911 * fold-const.c (fold_relational_const): Fix folding of
4912 VECTOR_CST comparisons that have a scalar boolean result type.
4913 (selftest::test_vector_folding): New static function.
4914 (selftest::fold_const_c_tests): Call it.
4915
4916 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
4917
4918 * doc/extend.texi (SPU Built-in Functions): Remove stale
4919 references to material formerly at IBM and Sony.
4920
4921 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
4922
4923 PR target/77349
4924 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
4925
4926 2016-08-26 David Malcolm <dmalcolm@redhat.com>
4927
4928 * diagnostic-show-locus.c
4929 (selftest::test_fixit_consolidation): New function.
4930 (selftest::diagnostic_show_locus_c_tests): Call it.
4931 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
4932 constructor based on source_range.
4933
4934 2016-08-26 David Malcolm <dmalcolm@redhat.com>
4935
4936 * diagnostic-color.c (color_dict): Add "fixit-insert" and
4937 "fixit-delete".
4938 (parse_gcc_colors): Update description of default GCC_COLORS.
4939 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
4940 (colorizer::set_fixit_insert): New method.
4941 (colorizer::set_fixit_delete): New method.
4942 (colorizer::get_color_by_name): New method.
4943 (colorizer::STATE_FIXIT_INSERT): New constant.
4944 (colorizer::STATE_FIXIT_DELETE): New constant.
4945 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
4946 fields in favor of new field "m_stop_color". Add fields
4947 "m_fixit_insert" and "m_fixit_delete".
4948 (colorizer::colorizer): Update for above changes. Replace
4949 colorize_start calls with calls to get_color_by_name.
4950 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
4951 STATE_FIXIT_DELETE. Update for field renamings.
4952 (colorizer::finish_state): Simplify by using m_stop_color,
4953 rather than multiple identical "*_ce" fields.
4954 (colorizer::get_color_by_name): New method.
4955 (layout::print_any_fixits): Print insertions and replacements
4956 using the "fixit-insert" color, and deletions using the
4957 "fixit-delete" color.
4958 * doc/invoke.texi (-fdiagnostics-color): Update description of
4959 default GCC_COLORS, and of the supported capabilities.
4960
4961 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
4962
4963 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
4964 current_function_static_stack_size variable with the static
4965 stack frame size of the current function when
4966 flag_stack_usage_info is enabled.
4967
4968 2016-08-26 Nathan Sidwell <nathan@acm.org>
4969
4970 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
4971 assignment inside if condition.
4972
4973 2016-08-26 Richard Biener <rguenther@suse.de>
4974
4975 PR tree-optimization/69047
4976 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
4977 extracts similar to what FRE does.
4978 (non_rewritable_mem_ref_base): Likewise.
4979
4980 2016-08-26 Joseph Myers <joseph@codesourcery.com>
4981
4982 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
4983 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
4984 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4985 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4986 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
4987 Likewise.
4988 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4989 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4990 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4991 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
4992 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4993
4994 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4995
4996 PR target/70473
4997 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
4998 reservation duration to 15 cycles.
4999 (cortex_a8_vfp_macs): Likewise.
5000 (cortex_a8_vfp_macd): Likewise.
5001 (cortex_a8_vfp_divs): Likewise.
5002 (cortex_a8_vfp_divd): Likewise.
5003
5004 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5005
5006 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
5007 (aarch_macro_fusion_pair_p): Use above to avoid early return.
5008
5009 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5010 Martin Jambhor <mjambor@suse.cz>
5011
5012 * common.opt: New option -fipa-bit-cp.
5013 * doc/invoke.texi: Document -fipa-bit-cp.
5014 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
5015 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
5016 * tree-ssa-ccp.h: New header file.
5017 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
5018 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
5019 Replace all occurences of tree parameter by two new params: signop, int.
5020 (bit_value_unop_1): Change to bit_value_unop and export it.
5021 Replace all occurences of tree parameter by two new params: signop,
5022 int.
5023 (bit_value_binop): Change call from bit_value_binop_1 to
5024 bit_value_binop.
5025 (bit_value_assume_aligned): Likewise.
5026 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
5027 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
5028 to ccp_finalize.
5029 (ccp_finalize): Skip processing if val->mask == 0.
5030 * ipa-cp.c: Include tree-ssa-ccp.h
5031 (ipcp_bits_lattice): New class.
5032 (ipcp_param_lattice (bits_lattice): New member.
5033 (print_all_lattices): Call ipcp_bits_lattice::print.
5034 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
5035 (initialize_node_lattices): Likewise.
5036 (propagate_bits_accross_jump_function): New function.
5037 (propagate_constants_accross_call): Call
5038 propagate_bits_accross_jump_function.
5039 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
5040 (ipcp_store_bits_results): New function.
5041 (ipcp_driver): Call ipcp_store_bits_results.
5042 * ipa-prop.h (ipa_bits): New struct.
5043 (ipa_jump_func): Add new member bits of type ipa_bits.
5044 (ipa_param_descriptor): Change decl to decl_or_type.
5045 (ipa_get_param): Change decl to decl_or_type and assert on
5046 PARM_DECL.
5047 (ipa_get_type): New function.
5048 (ipcp_transformation_summary): New member bits.
5049 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
5050 (ipa_populate_param_decls): Likewise.
5051 (ipa_dump_param): Likewise.
5052 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
5053 function.
5054 (ipa_set_jf_unknown): Set ipa_bits::known to false.
5055 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
5056 propagation.
5057 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
5058 (ipa_write_jump_function): Add streaming for ipa_bits.
5059 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
5060 (write_ipcp_transformation_info): Add streaming for ipa_bits
5061 summary for ltrans.
5062 (read_ipcp_transfomration_info): Add support for reading streamed
5063 ipa_bits.
5064 (ipcp_update_bits): New function.
5065 (ipcp_transform_function): Call ipcp_update_bits.
5066
5067 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
5068
5069 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
5070 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
5071
5072 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
5073
5074 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
5075
5076 2016-08-25 Richard Biener <rguenther@suse.de>
5077
5078 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
5079 Only add locations in late dwarf.
5080 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
5081 (dwarf2out_early_finish): But do it here.
5082
5083 2016-08-24 Michael Collison <michael.collison@linaro.org>
5084 Michael Collison <michael.collison@arm.com>
5085
5086 * config/arm/arm-modes.def: Add new condition code mode CC_V
5087 to represent the overflow bit.
5088 * config/arm/arm.c (maybe_get_arm_condition_code):
5089 Add support for CC_Vmode.
5090 (arm_gen_unlikely_cbranch): New function to generate common
5091 rtl conditional branches for overflow patterns.
5092 * config/arm/arm-protos.h: Add prototype for
5093 arm_gen_unlikely_cbranch.
5094 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
5095 addsi3_compareV_upper): New patterns to support signed
5096 builtin overflow add operations.
5097 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
5098 New patterns to support unsigned builtin add overflow operations.
5099 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
5100 builtin overflow subtract operations,
5101 (usubv<mode>4): New patterns to support unsigned builtin subtract
5102 overflow operations.
5103 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
5104 to support builtin overflow negate operations.
5105
5106 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5107
5108 Revert
5109 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5110
5111 * explow.c (get_dynamic_stack_size): Take known alignment of stack
5112 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5113 needed.
5114
5115 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5116
5117 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
5118 MULTILIB_OPTIONS should be used. Small wording fixes.
5119 * genmultilib: Memorize set of all option combinations in
5120 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
5121 found in MULTILIB_OPTIONS by checking if option set is listed in
5122 combination_space. Output new and existing error message to stderr.
5123
5124 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5125
5126 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
5127 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
5128 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
5129 (MULTILIB_REUSE): Remove reuse rules for option set including
5130 -mfpu=fp-armv8 and -mfpu=vfpv4
5131
5132 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
5133
5134 * config/arm/t-rtems: Add vfp multilib.
5135
5136 2016-08-23 Ian Lance Taylor <iant@golang.org>
5137
5138 * config/s390/s390.c (s390_asm_file_start): Call
5139 default_file_start.
5140
5141 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5142
5143 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
5144 initialization of all 0's to the 0 constant, instead of directly
5145 generating XOR. Add support for V4SImode vector initialization on
5146 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
5147 initialization. Change variables used in V4SFmode vector
5148 intialization. For V4SFmode vector splat on ISA 3.0, make sure
5149 any memory addresses are in index form. Add support for using
5150 VSPLTH/VSPLTB to initialize vector short and vector char vectors
5151 with all of the same element.
5152 (regno_or_subregno): New helper function to return a register
5153 number for either REG or SUBREG.
5154 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
5155 Use regno_or_subregno where possible.
5156 (rs6000_split_v4si_init_di_reg): New helper function to build up a
5157 DImode value from two SImode values in order to generate V4SImode
5158 vector initialization on 64-bit systems with direct move.
5159 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
5160 initialization.
5161 (rtx_is_swappable_p): V4SImode vector initialization insn is not
5162 swappable.
5163 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
5164 declaration.
5165 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
5166 attributes to initialize V8HImode and V16QImode vectors with the
5167 same element.
5168 (VSX_SPLAT_COUNT): Likewise.
5169 (VSX_SPLAT_SUFFIX): Likewise.
5170 (UNSPEC_VSX_VEC_INIT): New unspec.
5171 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
5172 Allow SFmode values to come from Altivec registers.
5173 (vsx_init_v4si): New insn/split for V4SImode vector initialization
5174 on 64-bit systems with direct move.
5175 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
5176 vector initializations, to allow V4SImode vector initializations
5177 on 64-bit systems with direct move.
5178 (vsx_splat_v4si): Likewise.
5179 (vsx_splat_v4si_di): Likewise.
5180 (vsx_splat_v4sf): Likewise.
5181 (vsx_splat_v4sf_internal): Likewise.
5182 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
5183 register classes.
5184 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
5185 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
5186 initializing V8HImode and V16QImode vectors with the same
5187 element.
5188 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
5189 optimization if -maltivec=be.
5190
5191 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
5192
5193 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
5194 attribute for alternatives 3 and 4.
5195
5196 2016-08-23 David Malcolm <dmalcolm@redhat.com>
5197
5198 * selftest.c (selftest::assert_str_contains): New function.
5199 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
5200 * selftest.h (selftest::assert_str_contains): New decl.
5201 (ASSERT_STR_CONTAINS): New macro.
5202
5203 2016-08-23 Richard Biener <rguenther@suse.de>
5204
5205 PR tree-optimization/77286
5206 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
5207 the CFG here.
5208 (vect_transform_loop): Split exit edges of loop and scalar
5209 loop if required and at the appropriate time.
5210
5211 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5212
5213 * explow.c (get_dynamic_stack_size): Take known alignment of stack
5214 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5215 needed.
5216 Correct a typo in a comment.
5217
5218 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5219
5220 * config/s390/s390.md ("*andc_split"): New splitter for and with
5221 complement.
5222
5223 2016-08-23 Richard Biener <rguenther@suse.de>
5224
5225 PR tree-optimization/27336
5226 * tree-vrp.c (infer_value_range): Handle stmts that can throw
5227 by looking for a non-EH edge.
5228 (process_assert_insertions_for): Likewise.
5229
5230 2016-08-23 Richard Biener <rguenther@suse.de>
5231
5232 PR middle-end/77305
5233 * statistics.c (statistics_counter_event): Robustify against
5234 NULL current_pass.
5235
5236 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5237
5238 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
5239 for targets amdfam10 and barcelona.
5240
5241 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
5242
5243 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
5244 (zero_extend<mode>di2): Ditto.
5245 (*zero_extend<mode>si2): Ditto.
5246 (*zero_extendqihi2): Ditto.
5247
5248 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5249
5250 PR middle-end/77269
5251 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
5252 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
5253
5254 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
5255
5256 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
5257 identical consecutive elements.
5258 [SSA_NAME]: Print the name's def stmt on its own line. When printing
5259 the node's def stmt, avoid printing an unwanted trailing newline by
5260 replacing the call to print_gimple_stmt() with its inlined body and
5261 adjusting it to not set pp_needs_newline and to call pp_flush()
5262 instead of pp_newline_and_flush().
5263
5264 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5265
5266 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
5267 (float32_type_node, float64_type_node, float32x_type_node)
5268 (float128x_type_node): New macros.
5269 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
5270 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
5271 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
5272 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
5273 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
5274 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
5275 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
5276 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
5277 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
5278 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
5279 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
5280 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
5281 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
5282 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
5283 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
5284 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
5285 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
5286 (copysign, fabs, huge_val, inf, nan, nans): Use it.
5287 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
5288 and copysign.
5289 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
5290 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
5291 * doc/extend.texi (Other Builtins): Document these built-in
5292 functions.
5293 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
5294 for nan and nans.
5295
5296 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
5297
5298 * doc/install.texi (Binaries): www.opencsw.org now uses https.
5299
5300 2016-08-22 Richard Biener <rguenther@suse.de>
5301
5302 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
5303
5304 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
5305
5306 PR target/77270
5307 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
5308 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
5309 non-SSE2 athlons only, otherwise prefer SSE prefetches.
5310
5311 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5312
5313 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
5314 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
5315 (vrp_visit_switch_stmt): Likewise.
5316 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
5317 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
5318 (vrp_visit_stmt): Use extract_range_from_stmt.
5319 (vrp_visit_phi_node): Use extract_range_from_phi_node.
5320
5321 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5322
5323 * Makefile.in: Add tree-vrp.h to GTFILES.
5324 * gengtype.c (open_base_files): Add tree-vrp.h.
5325 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
5326 * builtins.c: Likewise.
5327 * fold-const.c: Likewise.
5328 * gimple-builder.c: Likewise.
5329 * gimple-laddress.c: Likewise.
5330 * hsa-gen.c: Likewise.
5331 * internal-fn.c: Likewise.
5332 * ssa.h: Likewise.
5333 * targhooks.c: Liewise,
5334 * tree-ssa-address.c: Likewise.
5335 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
5336 * tree-vrp.c (struct value_range): Move to tree-vrp.h
5337 * tree-vrp.h: New file.
5338
5339 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5340
5341 PR tree-optimization/61839
5342 * tree-vrp.c (two_valued_val_range_p): New.
5343 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
5344 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
5345 Also Convert VAR BINOP CST where VAR is two-valued to
5346 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
5347
5348 2016-08-19 David Malcolm <dmalcolm@redhat.com>
5349
5350 * diagnostic-show-locus.c
5351 (layout::annotation_line_showed_range_p): New method.
5352 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
5353 Reimplement case fixit_hint::REPLACE to cover removals, and
5354 replacements where the range of the replacement isn't one
5355 of the ranges in the rich_location.
5356 (test_one_liner_fixit_replace): Likewise.
5357 (selftest::test_one_liner_fixit_replace_non_equal_range): New
5358 function.
5359 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
5360 New function.
5361 (selftest::test_diagnostic_show_locus_one_liner): Call the new
5362 functions.
5363 * diagnostic.c (print_parseable_fixits): Remove case
5364 fixit_hint::REMOVE.
5365
5366 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
5367
5368 PR target/77270
5369 * config/i386/i386.c (ix86_option_override_internal): Remove
5370 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
5371 Enable SSE prefetch also for TARGET_PREFETCHWT1.
5372 Do not try to enable TARGET_PRFCHW ISA flag here.
5373 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
5374 Rewrite expander function body.
5375 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
5376
5377 2016-08-19 Joseph Myers <joseph@codesourcery.com>
5378
5379 PR c/32187
5380 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
5381 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
5382 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
5383 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
5384 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
5385 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
5386 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
5387 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
5388 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
5389 tree_index values.
5390 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
5391 macros.
5392 (struct floatn_type_info): New structure type.
5393 (floatn_nx_types): New variable declaration.
5394 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
5395 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
5396 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
5397 * tree.c (floatn_nx_types): New variable.
5398 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
5399 corresponding complex types.
5400 * target.def (floatn_mode): New hook.
5401 * targhooks.c: Include "real.h".
5402 (default_floatn_mode): New function.
5403 * targhooks.h (default_floatn_mode): New prototype.
5404 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
5405 types.
5406 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
5407 effective-target and dg-add-options keywords.
5408 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
5409 Document new effective-target keywords.
5410 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
5411 * doc/tm.texi: Regenerate.
5412 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
5413 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
5414 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
5415 18661-3.
5416 * real.h (struct real_format): Add field ieee_bits.
5417 * real.c (ieee_single_format, mips_single_format)
5418 (motorola_single_format, spu_single_format, ieee_double_format)
5419 (mips_double_format, motorola_double_format)
5420 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
5421 (ieee_extended_intel_128_format)
5422 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
5423 (mips_extended_format, ieee_quad_format, mips_quad_format)
5424 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
5425 (decimal_double_format, decimal_quad_format, ieee_half_format)
5426 (arm_half_format, real_internal_format: Initialize ieee_bits
5427 field.
5428 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
5429 float128_type_node. Set float80_type_node to float64x_type_node
5430 if appropriate and long_double_type_node not appropriate.
5431 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
5432 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
5433 Initialize ieee_bits field.
5434 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
5435 (rs6000_init_builtins): Set ieee128_float_type_node to
5436 float128_type_node.
5437 (rs6000_floatn_mode): New function.
5438
5439 2016-08-19 Jakub Jelinek <jakub@redhat.com>
5440
5441 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
5442 _rdseed64_step): Uglify argument names and/or local variable names
5443 in inline functions.
5444 * config/i386/rtmintrin.h (_xabort): Likewise.
5445 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
5446 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
5447 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
5448 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
5449 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
5450 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
5451 _mm_maskz_ternarylogic_epi32): Likewise.
5452 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
5453 __lwpins32, __lwpins64): Likewise.
5454 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
5455 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
5456 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
5457 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
5458 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
5459 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
5460 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
5461 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
5462 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
5463 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
5464 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
5465 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
5466 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
5467 _mm256_mask_i64gather_epi32): Likewise.
5468 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
5469 * config/i386/ia32intrin.h (__writeeflags): Likewise.
5470 * config/i386/pkuintrin.h (_wrpkru): Likewise.
5471 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
5472 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
5473 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
5474 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
5475 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
5476 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
5477 _mm512_mask_prefetch_i64scatter_ps): Likewise.
5478 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
5479 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
5480 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
5481 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
5482 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
5483 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
5484 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
5485 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
5486
5487 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
5488 returning void.
5489 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
5490 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
5491 Likewise.
5492 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
5493 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
5494 function name.
5495 (_rdpkru_u32): Add space after function name.
5496
5497 * config/i386/t-i386 (i386-c.o): Don't depend on
5498 i386-builtin-types.inc.
5499 (i386.o): Depend on i386-builtin-types.inc.
5500
5501 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
5502
5503 PR target/77281
5504 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
5505 Use const_vec_duplicate to check for duplicated elements.
5506
5507 2016-08-19 Richard Biener <rguenther@suse.de>
5508
5509 PR tree-optimization/77290
5510 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5511 Fix flag_tree_parallelize_loops check.
5512
5513 2016-08-19 Richard Biener <rguenther@suse.de>
5514
5515 * match.pd (x | 0 -> x): Add.
5516
5517 2016-08-19 Richard Biener <rguenther@suse.de>
5518
5519 PR tree-optimization/77286
5520 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
5521 Deal with virtual PHIs being out-of-order.
5522
5523 2016-08-18 David Malcolm <dmalcolm@redhat.com>
5524
5525 * doc/invoke.texi (fverbose-asm): Note that source code lines
5526 are emitted, and provide an example.
5527 * final.c (asm_show_source): New function.
5528 (final_scan_insn): Call asm_show_source.
5529
5530 2016-08-18 David Malcolm <dmalcolm@redhat.com>
5531
5532 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
5533 param with diagnostic_kind.
5534 (class colorizer): Similarly replace field m_diagnostic with
5535 m_diagnostic_kind.
5536 (colorizer::colorizer): Replace diagnostic
5537 param with diagnostic_kind.
5538 (colorizer::begin_state): Update for above field change.
5539 (layout::layout): Replace diagnostic param with rich_location *
5540 and diagnostic_kind.
5541 (diagnostic_show_locus): Replace diagnostic param with richloc
5542 and diagnostic_kind.
5543 (class selftest::test_diagnostic_context): New class.
5544 (selftest::test_diagnostic_show_locus_unknown_location): New
5545 function.
5546 (selftest::test_one_liner_simple_caret): New function.
5547 (selftest::test_one_liner_caret_and_range): New function.
5548 (selftest::test_one_liner_multiple_carets_and_ranges): New
5549 function.
5550 (selftest::test_one_liner_fixit_remove): New function.
5551 (selftest::test_one_liner_fixit_replace): New function.
5552 (selftest::test_diagnostic_show_locus_one_liner): New function.
5553 (selftest::diagnostic_show_locus_c_tests): Call the new test
5554 functions.
5555 * diagnostic.c (diagnostic_initialize): Initialize
5556 colorize_source_p, show_ruler_p and parseable_fixits_p.
5557 (default_diagnostic_finalizer): Update for change to
5558 diagnostic_show_locus.
5559 (diagnostic_append_note): Likewise.
5560 * diagnostic.h (diagnostic_show_locus): Replace
5561 const diagnostic_info * param with location * and diagnostic_t.
5562
5563 2016-08-18 David Malcolm <dmalcolm@redhat.com>
5564
5565 * input.c (saved_line_table): New global.
5566 (class selftest::temp_line_table): Rename to line_table_test and
5567 move declaration to selftest.h, and drop field m_old_line_table.
5568 (selftest::temp_line_table::temp_line_table): Rename ctor to...
5569 (selftest::line_table_test::line_table_test): ...this. Add a
5570 default ctor. Store current value of line_table within
5571 saved_line_table.
5572 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
5573 (selftest::line_table_test::~line_table_test): ...this, and
5574 restore line_table from the saved_line_table, rather than
5575 m_old_line_table.
5576 (selftest::test_accessing_ordinary_linemaps): Update for above
5577 renaming.
5578 (selftest::test_lexer): Likewise.
5579 (struct selftest::lexer_test): Likewise.
5580 (selftest::lexer_test::lexer_test): Likewise.
5581 (selftest::input_c_tests): Move the looping over test cases from
5582 here into...
5583 (selftest::for_each_line_table_case): New function.
5584 * input.h (saved_line_table): New decl.
5585 * selftest.h (struct selftest::line_table_case): New forward decl.
5586 (class selftest::line_table_test): New class, moved here from
5587 selftest::temp_line_table in input.c, and renamed.
5588 (selftest::for_each_line_table_case): New decl.
5589
5590 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
5591
5592 PR target/72839
5593 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
5594
5595 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5596
5597 PR middle-end/70895
5598 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
5599 enclosing parallel construct for reduction variables on OpenACC loop
5600 directives.
5601
5602 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
5603
5604 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
5605 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
5606 -gdwarf-3.
5607 (function_to_dwarf_procedure): Update comment.
5608
5609 2016-08-18 David Malcolm <dmalcolm@redhat.com>
5610
5611 * input.c (diagnostics_file_cache_forcibly_evict_file): New
5612 function.
5613 * input.h (diagnostics_file_cache_forcibly_evict_file): New
5614 declaration.
5615 * selftest.c (selftest::temp_source_file::~temp_source_file):
5616 Evict m_filename from the diagnostic file cache.
5617
5618 2016-08-18 Richard Biener <rguenther@suse.de>
5619
5620 * tree-pass.h (make_pass_materialize_all_clones): Declare.
5621 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
5622 make_pass_materialize_all_clones): New simple IPA pass encapsulating
5623 clone materialization.
5624 * passes.def (all_late_ipa_passes): Start with
5625 pass_materialize_all_clones.
5626 * cgraphunit.c (symbol_table::compile): Remove call to
5627 materialize_all_clones.
5628 * tree-into-ssa.c: Include statistics.h.
5629 (update_ssa): Count number of times we do incremental/rewrite
5630 SSA update.
5631
5632 2016-08-18 Richard Biener <rguenther@suse.de>
5633
5634 PR tree-optimization/77282
5635 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5636 When doing auto-parallelizing also prevent use of PHIs that
5637 carry dependences across loop backedges.
5638
5639 2016-08-18 Tamar Christina <tamar.christina@arm.com>
5640 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5641
5642 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
5643
5644 2016-08-18 Richard Biener <rguenther@suse.de>
5645
5646 * ssa-iterators.h (ssa_vuse_operand): New inline.
5647 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
5648 (predicate_all_scalar_phis): Use remove_phi_node to remove
5649 phi nodes predicated. Delay removing virtual PHIs.
5650 (predicate_mem_writes): Update virtual operands.
5651 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
5652 (tree_if_conversion): Do not rewrite virtual SSA form.
5653 * tree-phinodes.c (release_phi_node): Make static.
5654 * tree-phinodes.h (release_phi_node): Remove.
5655
5656 2016-08-18 Jakub Jelinek <jakub@redhat.com>
5657
5658 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
5659 codes that appear in bdesc_* arrays, instead include i386-builtin.def
5660 twice to define those.
5661 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
5662 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
5663 bdesc_multi_arg): Define by including i386-builtin.def the third time.
5664 * config/i386/i386-builtin.def: New file.
5665
5666 2016-08-17 David Malcolm <dmalcolm@redhat.com>
5667
5668 * input.c (get_source_range_for_char): Rename to...
5669 (selftest::get_source_range_for_char): ...this, and move within
5670 the #if CHECKING_P guard.
5671 (get_num_source_ranges_for_substring): Rename to...
5672 (selftest::get_num_source_ranges_for_substring): ...this, move
5673 within the #if CHECKING_P guard, and make static.
5674 (selftest::assert_num_substring_ranges): Initialize
5675 actual_num_ranges.
5676
5677 2016-08-18 Alan Modra <amodra@gmail.com>
5678
5679 PR rtl-optimization/72771
5680 * reload.c (find_reloads): Don't assume that a subreg mem is OK
5681 when find_reloads_toplev returns address_reloaded==-1.
5682 (alternative_allows_const_pool_ref): Update comment.
5683
5684 2015-08-17 Alan Hayward <alan.hayward@arm.com>
5685
5686 PR tree-optimization/71752
5687 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
5688 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
5689
5690 2016-08-17 Jakub Jelinek <jakub@redhat.com>
5691
5692 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
5693 instead of testing ECF_NORETURN bit in gimple_call_flags.
5694 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
5695 * predict.c (tree_bb_level_predictions): Likewise.
5696 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
5697
5698 PR middle-end/77259
5699 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
5700 turning a call into __builtin_unreachable-like noreturn call, adjust
5701 gimple_call_set_fntype.
5702 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
5703 gimple_call_fntype has void return type.
5704
5705 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
5706
5707 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
5708 maybe_lookup_decl, to handle nested acc loop directives.
5709
5710 2016-08-17 Richard Biener <rguenther@suse.de>
5711
5712 PR tree-optimization/76490
5713 * tree-vrp.c (update_value_range): Preserve overflow infinities
5714 when intersecting with ranges from get_range_info.
5715 (operand_less_p): Handle overflow infinities correctly.
5716 (value_range_constant_singleton): Use vrp_operand_equal_p
5717 to handle overflow max/min correctly.
5718 (vrp_valueize): Likewise.
5719 (union_ranges): Likewise.
5720 (intersect_ranges): Likewise.
5721 (vrp_visit_phi_node): Improve iteration limitation to only
5722 apply when we'll possibly re-visit the PHI via a changed argument
5723 on the backedge.
5724
5725 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
5726
5727 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
5728 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
5729 rather than those that should not be built.
5730
5731 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
5732
5733 PR target/66488
5734 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
5735
5736 2016-08-17 Richard Biener <rguenther@suse.de>
5737
5738 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
5739 (verify_vssa): New function verifying virtual SSA form.
5740 (verify_ssa): Call it.
5741 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
5742 Do not apply loop-closed SSA handling to virtuals.
5743 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
5744 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
5745 when rewriting their symbol.
5746 (prepare_def_site_for): Likewise.
5747 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
5748 operands of moved stmts.
5749
5750 2016-08-17 Richard Biener <rguenther@suse.de>
5751
5752 PR tree-optimization/23855
5753 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
5754 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
5755 find guards to hoist. Do not update SSA form but rewrite virtuals
5756 into loop closed SSA.
5757 (find_loop_guard): Adjust to skip already hoisted guards. Do
5758 not mark virtuals for renaming or update SSA form.
5759
5760 2016-08-17 Martin Liska <mliska@suse.cz>
5761
5762 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
5763 a LONG_LONG_TYPE_SIZE comparison.
5764 * gcov-io.h: Remove macro definitions.
5765 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
5766 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
5767 comparison.
5768
5769 2016-08-16 Jakub Jelinek <jakub@redhat.com>
5770
5771 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
5772 that builtins not mentioned in bdesc_* arrays come first, then
5773 the ones mentioned in bdesc_* arrays in the order they appear in
5774 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
5775 IX86_BUILTIN__BDESC_*_LAST enumerator.
5776 (bdesc_mpx): Fix up a comment typo.
5777 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
5778 __builtin_ia32_vpcomneu[bwdq] builtins.
5779 (BDESC_VERIFY, BDESC_VERIFYS): Define.
5780 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
5781 enum ix86_builtins ordering.
5782 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
5783 for direct bdesc_* array member access instead of searching all the
5784 arrays until an fcode match is found.
5785
5786 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
5787
5788 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
5789 pattern as define_insn_and_split. Split insn before reload to
5790 ashl<mode>3_1.
5791 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
5792 <shift_insn><mode>3_1.
5793 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
5794 <rotate_insn><mode>3_1.
5795
5796 2016-08-16 David Malcolm <dmalcolm@redhat.com>
5797
5798 PR c/72857
5799 * input.c (get_source_range_for_substring): Rename to...
5800 (get_source_location_for_substring): ...this, adding param
5801 "caret_idx", and converting output param from source_range * to
5802 location_t *.
5803 (get_source_range_for_char): New function.
5804 (get_num_source_ranges_for_substring): Update comment to reflect
5805 above renaming.
5806 (assert_char_at_range): Update to use get_source_range_for_char
5807 rather than get_source_range_for_substring.
5808 (test_lexer_string_locations_concatenation_2): Likewise.
5809 * substring-locations.h (get_source_range_for_substring): Rename
5810 to...
5811 (get_source_location_for_substring): ...this, and adding param
5812 "caret_idx", and converting output param from source_range * to
5813 location_t *.
5814
5815 2016-08-16 David Malcolm <dmalcolm@redhat.com>
5816
5817 * input.c (class selftest::temp_source_file): Move to
5818 selftest.h.
5819 (selftest::temp_source_file::temp_source_file): Move to
5820 selftest.c.
5821 (selftest::temp_source_file::~temp_source_file): Likewise.
5822 * selftest.c (selftest::temp_source_file::temp_source_file): Move
5823 here from input.c.
5824 (selftest::temp_source_file::~temp_source_file): Likewise.
5825 * selftest.h (class selftest::temp_source_file): Move here from
5826 input.c
5827
5828 2016-08-16 Jakub Jelinek <jakub@redhat.com>
5829
5830 PR target/71910
5831 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
5832 inlining, add cgraph edge for the added __builtin_unreachable call.
5833
5834 PR middle-end/67485
5835 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
5836 only cast it to SHWI for the final comparison.
5837
5838 2016-08-16 Martin Liska <mliska@suse.cz>
5839
5840 PR gcov-profile/36412
5841 * doc/gcov.texi: Document --hash-filenames(-x).
5842 * gcov.c (print_usage): Add the option.
5843 (process_args): Process the option, sort options alphabetically.
5844 (md5sum_to_hex): New function.
5845 (make_gcov_file_name): Do the md5sum and append it to a
5846 filename.
5847
5848 2016-08-16 Bin Cheng <bin.cheng@arm.com>
5849
5850 PR tree-optimization/69848
5851 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
5852 and swtich operands to avoid additional NOT instruction.
5853 (vcond<v_cmp_mixed><mode>): Ditto.
5854 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
5855
5856 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
5857
5858 * doc/install.texi (*-*-solaris2*): Adjust latest change.
5859
5860 2016-08-16 Richard Biener <rguenther@suse.de>
5861
5862 PR tree-optimization/76783
5863 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
5864 BB visited flags at start.
5865
5866 2016-08-16 Bin Cheng <bin.cheng@arm.com>
5867
5868 PR tree-optimization/72817
5869 PR tree-optimization/73450
5870 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
5871 multiple_of_p for adjusted IV.base.
5872
5873 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
5874
5875 PR target/72867
5876 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
5877 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
5878 for !flag_finite_math_only or flag_signed_zeros.
5879 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
5880 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
5881 depend on flag_finite_math_only.
5882 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
5883 New insn pattern.
5884 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
5885 (*ieee_smin<mode>3): Ditto.
5886 (*ieee_smax<mode>3): Ditto.
5887 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
5888 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
5889 flag_signed_zeros.
5890 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
5891 depend on flag_finite_math_only.
5892 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
5893 (*mmx_<code>v2sf3): Remove.
5894 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
5895 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
5896 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
5897
5898 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
5899
5900 PR rtl-optimization/73650
5901 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
5902 it is not a simple move.
5903
5904 2016-08-15 Martin Liska <mliska@suse.cz>
5905
5906 PR driver/72765
5907 * gcc.c (do_spec_1): Call save_string with the right size.
5908 (save_string): Do an assert about string we copy.
5909
5910 2016-08-15 Richard Biener <rguenther@suse.de>
5911
5912 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
5913 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
5914 TV_MACH_DEP.
5915 (pass_data_stv): Likewise.
5916
5917 2016-08-15 Richard Biener <rguenther@suse.de>
5918
5919 PR tree-optimization/73434
5920 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
5921 TBAA info on the base when forwarding a non-invariant address.
5922
5923 2016-08-15 Jakub Jelinek <jakub@redhat.com>
5924
5925 * dwarf2out.c (struct checksum_attributes): Add
5926 at_string_length_bit_size and at_string_length_byte_size fields.
5927 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
5928 and DW_AT_string_length_byte_size.
5929 (die_checksum_ordered): Handle at_string_length_bit_size and
5930 at_string_length_byte_size.
5931 (gen_array_type_die): For dwarf_version >= 5 emit
5932 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5933 (adjust_string_types): For dwarf_version >= 5 remove
5934 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5935 (resolve_addr): Likewise.
5936
5937 PR debug/71906
5938 * dwarf2out.c (string_types): New variable.
5939 (gen_array_type_die): Change early_dwarf handling of
5940 DW_AT_string_length, create DW_OP_call4 referencing the
5941 length var temporarily. Handle parameters that are pointers
5942 to string length.
5943 (adjust_string_types): New function.
5944 (gen_subprogram_die): Temporarily set string_types to local var,
5945 call adjust_string_types if needed.
5946 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
5947 New functions.
5948 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
5949
5950 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
5951
5952 * doc/install.texi (*-*-solaris2*): Fix version number and document
5953 requirement on GNU make for building libjava with the Solaris linker.
5954
5955 2016-08-15 Martin Liska <mliska@suse.cz>
5956 Jakub Jelinek <jakub@redhat.com>
5957
5958 PR tree-optimization/72824
5959 * tree-loop-distribution.c (const_with_all_bytes_same)
5960 <case VECTOR_CST>: Fix a typo.
5961
5962 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
5963
5964 PR target/76342
5965 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
5966 Renamed from _mm512_undefined_si512.
5967 (_mm_undefined_si512): New definition.
5968
5969 2016-08-13 Richard Biener <rguenther@suse.de>
5970
5971 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
5972 into PHIs and update the lattice for its def.
5973
5974 2016-08-12 Jakub Jelinek <jakub@redhat.com>
5975
5976 PR c/71512
5977 * ubsan.c (instrument_si_overflow): Pass true instead of false
5978 to gsi_replace.
5979 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
5980 of bbs. Return TODO_cleanup_cfg if any returned true.
5981
5982 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5983
5984 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
5985 ISA 3.0 MTVSRDD instruction.
5986 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
5987 vecperm.
5988
5989 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
5990
5991 PR tree-optimization/71083
5992 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
5993 bitfield access when possible.
5994
5995 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
5996
5997 PR middle-end/71654
5998 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
5999 sign-changing cast from a shorter unsigned type to a wider
6000 signed type.
6001
6002 2016-08-12 Jakub Jelinek <jakub@redhat.com>
6003
6004 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
6005 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
6006 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
6007
6008 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6009
6010 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
6011 Correct costs for vec_construct.
6012
6013 2016-08-12 Bin Cheng <bin.cheng@arm.com>
6014
6015 PR tree-optimization/69848
6016 * tree-vectorizer.h (enum vect_def_type): New condition reduction
6017 type CONST_COND_REDUCTION.
6018 * tree-vect-loop.c (vectorizable_reduction): Support new condition
6019 reudction type CONST_COND_REDUCTION.
6020
6021 2016-08-12 Richard Biener <rguenther@suse.de>
6022
6023 PR tree-optimization/57326
6024 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
6025 returning an SSA name.
6026 (phi_translate_1): When fully_constant_expression returns a NAME
6027 make sure we have a leader for it.
6028
6029 2016-08-12 Martin Liska <mliska@suse.cz>
6030 Adam Fineman <afineman@afineman.com>
6031
6032 * gcov.c (process_file): Create .gcov file when .gcda
6033 file is missing.
6034
6035 2016-08-12 Marek Polacek <polacek@redhat.com>
6036
6037 PR c/7652
6038 * alias.c (find_base_value): Adjust fall through comment.
6039 * cfgexpand.c (expand_debug_expr): Likewise.
6040 * combine.c (find_split_point): Likewise.
6041 (expand_compound_operation): Likewise. Add FALLTHRU.
6042 (make_compound_operation): Adjust fall through comment.
6043 (canon_reg_for_combine): Add FALLTHRU.
6044 (force_to_mode): Adjust fall through comment.
6045 (simplify_shift_const_1): Likewise.
6046 (simplify_comparison): Likewise.
6047 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
6048 FALLTHRU.
6049 * config/aarch64/predicates.md: Likewise.
6050 * config/i386/i386.c (function_arg_advance_32): Likewise.
6051 (ix86_gimplify_va_arg): Likewise.
6052 (print_reg): Likewise.
6053 (ix86_print_operand): Likewise.
6054 (ix86_build_const_vector): Likewise.
6055 (ix86_expand_branch): Likewise.
6056 (ix86_sched_init_global): Adjust fall through comment.
6057 (ix86_expand_args_builtin): Add FALLTHRU.
6058 (ix86_expand_builtin): Likewise.
6059 (ix86_expand_vector_init_one_var): Likewise.
6060 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
6061 (rs6000_adjust_cost): Likewise.
6062 (insn_must_be_first_in_group): Likewise.
6063 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
6064 * dbxout.c (dbxout_symbol): Adjust fall through comment.
6065 * df-scan.c (df_uses_record): Likewise.
6066 * dojump.c (do_jump): Add FALLTHRU.
6067 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
6068 comment.
6069 (resolve_args_picking_1): Adjust fall through comment.
6070 (loc_list_from_tree_1): Likewise.
6071 * expmed.c (make_tree): Likewise.
6072 * expr.c (expand_expr_real_2): Add FALLTHRU.
6073 (expand_expr_real_1): Likewise. Adjust fall through comment.
6074 * fold-const.c (const_binop): Adjust fall through comment.
6075 (fold_truth_not_expr): Likewise.
6076 (fold_cond_expr_with_comparison): Add FALLTHRU.
6077 (fold_binary_loc): Likewise.
6078 (contains_label_1): Adjust fall through comment.
6079 (multiple_of_p): Likewise.
6080 * gcov-tool.c (process_args): Add FALLTHRU.
6081 * genattrtab.c (check_attr_test): Likewise.
6082 (write_test_expr): Likewise.
6083 * genconfig.c (walk_insn_part): Likewise.
6084 * genpreds.c (validate_exp): Adjust fall through comment.
6085 (needs_variable): Likewise.
6086 * gensupport.c (get_alternatives_number): Add FALLTHRU.
6087 (subst_dup): Likewise.
6088 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
6089 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
6090 (gimplify_scan_omp_clauses): Add FALLTHRU.
6091 (goa_stabilize_expr): Likewise.
6092 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
6093 through comment.
6094 * hsa-gen.c (get_address_from_value): Likewise.
6095 * ipa-icf.c (sem_function::hash_stmt): Likewise.
6096 * ira.c (ira_setup_alts): Add FALLTHRU.
6097 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
6098 comment.
6099 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
6100 * opts.c (common_handle_option): Likewise.
6101 * read-rtl.c (read_rtx_code): Likewise.
6102 * real.c (round_for_format): Likewise.
6103 * recog.c (asm_operand_ok): Likewise.
6104 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
6105 * reload1.c (set_label_offsets): Likewise.
6106 (eliminate_regs_1): Likewise.
6107 (reload_reg_reaches_end_p): Likewise.
6108 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
6109 (rtx_cost): Likewise.
6110 * sched-rgn.c (is_exception_free): Likewise.
6111 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
6112 * stor-layout.c (int_mode_for_mode): Likewise.
6113 * toplev.c (print_to_asm_out_file): Likewise.
6114 (print_to_stderr): Likewise.
6115 * tree-cfg.c (gimple_verify_flow_info): Likewise.
6116 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
6117 (chrec_fold_multiply): Likewise.
6118 (evolution_function_is_invariant_rec_p): Likewise.
6119 (for_each_scev_op): Likewise.
6120 * tree-data-ref.c (siv_subscript_p): Likewise.
6121 (get_references_in_stmt): Likewise.
6122 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
6123 (substitute_in_expr): Likewise.
6124 (type_cache_hasher::equal): Likewise.
6125 (walk_type_fields): Likewise.
6126 * var-tracking.c (adjust_mems): Add FALLTHRU.
6127 (set_dv_changed): Adjust fall through comment.
6128 * varasm.c (default_function_section): Add FALLTHRU.
6129
6130 2016-08-12 Marek Polacek <polacek@redhat.com>
6131
6132 PR c/7652
6133 * tree-complex.c (expand_complex_division): Add missing break.
6134
6135 2016-08-12 Richard Biener <rguenther@suse.de>
6136
6137 * passes.c (execute_todo): Do not push/pop TV_TODO.
6138 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
6139 (execute_one_pass): Likewise.
6140 * common.opt (ftime-report-details): New switch.
6141 * doc/invoke.texi (ftime-report-details): Document.
6142 * timevar.h (timer::print_row): Adjust signature.
6143 (timer::all_zero): New static helper.
6144 (timer::child_map_t): New typedef.
6145 (timer::time_var_def): Add children field.
6146 * timevar.c (timer::named_items::print): Adjust.
6147 (timer::~timer): Free timevar recorded children.
6148 (timer::pop_internal): When -ftime-report-details record
6149 time spent in sub-timevars.
6150 (timer::print_row): Adjust.
6151 (timer::print): Print sub-timevar stats, use all_zero.
6152 * timevar.def (TV_TODO): Remove.
6153
6154 2016-08-12 Richard Biener <rguenther@suse.de>
6155
6156 PR tree-optimization/72851
6157 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
6158 worklists to use bitmaps indexed in execution order.
6159 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
6160 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
6161 (cfg_blocks): Make a bitmap.
6162 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
6163 New globals.
6164 (cfg_blocks_empty_p): Adjust.
6165 (cfg_blocks_add): Likewise.
6166 (cfg_blocks_get): Likewise.
6167 (add_ssa_edge): Likewise.
6168 (add_control_edge): Likewise.
6169 (simulate_stmt): Likewise.
6170 (process_ssa_edge_worklist): Likewise.
6171 (simulate_block): Likewise.
6172 (ssa_prop_init): Compute PRE order and stmt UIDs.
6173 (ssa_prop_fini): Adjust.
6174 (ssa_propagate): Adjust.
6175
6176 2016-08-12 Richard Biener <rguenther@suse.de>
6177
6178 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
6179 the currently executable edges have fixed ranges. Always
6180 go through update_value_range.
6181
6182 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
6183
6184 PR debug/63240
6185 * langhooks-def.h
6186 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
6187 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
6188 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
6189 (LANG_HOOKS_DECLS): Add it.
6190 * langhooks.h (struct lang_hooks_for_decls): Add
6191 function_decl_defaulted. Const_tree-ify
6192 function_decl_explicit_p and function_decl_deleted_p.
6193 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
6194 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
6195 also at strict DWARF v5.
6196
6197 PR debug/55641
6198 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
6199 TYPE_QUAL_CONST in reference-typed decls.
6200
6201 PR debug/49366
6202 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
6203 in DW_OP_pieces, just enough to handle pointers to member
6204 functions.
6205 (gen_remaining_tmpl_value_param_die_attribute): Use a location
6206 expression on DWARFv5 if a constant value doesn't work.
6207
6208 2016-08-11 David Malcolm <dmalcolm@redhat.com>
6209
6210 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
6211 * selftest.c (selftest::test_assertions): New function.
6212 (selftest::selftest_c_tests): New function.
6213 * selftest.h (selftest::selftest_c_tests): New declaration.
6214
6215 2016-08-11 Richard Biener <rguenther@suse.de>
6216 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6217
6218 PR rtl-optimization/72855
6219 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
6220
6221 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6222
6223 PR target/72863
6224 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
6225 (vsx_store_<mode>): Likewise.
6226
6227 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6228
6229 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
6230 TImode CONST_WIDE_INT store.
6231 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
6232
6233 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6234
6235 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
6236 mode if unaligned SSE load and store are optimal.
6237
6238 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6239
6240 PR tree-optimization/71083
6241 * tree-predcom.c (ref_at_iteration): Correctly align the
6242 reference type.
6243
6244 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6245
6246 * config/s390/s390-builtin-types.def: Add INT128 types.
6247 * config/s390/s390-builtins.def: Add INT128 variants for the add
6248 sub low-level builtins dealing with TImode.
6249 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
6250 via subreg when expanding a builtin.
6251 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
6252 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
6253 Fix comment.
6254 * config/s390/vecintrin.h: Adjust builtin names accordingly.
6255 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
6256 ("vec_addc<mode>", "vec_addc_u128"): Merge to
6257 "vacc<bhfgq>_<mode>".
6258 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
6259 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
6260 ("vec_subc<mode>", "vec_subc_u128"): Merge to
6261 "vscbi<bhfgq>_<mode>".
6262 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
6263 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
6264
6265 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6266
6267 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
6268
6269 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6270
6271 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
6272 unused declaration.
6273 (vcond<v_cmp_mixed><mode>): Ditto.
6274 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6275
6276 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6277
6278 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
6279 variable explicitly, also assert on it before use.
6280
6281 2016-08-11 Richard Biener <rguenther@suse.de>
6282
6283 PR tree-optimization/72772
6284 * cfgloopmanip.c (create_preheader): Use split_edge if there
6285 is a single loop entry, avoiding degenerate PHIs.
6286
6287 2016-08-11 Richard Biener <rguenther@suse.de>
6288
6289 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
6290 unconditional TODO_cleanup_cfg.
6291 (pass_thread_jumps::execute): Initialize loops, perform a CFG
6292 cleanup only if we threaded a jump.
6293
6294 2016-08-11 Alan Modra <amodra@gmail.com>
6295
6296 PR target/71680
6297 * lra-constraints.c (simplify_operand_subreg): Allow subreg
6298 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
6299 slow. Emit two reloads for slow mem case, first loading in
6300 fast innermode, then converting to required mode.
6301
6302 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
6303
6304 * config/rs6000/altivec.h (vec_extract_exp): New macro.
6305 (vec_extract_sig): New macro.
6306 (vec_insert_exp): New macro.
6307 (vec_test_data_class): New macro.
6308 (scalar_extract_exp): New macro.
6309 (scalar_extract_sig): New macro.
6310 (scalar_insert_exp): New macro.
6311 (scalar_test_data_class): New macro.
6312 (scalar_test_neg): New macro.
6313 (scalar_cmp_exp_gt): New macro.
6314 (scalar_cmp_exp_lt): New macro.
6315 (scalar_cmp_exp_eq): New macro.
6316 (scalar_cmp_exp_unordered): New macro.
6317 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
6318 to enforce constraint that operand is a 7-bit unsigned literal.
6319 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
6320 for power9 built-ins.
6321 (BU_P9V_VSX_2): Likewise.
6322 (BU_P9V_64BIT_VSX_2): Likewise.
6323 (VSEEDP): Add scalar extract exponent support.
6324 (VSEESP): Add scalar extract signature support.
6325 (VSTDCNDP): Add scalar test negative support.
6326 (VSTDCNSP): Likewise.
6327 (VSIEDP): Add scalar insert exponent support.
6328 (VSCEDPGT): Add scalar compare exponent greater than support.
6329 (VSCEDPLT): Add scalar compare exponent less than support.
6330 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
6331 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
6332 (VSTDCDP): Add scalar test data class support.
6333 (VSTDCSP): Likewise.
6334 (VSEEDP): Add overload support for scalar extract exponent
6335 operation.
6336 (VSESDP): Add overload support for scalar extract signature
6337 operation.
6338 (VSTDCN): Add overload support for scalar test negative
6339 operation.
6340 (VSTDCNDP): Add overload support for scalar test negative
6341 operation.
6342 (VSTDCNSP): Add overload support for scalar test negative
6343 operation.
6344 (VSIEDP): Add overload support for scalar insert exponent
6345 operation.
6346 (VSTDC): Add overload support for scalar test data class
6347 operation.
6348 (VSTDCDP): Add overload support for scalar test data class
6349 operation.
6350 (VSTDCSP): Add overload support for scalar test data class
6351 opreation.
6352 (VSCEDPGT): Add overload support for scalar compare exponent
6353 greater than operation.
6354 (VSCEDPLT): Add overload support for scalar compare exponent
6355 less than operation.
6356 (VSCEDPEQ): Add overload support for scalar compare exponent
6357 test-for-equality operation.
6358 (VSCEDPUO): Add overload support for scalar compare exponent
6359 test-for-unordered operation.
6360 (VEEDP): Add vector extract exponent support.
6361 (VEESP): Likewise.
6362 (VESDP): Add vector extract significand support.
6363 (VESSP): Likewise.
6364 (VIEDP): Add vector insert exponent support.
6365 (VIESP): Likewise.
6366 (VTDCDP): Add vector test data class support.
6367 (VTDCSP): Likewise.
6368 (VES): Add overload support for vector extract significand operation.
6369 (VESDP): Likewise.
6370 (VESSP): Likewise
6371 (VEE): Add overload support for vector extract exponent operation.
6372 (VEEDP): Likewise.
6373 (VEESP): Likewise.
6374 (VTDC): Add overload support for vector test data class operation.
6375 (VTDCDP): Likewise.
6376 (VTDCSP): Likewise.
6377 (VIE): Add overload support for vector insert exponent operation.
6378 (VIEDP): Likewise.
6379 (VIESP): Likewise.
6380 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6381 overloaded binary floating point functions.
6382 (altivec_resolve_overloaded_builtin): Improve error messages to
6383 distinguish between functions not supported in the current
6384 compiler configuration and functions that were invoked with an
6385 invalid parameter combination, and include the built-in function
6386 name in both error messages.
6387 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
6388 New prototype.
6389 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
6390 function.
6391 (rs6000_expand_binop_builtin): Add check to enforce that argument
6392 2 of the test data class operations is a 7-bit unsigned literal.
6393 (rs6000_invalid_builtin): Add code to issue an error message if a
6394 built-in function that requires the power9_vector and -m32
6395 command-line options is compiled without these options.
6396 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
6397 (UNSPEC_VSX_SXSIGDP): New value.
6398 (UNSPEC_VSX_SXSIGPDP): New value.
6399 (UNSPEC_VSX_SIEXPDP): New value.
6400 (UNSPEC_VSX_SCMPEXPDP): New value.
6401 (UNSPEC_VSX_STSTDC): New value.
6402 (UNSPEC_VSX_VXEXP): New value.
6403 (UNSPEC_VSX_VXSIG): New value.
6404 (UNSPEC_VSX_VIEXP): New value.
6405 (UNSPEC_VSX_VTSTDC): New value.
6406 (xsxexpdp): New insn for scalar extract exponent.
6407 (xsxsigdp): New insn for scalar extract significand.
6408 (xsiexpdp): New insn for scalar insert exponent.
6409 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
6410 (*xscmpexpdp): New insn for scalar compare exponents.
6411 (xststdc<Fvsx): New expansion for both single- and
6412 double-precision scalar test data class operations.
6413 (xststdcneg<Fvsx>): New expansion for both single- and
6414 double-precision scalar test for negative value operations.
6415 (*xststdc<Fvsx>): New insn for scalar test data class
6416 operation.
6417 (xvxexp<VSs>): New insn for single- and double-precision
6418 vector extract exponent operation.
6419 (xvxsig<VSs>): New insn for single- and double-precision
6420 vector extract significand operation.
6421 (xviexp<VSs>): New insn for single- and double-precision
6422 vector insert exponent operation.
6423 (xvtstdc<VSs>): New insn for single- and double-precision
6424 vector test data class operation.
6425 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6426 built-in functions to represent the Power9 binary floating-point
6427 support instructions.
6428
6429 2016-08-10 bin cheng <bin.cheng@arm.com>
6430
6431 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
6432
6433 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
6434 Renlin Li <renlin.li@arm.com>
6435 Bin Cheng <bin.cheng@arm.com>
6436
6437 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
6438 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
6439 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
6440 (aarch64_vcond_internal<mode><mode>): Delete pattern.
6441 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
6442 (vcond<v_cmp_result><mode>): Ditto.
6443 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
6444 (vcondu<mode><mode>): Ditto.
6445 (vcond<v_cmp_mixed><mode>): New pattern.
6446 (vcondu<mode><v_cmp_mixed>): New pattern.
6447 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
6448 of aarch64_vcond_internal.
6449
6450 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
6451 Renlin Li <renlin.li@arm.com>
6452 Bin Cheng <bin.cheng@arm.com>
6453
6454 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
6455 (vec_cmp<mode><v_cmp_result>): New pattern.
6456 (vec_cmpu<mode><mode>): New pattern.
6457 (vcond_mask_<mode><v_cmp_result>): New pattern.
6458
6459 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
6460
6461 PR tree-optimization/71734
6462 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
6463 REF_LOOP, invoke ref_indep_loop_p_1.
6464 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
6465 to ref_indep_loop_p.
6466 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
6467 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
6468 is inside LOOP, do not cache dpendence value for loops with
6469 non-zero SAFELEN.
6470 (ref_indep_loop_p_2): Delete function.
6471 (can_sm_ref_p): Pass LOOP as additional argument to
6472 ref_indep_loop_p.
6473
6474 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6475
6476 PR target/72853
6477 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
6478 being an offsettable address.
6479
6480 2016-08-10 Martin Liska <mliska@suse.cz>
6481
6482 PR gcov-profile/58306
6483 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
6484 atomic variants of profile update functions.
6485
6486 2016-08-10 Martin Liska <mliska@suse.cz>
6487
6488 Cherry picked (and modified) from google-4_7 branch
6489 2012-12-26 Rong Xu <xur@google.com>
6490 * common.opt (fprofile-update): Add new flag.
6491 * coretypes.h: Define enum profile_update.
6492 * doc/invoke.texi: Document -fprofile-update.
6493 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
6494 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
6495 * tree-profile.c (gimple_init_edge_profiler): Generate
6496 also atomic profiler update.
6497 (gimple_gen_edge_profiler): Likewise.
6498
6499 2016-08-10 David Malcolm <dmalcolm@redhat.com>
6500
6501 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
6502 stack_usage_file to NULL after fclose calls.
6503
6504 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6505
6506 PR target/71873
6507 * reload.c (push_reload): Compute subreg_in_class for
6508 subregs of constants and plus expressions. Remove special
6509 handling of SYMBOL_REFs.
6510
6511 2016-08-10 Alan Modra <amodra@gmail.com>
6512
6513 PR target/71680
6514 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
6515 SImode for TARGET_E500_DOUBLE when given SImode.
6516
6517 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
6518
6519 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
6520 unused variable __O.
6521
6522 2016-08-09 Martin Liska <mliska@suse.cz>
6523
6524 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
6525 _gcov_reset to __gcov_reset.
6526 * doc/gcov-tool.texi: Fix typo.
6527
6528 2016-08-09 Martin Liska <mliska@suse.cz>
6529
6530 * value-prof.c (gimple_divmod_values_to_profile): Do not
6531 instrument MOD histogram if a value is not a SSA name.
6532
6533 2016-08-09 Martin Liska <mliska@suse.cz>
6534
6535 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
6536 values.
6537
6538 2016-08-09 Renlin Li <renlin.li@arm.com>
6539
6540 PR middle-end/64971
6541 * calls.c (prepare_call_address): Convert funexp to Pmode when
6542 necessary.
6543 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
6544 (sibcall_value): Likewise.
6545
6546 2016-08-09 Marek Polacek <polacek@redhat.com>
6547
6548 PR c/7652
6549 * cselib.c (cselib_expand_value_rtx_1): Add return.
6550 * gengtype.c (dbgprint_count_type_at): Likewise.
6551 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
6552 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
6553
6554 2016-08-09 Martin Jambor <mjambor@suse.cz>
6555
6556 PR ipa/71981
6557 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
6558 if instance is a MEM_REF.
6559
6560 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
6561
6562 PR target/72843
6563 * config/i386/i386.md (*movtf_internal): Use
6564 lra_in_progress || reload_completed instead of !can_create_pseudo_p
6565 in the insn constraint.
6566 (*movxf_internal): Ditto.
6567 (*movdf_internal): Ditto.
6568 (*movsf_internal): Ditto.
6569
6570 2016-08-09 Bin Cheng <bin.cheng@arm.com>
6571
6572 PR tree-optimization/72772
6573 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
6574 for expanded base.
6575
6576 2016-08-09 Bin Cheng <bin.cheng@arm.com>
6577
6578 PR tree-optimization/72772
6579 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
6580 parameter STOP.
6581 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
6582 parameter STOP and update calls. Move expand_simple_operations
6583 function call from here...
6584 (simplify_using_initial_conditions): ...to here. Delete parameter
6585 STOP.
6586 (tree_simplify_using_condition): Delete parameter STOP.
6587 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
6588 simplify_using_initial_conditions.
6589
6590 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
6591
6592 PR c/65345
6593 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
6594 Use create_tmp_var_raw instead of create_tmp_var.
6595
6596 2016-08-09 Richard Biener <rguenther@suse.de>
6597
6598 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
6599 Treat same SSA names related.
6600
6601 2016-08-09 Jakub Jelinek <jakub@redhat.com>
6602
6603 PR tree-optimization/72824
6604 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
6605 real_zerop is not negative.
6606
6607 2016-08-09 Richard Biener <rguenther@suse.de>
6608
6609 PR tree-optimization/71802
6610 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
6611 all merge opportunities with the predecessor.
6612
6613 2016-08-09 Richard Biener <rguenther@suse.de>
6614
6615 PR ipa/68273
6616 * ipa-prop.c (ipa_modify_formal_parameters): Build
6617 parameter types with natural alignment also for the
6618 over-aligned case.
6619
6620 2016-08-08 Andi Kleen <ak@linux.intel.com>
6621
6622 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
6623
6624 2016-08-08 David Malcolm <dmalcolm@redhat.com>
6625
6626 PR c/64955
6627 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
6628 do-nothing langhook.
6629 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
6630 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
6631 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
6632 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
6633
6634 2016-08-08 David Malcolm <dmalcolm@redhat.com>
6635
6636 PR bootstrap/72844
6637 * input.c: Ensure that HAVE_ICONV is defined.
6638
6639 2016-08-08 Jakub Jelinek <jakub@redhat.com>
6640
6641 PR middle-end/72781
6642 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
6643 private vars for lastprivate and for linear iterator.
6644
6645 PR middle-end/68762
6646 * omp-simd-clone.c: Include varasm.h.
6647 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
6648 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
6649 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
6650 update function name.
6651
6652 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6653
6654 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
6655 (avr_diagnose_devicespecs_error): Remove.
6656 (avr_devicespecs_file): Remove composing absolute path for specfile
6657 and its verbose info. Remove conditions to check specs-file,
6658
6659 2016-08-08 Jakub Jelinek <jakub@redhat.com>
6660
6661 PR rtl-optimization/72821
6662 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
6663 just return false for them.
6664
6665 2016-08-08 Alan Modra <amodra@gmail.com>
6666
6667 PR target/72771
6668 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
6669 toc refs created during reload. Update function comment.
6670
6671 2016-08-08 Alan Modra <amodra@gmail.com>
6672
6673 PR target/72802
6674 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
6675 alternatives. Put loads first, then stores, and reg/reg moves
6676 within same class later. Delete attr length.
6677
6678 2016-08-08 Alan Modra <amodra@gmail.com>
6679
6680 PR target/72802
6681 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
6682 (mem_operand_ds_form): New predicate.
6683 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
6684 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
6685 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
6686 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
6687 (extendsfdf2_fpr): Replace o constraint with wY.
6688
6689 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
6690
6691 * tree-ssa-threadbackward.c: Include tree-inline.h
6692 (profitable_jump_thread_path): Use estimate_num_insns to estimate
6693 size of copied block; for cold paths reduce duplication.
6694 (find_jump_threads_backwards): Remove redundant tests.
6695 (pass_thread_jumps::gate): Enable for -Os.
6696
6697 2016-08-07 Jakub Jelinek <jakub@redhat.com>
6698
6699 PR c/72816
6700 * stor-layout.c (layout_decl): Fix up formatting.
6701 (relayout_decl): Allow DECL to be FIELD_DECL.
6702
6703 2016-08-07 Alan Modra <amodra@gmail.com>
6704
6705 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
6706
6707 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6708
6709 * data-streamer-in.c (streamer_read_wide_int): New.
6710 (streamer_read_widest_int): Renamed function.
6711 * data-streamer-out.c (streamer_write_wide_int): New
6712 (streamer_write_widest_int): Renamed function.
6713 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
6714 data-stream-in.c.
6715 (input_cfg): Call renamed function.
6716 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
6717 data-stream-out.c.
6718 (output_cfg): Call renamed function.
6719 * data-streamer.h: Add declarations.
6720
6721 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6722
6723 * tree-ssa-ccp.c (extend_mask): New param sgn.
6724 Remove ORing with wi::mask.
6725 (get_default_value): Adjust call to extend_mask to pass sign.
6726 (evaluate_stmt): Likewise.
6727
6728 2016-08-06 Jakub Jelinek <jakub@redhat.com>
6729
6730 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
6731 INT64_MAX.
6732
6733 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6734
6735 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
6736 transform if operand's type is pointer to function or method.
6737
6738 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
6739
6740 PR tree-optimization/18046
6741 * tree-ssa-threadedge.c: Include cfganal.h.
6742 (simplify_control_statement_condition): If simplifying a
6743 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
6744 with the dominating ASSERT_EXPR before handing it off to VRP.
6745 Mention that a CASE_LABEL_EXPR may be returned.
6746 (thread_around_empty_blocks): Adjust to handle
6747 simplify_control_statement_condition() returning a
6748 CASE_LABEL_EXPR.
6749 (thread_through_normal_block): Likewise.
6750 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
6751 a switch statement by trying to determine which case label
6752 will be taken.
6753
6754 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
6755
6756 PR rtl-optimization/69847
6757 * lra-constraints.c (process_invariant_for_inheritance): Save
6758 pattern instead of src.
6759 (remove_inheritance_pseudos): Use the pattern. Add assert.
6760
6761 2016-08-05 David Malcolm <dmalcolm@redhat.com>
6762
6763 * input.c (string_concat::string_concat): New constructor.
6764 (string_concat_db::string_concat_db): New constructor.
6765 (string_concat_db::record_string_concatenation): New method.
6766 (string_concat_db::get_string_concatenation): New method.
6767 (string_concat_db::get_key_loc): New method.
6768 (class auto_cpp_string_vec): New class.
6769 (get_substring_ranges_for_loc): New function.
6770 (get_source_range_for_substring): New function.
6771 (get_num_source_ranges_for_substring): New function.
6772 (class selftest::lexer_test_options): New class.
6773 (struct selftest::lexer_test): New struct.
6774 (class selftest::ebcdic_execution_charset): New class.
6775 (selftest::ebcdic_execution_charset::s_singleton): New variable.
6776 (selftest::lexer_test::lexer_test): New constructor.
6777 (selftest::lexer_test::~lexer_test): New destructor.
6778 (selftest::lexer_test::get_token): New method.
6779 (selftest::assert_char_at_range): New function.
6780 (ASSERT_CHAR_AT_RANGE): New macro.
6781 (selftest::assert_num_substring_ranges): New function.
6782 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
6783 (selftest::assert_has_no_substring_ranges): New function.
6784 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
6785 (selftest::test_lexer_string_locations_simple): New function.
6786 (selftest::test_lexer_string_locations_ebcdic): New function.
6787 (selftest::test_lexer_string_locations_hex): New function.
6788 (selftest::test_lexer_string_locations_oct): New function.
6789 (selftest::test_lexer_string_locations_letter_escape_1): New function.
6790 (selftest::test_lexer_string_locations_letter_escape_2): New function.
6791 (selftest::test_lexer_string_locations_ucn4): New function.
6792 (selftest::test_lexer_string_locations_ucn8): New function.
6793 (selftest::uint32_from_big_endian): New function.
6794 (selftest::test_lexer_string_locations_wide_string): New function.
6795 (selftest::uint16_from_big_endian): New function.
6796 (selftest::test_lexer_string_locations_string16): New function.
6797 (selftest::test_lexer_string_locations_string32): New function.
6798 (selftest::test_lexer_string_locations_u8): New function.
6799 (selftest::test_lexer_string_locations_utf8_source): New function.
6800 (selftest::test_lexer_string_locations_concatenation_1): New
6801 function.
6802 (selftest::test_lexer_string_locations_concatenation_2): New
6803 function.
6804 (selftest::test_lexer_string_locations_concatenation_3): New
6805 function.
6806 (selftest::test_lexer_string_locations_macro): New function.
6807 (selftest::test_lexer_string_locations_stringified_macro_argument):
6808 New function.
6809 (selftest::test_lexer_string_locations_non_string): New function.
6810 (selftest::test_lexer_string_locations_long_line): New function.
6811 (selftest::test_lexer_char_constants): New function.
6812 (selftest::input_c_tests): Call the new test functions once per
6813 case within the line_table test matrix.
6814 * input.h (struct string_concat): New struct.
6815 (struct location_hash): New struct.
6816 (class string_concat_db): New class.
6817 * substring-locations.h: New header.
6818
6819 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
6820
6821 PR tree-optimization/72810
6822 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
6823 the type of the case labels when truncating.
6824
6825 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
6826
6827 PR Target/72819
6828 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
6829 (aarch64_fp16_ptr_type_node): Likewise.
6830 * config/aarch64/aarch64-simd-builtins.c
6831 (aarch64_fp16_ptr_type_node): Define.
6832 (aarch64_init_fp16_types): New, refactored out of...
6833 (aarch64_init_builtins): ...here, update to call
6834 aarch64_init_fp16_types.
6835 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
6836 HFmode.
6837 (aapcs_vfp_sub_candidate): Likewise.
6838
6839 2016-08-05 Martin Liska <mliska@suse.cz>
6840 Joshua Cranmer <Pidgeot18@gmail.com>
6841
6842 * gcov.c (line_t::has_block): New function.
6843 (enum loop_type): New enum.
6844 (handle_cycle): New function.
6845 (unblock): Likewise.
6846 (circuit): Likewise.
6847 (get_cycles_count): Likewise.
6848 (accumulate_line_counts): Use new loop detection algorithm.
6849
6850 2016-08-05 Martin Liska <mliska@suse.cz>
6851
6852 * gcov.c (output_intermediate_file): Rename
6853 function_info::line_next to next_file_fn.
6854 (process_file): Likewise.
6855 (read_graph_file): Likewise.
6856 (accumulate_line_counts): Likewise.
6857 (output_lines): Likewise.
6858
6859 2016-08-05 Richard Biener <rguenther@suse.de>
6860
6861 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
6862 restriction on threading to a loop header.
6863
6864 2016-08-05 Richard Biener <rguenther@suse.de>
6865
6866 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
6867 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
6868 adjust loop info accordingly.
6869
6870 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
6871
6872 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
6873 before folding call to __builtin_constant_p with parameters to false.
6874
6875 2016-08-05 Alan Modra <amodra@gmail.com>
6876
6877 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
6878 code accidentally committed 2016-05-02 providing class when given
6879 NO_REGS.
6880
6881 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
6882
6883 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
6884 the case label ranges that partially overlap with OP's value
6885 range.
6886
6887 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
6888
6889 PR target/72805
6890 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
6891 Cast builtin function result to __mmask16 instead of __mmask8.
6892 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6893 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
6894 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6895
6896 2016-08-04 David Malcolm <dmalcolm@redhat.com>
6897
6898 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
6899 (ASSERT_TRUE_AT): New macro.
6900 (ASSERT_FALSE): Reimplement in terms of...
6901 (ASSERT_FALSE_AT): New macro.
6902 (ASSERT_STREQ_AT): Fix typo in comment.
6903
6904 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
6905
6906 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
6907 labels are exhaustive, designate the label with the widest
6908 range to be the default label.
6909
6910 2016-08-04 Andrew Pinski <apinski@cavium.com>
6911
6912 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
6913 (thunderx_tunings): Use thunderx_vector_cost instead of
6914 generic_vector_cost.
6915
6916 2016-08-04 Martin Liska <mliska@suse.cz>
6917
6918 * gcov.c (main): Fix GNU coding style.
6919 (output_intermediate_file): Likewise.
6920 (process_file): Likewise.
6921 (generate_results): Likewise.
6922 (release_structures): Likewise.
6923 (create_file_names): Likewise.
6924 (find_source): Likewise.
6925 (read_graph_file): Likewise.
6926 (find_exception_blocks): Likewise.
6927 (canonicalize_name): Likewise.
6928 (make_gcov_file_name): Likewise.
6929 (mangle_name): Likewise.
6930 (accumulate_line_counts): Likewise.
6931 (output_branch_count): Likewise.
6932 (read_line): Likewise.
6933
6934 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6935
6936 PR rtl-optimization/71779
6937 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
6938 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
6939 or if it was truncated.
6940
6941 PR rtl-optimization/70903
6942 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
6943
6944 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
6945
6946 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
6947 accessing SSA_NAME_PTR_INFO.
6948
6949 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
6950
6951 PR 70677
6952 * common/config/avr/avr-common.c (avr_option_optimization_table)
6953 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
6954
6955 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
6956
6957 PR 55181
6958 * config/avr/avr.md: New pattern to work around do_store_flag
6959 generating shift instructions for bit extractions.
6960
6961 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
6962
6963 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
6964 BITMAP_ALLOC.
6965 (add_equivalence): Likewise.
6966 (get_value_range): Allocate value range with vrp_value_range_pool.
6967 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
6968 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
6969
6970 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
6971
6972 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
6973 the default for the rs6000 port.
6974
6975 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6976
6977 PR middle-end/71876
6978 * calls.c (special_function_p): Remove special handling of
6979 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
6980 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
6981 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
6982
6983 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
6984
6985 PR middle-end/72778
6986 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
6987 Don't stop on regular insns.
6988
6989 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
6990
6991 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
6992 size to DImode boundary.
6993 (nvptx_propagate): Likewise.
6994
6995 2016-08-03 Alan Modra <amodra@gmail.com>
6996
6997 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
6998 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
6999 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
7000 from -mefficient-unaligned-vector. Note that this affects fp too.
7001
7002 2016-08-03 Alan Modra <amodra@gmail.com>
7003
7004 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
7005 cost more.
7006
7007 2016-08-03 Alan Modra <amodra@gmail.com>
7008
7009 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
7010 to a reg. Localize vars.
7011
7012 2016-08-03 Alan Modra <amodra@gmail.com>
7013
7014 * config/rs6000/rs6000.opt: Remove negatives from help strings
7015 and comments.
7016
7017 2016-08-03 Alan Modra <amodra@gmail.com>
7018
7019 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
7020 Delete duplicated code.
7021
7022 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
7023
7024 PR middle-end/72778
7025 * lra-spills.c (regno_in_use_p): New.
7026 (lra_final_code_change): Use it.
7027
7028 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
7029
7030 PR rtl-optimization/69847
7031 * lra-int.h (struct lra-reg): Use restore_rtx instead of
7032 restore_regno.
7033 (lra_rtx_hash): New.
7034 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
7035 of restore_regno.
7036 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
7037 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
7038 * lra-spills.c (lra_final_code_change): Don't delete insn when the
7039 next insn is USE with the same reg as the current insn source.
7040 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
7041 of restore_regno.
7042 (lra_constraints_init): Call initiate_invariants.
7043 (lra_constraints_finish): Call finish_invariants.
7044 (struct invariant, invariant_t, invariant_ptr_t): New.
7045 (const_invariant_ptr_t, invariants, invariants_pool): New.
7046 (invariant_table, invariant_hash, invariant_eq_p): New.
7047 (insert_invariant, initiate_invariants, finish_invariants): New.
7048 (clear_invariants, invalid_invariant_regs): New.
7049 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
7050 instead of restore_regno.
7051 (invariant_p, process_invariant_for_inheritance): New.
7052 (inherit_in_ebb): Implement invariant inheritance.
7053 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
7054 (remove_inheritance_pseudos): Implement undoing invariant
7055 inheritance.
7056 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
7057 instead of restore_regno.
7058 * lra-assigns.c (regno_live_length): New.
7059 (reload_pseudo_compare_func): Use regno_live_length.
7060 (assign_by_spills): Use restore_rtx instead of restore_regno.
7061 (lra_assign): Ditto. Initiate regno_live_length.
7062
7063 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
7064
7065 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
7066 __builtin_aarch64_fmindf.
7067
7068 2016-08-02 Bin Cheng <bin.cheng@arm.com>
7069
7070 PR tree-optimization/34114
7071 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
7072 information for more control IVs.
7073
7074 2016-08-02 Bin Cheng <bin.cheng@arm.com>
7075
7076 PR tree-optimization/34114
7077 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
7078 PLUS_EXPR case. Handle SSA_NAME case.
7079
7080 2016-08-02 Tamar Christina <tamar.christina@arm.com>
7081
7082 * config/aarch64/aarch64-simd-builtins.def
7083 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
7084 (__builtin_aarch64_fmaxdf): Likewise.
7085 (__builtin_aarch64_smin_nandf): Likewise.
7086 (__builtin_aarch64_smax_nandf): Likewise.
7087 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
7088 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
7089 (<fmaxmin><mode>3): ...this.
7090 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
7091 (vminnm_f64): Likewise.
7092 (vmin_f64): Likewise.
7093 (vmax_f64): Likewise.
7094 * config/aarch64/iterators.md (FMAXMIN): Merge with...
7095 (FMAXMIN_UNS): ...this.
7096 (fmaxmin): Merged with
7097 (fmaxmin_op): ...this...
7098 (maxmin_uns_op): ...in to this.
7099
7100 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
7101
7102 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7103 Add support for vec_extract on vector float, vector int, vector
7104 short, and vector char vector types.
7105 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7106 vector float, vector int, vector short, and vector char
7107 optimizations on 64-bit ISA 2.07 systems for both constant and
7108 variable element numbers.
7109 (rs6000_split_vec_extract_var): Likewise.
7110 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
7111 Altivec registers on ISA 2.07 and above.
7112 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
7113 which never was matched due to the split occuring before register
7114 allocation (and the code would not have worked on little endian
7115 systems if it did match). Allow extracts to go to the Altivec
7116 registers if ISA 2.07 (power8). Change from using "" around the
7117 C++ code to using {}'s.
7118 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
7119 vec_extracts when the vector is in memory.
7120 (vsx_extract_v4sf_var): New insn to optimize vector float
7121 vec_extracts when the element number is variable on 64-bit ISA
7122 2.07 systems.
7123 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
7124 for 64-bit ISA 2.07 as well as ISA 3.0.
7125 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
7126 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
7127 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
7128 optimize vector int, vector short, and vector char vec_extracts
7129 when the vector is in memory.
7130 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
7131 optimize vector int, vector short, and vector char vec_extracts
7132 when the element number is variable.
7133
7134 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7135
7136 PR target/71948
7137 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
7138 does not overlap with other symbol flags.
7139
7140 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
7141
7142 * config/aarch64/aarch64.h (aarch64_frame):
7143 Remove padding0 and hardfp_offset. Add locals_offset,
7144 initial_adjust, callee_adjust, callee_offset and final_adjust.
7145 * config/aarch64/aarch64.c (aarch64_layout_frame):
7146 Remove unused padding0 and hardfp_offset initializations.
7147 Choose frame layout and set frame variables accordingly.
7148 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
7149 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
7150 (aarch64_pop_regs): Likewise.
7151 (aarch64_expand_prologue): Remove all decision code, just emit
7152 prolog according to frame variables.
7153 (aarch64_expand_epilogue): Remove all decision code, just emit
7154 epilog according to frame variables.
7155 (aarch64_initial_elimination_offset): Use offset to local/arg area.
7156
7157 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
7158
7159 PR target/72748
7160 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
7161 fix_debug_reg_uses after changing source register mode to
7162 V1TImode if source register is undefined.
7163
7164 2015-08-01 Alan Hayward <alan.hayward@arm.com>
7165
7166 PR tree-optimization/71818
7167 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
7168 with non invariant evolutions
7169
7170 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7171
7172 PR target/72767
7173 * config/avr/avr.md (length) [branch]: Correct insn length
7174 attribute for forward branches.
7175
7176 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7177
7178 * doc/extend.texi (AVR Built-in Functions): Document
7179 __builtin_avr_nops.
7180 * config/avr/builtins.def (NOPS): New.
7181 * config/avr/avr.c (avr_expand_nops): New static function.
7182 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
7183
7184 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7185
7186 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
7187 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
7188 addresses.
7189
7190 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
7191
7192 * config/aarch64/aarch64.c (vulcan_tunings): Update
7193 vulcan L1 cache_line_size.
7194
7195 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
7196
7197 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
7198 function that takes a vector memory address, a hard register, an
7199 element number and a temporary base register, and recreates an
7200 address that points to the appropriate element within the vector.
7201 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
7202 (rs6000_split_vec_extract_var): Add support for the target of a
7203 vec_extract with variable element number being a scalar memory
7204 location.
7205 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
7206 swappable.
7207 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
7208 vsx_extract_<mode>_load insn with a new insn that optimizes
7209 storing either element to a memory location, using scratch
7210 registers to pick apart the vector and reconstruct the address.
7211 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
7212 (vsx_extract_<mode>_store): Rework alternatives to more correctly
7213 support Altivec registers. Add support for ISA 3.0 Altivec d-form
7214 store instruction.
7215 (vsx_extract_<mode>_var): Add support for extracting a variable
7216 element number from memory.
7217
7218 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7219
7220 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
7221 when testing for compares against constants of the form 0xabab.
7222
7223 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7224
7225 PR tree-optimization/57558
7226 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
7227 function.
7228 (vect_loop_versioning): Support versioning with niter assumptions.
7229 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
7230 (vect_get_loop_niters): New parameter. Reimplement to support
7231 assumptions in loop niter info.
7232 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
7233 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
7234 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
7235 Support loop versioning for niters.
7236 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
7237 (vect_free_loop_info_assumptions): New function.
7238 (vectorize_loops): Free loop niter info for loops with flag
7239 LOOP_F_ASSUMPTIONS set if vectorization failed.
7240 * tree-vectorizer.h (struct _loop_vec_info): New field
7241 num_iters_assumptions.
7242 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
7243 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
7244 (LOOP_REQUIRES_VERSIONING): New macro.
7245 (vect_free_loop_info_assumptions): New decl.
7246
7247 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7248
7249 * cfgloop.h (struct loop): New field constraints.
7250 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
7251 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
7252 functions.
7253 * cfgloop.c (alloc_loop): Initialize new field.
7254 * cfgloopmanip.c (copy_loop_info): Copy constraints.
7255 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
7256 Adjust niter analysis wrto loop constraints.
7257 * doc/loop.texi (@node Number of iterations): Add description for loop
7258 constraints.
7259
7260 2016-07-29 Marek Polacek <polacek@redhat.com>
7261
7262 PR c/7652
7263 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
7264 (ix86_expand_round_builtin): Likewise.
7265
7266 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
7267 Georg-Johann Lay <avr@gjlay.de>
7268
7269 PR rtl-optimization/71976
7270 * combine.c (get_last_value): Return 0 if the argument for which
7271 the function is called has a wider mode than the recorded value.
7272
7273 2016-07-29 Marek Polacek <polacek@redhat.com>
7274
7275 PR c/7652
7276 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
7277 (altivec_expand_st_builtin): Likewise.
7278
7279 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7280
7281 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
7282 introduced in r238381.
7283
7284 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
7285
7286 PR middle-end/68217
7287 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
7288 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
7289
7290 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
7291
7292 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
7293 New declaration.
7294 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7295 Add support for vec_extract of vector double or vector long having
7296 a variable element number on 64-bit ISA 2.07 systems or newer.
7297 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
7298 Likewise.
7299 (rs6000_split_vec_extract_var): New function to split a
7300 vec_extract built-in function with variable element number.
7301 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
7302 swappable.
7303 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
7304 (UNSPEC_VSX_EXTRACT): Likewise.
7305 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
7306 direct move instructions to be generated on 64-bit ISA 2.07
7307 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
7308 instruction.
7309 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
7310 arguments for vec_extract variable element.
7311 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
7312 vec_extract with variable element on V2DFmode and V2DImode
7313 vectors.
7314 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
7315 -mupper-regs-df requirement, since it isn't needed.
7316 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
7317 do direct moves on 64-bit systems, which allows optimization of
7318 vec_extract on 64-bit ISA 2.07 systems and newer.
7319
7320 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
7321 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7322
7323 * config/aarch64/aarch64.md
7324 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
7325 statement and type.
7326 (<optab>qihi2_aarch64): Likewise, and split into two.
7327 (extendqihi2_aarch64): New.
7328 (zero_extendqihi2_aarch64): New.
7329 * config/aarch64/iterators.md (ldrxt): Remove.
7330 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
7331 uxtb/uxth.
7332
7333 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
7334
7335 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
7336
7337 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7338
7339 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
7340 (aarch64_push_reg): New function to push 1 or 2 registers.
7341 (aarch64_pop_reg): New function to pop 1 or 2 registers.
7342 (aarch64_expand_prologue): Use aarch64_push_regs.
7343 (aarch64_expand_epilogue): Use aarch64_pop_regs.
7344
7345 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
7346
7347 PR tree-optimization/71734
7348 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
7349 attribute instead of REF_LOOP and use it.
7350 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
7351 set it for Loops having non-zero safelen attribute.
7352 (ref_indep_loop_p): Pass zero as initial value for safelen.
7353
7354 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
7355
7356 PR middle-end/72657
7357 PR target/72683
7358 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
7359 call using chkp_gimple_call_builtin_p.
7360 (chkp_copy_bounds_for_assign): Likewise.
7361
7362 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7363
7364 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
7365 * config/arm/arm-protos.h (struct tune_params): Likewise.
7366 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
7367 (cortex_a9_sched_adjust_cost): Likewise.
7368 (fa726te_sched_adjust_cost): Likewise.
7369 (arm_adjust_cost): Likewise.
7370 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
7371 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
7372 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
7373 * config/i386/i386.c (ix86_adjust_cost): Likewise.
7374 * config/ia64/ia64.c: Likewise.
7375 * config/m68k/m68k.c: Likewise.
7376 * config/mep/mep.c (mep_adjust_cost): Likewise.
7377 * config/microblaze/microblaze.c (microblaze_adjust_cost):
7378 * Likewise.
7379 * config/mips/mips.c (mips_adjust_cost): Likewise.
7380 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
7381 * Likewise.
7382 * config/pa/pa.c (pa_adjust_cost): Likewise.
7383 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
7384 (rs6000_debug_adjust_cost): Likewise.
7385 * config/sh/sh.c (sh_adjust_cost): Likewise.
7386 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
7387 (hypersparc_adjust_cost): Likewise.
7388 (sparc_adjust_cost): Likewise.
7389 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
7390 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
7391 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
7392 * Likewise.
7393 * config/visium/visium.c (visium_adjust_cost): Likewise.
7394 * doc/tm.texi: Regenerate.
7395 * haifa-sched.c (dep_cost_1): Adjust.
7396 * target.def: Merge adjust_cost and adjust_cost_2.
7397
7398 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7399
7400 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
7401
7402 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7403
7404 * store-motion.c (struct st_expr): Make pattern_regs a vector.
7405 (extract_mentioned_regs): Append to a vector instead of
7406 returning a rtx_expr_list.
7407 (st_expr_entry): Adjust.
7408 (free_st_expr_entry): Likewise.
7409 (store_ops_ok): Likewise.
7410 (store_killed_in_insn): Likewise.
7411 (find_moveable_store): Likewise.
7412
7413 2016-07-28 Martin Liska <mliska@suse.cz>
7414
7415 PR gcov-profile/68025
7416 * tree-profile.c (tree_profiling): Respect
7417 no_profile_instrument_function attribute.
7418 * doc/extend.texi: Document no_profile_instrument_function
7419 attribute.
7420
7421 2016-07-28 Martin Liska <mliska@suse.cz>
7422
7423 PR rtl-optimization/70944
7424 * combine.c (make_compound_operation):
7425 Do not allow make_compound_operation for vector mode
7426
7427 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
7428
7429 PR middle-end/71994
7430 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
7431 before calling get_ops.
7432
7433 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
7434
7435 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
7436 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
7437 (BITS_PER_UNIT_LOG): Remove.
7438 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
7439 * expr.c (expand_assignment): Likewise.
7440 * stor-layout.c (initialize_sizetypes): Likewise.
7441
7442 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7443
7444 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
7445 signature of rs6000_expand_vector_extract so that the element
7446 number is a RTX instead of a constant integer.
7447 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
7448 Likewise.
7449 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
7450 (altivec_expand_vec_ext_builtin): Likewise.
7451 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
7452 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
7453 MFVSRLD instruction.
7454
7455 2016-07-27 David Malcolm <dmalcolm@redhat.com>
7456
7457 * input.c (get_pure_location): Move here from tree.c.
7458 (make_location): Likewise. Add header comment.
7459 (selftest::test_accessing_ordinary_linemaps): Verify
7460 pure_location_p, make_location, get_location_from_adhoc_loc and
7461 get_range_from_loc.
7462 * input.h (get_pure_location): Move declaration here from tree.h.
7463 (get_finish): Likewise for inline function.
7464 (make_location): Likewise for declaration.
7465 * tree.c (get_pure_location): Move to input.c.
7466 (make_location): Likewise.
7467 * tree.h (get_pure_location): Move declaration to tree.h.
7468 (get_finish): Likewise for inline function.
7469 (make_location): Likewise for declaration.
7470
7471 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7472
7473 PR middle-end/71078
7474 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
7475
7476 2016-07-27 David Malcolm <dmalcolm@redhat.com>
7477
7478 * system.h (STATIC_ASSERT): Use static_assert if building
7479 with C++11 onwards.
7480
7481 2016-07-27 Richard Biener <rguenther@suse.de>
7482
7483 PR tree-optimization/72517
7484 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7485 Revert change to not compute read-read dependences.
7486
7487 2016-07-27 Richard Biener <rguenther@suse.de>
7488
7489 * predict.c (set_even_probabilities): Make nedges unsigned.
7490
7491 2016-07-27 Martin Liska <mliska@suse.cz>
7492
7493 * predict.c (set_even_probabilities): Handle unlikely edges.
7494 (combine_predictions_for_bb): Likewise.
7495
7496 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7497
7498 PR target/71869
7499 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
7500 __float128 support when we don't have hardware support, so that
7501 the IEEE built-in functions like isgreater, first call __unordkf3
7502 to make sure neither operand is a NaN, and if both operands are
7503 ordered, do the normal comparison.
7504
7505 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
7506
7507 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
7508 name.
7509 (extract_code_and_val_from_cond_with_ops): Verify that name is
7510 either cond_op0 or cond_op1.
7511
7512 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
7513
7514 PR tree-optimization/18046
7515 * genmodes.c (emit_mode_size_inline): Emit an assert that
7516 verifies that mode is a valid array index.
7517 (emit_mode_nuinits_inline): Likewise.
7518 (emit_mode_inner_inline): Likewise.
7519 (emit_mode_unit_size_inline): Likewise.
7520 (emit_mode_unit_precision_inline): Likewise.
7521 * tree-vrp.c: Include params.h.
7522 (find_switch_asserts): Register edge assertions for the default
7523 label which correspond to the anti-ranges of each case label.
7524 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
7525 * doc/invoke.texi: Document it.
7526
7527 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7528
7529 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
7530 and unnecessary call to gimple_bb.
7531
7532 2016-07-26 Richard Biener <rguenther@suse.de>
7533
7534 PR rtl-optimization/71984
7535 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
7536 for VOIDmode.
7537
7538 2016-07-26 Richard Biener <rguenther@suse.de>
7539
7540 PR middle-end/72517
7541 * expmed.c (extract_bit_field_1): Constrain the vector mode
7542 with element size matching the extraction mode size when
7543 choosing a better vector mode to do the extraction from.
7544
7545 2016-07-26 Richard Biener <rguenther@suse.de>
7546 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7547
7548 PR middle-end/70920
7549 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
7550 pattern.
7551
7552 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7553
7554 * tree-ssa-structalias.c (struct scc_info): Change types of
7555 members to auto_sbitmap and auto_vec.
7556 (scc_info::scc_info): New constructor.
7557 (scc_info::~scc_info): New destructor.
7558 (init_scc_info): Remove.
7559 (free_scc_info): Remove.
7560 (find_indirect_cycles): Adjust.
7561 (perform_var_substitution): Likewise.
7562 (free_var_substitution_info): Likewise.
7563
7564 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7565
7566 * tree-outof-ssa.c (struct elim_graph): Change type of members
7567 to auto_vec and auto_sbitmap.
7568 (elim_graph::elim_graph): New constructor.
7569 (delete_elim_graph): Remove.
7570 (expand_phi_nodes): Adjust.
7571
7572 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7573
7574 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
7575 (new_elim_graph): Adjust.
7576 (clear_elim_graph): Likewise.
7577 (delete_elim_graph): Likewise.
7578 (elim_graph_size): Likewise.
7579 (elim_graph_add_node): Likewise.
7580 (elim_graph_add_edge): Likewise.
7581 (elim_graph_remove_succ_edge): Likewise.
7582 (eliminate_name): Likewise.
7583 (eliminate_build): Likewise.
7584 (elim_forward): Likewise.
7585 (elim_unvisited_predecessor): Likewise.
7586 (elim_backward): Likewise.
7587 (elim_create): Likewise.
7588 (eliminate_phi): Likewise.
7589 (expand_phi_nodes): Likewise.
7590
7591 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7592
7593 * bt-load.c (compute_out): Use auto_sbitmap class.
7594 (link_btr_uses): Likewise.
7595 * cfganal.c (mark_dfs_back_edges): Likewise.
7596 (post_order_compute): Likewise.
7597 (inverted_post_order_compute): Likewise.
7598 (pre_and_rev_post_order_compute_fn): Likewise.
7599 (single_pred_before_succ_order): Likewise.
7600 * cfgexpand.c (pass_expand::execute): Likewise.
7601 * cfgloop.c (verify_loop_structure): Likewise.
7602 * cfgloopmanip.c (fix_bb_placements): Likewise.
7603 (remove_path): Likewise.
7604 (update_dominators_in_loop): Likewise.
7605 * cfgrtl.c (break_superblocks): Likewise.
7606 * ddg.c (check_sccs): Likewise.
7607 (create_ddg_all_sccs): Likewise.
7608 * df-core.c (df_worklist_dataflow): Likewise.
7609 * dse.c (dse_step3): Likewise.
7610 * except.c (eh_region_outermost): Likewise.
7611 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7612 * gcse.c (prune_expressions): Likewise.
7613 (prune_insertions_deletions): Likewise.
7614 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
7615 * graph.c (draw_cfg_nodes_no_loops): Likewise.
7616 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
7617 * lcm.c (compute_earliest): Likewise.
7618 (compute_farthest): Likewise.
7619 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
7620 (unroll_loop_runtime_iterations): Likewise.
7621 (unroll_loop_stupid): Likewise.
7622 * lower-subreg.c (decompose_multiword_subregs): Likewise.
7623 * lra-lives.c: Likewise.
7624 * lra.c (lra): Likewise.
7625 * modulo-sched.c (schedule_reg_moves): Likewise.
7626 (optimize_sc): Likewise.
7627 (get_sched_window): Likewise.
7628 (sms_schedule_by_order): Likewise.
7629 (check_nodes_order): Likewise.
7630 (order_nodes_of_sccs): Likewise.
7631 (order_nodes_in_scc): Likewise.
7632 * recog.c (split_all_insns): Likewise.
7633 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
7634 * reload1.c (reload): Likewise.
7635 * sched-rgn.c (haifa_find_rgns): Likewise.
7636 (split_edges): Likewise.
7637 (compute_trg_info): Likewise.
7638 * sel-sched.c (init_seqno): Likewise.
7639 * store-motion.c (remove_reachable_equiv_notes): Likewise.
7640 * tree-into-ssa.c (update_ssa): Likewise.
7641 * tree-ssa-live.c (live_worklist): Likewise.
7642 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
7643 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7644 * Likewise.
7645 (try_peel_loop): Likewise.
7646 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
7647 * Likewise.
7648 * tree-ssa-pre.c (compute_antic): Likewise.
7649 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
7650 * tree-stdarg.c (reachable_at_most_once): Likewise.
7651 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
7652 * var-tracking.c (vt_find_locations): Likewise.
7653
7654 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7655
7656 * sbitmap.h (auto_sbitmap): New class.
7657
7658 2016-07-26 Alan Modra <amodra@gmail.com>
7659
7660 PR target/72103
7661 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
7662 sri->t_icode.
7663
7664 2016-07-25 David Malcolm <dmalcolm@redhat.com>
7665
7666 * input.c (selftest::temp_source_file::temp_source_file): Fix
7667 missing "%s" in fprintf.
7668
7669 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
7670
7671 PR middle-end/71732
7672 * cselib.c (cselib_process_insn): Invalidate argument slots for
7673 const/pure calls.
7674
7675 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7676
7677 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
7678 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
7679 vmulxh_lane_f16, vmulxh_laneq_f16): New.
7680
7681 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7682
7683 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7684 * config/aarch64/aarch64.md (fma, fnma): Support HF.
7685 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
7686
7687 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7688
7689 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7690 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
7691 New.
7692 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
7693 (add<mode>3): Likewise.
7694 (sub<mode>3): Likewise.
7695 (mul<mode>3): Likewise.
7696 (div<mode>3): Likewise.
7697 (*div<mode>3): Likewise.
7698 (<fmaxmin><mode>3): Extend to HF.
7699 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
7700 (fabd<mode>3): Likewise.
7701 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
7702 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
7703 (aarch64_fmulx<mode>): Likewise.
7704 (aarch64_fac<optab><mode>): Likewise.
7705 (aarch64_frecps<mode>): Likewise.
7706 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
7707 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
7708 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
7709 (VSDQ_HSDI): Support HI.
7710 (fcvt_target, FCVT_TARGET): Likewise.
7711 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
7712 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
7713 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
7714 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
7715 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
7716 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
7717 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
7718 vrsqrtsh_f16): New.
7719
7720 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7721
7722 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
7723 * config/aarch64/aarch64-builtins.c (hi_UP): New.
7724 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7725 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
7726 mode.
7727 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
7728 (aarch64_cm<optab><mode>): Likewise.
7729 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
7730 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
7731 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
7732 (sqrt<mode>2): Likewise.
7733 (*sqrt<mode>2): Likewise.
7734 (abs<mode>2): Likewise.
7735 (<optab><mode>hf2): New pattern for HF mode.
7736 (<optab>hihf2): Likewise.
7737 * config/aarch64/arm_neon.h: Include arm_fp16.h.
7738 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
7739 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
7740 Support HF mode.
7741 * config/aarch64/arm_fp16.h: New file.
7742 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
7743 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
7744 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
7745 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
7746 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
7747 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
7748 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
7749 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
7750 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
7751 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
7752 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
7753 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
7754 vsqrth_f16): New.
7755
7756 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7757
7758 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
7759 reduc_smin_scal_): Use VDQIF_F16.
7760 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
7761 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
7762 Use VHSDF.
7763 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
7764 * config/aarch64/iterators.md (VDQIF_F16): New.
7765 (vp): Support HF modes.
7766 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
7767 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
7768
7769 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7770
7771 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
7772 "*aarch64_mulx_elt_from_dup<mode>".
7773 (*aarch64_mul3_elt<mode>): Update schedule type.
7774 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
7775 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
7776 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
7777 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
7778 (f, fp): Support HF modes.
7779 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
7780 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
7781 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
7782 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
7783 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
7784 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
7785
7786 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7787
7788 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7789 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
7790 modes.
7791 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
7792 vfmsq_f16): New.
7793
7794 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7795
7796 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7797 * config/aarch64/aarch64-simd.md
7798 (aarch64_rsqrts<mode>): Extend to HF modes.
7799 (fabd<mode>3): Likewise.
7800 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
7801 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
7802 (aarch64_<maxmin_uns>p<mode>): Likewise.
7803 (<su><maxmin><mode>3): Likewise.
7804 (<maxmin_uns><mode>3): Likewise.
7805 (<fmaxmin><mode>3): Likewise.
7806 (aarch64_faddp<mode>): Likewise.
7807 (aarch64_fmulx<mode>): Likewise.
7808 (aarch64_frecps<mode>): Likewise.
7809 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
7810 (add<mode>3): Extend to HF modes.
7811 (sub<mode>3): Likewise.
7812 (mul<mode>3): Likewise.
7813 (div<mode>3): Likewise.
7814 (*div<mode>3): Likewise.
7815 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
7816 HF, V4HF and V8HF.
7817 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
7818 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
7819 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
7820 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
7821 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
7822 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
7823 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
7824 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
7825 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
7826 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
7827 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
7828 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
7829 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
7830 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
7831
7832 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7833
7834 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
7835 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7836 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
7837 (neg<mode>2): Likewise.
7838 (abs<mode>2): Likewise.
7839 (<frint_pattern><mode>2): Likewise.
7840 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
7841 (<optab><VDQF:mode><fcvt_target>2): Likewise.
7842 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
7843 (ftrunc<VDQF:mode>2): Likewise.
7844 (<optab><fcvt_target><VDQF:mode>2): Likewise.
7845 (sqrt<mode>2): Likewise.
7846 (*sqrt<mode>2): Likewise.
7847 (aarch64_frecpe<mode>): Likewise.
7848 (aarch64_cm<optab><mode>): Likewise.
7849 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
7850 HF, V4HF and V8HF.
7851 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
7852 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
7853 (stype): New.
7854 * config/aarch64/arm_neon.h (vdup_n_f16): New.
7855 (vdupq_n_f16): Likewise.
7856 (vld1_dup_f16): Use vdup_n_f16.
7857 (vld1q_dup_f16): Use vdupq_n_f16.
7858 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
7859 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
7860 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
7861 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
7862 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
7863 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
7864 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
7865 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
7866 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
7867 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
7868 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
7869 vsqrt_f16, vsqrtq_f16): New.
7870
7871 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7872
7873 * config/aarch64/aarch64-simd.md
7874 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
7875 (aarch64_ext<mode>): Likewise.
7876 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
7877 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
7878 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
7879 and V8HFmode.
7880 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
7881 float16x8_t.
7882 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
7883 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
7884 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
7885 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
7886 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
7887 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
7888 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
7889 New.
7890 (vmov_n_f16): Reimplement using vdup_n_f16.
7891 (vmovq_n_f16): Reimplement using vdupq_n_f16..
7892
7893 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7894
7895 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
7896 "frame_related_p". Generate CFA annotation when it's necessary.
7897 (aarch64_expand_prologue): Use aarch64_add_constant.
7898 (aarch64_expand_epilogue): Likewise.
7899 (aarch64_output_mi_thunk): Pass "false" when calling
7900 aarch64_add_constant.
7901
7902 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7903
7904 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
7905 sequences.
7906
7907 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7908
7909 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
7910 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
7911 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
7912 (aarch64_build_constant): Delete.
7913
7914 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
7915
7916 Revert
7917 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
7918
7919 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
7920 flag_toplevel_reorder.
7921
7922 2016-07-25 Richard Biener <rguenther@suse.de>
7923
7924 * cgraph.c (cgraph_node::verify_node): Compare against builtin
7925 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
7926 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
7927 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
7928 (streamer_get_builtin_tree): Likewise.
7929 (streamer_write_builtin): Likewise.
7930 * lto-streamer.h (LTO_builtin_decl): Remove.
7931 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
7932 (lto_input_scc): Remove LTO_builtin_decl handling.
7933 (lto_input_tree_1): Liekwise.
7934 * lto-streamer-out.c (lto_output_tree_1): Remove special
7935 handling of builtins.
7936 (DFS::DFS): Likewise.
7937 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
7938 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
7939 assert.
7940 (streamer_write_builtin): Remove.
7941
7942 2016-07-25 Martin Liska <mliska@suse.cz>
7943
7944 * lto-cgraph.c (input_symtab): Don't call get_working_sets
7945 if flag_auto_profile is set to true.
7946
7947 2016-07-25 Martin Liska <mliska@suse.cz>
7948
7949 PR gcov-profile/71868
7950 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
7951 have a function with multiple latches, count them all.
7952
7953 2016-07-25 Martin Liska <mliska@suse.cz>
7954
7955 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
7956
7957 2016-07-25 Martin Liska <mliska@suse.cz>
7958
7959 PR tree-optimization/71987
7960 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
7961 just for SSA_NAMEs. Fix GNU coding style.
7962
7963 2016-07-25 Martin Liska <mliska@suse.cz>
7964
7965 PR gcov-profile/64874
7966 * gcov-io.h: Update command about file format.
7967 * gcov-iov.c (main): Adapt the numbering scheme.
7968
7969 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
7970
7971 PR middle-end/66726
7972 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
7973 whose result is used in PHI.
7974 (final_range_test_p): Likewise.
7975 (maybe_optimize_range_tests): Likewise.
7976
7977 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7978
7979 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7980 Reformat two multi-line strings.
7981
7982 2016-07-22 Martin Sebor <msebor@redhat.com>
7983
7984 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
7985
7986 2016-07-22 Martin Sebor <msebor@redhat.com>
7987
7988 PR c/71560
7989 * doc/extend.texi (Compound Literals): Correct and clarify.
7990 (Cast to Union): Same.
7991
7992 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
7993
7994 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7995 comments to explain why certain error messages make mention of
7996 undocumented options.
7997 (rs6000_invalid_builtin): Change error messages to replace mention
7998 of undocumented options with mention of the -mcpu=power9 option
7999 that enables those undocumented options.
8000 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
8001 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
8002 definition of this macro to correct an existing error.
8003 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
8004 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
8005 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
8006 descriptions of built-in functions so that they depend on
8007 -mcpu=power9 instead of on the corresponding undocumented flags.
8008 * doc/invoke.texi (Option Summary): Remove all mention of newly
8009 undocumented flags.
8010 (IBM RS/6000 and PowerPC Options): Likewise.
8011 * doc/md.texi (Constraints for Particuliar Machines): Remove all
8012 mention of newly undocumented flags.
8013
8014 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
8015
8016 * ipa-cp.c (determine_versionability): Do not create constprop clones,
8017 when target_clones attribute is set.
8018
8019 2016-07-22 Bin Cheng <bin.cheng@arm.com>
8020
8021 * common.opt (funsafe-loop-optimizations): Mark ignore.
8022 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
8023 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
8024 related code.
8025 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
8026 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
8027
8028 2016-07-22 Bin Cheng <bin.cheng@arm.com>
8029
8030 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
8031 Parameter.
8032 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8033 Parameter.
8034 (number_of_iterations_exit): Warn missed loop optimization for
8035 possible infinite loops.
8036
8037 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
8038
8039 PR target/71216
8040 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
8041 when to emit a ".machine" pseudo-op.
8042
8043 2016-07-22 Martin Liska <mliska@suse.cz>
8044
8045 PR gcov-profile/69028
8046 PR gcov-profile/62047
8047 * coverage.c (coverage_compute_lineno_checksum): Do not
8048 calculate checksum for fns w/o xloc.file.
8049 (coverage_compute_profile_id): Likewise.
8050
8051 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
8052
8053 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
8054 (avr_secondary_reload): ...and implementation.
8055 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
8056 * config/avr/avr.md (reload_in<mode>): Remove insns.
8057 (adjust_len) [lpm]: Remove insn attribute value.
8058 * config/avr/predicates.md (flash_operand): Remove insn predicate.
8059
8060 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8061
8062 PR middle-end/71876
8063 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
8064 attribute.
8065 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
8066 * calls.c (special_function_p): Remove the special handling of the
8067 "__builtin_" prefix.
8068
8069 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8070
8071 PR middle-end/71876
8072 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
8073 if STMT may be an alloca call.
8074 (gimple_alloca_call_p, alloca_call_p): Return only true for the
8075 builtin alloca call.
8076 * calls.h (gimple_maybe_alloca_call_p): New function.
8077 * tree-inline.c (inline_forbidden_p_stmt): Use
8078 gimple_maybe_alloca_call_p here.
8079
8080 2016-07-21 David Malcolm <dmalcolm@redhat.com>
8081
8082 * spellcheck-tree.c (best_macro_match::best_macro_match):
8083 Explictly specify the template arguments when invoking the base
8084 class constructor, to help older C++ compilers.
8085
8086 2016-07-21 Jakub Jelinek <jakub@redhat.com>
8087
8088 PR sanitizer/71953
8089 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
8090 before builtin_decl_implicit.
8091
8092 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8093
8094 * optabs.c (emit_condiitonal_move): Short circuit for identical
8095 sources.
8096
8097 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8098
8099 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
8100 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
8101 (noce_conversion_profitable_p): New.
8102 (noce_try_store_flag_constants): Use it.
8103 (noce_try_addcc): Likewise.
8104 (noce_try_store_flag_mask): Likewise.
8105 (noce_try_cmove): Likewise.
8106 (noce_try_cmove_arith): Likewise.
8107 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
8108 overwriting it.
8109 (noce_convert_multiple_sets): Move cost model to here, from...
8110 (bb_ok_for_noce_convert_multiple_sets) ...here.
8111 (noce_process_if_block): Update calls for above changes.
8112 (noce_find_if_block): Record new noce_if_info parameters.
8113
8114 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8115
8116 * target.def (max_noce_ifcvt_seq_cost): New.
8117 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
8118 * doc/tm.texi: Regenerate.
8119 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
8120 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
8121 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
8122 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
8123 * doc/invoke.texi: Document new params.
8124
8125 2016-07-21 Richard Biener <rguenther@suse.de>
8126
8127 PR tree-optimization/71947
8128 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
8129 ranges have useful limit_vr information.
8130
8131 2016-07-21 Richard Biener <rguenther@suse.de>
8132
8133 * function-tests.c (build_trivial_generic_function): Set
8134 BLOCK_SUPERCONTEXT of DECL_INITIAL.
8135 * omp-low.c (create_omp_child_function): Likewise.
8136 (grid_expand_target_grid_body): Likewise.
8137 * cgraphunit.c (init_lowered_empty_function): Likewise.
8138 (cgraph_node::expand_thunk): Likewise.
8139 * tree-parloops.c (create_loop_fn): Likewise.
8140 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
8141
8142 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8143
8144 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
8145 in comment.
8146
8147 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
8148
8149 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
8150 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
8151 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
8152 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
8153 values for insn attribute.
8154 * config/avr/avr.c (avr_out_insert_notbit): New function.
8155 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
8156 ADJUST_LEN_INSV_NOTBIT_0/_7.
8157 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
8158
8159 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8160
8161 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
8162 (chrec_convert_1, chrec_convert): Ditto.
8163 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
8164 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
8165 * tree-vrp.c (adjust_range_with_scev): Ditto.
8166 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
8167 (scev_var_range_cant_overflow): New function.
8168 (scev_probably_wraps_p): New parameter. Call above function.
8169 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
8170
8171 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8172
8173 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
8174 by removing computation of may_be_zero.
8175
8176 2016-07-21 Jakub Jelinek <jakub@redhat.com>
8177
8178 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
8179
8180 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
8181
8182 Improving concepts performance and diagnostics.
8183 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
8184 for constraint satisfaction and subsumption.
8185 * timevar.h (auto_timevar): New constructor that matches the push/pop
8186 pattern of usage in pt.c.
8187
8188 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8189
8190 * hwint.h (HOST_WIDE_INT_0): New define.
8191 (HOST_WIDE_INT_0U): Ditto.
8192 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
8193 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
8194 * simplify-rtx.c: Ditto.
8195 * tree-object-size.c: Ditto.
8196
8197 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8198
8199 * config/s390/s390.c (s390_encode_section_info): Remove mode size
8200 check.
8201
8202 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8203
8204 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
8205 * combine.c: Use HOST_WIDE_INT_M1U instead of
8206 ~(unsigned HOST_WIDE_INT) 0.
8207 * double-int.h: Ditto.
8208 * dse.c: Ditto.
8209 * dwarf2asm.c:Ditto.
8210 * expmed.c: Ditto.
8211 * genmodes.c: Ditto.
8212 * match.pd: Ditto.
8213 * read-rtl.c: Ditto.
8214 * tree-ssa-loop-ivopts.c: Ditto.
8215 * tree-ssa-loop-prefetch.c: Ditto.
8216 * tree-vect-generic.c: Ditto.
8217 * tree-vect-patterns.c: Ditto.
8218 * tree.c: Ditto.
8219
8220 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8221
8222 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
8223 constant addresses outside [0,0xc0] into a register.
8224 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
8225 cases where the base address register is unused after.
8226 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
8227 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
8228 (avr_out_store_psi_reg_disp_tiny): Same.
8229
8230 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8231
8232 Implement attribute progmem on reduced Tiny cores by adding
8233 flash offset 0x4000 to respective symbols.
8234
8235 PR target/71948
8236 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
8237 documentation how it works on reduced Tiny cores.
8238 (AVR Named Address Spaces): No support for reduced Tiny.
8239 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
8240 (avr_address_tiny_pm_p): New static function.
8241 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
8242 if the address is in progmem.
8243 (avr_assemble_integer): Same.
8244 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
8245 for symbol_ref in progmem.
8246 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
8247 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
8248 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
8249
8250 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
8251
8252 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
8253 * configure: Regenerate.
8254 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
8255 (USE_THIN_ARCHIVES): New variable.
8256 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
8257 this archive as a thin archive.
8258
8259 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8260
8261 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
8262 same location as last time, don't skip if we have fix-it hints.
8263 Clarify the skipping logic by converting it from one "if" clause
8264 to repeated "if" clauses.
8265 * spellcheck-tree.c: Include "cpplib.h".
8266 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
8267 (best_macro_match::best_macro_match): New constructor.
8268 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
8269 Move here from c/c-decl.c.
8270 (class best_macro_match): Move here from c/c-decl.c, converting
8271 from a typedef to a subclass, gaining a ctor.
8272
8273 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8274
8275 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
8276 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
8277 define...
8278 (avr_addr_space_diagnose_usage): ...and implementation.
8279 (avr_addr_space_supported_p): New function.
8280 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
8281 report bad address space usage if that space is supported.
8282 (avr_insert_attributes): Same. No more complain about unsupported
8283 address spaces.
8284 * config/avr/avr-c.c (tm_p.h): Include it.
8285 (avr_cpu_cpp_builtins): Only define addr-space related built-in
8286 macro if avr_addr_space_supported_p.
8287
8288 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
8289
8290 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8291 flag_toplevel_reorder.
8292
8293 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8294
8295 * gcc-rich-location.c
8296 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
8297 a const char *.
8298 * gcc-rich-location.h
8299 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
8300
8301 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8302
8303 * target.def (addr_space): Add new diagnose_usage to hook vector.
8304 * targhooks.c (default_addr_space_diagnose_usage): Add default
8305 implementation and...
8306 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
8307 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
8308 is some address space, call targetm.addr_space.diagnose_usage.
8309 * doc/tm.texi.in (Named Address Spaces): Add anchor for
8310 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
8311 * doc/tm.texi: Regenerate.
8312
8313 2016-07-20 Martin Liska <mliska@suse.cz>
8314
8315 PR middle-end/71898
8316 * graphite-isl-ast-to-gimple.c (later_of_the_two):
8317 Properly handly PHI stmts.
8318
8319 2016-07-20 Bin Cheng <bin.cheng@arm.com>
8320
8321 PR tree-optimization/71503
8322 PR tree-optimization/71683
8323 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
8324 and break.
8325
8326 2016-07-20 Martin Liska <mliska@suse.cz>
8327
8328 * doc/invoke.texi (-fipa-ra): Document when the option is
8329 disabled. Fix a typo.
8330
8331 2016-07-20 Martin Liska <mliska@suse.cz>
8332
8333 * Makefile.in: Include fibonacci_heap.c
8334 * fibonacci_heap.c: New file.
8335 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
8336 (fibonacci_heap::union_with): Fix deletion of the second heap.
8337 * selftest-run-tests.c (selftest::run_tests): Incorporate
8338 fibonacci heap tests.
8339 * selftest.h: Declare fibonacci_heap_c_tests.
8340
8341 2016-07-20 Martin Liska <mliska@suse.cz>
8342
8343 * selftest-run-tests.c (selftest::run_tests): New function.
8344 * selftest.h (sreal_c_tests): Declare.
8345 * sreal.c (sreal_verify_basics): New function.
8346 (verify_aritmetics): Likewise.
8347 (sreal_verify_arithmetics): Likewise.
8348 (verify_shifting): Likewise.
8349 (sreal_verify_shifting): Likewise.
8350 (void sreal_c_tests): Likewise.
8351
8352 2016-07-19 Jakub Jelinek <jakub@redhat.com>
8353
8354 PR rtl-optimization/71916
8355 * cfgrtl.c (contains_no_active_insn_p): Return false also for
8356 bb which have a single succ fake edge.
8357
8358 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
8359
8360 PR debug/71855
8361 * dwarf2out.c (gen_subprogram_die): Only call
8362 gen_unspecified_parameters_die while dumping early dwarf.
8363
8364 2016-07-19 Jakub Jelinek <jakub@redhat.com>
8365
8366 PR middle-end/71874
8367 * gimple-fold.c (fold_builtin_memory_op): Use
8368 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
8369
8370 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
8371
8372 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
8373 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
8374 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
8375 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
8376 * combine.c: Ditto.
8377 * cse.c: Ditto.
8378 * dojump.c: Ditto.
8379 * double-int.c: Ditto.
8380 * dse.c: Ditto.
8381 * dwarf2out.c: Ditto.
8382 * expmed.c: Ditto.
8383 * expr.c: Ditto.
8384 * fold-const.c: Ditto.
8385 * function.c: Ditto.
8386 * fwprop.c: Ditto.
8387 * genmodes.c: Ditto.
8388 * hwint.c: Ditto.
8389 * hwint.h: Ditto.
8390 * ifcvt.c: Ditto.
8391 * loop-doloop.c: Ditto.
8392 * loop-invariant.c: Ditto.
8393 * loop-iv.c: Ditto.
8394 * match.pd: Ditto.
8395 * optabs.c: Ditto.
8396 * real.c: Ditto.
8397 * reload.c: Ditto.
8398 * rtlanal.c: Ditto.
8399 * simplify-rtx.c: Ditto.
8400 * stor-layout.c: Ditto.
8401 * toplev.c: Ditto.
8402 * tree-ssa-loop-ivopts.c: Ditto.
8403 * tree-vect-generic.c: Ditto.
8404 * tree-vect-patterns.c: Ditto.
8405 * tree.c: Ditto.
8406 * tree.h: Ditto.
8407 * ubsan.c: Ditto.
8408 * varasm.c: Ditto.
8409 * wide-int-print.cc: Ditto.
8410 * wide-int.cc: Ditto.
8411 * wide-int.h: Ditto.
8412
8413 2016-07-19 David Malcolm <dmalcolm@redhat.com>
8414
8415 * selftest.c (selftest::assert_streq): Handle NULL values of
8416 val_actual and val_expected.
8417
8418 2016-07-19 Martin Jambor <mjambor@suse.cz>
8419
8420 PR fortran/71688
8421 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
8422 rather than cgraph_create_node to get a call graph node.
8423
8424 2016-07-19 Richard Biener <rguenther@suse.de>
8425
8426 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
8427 handle all tcc_constant bases and valueize SSA names.
8428 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
8429 tcc_constant bases.
8430
8431 2016-07-19 David Malcolm <dmalcolm@redhat.com>
8432
8433 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
8434 the flags of the exit block and bb2, not just the entry block.
8435
8436 2016-07-19 Richard Biener <rguenther@suse.de>
8437
8438 PR tree-optimization/71901
8439 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
8440 align member, group stuff with the bitfield.
8441 (vn_ref_op_align_unit): New inline.
8442 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
8443 record element alignment and operand 3 unchanged.
8444 (ao_ref_init_from_vn_reference): Adjust.
8445 (valueize_refs_1): Likewise.
8446 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8447
8448 2016-07-19 Richard Biener <rguenther@suse.de>
8449
8450 PR tree-optimization/71908
8451 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
8452 symbolic constants in a more reliable way.
8453
8454 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
8455
8456 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
8457 comment.
8458 (vect_update_inits_of_drs): Likewise.
8459 (vect_create_cond_for_alias_checks): Likewise.
8460 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
8461
8462 2016-07-19 Richard Biener <rguenther@suse.de>
8463
8464 PR lto/71907
8465 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
8466 with an abstract origin that is not an inlined function outer
8467 scope add a self-reference as abstract origin.
8468 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
8469
8470 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8471
8472 PR target/71493
8473 * config/rs6000/rs6000.c (rs6000_function_value): Fix
8474 unintentional System V.4 structure return breakage for structures
8475 with a single floating point element.
8476
8477 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
8478
8479 PR tree-optimization/71734
8480 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
8481 contains REF, use it to check safelen, assume that safelen value
8482 must be greater 1, fix style.
8483 (ref_indep_loop_p_2): Add REF_LOOP argument.
8484 (ref_indep_loop_p): Pass LOOP as additional argument to
8485 ref_indep_loop_p_2.
8486
8487 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
8488
8489 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
8490 allocation in the prologue.
8491 * explow.c (get_dynamic_stack_base): New function to return an address
8492 expression for the dynamic stack base.
8493 (get_dynamic_stack_size): New function to do the required dynamic stack
8494 space size calculations.
8495 (allocate_dynamic_stack_space): Use new functions.
8496 (align_dynamic_address): Move some code from
8497 allocate_dynamic_stack_space to new function.
8498 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
8499
8500 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8501
8502 * config/s390/s390.c (s390_encode_section_info): Always set
8503 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
8504 found.
8505
8506 2016-07-18 Richard Biener <rguenther@suse.de>
8507
8508 PR tree-optimization/71893
8509 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
8510 for sizetype cast added by array_ref_element_size.
8511 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8512
8513 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
8514
8515 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
8516 register parameters. Remove code to initialize argument pointer
8517 on TARGET_64BIT. Optimize call to _mcount when it can be reached
8518 using a pc-relative branch. Cleanup conditional code.
8519 * config/pa/pa.md (call_mcount): New expander.
8520 (call_mcount_nonpic): New insn.
8521 (call_mcount_pic): New insn and split.
8522 (call_mcount_pic_post_reload): New insn.
8523 (call_mcount_64bit): New insn and split.
8524 (call_mcount_64bit_post_reload): New insn.
8525
8526 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
8527
8528 * config/avr/predicates.md (const_m255_to_m1_operand): New.
8529 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
8530 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
8531 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
8532 (*usum_widenqihi3, *udiff_widenqihi3)
8533 (*addhi3_zero_extend.const): New combiner insns.
8534 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
8535 just 1 bit is affected.
8536 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
8537 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
8538
8539 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
8540
8541 * omp-low.c (lower_omp_target): Mark data clauses with
8542 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
8543 zero-length subarrays.
8544
8545 2016-07-15 Richard Biener <rguenther@suse.de>
8546
8547 PR tree-optimization/71881
8548 * tree-loop-distribution.c (destroy_loop): Remove blocks in
8549 reverse DOM order to make debug temp generation happy.
8550
8551 2016-07-15 Richard Biener <rguenther@suse.de>
8552
8553 PR tree-optimization/71887
8554 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
8555 verify it is not zero for division / modulo handling.
8556 (value_replacement): Adjust.
8557
8558 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
8559 Julian Brown <julian@codesourcery.com>
8560
8561 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
8562 * config/aarch64/aarch64-cost-tables.h
8563 (vulcan_extra_costs): New variable.
8564 * config/aarch64/aarch64.c
8565 (vulcan_addrcost_table): Likewise.
8566 (vulcan_regmove_cost): Likewise.
8567 (vulcan_vector_cost): Likewise.
8568 (vulcan_branch_cost): Likewise.
8569 (vulcan_tunings): Likewise.
8570
8571 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
8572
8573 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
8574 (output_in_order): Loop over undefined variables too. Output them
8575 via assemble_undefined_decl. Skip variables that correspond to hard
8576 registers or have value-exprs.
8577 * varpool.c (symbol_table::output_variables): Handle undefined
8578 variables together with defined ones.
8579
8580 2016-07-15 Richard Biener <rguenther@suse.de>
8581
8582 * tree-ssa-pre.c (get_representative_for): Make sure to return
8583 the value number of SSA names.
8584 (phi_translate_1): get_representative_for cannot return NULL.
8585 (do_pre_regular_insertion): Remove redundant call to
8586 fully_constant_expression.
8587 (do_pre_partial_partial_insertion): Likewise.
8588
8589 2016-07-15 Bin Cheng <bin.cheng@arm.com>
8590
8591 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
8592 (derive_simple_iv_with_niters): New function.
8593 (simple_iv): Rewrite using simple_iv_with_niters.
8594 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
8595 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8596 function.
8597 (number_of_iterations_exit): Rewrite using above function.
8598 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
8599 Decl.
8600
8601 2016-07-15 Richard Biener <rguenther@suse.de>
8602
8603 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
8604 vec_construct cost.
8605
8606 2016-07-14 Jakub Jelinek <jakub@redhat.com>
8607
8608 PR tree-optimization/71872
8609 * tree-data-ref.c (get_references_in_stmt): Ignore references
8610 with is_gimple_constant get_base_address.
8611
8612 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
8613
8614 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
8615 (TARGET_HAVE_LDACQD): New macro.
8616 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
8617 than TARGET_HAVE_LDACQ.
8618 (arm_load_acquire_exclusivedi): Likewise.
8619 (arm_store_release_exclusivedi): Likewise.
8620
8621 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
8622
8623 PR rtl-optimization/71878
8624 * lra-constraints.c (match_reload): Pass information about other
8625 output operands. Create new unique register value if matching input
8626 operand shares same register value as output operand being considered.
8627 (curr_insn_transform): Record output operands already processed.
8628
8629 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8630
8631 PR target/65951
8632 PR tree-optimization/70923
8633 * tree-vect-patterns.c: Include mult-synthesis.h.
8634 (target_supports_mult_synth_alg): New function.
8635 (synth_lshift_by_additions): Likewise.
8636 (apply_binop_and_append_stmt): Likewise.
8637 (vect_synth_mult_by_constant): Likewise.
8638 (target_has_vecop_for_code): Likewise.
8639 (vect_recog_mult_pattern): Use above functions to synthesize vector
8640 multiplication by integer constants.
8641
8642 2016-07-14 Alan Modra <amodra@gmail.com>
8643
8644 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
8645 gpr alternatives. Correct '*' placement on Y,r alternative.
8646 Add '*' on operand 1 of r,r alternative.
8647
8648 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8649
8650 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
8651 * expmed.h: ... Here.
8652
8653 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
8654
8655 * gimple.h (stmt_can_terminate_bb_p): New function.
8656 * tree-cfg.c (need_fake_edge_p): Rename to ...
8657 (stmt_can_terminate_bb_p): ... this; return true if stmt can
8658 throw external; handle const and pure calls.
8659 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
8660
8661 2016-07-14 Richard Biener <rguenther@suse.de>
8662
8663 PR tree-optimization/71866
8664 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
8665 (do_hoist_insertion): Avoid endless recursion when we
8666 didn't insert anything because we managed to simplify
8667 things down to a constant or SSA name.
8668 (fully_constant_expression): Re-write in terms of ...
8669 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
8670 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
8671 vn_nary_build_or_lookup_1.
8672 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
8673 (vn_nary_build_or_lookup): ... this which now wraps it.
8674
8675 2016-07-14 Alan Modra <amodra@gmail.com>
8676
8677 PR target/71733
8678 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
8679 with p9_vector override before power9-dform override.
8680
8681 2016-07-13 Andi Kleen <ak@linux.intel.com>
8682
8683 * value-prof.c (gimple_value_profile_transformations): Don't run
8684 when auto_profile is on.
8685
8686 2016-07-13 Andi Kleen <ak@linux.intel.com>
8687
8688 * auto-profile.c (update_inlined_ind_target,
8689 afdo_indirect_call): Print information to dump file.
8690
8691 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
8692
8693 * genrecog.c (special_predicate_operand_p): New function.
8694 (predicate_name): Move function.
8695 (validate_pattern): Don't warn about missing mode for all
8696 define_special_predicate predicates.
8697
8698 2016-07-13 Bin Cheng <bin.cheng@arm.com>
8699
8700 * tree-vect-data-refs.c (vect_no_alias_p): New function.
8701 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
8702 resolve alias checks which are known at compilation time.
8703 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
8704 alias checks are resolved. Move dump info for too many runtime
8705 alias checks to here...
8706 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
8707
8708 2016-07-13 Richard Biener <rguenther@suse.de>
8709
8710 PR tree-optimization/24574
8711 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
8712 position and add shift, rotate, divison and modulo support
8713 for left zero.
8714 (value_replacement): Pass in argument position to absorbing_element_p.
8715
8716 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
8717
8718 PR ipa/71633
8719 * ipa-inline-transform.c (inline_call): Support
8720 instrumented thunks.
8721
8722 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8723
8724 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
8725 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
8726 divide feature.
8727 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
8728 Baseline. Make initial alternative TARGET_32BIT only.
8729 (udivsi3): Likewise.
8730 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
8731 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
8732 target.
8733
8734 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8735
8736 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
8737 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
8738 availability with TARGET_HAVE_MOVT.
8739 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
8740 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
8741 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
8742 UINTVAL.
8743 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
8744 extra instruction if MOVW is available. Use a cost variable
8745 incremented by COSTS_N_INSNS (1) when the condition match rather than
8746 returning an arithmetic expression based on COSTS_N_INSNS. Make
8747 constant with bottom half word zero cost 2 instruction if MOVW is
8748 available.
8749 * config/arm/arm.md (define_attr "arch"): Add v8mb.
8750 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
8751 target is ARMv8-M Baseline.
8752 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
8753 (arm_movtas_ze): Likewise.
8754 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
8755 alternative for constants satisfying j constraint.
8756 (thumb1_movsi_insn): Likewise.
8757 (movsi splitter for K alternative): Tighten condition to not trigger
8758 if movt is available and j constraint is satisfied.
8759 (Pe immediate splitter): Likewise.
8760 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
8761 constant fitting in an halfword to use MOVW.
8762 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
8763 effective target.
8764
8765 2016-07-13 Richard Biener <rguenther@suse.de>
8766
8767 PR middle-end/71104
8768 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
8769 gimplifying the LHS. Make sure to gimplify a returning twice
8770 call LHS without using SSA names.
8771
8772 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8773
8774 * tree-data-ref.c (find_data_references_in_stmt): Remove
8775 unnecessary call to vec::release.
8776 (graphite_find_data_references_in_stmt): Likewise.
8777 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
8778 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8779
8780 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8781
8782 * cfgexpand.c (expand_used_vars): Make the type of a local
8783 variable auto_vec.
8784 * genmatch.c (lower_for): Likewise.
8785 * haifa-sched.c (haifa_sched_init): Likewise.
8786 (add_to_speculative_block): Likewise.
8787 (create_check_block_twin): Likewise.
8788 * predict.c (handle_missing_profiles): Likewise.
8789 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
8790 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
8791 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
8792 Likewise.
8793 (maybe_lower_iteration_bound): Likewise.
8794 * tree-ssa-sccvn.c (DFS): Likewise.
8795 * tree-stdarg.c (reachable_at_most_once): Likewise.
8796 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
8797 (vectorizable_store): Likewise.
8798
8799 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8800
8801 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
8802 (sccvn_dom_walker): make cond_stack an auto_vec.
8803
8804 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8805
8806 * ree.c (struct ext_state): Make type of members auto_vec.
8807 (find_and_remove_re): Adjust.
8808
8809 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8810
8811 * cfgexpand.c (struct stack_vars_data): Make type of fields
8812 auto_vec.
8813 (expand_used_vars): Adjust.
8814
8815 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8816
8817 * ipa.c (record_cdtor_fn): Adjust.
8818 (build_cdtor_fns): Likewise.
8819 (ipa_cdtor_merge): Make static_ctors and static_dtors local
8820 variables.
8821
8822 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8823
8824 * genextract.c (struct accum_extract): Add constructor and make
8825 members auto_vec.
8826 (gen_insn): Adjust.
8827
8828 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8829
8830 * tree.c (struct free_lang_data_d): Add constructor and change
8831 types of members to ones that automatically manage resources.
8832 (fld_worklist_push): Adjust.
8833 (find_decls_types): Likewise.
8834 (find_decls_types_in_eh_region): Likewise.
8835 (free_lang_data_in_cgraph): Stop manually creating and
8836 destroying members of free_lang_data_d.
8837
8838 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
8839
8840 PR rtl-optimization/68961
8841 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
8842 peephole variant. Use sse_reg_operand predicates.
8843
8844 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
8845
8846 * config/i386/predicates.md (x86_64_immediate_operand)
8847 <case CONST_INT>: Remove unneeded truncation to DImode.
8848 <case CONST>: Ditto.
8849 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8850
8851 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8852
8853 PR target/71805
8854 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
8855 The xxperm and xxpermr instructions require that the 2nd input
8856 operand overlap with the output operand, and not the 1st.
8857 (altivec_vperm_v8hiv16qi): Likewise.
8858 (altivec_vperm_<mode>_uns_internal): Likewise.
8859 (altivec_vpermr_<mode>_internal): Likewise.
8860 (vperm_v8hiv4si): Likewise.
8861 (vperm_v16qiv8hi): Likewise.
8862
8863 2016-07-12 Nathan Sidwell <nathan@acm.org>
8864
8865 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
8866 when -mno-pic-data-is-text-relative is in effect, by default.
8867 * doc/invoke.texi (mpic-data-is-text-relative): Document new
8868 behavior and clarify.
8869
8870 2016-07-12 Martin Liska <mliska@suse.cz>
8871
8872 * params.def: Add avg-loop niter.
8873 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
8874 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
8875 * doc/invoke.texi: Document the new parameter.
8876
8877 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8878
8879 PR middle-end/71700
8880 * expr.c (store_constructor): Mask sign-extended bits when widening
8881 sub-word constructor element at the start of a word.
8882
8883 2016-07-12 Martin Liska <mliska@suse.cz>
8884
8885 * Makefile.in: Append rule for params-options.h.
8886 * params-options.h: New file.
8887
8888 2016-07-12 Martin Liska <mliska@suse.cz>
8889
8890 * ira-build.c (mark_loops_for_removal): Properly iterate
8891 loops.
8892
8893 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
8894 Richard Biener <rguenther@suse.de>
8895
8896 PR tree-optimization/23286
8897 PR tree-optimization/70159
8898 * doc/invoke.texi: Document -fcode-hoisting.
8899 * common.opt (fcode-hoisting): New flag.
8900 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
8901 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
8902 (do_regular_insertion): Rename to ...
8903 (do_pre_regular_insertion): ... this and amend general comments
8904 on insertion strathegy.
8905 (do_partial_partial_insertion): Rename to ...
8906 (do_pre_partial_partial_insertion): ... this.
8907 (do_hoist_insertion): New function.
8908 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
8909 and call do_hoist_insertion properly.
8910 (insert): Adjust.
8911 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
8912 (pass_pre::execute): Register hoist_insert stats.
8913
8914 2016-07-12 Jakub Jelinek <jakub@redhat.com>
8915
8916 PR middle-end/71716
8917 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
8918 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
8919 is different from mode's bitsize. Small cleanup.
8920
8921 2016-07-12 Richard Biener <rguenther@suse.de>
8922
8923 PR rtl-optimization/68961
8924 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
8925 to simplify to a non-constant.
8926
8927 2016-07-11 Jakub Jelinek <jakub@redhat.com>
8928
8929 PR middle-end/71758
8930 * omp-low.c (expand_omp_target): Gimplify device.
8931
8932 PR tree-optimization/71823
8933 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
8934 to get vec_oprnds2 from op2.
8935
8936 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
8937
8938 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
8939 Hoist common subexpressions.
8940 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8941
8942 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
8943
8944 PR target/71800
8945 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
8946 prevent generation of 'stxsiwx' on pre Power8 hardware.
8947
8948 2016-07-11 David Malcolm <dmalcolm@redhat.com>
8949
8950 * input.c: Include cpplib.h.
8951 (selftest::temp_source_file): New class.
8952 (selftest::temp_source_file::temp_source_file): New ctor.
8953 (selftest::temp_source_file::~temp_source_file): New dtor.
8954 (selftest::should_have_column_data_p): New function.
8955 (selftest::test_should_have_column_data_p): New function.
8956 (selftest::temp_line_table): New class.
8957 (selftest::temp_line_table::temp_line_table): New ctor.
8958 (selftest::temp_line_table::~temp_line_table): New dtor.
8959 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
8960 it to create a temp_line_table.
8961 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
8962 locations that are known to have column data.
8963 (selftest::line_table_case): New struct.
8964 (selftest::test_reading_source_line): Move tempfile handling
8965 to class temp_source_file.
8966 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
8967 (selftest::assert_token_loc_eq): New function.
8968 (ASSERT_TOKEN_LOC_EQ): New macro.
8969 (selftest::test_lexer): New function.
8970 (selftest::boundary_locations): New array.
8971 (selftest::input_c_tests): Call test_should_have_column_data_p.
8972 Loop over a test matrix of interesting values of location and
8973 default_range_bits, calling test_lexer on each case in the matrix.
8974 Move call to test_accessing_ordinary_linemaps into the matrix.
8975 * selftest.h (ASSERT_EQ): Reimplement in terms of...
8976 (ASSERT_EQ_AT): New macro.
8977
8978 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
8979
8980 PR target/71801
8981 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
8982 Don't convert TImode in debug insn.
8983
8984 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8985
8986 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
8987 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
8988 (tree_type_common::lang_flag_7): New.
8989 (tree_type_common::spare): Reduce size.
8990 * tree.h (TYPE_ALIGN_OK): Remove.
8991 (TYPE_LANG_FLAG_7): New.
8992 (get_inner_reference): Adjust header.
8993 * print-tree.c (print_node): Adjust.
8994 * expr.c (get_inner_reference): Remove parameter keep_aligning.
8995 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
8996 calls to get_inner_reference.
8997 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
8998 handling of TYPE_ALIGN_OK.
8999 * builtins.c (get_object_alignment_2): Adjust call to
9000 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
9001 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
9002 TYPE_ALIGN_OK.
9003 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
9004 * cfgexpand.c (expand_debug_expr): Likewise.
9005 * dbxout.c (dbxout_expand_expr): Likewise.
9006 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
9007 loc_list_from_tree, fortran_common): Likewise.
9008 * fold-const.c (optimize_bit_field_compare,
9009 decode_field_reference, fold_unary_loc, fold_comparison,
9010 split_address_to_core_and_offset): Likewise.
9011 * gimple-laddress.c (execute): Likewise.
9012 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
9013 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
9014 * hsa-gen.c (gen_hsa_addr): Likewise.
9015 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
9016 * tsan.c (instrument_expr): Likewise.
9017 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
9018 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
9019 * tree-affine.c (tree_to_aff_combination,
9020 get_inner_reference_aff): Adjust calls to get_inner_reference.
9021 * tree-data-ref.c (split_constant_offset_1,
9022 dr_analyze_innermost): Likewise.
9023 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
9024 * tree-sra.c (ipa_sra_check_caller): Likewise.
9025 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
9026 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
9027 bswap_replace): Likewise.
9028 * tree-vect-data-refs.c (vect_check_gather,
9029 vect_analyze_data_refs): Likewise.
9030 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
9031 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
9032 TYPE_ALIGN_OK.
9033
9034 2016-07-11 David Malcolm <dmalcolm@redhat.com>
9035
9036 * Makefile.in (selftest-valgrind): New phony target.
9037 * function-tests.c (selftest::build_cfg): Delete pass instances
9038 created by the test.
9039 (selftest::convert_to_ssa): Likewise.
9040 (selftest::test_expansion_to_rtl): Likewise.
9041 * tree-cfg.c (selftest::test_linear_chain): Release dominator
9042 vectors.
9043 (selftest::test_diamond): Likewise.
9044
9045 2016-07-11 Richard Biener <rguenther@suse.de>
9046
9047 PR tree-optimization/71816
9048 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
9049 than replacing all of its operands.
9050
9051 2016-07-11 Alan Modra <amodra@gmail.com>
9052
9053 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
9054 (ctr<mode>): Add unspec.
9055 (ctr<mode>_internal*): Likewise.
9056
9057 2016-07-08 James Bowman <james.bowman@ftdichip.com>
9058
9059 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
9060 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
9061
9062 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
9063
9064 PR rtl-optimization/71621
9065 * lra-constraints.c (process_alt_operands): Check combination of
9066 reg class and mode.
9067
9068 2016-07-08 Jason Merrill <jason@redhat.com>
9069 Richard Biener <rguenther@suse.de>
9070
9071 P0145: Refining Expression Order for C++.
9072 * gimplify.c (initial_rhs_predicate_for): New.
9073 (gimplfy_modify_expr): Gimplify RHS before LHS.
9074
9075 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9076
9077 PR target/71297
9078 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9079 Allow standard error handling to take over when a wrong number
9080 of arguments is presented to __builtin_vec_ld () or
9081 __builtin_vec_st ().
9082
9083 2016-07-08 Jiong Wang <jiong.wang@arm.com>
9084
9085 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
9086 variants.
9087 (smin): Likewise.
9088 (fmax): New entry.
9089 (fmin): Likewise.
9090 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
9091 __builtin_aarch64_fmaxv2sf.
9092 (vmaxnmq_f32): Likewise.
9093 (vmaxnmq_f64): Likewise.
9094 (vminnm_f32): Likewise.
9095 (vminnmq_f32): Likewise.
9096 (vminnmq_f64): Likewise.
9097
9098 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9099
9100 PR target/71806
9101 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
9102 enable -mfloat128-hardware by default.
9103 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
9104 that IEEE 128-bit hardware support needs.
9105 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
9106 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
9107 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
9108 floating point requires.
9109 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9110 -mfloat128 and -mfloat128-hardware changes.
9111
9112 2016-07-08 Alan Hayward <alan.hayward@arm.com>
9113
9114 PR tree-optimization/71667
9115 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
9116
9117 2016-07-08 Martin Liska <mliska@suse.cz>
9118
9119 PR middle-end/71606
9120 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
9121 folding produces SAVE_EXPRs, thus return false for the type.
9122
9123 2016-07-07 Martin Liska <mliska@suse.cz>
9124
9125 * file-find.c (remove_prefix): New function.
9126 * file-find.h (remove_prefix): Declare the function.
9127 * gcc-ar.c (main): Skip a folder of the wrapper if
9128 a wrapped binary would point to the same file.
9129
9130 2016-07-07 Jan Hubicka <jh@suse.cz>
9131
9132 * tree-scalar-evolution.c (iv_can_overflow_p): export.
9133 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
9134 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
9135
9136 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
9137
9138 PR ipa/71624
9139 * ipa-inline-analysis.c (compute_inline_parameters): Set
9140 local.can_change_signature to false for intrumentation
9141 thunk callees.
9142
9143 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9144
9145 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
9146 with TARGET_HAVE_MOVT.
9147 (TARGET_HAVE_MOVT): Define.
9148 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
9149 availability with TARGET_HAVE_MOVT.
9150 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
9151 availability.
9152 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
9153 TARGET_THUMB2.
9154 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
9155 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
9156 * config/arm/constraints.md (define_constraint "j"): Use
9157 TARGET_HAVE_MOVT to check MOVT availability.
9158
9159 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9160
9161 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
9162
9163 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9164
9165 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
9166 (armv8-m.main): Likewise.
9167 (armv8-m.main+dsp): Likewise.
9168 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
9169 (FL_FOR_ARCH8M_MAIN): Likewise.
9170 * config/arm/arm-tables.opt: Regenerate.
9171 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
9172 armv8-m.main+dsp to BE8_LINK_SPEC.
9173 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
9174 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
9175 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
9176 Baseline and Mainline.
9177 (arm_option_override_internal): Also disable arm_restrict_it when
9178 !arm_arch_notm. Update comment for -munaligned-access to also cover
9179 ARMv8-M Baseline.
9180 (arm_file_start): Increase buffer size for printing architecture name.
9181 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
9182 and armv8-m.main+dsp.
9183 (mno-unaligned-access): Clarify that this is disabled by default for
9184 ARMv8-M Baseline architectures as well.
9185
9186 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9187
9188 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
9189 decide whether to prevent some libgcc routines being included for some
9190 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
9191 link between this condition and the one in
9192 libgcc/config/arm/lib1func.S.
9193
9194 2016-07-07 Richard Biener <rguenther@suse.de>
9195
9196 * tree-ssa-pre.c: Include alias.h.
9197 (compute_avail): If we have multiple VN_REFERENCEs with the
9198 same hashtable entry adjust that to make it a valid replacement
9199 for all of them with respect to alignment and aliasing
9200 when doing insertion.
9201 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
9202 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
9203
9204 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
9205
9206 PR target/70098
9207 PR target/71763
9208 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
9209 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
9210 constraint.
9211
9212 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9213
9214 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
9215 (adjust_mems): Adjust.
9216 (adjust_insn): Likewise.
9217 (prepare_call_arguments): Likewise.
9218
9219 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9220
9221 * gcse.c (struct ls_expr): Make stores field a vector.
9222 (ldst_entry): Adjust.
9223 (free_ldst_entry): Likewise.
9224 (print_ldst_list): Likewise.
9225 (compute_ld_motion_mems): Likewise.
9226 (update_ld_motion_stores): Likewise.
9227
9228 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9229
9230 * gcse.c (struct ls_expr): Remove loads field.
9231 (ldst_entry): Adjust.
9232 (free_ldst_entry): Likewise.
9233 (print_ldst_list): Likewise.
9234 (compute_ld_motion_mems): Likewise.
9235
9236 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9237
9238 * store-motion.c (struct st_expr): Make antic_stores a vector.
9239 (st_expr_entry): Adjust.
9240 (free_st_expr_entry): Likewise.
9241 (print_store_motion_mems): Likewise.
9242 (find_moveable_store): Likewise.
9243 (compute_store_table): Likewise.
9244 (remove_reachable_equiv_notes): Likewise.
9245 (replace_store_insn): Likewise.
9246 (build_store_vectors): Likewise.
9247
9248 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9249
9250 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
9251 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
9252
9253 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
9254
9255 PR tree-optimization/71518
9256 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
9257 misalign also for outer loops with negative step.
9258
9259 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
9260
9261 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
9262 (cortex_a53_shift): Add mov_shift.
9263 (cortex_a53_shift_reg): Add new reservation for register shifts.
9264 (cortex_a53_alu): Remove bfm.
9265 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
9266 (cortex_a53_alu_extr): Add new reservation for EXTR.
9267 (bypasses): Improve bypass modelling.
9268
9269 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9270
9271 PR target/50739
9272 * config/avr/avr.c (avr_asm_select_section): Strip off
9273 SECTION_DECLARED from flags when calling get_section.
9274
9275 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9276
9277 * tree-vectorizer.h (vect_memory_access_type): Add
9278 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
9279 * tree-vect-stmts.c (compare_step_with_zero): New function.
9280 (perm_mask_for_reverse): Move further up file.
9281 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
9282 step is negative.
9283 (get_negative_load_store_type): New function.
9284 (get_load_store_type): Call it. Add an ncopies argument.
9285 (vectorizable_mask_load_store): Update call accordingly and
9286 remove tests for negative steps.
9287 (vectorizable_store, vectorizable_load): Likewise. Handle new
9288 memory_access_types.
9289
9290 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9291
9292 * tree-vectorizer.h (vect_memory_access_type): New enum.
9293 (_stmt_vec_info): Add a memory_access_type field.
9294 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
9295 (vect_model_store_cost): Take an access type instead of a boolean.
9296 (vect_model_load_cost): Likewise.
9297 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
9298 vect_model_store_cost and vect_model_load_cost.
9299 * tree-vect-stmts.c (vec_load_store_type): New enum.
9300 (vect_model_store_cost): Take an access type instead of a
9301 store_lanes_p boolean. Simplify tests.
9302 (vect_model_load_cost): Likewise, but for load_lanes_p.
9303 (get_group_load_store_type, get_load_store_type): New functions.
9304 (vectorizable_store): Use get_load_store_type. Record the access
9305 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
9306 (vectorizable_load): Likewise.
9307 (vectorizable_mask_load_store): Likewise. Replace is_store
9308 variable with vls_type.
9309
9310 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9311
9312 * tree-vectorizer.h (vect_grouped_load_supported): Add a
9313 single_element_p parameter.
9314 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
9315 Check the PR65518 case here rather than in vectorizable_load.
9316 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
9317 * tree-vect-stmts.c (vectorizable_load): Likewise.
9318
9319 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9320
9321 * tree-vectorizer.h (gather_scatter_info): New structure.
9322 (vect_check_gather_scatter): Return a bool rather than a decl.
9323 Replace return-by-pointer arguments with a single
9324 gather_scatter_info *.
9325 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
9326 (vect_analyze_data_refs): Update call accordingly.
9327 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9328 (vectorizable_mask_load_store): Likewise. Also record the
9329 offset dt and vectype in the gather_scatter_info.
9330 (vectorizable_store): Likewise.
9331 (vectorizable_load): Likewise.
9332
9333 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9334
9335 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
9336 strided groups, use the cost of N scalar accesses instead
9337 of ncopies vector accesses.
9338 (vect_model_load_cost): Likewise.
9339
9340 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9341
9342 * tree-vect-stmts.c (vect_cost_group_size): Delete.
9343 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
9344 variable to indicate when once-per-group costs are being used.
9345 (vect_model_load_cost): Likewise. Fix comment and misindented code.
9346
9347 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9348
9349 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
9350 peeling-for-gaps condition.
9351
9352 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9353
9354 * config/s390/s390.c (s390_expand_vec_init): Force initializer
9355 element to register if it doesn't match general_operand.
9356
9357 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9358 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9359
9360 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
9361 prototype.
9362 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
9363 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
9364 (SIGNBIT): New mode iterator.
9365 (Fsignbit): New mode attribute.
9366 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
9367 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
9368 when direct moves are available.
9369 (signbit<mode>2_dm): New define_insn_and_split).
9370 (signbit<mode>2_dm2): New define_insn.
9371
9372 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9373
9374 PR rtl-optimization/71594
9375 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
9376 into subregs of appropriate mode before trying to emit a conditional
9377 move.
9378
9379 2016-07-05 Jan Hubicka <jh@suse.cz>
9380
9381 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
9382 (simple_iv): Use it.
9383
9384 2016-07-05 Jan Hubicka <jh@suse.cz>
9385
9386 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
9387
9388 2016-07-05 Jiong Wang <jiong.wang@arm.com>
9389
9390 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
9391 "offmemok".
9392
9393 2016-07-05 Jan Hubicka <jh@suse.cz>
9394
9395 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
9396 IV can overflow.
9397
9398 2016-07-05 Richard Biener <rguenther@suse.de>
9399
9400 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
9401 Handle empty else block.
9402 (is_feasible_trace): Likewise.
9403 (split_paths): Likewise.
9404
9405 2016-07-05 Richard Biener <rguenther@suse.de>
9406
9407 * tree-loop-distribution.c (distribute_loop): Fix issue with
9408 the cost model loop.
9409
9410 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
9411
9412 * config/arm/neon-testgen.ml: Delete.
9413 * config/arm/neon.ml: Delete.
9414
9415 2016-07-04 Jakub Jelinek <jakub@redhat.com>
9416
9417 PR c++/71739
9418 * tree.c (attribute_value_equal): Use get_attribute_name instead of
9419 directly using TREE_PURPOSE.
9420
9421 2016-07-04 Jiong Wang <jiong.wang@arm.com>
9422
9423 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
9424 * config/aarch64/aarch64_neon.h: Likewise.
9425 * config/aarch64/arm_neon.h: Likewise.
9426 * config/aarch64/atomics.md: Likewise.
9427 * config/aarch64/aarch64-simd-builtins.def: Likewise.
9428 * doc/invoke.texi: Likewise.
9429
9430 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
9431
9432 * config/s390/s390.md: Add "z13" cpu_facility.
9433 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
9434 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
9435 condition" type instructions.
9436
9437 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
9438 Jeff Law <law@redhat.com>
9439
9440 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
9441 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
9442
9443 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
9444
9445 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
9446 permutation for TARGET_AVX512F.
9447 (ix86_expand_vec_one_operand_perm_avx512): New function.
9448 (expand_vec_perm_1): Invoke introduced function.
9449 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
9450 it may be not valid after vectorization.
9451
9452 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9453
9454 PR target/63874
9455 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
9456 typo in comment. Only force to memory if it is a weak
9457 external reference.
9458
9459 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
9460 Jiong Wang <jiong.wang@arm.com>
9461
9462 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
9463 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
9464 (AARCH64_FL_F16): New.
9465 (AARCH64_FL_FOR_ARCH8_2): New.
9466 (AARCH64_ISA_8_2): New.
9467 (AARCH64_ISA_F16): New.
9468 (TARGET_FP_F16INST): New.
9469 (TARGET_SIMD_F16INST): New.
9470 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
9471 ("fp"): Disabling "fp" also disables "fp16".
9472 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
9473 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
9474 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
9475 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
9476
9477 2016-07-04 Jan Beulich <jbeulich@suse.com>
9478
9479 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
9480
9481 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9482
9483 PR target/71720
9484 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
9485 the insns, use an insn form that does not adjust the offset on
9486 little endian systems.
9487
9488 2016-07-01 Jan Beulich <jbeulich@suse.com>
9489
9490 * varasm.c (get_variable_section): Validate initializer in
9491 named .bss-like sections.
9492
9493 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
9494
9495 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
9496 Exchange the order of the second and third operands in the vpermr
9497 instruction tmeplate.
9498
9499 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
9500
9501 PR target/71698
9502 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
9503 Disallow TDmode values.
9504
9505 2016-07-01 Alan Modra <amodra@gmail.com>
9506
9507 PR rtl-optimization/71709
9508 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
9509 being set, not referenced.
9510
9511 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
9512
9513 PR tree-optimization/70729
9514 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
9515 of loop since it can be not valid after transformation.
9516
9517 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9518
9519 * config/arm/arm.c (thumb_reload_in_hi): Delete.
9520 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
9521
9522 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
9523
9524 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
9525 for NULL decl.
9526
9527 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
9528
9529 PR target/71677
9530 * config/rs6000/constraints.md (wY constraint): New constraint to
9531 match the requirements for the LXSD and STXSD instructions.
9532 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
9533 predicate to match the requirements for the LXSD and STXSD
9534 instructions.
9535 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
9536 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
9537 to make sure that the bottom 2 bits of offset are 0, the address
9538 form is offsettable, and no updating is done in the address mode.
9539 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
9540 (movdi_internal32): Likewise
9541 (movdi_internal64): Likewise.
9542
9543 2016-06-30 Jakub Jelinek <jakub@redhat.com>
9544
9545 PR tree-optimization/71707
9546 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
9547 strinfo even for ADDR_EXPR ptr.
9548
9549 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
9550
9551 * config/rs6000/altivec.md (darn_32): Change the condition to
9552 TARGET_P9_MISC instead of TARGET_MODULO.
9553 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
9554 condition expression.
9555 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
9556 condition expression.
9557 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
9558 (DFP_TEST): New code iterator.
9559 (dfptstsfi_<code>_mode>): New define_expand.
9560 (*dfp_sgnfcnc_<mode>): New define_insn.
9561 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
9562 definition next to BU_P9_MISC_1 definition and change the MASK
9563 value to RS6000_BTM_P9_MISC.
9564 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
9565 (BU_P9_64BIT_MISC_0): Likewise.
9566 (BU_P9_DFP_MISC_0): New macro definition.
9567 (BU_P9_DFP_MISC_1): New macro definition.
9568 (BU_P9_DFP_MISC_2): New macro definition.
9569 (BU_P9_DFP_OVERLOAD_1): New macro definition.
9570 (BU_P9_DFP_OVERLOAD_2): New macro definition.
9571 (BU_P9_DFP_OVERLOAD_3): New macro definition.
9572 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
9573 (TSTSFI_LT_TD): Likewise.
9574 (TSTSFI_EQ_DD): Likewise.
9575 (TSTSFI_EQ_TD): Likewise.
9576 (TSTSFI_GT_DD): Likewise.
9577 (TSTSFI_GT_TD): Likewise.
9578 (TSTSFI_OV_DD): Likewise.
9579 (TSTSFI_OV_TD): Likewise.
9580 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
9581 (TSTSFI_LT_DD): Likewise.
9582 (TSTSFI_LT_TD): Likewise.
9583 (TSTSFI_EQ): Likewise.
9584 (TSTSFI_EQ_DD): Likewise.
9585 (TSTSFI_EQ_TD): Likewise.
9586 (TSTSFI_GT): Likewise.
9587 (TSTSFI_GT_DD): Likewise.
9588 (TSTSFI_GT_TD): Likewise.
9589 (TSTSFI_OV): Likewise.
9590 (TSTSFI_OV_DD): Likewise.
9591 (TSTSFI_OV_TD): Likewise.
9592 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9593 overloaded test significance functions.
9594 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9595 OPTION_MASK_P9_MISC into the representation of this mask.
9596 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
9597 of this mask.
9598 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
9599 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
9600 non-zero.
9601 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
9602 argument is a 6-bit unsigned literal value if the icode argument
9603 represents a DFP test significance built-in call.
9604 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
9605 flag used independently and in combination with the
9606 RS6000_BTM_64BIT flag.
9607 (rs6000_opt_masks): Add entry for power9-misc command-line option.
9608 (rs6000_builtin_mask_names): Add entry for power9-misc
9609 command-line option.
9610 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
9611 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
9612 RS6000_BTM_P9_MISC macros.
9613 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
9614 option and change the description of the -mpower9-vector option to
9615 enable only vector instructions, removing its erroneously claimed
9616 support for scalar instructions.
9617 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9618 the ISA 3.0 digital floating point test significance built-in
9619 functions.
9620
9621 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
9622
9623 * config/aarch64/aarch64.c (cortexa35_tunings):
9624 Enable AES fusion. Use cortexa57_branch_cost.
9625 (cortexa53_tunings): Use cortexa57_branch_cost.
9626 (cortexa72_tunings): Use cortexa57_branch_cost.
9627 Use AUTOPREFETCHER_WEAK.
9628 (cortexa73_tunings): Use cortexa57_branch_cost.
9629
9630 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9631 James Greenhalgh <james.greenhalgh@arm.com>
9632
9633 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
9634 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
9635 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
9636 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
9637 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
9638 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
9639 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
9640 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
9641 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
9642 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
9643 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
9644 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
9645 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
9646 New intrinsics.
9647
9648 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
9649 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9650
9651 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
9652 New define_insn.
9653 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
9654
9655 2016-06-30 David Malcolm <dmalcolm@redhat.com>
9656
9657 PR driver/71651
9658 * gcc.c (driver::build_option_suggestions): Pass "option" to
9659 add_misspelling_candidates.
9660 * opts-common.c (add_misspelling_candidates): Add "option" param;
9661 use it to avoid adding negated forms for options marked with
9662 RejectNegative.
9663 * opts.h (add_misspelling_candidates): Add "option" param.
9664
9665 2016-06-30 Jakub Jelinek <jakub@redhat.com>
9666
9667 PR middle-end/71693
9668 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
9669 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
9670 first when permuting bitwise operation with rotate. Cast
9671 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
9672
9673 2016-06-29 David Malcolm <dmalcolm@redhat.com>
9674
9675 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
9676 for misspelled param names.
9677 * params.c: Include spellcheck.h.
9678 (find_param_fuzzy): New function.
9679 * params.h (find_param_fuzzy): New prototype.
9680 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
9681 * spellcheck.h (struct edit_distance_traits<const char *>):
9682 ...here.
9683
9684 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9685
9686 * config/rs6000/predicates.md (const_0_to_7_operand): New
9687 predicate, recognize 0..7.
9688 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9689 support for doing extracts from V16QImode, V8HImode, V4SImode
9690 under ISA 3.0.
9691 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
9692 vector extract support.
9693 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
9694 for ISA 3.0 vector extract.
9695 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
9696 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
9697 extracts of a constant element number from small integer vectors
9698 on 64-bit ISA 3.0 systems.
9699 (vsx_extract_<mode>_di): Likewise.
9700 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
9701 say when we can do ISA 3.0 vector extracts.
9702 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
9703 registers, using the stxsiwx instruction.
9704
9705 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
9706
9707 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
9708 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
9709 qdf24xx_regmove_cost, qdf24xx_tunings): New.
9710 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
9711 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
9712 * config/arm/arm.c (arm_qdf24xx_tune): New.
9713
9714 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
9715
9716 * config/aarch64/aarch64.c (cortexa53_tunings):
9717 Increase loop alignment to 8. Set function alignment to 16.
9718 (cortexa35_tunings): Likewise.
9719 (cortexa57_tunings): Increase loop alignment to 8.
9720 (cortexa72_tunings): Likewise.
9721 (cortexa73_tunings): Likewise.
9722
9723 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
9724
9725 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
9726 for arm_fp16_ok and arm_fp16_hw.
9727 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
9728 arm_fp16_alternative.
9729
9730 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
9731
9732 PR tree-optimization/71655
9733 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
9734 types when swapping operands.
9735
9736 2016-06-29 Martin Liska <mliska@suse.cz>
9737
9738 PR middle-end/71585
9739 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
9740 * ipa-inline-transform.c (inline_call): Remove unnecessary call
9741 of build_optimization_node.
9742
9743 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
9744
9745 PR tree-optimization/70729
9746 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
9747 independent in loops having positive safelen value.
9748 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
9749 it may be not valid after vectorization.
9750
9751 2016-06-29 Jakub Jelinek <jakub@redhat.com>
9752
9753 PR tree-optimization/71625
9754 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
9755 is sorted by ascending list->offset. If PTR is non-NULL and there is
9756 previous strinfo, call get_stridx_plus_constant.
9757 (get_stridx): Pass exp as second argument to get_addr_stridx.
9758 (addr_stridxptr): Add missing list = list->next, so that there can be
9759 more than one entries in the list. Bump limit from 16 to 32. Ensure
9760 the list is sorted by ascending list->offset.
9761 (get_stridx_plus_constant): Adjust so that it can be also called with
9762 ADDR_EXPR instead of SSA_NAME as PTR.
9763 (handle_char_store): Pass NULL_TREE as second argument to
9764 get_addr_stridx.
9765
9766 2016-06-29 Richard Biener <rguenther@suse.de>
9767
9768 PR rtl-optimization/68961
9769 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
9770
9771 2016-06-29 Richard Biener <rguenther@suse.de>
9772
9773 PR middle-end/71002
9774 * alias.c (component_uses_parent_alias_set_from): Handle
9775 type punning through union accesses by using the union alias set.
9776 * gimple.c (gimple_get_alias_set): Remove union type punning case.
9777
9778 2016-07-29 Richard Biener <rguenther@suse.de>
9779
9780 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
9781 precision not matching mode precision.
9782
9783 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
9784
9785 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
9786 pa_output_arg_descriptor.
9787 (call_val_symref_64bit_post_reload): Likewise.
9788 (call_val_powf_64bit_post_reload): Likewise.
9789 (sibcall_internal_symref_64bit): Likewise.
9790 (sibcall_value_internal_symref_64bit): Likewise.
9791
9792 2016-06-28 Jakub Jelinek <jakub@redhat.com>
9793
9794 PR middle-end/71626
9795 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
9796 a constant, force its SUBREG_REG into memory or register instead
9797 of whole op1.
9798
9799 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9800
9801 PR target/58655
9802 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
9803 * doc/invoke.texi (AVR Options): Document it.
9804
9805 2016-06-28 Walter Lee <walt@tilera.com>
9806
9807 * config/tilegx/linux.h: Do not include arch/icache.h
9808 (CLEAR_INSN_CACHE): Provide inlined definition directly.
9809 * config/tilepro/linux.h: Do not include arch/icache.h
9810 (CLEAR_INSN_CACHE): Provide inlined definition directly.
9811
9812 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
9813
9814 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
9815 for big-endian BIT_FIELD_REF.
9816
9817 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
9818
9819 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
9820 ('size' attribute): Add '128'.
9821 Include power9.md.
9822 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
9823 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
9824 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
9825 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
9826 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
9827 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
9828 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
9829 *trunc<mode>df2_odd): Set size attribute to '128'.
9830 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
9831 * config/rs6000/power6.md (power6-fp): Include dfp type.
9832 * config/rs6000/power7.md (power7-fp): Likewise.
9833 * config/rs6000/power8.md (power8-fp): Likewise.
9834 * config/rs6000/power9.md: New file.
9835 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
9836 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
9837 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
9838 htmsimple.
9839 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
9840 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
9841 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
9842 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
9843 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
9844 dfp_dscri_<mode>): Change type attribute to dfp.
9845 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
9846 attribute to vecsimple.
9847 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
9848 and prefetch streams.
9849 (rs6000_option_override_internal): Remove temporary code setting
9850 tuning to power8. Don't set rs6000_sched_groups for power9.
9851 (last_scheduled_insn): Change to rtx_insn *.
9852 (divide_cnt, vec_load_pendulum): New variables.
9853 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
9854 (rs6000_issue_rate): Set issue rate for Power9.
9855 (is_power9_pairable_vec_type): New.
9856 (power9_sched_reorder2): New.
9857 (rs6000_sched_reorder2): Call new function for Power9 specific
9858 reordering.
9859 (insn_must_be_first_in_group): Remove Power9.
9860 (insn_must_be_last_in_group): Likewise.
9861 (force_new_group): Likewise.
9862 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
9863 Initialize divide_cnt/vec_load_pendulum.
9864 (_rs6000_sched_context, rs6000_init_sched_context,
9865 rs6000_set_sched_context): Handle context save/restore of new
9866 variables.
9867
9868 2016-06-28 Richard Biener <rguenther@suse.de>
9869
9870 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9871 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
9872 COMPONENT_REF operand.
9873 (nonoverlapping_component_refs_p): Likewise.
9874 * stor-layout.c (start_bitfield_representative): Mark
9875 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
9876
9877 2016-06-28 Jakub Jelinek <jakub@redhat.com>
9878
9879 * Makefile.in: Don't cat ../stage_current if it does not exist.
9880
9881 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
9882 last argument is a bit-field.
9883
9884 PR rtl-optimization/71673
9885 * internal-fn.c (expand_arith_overflow_result_store): Use
9886 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
9887 expand_simple_binop.
9888
9889 PR middle-end/66867
9890 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
9891 expand_ifn_atomic_compare_exchange): New functions.
9892 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
9893 * tree.h (build_call_expr_internal_loc): Rename to ...
9894 (build_call_expr_internal_loc_array): ... this. Fix up type of
9895 last argument.
9896 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
9897 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
9898 ATOMIC_COMPARE_EXCHANGE result.
9899 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
9900 * gimple-fold.h (optimize_atomic_compare_exchange_p,
9901 fold_builtin_atomic_compare_exchange): New prototypes.
9902 * gimple-fold.c (optimize_atomic_compare_exchange_p,
9903 fold_builtin_atomic_compare_exchange): New functions..
9904 * tree-ssa.c (execute_update_addresses_taken): If
9905 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
9906 of call when finding addressable vars, and if such var becomes
9907 non-addressable, call fold_builtin_atomic_compare_exchange.
9908
9909 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
9910
9911 PR target/71670
9912 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
9913 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
9914
9915 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
9916
9917 * config/rs6000/rs6000.md ('type' attribute): Add
9918 veclogical,veccmpfx,vecexts,vecmove insn types.
9919 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
9920 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
9921 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
9922 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
9923 *nabs<mode>2_hw): Change type to vecmove.
9924 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
9925 *boolcc<mode>3_internal, *eqv<mode>3_internal,
9926 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
9927 *ieee_128bit_vsx_abs<mode>2_internal,
9928 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
9929 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
9930 *ieee128_mtvsrd_32bit): Change type to veclogical.
9931 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
9932 *movdi_internal32, *movdi_internal64): Update insn types.
9933 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
9934 vsx_extract_<mode>): Change type to veclogical.
9935 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
9936 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
9937 *vsx_sign_extend_si_v2di): Change type to vecexts.
9938 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
9939 type to veclogical.
9940 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
9941 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
9942 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
9943 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
9944 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
9945 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
9946 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
9947 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
9948 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
9949 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
9950 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
9951 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
9952 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
9953 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
9954 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
9955 (ppc7450-vecsimple): Add veclogical, vecmove.
9956 (ppc7450-veccmp): Add veccmpfx.
9957 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
9958 vecmove.
9959 (ppc8540_vector_compare): Add veccmpfx.
9960 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
9961 * config/rs6000/cell.md (cell-fp): Add fpsimple.
9962 (cell-vecsimple): Add veclogical, vecmove.
9963 (cell-veccmp): Add veccmpfx.
9964 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
9965 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
9966 veccmpfx.
9967 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
9968 * config/rs6000/power4.md (power4-fp): Add fpsimple.
9969 (power4-vecsimple): Add veclogical, vecmove.
9970 (power4-veccmp): Add veccmpfx.
9971 * config/rs6000/power5.md (power5-fp): Add fpsimple.
9972 * config/rs6000/power6.md (power6-fp): Add fpsimple.
9973 (power6-vecsimple): Add veclogical, vecmove.
9974 (power6-veccmp): Add veccmpfx.
9975 * config/rs6000/power7.md (power7-fp): Add fpsimple.
9976 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
9977 * config/rs6000/power8.md (power8-fp): Add fpsimple.
9978 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
9979 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
9980 * config/rs6000/titan.md (titan_fp): Add fpsimple.
9981 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
9982 fpsimple.
9983 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
9984
9985 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
9986
9987 PR target/71656
9988 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9989 OPTION_MASK_P9_DFORM_VECTOR.
9990 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
9991 disable -mpower9-dform-vector when using reload.
9992 (quad_address_p): Remove 'gpr_p' argument and all associated code.
9993 New 'strict' argument. Update all callers. Add strict addressing
9994 support.
9995 (rs6000_legitimate_offset_address_p): Remove call to
9996 virtual_stack_registers_memory_p.
9997 (rs6000_legitimize_reload_address): Add quad address support.
9998 (rs6000_legitimate_address_p): Move call to quad_address_p above
9999 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
10000 to account for new strict usage.
10001 (rs6000_output_move_128bit): Adjust quad_address_p args to account
10002 for new strict usage.
10003 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
10004
10005 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
10006
10007 PR target/70902
10008 PR target/71453
10009 PR target/71555
10010 PR target/71596
10011 PR target/71657
10012 * config/i386/i386.c (ix86_spill_class): Disable condition to
10013 always return NO_REGS.
10014
10015 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
10016
10017 * predict.c: Include gimple-pretty-print.h
10018 (predicted_by_loop_heuristics_p): Check also
10019 PRED_LOOP_EXIT_WITH_RECURSION
10020 (predict_loops): Find self recursive calls and use special purpose
10021 predictors for them; dump log about decisions.
10022 (pass_profile::execute): Dump info about #of iterations.
10023 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
10024 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
10025
10026 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
10027
10028 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
10029 output_asm_insn calls and shorten long lines. Output .CALL
10030 argument descriptor using pa_output_arg_descriptor. Add various
10031 inline $$dyncall and other optimizations.
10032 (pa_attr_length_indirect_call): Adjust ordering and lengths.
10033
10034 2016-06-25 Jakub Jelinek <jakub@redhat.com>
10035
10036 PR tree-optimization/71643
10037 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
10038 EH preds.
10039
10040 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
10041 leak a bitmap if dep_bb is NULL.
10042
10043 PR tree-optimization/71631
10044 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
10045 to rewrite_expr_tree even if negate_result, move new_lhs var
10046 declaration and initialization earlier, for powi_result set afterwards
10047 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
10048 if new_lhs != lhs, and don't shadow gsi var.
10049
10050 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
10051
10052 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
10053 Add in_loop parameter.
10054 (predict_loops): Add loop guard heuristics.
10055 * predict.def (PRED_LOOP_GUARD): New heuristics.
10056
10057 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
10058
10059 * predict.c: Include ipa-utils.h
10060 (tree_bb_level_prediction): Predict recursive calls.
10061 (tree_estimate_probability_bb): Skip inexpensive calls for call
10062 predictor.
10063 * predict.def (PRED_RECURSIVE_CALL): New.
10064
10065 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10066
10067 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
10068 (BU_FLOAT128_1): Likewise.
10069 (FABSQ): Likewise.
10070 (COPYSIGNQ): Likewise.
10071 (RS6000_BUILTIN_NANQ): Likewise.
10072 (RS6000_BUILTIN_NANSQ): Likewise.
10073 (RS6000_BUILTIN_INFQ): Likewise.
10074 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
10075 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
10076 (TARGET_FOLD_BUILTIN): New #define.
10077 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
10078 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
10079 (rs6000_fold_builtin): New target hook implementation, handling
10080 folding of 128-bit NaNs and infinities.
10081 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
10082 entries are filled in to avoid problems during bootstrap
10083 self-test; define builtins for 128-bit NaNs and infinities.
10084 (rs6000_opt_mask): Add entry for float128.
10085 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
10086 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
10087 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
10088 (const_str_type_node): New #define.
10089 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
10090 to a define_expand that dispatches to either copysign<mode>3_soft
10091 or copysign<mode>3_hard.
10092 (copysign<mode>3_hard): Rename from copysign<mode>3.
10093 (copysign<mode>3_soft): New define_insn.
10094 * doc/extend.texi: Document new builtins.
10095
10096 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10097
10098 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
10099 PRIu64 instead of lu.
10100
10101 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
10102
10103 PR debug/71642
10104 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
10105 copy the type name.
10106
10107 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10108
10109 PR tree-optimization/71647
10110 * omp-low.c (lower_rec_input_clauses): Convert
10111 omp_clause_aligned_alignment (c) to size_type_node for the
10112 last argument of __builtin_assume_aligned.
10113
10114 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
10115
10116 * configure.ac (calling ___tls_get_addr via GOT): New
10117 assembler/linker check.
10118 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
10119 assembler and linker supports calling ___tls_get_addr via GOT.
10120 Otherise, defined to 0.
10121 * config.in: Regenerated.
10122 * configure: Likewise.
10123 * config/i386/constraints.md (Yb): New constraint.
10124 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
10125 (REG_CLASS_NAMES): Likewise.
10126 (REG_CLASS_CONTENTS): Likewise.
10127 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
10128 the b constraint with the Yb constraint. Call ___tls_get_addr
10129 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
10130 is 1.
10131 (*tls_local_dynamic_base_32_gnu): Likewise.
10132 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
10133 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
10134 (*tls_local_dynamic_base_64_<mode>): Likewise.
10135
10136 2016-06-24 Martin Liska <mliska@suse.cz>
10137
10138 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
10139 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
10140 few functions.
10141 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
10142 argument to true if the expected number of iterations is
10143 loop-based.
10144
10145 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
10146
10147 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
10148 assemble for 32bit target.
10149 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
10150 and $ld_ix86_gld_32_opt to link for 32bit target.
10151 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
10152 * configure: Regenerate.
10153
10154 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10155
10156 * config/arm/arm.c (int_log2): Delete definition and prototype.
10157 (shift_op): Use exact_log2 instead of int_log2.
10158 (vfp3_const_double_for_fract_bits): Likewise.
10159
10160 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10161
10162 * internal-fn.c (expand_arith_set_overflow): New function.
10163 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
10164 Use it.
10165 (expand_arith_overflow_result_store): Likewise. Handle precision
10166 smaller than mode precision.
10167 * tree-vrp.c (extract_range_basic): For imag part, handle
10168 properly signed 1-bit precision result.
10169 * doc/extend.texi (__builtin_add_overflow): Document that last
10170 argument can't be pointer to enumerated or boolean type.
10171 (__builtin_add_overflow_p): Document that last argument can't
10172 have enumerated or boolean type.
10173
10174 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10175 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10176
10177 * config/rs6000/predicates.md (splat_input_operand): Rework.
10178 Don't allow constants, since the insns that use this predicate
10179 don't support constants. Constants are handled by other insns
10180 that are created via combine. During and after register
10181 allocation, only allow indexed or indirect addresses, and not
10182 general addresses. Only allow modes supported by the hardware.
10183 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
10184 comment. Move check for using VSPLTIS<x> to a common location,
10185 instead of doing it in two different places.
10186
10187 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
10188
10189 * config/i386/driver-i386.c (host_detect_local_cpu): Set
10190 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
10191 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
10192 signature_CENTAUR_ebx.
10193
10194 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
10195
10196 PR target/66232
10197 PR target/67400
10198 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
10199 (as_ix86_gas_32_opt): This.
10200 (ld_ix86_tls_ldm_opt): Renamed to ...
10201 (ld_ix86_gld_32_opt): This.
10202 (R_386_TLS_LDM reloc): Updated.
10203 (R_386_GOT32X reloc): New assembler/linker check.
10204 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
10205 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
10206 defined to 0.
10207 * config.in: Regenerated.
10208 * configure: Likewise.
10209 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
10210 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
10211 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
10212 if ix86_force_load_from_GOT_p returns true.
10213 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
10214 ix86_force_load_from_GOT_p returns true.
10215 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
10216 the external function address via the GOT slot.
10217 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
10218 HAVE_AS_IX86_GOT32X before returning false.
10219 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
10220 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
10221
10222 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
10223
10224 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
10225
10226 2016-06-23 Andi Kleen <ak@linux.intel.com>
10227
10228 * Makefile.in: Regenerate.
10229 * doc/install.texi: Document autoprofiledbootstrap.
10230
10231 2016-06-23 Andi Kleen <ak@linux.intel.com>
10232
10233 * config/i386/gcc-auto-profile: New file.
10234
10235 2016-06-23 Martin Liska <mliska@suse.cz>
10236
10237 PR middle-end/71619
10238 * predict.c (predict_loops): Revert the hunk that was removed
10239 in r237103.
10240
10241 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
10242
10243 * config.gcc: Add support for arm*-*-phoenix* targets.
10244 * config/arm/t-phoenix: New.
10245 * config/phoenix.h: New.
10246
10247 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
10248 H.J. Lu <hongjiu.lu@intel.com>
10249
10250 PR target/67400
10251 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
10252 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
10253 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
10254 ix86_force_load_from_GOT_p returns true.
10255 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
10256 ix86_force_load_from_GOT_p returns true.
10257 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
10258 ix86_force_load_from_GOT_p returns true.
10259 (ix86_expand_move): Load the external function address via the
10260 GOT slot if ix86_force_load_from_GOT_p returns true.
10261 * config/i386/predicates.md (x86_64_immediate_operand): Return
10262 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
10263 (x86_64_zext_immediate_operand): Ditto.
10264
10265 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
10266
10267 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
10268
10269 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10270
10271 PR c/70339
10272 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
10273 * diagnostic.c (pedwarn_at_rich_loc): New function.
10274 * spellcheck.h (best_match::best_match): Add a
10275 "best_distance_so_far" optional parameter.
10276 (best_match::set_best_so_far): New method.
10277 (best_match::get_best_distance): New accessor.
10278 (best_match::get_best_candidate_length): New accessor.
10279
10280 2016-06-22 Nick Clifton <nickc@redhat.com>
10281
10282 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
10283 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
10284 modes are accepted as well.
10285 (ucompare_loc_descriptor): Likewise.
10286 (minmax_loc_descriptor): Likewise.
10287 (clz_loc_descriptor): Likewise.
10288 (popcount_loc_descriptor): Likewise.
10289 (bswap_loc_descriptor): Likewise.
10290 (rotate_loc_descriptor): Likewise.
10291 (mem_loc_descriptor): Likewise.
10292 (loc_descriptor): Likewise.
10293
10294 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10295
10296 * common.opt (fdiagnostics-parseable-fixits): New option.
10297 * diagnostic.c: Include "selftest.h".
10298 (print_escaped_string): New function.
10299 (print_parseable_fixits): New function.
10300 (diagnostic_report_diagnostic): Call print_parseable_fixits.
10301 (selftest::assert_print_escaped_string): New function.
10302 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
10303 (selftest::test_print_escaped_string): New function.
10304 (selftest::test_print_parseable_fixits_none): New function.
10305 (selftest::test_print_parseable_fixits_insert): New function.
10306 (selftest::test_print_parseable_fixits_remove): New function.
10307 (selftest::test_print_parseable_fixits_replace): New function.
10308 (selftest::diagnostic_c_tests): New function.
10309 * diagnostic.h (struct diagnostic_context): Add field
10310 "parseable_fixits_p".
10311 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10312 -fdiagnostics-parseable-fixits.
10313 (-fdiagnostics-parseable-fixits): New option.
10314 * opts.c (common_handle_option): Handle
10315 -fdiagnostics-parseable-fixits.
10316 * selftest-run-tests.c (selftest::run_tests): Call
10317 selftest::diagnostic_c_tests.
10318 * selftest.h (selftest::diagnostic_c_tests): New prototype.
10319
10320 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
10321
10322 PR tree-optimization/71488
10323 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
10324 comparison of boolean vectors.
10325 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
10326 of boolean vectors using bitwise operations.
10327
10328 2016-06-22 Andreas Schwab <schwab@suse.de>
10329
10330 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
10331 Remove declaration.
10332
10333 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
10334
10335 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
10336
10337 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
10338
10339 * config/i386/i386.c (print_reg): Emit an error message on attempt to
10340 print FLAGS_REG.
10341
10342 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10343
10344 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
10345 * config/arm/arm-cores.def (cortex-a73): New entry.
10346 (cortex-a73.cortex-a35): Likewise.
10347 (cortex-a73.cortex-a53): Likewise.
10348 * config/arm/arm-tables.opt: Regenerate.
10349 * config/arm/arm-tune.md: Likewise.
10350 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
10351 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10352 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
10353 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10354 * doc/invoke.texi (ARM Options): Document cortex-a73,
10355 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
10356
10357 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10358
10359 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
10360 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
10361 (cortex-a73.cortex-a35): Likewise.
10362 (cortex-a73.cortex-a53): Likewise.
10363 * config/aarch64/aarch64-tune.md: Regenerate.
10364 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
10365 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
10366 -mcpu and -mtune.
10367
10368 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10369
10370 * configure.ac (gcc_cv_as_compress_debug): Remove
10371 --compress-debug-sections as extra as switch.
10372 Handle gas --compress-debug-sections=type.
10373 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
10374 Handle gld --compress-debug-sections=type.
10375 * configure: Regenerate.
10376
10377 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
10378
10379 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
10380
10381 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
10382
10383 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
10384 (do_rewrite): likewise.
10385
10386 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10387
10388 * common/config/mep/mep-common.c: Remove.
10389 * config.gcc: Remove mep-* support.
10390 * config/mep/constraints.md: Remove.
10391 * config/mep/default.h: Remove.
10392 * config/mep/intrinsics.h: Remove.
10393 * config/mep/intrinsics.md: Remove.
10394 * config/mep/ivc2-template.h: Remove.
10395 * config/mep/mep-c5.cpu: Remove.
10396 * config/mep/mep-core.cpu: Remove.
10397 * config/mep/mep-default.cpu: Remove.
10398 * config/mep/mep-ext-cop.cpu: Remove.
10399 * config/mep/mep-intrin.h: Remove.
10400 * config/mep/mep-ivc2.cpu: Remove.
10401 * config/mep/mep-pragma.c: Remove.
10402 * config/mep/mep-protos.h: Remove.
10403 * config/mep/mep.c: Remove.
10404 * config/mep/mep.cpu: Remove.
10405 * config/mep/mep.h: Remove.
10406 * config/mep/mep.md: Remove.
10407 * config/mep/mep.opt: Remove.
10408 * config/mep/predicates.md: Remove.
10409 * config/mep/t-mep: Remove.
10410 * doc/install.texi: Remove mep-* documentation.
10411 * doc/md.texi: Likewise.
10412
10413 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10414
10415 * config.gcc: Remove support for avr-rtems.
10416 * config/avr/gen-avr-mmcu-specs.c: Likewise.
10417 * config/avr/rtems.h: Remove.
10418 * config/avr/t-rtems: Remove.
10419
10420 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10421
10422 * config.gcc: Remove m32r-rtems support.
10423 * config/m32r/rtems.h: Remove.
10424
10425 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10426
10427 * config.gcc: Remove h8300-rtems support.
10428 * config/h8300/rtems.h: Remove.
10429 * config/h8300/t-rtems: Remove.
10430
10431 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10432
10433 * config.gcc: Remove support for knetbsd.
10434 * configure.ac: Likewise.
10435 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
10436 * config/knetbsd-gnu.h: Remove.
10437 * configure: Regenerate.
10438
10439 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10440
10441 * config.gcc: Remove support for openbsd 2 and 3.
10442 * config/openbsd-oldgas.h: Remove.
10443
10444 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10445
10446 * config.gcc: Remove interix support.
10447 * config/i386/i386-interix.h: Remove.
10448 * config/i386/interix.opt: Remove.
10449 * config/i386/t-interix: Remove.
10450 * configure: Regenerate.
10451 * configure.ac: Remove interix support.
10452 * doc/install.texi: Remove interix documentation.
10453
10454 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
10455
10456 * config/rs6000/rs6000.h: Add conditional preprocessing directives
10457 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
10458 not defined.
10459
10460 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
10461
10462 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
10463 they are both PLACEHOLDER_EXPRs.
10464
10465 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10466
10467 * stor-layout.c (layout_type): Move setting complex MODE to
10468 layout_type, instead of setting it ahead of time by the caller.
10469 * tree.c (build_complex_type): Likewise.
10470
10471 2016-06-21 Martin Liska <mliska@suse.cz>
10472
10473 * predict.c (force_edge_cold): Replace imposisble with
10474 impossible.
10475
10476 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
10477
10478 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
10479 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
10480
10481 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
10482
10483 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
10484
10485 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
10486 Ilya Enkovich <ilya.enkovich@intel.com>
10487
10488 PR target/71549
10489 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
10490 New member function to convert V1TImode register to SUBREG
10491 TImode in debug insn.
10492 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
10493 after changing register mode to V1TImode.
10494
10495 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
10496
10497 * config/aarch64/aarch64-cores.def (vulcan): New core.
10498 * config/aarch64/aarch64-tune.md: Regenerate.
10499 * doc/invoke.texi: Document vulcan as an available option.
10500
10501 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
10502
10503 * cse.c (canon_asm_operands): New function extracted from...
10504 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
10505 either standalone or member of a PARALLEL.
10506
10507 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
10508
10509 PR target/30417
10510 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
10511 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
10512 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
10513
10514 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
10515
10516 PR target/71103
10517 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
10518 constant addresses if can_create_pseudo_p.
10519
10520 2016-06-21 Jakub Jelinek <jakub@redhat.com>
10521
10522 PR tree-optimization/71588
10523 * tree-ssa-strlen.c (valid_builtin_call): New function.
10524 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
10525 it.
10526
10527 2016-06-20 Jakub Jelinek <jakub@redhat.com>
10528
10529 PR middle-end/71581
10530 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
10531 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
10532 for conversion of scalar user var to complex type and use the
10533 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
10534 punt.
10535
10536 PR rtl-optimization/71591
10537 * toplev.c (toplev::run_self_tests): If no_backend, complain and
10538 don't run any tests.
10539
10540 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
10541
10542 PR target/71571
10543 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
10544 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
10545 space for PIC with non-v32 and the common non-PIC "jump".
10546
10547 2016-06-20 Jakub Jelinek <jakub@redhat.com>
10548
10549 PR target/71559
10550 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
10551 returned values and add UN*/LTGT/*ORDERED cases with values matching
10552 D operand modifier on vcmp for AVX.
10553
10554 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
10555
10556 * config/aarch64/aarch64.opt
10557 (mpc-relative-literal-loads): Rename internal option name.
10558 * config/aarch64/aarch64.c
10559 (aarch64_nopcrelative_literal_loads): Rename to
10560 aarch64_pcrelative_literal_loads.
10561 (aarch64_expand_mov_immediate): Likewise.
10562 (aarch64_secondary_reload): Likewise.
10563 (aarch64_can_use_per_function_literal_pools_p): Likewise.
10564 (aarch64_override_options_after_change_1): Rename and simplify logic.
10565 (aarch64_classify_symbol): Merge large model checks into switch,
10566 remove pc-relative load check.
10567
10568 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10569
10570 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
10571 costs relative to the cost of a register move.
10572
10573 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10574
10575 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
10576 (vcvt_n_f64_u64): Likewise.
10577 (vcvt_n_s64_f64): Likewise.
10578 (vcvt_n_u64_f64): Likewise.
10579 (vcvt_f64_s64): Likewise.
10580 (vrecpe_f64): Likewise.
10581 (vcvt_f64_u64): Likewise.
10582 (vrecps_f64): Likewise.
10583
10584 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10585
10586 * config/aarch64/aarch64.md
10587 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
10588 iterators.
10589 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
10590 attributes.
10591 * config/aarch64/aarch64-builtins.c
10592 (aarch64_types_binop_uss_qualifiers): Delete.
10593 (TYPES_BINOP_USS): Likewise.
10594 (aarch64_types_binop_sus_qualifiers): Likewise.
10595 (TYPES_BINOP_SUS): Likewise.
10596 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
10597 (TYPES_FCVTIMM_SUS): Likewise.
10598 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
10599 rather than BINOP.
10600 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
10601 (fcvtzs): Use SHIFTIMM rather than BINOP.
10602 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
10603
10604 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10605
10606 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
10607 costs relative to the cost of a register move.
10608
10609 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
10610
10611 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
10612 Allow scalar/single vector modes to be tieable.
10613
10614 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
10615
10616 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
10617
10618 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10619
10620 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
10621 "alignement".
10622 * tree.h (TYPE_ALIGN): Likewise.
10623
10624 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
10625
10626 PR target/71103
10627 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
10628
10629 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
10630
10631 * config/avr/avr.c (avr_print_operand): Fix "format not a string
10632 literal" build warnings.
10633 (avr_print_operand_address): Dito.
10634
10635 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
10636
10637 PR target/71375
10638 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
10639 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
10640
10641 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
10642
10643 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
10644
10645 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
10646
10647 PR bootstrap/71435
10648 * reload1.c (reload): Pass 0 to finish_spills when called because
10649 update_eliminables_and_spill returns true and remove did_spill.
10650 (finish_spills): Adjust comment and document GLOBAL parameter.
10651
10652 2016-06-17 DJ Delorie <dj@redhat.com>
10653
10654 PR target/71338
10655 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
10656 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
10657 (umulqihi3_virt): Likewise.
10658 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
10659 (umulqihi3_real): Likewise.
10660
10661 2016-06-17 Martin Liska <mliska@suse.cz>
10662
10663 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
10664
10665 2016-06-17 Martin Liska <mliska@suse.cz>
10666
10667 * predict.def: PRED_LOOP_EXIT from 92 to 85.
10668
10669 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
10670
10671 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
10672 __FAST_MATH__.
10673 (vaddq_f32): Likewise.
10674 (vmul_f32): Likewise.
10675 (vmulq_f32): Likewise.
10676 (vsub_f32): Likewise.
10677 (vsubq_f32): Likewise.
10678
10679 2016-06-17 Bin Cheng <bin.cheng@arm.com>
10680
10681 PR tree-optimization/71347
10682 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
10683 cost for all uses in group.
10684
10685 2016-06-17 Bin Cheng <bin.cheng@arm.com>
10686
10687 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
10688 insert gimple seq if it's not empty.
10689
10690 2016-06-17 Bin Cheng <bin.cheng@arm.com>
10691
10692 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
10693 member OFFSET.
10694 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
10695 rather than OFFSET.
10696 (comp_dr_with_seg_len_pair): Ditto.
10697 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
10698 struct dr_with_seg_len_pair against DR_OFFSET.
10699 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
10700 DR_OFFSET directly.
10701
10702 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
10703
10704 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
10705
10706 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
10707
10708 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
10709 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
10710 (pa_output_millicode_call): Likewise.
10711 (pa_output_call): Likewise.
10712 (pa_output_indirect_call): Likewise.
10713 (pa_asm_output_mi_thunk): Likewise.
10714
10715 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10716
10717 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
10718
10719 2016-06-16 Martin Liska <mliska@suse.cz>
10720
10721 * predict.c (combine_predictions_for_insn): When we find a first
10722 match predictor, we should consider just predictors with
10723 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
10724 DS theory predictor.
10725 (combine_predictions_for_bb): Likewise.
10726
10727 2016-06-16 Jakub Jelinek <jakub@redhat.com>
10728
10729 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
10730 with base of reference to struct.
10731
10732 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
10733
10734 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
10735
10736 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10737
10738 PR target/71151
10739 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
10740 progmem_swtable_section.
10741 (progmem_swtable_section): Remove.
10742 (avr_asm_function_rodata_section): Remove.
10743 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
10744 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
10745
10746 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
10747
10748 * config/i386/driver-i386.c (host_detect_local_cpu): Set
10749 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
10750 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
10751 signature_CENTAUR_ebx.
10752 * config/i386/i386.c (ix86_option_override_internal): Add
10753 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
10754 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
10755 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
10756
10757 2016-06-16 Martin Liska <mliska@suse.cz>
10758
10759 * predict.def: Add fortran loop preheader predictor.
10760 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
10761 fold IFN_BUILTIN_EXPECT with a known constant argument.
10762
10763 2016-06-16 Martin Liska <mliska@suse.cz>
10764
10765 * predict.def: Add 'Fortran' to display text of all
10766 PRED_FORTRAN_* predictors.
10767
10768 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
10769
10770 PR target/71242
10771 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
10772 [IA64_BUILTIN_NANSQ]: Ditto.
10773 (ia64_fold_builtin): New function.
10774 (TARGET_FOLD_BUILTIN): New define.
10775 (ia64_init_builtins) Declare const_string_type node.
10776 Add __builtin_nanq and __builtin_nansq builtin functions.
10777 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
10778
10779 2016-06-16 Nick Clifton <nickc@redhat.com>
10780
10781 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
10782 MSP430_HWMULT_ prefix to enum values.
10783 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
10784 * config/msp430/msp430.c: Update use of enum values.
10785 * config/msp430/msp430.md: Likewise.
10786 * config/msp430/msp430.opt: Likewise.
10787
10788 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
10789
10790 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
10791 of comparsions in the last iteration.
10792
10793 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
10794 Joern Rennecke <joern.rennecke@embecosm.com>
10795
10796 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
10797 addresses.
10798 (arc_needs_pcl_p): Add GOTOFFPC.
10799 (arc_legitimate_pic_addr_p): Likewise.
10800 (arc_output_pic_addr_const): Likewise.
10801 (arc_legitimize_pic_address): Generate a pc-relative address using
10802 GOTOFFPC.
10803 (arc_output_libcall): Use @pcl syntax.
10804 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
10805 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
10806 (*movsi_insn): Use @pcl syntax.
10807 (doloop_begin_i): Likewise.
10808
10809 2016-06-16 Martin Liska <mliska@suse.cz>
10810
10811 * predict.def: Define a new predictor.
10812
10813 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
10814
10815 * config/arc/arc.opt (mtp-regno): Update text.
10816
10817 2016-06-16 Renlin Li <renlin.li@arm.com>
10818
10819 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
10820
10821 2016-06-16 Jakub Jelinek <jakub@redhat.com>
10822
10823 PR target/71554
10824 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
10825 (setcc + and peephole2): Likewise.
10826
10827 PR rtl-optimization/71532
10828 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
10829 memory slots.
10830
10831 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10832
10833 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
10834 DImode constants with XXSPLTIB in vector registers.
10835 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
10836 vsx_extract_<mode>_internal{1,2} into a single insn that handles
10837 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
10838 extraction of the element at the top of the register as a scalar
10839 value.
10840 (vsx_extract_<mode>_internal1): Likewise.
10841 (vsx_extract_<mode>_internal2): Likewise.
10842 * config/rs6000/constraints.md (wi constraint): Remove a comment
10843 about DImode not being allowed in Altivec registers.
10844 (wB constraint): New constraint for constants that can be
10845 generated in Altivec registers with VSPLTISW/VUPKHSW.
10846 * config/rs6000/predicates.md (xxspltib_constant_split): Update
10847 comments.
10848 (xxspltib_constant_nosplit): Likewise.
10849 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
10850 support for -mupper-regs-di to enable DImode to go into Altivec
10851 registers.
10852 (POWERPC_MASKS): Likewise.
10853 (power7 cpu): Likewise.
10854 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
10855 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
10856 for DImode being allowed in Altivec registers. Update wi/wj
10857 constraints. Set scalar_in_vmx_p flag.
10858 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
10859 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
10860 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
10861 (rs6000_opt_masks): Add -mupper-regs-di.
10862 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
10863 direct move to use wi and not wj.
10864 (lfiwzx): Likewise.
10865 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
10866 alternative.
10867 (floatunssi<mode>2_lfiwzx_mem): Likewise.
10868 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
10869 any VSX register, instead of just Altivec registers, to allow
10870 either operand to be an Altivec register or both.
10871 (fixuns_trunc<mode>di2_fctiduz): Likewise.
10872 (movdi_internal32): Add support for -mupper-regs-di. Add support
10873 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
10874 the alternatives and attributes to be lined up to be easier to
10875 read.
10876 (movdi_internal64): Likewise.
10877 (64-bit DImode splitters): Change predicates to only split loading
10878 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
10879 load constants in ISA 3.0 or ISA 2.07 respectively.
10880 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10881 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
10882 mention -mcpu=power9 sets these options.
10883 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
10884 wB constraint.
10885
10886 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10887
10888 PR target/67353
10889 * config/avr/avr.c (avr_set_current_function): Warn misspelled
10890 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
10891 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
10892 by default to warn misspelled interrupt/ signal handler.
10893 * doc/invoke.texi (AVR Options): Document it. Update description
10894 for -nodevicelib option.
10895
10896 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10897
10898 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
10899 up parentheses. Use GET_MODE_UNIT_BITSIZE.
10900 (aarch64_<sur>shll2_n<mode>): Likewise.
10901
10902 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
10903
10904 PR middle-end/71529
10905 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
10906 DECL_CONTEXT for copied arguments.
10907
10908 2016-06-15 Alan Hayward <alan.hayward@arm.com>
10909
10910 PR tree-optimization/71483
10911 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
10912 for slp
10913
10914 2016-06-15 Martin Liska <mliska@suse.cz>
10915
10916 * predict.c (tree_predict_by_opcode): Call predict_edge_def
10917 instead of predict_edge w/o a probability.
10918
10919 2016-06-15 Alan Hayward <alan.hayward@arm.com>
10920
10921 PR tree-optimization/71439
10922 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
10923 live PHIs.
10924
10925 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10926
10927 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
10928 register subregs in SET_SRC.
10929
10930 2016-06-15 Richard Biener <rguenther@suse.de>
10931
10932 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
10933 store restrictions.
10934
10935 2016-06-15 Richard Biener <rguenther@suse.de>
10936
10937 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
10938 not consider dependences between accesses that belong to the
10939 same group.
10940 (vect_analyze_data_ref_dependences): Do not analyze read-read
10941 or self-dependences.
10942
10943 2016-06-14 David Malcolm <dmalcolm@redhat.com>
10944
10945 * spellcheck-tree.c: Include spellcheck-tree.h rather than
10946 spellcheck.h.
10947 (find_closest_identifier): Reimplement in terms of
10948 best_match<tree,tree>.
10949 * spellcheck-tree.h: New file.
10950 * spellcheck.c (struct edit_distance_traits<const char *>): New
10951 struct.
10952 (find_closest_string): Reimplement in terms of
10953 best_match<const char *, const char *>.
10954 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
10955 overload to spellcheck-tree.h.
10956 (find_closest_identifier): Likewise.
10957 (struct edit_distance_traits<T>): New template.
10958 (class best_match): New class.
10959
10960 2016-06-14 David Malcolm <dmalcolm@redhat.com>
10961
10962 * selftest-run-tests.c (selftest::run_tests): Call
10963 selftest::spellcheck_tree_c_tests.
10964 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
10965 * spellcheck-tree.c: Include selftest.h and stringpool.h.
10966 (selftest::test_find_closest_identifier): New function.
10967 (selftest::spellcheck_tree_c_tests): New function.
10968 * spellcheck.c (selftest::test_find_closest_string): Verify that
10969 the order of the vec does not affect the results for this case.
10970 (selftest::test_data): New array.
10971 (selftest::test_metric_conditions): New function.
10972 (selftest::spellcheck_c_tests): Add a test of case-comparison.
10973 Call selftest::test_metric_conditions.
10974
10975 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10976
10977 * config/rs6000/rs6000-builtin.def (commentary): Typo.
10978 (BU_P9_MISC_1): Likewise.
10979 (BU_P9_64BIT_MISC_0): Likewise.
10980 (BU_P9_MISC_0): Likewise.
10981
10982 2016-06-14 David Malcolm <dmalcolm@redhat.com>
10983
10984 * gcc-rich-location.c
10985 (gcc_rich_location::add_fixit_misspelled_id): New method.
10986 * gcc-rich-location.h
10987 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
10988
10989 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
10990
10991 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
10992 FreeBSD 11 and above.
10993
10994 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
10995
10996 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
10997
10998 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10999
11000 * expmed.h: Close parenthesis in "at your option" in copyright
11001 boilerplate.
11002 * lower-subreg.h: Likewise.
11003
11004 2016-06-14 Richard Biener <rguenther@suse.de>
11005
11006 PR middle-end/71526
11007 * genmatch.c (expr::gen_transform): Use in_type for comparisons
11008 if available.
11009
11010 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11011
11012 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
11013 New function.
11014 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
11015 mask+shift version.
11016 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
11017 New prototype.
11018 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
11019 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
11020
11021 2016-06-14 Richard Biener <rguenther@suse.de>
11022
11023 PR tree-optimization/71522
11024 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
11025 copying into float copying.
11026
11027 2016-06-14 Jakub Jelinek <jakub@redhat.com>
11028
11029 PR tree-optimization/71520
11030 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
11031 (replace_block_by): Move user labels from bb1 to bb2.
11032
11033 2016-06-14 Richard Biener <rguenther@suse.de>
11034
11035 PR middle-end/71310
11036 PR bootstrap/71510
11037 * expr.h (get_bit_range): Declare.
11038 * expr.c (get_bit_range): Export.
11039 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
11040 word_mode again to constrain the bitfield access.
11041
11042 2016-06-14 Richard Biener <rguenther@suse.de>
11043
11044 PR tree-optimization/71521
11045 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
11046 division int_const_binop against zero divisor.
11047
11048 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11049
11050 * config/i386/i386.md (signbittf2): New expander.
11051 * config/i386/sse.md (ptesttf2): New insn pattern.
11052
11053 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11054
11055 PR bootstrap/71481
11056 * input.c (selftest::test_reading_source_line): Avoid reading from
11057 __FILE__ by creating a tempfile with known content and reading
11058 from that instead.
11059
11060 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11061
11062 * pretty-print.c (assert_pp_format_colored): Skip the test if
11063 GCC_COLORS is set.
11064 (test_pp_format): Remove comment about GCC_COLORS.
11065
11066 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11067
11068 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
11069 * pretty-print.c (assert_pp_format_va): Add location param and use
11070 it with ASSERT_STREQ_AT.
11071 (assert_pp_format): Add location param and pass it to
11072 assert_pp_format_va.
11073 (assert_pp_format_colored): Likewise.
11074 (ASSERT_PP_FORMAT_1): New.
11075 (ASSERT_PP_FORMAT_2): New.
11076 (ASSERT_PP_FORMAT_3): New.
11077 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
11078 explicitly, or implicitly via the above macros.
11079 * selftest.c (selftest::pass): Use a selftest::location rather
11080 than file and line.
11081 (selftest::fail): Likewise. Print the function name.
11082 (selftest::fail_formatted): Likewise.
11083 (selftest::assert_streq): Use a selftest::location rather than
11084 file and line.
11085 * selftest.h (selftest::location): New struct.
11086 (SELFTEST_LOCATION): New macro.
11087 (selftest::pass): Accept a const location & rather than file
11088 and line.
11089 (selftest::fail): Likewise.
11090 (selftest::fail_formatted): Likewise.
11091 (selftest::assert_streq): Likewise.
11092 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
11093 (ASSERT_FALSE): Likewise.
11094 (ASSERT_EQ): Likewise.
11095 (ASSERT_NE): Likewise.
11096 (ASSERT_STREQ): Likewise.
11097 (ASSERT_PRED1): Likewise.
11098 (ASSERT_STREQ_AT): New macro.
11099
11100 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11101
11102 * selftest.c (selftest::fail_formatted): New function.
11103 (selftest::assert_streq): New function.
11104 * selftest.h (selftests::fail_formatted): New decl.
11105 (selftest::assert_streq): New decl.
11106 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
11107
11108 2016-06-13 Jeff Law <law@redhat.com>
11109
11110 PR tree-optimization/71403
11111 * tree-ssa-threadbackward.c
11112 (convert_and_register_jump_thread_path): No longer accept reference
11113 to path. Do not pop items off the path anymore.
11114 (fsm_find_control_statement_thread_paths): Do not allow threading
11115 to a deeper loop nest. Pop the last item off the path here rather
11116 than in convert_and_register_jump_thread_path.
11117
11118 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11119 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
11120
11121 [AArch64] Emit division using the Newton series
11122
11123 * config/aarch64/aarch64-protos.h
11124 (cpu_approx_modes): Add new member "division".
11125 (aarch64_emit_approx_div): Declare new function.
11126 * config/aarch64/aarch64.c
11127 (generic_approx_modes): New member "division".
11128 (exynosm1_approx_modes): Likewise.
11129 (xgene1_approx_modes): Likewise.
11130 (aarch64_emit_approx_div): Define new function.
11131 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
11132 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
11133 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
11134 * doc/invoke.texi (-mlow-precision-div): Describe new option.
11135
11136 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11137 Wilco Dijkstra <wilco.dijkstra@arm.com>
11138
11139 [AArch64] Emit square root using the Newton series
11140
11141 * config/aarch64/aarch64-protos.h
11142 (aarch64_emit_approx_rsqrt): Replace with new function
11143 "aarch64_emit_approx_sqrt".
11144 (cpu_approx_modes): New member "sqrt".
11145 * config/aarch64/aarch64.c
11146 (generic_approx_modes): New member "sqrt".
11147 (exynosm1_approx_modes): Likewise.
11148 (xgene1_approx_modes): Likewise.
11149 (aarch64_emit_approx_rsqrt): Replace with new function
11150 "aarch64_emit_approx_sqrt".
11151 (aarch64_override_options_after_change_1): Handle new option.
11152 * config/aarch64/aarch64-simd.md
11153 (rsqrt<mode>2): Use new function instead.
11154 (sqrt<mode>2): New expansion and insn definitions.
11155 * config/aarch64/aarch64.md: Likewise.
11156 * config/aarch64/aarch64.opt
11157 (mlow-precision-sqrt): Add new option description.
11158 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
11159
11160 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11161
11162 [AArch64] Add more choices for the reciprocal square root approximation
11163
11164 Allow a target to prefer such operation depending on the operation mode.
11165
11166 * config/aarch64/aarch64-protos.h
11167 (AARCH64_APPROX_MODE): New macro.
11168 (AARCH64_APPROX_{NONE,ALL}): Likewise.
11169 (cpu_approx_modes): New structure.
11170 (tune_params): New member "approx_modes".
11171 * config/aarch64/aarch64-tuning-flags.def
11172 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
11173 * config/aarch64/aarch64.c
11174 (generic_approx_modes): New core "cpu_approx_modes" structure.
11175 (exynosm1_approx_modes): Likewise.
11176 (xgene1_approx_modes): Likewise.
11177 (generic_tunings): New member "approx_modes".
11178 (cortexa35_tunings): Likewise.
11179 (cortexa53_tunings): Likewise.
11180 (cortexa57_tunings): Likewise.
11181 (cortexa72_tunings): Likewise.
11182 (exynosm1_tunings): Likewise.
11183 (thunderx_tunings): Likewise.
11184 (xgene1_tunings): Likewise.
11185 (use_rsqrt_p): New argument for the mode and use new member from
11186 "tune_params".
11187 (aarch64_builtin_reciprocal): Devise mode from builtin.
11188 (aarch64_optab_supported_p): New argument for the mode.
11189 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
11190
11191 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11192
11193 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
11194 RS6000_BTM_MODULO flag into the set of flags that are considered
11195 to be part of the common configuration.
11196
11197 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11198
11199 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
11200 difference unsigned.
11201 (vec_absdb): New macro for vector absolute difference unsigned
11202 byte.
11203 (vec_absdh): New macro for vector absolute difference unsigned
11204 half-word.
11205 (vec_absdw): New macro for vector absolute difference unsigned word.
11206 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
11207 (vadu<mode>3): New insn.
11208 (*p9_vadu<mode>3): New insn.
11209 * config/rs6000/rs6000-builtin.def (vadub): New built-in
11210 definition.
11211 (vaduh): New built-in definition.
11212 (vaduw): New built-in definition.
11213 (vadu): New overloaded built-in definition.
11214 (vadub): New overloaded built-in definition.
11215 (vaduh): New overloaded built-in definition.
11216 (vaduw): New overloaded built-in definition.
11217 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11218 overloaded vector absolute difference unsigned functions.
11219 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11220 the ISA 3.0 vector absolute difference unsigned built-in functions.
11221
11222 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
11223
11224 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
11225 update shared_lookup_references only once after changing operands.
11226
11227 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
11228
11229 PR middle-end/71373
11230 * tree-nested.c (convert_nonlocal_omp_clauses)
11231 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
11232
11233 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
11234 * tree.def (CASE_LABEL_EXPR): Likewise.
11235
11236 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
11237
11238 PR bootstrap/71481
11239 * input.c (test_builtins): Fix an assertion.
11240
11241 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11242
11243 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
11244 (paritysi2): Ditto.
11245 (isinfxf2): Ditto.
11246 (isinf<mode>2): Ditto.
11247
11248 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11249
11250 * ggc-tests.c (test_finalization): Only test need_finalization_p
11251 for GCC_VERSION >= 4003.
11252
11253 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11254
11255 * config/s390/vecintrin.h: Fix file description in comment.
11256
11257 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11258
11259 * config/s390/s390-builtin-types.def: Change builtin type naming
11260 scheme to match builtin-types.def.
11261
11262 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
11263
11264 * fold-const.c (optimize_minmax_comparison): Remove.
11265 (fold_comparison): Remove call to the above.
11266 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
11267 New transformations.
11268
11269 2016-06-13 Alan Hayward <alan.hayward@arm.com>
11270
11271 PR tree-optimization/71416
11272 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
11273 multiple entries
11274
11275 2016-06-13 Martin Liska <mliska@suse.cz>
11276
11277 * predict.c (enum predictor_reason): Prefix enum with REASON_.
11278 (combine_predictions_for_insn): Likewise.
11279 (prune_predictions_for_bb): Likewise.
11280 (combine_predictions_for_bb): Likewise.
11281
11282 2016-06-13 Richard Biener <rguenther@suse.de>
11283
11284 PR tree-optimization/71505
11285 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
11286 assert match comment.
11287
11288 2016-06-13 Marek Polacek <polacek@redhat.com>
11289
11290 PR middle-end/71476
11291 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
11292 gimplify_switch_expr.
11293 (warn_switch_unreachable_r): New function.
11294
11295 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11296
11297 PR target/71379
11298 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
11299 one.
11300
11301 2016-06-13 Richard Biener <rguenther@suse.de>
11302
11303 PR middle-end/64516
11304 * fold-const.c (fold_unary_loc): Preserve alignment when
11305 folding a VIEW_CONVERT_EXPR into a MEM_REF.
11306
11307 2016-06-13 Martin Liska <mliska@suse.cz>
11308
11309 PR sanitizer/71458
11310 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
11311 w/ -fsanitize=bounds.
11312
11313 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11314
11315 * config/i386/i386.c (ix86_init_builtins): Calculate
11316 FLOAT128_FTYPE_CONST_STRING function type only once.
11317 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
11318 built-in functions are available for x86-32 and x86-64 targets.
11319
11320 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11321
11322 PR target/71241
11323 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
11324 New primitive type.
11325 (FLOAT128_FTYPE_CONST_STRING): New function type.
11326 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
11327 [IX86_BUILTIN_NANSQ]: Ditto.
11328 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11329 (ix86_init_builtin_types): Declare const_string_type_node.
11330 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
11331 builtin functions.
11332 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11333 * doc/extend.texi (x86 Built-in Functions): Document
11334 __builtin_nanq and __builtin_nansq.
11335
11336 2016-06-11 Jiong Wang <jiong.wang@arm.com>
11337
11338 PR target/71061
11339 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
11340 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
11341 length for pop patterns.
11342 (arm_attr_length_push_multi): Update comments.
11343 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
11344 attribute.
11345 (*pop_multiple_with_writeback_and_return): Likewise.
11346 (*pop_multiple_with_return): Likewise.
11347
11348 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
11349
11350 PR middle-end/71310
11351 * fold-const.c (optimize_bit_field_compare): Don't try to use
11352 word_mode unconditionally for reading the bit field, look at
11353 DECL_BIT_FIELD_REPRESENTATIVE instead.
11354
11355 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
11356
11357 PR middle-end/71478
11358 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
11359 vector integer type.
11360
11361 2016-06-10 Jakub Jelinek <jakub@redhat.com>
11362
11363 PR middle-end/71494
11364 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
11365 without LABEL_DECL, set *handled_ops_p to false instead of true.
11366
11367 2016-06-10 Martin Sebor <msebor@redhat.com>
11368
11369 PR c/71392
11370 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
11371 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
11372 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
11373 them.
11374 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
11375 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
11376 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
11377 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
11378 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
11379 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
11380 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
11381 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
11382
11383 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
11384
11385 * config/arm/arm.h (pool_vector_label,
11386 return_used_this_function): Remove.
11387
11388 2016-06-10 Jeff Law <law@redhat.com>
11389
11390 PR tree-optimization/71335
11391 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
11392 zero length paths here.
11393 (convert_and_register_jump_thread_path): Remove hacks related to
11394 duplicated blocks in the jump thread path.
11395 (fsm_find_control_statement_thread_paths): Avoid putting the same
11396 block on the thread path twice, but ensure the thread path is
11397 unchanged from the caller's point of view.
11398
11399 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
11400
11401 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
11402 * predict.def (PRED_LOOP_BRANCH): Remove.
11403
11404 2016-06-10 David Malcolm <dmalcolm@redhat.com>
11405
11406 * Makefile.in (OBJS): Add ggc-tests.o.
11407 (GTFILES): Add ggc-tests.c.
11408 * ggc-tests.c: New file.
11409 * selftest-run-tests.c (selftest::run_tests): Call
11410 selftest::ggc_tests_c_tests.
11411 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
11412
11413 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
11414
11415 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
11416
11417 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
11418
11419 PR sanitizer/71480
11420 * varasm.c (place_block_symbol): Adjust alignment for asan protected
11421 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
11422
11423 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
11424
11425 * profile.c: Include cfgloop.h.
11426 (branch_prob): Compute estimated number of iterations.
11427 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
11428 recompute estimate number of iterations from profile.
11429
11430 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
11431
11432 PR inline-asm/68843
11433 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
11434 must be grouped on top of stack. Don't force early clobber
11435 on ordinary reg outputs.
11436
11437 2016-06-10 Richard Biener <rguenther@suse.de>
11438
11439 * targhooks.c (default_builtin_vectorization_cost): Adjust
11440 vec_construct cost.
11441
11442 2016-06-10 Richard Biener <rguenther@suse.de>
11443
11444 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
11445 to fold the RHS to a constant if possible.
11446
11447 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11448
11449 PR middle-end/71373
11450 * tree-nested.c (convert_nonlocal_omp_clauses)
11451 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
11452 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
11453 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
11454
11455 * gimplify.c (gimplify_adjust_omp_clauses): Discard
11456 OMP_CLAUSE_TILE.
11457 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
11458
11459 * omp-low.c (scan_sharing_clauses): Don't expect
11460 OMP_CLAUSE__CACHE_.
11461
11462 2016-06-10 Alan Hayward <alan.hayward@arm.com>
11463
11464 PR tree-optimization/71407
11465 PR tree-optimization/71416
11466 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
11467 BIT_FIELD_REF type.
11468
11469 2016-06-10 Richard Biener <rguenther@suse.de>
11470
11471 PR middle-end/71477
11472 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
11473
11474 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
11475
11476 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
11477
11478 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
11479 Jiong Wang <jiong.wang@arm.com>
11480
11481 PR rtl-optimization/70751
11482 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
11483 spilled into memory.
11484
11485 2016-06-09 Jonathan Yong <10walls@gmail.com>
11486
11487 Revert:
11488 2015-09-21 Jonathan Yong <10walls@gmail.com>
11489
11490 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
11491 sysroot/usr/lib/32api for additional win32 libraries,
11492 fixes failing Cygwin bootstrapping.
11493
11494 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
11495
11496 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
11497 Delete.
11498
11499 2016-06-09 David Malcolm <dmalcolm@redhat.com>
11500
11501 PR bootstrap/71471
11502 * pretty-print.c (pp_indent): Specify that %p is printed in a
11503 host-dependent manner.
11504 (test_pp_format): Remove the test for %p.
11505
11506 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
11507
11508 * config/mips/mips.c (mips_output_jump): Fix formatting.
11509
11510 2016-06-09 Richard Biener <rguenther@suse.de>
11511
11512 PR tree-optimization/71462
11513 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
11514 removed blocks.
11515
11516 2016-06-09 Martin Liska <mliska@suse.cz>
11517
11518 * predict.c (dump_prediction): Add new argument.
11519 (enum predictor_reason): New enum.
11520 (struct predictor_hash): New struct.
11521 (predictor_hash::hash): New function.
11522 (predictor_hash::equal): Likewise.
11523 (not_removed_prediction_p): New function.
11524 (prune_predictions_for_bb): Likewise.
11525 (combine_predictions_for_bb): Prune predictions.
11526
11527 2016-06-09 Martin Liska <mliska@suse.cz>
11528
11529 * predict.c (filter_predictions): New function.
11530 (remove_predictions_associated_with_edge): Use the filter
11531 function.
11532 (equal_edge_p): New function.
11533
11534 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
11535
11536 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
11537 Correct usage of @samp vs @option, add @samp where appropriate.
11538 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
11539 Add armv6s-m and document it, as it is no official ARM name.
11540
11541 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11542
11543 * ifcvt.c (struct noce_if_info): Add transform_name field.
11544 (noce_try_move): Set if_info->transform_name to the function name.
11545 (noce_try_ifelse_collapse): Likewise.
11546 (noce_try_store_flag): Likewise.
11547 (noce_try_inverse_constants): Likewise.
11548 (noce_try_store_flag_constants): Likewise.
11549 (noce_try_addcc): Likewise.
11550 (noce_try_store_flag_mask): Likewise.
11551 (noce_try_cmove): Likewise.
11552 (noce_try_cmove_arith): Likewise.
11553 (noce_try_minmax): Likewise.
11554 (noce_try_abs): Likewise.
11555 (noce_try_sign_mask): Likewise.
11556 (noce_try_bitop): Likewise.
11557 (noce_convert_multiple_sets): Likewise.
11558 (noce_process_if_block): Print if_info->transform_name to
11559 dump_file if transformation succeeded.
11560
11561 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11562
11563 * config/arm/cortex-a57.md (cortex_a57_alu):
11564 Handle csel type.
11565
11566 2016-06-08 Martin Sebor <msebor@redhat.com>
11567 Jakub Jelinek <jakub@redhat.com>
11568
11569 PR c++/70507
11570 PR c/68120
11571 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
11572 BUILT_IN_MUL_OVERFLOW_P): New builtins.
11573 * builtins.c: Include gimple-fold.h.
11574 (fold_builtin_arith_overflow): Handle
11575 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
11576 (fold_builtin_3): Likewise.
11577 * doc/extend.texi (Integer Overflow Builtins): Document
11578 __builtin_{add,sub,mul}_overflow_p.
11579
11580 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
11581
11582 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
11583 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
11584
11585 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
11586
11587 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
11588 Rewrite, looking one level down for records and arrays.
11589
11590 2016-06-08 David Malcolm <dmalcolm@redhat.com>
11591
11592 * pretty-print.c: Include "selftest.h".
11593 (pp_format): Fix comment.
11594 (identifier_to_locale): Likewise.
11595 (selftest::test_basic_printing): New function.
11596 (selftest::assert_pp_format): New function.
11597 (selftest::test_pp_format): New function.
11598 (selftest::pretty_print_c_tests): New function.
11599 * selftest-run-tests.c (selftest::run_tests): Call
11600 selftest::pretty_print_c_tests.
11601 * selftest.h (pretty_print_c_tests): New declaration.
11602
11603 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11604
11605 * invoke.texi (max-loop-headers-insns): Document.
11606 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
11607 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
11608 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
11609
11610 2016-06-08 Richard Biener <rguenther@suse.de>
11611
11612 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
11613 on strided SLP loads and fall back to scalar loads in case
11614 we can't chunk them.
11615
11616 2016-06-08 Richard Biener <rguenther@suse.de>
11617
11618 PR tree-optimization/71452
11619 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
11620 type used for the SSA rewrite has enough precision to cover
11621 the dynamic type of the location.
11622
11623 2016-06-08 Jakub Jelinek <jakub@redhat.com>
11624 Richard Biener <rguenther@suse.de>
11625
11626 PR c++/71448
11627 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
11628 the same as DECL_P (base0) for indirect_base0. Use equality_code
11629 in one further place.
11630
11631 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
11632
11633 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
11634 to one word if the field is known to overlap other words.
11635 (extract_bit_field_1): Likewise.
11636 (store_split_bit_field): Remove compensating code.
11637 (extract_split_bit_field): Likewise.
11638
11639 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
11640
11641 PR debug/71432
11642 PR ada/71413
11643 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
11644
11645 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11646
11647 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
11648 VDQF.
11649 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
11650 (arch64_addpv4sf): Delete.
11651 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
11652 "gen_aarch64_addpv4sf".
11653 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
11654 builtin.
11655 (vpadds_f32): Likewise.
11656 (vpaddq_f32): Likewise.
11657 (vpaddq_f64): Likewise.
11658
11659 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11660
11661 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
11662 VALLF.
11663 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
11664 to VALLF. Rename to "fabd<mode>3".
11665 "*fabd_scalar<mode>3): Delete.
11666 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
11667 Use builtin.
11668 (vabdd_f64): Likewise.
11669 (vabd_f32): Likewise.
11670 (vabd_f64): Likewise.
11671 (vabdq_f32): Likewise.
11672 (vabdq_f64): Likewise.
11673
11674 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11675
11676 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
11677 VALLF.
11678 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
11679 "aarch64_rsqrts<mode>".
11680 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
11681 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
11682 builtin.
11683 (vrsqrtsd_f64): Likewise.
11684 (vrsqrts_f32): Likewise.
11685 (vrsqrts_f64): Likewise.
11686 (vrsqrtsq_f32): Likewise.
11687 (vrsqrtsq_f64): Likewise.
11688
11689 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11690
11691 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
11692 VALLF.
11693 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
11694 "aarch64_rsqrte<mode>".
11695 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
11696 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
11697 builtin.
11698 (vrsqrted_f64): Likewise.
11699 (vrsqrte_f32): Likewise.
11700 (vrsqrte_f64): Likewise.
11701 (vrsqrteq_f32): Likewise.
11702 (vrsqrteq_f64): Likewise.
11703
11704 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11705
11706 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
11707 (ucvtf): Likewise.
11708 (fcvtzs): Likewise.
11709 (fcvtzu): Likewise.
11710 * config/aarch64/aarch64-simd.md
11711 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
11712 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
11713 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
11714 Use builtin.
11715 (vcvt_n_f32_u32): Likewise.
11716 (vcvt_n_s32_f32): Likewise.
11717 (vcvt_n_u32_f32): Likewise.
11718 (vcvtq_n_f32_s32): Likewise.
11719 (vcvtq_n_f32_u32): Likewise.
11720 (vcvtq_n_f64_s64): Likewise.
11721 (vcvtq_n_f64_u64): Likewise.
11722 (vcvtq_n_s32_f32): Likewise.
11723 (vcvtq_n_s64_f64): Likewise.
11724 (vcvtq_n_u32_f32): Likewise.
11725 (vcvtq_n_u64_f64): Likewise.
11726 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
11727 (VSDQ_SDI): Likewise.
11728 (fcvt_target): Support V4DI, V4SI and V2SI.
11729 (FCVT_TARGET): Likewise.
11730
11731 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11732
11733 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
11734 (TYPES_BINOP_SUS): Likewise.
11735 (aarch64_simd_builtin_data): Update include file name.
11736 (aarch64_builtins): Likewise.
11737 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
11738 for conversion between scalar float-point and fixed-point.
11739 (ucvtf): Likewise.
11740 (fcvtzs): Likewise.
11741 (fcvtzu): Likewise.
11742 * config/aarch64/aarch64.md
11743 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
11744 pattern for conversion between scalar float to fixed-pointer.
11745 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
11746 (UNSPEC_FCVTZS): New UNSPEC enumeration.
11747 (UNSPEC_FCVTZU): Likewise.
11748 (UNSPEC_SCVTF): Likewise.
11749 (UNSPEC_UCVTF): Likewise.
11750 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
11751 Use builtin.
11752 (vcvtd_n_f64_u64): Likewise.
11753 (vcvtd_n_s64_f64): Likewise.
11754 (vcvtd_n_u64_f64): Likewise.
11755 (vcvtd_n_f32_s32): Likewise.
11756 (vcvts_n_f32_u32): Likewise.
11757 (vcvtd_n_s32_f32): Likewise.
11758 (vcvts_n_u32_f32): Likewise.
11759 * config/aarch64/iterators.md (fcvt_target): Support integer to float
11760 mapping.
11761 (FCVT_TARGET): Likewise.
11762 (FCVT_FIXED2F): New iterator.
11763 (FCVT_F2FIXED): Likewise.
11764 (fcvt_fixed_insn): New define_int_attr.
11765
11766 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11767
11768 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
11769 some statements was removed.
11770
11771 2016-06-08 Alan Hayward <alan.hayward@arm.com>
11772
11773 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
11774 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
11775 (vect_can_advance_ivs_p): likewise.
11776 (vect_update_ivs_after_vectorizer): likewise.
11777 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
11778 (vect_analyze_scalar_cycles_1): likewise.
11779 (vect_analyze_loop_operations): likewise.
11780 (report_vect_op): likewise.
11781 (vect_is_slp_reduction): likewise.
11782 (vect_is_simple_reduction): likewise.
11783 (get_initial_def_for_induction): likewise.
11784 (vect_transform_loop): likewise.
11785 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
11786 (vect_recog_sad_pattern): likewise.
11787 (vect_recog_widen_sum_pattern): likewise.
11788 (vect_recog_widening_pattern): likewise.
11789 (vect_recog_divmod_pattern): likewise.
11790 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
11791 (vect_analyze_slp_instance): likewise.
11792 (vect_transform_slp_perm_load): likewise.
11793 (vect_schedule_slp_instance): likewise.
11794
11795 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11796
11797 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
11798 (return_prediction): PRED_CONST_RETURN predict return as not taken.
11799 * predict.def (PRED_CONTINUE): Change hitrate 50->67
11800 (PRED_LOOP_BRANCH): Document predictor as broken.
11801 (PRED_LOOP_EXIT): Change hitrate 91->92.
11802 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
11803 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
11804 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
11805 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
11806 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
11807 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
11808 (PRED_CALL): Chane hitrate 71->67.
11809 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
11810 (PRED_GOTO): Document as unused right now.
11811 (PRED_CONST_RETURN): Change hitrate 67->69
11812 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
11813 (PRED_NULL_RETURN): Change hitrate 91->90.
11814 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
11815 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
11816 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
11817
11818 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
11819
11820 * config/rs6000/altivec.h: Add __builtin_vec_mul.
11821 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
11822 special case Altivec builtin.
11823 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
11824 VSX_BUILTIN_VEC_MUL (replaced with special case code).
11825 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11826 code for ALTIVEC_BUILTIN_VEC_MUL.
11827 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11828 for __builtin_vec_mul.
11829
11830 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
11831
11832 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
11833 -mno-htm.
11834
11835 2016-06-07 David Malcolm <dmalcolm@redhat.com>
11836
11837 * spellcheck.c (selftest::test_find_closest_string): New function.
11838 (spellcheck_c_tests): Call the above.
11839
11840 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11841
11842 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
11843
11844 2016-06-07 Jakub Jelinek <jakub@redhat.com>
11845
11846 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
11847 Yv=Yv,C alternatives.
11848
11849 2016-06-07 Richard Biener <rguenther@suse.de>
11850
11851 PR c/61564
11852 * common.opt (ffast-math): Make Optimization.
11853
11854 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
11855 Prachi Godbole <prachi.godbole@imgtec.com>
11856
11857 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
11858 `fabs' and `fneg' type attributes.
11859 (p5600_fpu_fabs): Add `fmove' to the comment.
11860
11861 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11862
11863 * gimple.c: Include builtins.h
11864 (gimple_inexpensive_call_p): New function.
11865 * gimple.h (gimple_inexpensive_call_p): Declare.
11866 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
11867 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
11868 fix formatting.
11869
11870 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
11871
11872 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
11873 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
11874 warning_at_rich_loc, warning_n, pedwarn, permerror,
11875 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
11876 sorry, fatal_error, internal_error, internal_error_no_backtrace):
11877 Use the above.
11878
11879 2016-06-07 Richard Biener <rguenther@suse.de>
11880
11881 PR tree-optimization/71428
11882 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
11883 BIT_FIELD_REF op vs. load.
11884
11885 2016-06-07 Richard Biener <rguenther@suse.de>
11886
11887 PR middle-end/71423
11888 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
11889 for signed ops.
11890
11891 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
11892
11893 * config/pa/pa.md (call): Generate indirect long calls to non-local
11894 functions on TARGET_64BIT.
11895 (call_value): Likewise.
11896
11897 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
11898
11899 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
11900 pattern and subsequent splitters.
11901 (call_val_reg_64bit_post_reload): Likewise.
11902
11903 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11904
11905 PR middle-end/71408
11906 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
11907 propagate_op_to_single_use.
11908
11909 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11910
11911 PR middle-end/71281
11912 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
11913
11914 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
11915
11916 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
11917 (enum x86_dirflag_state): New enum.
11918 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
11919 (machine_function): Remove needs_cld.
11920 (ix86_current_function_needs_cld): Remove.
11921 * config/i386/i386.c (ix86_set_func_type): Set
11922 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
11923 (ix86_expand_prologue): Do not emit CLD here.
11924 (ix86_dirflag_mode_needed): New function.
11925 (ix86_dirflag_mode_entry): Ditto.
11926 (ix86_mode_needed): Handle X86_DIRFLAG entity.
11927 (ix86_mode_after): Ditto.
11928 (ix86_mode_entry): Ditto.
11929 (ix86_mode_exit): Ditto.
11930 (ix86_emit_mode_set): Ditto.
11931 * config/i386/i386.md (strmov_singleop): Set
11932 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
11933 Do not set ix86_current_function_needs_cld.
11934 (rep_mov): Ditto.
11935 (strset_singleop): Ditto.
11936 (rep_stos): Ditto.
11937 (cmpstrnqi_nz_1): Ditto.
11938 (cmpstrnqi_1): Ditto.
11939 (strlenqi_1): Ditto.
11940
11941 2016-06-06 Jakub Jelinek <jakub@redhat.com>
11942
11943 PR tree-optimization/71259
11944 * tree-vect-slp.c (vect_get_constant_vectors): For
11945 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
11946 one for constant op, and use COND_EXPR for non-constant.
11947
11948 2016-06-06 David Malcolm <dmalcolm@redhat.com>
11949
11950 * Makefile.in (OBJS): Add function-tests.o,
11951 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
11952 selftest-run-tests.o.
11953 (OBJS-libcommon): Add selftest.o.
11954 (OBJS-libcommon-target): Add selftest.o.
11955 (all.internal): Add "selftest".
11956 (all.cross): Likewise.
11957 (selftest): New phony target.
11958 (s-selftest): New target.
11959 (selftest-gdb): New phony target.
11960 (COLLECT2_OBJS): Add selftest.o.
11961 * bitmap.c: Include "selftest.h".
11962 (selftest::test_gc_alloc): New function.
11963 (selftest::test_set_range): New function.
11964 (selftest::test_clear_bit_in_middle): New function.
11965 (selftest::test_copying): New function.
11966 (selftest::test_bitmap_single_bit_set_p): New function.
11967 (selftest::bitmap_c_tests): New function.
11968 * common.opt (fself-test): New.
11969 * diagnostic-show-locus.c: Include "selftest.h".
11970 (make_range): New function.
11971 (test_range_contains_point_for_single_point): New function.
11972 (test_range_contains_point_for_single_line): New function.
11973 (test_range_contains_point_for_multiple_lines): New function.
11974 (assert_eq): New function.
11975 (test_get_line_width_without_trailing_whitespace): New function.
11976 (selftest::diagnostic_show_locus_c_tests): New function.
11977 * et-forest.c: Include "selftest.h".
11978 (selftest::test_single_node): New function.
11979 (selftest::test_simple_tree): New function.
11980 (selftest::test_disconnected_nodes): New function.
11981 (selftest::et_forest_c_tests): New function.
11982 * fold-const.c: Include "selftest.h".
11983 (selftest::assert_binop_folds_to_const): New function.
11984 (selftest::assert_binop_folds_to_nonlvalue): New function.
11985 (selftest::test_arithmetic_folding): New function.
11986 (selftest::fold_const_c_tests): New function.
11987 * function-tests.c: New file.
11988 * gimple.c: Include "selftest.h".
11989 Include "gimple-pretty-print.h".
11990 (selftest::verify_gimple_pp): New function.
11991 (selftest::test_assign_single): New function.
11992 (selftest::test_assign_binop): New function.
11993 (selftest::test_nop_stmt): New function.
11994 (selftest::test_return_stmt): New function.
11995 (selftest::test_return_without_value): New function.
11996 (selftest::gimple_c_tests): New function.
11997 * hash-map-tests.c: New file.
11998 * hash-set-tests.c: New file.
11999 * input.c: Include "selftest.h".
12000 (selftest::assert_loceq): New function.
12001 (selftest::test_accessing_ordinary_linemaps): New function.
12002 (selftest::test_unknown_location): New function.
12003 (selftest::test_builtins): New function.
12004 (selftest::test_reading_source_line): New function.
12005 (selftest::input_c_tests): New function.
12006 * rtl-tests.c: New file.
12007 * selftest-run-tests.c: New file.
12008 * selftest.c: New file.
12009 * selftest.h: New file.
12010 * spellcheck.c: Include "selftest.h".
12011 (selftest::levenshtein_distance_unit_test_oneway): New function,
12012 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
12013 (selftest::levenshtein_distance_unit_test): Likewise.
12014 (selftest::spellcheck_c_tests): Likewise.
12015 * toplev.c: Include selftest.h.
12016 (toplev::run_self_tests): New.
12017 (toplev::main): Handle -fself-test.
12018 * toplev.h (toplev::run_self_tests): New.
12019 * tree.c: Include "selftest.h".
12020 (selftest::test_integer_constants): New function.
12021 (selftest::test_identifiers): New function.
12022 (selftest::test_labels): New function.
12023 (selftest::tree_c_tests): New function.
12024 * tree-cfg.c: Include "selftest.h".
12025 (selftest::push_fndecl): New function.
12026 (selftest::test_linear_chain): New function.
12027 (selftest::test_diamond): New function.
12028 (selftest::test_fully_connected): New function.
12029 (selftest::tree_cfg_c_tests): New function.
12030 * vec.c: Include "selftest.h".
12031 (selftest::safe_push_range): New function.
12032 (selftest::test_quick_push): New function.
12033 (selftest::test_safe_push): New function.
12034 (selftest::test_truncate): New function.
12035 (selftest::test_safe_grow_cleared): New function.
12036 (selftest::test_pop): New function.
12037 (selftest::test_safe_insert): New function.
12038 (selftest::test_ordered_remove): New function.
12039 (selftest::test_unordered_remove): New function.
12040 (selftest::test_block_remove): New function.
12041 (selftest::reverse_cmp): New function.
12042 (selftest::test_qsort): New function.
12043 (selftest::vec_c_tests): New function.c.
12044 * wide-int.cc: Include selftest.h and wide-int-print.h.
12045 (selftest::from_int <wide_int>): New function.
12046 (selftest::from_int <offset_int>): New function.
12047 (selftest::from_int <widest_int>): New function.
12048 (selftest::assert_deceq): New function.
12049 (selftest::assert_hexeq): New function.
12050 (selftest::test_printing <VALUE_TYPE>): New function template.
12051 (selftest::test_ops <VALUE_TYPE>): New function template.
12052 (selftest::test_comparisons <VALUE_TYPE>): New function template.
12053 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
12054 template.
12055 (selftest::wide_int_cc_tests): New function.
12056
12057 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12058
12059 PR middle-end/37780
12060 * ifcvt.c (noce_try_ifelse_collapse): New function.
12061 Declare prototype.
12062 (noce_process_if_block): Call noce_try_ifelse_collapse.
12063 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
12064 (simplify_ternary_operation): Use the above to simplify
12065 conditional CLZ/CTZ expressions.
12066
12067 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12068
12069 PR middle-end/37780
12070 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
12071 define_insn_and_split.
12072
12073 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12074
12075 PR middle-end/37780
12076 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
12077
12078 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
12079
12080 PR c/24414
12081 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
12082 Implicitly clobber memory for basic asm with non-empty assembler
12083 string. Use targetm.md_asm_adjust also here.
12084 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
12085 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
12086 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
12087 non-empty assembler string.
12088 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
12089 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
12090 (decode_asm_operands): Handle basic asm in PARALLEL block.
12091 (extract_insn): Handle basic asm in PARALLEL block.
12092 * doc/extend.texi: Mention new behavior of basic asm.
12093 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
12094 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
12095 branch_needs_nop_p): Use asm_noperands.
12096
12097 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
12098
12099 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
12100 Include the M7 SPARC DFA scheduler.
12101 New attribute v3pipe.
12102 Annotate insns with v3pipe where appropriate.
12103 Define cpu_feature vis4.
12104 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
12105 Add (V8QI "8") to vbits.
12106 Add insns {add,sub}v8qi3
12107 Add insns ss{add,sub}v8qi3
12108 Add insns us{add,sub}{v8qi,v4hi}3
12109 Add insns {min,max}{v8qi,v4hi,v2si}3
12110 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
12111 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
12112 * config/sparc/niagara4.md: Add a comment explaining the
12113 discrepancy between the documented latenty numbers and the
12114 implemented ones.
12115 * config/sparc/niagara7.md: New file.
12116 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
12117 supports SPARC5 and VIS 4.0 instructions.
12118 * configure: Regenerate.
12119 * config.in: Likewise.
12120 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
12121 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
12122 TARGET_CPU_niagara7.
12123 (ASM_CPU64_DEFAULT_SPEC): Likewise.
12124 (CPP_CPU_SPEC): Handle niagara7.
12125 (ASM_CPU_SPEC): Likewise.
12126 * config/sparc/sparc-opts.h (processor_type): Add
12127 PROCESSOR_NIAGARA7.
12128 (mvis4): New option.
12129 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
12130 (AS_NIAGARA7_FLAG): Define.
12131 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
12132 (CPP_CPU64_DEFAULT_SPEC): Likewise.
12133 (CPP_CPU_SPEC): Handle niagara7.
12134 (ASM_CPU_SPEC): Likewise.
12135 * config/sparc/sparc.c (niagara7_costs): Define.
12136 (sparc_option_override): Handle niagara7 and adjust cache-related
12137 parameters with better values for niagara cpus. Also support VIS4.
12138 (sparc32_initialize_trampoline): Likewise.
12139 (sparc_use_sched_lookahead): Likewise.
12140 (sparc_issue_rate): Likewise.
12141 (sparc_register_move_cost): Likewise.
12142 (dump_target_flag_bits): Support VIS4.
12143 (sparc_vis_init_builtins): Likewise.
12144 (sparc_builtins): Likewise.
12145 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
12146 VIS4 4.0.
12147 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
12148 UltraSparc M7.
12149 * config/sparc/sparc.opt (sparc_processor_type): New value
12150 niagara7.
12151 * config/sparc/visintrin.h (__attribute__): Prototypes for the
12152 VIS4 builtins.
12153 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
12154 -mvis4.
12155 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
12156 VIS4 builtins.
12157
12158 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
12159
12160 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
12161
12162 2016-06-06 Richard Biener <rguenther@suse.de>
12163
12164 PR tree-optimization/71398
12165 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
12166 remove edges.
12167
12168 2016-06-05 James Bowman <james.bowman@ftdichip.com>
12169
12170 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
12171 ft32_expand_prolog, ft32_expand_epilogue):
12172 Handle pretend_args.
12173 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
12174 * config/ft32/ft32.md: Add pretend_returner.
12175
12176 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
12177
12178 PR target/71389
12179 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12180 Copy op1 RTX to avoid invalid sharing.
12181 (ix86_expand_vector_move_misalign): Ditto.
12182
12183 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
12184
12185 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
12186 ATTRIBUTE_UNUSED.
12187
12188 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12189
12190 * predict.c (predicted_by_loop_heuristics_p): New function.
12191 (predict_iv_comparison): Use it.
12192 (predict_loops): Walk from innermost loops; do not predict edges
12193 leaving multiple loops multiple times; implement
12194 PRED_LOOP_ITERATIONS_MAX heuristics.
12195 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
12196
12197 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12198
12199 * cfg.c (check_bb_profile): Do not report mismatched profiles when
12200 only edges out of BB are EH edges.
12201
12202 2016-06-04 Martin Sebor <msebor@redhat.com>
12203 Marcin Baczyński <marbacz@gmail.com>
12204
12205 PR c/48116
12206 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
12207 a void expression in a void function.
12208
12209 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12210
12211 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
12212 aux; dump reasons of decisions.
12213 (should_duplicate_loop_header_p): Likewise.
12214 (do_while_loop_p): Likewise.
12215 (ch_base::copy_headers): Dump asi num insns duplicated.
12216
12217 2016-06-04 Jakub Jelinek <jakub@redhat.com>
12218
12219 PR tree-optimization/71405
12220 * tree-ssa.c (execute_update_addresses_taken): For clobber with
12221 incompatible type, build a new clobber with the right type instead
12222 of building a VIEW_CONVERT_EXPR around it.
12223
12224 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12225
12226 PR tree-optimization/52171
12227 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
12228 by_pieces_ninsns instead of move_by_pieces_ninsns.
12229
12230 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12231
12232 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
12233 for reg+reg addressing mode.
12234
12235 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12236
12237 * rs6000-c.c (c/c-tree.h): Add #include.
12238 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
12239 in C++ when found in the base position of vec_ld or vec_st.
12240
12241 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12242
12243 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
12244 use of profile unless profile status is PROFILE_READ.
12245 * profile.c (compute_branch_probabilities): Set profile status
12246 only after reporting predictor hitrates.
12247
12248 2016-06-03 Joseph Myers <joseph@codesourcery.com>
12249
12250 PR target/71276
12251 PR target/71277
12252 * common.opt (ffp-int-builtin-inexact): New option.
12253 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
12254 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
12255 (ceil@var{m}2): Document dependence on this option.
12256 * ipa-inline-transform.c (inline_call): Handle
12257 flag_fp_int_builtin_inexact.
12258 * ipa-inline.c (can_inline_edge_p): Likewise.
12259 * config/i386/i386.md (rintxf2): Do not test
12260 flag_unsafe_math_optimizations.
12261 (rint<mode>2_frndint): New define_insn.
12262 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
12263 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
12264 for 387 instead of extending and truncating.
12265 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
12266 !flag_trapping_math instead of flag_unsafe_math_optimizations.
12267 Change to frndint<mode>2_<rounding>.
12268 (frndintxf2_<rounding>_i387): Likewise. Change to
12269 frndint<mode>2_<rounding>_i387.
12270 (<rounding_insn>xf2): Likewise.
12271 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
12272 !flag_trapping_math instead of flag_unsafe_math_optimizations for
12273 x87. Test TARGET_ROUND || !flag_trapping_math ||
12274 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
12275 SSE. Use ROUND_NO_EXC in constant operand of
12276 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
12277 for 387 instead of extending and truncating.
12278
12279 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
12280 Julia Koval <julia.koval@intel.com>
12281
12282 PR target/66960
12283 PR target/67630
12284 PR target/67634
12285 PR target/67841
12286 PR target/68037
12287 PR target/68618
12288 PR target/68661
12289 PR target/69575
12290 PR target/69596
12291 PR target/69734
12292 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
12293 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
12294 all registers, except for function return registers if there are
12295 no caller-saved registers.
12296 (ix86_set_func_type): New function.
12297 (ix86_set_current_function): Call ix86_set_func_type to set
12298 no_caller_saved_registers and func_type. Call reinit_regs if
12299 caller-saved registers are changed. Don't allow MPX, SSE, MMX
12300 nor x87 instructions in interrupt handler nor function with
12301 no_caller_saved_registers attribute.
12302 (ix86_function_ok_for_sibcall): Return false if there are no
12303 caller-saved registers.
12304 (type_natural_mode): Don't warn ABI change for MMX in interrupt
12305 handler.
12306 (ix86_function_arg_advance): Skip for callee in interrupt handler.
12307 (ix86_function_arg): Return special arguments in interrupt handler.
12308 (ix86_promote_function_mode): Promote pointer to word_mode only
12309 for normal functions.
12310 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
12311 interrupt handler.
12312 (ix86_epilogue_uses): New function.
12313 (ix86_hard_regno_scratch_ok): Likewise.
12314 (ix86_save_reg): Preserve all registers in interrupt handler
12315 after reload. Preserve all registers, except for function return
12316 registers, if there are no caller-saved registers after reload.
12317 (find_drap_reg): Always use callee-saved register if there are
12318 no caller-saved registers.
12319 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
12320 for interrupt handler.
12321 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
12322 Emit cld instruction if stringops are used in interrupt handler
12323 or interrupt handler isn't a leaf function.
12324 (ix86_expand_epilogue): Generate interrupt return for interrupt
12325 handler and pop the 'ERROR_CODE' off the stack before interrupt
12326 return in exception handler.
12327 (ix86_expand_call): Disallow calling interrupt handler directly.
12328 If there are no caller-saved registers, mark all registers that
12329 are clobbered by the call which returns as clobbered.
12330 (ix86_handle_no_caller_saved_registers_attribute): New function.
12331 (ix86_handle_interrupt_attribute): Likewise.
12332 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
12333 attributes.
12334 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
12335 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
12336 accumulation in interrupt function if stack may be realigned to
12337 avoid DRAP.
12338 (EPILOGUE_USES): New.
12339 (function_type): New enum.
12340 (machine_function): Add func_type and no_caller_saved_registers.
12341 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
12342 (interrupt_return): New pattern.
12343 * doc/extend.texi: Document x86 interrupt and
12344 no_caller_saved_registers attributes.
12345
12346 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
12347
12348 PR tree-optimization/52171
12349 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
12350 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
12351 Look for constant strings. Move some code to emit_block_cmp_hints
12352 and use it.
12353 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
12354 * defaults.h (COMPARE_MAX_PIECES): New macro.
12355 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
12356 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
12357 (clear_by_pieces_1): Don't declare. Move definition before use.
12358 (can_do_by_pieces): New static function.
12359 (can_move_by_pieces): Use it. Return bool.
12360 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
12361 OP. All callers changed. Handle COMPARE_BY_PIECES.
12362 (class pieces_addr); New.
12363 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
12364 pieces_addr::adjust, pieces_addr::increment_address,
12365 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
12366 functions for it.
12367 (class op_by_pieces_d): New.
12368 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
12369 functions for it.
12370 (class move_by_pieces_d, class compare_by_pieces_d,
12371 class store_by_pieces_d): New subclasses of op_by_pieces_d.
12372 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
12373 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
12374 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
12375 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
12376 compare_by_pieces_d::finish_mode): New member functions.
12377 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
12378 functions.
12379 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
12380 (emit_block_cmp_hints): New function.
12381 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
12382 use the newly defined classes.
12383 * expr.h (by_pieces_constfn): New typedef.
12384 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
12385 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
12386 (move_by_pieces_ninsns): Don't declare.
12387 (can_move_by_pieces): Change return value to bool.
12388 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
12389 (compare_by_pieces_branch_ratio): New hook.
12390 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
12391 (by_pieces_ninsns): Declare.
12392 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
12393 COMPARE_BY_PIECES.
12394 (default_compare_by_pieces_branch_ratio): New function.
12395 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
12396 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
12397 * doc/tm.texi: Regenerate.
12398 * tree-ssa-strlen.c: Include "builtins.h".
12399 (handle_builtin_memcmp): New static function.
12400 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
12401 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
12402
12403 2016-06-03 Alan Hayward <alan.hayward@arm.com>
12404
12405 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
12406 relevant stmts which are simple and invariant.
12407 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
12408 instead of simple and invariant
12409
12410 2016-06-03 Alan Hayward <alan.hayward@arm.com>
12411
12412 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
12413 (vectorizable_reduction): Check for new relevant state.
12414 (vectorizable_live_operation): vectorize live stmts using
12415 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
12416 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
12417 (vect_stmt_relevant_p): Check for stmts which are only used live.
12418 (process_use): Use of a stmt does not inherit it's live value.
12419 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
12420 (vect_analyze_stmt): Check for new relevant state.
12421 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
12422 outside the loop, but not inside it.
12423
12424 2016-06-03 Alan Hayward <alan.hayward@arm.com>
12425
12426 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
12427 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
12428 (vect_get_vec_def_for_operand): Split out code.
12429
12430 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
12431
12432 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
12433
12434 2016-06-03 Alan Hayward <alan.hayward@arm.com>
12435
12436 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
12437
12438 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12439
12440 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
12441
12442 2016-06-03 Jakub Jelinek <jakub@redhat.com>
12443
12444 PR middle-end/71387
12445 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
12446 to noreturn e->callee->decl that has void return type and void
12447 arguments, adjust gimple_call_fntype and remove lhs even if it had
12448 previously addressable type.
12449
12450 2016-06-02 Jeff Law <law@redhat.com>
12451
12452 PR tree-optimization/71328
12453 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
12454 error when checking for a jump back onto the copied path.
12455
12456 2016-06-02 David Malcolm <dmalcolm@redhat.com>
12457
12458 * config/microblaze/microblaze.c (get_branch_target): Add return
12459 NULL_RTX for the non-CALL_P case.
12460 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
12461 (insert_wic): Remove unused local "j".
12462
12463 2016-06-02 Martin Liska <mliska@suse.cz>
12464
12465 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
12466
12467 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
12468 Julia Koval <julia.koval@intel.com>
12469
12470 * function.c (assign_parm_setup_stack): Force source into a
12471 register if needed.
12472 * target.def (function_incoming_arg): Update documentation to
12473 allow arbitrary address computation based on hard register.
12474 * doc/tm.texi: Regenerated.
12475
12476 2016-06-02 Martin Liska <mliska@suse.cz>
12477
12478 * predict.c (combine_predictions_for_bb): Fix first match in
12479 cases where a first predictor contains more than one occurence
12480 in list of predictors. Take the best value in such case.
12481
12482 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12483
12484 PR rtl-optimization/71295
12485 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
12486 offset would go over the size of the inner mode reject it.
12487
12488 2016-06-02 Jakub Jelinek <jakub@redhat.com>
12489
12490 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
12491 x=x,x and v=v,m instead of x=x,m.
12492
12493 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
12494 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
12495 alternative to v=rm,C.
12496
12497 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
12498 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
12499 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
12500 instead of vex for the last two above mentioned alternatives.
12501
12502 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12503
12504 PR target/70830
12505 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
12506
12507 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
12508
12509 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
12510
12511 2016-06-01 David Malcolm <dmalcolm@redhat.com>
12512
12513 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
12514 from int to unsigned.
12515
12516 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
12517
12518 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
12519 alternatives, eliminating preferred register class. Add support
12520 for the MTVSRDD instruction in ISA 3.0.
12521 (vsx_splat_v4si_internal): Use splat_input_operand instead of
12522 reg_or_indexed_operand.
12523 (vsx_splat_v4sf_internal): Likewise.
12524
12525 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
12526
12527 PR target/71186
12528 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
12529 for loading up all 0's or all 1's.
12530
12531 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
12532
12533 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
12534
12535 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
12536
12537 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
12538 extension.
12539 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
12540 * gcc.c (set_source_date_epoch_envvar): New function, sets
12541 the SOURCE_DATE_EPOCH environment variable to the current time.
12542
12543 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
12544
12545 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
12546 the factor for live Phi nodes.
12547
12548 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
12549
12550 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
12551 * tree-parloops.c (parallelize_loops): likewise.
12552 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
12553 tree_unswitch_outer_loop): likewise.
12554
12555 2016-06-01 Jakub Jelinek <jakub@redhat.com>
12556
12557 PR middle-end/71371
12558 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
12559 around creation of the temporary.
12560
12561 2016-06-01 Richard Biener <rguenther@suse.de>
12562
12563 PR tree-optimization/71366
12564 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
12565 (unloop_loops): Move removing edges here ...
12566 (try_unroll_loop_completely): ... from here.
12567 (try_peel_loop): ... and here.
12568 (tree_unroll_loops_completely_1): Track parent loops via
12569 bitmap of header BBs.
12570 (tree_unroll_loops_completely): Adjust for that.
12571
12572 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
12573
12574 * config/rs6000/altivec.h (vec_slv): New macro.
12575 (vec_srv): New macro.
12576 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
12577 (UNSPEC_VSRV): New value.
12578 (vslv): New insn.
12579 (vsrv): New insn.
12580 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
12581 (vsrv): New builtin definition.
12582 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
12583 define argument types for new builtin.
12584 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
12585 new builtin.
12586 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
12587 functions.
12588
12589 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
12590 Jocelyn Mayer <l_indien@magic.fr>
12591
12592 PR target/67310
12593 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
12594 detect processor family for signature_CENTAUR_ebx.
12595 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
12596 signature_CENTAUR_ebx.
12597 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
12598 <default>: Pass x86-64 for has_longmode.
12599
12600 2016-06-01 Nathan Sidwell <nathan@acm.org>
12601
12602 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
12603 undefined weak.
12604
12605 2016-06-01 Richard Biener <rguenther@suse.de>
12606
12607 PR tree-optimization/71261
12608 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
12609 of stmts successfully put in the bool pattern. Remove
12610 single-use restriction.
12611 (adjust_bool_pattern_cast): Add cast at the use site via the
12612 pattern def sequence.
12613 (adjust_bool_pattern): Remove recursion, maintain a hash-map
12614 of patterned defs. Use the pattern def seqence instead of
12615 multiple independent patterns.
12616 (sort_after_uid): New qsort compare function.
12617 (adjust_bool_stmts): New function to process stmts in the bool
12618 pattern in IL order.
12619 (vect_recog_bool_pattern): Adjust.
12620 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
12621 (ifcvt_walk_pattern_tree): Likewise.
12622 (stmt_is_root_of_bool_pattern): Likewise.
12623 (ifcvt_repair_bool_pattern): Likewise.
12624 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
12625
12626 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
12627
12628 * loop-unroll.c (decide_unroll_constant_iterations,
12629 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
12630 likely upper bounds.
12631 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
12632
12633 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
12634
12635 * tree-core.h (enum omp_clause_code): Remove
12636 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
12637
12638 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12639
12640 * config/arm/sync.md (arm_store_exclusive<mode>):
12641 Use 'H' output modifier on operands[2] rather than creating a new
12642 entry in out-of-bounds memory of the operands array.
12643 (arm_store_release_exclusivedi): Likewise.
12644
12645 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12646
12647 * config/arm/arm.c (arm_fusion_enabled_p): New function.
12648 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
12649 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
12650 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
12651
12652 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
12653
12654 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
12655 into account live statements for mask producers.
12656
12657 2016-06-01 Richard Biener <rguenther@suse.de>
12658
12659 PR tree-optimization/71311
12660 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
12661 restrict to non-INTEGER_CST @0.
12662
12663 2016-06-01 Richard Biener <rguenther@suse.de>
12664
12665 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
12666 (relational patterns): Use :c to avoid pattern duplications.
12667
12668 2016-06-01 Richard Biener <rguenther@suse.de>
12669
12670 * genmatch.c (comparison_code_p): New predicate.
12671 (swap_tree_comparison): New function.
12672 (commutate): Add for_vec parameter to append new for entries.
12673 Support commutating relational operators by swapping it alongside
12674 operands.
12675 (lower_commutative): Adjust.
12676 (dt_simplify::gen): Do not pass artificial operators to gen
12677 functions.
12678 (decision_tree::gen): Do not add artificial operators as parameters.
12679 (parser::parse_expr): Verify operator commutativity when :c is
12680 applied. Allow :C to override this.
12681 * match.pd: Adjust patterns to use :C instead of :c where required.
12682
12683 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
12684
12685 PR tree-optimization/71077
12686 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
12687 the combining step, use boolean_false_node and boolean_true_node
12688 as the designated false/true return values.
12689
12690 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
12691
12692 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
12693 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
12694 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
12695 PRED_LOOP_EXIT.
12696
12697 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
12698
12699 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
12700 of flags impliying the register renaming.
12701 * toplev.c (process_options): Do not imply flag_rename_registers with
12702 loop peeling.
12703
12704 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12705
12706 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
12707 default implementation.
12708
12709 2016-05-31 Nathan Sidwell <nathan@acm.org>
12710
12711 * dwarf2out.c (cur_line_info_table): Add GTY marker.
12712
12713 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12714
12715 * config/sh/constraints.md (b): Remove constraint.
12716 * config/sh/predicates.md (arith_reg_operand): Remove
12717 TARGET_REGISTER_P.
12718 * config/sh/sh-modes.def (PDI): Remove.
12719 * config/sh/sh.c (sh_target_reg_class,
12720 sh_optimize_target_register_callee_saved): Remove functions.
12721 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
12722 (sh_expand_epilogue): Update comment.
12723 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
12724 sh_secondary_reload): Remove TARGET_REGS related code.
12725 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
12726 TARGET_REGISTER_P): Remove macros.
12727 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
12728 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
12729 TR1_REG, TR2_REG): Remove constants.
12730 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
12731
12732 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12733
12734 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
12735 define_expand patterns.
12736 (adddi3_compact): Rename to adddi3.
12737 (subdi3_compact): Rename to subdi3.
12738 (*negdi2): Rename to negdi2.
12739 (*abs<mode>2): Rename to abs<mode>2.
12740
12741 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12742
12743 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
12744 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
12745 (atomic_sub_fetchsi): ... this new pattern.
12746 (mvtc): Add CC_REG clobber.
12747
12748 2016-05-31 Marek Polacek <polacek@redhat.com>
12749
12750 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
12751
12752 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12753
12754 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
12755 aarch64_fusion_enabled_p to check for fusion capabilities.
12756
12757 2016-05-31 Richard Biener <rguenther@suse.de>
12758
12759 PR tree-optimization/71352
12760 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
12761 minus one and a negate.
12762
12763 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12764
12765 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
12766 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
12767 Delete prototype.
12768 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
12769 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
12770 Remove use of aarch64_simd_attr_length_move, set length attribute
12771 directly.
12772 (*aarch64_be_movoi): Likewise.
12773 (*aarch64_be_movci): Likewise.
12774 (*aarch64_be_movxi): Likewise.
12775
12776 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
12777
12778 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
12779 It no longer does that.
12780 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
12781
12782 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
12783
12784 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
12785 attribute __unused__.
12786
12787 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
12788
12789 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
12790 * config/arm/arm.c (arm_arch_thumb1): Define.
12791 (arm_option_override): Initialize arm_arch_thumb1.
12792 * config/arm/arm.h (arm_arch_thumb1): Declare.
12793 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
12794 support Thumb-1 ISA.
12795
12796 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
12797
12798 PR target/71346
12799 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
12800 `Yv' for scalar operand.
12801
12802 2016-05-31 Tom de Vries <tom@codesourcery.com>
12803
12804 PR tree-optimization/69068
12805 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
12806 phis with more than two args.
12807
12808 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
12809
12810 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
12811 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
12812 target.
12813
12814 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
12815
12816 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
12817 tune_64.
12818 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
12819 support on SPARC.
12820 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
12821 cpu_32, cpu_64, tune_32 and tune_64.
12822 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
12823
12824 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
12825
12826 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
12827
12828 2016-05-30 Andi Kleen <ak@linux.intel.com>
12829
12830 * auto-profile.c (read_profile): Replace asserts with errors
12831 when file does not exist.
12832 * gcov-io.c (gcov_read_words): Dito.
12833
12834 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12835
12836 * tree-cfg.c (print_loop): Print likely upper bounds.
12837
12838 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12839
12840 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
12841 * opts.c (default_options): Enable peel loops at -O3.
12842 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
12843 (try_peel_loop): Do not re-peel already peeled loops;
12844 use likely upper bounds; fix profile updating.
12845 (pass_complete_unroll::execute): Initialize peeled_loops.
12846
12847 2016-05-30 Martin Liska <mliska@suse.cz>
12848
12849 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
12850 computed costs by frequency of BB they belong to.
12851 (get_scaled_computation_cost_at): New function.
12852
12853 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
12854 Marc Glisse <marc.glisse@inria.fr>
12855
12856 PR tree-optimization/71289
12857 * match.pd (-1 / B < A, A > -1 / B): New transformations.
12858
12859 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12860
12861 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
12862
12863 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12864
12865 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
12866 for peeled copies; avoid underflow when updating estimates; correctly
12867 scale loop profile.
12868
12869 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
12870
12871 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
12872 r236875. Corrected oe3 to oe2 as obvious.
12873
12874 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
12875
12876 PR middle-end/71269
12877 PR middle-end/71252
12878 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
12879 that inserted stmt will not dominate stmts that defines its operand.
12880 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
12881 (rewrite_expr_tree_parallel): Likewise.
12882
12883 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
12884
12885 PR middle-end/71252
12886 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
12887 all fields including stmt_to_insert are swapped.
12888
12889 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12890
12891 * predict.h (force_edge_cold): Declare.
12892 * predict.c (force_edge_cold): New function.
12893 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
12894 updating.
12895 (canonicalize_loop_induction_variables): Fix formating.
12896
12897 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
12898
12899 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
12900 (visium_expand_copysign): Use gen_int_mode directly.
12901 (visium_compute_frame_size): Minor tweaks.
12902
12903 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12904
12905 * tree-vect-loop.c (vect_analyze_loop_2): Use
12906 likely_max_stmt_executions_int.
12907
12908 2016-05-30 Tom de Vries <tom@codesourcery.com>
12909
12910 PR tree-optimization/69067
12911 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
12912
12913 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
12914
12915 PR target/71245
12916 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
12917 New peepholes to remove unneeded fild/fistp pairs.
12918 (define_peephole2 atomic_loaddi_fpu): Ditto.
12919
12920 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12921
12922 * predict.c (maybe_hot_frequency_p): Avoid division.
12923
12924 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
12925
12926 * doc/install.texi: Use https for shop.fsf.org.
12927
12928 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12929
12930 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
12931 likely_max_stmt_executions_int.
12932
12933 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12934
12935 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
12936 likely_max_stmt_executions_int.
12937
12938 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12939
12940 * profile.c (compute_branch_probabilities): Do not report hitrates
12941 here.
12942 (branch_prob): Report hitrates here.
12943 * predict.c (gimple_predict_edge): Do not assert profile status;
12944 fix formatting issues.
12945
12946 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12947
12948 * predict.c (edge_predicted_by_p): New function.
12949 (predict_paths_for_bb): Do not put multiple predictions of the same type
12950 on one edge.
12951
12952 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12953
12954 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
12955 commit.
12956
12957 2016-05-28 Alan Modra <amodra@gmail.com>
12958
12959 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
12960
12961 2016-05-28 Alan Modra <amodra@gmail.com>
12962
12963 PR rtl-optimization/71275
12964 * ira.c (ira): Free dominance info.
12965
12966 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
12967
12968 * doc/sourcebuild.texi: New address for upstream Go repository.
12969
12970 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
12971
12972 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
12973 (TARGET_ARM_V7M): Likewise.
12974
12975 2016-05-26 Jeff Law <law@redhat.com>
12976
12977 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
12978 (thread_across_edge): Remove calls to find_jump_threads_backwards.
12979 * passes.def: Add jump threading passes before DOM/VRP.
12980 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
12981 argument to a basic block from an edge. Remove tests which are
12982 handled elsewhere.
12983 (pass_data_thread_jumps, class pass_thread_jumps): New.
12984 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
12985 (make_pass_thread_jumps): Likewise.
12986 * tree-pass.h (make_pass_thread_jumps): Declare.
12987
12988 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
12989
12990 * config/visium/visium-protos.h (split_double_move): Rename into...
12991 (visium_split_double_move): ...this.
12992 (visium_split_double_add): Declare.
12993 * config/visium/visium.c (split_double_move): Rename into...
12994 (visium_split_double_move): ...this.
12995 (visium_split_double_add): New function.
12996 (visium_expand_copysign): Renumber operands for consistency.
12997 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
12998 (DFmode move splitter): Likewise.
12999 (*addi3_insn): Split by means of visium_split_double_add.
13000 (*adddi3_insn_flags): Delete.
13001 (*plus_plus_sltu<subst_arith>): New insn.
13002 (*subdi3_insn): Split by means of visium_split_double_add.
13003 (subdi3_insn_flags): Delete.
13004 (*minus_minus_sltu<subst_arith>): New insn.
13005 (*negdi2_insn): Split by means of visium_split_double_add.
13006 (*negdi2_insn_flags): Delete.
13007
13008 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
13009
13010 * configure.ac: Treat a --with-headers option without argument
13011 the same as the default (i.e. consult sys-include directory).
13012 * configure: Regenerate.
13013
13014 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13015
13016 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
13017 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
13018 prototype.
13019 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
13020 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
13021
13022 2016-05-27 Jiong Wang <jiong.wang@arm.com>
13023
13024 PR target/63596
13025 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
13026 tree-stdarg analysis results.
13027 (aarch64_setup_incoming_varargs): Likewise.
13028
13029 2016-05-27 Jiong Wang <jiong.wang@arm.com>
13030
13031 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
13032 va_list_gpr_counter_field and va_list_fpr_counter_field.
13033
13034 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
13035
13036 PR67609
13037 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
13038 * config/aarch64/aarch64.c
13039 (aarch64_cannot_change_mode_class): Remove function.
13040 * config/aarch64/aarch64-protos.h
13041 (aarch64_cannot_change_mode_class): Remove.
13042
13043 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13044
13045 * cfgloop.c (record_niter_bound): Record likely upper bounds.
13046 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
13047 get_likely_max_loop_iterations_int): New.
13048 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
13049 any_likely_upper_bound.
13050 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
13051 Declare.
13052 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
13053 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
13054 upper bound.
13055 (unroll_loop_constant_iterations): Likewise.
13056 (unroll_loop_runtime_iterations): Likewise.
13057 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
13058 * lto-streamer-out.c (output_cfg): Likewise.
13059 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
13060 bounds.
13061 (canonicalize_loop_induction_variables): Dump likely upper bounds.
13062 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
13063 (likely_max_loop_iterations): New.
13064 (likely_max_loop_iterations_int): New.
13065 (likely_max_stmt_executions): New.
13066 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
13067 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
13068 likely_max_stmt_executions): Declare.
13069
13070 2016-05-27 Marek Polacek <polacek@redhat.com>
13071
13072 PR middle-end/71308
13073 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
13074
13075 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13076
13077 * config/s390/s390.md (2x risbg splitters): Use
13078 reg_overlap_mentioned_p instead of rtx_equal_p.
13079
13080 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
13081
13082 * combine.c (make_compound_operation): Take known zero bits into
13083 account when checking for possible zero_extend.
13084
13085 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13086
13087 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
13088 Use const_int_operand for operand 2 predicate. Simplify expand code
13089 as a result.
13090
13091 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
13092
13093 PR middle-end/71279
13094 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
13095 into comparison.
13096
13097 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13098
13099 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
13100 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
13101 that returns CC_SESWPmode and CC_ZESWPmode.
13102 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
13103 and CC_SESWPmode.
13104 (aarch64_rtx_costs): Likewise.
13105
13106 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13107
13108 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
13109 for ISA 3.0 min/max support.
13110 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
13111 conditional move support.
13112 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
13113 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
13114 available.
13115 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
13116 conditional moves where the comparison type is different from move
13117 type.
13118 (fp_minmax): New code iterator for smin/smax.
13119 (minmax): New code attributes for min/max.
13120 (SMINMAX): Likewise.
13121 (smax<mode>3): Combine min, max insns into one insn using the
13122 fp_minmax code iterator. Add support for ISA 3.0 min/max
13123 instructions that don't need -ffast-math.
13124 (s<minmax><mode>3): Likewise.
13125 (smax<mode>3_vsx): Likewise.
13126 (smin<mode>3): Likewise.
13127 (s<minmax><mode>3_vsx): Likewise.
13128 (smin<mode>3_vsx): Likewise.
13129 (pre-VSX min/max splitters): Likewise.
13130 (s<minmax><mode>3_fpr): Likewise.
13131 (movsfcc): Rewrite floating point conditional moves to combine
13132 SFmode/DFmode into a single insn.
13133 (mov<mode>cc): Likewise.
13134 (movdfcc): Likewise.
13135 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
13136 SFDF2 iterators to handle all combinations.
13137 (fseldfsf4): Likewise.
13138 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
13139 (fseldfdf4): Likewise.
13140 (fselsfdf4): Likewise.
13141 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
13142 comparison instructions that set a 0/-1 mask, and use it for
13143 floating point conditional move via XXSEL.
13144 (fpmask<mode>): Likewise.
13145 (xxsel<mode>): Likewise.
13146 * config/rs6000/predicates.md (min_max_operator): Delete, no
13147 longer used.
13148 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
13149 instructions that generate a 0/-1 mask for use with XXSEL.
13150 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
13151 say whether floating point min/max is available, either through
13152 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
13153 (TARGET_MINMAX_DF): Likewise.
13154
13155 2016-05-27 Alan Modra <amodra@gmail.com>
13156
13157 PR rtl-optimization/71275
13158 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
13159 for update_equiv_regs and combine_and_move_insns.
13160
13161 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
13162
13163 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
13164 if_then_else or cond RTXes to calculate attribute value.
13165 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
13166 <attr "length_immediate>: Ditto.
13167 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
13168 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
13169 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
13170 <attr "type">: Ditto.
13171 <attr "prefix_data16">: Ditto.
13172 <attr "prefix_extra">: Ditto.
13173 <attr "length_immediate">: Ditto.
13174 <attr "prefix">: Ditto.
13175 (vec_set<mode>_0) <attr "isa">: Ditto.
13176 <attr "prefix_extra">: Ditto.
13177 <attr "length_immediate">: Ditto.
13178 <attr "prefix">: Ditto.
13179 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
13180 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
13181 (sse2_storelpd) <attr "prefix_data16">: Ditto.
13182 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
13183 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
13184 <attr "length_immediate">: Ditto.
13185 <attr "prefix">: Ditto.
13186 (sse2_movsd) <attr "length_immediate">: Ditto.
13187 <attr "prefix">: Ditto.
13188 (vec_concatv2df) <attr "isa">: Ditto.
13189 <attr "prefix">: Ditto.
13190 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
13191 (*vec_extractv2di_1) <attr "isa">: Ditto.
13192 <attr "type">: Ditto.
13193 <attr "length_immediate">: Ditto.
13194 <attr "prefix_rex">: Ditto.
13195 <attr "prefix_extra">: Ditto.
13196 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
13197 <attr "prefix_extra">: Ditto.
13198 <attr "length_immediate">: Ditto.
13199 (vec_concatv2di) <attr "isa">: Ditto.
13200 <attr "prefix_extra">: Ditto.
13201 <attr "length_immediate">: Ditto.
13202 <attr "prefix">: Ditto.
13203
13204 2016-05-26 Martin Liska <mliska@suse.cz>
13205
13206 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
13207 function.
13208 (operator+): Likewise.
13209 (operator-): Likewise.
13210 (comp_cost::operator+=): Likewise.
13211 (comp_cost::operator-=): Likewise.
13212 (comp_cost::operator/=): Likewise.
13213 (comp_cost::operator*=): Likewise.
13214 (operator<): Likewise.
13215 (operator==): Likewise.
13216 (operator<=): Likewise.
13217 (new_cost): Remove.
13218 (infinite_cost_p): Likewise.
13219 (add_costs): Likewise.
13220 (sub_costs): Likewise.
13221 (compare_costs): Likewise.
13222 (set_group_iv_cost): Use the newly introduced functions.
13223 (get_address_cost): Likewise.
13224 (get_shiftadd_cost): Likewise.
13225 (force_expr_to_var_cost): Likewise.
13226 (split_address_cost): Likewise.
13227 (ptr_difference_cost): Likewise.
13228 (difference_cost): Likewise.
13229 (get_computation_cost_at): Likewise.
13230 (determine_group_iv_cost_generic): Likewise.
13231 (determine_group_iv_cost_address): Likewise.
13232 (determine_group_iv_cost_cond): Likewise.
13233 (autoinc_possible_for_pair): Likewise.
13234 (determine_group_iv_costs): Likewise.
13235 (cheaper_cost_pair): Likewise.
13236 (iv_ca_recount_cost): Likewise.
13237 (iv_ca_set_no_cp): Likewise.
13238 (iv_ca_set_cp): Likewise.
13239 (iv_ca_cost): Likewise.
13240 (iv_ca_new): Likewise.
13241 (iv_ca_dump): Likewise.
13242 (iv_ca_narrow): Likewise.
13243 (iv_ca_prune): Likewise.
13244 (iv_ca_replace): Likewise.
13245 (try_add_cand_for): Likewise.
13246 (try_improve_iv_set): Likewise.
13247 (find_optimal_iv_set): Likewise.
13248
13249 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
13250
13251 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
13252 that internal functions will clobber all caller-saved registers.
13253
13254 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13255
13256 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
13257 Return a better case_values_threshold when optimizing.
13258
13259 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13260
13261 * config/aarch64/aarch64-simd.md (aarch64_combinez):
13262 Add ? to integer variant.
13263 (aarch64_combinez_be): Likewise.
13264
13265 2016-05-26 Jakub Jelinek <jakub@redhat.com>
13266
13267 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
13268 instead of x constraint.
13269 (vcvtps2ph256<mask_name>): Likewise.
13270
13271 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
13272 alternative. Formatting fix.
13273
13274 * config/i386/sse.md
13275 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
13276 to ...
13277 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
13278 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
13279 maybe_evex prefix instead of vex.
13280 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
13281 EXT_REX_SSE_REG_P (op0) case in the splitter.
13282
13283 2016-05-25 Jeff Law <law@redhat.com>
13284
13285 PR tree-optimization/71272
13286 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
13287 Update comments. Add test for empty path.
13288
13289 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
13290
13291 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
13292 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
13293 special case builtin.
13294 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13295 code for ALTIVEC_BUILTIN_VEC_CMPNE.
13296 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
13297 for __builtin_vec_cmpne.
13298
13299 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
13300
13301 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
13302 redundant test and bail out if the type of the new operand is not
13303 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
13304
13305 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13306
13307 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
13308 (x_ix86_target_flags_explicit): Remove.
13309 * config/i386/i386.c (ix86_function_specific_save): Do not copy
13310 x_ix86_target_flags_explicit.
13311 (ix86_function_specific_restore): Ditto.
13312
13313 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13314 H.J. Lu <hongjiu.lu@intel.com>
13315
13316 PR target/70738
13317 * common/config/i386/i386-common.c
13318 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
13319 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
13320 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
13321 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
13322 (-mgeneral-regs-only): Add new option.
13323 * config/i386/i386.c (ix86_option_override_internal): Don't enable
13324 x87 instructions if only general registers are allowed.
13325 (ix86_target_string): Add ix86_flags argument. Handle additional
13326 flags options through ix86_flags argument. Update all callers.
13327 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
13328
13329 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13330
13331 PR rtl-optimization/66940
13332 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
13333 decrementing desired_val will not overflow before performing these
13334 operations.
13335
13336 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
13337
13338 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
13339 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
13340 * config/i386/i386.c (enum ix86_builtins): Add
13341 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
13342 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
13343 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
13344 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
13345 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
13346 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
13347 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
13348 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
13349 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
13350 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
13351 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
13352 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
13353 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
13354 __builtin_ia32_cvtps2dq512_mask.
13355 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
13356 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
13357 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
13358 * config/i386/sse.md
13359 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
13360 Rename to ...
13361 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
13362 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
13363 to ...
13364 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
13365 (avx512f_vec_pack_sfix_v8df): New define_expand.
13366 (avx512f_roundpd512): Rename to ...
13367 (avx512f_round<castmode>512): ... this. Change iterator.
13368 (avx512f_roundps512_sfix): New define_expand.
13369 (round<mode>2_sfix): Change iterator.
13370
13371 2016-05-25 Nick Clifton <nickc@redhat.com>
13372
13373 * config/msp430/msp430.c (msp430_attr): Produce an error if a
13374 static interrupt handler is detected.
13375 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
13376 default linker script.
13377 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
13378 the low part of a symbolic pointer.
13379
13380 2016-05-25 Richard Biener <rguenther@suse.de>
13381
13382 PR tree-optimization/71261
13383 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
13384 interesting stmt instead of immediate uses when looking
13385 for the use operand to replace.
13386
13387 2016-05-25 Martin Liska <mliska@suse.cz>
13388
13389 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
13390
13391 2016-05-25 Richard Biener <rguenther@suse.de>
13392
13393 PR tree-optimization/71264
13394 * tree-vect-stmts.c (vect_init_vector): Properly deal with
13395 vector type val.
13396
13397 2016-05-25 Martin Liska <mliska@suse.cz>
13398
13399 PR tree-optimization/71239
13400 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
13401 if DECL_SIZE is NULL.
13402
13403 2016-05-25 Richard Biener <rguenther@suse.de>
13404
13405 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
13406 * tree-if-conv.c (pass_data_if_conversion): Use it.
13407
13408 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
13409
13410 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
13411 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
13412 * varpool.c (varpool_node::get_availability): Likewise.
13413
13414 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13415
13416 * config/rs6000/altivec.md (VNEG iterator): New iterator for
13417 VNEGW/VNEGD instructions.
13418 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
13419 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
13420 support for ISA 3.0 VNEGW/VNEGD instructions.
13421
13422 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
13423
13424 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
13425 pointers inside OACC_DATA regions.
13426 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
13427 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
13428 (gimplify_adjust_omp_clauses): Fix typo in comment.
13429
13430 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13431
13432 * config/rs6000/altivec.md (VParity): New mode iterator for vector
13433 parity built-in functions.
13434 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
13435 zeros.
13436 (p9v_parity<mode>2): Likewise.
13437 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
13438 parity.
13439 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
13440 (parity<mode>2): ISA 3.0 expander for vector parity.
13441 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
13442 power9 built-ins.
13443 (BU_P9_64BIT_MISC_0): Likewise.
13444 (BU_P9_MISC_0): Likewise.
13445 (BU_P9V_AV_1): Likewise.
13446 (BU_P9V_AV_2): Likewise.
13447 (BU_P9V_AV_3): Likewise.
13448 (BU_P9V_AV_P): Likewise.
13449 (BU_P9V_VSX_1): Likewise.
13450 (BU_P9V_OVERLOAD_1): Likewise.
13451 (BU_P9V_OVERLOAD_2): Likewise.
13452 (BU_P9V_OVERLOAD_3): Likewise.
13453 (VCTZB): Add vector count trailing zeros support.
13454 (VCTZH): Likewise.
13455 (VCTZW): Likewise.
13456 (VCTZD): Likewise.
13457 (VPRTYBD): Add vector parity support.
13458 (VPRTYBQ): Likewise.
13459 (VPRTYBW): Likewise.
13460 (VCTZ): Add overloaded vector count trailing zeros support.
13461 (VPRTYB): Add overloaded vector parity support.
13462 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13463 overloaded vector count trailing zeros and parity instructions.
13464 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
13465 vector parity support.
13466 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
13467 trailing zeros support.
13468 (vec_cntlz): Likewise.
13469 (vec_vctzb): Likewise.
13470 (vec_vctzd): Likewise.
13471 (vec_vctzh): Likewise.
13472 (vec_vctzw): Likewise.
13473 (vec_vprtyb): Add ISA 3.0 vector parity support.
13474 (vec_vprtybd): Likewise.
13475 (vec_vprtybw): Likewise.
13476 (vec_vprtybq): Likewise.
13477 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
13478 the ISA 3.0 vector count trailing zeros and vector parity built-in
13479 functions.
13480
13481 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
13482
13483 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
13484 when there is stmt_to_insert.
13485
13486 2016-05-24 Martin Sebor <msebor@redhat.com>
13487
13488 PR c++/71147
13489 * tree.h (complete_or_array_type_p): New inline function.
13490
13491 2016-05-24 Jakub Jelinek <jakub@redhat.com>
13492
13493 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
13494 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
13495 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
13496
13497 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
13498 Limit 1st alternative to noavx isa, split 2nd alternative into one
13499 noavx and one avx alternative, use *x and Bm in the former and
13500 x and m in the latter.
13501
13502 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
13503 of sse4 for the first alternative, drop %v from the template
13504 and d operand modifier. Split second alternative into one sse4_noavx
13505 and one avx alternative, use *x instead of *v in the former and v
13506 instead of *v in the latter.
13507 (*sse4_1_extractps): Use noavx isa instead of * for the first
13508 alternative, drop %v from the template. Split second alternative into
13509 one noavx and one avx alternative, use *x instead of *v in the
13510 former and v instead of *v in the latter.
13511 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
13512 with noavx and the last one with avx.
13513 (sse4_1_phminposuw): Guard first alternative with noavx isa,
13514 split the second one into one noavx and one avx alternative,
13515 use *x and Bm in the former and x and m in the latter one.
13516 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
13517 alternatives.
13518
13519 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
13520 first two alternatives to noavx, use *x instead of *v in the second
13521 one, add avx alternative without *.
13522 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
13523 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
13524 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
13525
13526 2016-05-24 Jeff Law <law@redhat.com>
13527
13528 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
13529 New function, extracted from...
13530 (fsm_find_control_statement_thread_paths): Here. Use the new function.
13531 Allow simple copies and constant initializations in the SSA chain.
13532
13533 2016-05-24 Marek Polacek <polacek@redhat.com>
13534
13535 PR c/71249
13536 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
13537 scope.
13538
13539 2016-05-24 Jakub Jelinek <jakub@redhat.com>
13540
13541 PR c++/71257
13542 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
13543 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
13544 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
13545 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
13546 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
13547
13548 2016-05-24 Richard Biener <rguenther@suse.de>
13549
13550 PR tree-optimization/71240
13551 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
13552 has integral type.
13553
13554 2016-05-24 Richard Biener <rguenther@suse.de>
13555
13556 PR tree-optimization/71230
13557 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
13558
13559 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
13560
13561 * tree-vectorizer.h (vectorizable_comparison): Delete.
13562 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
13563 PURE_SLP_STMT check.
13564 * tree-vect-stmts.c (vectorizable_call): Likewise.
13565 (vectorizable_simd_clone_call): Likewise.
13566 (vectorizable_conversion): Likewise.
13567 (vectorizable_assignment): Likewise.
13568 (vectorizable_shift): Likewise.
13569 (vectorizable_operation): Likewise.
13570 (vectorizable_load): Likewise.
13571 (vectorizable_condition): Likewise.
13572 (vectorizable_store): Likewise. Assert that we don't have
13573 hybrid SLP.
13574 (vectorizable_comparison): Make static. Remove redundant
13575 PURE_SLP_STMT check.
13576 (vect_transform_stmt): Assert that we always have an slp_node
13577 if PURE_SLP_STMT.
13578
13579 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13580
13581 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
13582 operands[2] against 1 with comparison against CONST1_RTX.
13583 (<shift>di3_neon): Likewise.
13584 * config/arm/predicates.md (const0_operand): Replace with comparison
13585 against CONST0_RTX.
13586
13587 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13588
13589 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
13590 operands[2] against 1 with comparison against CONST1_RTX.
13591 (ashrdi3): Likewise.
13592 (lshrdi3): Likewise.
13593 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
13594 UINTVAL.
13595 (ashrsi3): Likewise.
13596 (lshrsi3): Likewise.
13597 (rotrsi3): Likewise.
13598 (define_split above *compareqi_eq0): Likewise.
13599 (define_split above "prologue"): Likewise.
13600 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
13601 * config/arm/predicates.md (shift_operator): Likewise.
13602 (shift_nomul_operator): Likewise.
13603 (sat_shift_operator): Likewise.
13604 (thumb1_cmp_operand): Likewise.
13605 (const_neon_scalar_shift_amount_operand): Replace manual range
13606 check with IN_RANGE.
13607 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
13608 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
13609
13610 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13611
13612 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
13613 with HOST_WIDE_INT_1.
13614 (insv): Likewise.
13615 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
13616 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
13617 (arm_canonicalize_comparison): Likewise.
13618 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
13619 HOST_WIDE_INT_1.
13620 (thumb1_size_rtx_costs): Likewise.
13621 (vfp_const_double_index): Replace cast of 1 to unsigned
13622 HOST_WIDE_INT with HOST_WIDE_INT_1U.
13623 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
13624 HOST_WIDE_INT_1.
13625 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
13626 HOST_WIDE_INT with HOST_WIDE_INT_1U.
13627 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
13628 HOST_WIDE_INT with HOST_WIDE_INT_1.
13629
13630 2016-05-24 Marek Polacek <polacek@redhat.com>
13631
13632 * tree-cfg.h (should_remove_lhs_p): New predicate.
13633 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
13634 * gimplify.c (gimplify_modify_expr): Likewise.
13635 * tree-cfg.c (verify_gimple_call): Likewise.
13636 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
13637 * gimple-fold.c: Include "tree-cfg.h".
13638 (gimple_fold_call): Use should_remove_lhs_p.
13639
13640 2016-05-24 Richard Biener <rguenther@suse.de>
13641
13642 PR tree-optimization/71253
13643 * cfganal.h (control_dependences): Make robust against edge
13644 and BB removal.
13645 (control_dependences::control_dependences): Remove edge_list argument.
13646 (control_dependences::get_edge): Remove.
13647 (control_dependences::get_edge_src): Add.
13648 (control_dependences::get_edge_dest): Likewise.
13649 (control_dependences::m_el): Make a vector of edge src/dest index.
13650 * cfganal.c (control_dependences::find_control_dependence): Adjust.
13651 (control_dependences::control_dependences): Likewise.
13652 (control_dependences::~control_dependence): Likewise.
13653 (control_dependences::get_edge): Remove.
13654 (control_dependences::get_edge_src): Add.
13655 (control_dependences::get_edge_dest): Likewise.
13656 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
13657 get_edge_src.
13658 (perform_tree_ssa_dce): Adjust.
13659 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
13660 get_edge_src.
13661 (pass_loop_distribution::execute): Adjust. Do loop destroying
13662 conditional on changed.
13663
13664 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13665
13666 PR target/69857
13667 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
13668 return. Reindent transformation comment and mention the ARM state
13669 behavior.
13670
13671 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
13672
13673 PR middle-end/71252
13674 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
13675 after build_and_add_sum creates new use stmt.
13676
13677 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
13678
13679 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
13680 load_lanes/grouped_load classification comes first. Don't check
13681 whether the vectorization factor is a multiple of the group size
13682 for load_lanes.
13683
13684 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
13685
13686 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
13687 GROUP_GAP for single-element interleaving.
13688 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
13689 variable.
13690
13691 2016-05-24 Richard Biener <rguenther@suse.de>
13692
13693 PR middle-end/70434
13694 PR c/69504
13695 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
13696 bases which are accessed with non-invariant indices.
13697 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
13698 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
13699
13700 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
13701
13702 PR middle-end/71170
13703 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
13704 (add_to_ops_vec): Add stmt_to_insert.
13705 (add_repeat_to_ops_vec): Init stmt_to_insert.
13706 (insert_stmt_before_use): New.
13707 (transform_add_to_multiply): Remove mult_stmt insertion and add it
13708 to ops vector.
13709 (get_ops): Init stmt_to_insert.
13710 (maybe_optimize_range_tests): Likewise.
13711 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
13712 (rewrite_expr_tree_parallel): Likewise.
13713 (reassociate_bb): Likewise.
13714
13715 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13716
13717 PR target/71201
13718 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
13719 ISA 3.0 xxperm fusion alternative.
13720 (altivec_vperm_v8hiv16qi): Likewise.
13721 (altivec_vperm_<mode>_uns_internal): Likewise.
13722 (vperm_v8hiv4si): Likewise.
13723 (vperm_v16qiv8hi): Likewise.
13724
13725 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13726 Kelvin Nilsen <kelvin@gcc.gnu.org>
13727
13728 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
13729 vpermr/xxpermr on ISA 3.0.
13730 (altivec_expand_vec_perm_le): Likewise.
13731 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
13732 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
13733 ISA 3.0.
13734
13735 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
13736
13737 * config/i386/i386.h (IS_STACK_MODE): Enable for
13738 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
13739 SSE_FLOAT_MODE_P macros.
13740 * config/i386/i386.c (ix86_preferred_reload_class): Use
13741 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
13742 Cleanup regclass processing for CONST_DOUBLE_P.
13743 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
13744 (ix86_rtx_costs): Remove redundant TARGET_80387 check
13745 with IS_STACK_MODE macro.
13746 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
13747 with TARGET_SSE2.
13748 (*movdf_internal): Use IS_STACK_MODE macro.
13749 (*movsf_internal): Ditto.
13750
13751 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
13752
13753 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
13754 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
13755
13756 2016-05-23 Jeff Law <law@redhat.com>
13757
13758 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
13759 extracted from ...
13760 (fsm_find_control_statement_thread_paths): Call it.
13761
13762 2016-05-23 Martin Jambor <mjambor@suse.cz>
13763
13764 PR ipa/71234
13765 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
13766 from_global_constant if t is not NULL.
13767
13768 2016-05-23 Marek Polacek <polacek@redhat.com>
13769
13770 PR c/49859
13771 * common.opt (Wswitch-unreachable): New option.
13772 * doc/invoke.texi: Document -Wswitch-unreachable.
13773 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
13774 warning.
13775
13776 2016-05-23 Bin Cheng <bin.cheng@arm.com>
13777
13778 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
13779 TMR_INDEX is non-NULL.
13780
13781 2016-05-23 Richard Biener <rguenther@suse.de>
13782
13783 PR tree-optimization/71230
13784 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
13785 (try_special_add_to_ops): ... here. Always test for single-use.
13786
13787 2016-05-23 Martin Jambor <mjambor@suse.cz>
13788
13789 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
13790 default block if a PHI node in the original one would be resized.
13791
13792 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13793
13794 PR tree-optimization/58135
13795 * tree-vect-slp.c: When group size is not multiple
13796 of vector size, allow splitting of store group at
13797 vector boundary.
13798
13799 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
13800
13801 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
13802
13803 2016-05-22 Jakub Jelinek <jakub@redhat.com>
13804
13805 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13806 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
13807 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
13808 of 64x2.
13809
13810 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
13811 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
13812 v constraint instead of x and vinserti32x4 insn.
13813
13814 * config/i386/sse.md (i128vldq): New mode iterator.
13815 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
13816 avx512dq and avx512vl alternatives.
13817
13818 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
13819 constraint, use maybe_evex prefix instead of vex.
13820 (vec_dupv4sf): Use v constraint instead of x for output
13821 operand except for noavx alternative, use Yv constraint
13822 instead of x for input. Use maybe_evex prefix instead of vex.
13823 (*vec_dupv4si): Likewise.
13824 (*vec_dupv2di): Likewise.
13825
13826 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
13827
13828 PR middle-end/40921
13829 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
13830 (linearize_expr_tree): Call try_special_add_to_ops.
13831 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
13832
13833 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13834
13835 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
13836 to computed stack_usage.
13837
13838 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13839
13840 PR target/71103
13841 * config/avr/avr.md (define_expand "mov<mode>"): If the source
13842 operand is subreg (symbol_ref) then move the symbol ref to register.
13843
13844 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
13845
13846 * tree.c (array_at_struct_end_p): Look through MEM_REF.
13847
13848 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
13849
13850 PR middle-end/71179
13851 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
13852 VECTOR type.
13853
13854 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
13855
13856 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
13857 ranges by calling get_single_symbol and tidy up. Look more closely
13858 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
13859
13860 2016-05-20 Jeff Law <law@redhat.com>
13861
13862 * bitmap.c (bitmap_find_bit): Remove useless test.
13863
13864 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
13865
13866 * function.c (thread_prologue_and_epilogue_insns): Commit the
13867 insertion of the epilogue.
13868
13869 2016-05-20 Martin Jambor <mjambor@suse.cz>
13870
13871 PR tree-optimization/70884
13872 * tree-sra.c (initialize_constant_pool_replacements): Do not check
13873 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
13874 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
13875 of constant pool data as a reason for scalarization.
13876
13877 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
13878
13879 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
13880 for naked functions.
13881 (thumb1_expand_prologue): Likewise.
13882
13883 2016-05-20 Nathan Sidwell <nathan@acm.org>
13884
13885 * config/nvptx/nptx.c (nvptx_option_override): Only set
13886 flag_toplevel_reorder, if not explicitly specified. Set
13887 flag_no_common, unless explicitly specified.
13888
13889 2016-05-20 David Malcolm <dmalcolm@redhat.com>
13890
13891 * calls.c (can_implement_as_sibling_call_p): Mark param
13892 reg_parm_stack_space with ATTRIBUTE_UNUSED.
13893
13894 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
13895
13896 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
13897 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
13898 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
13899 constants.
13900 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
13901 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
13902 and CASE_CONST_ANY.
13903
13904 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
13905
13906 * config/nvptx/nvptx.md (sincossf3): New pattern.
13907
13908 2016-05-20 David Malcolm <dmalcolm@redhat.com>
13909
13910 * calls.c (maybe_complain_about_tail_call): New function.
13911 (initialize_argument_information): Call
13912 maybe_complain_about_tail_call when clearing *may_tailcall.
13913 (can_implement_as_sibling_call_p): Call
13914 maybe_complain_about_tail_call when returning false.
13915 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
13916 ensure try_tail_call is set. Call maybe_complain_about_tail_call
13917 if tail-call optimization fails.
13918 * cfgexpand.c (expand_call_stmt): Initialize
13919 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
13920 * gimple-pretty-print.c (dump_gimple_call): Dump
13921 gimple_call_must_tail_p.
13922 * gimple.c (gimple_build_call_from_tree): Call
13923 gimple_call_set_must_tail with the value of
13924 CALL_EXPR_MUST_TAIL_CALL.
13925 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
13926 (gimple_call_set_must_tail): New function.
13927 (gimple_call_must_tail_p): New function.
13928 * print-tree.c (print_node): Update printing of TREE_STATIC
13929 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
13930 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
13931 trailing comment listing applicable flags.
13932 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
13933
13934 2016-05-20 David Malcolm <dmalcolm@redhat.com>
13935
13936 * calls.c (expand_call): Move "Rest of purposes for tail call
13937 optimizations to fail" to...
13938 (can_implement_as_sibling_call_p): ...this new function, and
13939 split into multiple "if" statements.
13940
13941 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
13942
13943 * cfgloop.h (expected_loop_iterations_unbounded,
13944 expected_loop_iterations): Unconstify.
13945 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
13946 profile with known upper bound; return 3 when profile is absent.
13947 (expected_loop_iterations): Update.
13948
13949 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
13950
13951 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
13952 and get_max_loop_iterations_int.
13953
13954 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
13955
13956 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
13957 realistic upper bounds here.
13958
13959 2016-05-20 Jakub Jelinek <jakub@redhat.com>
13960
13961 PR c++/71210
13962 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
13963 calls if the LHS is variable length or has addressable type.
13964 If targets[0]->decl is a noreturn call with void return type and
13965 zero arguments, adjust fntype and remove lhs in that case.
13966
13967 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
13968
13969 PR tree-optimization/71079
13970 PR tree-optimization/71206
13971 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
13972
13973 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13974
13975 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
13976 (get_vec_alignment_for_array_decl): Likewise.
13977 (get_vec_alignment_for_record_decl): Likewise.
13978 (increase_alignment::execute): Move code to find alignment to
13979 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
13980 (type_align_map): New hash_map.
13981
13982 2016-05-20 Richard Guenther <rguenther@suse.de>
13983
13984 PR tree-optimization/29756
13985 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
13986 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
13987 * fold-const.c (operand_equal_p): Likewise.
13988 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
13989 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
13990 * tree-inline.c (estimate_operator_cost): Likewise.
13991 * tree-pretty-print.c (dump_generic_node): Likewise.
13992 * tree-ssa-operands.c (get_expr_operands): Likewise.
13993 * cfgexpand.c (expand_debug_expr): Likewise.
13994 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13995 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
13996 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
13997 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
13998 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
13999 (execute_update_addresses_taken): Do it.
14000
14001 2016-05-20 Richard Biener <rguenther@suse.de>
14002
14003 PR tree-optimization/71185
14004 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
14005 register operations.
14006
14007 2016-05-20 Richard Biener <rguenther@suse.de>
14008
14009 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
14010 gimple_seq_add_seq_without_update.
14011 (release_bb_predicate): Assert we have no operands to free.
14012 (if_convertible_loop_p_1): Calculate post dominators later.
14013 Do not free BB predicates here.
14014 (combine_blocks): Do not recompute BB predicates.
14015 (version_loop_for_if_conversion): Save BB predicates around
14016 loop versioning.
14017
14018 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
14019
14020 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
14021 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
14022 code. Ignore sibcalls on EDGE_IGNORE edges.
14023 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
14024 on edges for sibcalls that run without prologue. The rest of the
14025 function is combined from...
14026 (fix_fake_fallthrough_edge): ... this, and ...
14027 (try_shrink_wrapping): ... a part of this. Remove the bb_with
14028 function argument, make it a local variable.
14029
14030 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
14031
14032 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
14033 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
14034 for 32-bit mode and SEH for 64-bit.
14035 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
14036 TARGET_64BIT_DEFAULT.
14037
14038 2016-05-19 Ryan Burn <contact@rnburn.com>
14039
14040 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
14041 * gengtype.c (open_base_files): Add cilk.h to ifiles.
14042
14043 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
14044
14045 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
14046 force pending loads from memory.
14047
14048 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
14049
14050 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
14051 (UNSPEC_DARN_32): New unspec constant.
14052 (UNSPEC_DARN_RAW): New unspec constant.
14053 (darn_32): New instruction.
14054 (darn_raw): New instruction.
14055 (darn): New instruction.
14056 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
14057 support and documentation for this macro.
14058 (BU_P9_MISC_1): New macro definition.
14059 (BU_P9_64BIT_MISC_0): New macro definition.
14060 (BU_P9_MISC_0): New macro definition.
14061 (darn_32): New builtin definition.
14062 (darn_raw): New builtin definition.
14063 (darn): New builtin definition.
14064 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
14065 RS6000_BUILTIN_0 directives to surround each occurrence of
14066 #include "rs6000-builtin.def".
14067 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
14068 RS6000_BTM_64BIT flags to the returned mask, depending on
14069 configuration.
14070 (def_builtin): Correct an error in the assignments made to the
14071 debugging variable attr_string.
14072 (rs6000_expand_builtin): Add support for no-operand built-in
14073 functions.
14074 (builtin_function_type): Remove fatal_error assertion that is no
14075 longer valid.
14076 (rs6000_common_init_builtins): Add support for no-operand built-in
14077 functions.
14078 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
14079 definition.
14080 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
14081 definition.
14082 (RS6000_BTM_64BIT): New macro definition.
14083 * doc/extend.texi: Document __builtin_darn (void),
14084 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
14085 functions.
14086
14087 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
14088
14089 * tree-vect-loop.c (vect_analyze_loop_2): Use also
14090 max_loop_iterations_int.
14091
14092 2016-05-19 Marek Polacek <polacek@redhat.com>
14093
14094 PR tree-optimization/71031
14095 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
14096 condition and adjust the code a bit.
14097
14098 2016-05-19 Martin Liska <mliska@suse.cz>
14099
14100 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
14101 auto_vec instead of vec.
14102
14103 2016-05-19 Martin Liska <mliska@suse.cz>
14104
14105 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
14106
14107 2016-05-19 Martin Liska <mliska@suse.cz>
14108
14109 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
14110
14111 2016-05-19 Martin Liska <mliska@suse.cz>
14112
14113 * ipa-pure-const.c (set_function_state): Remove an existing
14114 funct_state.
14115 (remove_node_data): Do not free it as it's released
14116 in set_function_state.
14117
14118 2016-05-19 Martin Liska <mliska@suse.cz>
14119
14120 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
14121 bitmap.
14122
14123 2016-05-19 Martin Liska <mliska@suse.cz>
14124
14125 * omp-simd-clone.c (simd_clone_adjust): Release vector.
14126
14127 2016-05-19 Martin Liska <mliska@suse.cz>
14128
14129 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
14130 an auto_vec instead of re-creating it.
14131
14132 2016-05-19 Martin Liska <mliska@suse.cz>
14133
14134 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
14135 auto_vec instead of vec.
14136
14137 2016-05-19 Martin Liska <mliska@suse.cz>
14138
14139 * lto-section-in.c (lto_get_section_data): Call
14140 lto_check_version with additional argument.
14141 * lto-streamer.c (lto_check_version): Add new argument.
14142 * lto-streamer.h (lto_check_version): Likewise.
14143
14144 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14145
14146 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
14147 Don't add cost of inner memory when handling sign-extended loads.
14148
14149 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
14150
14151 PR rtl-optimization/71148
14152 * cse.c (cse_main): Free dominance info.
14153 (rest_of_handle_cse): Don't free dominance info.
14154 (rest_of_handle_cse2): Likewise.
14155 (rest_of_handle_cse_after_global_opts): Likewise.
14156
14157 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14158
14159 PR target/71056
14160 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
14161 NULL_TREE early if NEON is not available. Remove now redundant check
14162 in ARM_CHECK_BUILTIN_MODE.
14163
14164 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
14165
14166 PR sanitizer/64354
14167 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
14168 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
14169 * doc/cpp.texi: Document new macros.
14170
14171 2016-05-19 Bin Cheng <bin.cheng@arm.com>
14172
14173 PR tree-optimization/69848
14174 * tree-vect-loop.c (vectorizable_reduction): Don't factor
14175 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
14176
14177 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
14178
14179 * function.c (thread_prologue_and_epilogue_insn): Move the
14180 "goto epilogue_done" one block later.
14181
14182 2016-05-19 Richard Biener <rguenther@suse.de>
14183
14184 PR tree-optimization/70729
14185 * passes.def: Move LIM pass before PRE. Remove no longer
14186 required copyprop and move first DCE out of the loop pipeline.
14187
14188 2016-05-18 David Malcolm <dmalcolm@redhat.com>
14189
14190 PR driver/69265
14191 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
14192 (OBJS-libcommon-target): ...here.
14193 * opts-common.c: Include spellcheck.h.
14194 (cmdline_handle_error): Build a vec of valid options and use it
14195 to suggest provide hints for misspelled arguments.
14196
14197 2016-05-18 Jakub Jelinek <jakub@redhat.com>
14198
14199 PR c++/71100
14200 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
14201 lhs if it has TREE_ADDRESSABLE type.
14202
14203 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
14204
14205 PR target/71145
14206 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
14207 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
14208
14209 2016-05-18 Martin Jambor <mjambor@suse.cz>
14210
14211 PR ipa/69708
14212 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
14213 input for NOP_EXPR pass-through functions.
14214 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
14215 aggregate global constant VAR_DECLs in constant jump functions.
14216
14217 2016-05-18 Martin Jambor <mjambor@suse.cz>
14218
14219 PR ipa/69708
14220 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
14221 from TREE_READONLY parameters.
14222
14223 2016-05-18 Martin Jambor <mjambor@suse.cz>
14224
14225 PR ipa/69708
14226 * cgraph.h (cgraph_indirect_call_info): New field
14227 guaranteed_unmodified.
14228 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
14229 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14230 appropriate.
14231 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
14232 pass the parameter value to ipa_find_agg_cst_for_param.
14233 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
14234 guaranteed_unmodified, store AA results there instead of bailing out
14235 if present.
14236 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
14237 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
14238 (find_constructor_constant_at_offset): New function.
14239 (ipa_find_agg_cst_from_init): Likewise.
14240 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
14241 static initializers of contants, report back through a new paameter
14242 from_global_constant if that was the case.
14243 (try_make_edge_direct_simple_call): Also pass parameter value to
14244 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14245 appropriate.
14246 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
14247 (ipa_read_indirect_edge_info): Likewise.
14248 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
14249 (ipa_load_from_parm_agg): Likewise.
14250
14251 2016-05-18 Jiong Wang <jiong.wang@arm.com>
14252
14253 PR rtl-optimization/71150
14254 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
14255 check.
14256
14257 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14258
14259 PR target/70915
14260 * config/rs6000/constraints.md (wE constraint): New constraint
14261 for a vector constant that can be loaded with XXSPLTIB.
14262 (wM constraint): New constraint for a vector constant of a 1's.
14263 (wS constraint): New constraint for a vector constant that can be
14264 loaded with XXSPLTIB and a vector sign extend instruction.
14265 * config/rs6000/predicates.md (xxspltib_constant_split): New
14266 predicates for wE/wS constraints.
14267 (xxspltib_constant_nosplit): Likewise.
14268 (easy_vector_constant): Add support for constants that can be
14269 loaded via XXSPLTIB.
14270 (all_ones_constant): New predicate for vector constant with all
14271 1's set.
14272 (splat_input_operand): Add support for ISA 3.0 word splat operations.
14273 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
14274 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
14275 instruction and possibly with a sign extension.
14276 (output_vec_const_move): Add support for XXSPLTIB. If we are
14277 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
14278 instead of XXLXOR/XXLORC.
14279 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
14280 operations.
14281 (rs6000_legitimize_reload_address): Likewise.
14282 (rs6000_output_move_128bit): Use output_vec_const_move to emit
14283 constants.
14284 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
14285 combine VSX_M and VSX_M2 into one iterator.
14286 (VSX_M2): Likewise.
14287 (VSINT_84): New iterators for loading constants with XXSPLTIB.
14288 (VSINT_842): Likewise.
14289 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
14290 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
14291 XXSPLTIB instruction.
14292 (xxspltib_<mode>_nosplit): Likewise.
14293 (xxspltib_<mode>_split): New insn to load up constants with
14294 XXSPLTIB and a sign extend instruction.
14295 (vsx_mov<mode>): Replace single move that handled all vector types
14296 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
14297 moves (when -mvsx-timode is in effect) into the main vector
14298 moves. Eliminate separate moves for <VSr> <VSa>, where the
14299 preferred register class (<VSr>) is listed first, and the
14300 secondary register class (<VSa>) is listed second with a '?' to
14301 discourage use. Prefer loading 0/-1 in any VSX register for ISA
14302 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
14303 that if the register was involved in a slow operation, the
14304 clear/set operation does not wait for the slow operation to
14305 finish. Adjust the length attributes for 32-bit mode. Use
14306 rs6000_output_move_128bit and drop the use of the string
14307 instructions for 32-bit movti when -mvsx-timode is in effect. Use
14308 spacing so that the alternatives and attributes don't generate
14309 long lines, and put things in columns, so that it is easier to
14310 match up the operands and attributes with the insn alternatives.
14311 (vsx_mov<mode>_64bit): Likewise.
14312 (vsx_mov<mode>_32bit): Likewise.
14313 (vsx_movti_64bit): Fold movti into normal vector moves.
14314 (vsx_movti_32bit): Likewise.
14315 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
14316 splat instructions.
14317 (vsx_splat_v4si_internal): Likewise.
14318 (vsx_splat_v4sf_internal): Likewise.
14319 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
14320 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
14321 extend vector elements.
14322 (vsx_sign_extend_hi_<mode>): Likewise.
14323 (vsx_sign_extend_si_v2di): Likewise.
14324 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
14325 declaration.
14326 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
14327 constraints. Add trailing period to wL documentation.
14328
14329 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
14330
14331 PR middle-end/71020
14332 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
14333 * tree-dfa.c (replace_abnormal_ssa_names): New function.
14334 * tree-call-cdce.c: Include tree-dfa.h.
14335 (can_guard_call_p): New function, extracted from...
14336 (can_use_internal_fn): ...here.
14337 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
14338 and return void.
14339 (shrink_wrap_one_built_in_call): Likewise.
14340 (use_internal_fn): Likewise.
14341 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
14342 and return void. Call replace_abnormal_ssa_names.
14343 (pass_call_cdce::execute): Check can_guard_call_p during the
14344 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
14345 will always change something.
14346
14347 2016-05-18 Martin Jambor <mjambor@suse.cz>
14348
14349 PR ipa/70646
14350 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
14351 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
14352
14353 2016-05-18 Martin Jambor <mjambor@suse.cz>
14354
14355 PR ipa/70646
14356 * ipa-inline.h (condition): New field size.
14357 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
14358 for comaprison and store it into the new condition.
14359 (evaluate_conditions_for_known_args): Use condition size to check
14360 access sizes for all but CHANGED conditions.
14361 (unmodified_parm_1): New parameter size_p, store access size into it.
14362 (unmodified_parm): Likewise.
14363 (unmodified_parm_or_parm_agg_item): Likewise.
14364 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
14365 (set_cond_stmt_execution_predicate): Extract access sizes and store
14366 them to conditions.
14367 (set_switch_stmt_execution_predicate): Likewise.
14368 (will_be_nonconstant_expr_predicate): Likewise.
14369 (will_be_nonconstant_predicate): Likewise.
14370 (inline_read_section): Stream condition size.
14371 (inline_write_summary): Likewise.
14372
14373 2016-05-18 Richard Biener <rguenther@suse.de>
14374
14375 * tree-ssa-loop-im.c (determine_max_movement): Properly add
14376 condition cost to PHI cost instead of total_cost.
14377
14378 2016-05-18 Martin Liska <mliska@suse.cz>
14379
14380 PR fortran/70856
14381 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
14382 merged variables.
14383
14384 2016-05-18 Richard Biener <rguenther@suse.de>
14385
14386 * lto-streamer.h (LTO_major_version): Bump to 6.
14387
14388 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
14389
14390 * function.c (make_split_prologue_seq, make_prologue_seq,
14391 make_epilogue_seq): New functions, factored out from...
14392 (thread_prologue_and_epilogue_insns): Here.
14393
14394 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
14395
14396 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14397 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
14398 of before. Add a comment.
14399
14400 2016-05-18 Bin Cheng <bin.cheng@arm.com>
14401
14402 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
14403 expression pointer, not pointer to the pointer.
14404
14405 2016-05-18 Jakub Jelinek <jakub@redhat.com>
14406
14407 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
14408 (avx2_pbroadcast<mode>): Add another alternative with v instead
14409 of x constraints in it, using <pbroadcast_evex_isa> isa.
14410 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
14411
14412 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
14413 constraint x instead of v in second alternative, add avx512bw
14414 alternative.
14415
14416 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
14417 constraint x instead of v in second alternative, add avx512bw
14418 alternative.
14419
14420 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
14421 constraint x instead of v in second alternative, add avx512bw
14422 alternative.
14423
14424 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
14425 avx512bw alternative.
14426
14427 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
14428
14429 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
14430 array to 128 chars.
14431 (define_insn "*andnottf3"): Ditto.
14432 (define_insn "*<code><mode>3"/any_logic): Ditto.
14433 (define_insn "*<code>tf3"/any_logic): Ditto.
14434 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
14435 operand to block AVX-512VL insn variant emit when it is not enabled.
14436
14437 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
14438
14439 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
14440 constraint fot SF mode.
14441
14442 2016-05-18 Petr Murzin <petr.murzin@intel.com>
14443 Kirill Yukhin <kirill.yukhin@intel.com>
14444
14445 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
14446 modifiers.
14447 (define_insn "rsqrt14<mode>"): Ditto.
14448 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
14449 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
14450 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
14451 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
14452 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
14453 Ditto.
14454 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
14455 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
14456 * config/i386/i386.c (ix86_print_operand): Expand check for size
14457 override codes for Intel syntax.
14458
14459 2016-05-18 Richard Biener <rguenther@suse.de>
14460
14461 PR tree-optimization/71168
14462 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
14463 initialization earlier.
14464
14465 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
14466
14467 * config/aarch64/aarch64-simd.md
14468 (aarch64_reduc_plus_internal<mode>): Rename to...
14469 (reduc_plus_scal): ...This, and remove previous implementation.
14470
14471 2016-05-18 Richard Biener <rguenther@suse.de>
14472
14473 * passes.def: Put late dse and cd_dce in canonical order.
14474
14475 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
14476
14477 * ipa-inline-transform.c (preserve_function_body_p): Look for
14478 first non-thunk clone.
14479 (save_function_body): Save into first non-thunk.
14480 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
14481 up call stmt id.
14482 (lto_output_node): Inline thunks don't need body in every
14483 partition.
14484 * lto-streamer-in.c: Do not fixup thunk clones.
14485 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
14486 thunks.
14487 * tree-inline.c (copy_bb): Be prepared for target node to be new after
14488 folding suceeds.
14489
14490 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
14491
14492 PR middle-end/63586
14493 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
14494 (reassociate_bb): Call transform_add_to_multiply.
14495
14496 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
14497
14498 * config/aarch64/aarch64.c (all_extensions): Removed unused
14499 static variable.
14500
14501 2016-05-17 Nathan Sidwell <nathan@acm.org>
14502
14503 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
14504 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
14505
14506 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
14507
14508 PR tree-optimization/54579
14509 PR middle-end/55299
14510 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
14511
14512 2016-05-17 Marek Polacek <polacek@redhat.com>
14513
14514 PR ipa/71146
14515 * tree-inline.c (expand_call_inline): Call
14516 maybe_remove_unused_call_args.
14517
14518 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
14519
14520 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
14521 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
14522 * doc/md.texi (fmin@var{m}3): Likewise.
14523
14524 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
14525
14526 * match.pd (X & C): New transformation.
14527
14528 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
14529
14530 * match.pd (~X & Y): New transformation.
14531
14532 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
14533
14534 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
14535 information for new SSA_NAME.
14536 (simplify_conversion_using_ranges): Get range through get_range_info
14537 instead of get_value_range.
14538
14539 2016-05-17 Jiong Wang <jiong.wang@arm.com>
14540
14541 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
14542 Remove inline assembly.
14543 (vmvn_s16): Likewise.
14544 (vmvn_s32): Likewise.
14545 (vmvn_u8): Likewise.
14546 (vmvn_u16): Likewise.
14547 (vmvn_u32): Likewise.
14548 (vmvnq_s8): Likewise.
14549 (vmvnq_s16): Likewise.
14550 (vmvnq_s32): Likewise.
14551 (vmvnq_u8): Likewise.
14552 (vmvnq_u16): Likewise.
14553 (vmvnq_u32): Likewise.
14554 (vmvn_p8): Likewise.
14555 (vmvnq_p16): Likewise.
14556
14557 2016-05-17 Jiong Wang <jiong.wang@arm.com>
14558
14559 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
14560 Use builtin.
14561 (vmul_n_s16): Likewise.
14562 (vmul_n_s32): Likewise.
14563 (vmul_n_u16): Likewise.
14564 (vmul_n_u32): Likewise.
14565 (vmulq_n_f32): Likewise.
14566 (vmulq_n_f64): Likewise.
14567 (vmulq_n_s16): Likewise.
14568 (vmulq_n_s32): Likewise.
14569 (vmulq_n_u16): Likewise.
14570 (vmulq_n_u32): Likewise.
14571
14572 2016-05-17 Jiong Wang <jiong.wang@arm.com>
14573
14574 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
14575 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
14576
14577 2016-05-17 Jiong Wang <jiong.wang@arm.com>
14578
14579 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
14580 to *aarch64_fma4_elt_from_dup<mode>.
14581 (*aarch64_fnma4_elt_to_128df): Rename to
14582 *aarch64_fnma4_elt_from_dup<mode>.
14583 * config/aarch64/arm_neon.h (vfma_n_f64): New.
14584 (vfms_n_f32): Likewise.
14585 (vfms_n_f64): Likewise.
14586 (vfmsq_n_f32): Likewise.
14587 (vfmsq_n_f64): Likewise.
14588
14589 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
14590
14591 * wide-int.h: Change fixed_wide_int_storage from class to struct.
14592
14593 2016-05-17 Richard Biener <rguenther@suse.de>
14594
14595 PR tree-optimization/71132
14596 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
14597 Only add control dependences for blocks in the loop.
14598 (build_rdg): Adjust.
14599 (generate_code_for_partition): Return whether loop should
14600 be destroyed and delay that.
14601 (distribute_loop): Likewise.
14602 (pass_loop_distribution::execute): Record loops to be destroyed
14603 and perform delayed destroying of loops.
14604
14605 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14606
14607 PR target/70809
14608 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
14609
14610 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
14611
14612 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
14613
14614 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
14615
14616 PR target/71114
14617 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
14618 insertion point for instructions generated by validize_mem.
14619
14620 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
14621
14622 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
14623 in brackets.
14624
14625 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
14626
14627 * config/aarch64/aarch64.c
14628 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
14629 rather than a macro.
14630
14631 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
14632
14633 * doc/invoke.texi (AArch64 Options): Various updates.
14634
14635 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14636
14637 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
14638 into instrumentation thunks.
14639 * cif-code.def (CIF_CHKP): New.
14640
14641 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
14642
14643 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
14644
14645 2016-05-16 Martin Jambor <mjambor@suse.cz>
14646
14647 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
14648 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
14649
14650 2016-05-16 Marek Polacek <polacek@redhat.com>
14651
14652 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
14653 commentary.
14654
14655 2016-05-16 Martin Jambor <mjambor@suse.cz>
14656
14657 PR hsa/70857
14658 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
14659 the outlined kernel function.
14660
14661 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
14662
14663 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
14664 (ISA_HAS_DLSA): Ditto.
14665
14666 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
14667
14668 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
14669
14670 2016-05-16 Nathan Sidwell <nathan@acm.org>
14671
14672 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
14673 (nvptx_name_replacement): Restore. Add comment.
14674 (write_fn_proto, write_fn_proto_from_insn,
14675 nvptx_output_call_insn): Restore
14676 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
14677
14678 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
14679
14680 * config/aarch64/aarch64.md
14681 (add<mode>3_compareC_cconly_imm): Remove use of %w.
14682 (add<mode>3_compareC_imm): Likewise.
14683 (<optab>si3_uxtw): Split into register and immediate variants.
14684 (andsi3_compare0_uxtw): Likewise.
14685 (and<mode>3_compare0): Likewise.
14686 (and<mode>3nr_compare0): Likewise.
14687 (stack_protect_test_<mode>): Don't use %x for memory operands.
14688
14689 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
14690
14691 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
14692
14693 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
14694
14695 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14696 Split integer shifts into shift_reg and bfm.
14697 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
14698 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14699 (ror<mode>3_insn): Likewise.
14700 (<optab>si3_insn_uxtw): Likewise.
14701 (<optab><mode>3_insn): Change to rotate_imm.
14702 (extr<mode>5_insn_alt): Likewise.
14703 (extrsi5_insn_uxtw): Likewise.
14704 (extrsi5_insn_uxtw_alt): Likewise.
14705
14706 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
14707
14708 * doc/tm.texi: Regenerate.
14709 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
14710 (TARGET_INVALID_RETURN_TYPE): Remove.
14711 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
14712 TARGET_INVALID_RETURN_TYPE.
14713 * target.def (invalid_parameter_type): Remove.
14714 (invalid_return_type): Remove.
14715
14716 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14717
14718 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
14719 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
14720 calls from thunk.
14721 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
14722 gimple body.
14723 (preserve_function_body_p): No need to preserve function body
14724 * cif-codes.def (CIF_THUNK): Remove.
14725 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
14726
14727 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14728
14729 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
14730
14731 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14732
14733 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
14734 for thunks.
14735
14736 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14737
14738 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
14739 (inline_small_functions): Do not look for function symbol when
14740 resetting caches.
14741
14742 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14743
14744 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
14745 of inline thunks
14746
14747 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
14748 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14749 Jiong Wang <jiong.wang@arm.com>
14750
14751 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
14752 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
14753 Define __ARM_FP16_ARGS when appropriate.
14754 * config/arm/arm.c (arm_invalid_parameter_type): Remove
14755 declaration.
14756 (arm_invalid_return_type): Likewise.
14757 (TARGET_INVALID_PARAMETER_TYPE): Remove.
14758 (TARGET_INVALID_RETURN_TYPE): Remove.
14759 (aapcs_vfp_sub_candidate): Allow HFmode.
14760 (aapcs_vfp_allocate): Add comment. Support HFmode.
14761 (aapcs_vfp_allocate_return_reg): Likewise.
14762 (struct aapcs_cp_arg_layout): Slightly reword comments for
14763 is_return_candidate and allocate_return_reg.
14764 (output_mov_vfp): Update assert.
14765 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
14766 condition.
14767 (arm_invalid_parameter_type): Remove.
14768 (amr_invalid_return_type): Remove.
14769 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
14770 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
14771 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
14772
14773 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
14774
14775 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14776 * config/aarch64/arch64-protos.h
14777 (aarch64_legitimize_reload_address): Remove.
14778 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
14779 Remove.
14780
14781 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
14782
14783 * configure.ac: Add ACX_NONCANONICAL_HOST.
14784 * configure: Regenerate.
14785 * Makefile.in: Set host_noncanonical.
14786
14787 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
14788
14789 PR target/71097
14790 * config/i386/i386.md (*movtf_internal): Before register allocation,
14791 do not allow FP constants for CM_MEDIUM memory model, allow only
14792 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
14793 (*movxf_internal): Ditto.
14794 (*movdf_internal): Ditto.
14795 (*movsf_internal): Ditto.
14796
14797 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
14798
14799 PR rtl-optimization/67483
14800 * combine.c (make_compound_operation): Don't call extract_left_shift
14801 with negative shift amounts.
14802
14803 2016-05-13 Jakub Jelinek <jakub@redhat.com>
14804
14805 PR bootstrap/71071
14806 * fold-const.c (fold_checksum_tree): Allow modification
14807 of TYPE_ALIAS_SET during folding.
14808
14809 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
14810 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
14811 (ix86_split_to_parts): Likewise. Fix up formatting.
14812
14813 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
14814
14815 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
14816 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
14817 printf format.
14818
14819 2016-05-13 Nathan Sidwell <nathan@acm.org>
14820
14821 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
14822 (nvptx_name_replacement): Delete.
14823 (write_fn_proto, write_fn_proto_from_insn,
14824 nvptx_output_call_insn): Remove nvptx_name_replacement call.
14825 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
14826 * langhooks.c (add_builtin_funcction_common): Call
14827 targetm.mangle_decl_assembler_name.
14828
14829 * config/nvptx/nvptx.c (write_fn_proto): Handle
14830 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
14831
14832 2016-05-13 Martin Liska <mliska@suse.cz>
14833
14834 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
14835 and PRIu64 in printf format.
14836
14837 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14838
14839 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
14840 comment.
14841
14842 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14843
14844 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
14845 Change --param max-completely-peeled-times to
14846 --param max-completely-peel-times in dump file printing.
14847
14848 2016-05-13 Richard Biener <rguenther@suse.de>
14849
14850 PR tree-optimization/42587
14851 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
14852 (find_bswap_or_nop_1): Likewise.
14853 (bswap_replace): Likewise.
14854
14855 2016-05-13 Martin Liska <mliska@suse.cz>
14856
14857 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
14858 Initialize a variable with default value.
14859
14860 2016-05-13 Martin Liska <mliska@suse.cz>
14861
14862 * doc/invoke.texi: Enhance explanation of error recovery
14863 of sanitizers.
14864
14865 2016-05-13 Martin Liska <mliska@suse.cz>
14866
14867 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
14868 (struct cost_pair): Change inv_expr_id (int) to inv_expr
14869 (iv_inv_expr_ent *).
14870 (struct iv_inv_expr_ent): Comment struct fields.
14871 (sort_iv_inv_expr_ent): New function.
14872 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
14873 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
14874 a hash_map between iv_inv_expr_ent and number of usages.
14875 (niter_for_exit): Fix coding style.
14876 (tree_ssa_iv_optimize_init): Use renamed variable.
14877 (determine_base_object): Fix coding style.
14878 (alloc_iv): Likewise.
14879 (find_interesting_uses_outside): Likewise.
14880 (add_candidate_1): Likewise.
14881 (add_standard_iv_candidates): Likewise.
14882 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
14883 (prepare_decl_rtl): Fix coding style.
14884 (get_address_cost): Likewise.
14885 (get_shiftadd_cost): Likewise.
14886 (force_expr_to_var_cost): Likewise.
14887 (compare_aff_trees): Likewise.
14888 (get_expr_id): Restructure the function.
14889 (get_loop_invariant_expr_id): Renamed to
14890 get_loop_invariant_expr.
14891 (get_computation_cost_at): Replace usage of inv_expr_id with
14892 inv_expr.
14893 (get_computation_cost): Likewise.
14894 (determine_group_iv_cost_generic): Likewise.
14895 (determine_group_iv_cost_address): Likewise.
14896 (iv_period): Fix coding style.
14897 (iv_elimination_compare_lt): Likewise.
14898 (may_eliminate_iv): Likewise.
14899 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
14900 inv_expr.
14901 (determine_group_iv_costs): Dump invariant expressions.
14902 (iv_ca_recount_cost): Use the newly added hash_map.
14903 (iv_ca_set_remove_invariants): Fix coding style.
14904 (iv_ca_set_add_invariants): Fix coding style.
14905 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
14906 invariants.
14907 (iv_ca_set_cp): Likewise.
14908 (iv_ca_new): Initialize the newly added hash_map and remove
14909 initialization of fields.
14910 (iv_ca_free): Delete the hash_map.
14911 (iv_ca_dump): Dump invariant expressions.
14912 (iv_ca_extend): Fix coding style.
14913 (try_add_cand_for): Likewise.
14914 (create_new_ivs): Dump information about # of avg iterations and
14915 # of used invariant expressions.
14916 (rewrite_use_compare): Fix coding style.
14917 (free_loop_data): Set default value for max_inv_expr_id.
14918
14919 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
14920
14921 * cse.c (rest_of_handle_cse): Use cleanup_cfg
14922 returned value cse_cfg_altered computation.
14923 (rest_of_handle_cse2): Likewise.
14924 (rest_of_handle_cse_after_global_opts): Likewise.
14925
14926 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14927
14928 PR target/53440
14929 * config/arm/arm.c (arm32_output_mi_thunk): New.
14930 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
14931 to split Thumb1 vs TARGET_32BIT functionality.
14932 (arm_thumb1_mi_thunk): New.
14933
14934 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14935
14936 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
14937 to true.
14938
14939 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14940
14941 PR target/71080
14942 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
14943
14944 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
14945
14946 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
14947 (expand_builtin_trap): Emit a regular call.
14948 (set_builtin_user_assembler_name): Remove obsolete cases.
14949 * dse.c (scan_insn): Adjust.
14950 * except.c: Include calls.h.
14951 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
14952 emit a regular call to setjmp.
14953 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
14954 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
14955 (emit_block_move_via_libcall): Delete.
14956 (block_move_fn): Delete.
14957 (init_block_move_fn): Likewise.
14958 (emit_block_move_libcall_fn): Likewise.
14959 (emit_block_op_via_libcall): New function.
14960 (set_storage_via_libcall): Tidy up and use memset builtin.
14961 (block_clear_fn): Delete.
14962 (init_block_clear_fn): Likewise.
14963 (clear_storage_libcall_fn): Likewise.
14964 (expand_assignment): Call emit_block_move_via_libcall.
14965 Do not include gt-expr.h.
14966 * expr.h (emit_block_op_via_libcall): Declare.
14967 (emit_block_copy_via_libcall): New inline function.
14968 (emit_block_move_via_libcall): Likewise.
14969 (emit_block_comp_via_libcall): Likewise.
14970 (block_clear_fn): Delete.
14971 (init_block_move_fn): Likewise.
14972 (init_block_clear_fn): Likewise.
14973 (emit_block_move_via_libcall): Likewise.
14974 (set_storage_via_libcall): Add default parameter value.
14975 * libfuncs.h (enum libfunc_index): Remove obsolete values.
14976 (abort_libfunc): Delete.
14977 (memcpy_libfunc): Likewise.
14978 (memmove_libfunc): Likewise.
14979 (memcmp_libfunc): Likewise.
14980 (memset_libfunc): Likewise.
14981 (setbits_libfunc): Likewise.
14982 (setjmp_libfunc): Likewise.
14983 (longjmp_libfunc): Likewise.
14984 (profile_function_entry_libfunc): Likewise.
14985 (profile_function_exit_libfunc): Likewise.
14986 (gcov_flush_libfunc): Likewise.
14987 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
14988 and DECL_VISIBILITY on the declaration.
14989 (init_optabs): Do not initialize obsolete libfuncs.
14990 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
14991 * tree-core.h (ECF_RET1): Define.
14992 (ECF_TM_PURE): Adjust.
14993 (ECF_TM_BUILTIN): Likewise.
14994 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
14995 (build_common_builtin_nodes): Initialize abort builtin.
14996 Add ECF_RET1 on memcpy, memmove and memset builtins.
14997 Pass final flags for alloca and alloca_with_align builtins.
14998 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
14999 obsolete builtins.
15000 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
15001 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
15002 set_storage_via_libcall and call emit_block_copy_via_libcall.
15003
15004 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
15005
15006 * config/i386/i386.md (*call_got_x32): Change operand 0 to
15007 DImode before it is passed to ix86_output_call_operand.
15008 (*call_value_got_x32): Ditto for operand 1.
15009
15010 2016-05-12 Jiong Wang <jiong.wang@arm.com>
15011
15012 PR rtl-optimization/70904
15013 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
15014 reload for wide mode.
15015
15016 2016-05-12 Marek Polacek <polacek@redhat.com>
15017
15018 PR c/70756
15019 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
15020 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
15021 * langhooks.h (incomplete_type_error): Likewise.
15022 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
15023 parameter, pass it down to incomplete_type_error.
15024 * tree.h (size_in_bytes): New inline overload.
15025 (size_in_bytes_loc): Renamed from size_in_bytes.
15026
15027 2016-05-12 Richard Biener <rguenther@suse.de>
15028
15029 PR tree-optimization/71059
15030 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
15031 nary before looking up or entering the expression into the VN
15032 hashes.
15033 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
15034 Make sure to re-use NARYs without result as inserted by
15035 phi-translation.
15036
15037 2016-05-12 Richard Biener <rguenther@suse.de>
15038
15039 PR tree-optimization/71062
15040 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
15041 field.
15042 * tree-ssa-structalias.c (set_uids_in_ptset): Set
15043 vars_contains_restrict if the var is a restrict tag.
15044 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
15045 do not disambiguate pointers against it.
15046 (dump_points_to_solution): Re-structure and adjust for new
15047 vars_contains_restrict flag.
15048 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
15049
15050 2016-05-12 Martin Liska <mliska@suse.cz>
15051
15052 * doc/invoke.texi: Explain connection between
15053 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
15054
15055 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
15056
15057 PR tree-optimization/71006
15058 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
15059 consider COND_EXPR as a mask producer.
15060
15061 2016-05-12 Marek Polacek <polacek@redhat.com>
15062
15063 PR driver/71063
15064 * opts.c (common_handle_option): Detect missing argument for --help^.
15065
15066 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15067
15068 PR target/70830
15069 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
15070 when popping the PC and within an interrupt handler routine.
15071 Add missing tab to output of "ldmfd".
15072 (output_return_instruction): Output LDMFD with SP update rather
15073 than POP when returning from interrupt handler.
15074
15075 2016-05-12 Jakub Jelinek <jakub@redhat.com>
15076
15077 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
15078 TARGET_64BIT && TARGET_AVX512DQ.
15079 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
15080 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
15081 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
15082 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
15083 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
15084 (*vec_extractv4si_zext): Add avx512dq alternative.
15085 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
15086 use v instead of x constraint in other alternatives where possible.
15087
15088 * config/i386/sse.md (sse2_loadld): Use v instead of x
15089 constraint in alternatives 0,1,4.
15090
15091 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
15092 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
15093 v constraints instead of x and <pinsr_evex_isa> isa attribute.
15094
15095 PR target/71019
15096 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
15097 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
15098 is not emitted unless TARGET_AVX512BW.
15099 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
15100 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
15101 for the result operand.
15102
15103 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
15104 constraint instead of x in avx alternatives. Use maybe_evex instead
15105 of vex prefix.
15106
15107 * config/i386/constraints.md (Yv): New constraint.
15108 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
15109 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
15110 * config/i386/i386.md (avx512fvecmode): New mode attr.
15111 (*pushtf): Use v constraint instead of x.
15112 (*movtf_internal): Likewise. For TARGET_AVX512VL and
15113 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
15114 (*absneg<mode>2): Use Yv constraint instead of x constraint.
15115 (*absnegtf2_sse): Likewise.
15116 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
15117 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
15118 avx512f alternatives.
15119 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
15120
15121 2016-05-12 Richard Biener <rguenther@suse.de>
15122
15123 PR tree-optimization/71060
15124 * tree-data-ref.c (initialize_data_dependence_relation): Do not
15125 require exact match of DR_BASE_OBJECT but only matching address and
15126 type.
15127
15128 2016-05-12 Richard Biener <rguenther@suse.de>
15129
15130 PR tree-optimization/70986
15131 * cfganal.c: Include cfgloop.h.
15132 (dfs_find_deadend): Prefer to take edges exiting loops.
15133
15134 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15135
15136 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
15137 compile and run time.
15138
15139 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
15140
15141 PR c/43651
15142 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
15143
15144 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
15145
15146 * config/i386/i386.c (legitimize_pic_address): Use
15147 copy_to_suggested_reg instead of gen_movsi.
15148
15149 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15150
15151 * config/rs6000/predicates.md (quad_memory_operand): Move most of
15152 the code into quad_address_p and call it to share code with
15153 vsx_quad_dform_memory_operand.
15154 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
15155 d-form support.
15156 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
15157 bit instead of being a separate word. Split -mpower9-dform into
15158 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15159 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
15160 for the register class supporting 128-bit quad word memory offsets.
15161 (mode_supports_vsx_dform_quad): Helper function to return if the
15162 register class uses quad word memory offsets.
15163 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
15164 (rs6000_debug_reg_global): Always print if we are using LRA or not.
15165 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
15166 instructions are enabled, set up the appropriate addr_masks for
15167 128-bit types.
15168 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
15169 -mpower9-dform-scalar, instead of -mpower9-dform.
15170 (rs6000_option_override_internal): Split -mpower9-dform into two
15171 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
15172 -mpower9-dform switch sets or clears both. If we are not using
15173 the LRA register allocator, do not enable -mpower9-dform-vector by
15174 default. If we are using LRA, enable -mpower9-dform-vector and
15175 -mvsx-timode if it is appropriate. Issue a warning if either
15176 -mpower9-dform-vector or -mvsx-timode are explicitly used without
15177 enabling LRA.
15178 (quad_address_offset_p): New helper function to return if the
15179 offset is legal for quad word memory instructions.
15180 (quad_address_p): New function to determin if GPR or vector
15181 register quad word memory addresses are legal.
15182 (mem_operand_gpr): Validate quad word address offsets.
15183 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
15184 d-form (register + offset) instructions.
15185 (offsettable_ok_by_alignment): Likewise.
15186 (rs6000_legitimate_offset_address_p): Likewise.
15187 (legitimate_lo_sum_address_p): Likewise.
15188 (rs6000_legitimize_address): Likewise.
15189 (rs6000_legitimize_reload_address): Add more debug statements for
15190 -mdebug=addr.
15191 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
15192 d-form instructions.
15193 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
15194 d-form instructions. Distinguish different cases in debug
15195 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
15196 d-form instructions.
15197 (rs6000_preferred_reload_class): Likewise.
15198 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
15199 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
15200 of the ISA 2.06 indexed memory instructions.
15201 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
15202 use them to save/restore the saved vector registers instead of
15203 using Altivec instructions.
15204 (rs6000_emit_epilogue): Likewise.
15205 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
15206 (rs6000_opt_masks): Split -mpower9-dform into
15207 -mpower9-dform-scalar and -mpower9-dform-vector.
15208 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
15209 was not selected.
15210 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
15211 ISA 3.0 vector indexed memory instructions, and fold the code into
15212 the normal mov<mode> patterns.
15213 (p9_vecstore_<mode>): Likewise.
15214 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
15215 instructions.
15216 (vsx_movti_64bit): Likewise.
15217 (vsx_movti_32bit): Likewise.
15218 * config/rs6000/constraints.md (wO constraint): New constraint for
15219 ISA 3.0 vector d-form support.
15220 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
15221 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
15222 include -mpower9-dform-vector until we switch over to LRA.
15223 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
15224 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15225 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
15226 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
15227 for -mpower9-dform and -mlra.
15228 * doc/md.texi (wO constraint): Document wO constraint.
15229
15230 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
15231
15232 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
15233 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
15234 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
15235 Move handling of non-insn arguments inline into the sole user:
15236 (output_trans_func): ...here.
15237 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
15238 in emitted function prototype.
15239 (output_internal_insn_latency_func): Ditto. Simplify.
15240 (output_internal_maximal_insn_latency_func): Ditto. Delete
15241 always-unused argument.
15242 (output_insn_latency_func): Ditto.
15243 (output_maximal_insn_latency_func): Ditto.
15244
15245 2016-05-11 Richard Biener <rguenther@suse.de>
15246
15247 PR tree-optimization/71055
15248 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
15249 sth with precision not equal to access size verify we don't chop
15250 off bits.
15251
15252 2016-05-11 Richard Biener <rguenther@suse.de>
15253
15254 PR debug/71057
15255 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
15256 (dwarf2out_finish): Move retry_incomplete_types call ...
15257 (dwarf2out_early_finish): ... here.
15258
15259 2016-05-11 Richard Biener <rguenther@suse.de>
15260
15261 PR middle-end/71002
15262 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
15263 if the langhook insists on it.
15264 * fold-const.c (make_bit_field_ref): Add arg for the original
15265 reference and preserve its alias-set.
15266 (decode_field_reference): Take exp by reference and adjust it
15267 to the original memory reference.
15268 (optimize_bit_field_compare): Adjust callers.
15269 (fold_truth_andor_1): Likewise.
15270 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
15271
15272 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
15273
15274 PR middle-end/70807
15275 * cfgrtl.h (delete_insn_and_edges): Now return bool.
15276 * cfgrtl.c (delete_insn_and_edges): Likewise.
15277 * config/i386/i386.c (convert_scalars_to_vector): Remove
15278 redundant code.
15279 * cse.c (cse_insn): Compute cse_cfg_altered.
15280 (delete_trivially_dead_insns): Likewise.
15281 (cse_cc_succs): Likewise.
15282 (rest_of_handle_cse): Free dominance info if required.
15283 (rest_of_handle_cse2): Likewise.
15284 (rest_of_handle_cse_after_global_opts): Likewise.
15285
15286 2016-05-11 Alan Modra <amodra@gmail.com>
15287
15288 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
15289 abi_v4_pass_in_fpr): New functions.
15290 (rs6000_function_arg_boundary): Exclude complex IBM long double
15291 from 64-bit alignment when ABI_V4.
15292 (rs6000_function_arg, rs6000_function_arg_advance_1,
15293 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
15294
15295 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
15296
15297 PR rtl-optimization/71028
15298 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
15299 jump with just a return in the fallthrough block if the branch
15300 block contains just a return as well.
15301
15302 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
15303
15304 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
15305 * match.pd ((X & Y) ^ Y): ... this.
15306 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
15307 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
15308
15309 2016-05-10 David Malcolm <dmalcolm@redhat.com>
15310
15311 * read-md.c (require_char_ws): New function.
15312 (read_string): Simplify using require_char_ws.
15313 (handle_constants): Likewise.
15314 (handle_enum): Likewise.
15315 (handle_file): Likewise.
15316 * read-md.h (require_char_ws): New declaration.
15317 * read-rtl.c (read_conditions): Simplify using require_char_ws.
15318 (read_mapping): Likewise.
15319 (read_rtx_code): Likewise.
15320 (read_nested_rtx): Likewise.
15321
15322 2016-05-10 James Norris <jnorris@codesourcery.com>
15323
15324 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
15325 if offloading is enabled and -fopenacc or -fopenmp is specified.
15326 (CRTOFFLOADEND): Likewise.
15327 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
15328 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
15329
15330 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
15331
15332 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
15333 gotoff_operand code paths. Use copy_to_suggested_regs and
15334 expand_simple_binop where appropriate. Cleanup.
15335
15336 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15337
15338 PR target/70799
15339 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
15340 integer constants.
15341 (dimode_scalar_chain::vector_const_cost): New.
15342 (dimode_scalar_chain::compute_convert_gain): Handle constants.
15343 (dimode_scalar_chain::convert_op): Likewise.
15344 (dimode_scalar_chain::convert_insn): Likewise.
15345
15346 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
15347
15348 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
15349 unary operation, not a binary one.
15350
15351 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15352
15353 PR middle-end/70877
15354 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
15355 calls with type casted fndecl.
15356
15357 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15358
15359 PR tree-optimization/70786
15360 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
15361 * calls.c (initialize_argument_information): Bind bounds
15362 with corresponding args passed by reference.
15363
15364 2016-05-10 Jakub Jelinek <jakub@redhat.com>
15365
15366 PR target/70927
15367 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
15368 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
15369 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
15370 accordingly.
15371
15372 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15373
15374 PR target/70963
15375 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
15376 code for a zero scale factor.
15377 (vsx_xvcvdpuxds_scale): Likewise.
15378
15379 2016-05-10 David Malcolm <dmalcolm@redhat.com>
15380
15381 * diagnostic-show-locus.c (layout::layout): Call show_ruler
15382 if show_ruler_p was set on the context.
15383 (layout::show_ruler): New method.
15384 * diagnostic.h (struct diagnostic_context): Add field
15385 "show_ruler_p".
15386
15387 2016-05-10 Richard Biener <rguenther@suse.de>
15388
15389 PR tree-optimization/71039
15390 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
15391 (chk_uses): New function.
15392 (propagate_with_phi): Verify we can safely replicate the lhs of an
15393 aggregate assignment on all incoming edges.
15394
15395 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
15396
15397 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
15398 Forward declare.
15399 (rx_atomic_sequence): New class.
15400 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
15401 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
15402 non-inline.
15403 (rx_atomic_sequence::rx_atomic_sequence,
15404 rx_atomic_sequence::~rx_atomic_sequence): New functions.
15405 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
15406 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
15407 CTRLREG_INTB): New constants.
15408 (FETCHOP): New code iterator.
15409 (fethcop_name, fetchop_name2): New iterator code attributes.
15410 (QIHI): New mode iterator.
15411 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
15412 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
15413 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
15414
15415 2016-05-10 Martin Liska <mliska@suse.cz>
15416
15417 * tree-inline.c (remap_dependence_clique): Do not remap
15418 debugging statements.
15419
15420 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15421
15422 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
15423 ("*fixuns_truncdfdi2_z13")
15424 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
15425 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
15426 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
15427
15428 2016-05-10 Richard Biener <rguenther@suse.de>
15429
15430 PR tree-optimization/70497
15431 PR tree-optimization/28367
15432 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
15433 split out from ...
15434 (visit_reference_op_load): ... here.
15435 (vn_reference_lookup_3): Use it to handle subreg-like accesses
15436 with simplified BIT_FIELD_REFs.
15437 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
15438 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
15439 correctly.
15440
15441 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
15442
15443 * dwarf2out.c (add_abstract_origin_attribute): Adjust
15444 documentation comment. For BLOCK nodes, add a
15445 DW_AT_abstract_origin attribute that points to the DIE generated
15446 for the origin BLOCK.
15447 (gen_lexical_block_die): Call add_abstract_origin_attribute for
15448 blocks from inlined functions.
15449
15450 2016-05-10 Alan Modra <amodra@gmail.com>
15451
15452 PR target/70947
15453 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
15454 regrename modifying insns saving lr before __morestack call.
15455 * config/rs6000/rs6000.md (split_stack_return): Similarly for
15456 insns restoring lr after __morestack call.
15457
15458 2016-05-09 Jakub Jelinek <jakub@redhat.com>
15459
15460 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
15461 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
15462 expanders.
15463 * config/i386/sse.md (vec_interleave_high<mode>,
15464 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
15465 <avx512>_vpermt2var<mode>3_maskz): Likewise.
15466
15467 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
15468
15469 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
15470 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
15471 parallel reassociation for power8 and forward.
15472
15473 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
15474
15475 * config/i386/i386.md (absneg splitters with general regs): Use
15476 general_reg_operand predicate.
15477 (btsq peephole2): Use x86_64_immediate_operand to check if new
15478 value is suitable for immediate operand. Generate emitted insn
15479 using RTL expressions.
15480 (btcq peephole2): Ditto.
15481 (btrq peephole2): Ditto. Generate correct immediate operand
15482 for AND masking.
15483
15484 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
15485
15486 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
15487 bitpos.
15488
15489 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
15490
15491 * tree-affine.c (wide_int_constant_multiple_p): Add missing
15492 pointer dereference.
15493
15494 2016-05-09 Richard Biener <rguenther@suse.de>
15495
15496 PR tree-optimization/70985
15497 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
15498 op0 isn't a gimple register.
15499
15500 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
15501
15502 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
15503 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
15504 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
15505 (i6400_fpu_mult): New cpu units.
15506 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
15507 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
15508 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
15509 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
15510 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
15511 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
15512 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
15513 (i6400_msa_long_float4, i6400_msa_long_float5)
15514 (i6400_msa_long_float8, i6400_msa_fdiv_df)
15515 (i6400_msa_fdiv_sf): New reservations.
15516 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
15517 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
15518 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
15519 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
15520 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
15521 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
15522 (msa_short_cmp, msa_short_float2, msa_short_logic3)
15523 (msa_short_store4, msa_long_load, msa_short_store)
15524 (msa_long_logic, msa_long_float2, msa_long_float4)
15525 (msa_long_float5, msa_long_float8, msa_long_mult)
15526 (msa_long_fdiv, msa_long_div): New reservations.
15527
15528 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
15529 Sameera Deshpande <sameera.deshpande@imgtec.com>
15530 Matthew Fortune <matthew.fortune@imgtec.com>
15531 Graham Stott <graham.stott@imgtec.com>
15532 Chao-ying Fu <chao-ying.fu@imgtec.com>
15533
15534 * config.gcc: Add MSA header file for mips*-*-* target.
15535 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
15536 (Ubv8i, Urv8): New constraints.
15537 * config/mips/mips-ftypes.def: Add function types for MSA
15538 builtins.
15539 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
15540 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
15541 * config/mips/mips-msa.md: New file.
15542 * config/mips/mips-protos.h
15543 (mips_split_128bit_const_insns): New prototype.
15544 (mips_msa_idiv_insns): Likewise.
15545 (mips_split_128bit_move): Likewise.
15546 (mips_split_128bit_move_p): Likewise.
15547 (mips_split_msa_copy_d): Likewise.
15548 (mips_split_msa_insert_d): Likewise.
15549 (mips_split_msa_fill_d): Likewise.
15550 (mips_expand_msa_branch): Likewise.
15551 (mips_const_vector_same_val_p): Likewise.
15552 (mips_const_vector_same_bytes_p): Likewise.
15553 (mips_const_vector_same_int_p): Likewise.
15554 (mips_const_vector_shuffle_set_p): Likewise.
15555 (mips_const_vector_bitimm_set_p): Likewise.
15556 (mips_const_vector_bitimm_clr_p): Likewise.
15557 (mips_msa_vec_parallel_const_half): Likewise.
15558 (mips_msa_output_division): Likewise.
15559 (mips_ldst_scaled_shift): Likewise.
15560 (mips_expand_vec_cond_expr): Likewise.
15561 * config/mips/mips.c (enum mips_builtin_type): Add
15562 MIPS_BUILTIN_MSA_TEST_BRANCH.
15563 (mips_gen_const_int_vector_shuffle): New prototype.
15564 (mips_const_vector_bitimm_set_p): New function.
15565 (mips_const_vector_bitimm_clr_p): Likewise.
15566 (mips_const_vector_same_val_p): Likewise.
15567 (mips_const_vector_same_bytes_p): Likewise.
15568 (mips_const_vector_same_int_p): Likewise.
15569 (mips_const_vector_shuffle_set_p): Likewise.
15570 (mips_symbol_insns): Forbid loading symbols via immediate for
15571 MSA.
15572 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
15573 stores.
15574 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
15575 MSA.
15576 (mips_lx_address_p): Add support load indexed address for MSA.
15577 (mips_address_insns): Add calculation of instructions needed for
15578 stores and loads for MSA.
15579 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
15580 CONST_VECTOR for MSA and let it fall through.
15581 (mips_ldst_scaled_shift): New function.
15582 (mips_subword_at_byte): Likewise.
15583 (mips_msa_idiv_insns): Likewise.
15584 (mips_legitimize_move): Validate MSA moves.
15585 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
15586 calculation of costs for MSA division.
15587 (mips_split_move_p): Check if MSA moves need splitting.
15588 (mips_split_move): Split MSA moves if necessary.
15589 (mips_split_128bit_move_p): New function.
15590 (mips_split_128bit_move): Likewise.
15591 (mips_split_msa_copy_d): Likewise.
15592 (mips_split_msa_insert_d): Likewise.
15593 (mips_split_msa_fill_d): Likewise.
15594 (mips_output_move): Handle MSA moves.
15595 (mips_expand_msa_branch): New function.
15596 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
15597 Reinstate 'y' modifier.
15598 (mips_file_start): Add MSA .gnu_attribute.
15599 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
15600 FPRs.
15601 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
15602 (mips_class_max_nregs): Add register size for MSA supported mode.
15603 (mips_cannot_change_mode_class): Allow conversion between MSA
15604 vector modes and TImode.
15605 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
15606 instruction.
15607 (mips_secondary_reload_class): Force MSA loads/stores via memory.
15608 (mips_preferred_simd_mode): Add preffered modes for MSA.
15609 (mips_vector_mode_supported_p): Add MSA supported modes.
15610 (mips_autovectorize_vector_sizes): New function.
15611 (mips_msa_output_division): Likewise.
15612 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
15613 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
15614 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
15615 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
15616 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
15617 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
15618 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
15619 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
15620 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
15621 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
15622 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
15623 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
15624 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
15625 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
15626 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
15627 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
15628 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
15629 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
15630 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
15631 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
15632 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
15633 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
15634 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
15635 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
15636 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
15637 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
15638 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
15639 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
15640 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
15641 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
15642 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
15643 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
15644 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
15645 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
15646 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
15647 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
15648 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
15649 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
15650 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
15651 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
15652 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
15653 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
15654 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
15655 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
15656 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
15657 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
15658 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
15659 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
15660 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
15661 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
15662 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
15663 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
15664 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
15665 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
15666 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
15667 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
15668 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
15669 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
15670 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
15671 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
15672 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
15673 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
15674 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
15675 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
15676 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
15677 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
15678 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
15679 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
15680 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
15681 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
15682 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
15683 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
15684 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
15685 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
15686 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
15687 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
15688 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
15689 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
15690 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
15691 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
15692 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
15693 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
15694 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
15695 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
15696 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
15697 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
15698 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
15699 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
15700 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
15701 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
15702 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
15703 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
15704 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
15705 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
15706 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
15707 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
15708 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
15709 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
15710 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
15711 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
15712 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
15713 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
15714 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
15715 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
15716 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
15717 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
15718 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
15719 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
15720 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
15721 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
15722 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
15723 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
15724 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
15725 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
15726 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
15727 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
15728 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
15729 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
15730 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
15731 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
15732 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
15733 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
15734 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
15735 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
15736 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
15737 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
15738 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
15739 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
15740 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
15741 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
15742 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
15743 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
15744 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
15745 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
15746 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
15747 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
15748 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
15749 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
15750 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
15751 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
15752 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
15753 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
15754 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
15755 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
15756 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
15757 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
15758 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
15759 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
15760 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
15761 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
15762 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
15763 move_v builtins.
15764 (mips_get_builtin_decl_index): New array.
15765 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
15766 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
15767 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
15768 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
15769 (mips_init_builtins): Initialize mips_get_builtin_decl_index
15770 array.
15771 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
15772 hook.
15773 (mips_expand_builtin_insn): Prepare operands for
15774 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
15775 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
15776 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
15777 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
15778 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
15779 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
15780 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
15781 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
15782 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
15783 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
15784 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
15785 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
15786 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
15787 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
15788 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
15789 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
15790 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
15791 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
15792 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
15793 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
15794 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
15795 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
15796 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
15797 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
15798 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
15799 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
15800 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
15801 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
15802 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
15803 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
15804 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
15805 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
15806 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
15807 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
15808 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
15809 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
15810 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
15811 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
15812 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
15813 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
15814 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
15815 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
15816 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
15817 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
15818 These are set implicitly and an error is reported if overridden.
15819 (mips_expand_builtin_msa_test_branch): New function.
15820 (mips_expand_msa_shuffle): Likewise.
15821 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
15822 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
15823 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
15824 (mips_expand_vec_unpack): Add support for MSA.
15825 (mips_expand_vector_init): Likewise.
15826 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
15827 instead of const0_rtx.
15828 (mips_msa_vec_parallel_const_half): New function.
15829 (mips_gen_const_int_vector): Likewise.
15830 (mips_gen_const_int_vector_shuffle): Likewise.
15831 (mips_expand_msa_cmp): Likewise.
15832 (mips_expand_vec_cond_expr): Likewise.
15833 * config/mips/mips.h
15834 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
15835 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
15836 specified.
15837 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
15838 (ISA_HAS_MSA): New macro.
15839 (UNITS_PER_MSA_REG): Likewise.
15840 (BITS_PER_MSA_REG): Likewise.
15841 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
15842 (MSA_REG_FIRST): New macro.
15843 (MSA_REG_LAST): Likewise.
15844 (MSA_REG_NUM): Likewise.
15845 (MSA_REG_P): Likewise.
15846 (MSA_REG_RTX_P): Likewise.
15847 (MSA_SUPPORTED_MODE_P): Likewise.
15848 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
15849 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
15850 * config/mips/mips.md: Include mips-msa.md.
15851 (alu_type): Add simd_add.
15852 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
15853 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
15854 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
15855 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
15856 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
15857 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
15858 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
15859 simd_move, simd_load, simd_store. Choose "multi" for moves
15860 for "qword_mode".
15861 (qword_mode): New attribute.
15862 (insn_count): Add instruction count for quad moves.
15863 Increase the count for MIPS SIMD division.
15864 (UNITMODE): Add UNITMODEs for vector types.
15865 (addsub): New code iterator.
15866 * config/mips/mips.opt (mmsa): New option.
15867 * config/mips/msa.h: New file.
15868 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
15869 specified.
15870 * config/mips/mti-linux.h: Likewise.
15871 * config/mips/predicates.md
15872 (const_msa_branch_operand): New constraint.
15873 (const_uimm3_operand): Likewise.
15874 (const_uimm4_operand): Likewise.
15875 (const_uimm5_operand): Likewise.
15876 (const_uimm8_operand): Likewise.
15877 (const_imm5_operand): Likewise.
15878 (aq10b_operand): Likewise.
15879 (aq10h_operand): Likewise.
15880 (aq10w_operand): Likewise.
15881 (aq10d_operand): Likewise.
15882 (const_m1_operand): Likewise.
15883 (reg_or_m1_operand): Likewise.
15884 (const_exp_2_operand): Likewise.
15885 (const_exp_4_operand): Likewise.
15886 (const_exp_8_operand): Likewise.
15887 (const_exp_16_operand): Likewise.
15888 (const_vector_same_val_operand): Likewise.
15889 (const_vector_same_simm5_operand): Likewise.
15890 (const_vector_same_uimm5_operand): Likewise.
15891 (const_vector_same_uimm6_operand): Likewise.
15892 (const_vector_same_uimm8_operand): Likewise.
15893 (par_const_vector_shf_set_operand): Likewise.
15894 (reg_or_vector_same_val_operand): Likewise.
15895 (reg_or_vector_same_simm5_operand): Likewise.
15896 (reg_or_vector_same_uimm6_operand): Likewise.
15897 * doc/extend.texi (MIPS SIMD Architecture Functions): New
15898 section.
15899 * doc/invoke.texi (-mmsa): Document new option.
15900
15901 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15902
15903 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
15904 * configure: Regenerate.
15905 * config.in: Regenerate.
15906 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
15907 on -fvtable-verify.
15908 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
15909 (ENDFILE_VTV_SPEC): Define.
15910
15911 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
15912
15913 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
15914 registers in all interrupt handlers if necessary.
15915 (rl78_option_override): Add warning.
15916 (MUST_SAVE_MDUC_REGISTERS): New macro.
15917 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
15918 * config/rl78/rl78.c (check_mduc_usage): New function.
15919 (mduc_regs): New structure to hold MDUC register data.
15920 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
15921 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
15922 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
15923 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
15924 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
15925 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
15926
15927 2016-05-09 Bin Cheng <bin.cheng@arm.com>
15928
15929 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
15930 (tree-ssa-loop-niter.h): Ditto.
15931 (idx_within_array_bound, ref_within_array_bound): New functions.
15932 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
15933 Factor out check on writable base object to ...
15934 (base_object_writable): ... here.
15935
15936 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15937
15938 * config/arm/arm.md (probe_stack): Add modes to set source
15939 and destination.
15940
15941 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
15942
15943 * regrename.c (base_reg_class_for_rename): New static function.
15944 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
15945
15946 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
15947
15948 * cgraph.c (thunk_adjust): Export.
15949 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
15950 * cgraphunit.c (thunk_adjust): Export.
15951 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
15952 thunks.
15953 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
15954 inlinable.
15955 * tree-inline.c (expand_call_inline): Expand thunks inline.
15956
15957 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
15958
15959 PR target/70998
15960 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
15961 (*sse2_vd_cvtss2sd): Ditto.
15962 * config/i386/i386.md
15963 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
15964 Generate *sse2_vd_cvtsd2ss pattern.
15965 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
15966 Generate *sse2_vd_cvtss2sd pattern.
15967
15968 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
15969
15970 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
15971 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
15972 users.
15973
15974 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
15975
15976 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
15977 * config/sh/sh.c: Define and declare variables on first use throughout
15978 the file.
15979 (current_function_interrupt): Change to bool type.
15980 (frame_insn): Rename to emit_frame_insn and update users.
15981 (push_regs): Use bool for 'interrupt_handler' argument.
15982 (save_schedule_s): Remove.
15983 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
15984 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
15985 targetm.asm_out.unaligned_op.di.
15986 (gen_far_branch): Remove redundant forward declaration.
15987 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
15988 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
15989 (sh_set_return_address, sh_function_ok_for_sibcall,
15990 scavenge_reg): Update comments.
15991 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
15992 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
15993 (sh_attr_renesas_p): Remove unnecessary parentheses.
15994 (branch_dest): Simplify.
15995 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
15996 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
15997 (CUMULATIVE_ARGS): Change macro to typedef.
15998 (current_function_interrupt): Change to bool type.
15999 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
16000 Surround with __cplusplus ifdef.
16001 (sh_compare_op0, sh_compare_op1): Remove.
16002 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
16003
16004 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
16005
16006 * config/arm/arm.md: (arch): Add neon.
16007 (arch_enabled): Return yes for arch neon when TARGET_NEON.
16008 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
16009 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
16010 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
16011 attributes for alt renumbering. Mark alt 3 as non-predicable.
16012 (thumb2_movdf_vfp): Likewise.
16013
16014 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
16015
16016 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
16017 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
16018 (*andqi_1): Add preferred_for_speed attribute to disparage
16019 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
16020 (*<code>qi_1): Ditto.
16021 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
16022 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
16023 (*ashlqi3_1): Ditto.
16024 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
16025 Add preferred_for_size attribute to disparage alternative 0 and
16026 preferred_for_speed attribute to disparage alternative 1 for
16027 TARGET_PARTIAL_REG_STALL targets.
16028
16029 2016-05-07 Tom de Vries <tom@codesourcery.com>
16030
16031 PR tree-optimization/70956
16032 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
16033 def.
16034
16035 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16036
16037 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
16038 * config/sh/sh.c (sh_cbranch_distance): Implement it.
16039 * config/sh/sh.md (branch_zero): Remove define_attr.
16040 (define_delay): Disable delay slot if branch distance is one insn.
16041
16042 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16043
16044 * config/i386/i386.md (LEAMODE): New mode attribute.
16045 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
16046 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
16047 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
16048 operand 2 predicate.
16049 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
16050 (*lea<mode>_general_3): Ditto.
16051 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
16052
16053 2016-05-06 Jakub Jelinek <jakub@redhat.com>
16054
16055 * genmddump.c (main): Convert argv from char ** to const char **.
16056
16057 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16058
16059 * coretypes.h (OVERRIDE): New macro.
16060 (FINAL): New macro.
16061
16062 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
16063
16064 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
16065 allow coalescing if the types are compatible.
16066
16067 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16068
16069 * pass_manager.h (pass_manager::register_pass_name): New method.
16070 (pass_manager::get_pass_by_name): New method.
16071 (pass_manager::create_pass_tab): New method.
16072 (pass_manager::m_name_to_pass_map): New field.
16073 * passes.c (name_to_pass_map): Delete global in favor of field
16074 "m_name_to_pass_map" of pass_manager.
16075 (register_pass_name): Rename from a function to...
16076 (pass_manager::register_pass_name): ...this method, updating
16077 for renaming of global "name_to_pass_map" to field
16078 "m_name_to_pass_map".
16079 (create_pass_tab): Rename from a function to...
16080 (pass_manager::create_pass_tab): ...this method, updating
16081 for renaming of global "name_to_pass_map" to field.
16082 (get_pass_by_name): Rename from a function to...
16083 (pass_manager::get_pass_by_name): ...this method.
16084 (enable_disable_pass): Convert use of get_pass_by_name to
16085 a method call, locating the pass_manager singleton.
16086
16087 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16088
16089 * genattr-common.c (main): Convert argv from char ** to const char **.
16090 * genattr.c (main): Likewise.
16091 * genattrtab.c (main): Likewise.
16092 * genautomata.c (initiate_automaton_gen): Likewise.
16093 (main): Likewise.
16094 * gencodes.c (main): Likewise.
16095 * genconditions.c (main): Likewise.
16096 * genconfig.c (main): Likewise.
16097 * genconstants.c (main): Likewise.
16098 * genemit.c (main): Likewise.
16099 * genenums.c (main): Likewise.
16100 * genextract.c (main): Likewise.
16101 * genflags.c (main): Likewise.
16102 * genmddeps.c (main): Likewise.
16103 * genopinit.c (main): Likewise.
16104 * genoutput.c (main): Likewise.
16105 * genpeep.c (main): Likewise.
16106 * genpreds.c (main): Likewise.
16107 * genrecog.c (main): Likewise.
16108 * gensupport.c (init_rtx_reader_args_cb): Likewise.
16109 (init_rtx_reader_args): Likewise.
16110 * gensupport.h (init_rtx_reader_args_cb): Likewise.
16111 (init_rtx_reader_args): Likewise.
16112 * gentarget-def.c (main): Likewise.
16113 * read-md.c (read_md_files): Likewise.
16114 * read-md.h (read_md_files): Likewise.
16115
16116 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16117
16118 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
16119 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
16120 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
16121 Remove unused predicate.
16122 (register_and_not_fp_reg_operand): Ditto.
16123
16124 2016-05-06 Martin Liska <mliska@suse.cz>
16125
16126 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
16127 instead of vec as the vector is local to the function.
16128
16129 2016-05-06 Jakub Jelinek <jakub@redhat.com>
16130
16131 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
16132 avx512bw alternative.
16133
16134 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
16135 before the ashr<mode>3 pattern.
16136
16137 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
16138 v instead of x in vex or maybe_vex alternatives, use
16139 maybe_evex instead of vex in prefix.
16140
16141 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
16142 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
16143 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
16144 in vex or maybe_vex alternatives, use maybe_evex instead of vex
16145 in prefix.
16146
16147 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
16148 v instead of x in vex or maybe_vex alternatives, use
16149 maybe_evex instead of vex in prefix.
16150
16151 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
16152 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
16153 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
16154 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
16155 alternatives, use maybe_evex instead of vex in prefix.
16156
16157 * config/i386/sse.md (vec_interleave_lowv4sf,
16158 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
16159 v instead of x in vex or maybe_vex alternatives, use
16160 maybe_evex instead of vex in prefix.
16161
16162 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
16163 v instead of x in vex or maybe_vex alternatives, use
16164 maybe_evex instead of vex in prefix.
16165
16166 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
16167 v constraint instead of x.
16168
16169 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
16170
16171 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
16172 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
16173 equality first.
16174
16175 2016-05-06 Richard Biener <rguenther@suse.de>
16176
16177 PR tree-optimization/70948
16178 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16179 Properly clobber all fields of va_list for __builtin_va_start.
16180
16181 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
16182
16183 PR debug/70935
16184 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
16185 loop latch destination.
16186
16187 2016-05-06 Martin Liska <mliska@suse.cz>
16188
16189 * tree-ssa-uninit.c: Apply manual changes
16190 to the GNU coding style.
16191 (prune_uninit_phi_opnds): Rename from
16192 prune_uninit_phi_opnds_in_unrealizable_paths.
16193
16194 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16195
16196 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
16197 mspace): Remove deprecated options.
16198 * doc/invoke.texi (SH options): Remove -mspace.
16199
16200 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16201
16202 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
16203
16204 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16205
16206 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
16207 corresponding combine split pattern.
16208
16209 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16210
16211 PR target/58219
16212 * config/sh/predicates.md (long_displacement_mem_operand): New.
16213 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
16214 Add movi20, movi20s alternatives. Adjust length attribute for
16215 alternatives.
16216 (movsi_ie): Allow for any FPU. Adjust length attribute for
16217 alternatives.
16218 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
16219 attribute for alternatives.
16220 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
16221 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
16222 length attribute for alternatives.
16223
16224 2016-05-06 Richard Biener <rguenther@suse.de>
16225
16226 PR tree-optimization/70960
16227 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
16228
16229 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16230
16231 PR target/52933
16232 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
16233 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
16234
16235 2016-05-06 Marek Polacek <polacek@redhat.com>
16236
16237 PR sanitizer/70875
16238 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
16239
16240 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16241
16242 PR target/54089
16243 * config/sh/sh.md (*rotcr): Add another variant.
16244
16245 2016-05-06 Richard Biener <rguenther@suse.de>
16246
16247 PR middle-end/70931
16248 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
16249
16250 2016-05-06 Richard Biener <rguenther@suse.de>
16251
16252 PR middle-end/70941
16253 * fold-const.c (split_tree): Always convert to the original type
16254 before negating.
16255
16256 2016-05-06 Richard Biener <rguenther@suse.de>
16257
16258 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
16259 (fwprop_addr): Likewise.
16260
16261 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16262
16263 PR target/70873
16264 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
16265 New prototype.
16266 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
16267 * config/i386/i386.md (push mem splitter): Use find_constant_src in
16268 the splitter condition.
16269 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
16270 the splitter condition.
16271 (FP float_extend load splitter): Ditto.
16272
16273 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
16274
16275 * config/i386/i386.md (peehole2 patterns): Change true_regnum
16276 to REGNO in all peephole2 patterns.
16277 (post-reload splitters): Change true_regnum to REGNO in
16278 post-reload splitters.
16279 (zero_extend splitters): Use general_reg_operand and
16280 nonimmediate_gr_operand predicates.
16281
16282 2016-05-05 Jakub Jelinek <jakub@redhat.com>
16283
16284 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
16285 v constraint instead of x.
16286
16287 2016-05-05 Alan Modra <amodra@gmail.com>
16288
16289 PR target/68662
16290 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
16291 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
16292 TARGET_NO_FP_IN_TOC for -mrelocatable.
16293 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
16294 TARGET_RELOCATABLE test.
16295 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16296 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16297 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16298 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16299 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16300 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16301 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16302 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16303 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
16304 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
16305 Likewise.
16306 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
16307 (rs6000_stack_info): Likewise.
16308 (rs6000_elf_asm_out_constructor): Likewise.
16309 (rs6000_elf_asm_out_destructor): Likewise.
16310 (rs6000_elf_declare_function_name): Likewise.
16311 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
16312 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
16313 Don't define.
16314
16315 2016-05-05 Alan Modra <amodra@gmail.com>
16316
16317 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
16318
16319 2016-05-05 Alan Modra <amodra@gmail.com>
16320
16321 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
16322 out-of-line gpr restore for one or two regs if that would add
16323 a save of lr.
16324
16325 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
16326
16327 PR target/70873
16328 * config/i386/i386.md
16329 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
16330 Change to post-epilogue_completed late splitter. Use sse_reg_operand
16331 as operand 0 predicate.
16332 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
16333 Ditto.
16334 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
16335 Ditto. Emit the pattern using RTX.
16336
16337 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
16338 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
16339 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
16340 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
16341 Ditto.
16342 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
16343 sse_reg_operand as operand 0 predicate.
16344
16345 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
16346 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
16347 instead of gen_rtx_REG.
16348 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
16349 Ditto.
16350
16351 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16352
16353 * function.c (emit_use_return_register_into_block): Delete.
16354 (gen_return_pattern): Delete.
16355 (emit_return_into_block): Delete.
16356 (active_insn_between): Delete.
16357 (convert_jumps_to_returns): Delete.
16358 (emit_return_for_exit): Delete.
16359 (thread_prologue_and_epilogue_insns): Delete all code dealing with
16360 simple_return for shrink-wrapped blocks.
16361 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
16362 end of blocks that need one.
16363 (get_unconverted_simple_return): Delete.
16364 (convert_to_simple_return): Delete.
16365 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
16366 (convert_to_simple_return): Ditto.
16367
16368 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16369
16370 * cfgcleanup.c (bb_is_just_return): New function.
16371 (try_optimize_cfg): Simplify jumps to return, branches to return,
16372 and branches around return.
16373
16374 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16375
16376 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
16377 branch to a return.
16378
16379 2016-05-04 Jakub Jelinek <jakub@redhat.com>
16380
16381 PR c++/70906
16382 PR c++/70933
16383 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
16384 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
16385 assert flags & OEP_HASH_CHECK, instead of asserting it
16386 never happens. Handle TARGET_EXPR.
16387 * fold-const.c (operand_equal_p): For hash verification,
16388 or in OEP_HASH_CHECK into flags.
16389
16390 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
16391
16392 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
16393 comment.
16394 (compute_samebase_partition_bases): Fix typo.
16395
16396 2016-05-04 Jakub Jelinek <jakub@redhat.com>
16397
16398 * config/i386/sse.md (vec_interleave_highv8sf,
16399 vec_interleave_lowv8sf, vec_interleave_highv4df,
16400 vec_interleave_lowv4df): Remove constraints from expanders.
16401
16402 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
16403
16404 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
16405
16406 * tree-inline.c (expand_call_inline): Fix path dealing with
16407 making lhs of call statement undefined.
16408
16409 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
16410
16411 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
16412 Check availability on NODE, too.
16413 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
16414 (cgraph_node::call_for_symbol_and_aliases): Likewise.
16415 (varpool_node::call_for_symbol_and_aliase): Likewise.
16416 * ipa-pure-const.c (add_new_function): Analyze all bodies.
16417 (propagate_pure_const): Propagate across interposable functions, too.
16418 (skip_function_for_local_pure_const): Do not skip interposable bodies
16419 with aliases.
16420 (pass_local_pure_const::execute): Update.
16421
16422 2016-05-04 Marek Polacek <polacek@redhat.com>
16423
16424 * doc/invoke.texi: Document -Wdangling-else.
16425
16426 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16427
16428 * config.gcc: Error out when conflicting multilib is detected. Do not
16429 loop over multilibs since no combination is legal.
16430
16431 2016-05-04 Alan Modra <amodra@gmail.com>
16432
16433 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
16434 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
16435 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
16436 Align .toc.
16437
16438 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
16439
16440 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
16441 Clean up p5600 comments.
16442
16443 2016-05-04 Richard Biener <rguenther@suse.de>
16444
16445 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
16446 constructor simplifications.
16447 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
16448
16449 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
16450
16451 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
16452 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
16453 result.set_rtx is null instead of aborting.
16454 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
16455 Always enable.
16456 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
16457 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
16458 *mov<mode>_store_postinc): New patterns.
16459
16460 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
16461
16462 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
16463 as commutative. Check both conversions are NOP.
16464 ((A & B) OP (C & B)): Remove.
16465
16466 2016-05-04 Alan Modra <amodra@gmail.com>
16467
16468 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
16469
16470 2016-05-04 Alan Modra <amodra@gmail.com>
16471
16472 PR target/70866
16473 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
16474 when cr2,3,4 are all fixed regs.
16475
16476 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
16477
16478 PR rtl-optimization/57193
16479 * opts.c (default_options_table): Revert OPT_frename_registers change.
16480 * doc/invoke.texi (-frename-registers, -O2): Likewise.
16481
16482 2016-05-03 Martin Sebor <msebor@redhat.com>
16483
16484 PR c++/66561
16485 * builtins.c (fold_builtin_FILE): New function.
16486 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
16487 (fold_builtin_0): Call them.
16488 * gimplify.c (gimplify_call_expr): Remove the handling of
16489 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
16490
16491 PR c++/66561
16492 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
16493 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
16494 constants.
16495
16496 PR c++/66639
16497 * doc/extend.texi (Function Names as Strings): Update __func__,
16498 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
16499 constants.
16500
16501 2016-05-03 Jakub Jelinek <jakub@redhat.com>
16502 Richard Biener <rguenther@suse.de>
16503
16504 PR tree-optimization/70916
16505 * tree-if-conv.c: Include cfganal.h.
16506 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
16507 and remove_fake_exit_edges around the optimization pass.
16508
16509 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
16510
16511 * cgraph.c (symbol_table::create_edge): Set inline_failed.
16512 (cgraph_edge::make_direct): Likewise.
16513 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
16514 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
16515 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
16516 (CIF_THUNK): New code.
16517 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
16518 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
16519 (compute_inline_parameters): Set inline_failed for thunks.
16520 (inline_analyze_function): Cleanup.
16521 * ipa-inline.c (can_inline_edge_p): Do not deal with
16522 call_stmt_cannot_inline_p.
16523 (can_early_inline_edge_p): Likewise.
16524 (early_inliner): Initialize inline_failed.
16525 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
16526
16527 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
16528
16529 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
16530 from nonimm_ssenomem_operand.
16531 (nonimm_ssenomem_operand): New predicate.
16532 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
16533 as operand 0 predicate.
16534 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
16535 Disable unsupported alternatives using "enabled" attribute.
16536 Use register_ssemem_operand as operand 0 predicate.
16537 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
16538
16539 2016-05-03 Marek Polacek <polacek@redhat.com>
16540
16541 PR c/70859
16542 * input.c (expansion_point_location): New function.
16543 * input.h (expansion_point_location): Declare.
16544
16545 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
16546
16547 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
16548 occurence with frame_offset_ ones.
16549
16550 2016-05-03 Alan Modra <amodra@gmail.com>
16551
16552 PR rtl-optimization/70890
16553 * ira.c (combine_and_move_insns): When moving def_insn, remove
16554 equivs on use_insn.
16555
16556 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
16557
16558 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
16559 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
16560 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
16561 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
16562
16563 2016-05-03 Alan Modra <amodra@gmail.com>
16564
16565 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
16566 for SAVE_MULTIPLE/STORE_MULTIPLE.
16567
16568 2016-05-03 Jakub Jelinek <jakub@redhat.com>
16569
16570 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
16571 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
16572
16573 2016-05-03 Richard Biener <rguenther@suse.de>
16574
16575 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
16576 default true.
16577 (gimplify_arg): Likewise.
16578 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
16579 re-writing the result to a decl if required.
16580 (internal_get_tmp_var): Add allow_ssa parameter
16581 and override into_ssa with it.
16582 (get_formal_tmp_var): Adjust.
16583 (get_initialized_tmp_var): Add allow_ssa parameter.
16584 (gimplify_arg): Add allow_ssa parameter and avoid generating
16585 SSA names for the result false.
16586 (gimplify_call_expr): If the call may return twice do not
16587 gimplify parameters into SSA.
16588 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
16589 (gimplify_modify_expr): Adjust assert. For noreturn calls
16590 with a SSA name LHS adjust its def.
16591 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
16592 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
16593 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
16594 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
16595 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
16596 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
16597 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
16598 (optimize_target_teams): Do not allow SSA names for clause operands.
16599 (gimplify_expr): Likewise for where we mark the result addressable.
16600 * passes.def (pass_init_datastructures): Remove.
16601 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
16602 (rewrite_stmt): Likewise.
16603 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
16604 (replace_locals_op): Replace SSA names.
16605 (copy_gimple_seq_and_replace_locals): Init src_cfun.
16606 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
16607 * cgraph.c (release_function_body): Free CFG annotations only
16608 when we have a CFG. Simplify.
16609 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
16610 force_gimple_operand instead of get_initialized_tmp_var.
16611 * tree-pass.h (make_pass_init_datastructures): Remove.
16612 * tree-ssa.c (execute_init_datastructures): Remove.
16613 (pass_data_init_datastructures): Likewise.
16614 (class pass_init_datastructures): Likewise.
16615 (make_pass_init_datastructures): Likewise.
16616 * omp-low.c (create_omp_child_function): Init SSA data structures.
16617 (grid_expand_target_grid_body): Likewise.
16618 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
16619 name before adding it to names_to_release.
16620 (remove_bb): Always release SSA defs.
16621 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
16622 before dereferencing it.
16623 * cgraphunit.c (init_lowered_empty_function): Always
16624 int SSA data structures.
16625 * tree-ssanames.c (release_defs): Remove assert that we are in
16626 SSA form.
16627 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
16628
16629 2016-05-03 Jakub Jelinek <jakub@redhat.com>
16630 Uros Bizjak <ubizjak@gmail.com>
16631
16632 PR rtl-optimization/70467
16633 * config/i386/predicates.md (x86_64_hilo_int_operand,
16634 x86_64_hilo_general_operand): New predicates.
16635 * config/i386/constraints.md (Wd): New constraint.
16636 * config/i386/i386.md (mode attr di): Use Wd instead of e.
16637 (general_hilo_operand): New mode attr.
16638 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
16639 instead of <general_operand>.
16640 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
16641 x86_64_hilo_general_operand instead of <general_operand>.
16642
16643 2016-05-03 Jakub Jelinek <jakub@redhat.com>
16644
16645 PR tree-optimization/70916
16646 * tree-if-conv.c (constant_or_ssa_name): Removed.
16647 (fold_build_cond_expr): Use is_gimple_val instead of
16648 constant_or_ssa_name.
16649
16650 PR tree-optimization/70916
16651 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
16652 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
16653
16654 PR target/49244
16655 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
16656 (optimize_atomic_bit_test_and): New function.
16657 (pass_fold_builtins::execute): Use it.
16658 * optabs.def (atomic_bit_test_and_set_optab,
16659 atomic_bit_test_and_complement_optab,
16660 atomic_bit_test_and_reset_optab): New optabs.
16661 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
16662 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
16663 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
16664 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
16665 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
16666 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
16667 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
16668 * doc/md.texi (atomic_bit_test_and_set@var{mode},
16669 atomic_bit_test_and_complement@var{mode},
16670 atomic_bit_test_and_reset@var{mode}): Document.
16671 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
16672 atomic_bit_test_and_complement<mode>,
16673 atomic_bit_test_and_reset<mode>): New expanders.
16674 (atomic_bit_test_and_set<mode>_1,
16675 atomic_bit_test_and_complement<mode>_1,
16676 atomic_bit_test_and_reset<mode>_1): New insns.
16677
16678 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
16679
16680 PR rtl-optimization/70687
16681 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
16682 instead of unsigned HOST_WIDE_INT.
16683
16684 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
16685
16686 PR rtl-optimization/44281
16687 * hard-reg-set.h (struct target_hard_regs): New field
16688 x_fixed_nonglobal_reg_set.
16689 (fixed_nonglobal_reg_set): New macro.
16690 * reginfo.c (init_reg_sets_1): Initialize it.
16691 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
16692 of fixed_reg_set.
16693 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
16694
16695 2016-05-03 Bin Cheng <bin.cheng@arm.com>
16696
16697 PR tree-optimization/56541
16698 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
16699 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
16700 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
16701 (any_complicated_phi): new static variable.
16702 (aggressive_if_conv): delete.
16703 (if_convertible_phi_p): support phis with more than two arguments.
16704 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
16705 critical pred edges.
16706 (ifcvt_split_critical_edges): support phis with more than two
16707 arguments by checking new parameter. only split critical edges
16708 if needed.
16709 (tree_if_conversion): handle simd pragma marked loop using new
16710 local variable aggressive_if_conv. check any_complicated_phi.
16711
16712 2016-05-03 Bin Cheng <bin.cheng@arm.com>
16713
16714 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
16715 before using it.
16716
16717 2016-05-03 Bin Cheng <bin.cheng@arm.com>
16718
16719 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
16720 cbase.
16721
16722 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
16723
16724 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
16725 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
16726 define_insn_and_split.
16727 (mulsi3_i): New define_insn_and_split.
16728 (mulsi3_call): Convert to define_insn.
16729 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
16730 Remove constraints.
16731
16732 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16733
16734 * machmode.h (mode_complex): Add support to give the complex mode
16735 for a given mode.
16736 (GET_MODE_COMPLEX_MODE): Likewise.
16737 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
16738 stored by build_complex_type and gfc_build_complex_type instead of
16739 trying to figure out the appropriate mode based on the size. Raise
16740 an assertion error, if the type was not set.
16741 * genmodes.c (struct mode_data): Add field for the complex type of
16742 the given type.
16743 (blank_mode): Likewise.
16744 (make_complex_modes): Remember the complex mode created in the
16745 base type.
16746 (emit_mode_complex): Write out the mode_complex array to map a
16747 type mode to the complex version.
16748 (emit_insn_modes_c): Likewise.
16749 * tree.c (build_complex_type): Set the complex type to use before
16750 calling layout_type.
16751 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
16752 support for __float128 complex datatypes.
16753 (rs6000_hard_regno_mode_ok): Likewise.
16754 (rs6000_setup_reg_addr_masks): Likewise.
16755 (rs6000_complex_function_value): Likewise.
16756 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
16757 __float128 and __ibm128 complex.
16758 (FLOAT128_IBM_P): Likewise.
16759 (ALTIVEC_ARG_MAX_RETURN): Likewise.
16760 * doc/extend.texi (Additional Floating Types): Document that
16761 -mfloat128 must be used to enable __float128. Document complex
16762 __float128 and __ibm128 support.
16763
16764 2016-05-02 Jakub Jelinek <jakub@redhat.com>
16765
16766 PR target/49244
16767 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
16768 char/short arguments promoted to int because of promote_prototypes.
16769
16770 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
16771
16772 * config/i386/predicates.md (register_ssemem_operand): New predicate.
16773 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
16774 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
16775 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
16776 alternatives using "enabled" attribute. Use register_ssemem_operand
16777 as operand 1 predicate.
16778 (*cmpi<unord>xf_i387): Split XFmode pattern from
16779 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
16780 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
16781 *absneg<mode>2_i387. Disable unsupported alternatives using
16782 "enabled" attribute.
16783 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
16784
16785 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
16786
16787 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
16788 marker.
16789 (oacc_loop_process): Check mask for loop termination.
16790
16791 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
16792
16793 * cif-code.def (CIF_THUNK): Add.
16794 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
16795 accidental change.
16796
16797 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
16798
16799 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
16800 (dump_inline_summary): Dump it.
16801 (fp_expression_p): New predicate.
16802 (estimate_function_body_sizes): Use it.
16803 (inline_merge_summary): Merge fp_expressions.
16804 (inline_read_section): Read fp_expressions.
16805 (inline_write_summary): Write fp_expressions.
16806 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
16807 codegen boundary if either caller or callee is !fp_expressions.
16808 * ipa-inline.h (inline_summary): Add fp_expressions.
16809 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
16810 to fp_expressions be sure the fp generation flags are updated.
16811
16812 2016-05-02 Jakub Jelinek <jakub@redhat.com>
16813
16814 PR rtl-optimization/70467
16815 * cse.c (cse_insn): Handle no-op MEM moves after folding.
16816
16817 PR rtl-optimization/70467
16818 * ipa-pure-const.c (check_call): Handle internal calls even in
16819 ipa mode like in local mode.
16820
16821 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
16822
16823 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
16824
16825 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
16826
16827 * match.pd (X u< X, X u> X): New transformations.
16828
16829 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
16830
16831 * flag-types.h (enum warn_strict_overflow_code): Move ...
16832 * coretypes.h: ... here.
16833 * fold-const.h (fold_overflow_warning): Declare.
16834 * fold-const.c (fold_overflow_warning): Make non-static.
16835 (fold_comparison): Move the transformation of X +- C1 CMP C2
16836 into X CMP C2 -+ C1 ...
16837 * match.pd: ... here.
16838 * gimple-fold.c (fold_stmt_1): Protect with
16839 fold_defer_overflow_warnings.
16840
16841 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
16842
16843 * omp-low.c (struct oacc_loop): Add 'inner' field.
16844 (new_oacc_loop_raw): Initialize it to zero.
16845 (oacc_loop_fixed_partitions): Initialize it.
16846 (oacc_loop_auto_partitions): Partition outermost loop to outermost
16847 available partitioning.
16848
16849 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
16850
16851 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
16852 register_operand.
16853 (umulsidi3): Likewise.
16854 (indirect_jump): Fix jump instruction assembly patterns.
16855
16856 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
16857
16858 PR target/70860
16859 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
16860 (nvptx_function_value): Assert non-NULL cfun.
16861
16862 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
16863
16864 PR rtl-optimization/70886
16865 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
16866
16867 * cselib.h (rtx_equal_for_cselib_1): Declare.
16868 (rtx_equal_for_cselib_p: New inline function.
16869 * cselib.c (rtx_equal_for_cselib_p): Delete.
16870 (rtx_equal_for_cselib_1): Make public.
16871
16872 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
16873
16874 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
16875 (register_mixssei387nonimm_operand): Remove predicate.
16876 * config/i386/i386.md (*fop_<mode>_comm): Merge from
16877 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
16878 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
16879 for TARGET_MIX_SSE_I387 alternatives.
16880 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
16881 Disable unsupported alternatives using "enabled" attribute. Use
16882 nonimm_ssenomem_operand as operand 1 predicate. Also check
16883 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
16884
16885 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16886
16887 * tree.c (cst_and_fits_in_hwi): Simplify.
16888
16889 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16890
16891 * tree.h (wi::to_wide): New function.
16892 * expr.c (expand_expr_real_1): Use wi::to_wide.
16893 * fold-const.c (int_const_binop_1): Likewise.
16894 (extract_muldiv_1): Likewise.
16895
16896 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16897
16898 * wide-int.h: Update offset_int and widest_int documentation.
16899 (WI_SIGNED_SHIFT_RESULT): New macro.
16900 (wi::binary_shift): Define signed_shift_result_type for
16901 shifts on offset_int- and widest_int-like types.
16902 (generic_wide_int): Support <<= and >>= if << and >> are supported.
16903 * tree.h (int_bit_position): Use shift operators instead of wi::
16904 shifts.
16905 * alias.c (adjust_offset_for_component_ref): Likewise.
16906 * expr.c (get_inner_reference): Likewise.
16907 * fold-const.c (fold_comparison): Likewise.
16908 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
16909 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
16910 * tree-dfa.c (get_ref_base_and_extent): Likewise.
16911 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
16912 (stmt_kills_ref_p): Likewise.
16913 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
16914 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
16915 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16916 (ao_ref_init_from_vn_reference): Likewise.
16917
16918 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16919
16920 * wide-int.h: Update offset_int and widest_int documentation.
16921 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
16922 (wi::binary_traits): Allow ordered comparisons between offset_int and
16923 offset_int, between widest_int and widest_int, and between either
16924 of these types and basic C types.
16925 (operator <, <=, >, >=): Define for the same combinations.
16926 * tree.h (tree_int_cst_lt): Use comparison operators instead
16927 of wi:: comparisons.
16928 (tree_int_cst_le): Likewise.
16929 * gimple-fold.c (fold_array_ctor_reference): Likewise.
16930 (fold_nonarray_ctor_reference): Likewise.
16931 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
16932 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
16933 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
16934 * tree-sra.c (completely_scalarize): Likewise.
16935 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
16936 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
16937 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
16938 (check_for_binary_op_overflow): Likewise.
16939 (search_for_addr_array): Likewise.
16940 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
16941
16942 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
16943
16944 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
16945 (arc_save_restore): Likewise.
16946 (arc_dwarf_register_span): Likewise.
16947 (arc_output_pic_addr_const): Initialize suffix variable.
16948
16949 2016-05-02 Martin Liska <mliska@suse.cz>
16950
16951 * symbol-summary.h (function_summary::function_summary):
16952 Remove checking assert for all cgraph nodes.
16953 (function_summary::get): Check summary_uid.
16954 (symtab_insertion): Check summary_uid.
16955
16956 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
16957
16958 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
16959 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
16960 bmaskn instruction.
16961 (arc_dwarf_register_span): Remove enum keyword.
16962 (compact_memory_operand_p): New function.
16963 * config/arc/arc.h (reg_class): Add code density register classes.
16964 (REG_CLASS_NAMES): Likewise.
16965 (REG_CLASS_CONTENTS): Likewise.
16966 * config/arc/arc.md (*movqi_insn): Add code density instructions.
16967 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
16968 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
16969 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
16970 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
16971 constraints.
16972 (h, Rcd, Rsd, Rzd): New register constraints.
16973 (T): Use compact_memory_operand_p function.
16974 * config/arc/predicates.md (compact_load_memory_operand): Remove.
16975
16976 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
16977
16978 * config/sh/sh.md (*negnegt, *movtt): Remove.
16979
16980 2016-05-02 Marek Polacek <polacek@redhat.com>
16981 Tom de Vries <tom@codesourcery.com>
16982
16983 PR tree-optimization/70700
16984 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
16985 bigger than FIRST_REF_NODE.
16986
16987 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
16988
16989 PR target/52898
16990 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
16991 TARGET_CMPEQDI_T.
16992 (prepare_cbranch_operands): Don't use scratch register. Assume that
16993 function is used when pseudos can be created.
16994 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
16995 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
16996 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
16997 define_expand. Allow it only when pseudos can be created.
16998 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
16999
17000 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
17001
17002 * config/i386/constraints.md (BC): Only allow -1 operands.
17003 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
17004 Add "enabled" attribute. Update XI mode attribute calculation.
17005 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
17006 (*movoi_internal_avx): Update XI mode attribute calculation.
17007 (*movti_internal): Ditto.
17008
17009 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17010
17011 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
17012 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
17013
17014 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
17015
17016 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
17017 statement on instruction code. Remove trailing spaces.
17018 (altivec_expand_stv_builtin): Likewise.
17019
17020 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17021
17022 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
17023 (TARGET_FPU_DOUBLE): Simplify.
17024 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
17025 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
17026 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
17027 with 'TARGET_FPU_DOUBLE'.
17028 * config/sh/sh.md: Likewise.
17029
17030 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
17031
17032 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
17033 SH_DIV_STR_FOR_SIZE): Remove.
17034 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
17035 SH_DIV_STR_FOR_SIZE): Remove.
17036
17037 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17038
17039 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
17040 logical_reg_operand): Delete.
17041 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
17042 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
17043 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
17044 match_operand and match_test.
17045 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
17046 variables on their first use. Return bool values.
17047 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
17048 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
17049 arith_reg_operand for input operand. Remove empty constraints.
17050 (xorsi3): Delete.
17051 (*xorsi3_compact): Rename to xorsi3.
17052 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
17053 (*zero_extend<mode>si2_disp_mem): Update comment.
17054 (mov_nop): Delete.
17055
17056 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
17057
17058 * config/sh/t-sh: Remove SH5 support.
17059 * config.gcc: Likewise.
17060 * configure: Likewise.
17061
17062 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17063
17064 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
17065
17066 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
17067
17068 * config/sh/sh.c (register_sh_passes, sh_option_override,
17069 sh_print_operand, prepare_move_operands,
17070 sh_can_follow_jump): Remove TARGET_SH1 checks.
17071 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
17072 PROMOTE_MODE): Likewise.
17073 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
17074 movdi): Likewise.
17075
17076 2016-04-30 Alan Modra <amodra@gmail.com>
17077
17078 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
17079 restoring when fixed_reg_p, but allow out-of-line or stmw save.
17080 Check for user regs later to avoid unnecessary looping over regs.
17081 Merge user reg check with non-saved reg check. Don't force
17082 inline VR restore when static chain used.
17083 (rs6000_frame_related): Omit eh_frame info for user regs when
17084 saving.
17085 (fixed_regs_p): Delete.
17086
17087 2016-04-30 Alan Modra <amodra@gmail.com>
17088
17089 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
17090 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
17091 Update all uses.
17092
17093 2016-04-30 Alan Modra <amodra@gmail.com>
17094
17095 PR target/69645
17096 * config/rs6000/rs6000.c (fixed_reg_p): New function.
17097 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
17098 Update all uses.
17099
17100 2016-04-30 Alan Modra <amodra@gmail.com>
17101
17102 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
17103 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
17104 flag_pic test for Darwin.
17105
17106 2016-04-30 Alan Modra <amodra@gmail.com>
17107
17108 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
17109 throw_calls_crossed.
17110 (REG_FREQ_CALLS_CROSSED): Delete.
17111 (REG_N_THROWING_CALLS_CROSSED): Delete.
17112 * regstat.c (regstat_bb_compute_ri): Don't calculate
17113 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
17114 (dump_reg_info): Don't print call cross frequency.
17115 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
17116 and REG_N_THROWING_CALLS_CROSSED.
17117
17118 2016-04-30 Alan Modra <amodra@gmail.com>
17119
17120 * regs.h (struct reg_info_t): Delete live_length.
17121 (REG_LIVE_LENGTH): Delete macro.
17122 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
17123 local_live, local_processed and local_live_last_luid params.
17124 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
17125 Formatting fixes.
17126 (regstat_compute_ri): Adjust for above. Don't set
17127 REG_LIVE_LENGTH.
17128 (dump_reg_info): Don't print live length.
17129 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
17130 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
17131 Localize loop_depth var.
17132
17133 2016-04-30 Alan Modra <amodra@gmail.com>
17134
17135 * ira.c (enum valid_equiv): New.
17136 (validate_equiv_mem): Return enum.
17137 (update_equiv_mem): Create replacement in more cases.
17138 (add_store_equivs): Update validate_equiv_mem call.
17139
17140 2016-04-30 Alan Modra <amodra@gmail.com>
17141
17142 * ira.c (combine_and_move_insns): Rather than scanning insns,
17143 use DF infrastucture to find use and def insns.
17144
17145 2016-04-30 Alan Modra <amodra@gmail.com>
17146
17147 ira.c (combine_and_move_insns): Move invariant conditions..
17148 (ira.c): ..to here. Call combine_and_move_insns before
17149 add_store_equivs. Call grow_reg_equivs later. Allocate
17150 req_equiv later using max_reg_num() rather than global max_regno.
17151 (contains_replace_regs): Delete.
17152 (add_store_equivs): Remove contains_replace_regs test.
17153
17154 2016-04-30 Alan Modra <amodra@gmail.com>
17155
17156 * ira.c (struct equiv_mem_data): New.
17157 (equiv_mem, equiv_mem_modified): Delete static vars.
17158 (validate_equiv_mem_from_store): Use "data" param to communicate..
17159 (validate_equiv_mem): ..from here.
17160
17161 2016-04-30 Alan Modra <amodra@gmail.com>
17162
17163 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
17164 split out from..
17165 (update_reg_equivs): ..here. Move allocation and freeing of
17166 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
17167 end_alias_analysis to..
17168 (ira): ..here.
17169
17170 2016-04-30 Alan Modra <amodra@gmail.com>
17171
17172 * ira.c (pdx_subregs): Delete.
17173 (struct equivalence): Add pdx_subregs field.
17174 (set_paradoxical_subreg): Remove pdx_subregs param. Update
17175 pdx_subregs access.
17176 (update_equiv_regs): Don't create or free pdx_subregs. Update
17177 pdx_subregs access.
17178
17179 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17180
17181 * config/rs6000/altivec.h: Change definitions of vec_xl and
17182 vec_xst.
17183 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
17184 (LD_ELEMREV_V2DI): New.
17185 (LD_ELEMREV_V4SF): New.
17186 (LD_ELEMREV_V4SI): New.
17187 (LD_ELEMREV_V8HI): New.
17188 (LD_ELEMREV_V16QI): New.
17189 (ST_ELEMREV_V2DF): New.
17190 (ST_ELEMREV_V2DI): New.
17191 (ST_ELEMREV_V4SF): New.
17192 (ST_ELEMREV_V4SI): New.
17193 (ST_ELEMREV_V8HI): New.
17194 (ST_ELEMREV_V16QI): New.
17195 (XL): New.
17196 (XST): New.
17197 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17198 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
17199 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
17200 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
17201 (altivec_expand_builtin): Add handling for
17202 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
17203 (rs6000_invalid_builtin): Add error-checking for
17204 RS6000_BTM_P9_VECTOR.
17205 (altivec_init_builtins): Define builtins used to implement vec_xl
17206 and vec_xst.
17207 (rs6000_builtin_mask_names): Define power9-vector.
17208 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
17209 (RS6000_BTM_P9_VECTOR): Define.
17210 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
17211 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
17212 (vsx_ld_elemrev_v2df): Likewise.
17213 (vsx_ld_elemrev_v4sf): Likewise.
17214 (vsx_ld_elemrev_v4si): Likewise.
17215 (vsx_ld_elemrev_v8hi): Likewise.
17216 (vsx_ld_elemrev_v16qi): Likewise.
17217 (vsx_st_elemrev_v2df): Likewise.
17218 (vsx_st_elemrev_v2di): Likewise.
17219 (vsx_st_elemrev_v4sf): Likewise.
17220 (vsx_st_elemrev_v4si): Likewise.
17221 (vsx_st_elemrev_v8hi): Likewise.
17222 (vsx_st_elemrev_v16qi): Likewise.
17223 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
17224 grammar.
17225
17226 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
17227
17228 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
17229 out into ...
17230 (simplify_control_stmt_condition_1): ... here. Recurse into
17231 BIT_AND_EXPRs and BIT_IOR_EXPRs.
17232
17233 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
17234
17235 PR target/69810
17236 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
17237 (zero_extendqi<mode>2_dot): Revert earlier conversion from
17238 define_insn_and_split to define_insn.
17239 (zero_extendqi<mode>2_dot2): Same.
17240 (extendqi<mode>2_dot): Same.
17241 (extendqi<mode>2_dot2): Same.
17242
17243 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17244
17245 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
17246 (probe_stack): New expander.
17247 (probe_stack_<mode>): New insn pattern.
17248
17249 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17250
17251 * config/i386/i386.md
17252 (operations with memory inputs setting flags peephole2):
17253 Remove uneeded REG_P checks. Cleanup pattern generation.
17254
17255 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
17256
17257 * tree-vect-loop.c (vect_transform_loop): Fix
17258 nb_iterations_upper_bound computation for vectorized loop.
17259
17260 2016-04-29 Marek Polacek <polacek@redhat.com>
17261 Jakub Jelinek <jakub@redhat.com>
17262
17263 PR sanitizer/70342
17264 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
17265 TARGET_EXPR_SLOT as a base.
17266
17267 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
17268
17269 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
17270 with 'rCm2' constraints to limit possible immediate size.
17271 (*load_zeroextendqisi_update): Likewise.
17272 (*load_signextendqisi_update): Likewise.
17273 (*loadhi_update): Likewise.
17274 (*load_zeroextendhisi_update): Likewise.
17275 (*load_signextendhisi_update): Likewise.
17276 (*loadsi_update): Likewise.
17277 (*loadsf_update): Likewise.
17278
17279 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17280
17281 * config/i386/predicates.md (constm1_operand): Fix comparison.
17282
17283 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
17284
17285 * testsuite/gcc.target/arc/ieee_eq.c: New test.
17286
17287 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
17288
17289 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
17290 remaining SH5 related settings.
17291 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
17292 shmedia_prepare_call_address): Delete.
17293 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
17294 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
17295 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
17296 UNSUPPORTED_SH2A): Remove m5 checks.
17297 (sh_divide_strategy_e): Remove SH5 division strategies.
17298 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
17299 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
17300
17301 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
17302
17303 * config/s390/s390.c (s390_rtx_costs): Update documentation.
17304
17305 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17306
17307 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
17308 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
17309 Change lder to ldr.
17310 * config/s390/vector.md ("mov<mode>"): Likewise.
17311
17312 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
17313
17314 * config/s390/constraints.md ("U", "W"): Invoke
17315 s390_mem_constraint with "ZR" and "ZT".
17316 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
17317 addresses when using LRA. Accept also short displacements for S
17318 and T constraints. Do not check for long displacement target for
17319 S and T constraints.
17320 (s390_mem_constraint): Remove handling of U and W constraints.
17321 * config/s390/s390.md (various patterns): Remove the short
17322 displacement constraints (Q and R) if a long displacement
17323 constraint is present. Add longdisp as required CPU capability.
17324 * config/s390/vector.md: Likewise.
17325 * config/s390/vx-builtins.md: Likewise.
17326
17327 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17328
17329 PR target/60040
17330 * reload1.c (reload): Call finish_spills before
17331 restarting reload loop. Skip select_reload_regs
17332 if update_eliminables_and_spill returns true.
17333
17334 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
17335
17336 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
17337 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
17338 (umulhisi3_imm): Update predicates and constraint letters.
17339 (umulhisi3_reg): Declare instruction as commutative.
17340 * config/arc/constraints.md (J12, J16): New constraints.
17341 * config/arc/predicates.md (short_unsigned_const_operand): New
17342 predicate.
17343 (arc_short_operand): Likewise.
17344 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
17345
17346 2016-04-29 Richard Biener <rguenther@suse.de>
17347
17348 PR tree-optimization/13962
17349 PR tree-optimization/65686
17350 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
17351 * tree-ssa-alias.c (ptrs_compare_unequal): New function
17352 using PTA to compare pointers.
17353 * match.pd: Add pattern for pointer equality compare simplification
17354 using ptrs_compare_unequal.
17355
17356 2016-04-29 Richard Biener <rguenther@suse.de>
17357
17358 * stor-layout.c (layout_type): Do not build a pointer-to-element
17359 type for arrays.
17360
17361 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17362
17363 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
17364 Use SWI mode iterator. Use general_reg_operand predicate.
17365 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
17366 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
17367 predicates.
17368
17369 2016-04-29 Jakub Jelinek <jakub@redhat.com>
17370
17371 PR middle-end/70843
17372 * fold-const.c (operand_equal_p): Don't verify hash value equality
17373 if arg0 == arg1.
17374 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
17375 and OMP_CLAUSE.
17376
17377 2016-04-28 Jakub Jelinek <jakub@redhat.com>
17378
17379 PR target/70858
17380 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
17381 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
17382 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
17383 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
17384 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
17385
17386 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
17387
17388 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
17389 to info. Don't initialize separate fields to 0. Clean up
17390 formatting a bit.
17391
17392 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17393
17394 * config/i386/i386.md (peephole2s for operations with memory inputs):
17395 Use SWI mode iterator.
17396 (peephole2s for operations with memory outputs): Ditto.
17397 Do not check for stack checking probe.
17398
17399 (probe_stack): Remove expander.
17400
17401 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
17402 Andrew Burgess <andrew.burgess@embecosm.com>
17403
17404 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
17405 operands as 32-bits.
17406
17407 2016-04-28 Jason Merrill <jason@redhat.com>
17408
17409 * gdbinit.in: Skip line-map.h.
17410
17411 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
17412 Andrew Burgess <andrew.burgess@embecosm.com>
17413
17414 * config/arc/arc.c (arc_conditional_register_usage): Take
17415 TARGET_RRQ_CLASS into account.
17416 (arc_print_operand): Support printing 'p' and 's' operands.
17417 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
17418 as 0.
17419 (TARGET_RRQ_CLASS): Define.
17420 (IS_POWEROF2_OR_0_P): Define.
17421 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
17422 alternatives.
17423 (*tst_movb): New define_insn.
17424 (*tst): Avoid recognition if it could prevent '*tst_movb'
17425 combination; replace c/CnL with c/Chs alternative.
17426 (*tst_bitfield_tst): New define_insn.
17427 (*tst_bitfield_asr): New define_insn.
17428 (*tst_bitfield): New define_insn.
17429 (andsi3_i): Add Rrq variant.
17430 (extzv): New define_expand.
17431 (insv): New define_expand.
17432 (*insv_i): New define_insn.
17433 (*movb): New define_insn.
17434 (*movb_signed): New define_insn.
17435 (*movb_high): New define_insn.
17436 (*movb_high_signed): New define_insn.
17437 (*movb_high_signed + 1): New define_split pattern.
17438 (*mrgb): New define_insn.
17439 (*mrgb + 1): New define_peephole2 pattern.
17440 (*mrgb + 2): New define_peephole2 pattern.
17441 * config/arc/arc.opt (mbitops): New option for nps400, uses
17442 TARGET_NPS_BITOPS_DEFAULT.
17443 * config/arc/constraints.md (q): Make register class conditional.
17444 (Rrq): New register constraint.
17445 (Chs): New constraint.
17446 (Clo): New constraint.
17447 (Chi): New constraint.
17448 (Cbf): New constraint.
17449 (Cbn): New constraint.
17450 (C18): New constraint.
17451 (Cbi): New constraint.
17452
17453 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
17454
17455 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
17456 dst->popcount.
17457 (bitmap_intersection_of_preds): Ditto.
17458 (bitmap_union_of_succs): Ditto.
17459 (bitmap_union_of_preds): Ditto.
17460 * sbitmap.c (do_popcount): Delete.
17461 (BITMAP_DEBUGGING): Delete.
17462 (sbitmap_verify_popcount): Delete.
17463 (sbitmap_alloc): Don't initialize the popcount field.
17464 (sbitmap_alloc_with_popcount): Delete.
17465 (sbitmap_resize): Don't resize the popcount array.
17466 (sbitmap_vector_alloc): Don't initialize the popcount field.
17467 (bitmap_copy): Don't copy the popcount array.
17468 (bitmap_clear): Don't clear the popcount array.
17469 (bitmap_clear): Delete the popcount array handling.
17470 (bitmap_ior_and_compl): Delete the popcount assert.
17471 (bitmap_not): Ditto.
17472 (bitmap_and_compl): Ditto.
17473 (bitmap_and): Delete the popcount array handling.
17474 (bitmap_xor): Ditto.
17475 (bitmap_ior): Ditto.
17476 (bitmap_or_and): Delete the popcount assert.
17477 (bitmap_and_or): Ditto.
17478 (popcount_table): Delete.
17479 (sbitmap_elt_popcount): Delete.
17480 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
17481 (bitmap_set_bit): Delete the popcount assert.
17482 (bitmap_clear_bit): Ditto.
17483 (sbitmap_free): Don't free the popcount array.
17484 (sbitmap_alloc_with_popcount): Delete declaration.
17485 (sbitmap_popcount): Ditto.
17486
17487 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
17488 Andrew Burgess <andrew.burgess@embecosm.com>
17489
17490 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
17491 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
17492 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
17493 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
17494 * config/arc/arc.opt (mcmem): New option.
17495 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
17496 supply length for r/m alternative.
17497 (*extendqisi2_ac): Likewise.
17498 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
17499 r/Uex alternative.
17500 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
17501 (movhi_insn): Likewise.
17502 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
17503 (*zero_extendqihi2_i): Add r/Ucm alternative.
17504 (*zero_extendqisi2_ac): Likewise.
17505 (*zero_extendhisi2_i): Likewise.
17506 * config/arc/constraints.md (Uex): New memory constraint.
17507 (Ucm): New define_constraint.
17508 * config/arc/predicates.md (long_immediate_loadstore_operand):
17509 Return 0 for MEM with cmem_address address.
17510 (cmem_address_0): New predicates.
17511 (cmem_address_1): Likewise.
17512 (cmem_address_2): Likewise.
17513 (cmem_address): Likewise.
17514
17515 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
17516
17517 * config/rs6000/rs6000.c (machine_function): Rename
17518 insn_chain_scanned_p to spe_insn_chain_scanned_p.
17519 (rs6000_stack_info): Adjust.
17520
17521 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
17522 Andrew Burgess <andrew.burgess@embecosm.com>
17523
17524 * config/arc/constraints.md (Usd): Convert to define_constraint.
17525 (Us<): Likewise.
17526 (Us>): Likewise.
17527
17528 2016-04-28 Jakub Jelinek <jakub@redhat.com>
17529
17530 PR target/70821
17531 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
17532 Add new peephole2 where the first insn is *mov<mode>_or instead of
17533 *mov<mode>_internal.
17534
17535 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
17536
17537 * tracer.c (bb_seen): Make static.
17538
17539 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
17540
17541 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
17542 support, setup defaults.
17543 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
17544 * config/arc/arc.c (arc_init): Add NPS400 support.
17545 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
17546 (TARGET_ARC700): NPS400 is also an ARC700.
17547 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
17548
17549 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
17550
17551 PR target/70668
17552 * config/nds32/nds32.md (casesi): Don't access the operands array
17553 out of bounds.
17554
17555 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17556
17557 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
17558 (or $-1,reg peephole2): Ditto.
17559 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
17560
17561 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
17562
17563 * doc/extend.texi (Common Function Attributes) [optimize]:
17564 Discourage use of the optimize attribute.
17565
17566 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
17567
17568 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
17569 special case builtin.
17570 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17571 ALTIVEC_BUILTIN_VEC_ADDE.
17572 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17573 support for ALTIVEC_BUILTIN_VEC_ADDE.
17574 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17575 for __builtin_vec_adde.
17576
17577 2016-04-28 Jakub Jelinek <jakub@redhat.com>
17578
17579 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
17580 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
17581
17582 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17583
17584 PR testsuite/70595
17585 * doc/sourcebuild.texi (Effective-Target Keywords, Other
17586 attributes): Document cilkplus_runtime.
17587
17588 2016-04-28 Martin Jambor <mjambor@suse.cz>
17589
17590 * tree-cfg.c (verify_expr): Verify that local declarations belong to
17591 this function. Call verify_expr on MEM_REFs and bases of other
17592 handled_components.
17593
17594 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17595
17596 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
17597 for WORD_REGISTER_OPERATIONS to runtime check.
17598
17599 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17600
17601 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
17602
17603 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17604
17605 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
17606 big-endian compilation.
17607 * config/arc/arc.md (addf3): Likewise.
17608 (subdf3): Likewise.
17609 (muldf3): Likewise.
17610
17611 2016-04-28 Richard Biener <rguenther@suse.de>
17612
17613 PR tree-optimization/70840
17614 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
17615 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
17616 Mark x * pow(x,c) -> pow(x,c+1) commutative.
17617 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
17618
17619 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17620
17621 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
17622 and explain why in a comment.
17623
17624 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17625
17626 * config/arc/arc.md (cpu_facility): Add fpx variant.
17627 (subdf3): Prohibit use reverse sub when assist operations option
17628 is enabled.
17629 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
17630 instructions only when FPX is enabled.
17631 * testsuite/gcc.target/arc/trsub.c: New test.
17632
17633 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17634
17635 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
17636 mult_operator when calculating "type" attribute.
17637 (*fop_<mode>_1_i387): Ditto.
17638 (*fop_xf_1_i387): Ditto.
17639 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
17640 Use std::swap to swap operands. Use RTL expressions to generate
17641 converted pattern.
17642
17643 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17644 Joern Rennecke <joern.rennecke@embecosm.com>
17645
17646 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
17647 declaration.
17648 (emit_pic_move): Remove.
17649 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
17650 * config/arc/arc.c (emit_pic_move): Removed.
17651 (TARGET_HAVE_TLS): Define.
17652 (arc_conditional_register_usage): Test for arc_tp_regno.
17653 (arc_print_operand, arc_print_operand_address): Handle TLS
17654 unspecs.
17655 (arc_needs_pcl_p): New function.
17656 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
17657 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
17658 (arc_raw_symbolic_reference_mentioned_p): Likewise.
17659 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
17660 (arc_legitimize_tls_address): Likewise.
17661 (DTPOFF_ZERO_SYM): Define.
17662 (arc_legitimize_pic_address): Make it static, handle TLS cases.
17663 (arc_output_pic_addr_const): Print TLS unspecs.
17664 (prepare_pic_move): New function, replaces emit_pic_move.
17665 (arc_legitimate_constant_p): Handle TLS unspecs.
17666 (arc_legitimate_address_p): Likewise.
17667 (arc_rewrite_small_data_p): Use assert for TLS constants.
17668 (prepare_move_operands): Use prepare_pic_move.
17669 (arc_legitimize_address): Legitimize tls addresses.
17670 (arc_epilogue_uses): Check for arc_tp_regno.
17671 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
17672 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
17673 Define.
17674 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
17675 Likewise.
17676 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
17677 %(arc_tls_extra_start_spec).
17678 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
17679 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
17680 (EH_USES): Define.
17681 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
17682 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
17683 (UNSPEC_TLS_OFF): Add.
17684 (R10_REG): Define.
17685 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
17686 (get_thread_pointersi): New patterns.
17687 * config/arc/arc.opt (mtp-regno): New option.
17688 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
17689 (move_dest_operand): Likewise.
17690 * configure: Regenerate.
17691 * configure.ac: Add arc*-*-* case to test for tls.
17692 * doc/invoke.texi (ARC options): Document mtp-regno.
17693
17694 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17695
17696 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
17697 the new ARC HS SIMD instructions.
17698 (arc_preferred_simd_mode): New function.
17699 (arc_autovectorize_vector_sizes): Likewise.
17700 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17701 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
17702 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
17703 (arc_init_builtins): Add new SIMD builtin types.
17704 (arc_split_move): Handle 64 bit vector moves.
17705 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
17706 (TARGET_PLUS_QMACW): Define.
17707 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
17708 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
17709 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
17710 (VSUBADD4H): New builtins.
17711 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
17712 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
17713
17714 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
17715 Matthias Klose <doko@debian.org>
17716
17717 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
17718
17719 2016-04-28 Richard Biener <rguenther@suse.de>
17720
17721 PR middle-end/70777
17722 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
17723 canonicalization.
17724
17725 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
17726
17727 * common/config/sh/sh-common.c: Remove SH5 support.
17728 * config/sh/constraints.md: Likewise.
17729 * config/sh/config/sh/elf.h: Likewise.
17730 * config/sh/linux.h: Likewise.
17731 * config/sh/netbsd-elf.h: Likewise.
17732 * config/sh/predicates.md: Likewise.
17733 * config/sh/sh-c.c: Likewise.
17734 * config/sh/sh-protos.h: Likewise.
17735 * config/sh/sh.c: Likewise.
17736 * config/sh/sh.h: Likewise.
17737 * config/sh/sh.md: Likewise.
17738 * config/sh/sh.opt: Likewise.
17739 * config/sh/sync.md: Likewise.
17740 * config/sh/sh64.h: Delete.
17741 * config/sh/shmedia.h: Likewise.
17742 * config/sh/shmedia.md: Likewise.
17743 * config/sh/sshmedia.h: Likewise.
17744 * config/sh/t-netbsd-sh5-64: Likewise.
17745 * config/sh/t-sh64: Likewise.
17746 * config/sh/ushmedia.h: Likewise.
17747
17748 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17749
17750 * config/i386/i386.md (sign_extend to memory peephole2s): Use
17751 general_reg_operand instead of register_operand predicate.
17752
17753 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17754
17755 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
17756
17757 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
17758
17759 * match.pd (A - B > A, A + B < A): New transformations.
17760
17761 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
17762
17763 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
17764 which defaults to true. Emit an outer pair of parentheses only if
17765 EMIT_PARENS. When continuing a chain of && or || (or & or |),
17766 don't emit parentheses for the right-hand operand.
17767
17768 2016-04-27 Jeff Law <law@redhat.com>
17769
17770 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
17771
17772 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17773
17774 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
17775 (altivec_lvx_<mode>_internal): Document.
17776 (altivec_lvx_<mode>_2op): New define_insn.
17777 (altivec_lvx_<mode>_1op): Likewise.
17778 (altivec_lvx_<mode>_2op_si): Likewise.
17779 (altivec_lvx_<mode>_1op_si): Likewise.
17780 (altivec_stvx_<mode>): Remove.
17781 (altivec_stvx_<mode>_internal): Document.
17782 (altivec_stvx_<mode>_2op): New define_insn.
17783 (altivec_stvx_<mode>_1op): Likewise.
17784 (altivec_stvx_<mode>_2op_si): Likewise.
17785 (altivec_stvx_<mode>_1op_si): Likewise.
17786 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17787 Expand vec_ld and vec_st during parsing.
17788 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
17789 changes.
17790 (altivec_expand_stvx_be): Likewise.
17791 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
17792 address-masking behavior in RTL.
17793 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
17794 address-masking behavior in RTL.
17795 (altivec_expand_builtin): Change builtin code arguments for calls
17796 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
17797 (insn_is_swappable_p): Avoid incorrect swap optimization in the
17798 presence of lvx/stvx patterns.
17799 (alignment_with_canonical_addr): New function.
17800 (alignment_mask): Likewise.
17801 (find_alignment_op): Likewise.
17802 (recombine_lvx_pattern): Likewise.
17803 (recombine_stvx_pattern): Likewise.
17804 (recombine_lvx_stvx_patterns): Likewise.
17805 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
17806 stvx patterns from expand.
17807 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
17808 expansions.
17809 (vector_altivec_store_<mode>): Likewise.
17810
17811 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
17812
17813 * config/aarch64/aarch64.md
17814 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
17815 remove the "fp" attributes.
17816 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
17817 add the "simd" attributes.
17818 (*movdf_aarch64): Likewise.
17819 (*movtf_aarch64): Remove the "fp" attributes.
17820 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
17821 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
17822
17823 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17824
17825 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
17826 rtx to rtx_code_label *.
17827 * rtl.h (maybe_set_first_label_num): Likewise.
17828
17829 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17830
17831 * df-core.c (df_add_problem): Make the problem param be const.
17832 (df_remove_problem): Make local "problem" be const.
17833 * df-problems.c (problem_RD): Make const.
17834 (problem_LR): Likewise.
17835 (problem_LIVE): Likewise.
17836 (problem_MIR): Likewise.
17837 (problem_CHAIN): Likewise.
17838 (problem_WORD_LR): Likewise.
17839 (problem_NOTE): Likewise.
17840 (problem_MD): Likewise.
17841 * df-scan.c (problem_SCAN): Likewise.
17842 * df.h (struct df_problem): Make field "dependent_problem" be
17843 const.
17844 (struct dataflow): Likewise for field "problem".
17845 (df_add_problem): Make param const.
17846
17847 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
17848
17849 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
17850 inter-unit moves to/from vector registers are enabled. Do not disable
17851 for TARGET_MMX.
17852
17853 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17854
17855 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
17856 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
17857 #define to...
17858 (enum df_problem_id): ...this new enum.
17859 (struct df_problem): Convert field "id" from "int" to
17860 enum df_problem_id.
17861
17862 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17863
17864 * rtl.def: Update comment for "things in the instruction chain" to
17865 reflect the removal of the leading "i" field for INSN_UID in
17866 r210360. Fix bogus apostrophe.
17867
17868 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
17869
17870 * config/i386/i386.md
17871 (lea arith with mem operand + setcc peephole2): Set operator mode.
17872
17873 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
17874
17875 PR target/70155
17876 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
17877 (dimode_scalar_to_vector_candidate_p): This.
17878 (timode_scalar_to_vector_candidate_p): New function.
17879 (scalar_to_vector_candidate_p): Likewise.
17880 (timode_check_non_convertible_regs): Likewise.
17881 (timode_remove_non_convertible_regs): Likewise.
17882 (remove_non_convertible_regs): Likewise.
17883 (remove_non_convertible_regs): Renamed to ...
17884 (dimode_remove_non_convertible_regs): This.
17885 (scalar_chain::~scalar_chain): Make it virtual.
17886 (scalar_chain::compute_convert_gain): Make it pure virtual.
17887 (scalar_chain::mark_dual_mode_def): Likewise.
17888 (scalar_chain::convert_insn): Likewise.
17889 (scalar_chain::convert_registers): Likewise.
17890 (scalar_chain::add_to_queue): Make it protected.
17891 (scalar_chain::emit_conversion_insns): Likewise.
17892 (scalar_chain::replace_with_subreg): Likewise.
17893 (scalar_chain::replace_with_subreg_in_insn): Likewise.
17894 (scalar_chain::convert_op): Likewise.
17895 (scalar_chain::convert_reg): Likewise.
17896 (scalar_chain::make_vector_copies): Likewise.
17897 (scalar_chain::convert_registers): New pure virtual function.
17898 (class dimode_scalar_chain): New class.
17899 (class timode_scalar_chain): Likewise.
17900 (scalar_chain::mark_dual_mode_def): Renamed to ...
17901 (dimode_scalar_chain::mark_dual_mode_def): This.
17902 (timode_scalar_chain::mark_dual_mode_def): New function.
17903 (timode_scalar_chain::convert_insn): Likewise.
17904 (dimode_scalar_chain::convert_registers): Likewise.
17905 (scalar_chain::compute_convert_gain): Renamed to ...
17906 (dimode_scalar_chain::compute_convert_gain): This.
17907 (scalar_chain::replace_with_subreg): Renamed to ...
17908 (dimode_scalar_chain::replace_with_subreg): This.
17909 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
17910 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
17911 (scalar_chain::make_vector_copies): Renamed to ...
17912 (dimode_scalar_chain::make_vector_copies): This.
17913 (scalar_chain::convert_reg): Renamed to ...
17914 (dimode_scalar_chain::convert_reg ): This.
17915 (scalar_chain::convert_op): Renamed to ...
17916 (dimode_scalar_chain::convert_op): This.
17917 (scalar_chain::convert_insn): Renamed to ...
17918 (dimode_scalar_chain::convert_insn): This.
17919 (scalar_chain::convert): Call convert_registers.
17920 (convert_scalars_to_vector): Change to scalar_chain pointer to
17921 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
17922 in 32-bit mode. Delete scalar_chain pointer. Call
17923 free_dominance_info in 64-bit mode.
17924 (pass_stv::gate): Remove TARGET_64BIT check.
17925 (ix86_option_override): Put the 64-bit STV pass before the CSE
17926 pass.
17927
17928 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
17929
17930 * dwarf2out.h (struct dw_loc_descr_node): Remove the
17931 dw_loc_frame_offset field.
17932 * dwarf2out.c (new_loc_descr): Likewise.
17933 (resolve_args_picking_1): Turn the VISITED hash set into a
17934 FRAME_OFFSET hash map. Use it to associate a frame offset to
17935 visited nodes. Remove uses of the CHECKING_P macro.
17936 (resolve_args_picking): Update call to resolve_args_picking_1.
17937
17938 2016-04-27 Martin Liska <mliska@suse.cz>
17939
17940 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
17941 (free_loop_data): Release vuses of groups.
17942
17943 2016-04-27 Bin Cheng <bin.cheng@arm.com>
17944
17945 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
17946 instead of redundant use_id and boolean have_use_for.
17947 (struct iv_use): Change sub_id into group_id. Remove field next.
17948 Move fields: related_cands, n_map_members, cost_map and selected
17949 to ...
17950 (struct iv_group): ... here. New structure.
17951 (struct iv_common_cand): Use structure declaration directly.
17952 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
17953 (MAX_CONSIDERED_USES): Rename macro to ...
17954 (MAX_CONSIDERED_GROUPS): ... here.
17955 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
17956 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
17957 (dump_uses): Rename to ...
17958 (dump_groups): ... here. Update all uses.
17959 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
17960 (find_induction_variables): Refactor format of dump information.
17961 (record_sub_use): Delete.
17962 (record_use): Update all uses.
17963 (record_group): New function.
17964 (record_group_use, find_interesting_uses_op): Call above functions.
17965 Update all uses.
17966 (find_interesting_uses_cond): Ditto.
17967 (group_compare_offset): New function.
17968 (split_all_small_groups): Rename to ...
17969 (split_small_address_groups_p): ... here. Update all uses.
17970 (split_address_groups): Update all uses.
17971 (find_interesting_uses): Refactor format of dump information.
17972 (add_candidate_1): Update all uses. Remove redundant check on iv,
17973 base and step.
17974 (add_candidate, record_common_cand): Remove redundant assert.
17975 (add_iv_candidate_for_biv): Update use.
17976 (add_iv_candidate_derived_from_uses): Update all uses.
17977 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
17978 (alloc_use_cost_map): Ditto.
17979 (set_use_iv_cost, get_use_iv_cost): Rename to ...
17980 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
17981 (determine_use_iv_cost_generic): Ditto.
17982 (determine_group_iv_cost_generic): Ditto.
17983 (determine_use_iv_cost_address): Ditto.
17984 (determine_group_iv_cost_address): Ditto.
17985 (determine_use_iv_cost_condition): Ditto.
17986 (determine_group_iv_cost_cond): Ditto.
17987 (determine_use_iv_cost): Ditto.
17988 (determine_group_iv_cost): Ditto.
17989 (set_autoinc_for_original_candidates): Update all uses.
17990 (find_iv_candidates): Update all uses. Refactor dump information.
17991 (determine_use_iv_costs): Ditto.
17992 (determine_iv_costs): Ditto.
17993 (iv_ca_cand_for_use): Rename to ...
17994 (iv_ca_cand_for_group): ... here. Update all uses.
17995 (iv_ca_add_use, iv_ca_add_group): Ditto.
17996 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
17997 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
17998 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
17999 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
18000 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
18001 (create_new_iv, adjust_iv_update_pos): Ditto.
18002 (rewrite_use_address): Delete.
18003 (rewrite_use_address_1): Rename to ...
18004 (rewrite_use_address): ... here.
18005 (rewrite_use_compare): Update all uses.
18006 (rewrite_use): Delete.
18007 (rewrite_uses): Rename to ...
18008 (rewrite_groups): ... here. Update all uses.
18009 (remove_unused_ivs, free_loop_data): Update all uses.
18010 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
18011
18012 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18013
18014 * rtlanal.c (nonzero_bits1): Convert preprocessor check
18015 for WORD_REGISTER_OPERATIONS to runtime check.
18016
18017 2016-04-27 Richard Biener <rguenther@suse.de>
18018
18019 PR ipa/70760
18020 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
18021 aggregate_value_p to determine if a function result is
18022 returned by reference.
18023 (ipa_pta_execute): Functions having their address taken are
18024 not automatically nonlocal.
18025
18026 2016-04-27 Jakub Jelinek <jakub@redhat.com>
18027
18028 PR sanitizer/70683
18029 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
18030 * fold-const.c (operand_equal_p): If flag_checking and
18031 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
18032 and if it returns non-zero, assert iterative_hash_expr on both
18033 args is the same.
18034
18035 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
18036
18037 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
18038
18039 2016-04-27 Nick Clifton <nickc@redhat.com>
18040
18041 PR middle-end/49889
18042 * varasm.c (merge_weak): Generate an error if an attempt is made
18043 to convert a non-weak static function into a weak, public function.
18044
18045 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18046
18047 * params.def (MAX_PARTITION_SIZE): New param.
18048 * doc/invoke.texi: Document lto-max-partition.
18049
18050 2016-04-27 Richard Biener <rguenther@suse.de>
18051
18052 PR ipa/70785
18053 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
18054 function cummulating used_from_other_partition, externally_visible
18055 and force_output from aliases.
18056 (refered_from_nonlocal_var): Likewise.
18057 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
18058 node flags properly.
18059
18060 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
18061
18062 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
18063 (-Wmemset-elt-size): New item.
18064
18065 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
18066
18067 PR ada/70759
18068 * stor-layout.h (internal_reference_types): Delete.
18069 * stor-layout.c (reference_types_internal): Likewise.
18070 (internal_reference_types): Likewise.
18071 (layout_type) <REFERENCE_TYPE>: Adjust.
18072
18073 2016-04-27 Jakub Jelinek <jakub@redhat.com>
18074
18075 PR sanitizer/70683
18076 * tree.h (inchash::add_expr): Add FLAGS argument.
18077 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
18078 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
18079 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
18080 Formatting fix. Adjust recursive calls. For tcc_comparison,
18081 if swap_tree_comparison (code) is smaller than code, hash that
18082 and arguments in the other order. Hash CONVERT_EXPR the same
18083 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
18084 of ADDR_EXPR of decl as the decl itself. Add or remove
18085 OEP_ADDRESS_OF from recursive flags as needed. For
18086 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
18087 operands commutatively and only the third one normally.
18088 For internal CALL_EXPR hash in CALL_EXPR_IFN.
18089
18090 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
18091
18092 * config/rtems.h (LIB_SPEC): Add -latomic.
18093
18094 2016-04-27 Joel Sherrill <joel@rtems.org>
18095
18096 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
18097 xilink.ld and flags not relevant to RTEMS.
18098
18099 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18100
18101 * toplev.c (backend_init_target): Avoid calling init_reload when using
18102 LRA.
18103
18104 2016-04-26 Jakub Jelinek <jakub@redhat.com>
18105
18106 * reorg.c (try_merge_delay_insns): Declare i and j inside the
18107 for loops rather than one for the whole function.
18108
18109 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
18110
18111 * match.pd (X + CST CMP X): New transformation.
18112
18113 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
18114
18115 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
18116 * fold-const.c (fold_binary_loc): Remove 2 transformations
18117 superseded by match.pd.
18118 * match.pd (x+x -> x*2): Generalize to integers.
18119
18120 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
18121
18122 * config/i386/i386.md (operation on memory peephole): Duplicate an
18123 existing peephole and adapt it to match lea rather than an operation
18124 that clobbers CC.
18125
18126 PR rtl-optimization/57193
18127 * opts.c (default_options_table): Add OPT_frename_registers at -O2
18128 and above.
18129 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
18130
18131 2016-04-26 Bin Cheng <bin.cheng@arm.com>
18132
18133 * tree-if-conv.c (any_pred_load_store): New static variable.
18134 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
18135 any_pred_load_store instead of and_mask_load_store.
18136 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
18137 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
18138 (combine_blocks, tree_if_conversion): Ditto.
18139
18140 2016-04-26 Bin Cheng <bin.cheng@arm.com>
18141
18142 PR tree-optimization/70771
18143 PR tree-optimization/70775
18144 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
18145 virtual PHI nodes. Delete parameter.
18146 (if_convertible_loop_p_1): Delete argument to above function.
18147 (predicate_all_scalar_phis): Delete code handling single-argument
18148 PHIs.
18149 (tree_if_conversion): Mark and update virtual SSA.
18150
18151 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18152
18153 PR target/61821
18154 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
18155 (x86_elf_aligned_common): Rename to ...
18156 (x86_elf_aligned_decl_common): ... this.
18157 Add decl arg. Switch to .lbss for largecomm object. Use
18158 LARGECOMM_SECTION_ASM_OP.
18159 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
18160 renaming.
18161 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
18162 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
18163 Pass new decl arg.
18164 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18165 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
18166
18167 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18168
18169 PR target/59407
18170 * config/i386/i386.c (SECTION_LARGE): Define.
18171 (x86_64_elf_select_section): Set it for large data/bss sections.
18172 Only clear SECTION_WRITE for .lrodata.
18173 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
18174 data/bss sections.
18175 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
18176 * varasm.c (default_elf_asm_named_section): Grow flagchars.
18177 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
18178 SECTION_MACH_DEP.
18179 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
18180 * doc/tm.texi: Regenerate.
18181
18182 2016-04-26 Jakub Jelinek <jakub@redhat.com>
18183
18184 PR bootstrap/70704
18185 * configure.ac (--enable-checking): Document extra flag, for
18186 non-release builds default to --enable-checking=yes,extra.
18187 If misc checking and extra checking, define CHECKING_P to 2 instead
18188 of 1.
18189 * common.opt (fchecking=): Add.
18190 * doc/invoke.texi (-fchecking=): Document.
18191 * doc/install.texi: Document --enable-checking changes.
18192 * configure: Regenerated.
18193 * config.in: Regenerated.
18194
18195 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18196
18197 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
18198 attribute instead of which_alternative.
18199 * config/i386/sse.md (*mov<mode>_internal): Ditto.
18200 Use EXT_REX_SSE_REG_P where appropriate.
18201
18202 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18203
18204 * config/i386/predicates.md (const0_operand): Do not match
18205 const_wide_int code.
18206 (const1_operand): Ditto.
18207
18208 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18209
18210 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
18211 for SSE constm1 operands and TARGET_AVX512VL.
18212 (*movti_internal): Ditto.
18213 (*mov<mode>_or): Use constm1_operand predicate.
18214 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
18215 for SSE vector_all_ones operands and TARGET_AVX512VL.
18216 * config/i386/predicates.md (constm1_operand): New predicate.
18217 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
18218 emission of constant -1 load.
18219
18220 2016-04-25 Jason Merrill <jason@redhat.com>
18221
18222 * gdbinit.in: Skip is-a.h.
18223
18224 * attribs.c (register_scoped_attributes): Fix logic.
18225 * attribs.h: Declare register_scoped_attributes.
18226
18227 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18228
18229 * config/rs6000/rs6000-builtin.def: Correct pasto error for
18230 stxvd2x and stxvw4x built-in functions.
18231
18232 2016-04-25 DJ Delorie <dj@redhat.com>
18233
18234 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
18235 (ashrhi3): Likewise.
18236 (lshrhi3): Likewise.
18237
18238 2016-04-25 Richard Biener <rguenther@suse.de>
18239
18240 PR tree-optimization/70780
18241 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
18242 wasn't visited yet.
18243 (compute_antic): Mark blocks with abnormal preds as visited as
18244 they have a final empty antic-in solution already.
18245
18246 2016-04-25 Michael Collison <michael.collison@linaro.org>
18247
18248 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
18249
18250 2016-04-25 Michael Collison <michael.collison@linaro.org>
18251
18252 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
18253 mode is VQI to improve mixed mode vectorization.
18254 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
18255 define_insn to match low half of signed vaddw.
18256 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
18257 define_insn to match high half of signed vaddw.
18258 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
18259 define_insn to match low half of unsigned vaddw.
18260 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
18261 define_insn to match high half of unsigned vaddw.
18262 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
18263 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18264 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
18265 for new function.
18266 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18267 * config/arm/predicates.md (vect_par_constant_high): Support
18268 big endian and simplify by calling
18269 arm_simd_check_vect_par_cnst_half
18270 (vect_par_constant_low): Likewise.
18271
18272 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18273
18274 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
18275 predicate for operand 2.
18276
18277 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
18278 H.J. Lu <hongjiu.lu@intel.com>
18279
18280 * config/i386/i386-protos.h (standard_sse_constant_p): Add
18281 machine_mode argument.
18282 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
18283 constm1_rtx operands. For VOIDmode constants, get mode from
18284 pred_mode. Check mode size if the mode is supported by ABI.
18285 (standard_sse_constant_opcode): Do not use standard_constant_p.
18286 Strictly check ABI support for all-ones operands.
18287 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
18288 immediates. Update calls to standard_sse_constant_p.
18289 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
18290 (ix86_rtx_costs): Ditto.
18291 * config/i386/i386.md (*movxi_internal_avx512f): Use
18292 nonimmediate_or_sse_const_operand instead of vector_move_operand.
18293 Use (v,BC) alternative instead of (v,C). Use register_operand
18294 checks instead of MEM_P.
18295 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
18296 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
18297 isa attribute. Use register_operand checks instead of MEM_P.
18298 (*movti_internal): Use nonimmediate_or_sse_const_operand for
18299 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
18300 alternative and corresponding sse2 isa attribute.
18301 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
18302 to standard_sse_constant_p.
18303 (FP constant splitters): Ditto.
18304 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
18305 (C): Ditto.
18306 * config/i386/predicates.md (constm1_operand): Remove.
18307 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
18308 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
18309 vector_all_ones_operand instead of constm1_operand.
18310
18311 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18312
18313 * print-rtl.c (print_rtx_insn_vec): New function.
18314 * print-rtl.h: New prototype.
18315 * store-motion.c (struct st_expr): Make avail_stores a vector.
18316 (st_expr_entry): Adjust.
18317 (free_st_expr_entry): Likewise.
18318 (print_store_motion_mems): Likewise.
18319 (find_moveable_store): Likewise.
18320 (compute_store_table): Likewise.
18321 (delete_store): Likewise.
18322 (build_store_vectors): Likewise.
18323
18324 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18325
18326 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
18327
18328 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18329
18330 * vec.h (vec_safe_contains): New function.
18331 (vec::contains): Likewise.
18332 (vec::begin): Likewise.
18333 (vec::end): Likewise.
18334
18335 2016-04-23 Jakub Jelinek <jakub@redhat.com>
18336
18337 PR sanitizer/70712
18338 * cfgexpand.c (expand_stack_vars): Fix typo.
18339
18340 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
18341
18342 * system.h (list, map, set, vector): Include conditionally.
18343 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
18344 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
18345 * ipa-icf.c (INCLUDE_LIST): Define.
18346 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
18347 * config/sh/sh.c (INCLUDE_VECTOR): Define.
18348 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
18349 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
18350 * cp/logic.cc (INCLUDE_LIST): Define.
18351 * fortran/trans-common.c (INCLUDE_MAP): Define.
18352
18353 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
18354
18355 * auto-profile.c: Remove <string.h> include.
18356 * ipa-icf-gimple.c: Remove <list> include.
18357 * diagnostic.c: Remove <new> include.
18358 * genmatch.c: Likewise.
18359 * pretty-print.c: Likewise.
18360 * toplev.c: Likewise
18361 * c/c-objc-common.c: Likewise.
18362 * cp/error.c: Likewise.
18363 * fortran/error.c: Likewise.
18364
18365 2016-04-22 Richard Biener <rguenther@suse.de>
18366
18367 * lto-streamer-in.c (input_ssa_names): Do not allocate
18368 GIMPLE_NOP for all SSA names.
18369 * lto-streamer-out.c (output_ssa_names): Do not output
18370 SSA names that should have been released.
18371
18372 2016-04-22 Richard Biener <rguenther@suse.de>
18373
18374 PR tree-optimization/70740
18375 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
18376 VDEF.
18377
18378 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
18379
18380 PR target/70750
18381 * config/i386/predicates.md (call_insn_operand): Replace
18382 sibcall_memory_operand with memory_operand.
18383
18384 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
18385
18386 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
18387 has_single_use() tests.
18388 (register_edge_assert_for_1): Likewise.
18389 (find_assert_locations_1): Check the liveness bitmap instead of
18390 checking has_single_use().
18391
18392 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
18393
18394 PR target/70728
18395 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
18396 Extract AVX-512BW constraint from AVX.
18397
18398 2016-04-21 Richard Biener <rguenther@suse.de>
18399
18400 PR tree-optimization/70725
18401 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
18402 for phi_convertible_by_degenerating_args.
18403 (predicate_all_scalar_phis): Handle single-argument PHIs.
18404
18405 2016-04-21 Richard Biener <rguenther@suse.de>
18406
18407 PR middle-end/70747
18408 * fold-const.c (fold_comparison): Return properly typed
18409 constant boolean.
18410
18411 2016-04-21 Bin Cheng <bin.cheng@arm.com>
18412
18413 PR tree-optimization/70715
18414 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
18415 after expanding BASE using expand_simple_operations.
18416
18417 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
18418
18419 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
18420 New transformations.
18421
18422 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
18423
18424 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
18425
18426 2016-04-20 Jan Hubicka <jh@suse.cz>
18427
18428 * ipa-inline.c (can_inline_edge_p): Pass caller info to
18429 ultiimate_alias_target.
18430 (update_callee_keys): Likewise.
18431 (lookup_recursive_calls): Likewise.
18432 (speculation_useful_p): Likewise.
18433
18434 2016-04-20 Jan Hubicka <jh@suse.cz>
18435
18436 PR ipa/70018
18437 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
18438 (set_nothrow_flag_1): ... this; handle interposition correctly;
18439 recurse on aliases and thunks.
18440 (cgraph_node::set_nothrow_flag): New.
18441 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
18442 functions compiled with non-call exceptions that binds to current
18443 def.
18444 (propagate_nothrow): Be safe WRT interposition.
18445 * cgraph.h (set_nothrow_flag): Update prototype.
18446
18447 2016-04-18 Jan Hubicka <jh@suse.cz>
18448
18449 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
18450 max_loop_iterations_int.
18451 (tree_unswitch_outer_loop): Likewise.
18452
18453 2016-04-20 Bin Cheng <bin.cheng@arm.com>
18454
18455 PR tree-optimization/69489
18456 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
18457 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
18458 Revise dump message.
18459 (if_convertible_bb_p): Remove check on edge count of basic block's
18460 predecessors.
18461
18462 2016-04-20 Bin Cheng <bin.cheng@arm.com>
18463
18464 PR tree-optimization/56625
18465 PR tree-optimization/69489
18466 * tree-data-ref.h (DR_INNERMOST): New macro.
18467 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
18468 hashing struct innermost_loop_behavior.
18469 (ref_DR_map): Remove.
18470 (innermost_DR_map): New map.
18471 (baseref_DR_map): Revise comment.
18472 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
18473 to innermost_DR_map accroding to its innermost loop behavior.
18474 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
18475 to its innermost loop behavior.
18476 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
18477 Add initialization for innermost_DR_map. Record memory reference
18478 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
18479 have innermost loop behavior.
18480 (if_convertible_loop_p): Remove release for ref_DR_map. Release
18481 innermost_DR_map.
18482
18483 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
18484
18485 * config/i386/i386.md (*lea<mode>_general_1): Rename from
18486 *lea_general_1. Use explicit SWI12 mode interator.
18487 (*lea<mode>_general_2): Rename from *lea_general_2.
18488 Use explicit SWI12 mode interator.
18489 (*lea<mode>_general_3): Rename from *lea_general_3.
18490 Use explicit SWI12 mode interator.
18491 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
18492 Use explicit SWI12 mode interator.
18493 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
18494 Use explicit SWI48 mode interator.
18495
18496 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
18497
18498 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
18499 Short-cut unaligned load and store cases. Handle all integer
18500 vector modes.
18501 (ix86_expand_vector_move_misalign): Short-cut unaligned load
18502 and store cases. Call ix86_avx256_split_vector_move_misalign
18503 directly without checking mode class.
18504
18505 2016-04-20 Andrew Pinski <apinski@cavium.com>
18506 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18507
18508 PR target/64971
18509 * config/aarch64/aarch64.md (sibcall): Force call
18510 address to be DImode for ILP32.
18511 (sibcall_value): Likewise.
18512
18513 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
18514
18515 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
18516
18517 2016-04-20 Richard Biener <rguenther@suse.de>
18518
18519 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
18520 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
18521 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
18522 (maybe_push_res_to_seq): Adjust.
18523 * gimple-fold.c (maybe_build_generic_op): Likewise.
18524
18525 2016-04-20 Marek Polacek <polacek@redhat.com>
18526
18527 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
18528 rather than true.
18529
18530 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
18531
18532 * config/i386/sse.md (vec_unpacks_lo_hi): Always
18533 use kmovw to support AVX512F target.
18534
18535 2016-04-20 Bin Cheng <bin.cheng@arm.com>
18536
18537 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
18538
18539 2016-04-20 Marek Polacek <polacek@redhat.com>
18540
18541 PR tree-optimization/70725
18542 * tree-if-conv.c (is_false_predicate): New function.
18543 (predicate_mem_writes): Use it.
18544
18545 2016-04-20 Richard Biener <rguenther@suse.de>
18546
18547 PR tree-optimization/70726
18548 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
18549 shift amounts from a pattern stmt operand.
18550
18551 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18552
18553 PR target/70674
18554 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
18555 stack_restore_from_fpr pattern when restoring r15.
18556 (s390_optimize_prologue): Strip away the memory barrier in the
18557 parallel when trying to get rid of restore insns.
18558 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
18559 definition for loading the stack pointer from an FPR. Compared to
18560 the normal move insn this pattern includes a full memory barrier.
18561
18562 2016-04-19 Jakub Jelinek <jakub@redhat.com>
18563
18564 PR middle-end/70680
18565 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
18566 implicitly linear or lastprivate iterator on the outer context.
18567
18568 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
18569
18570 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
18571 alignment check.
18572 * config/i386/i386.md (ssememalign): Removed.
18573 * config/i386/sse.md: Remove ssememalign attribute from patterns.
18574
18575 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
18576
18577 PR target/69201
18578 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
18579 const short * to __builtin_ia32_loaddquhi512_mask.
18580 (_mm512_maskz_loadu_epi16): Likewise.
18581 (_mm512_mask_storeu_epi16): Pass short * to
18582 __builtin_ia32_storedquhi512_mask.
18583 (_mm512_mask_loadu_epi8): Pass const char * to
18584 __builtin_ia32_loaddquqi512_mask.
18585 (_mm512_maskz_loadu_epi8): Likewise.
18586 (_mm512_mask_storeu_epi8): Pass char * to
18587 __builtin_ia32_storedquqi512_mask.
18588 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
18589 const double * to __builtin_ia32_loadupd512_mask.
18590 (_mm512_mask_loadu_pd): Likewise.
18591 (_mm512_maskz_loadu_pd): Likewise.
18592 (_mm512_storeu_pd): Pass double * to
18593 __builtin_ia32_storeupd512_mask.
18594 (_mm512_mask_storeu_pd): Likewise.
18595 (_mm512_loadu_ps): Pass const float * to
18596 __builtin_ia32_loadups512_mask.
18597 (_mm512_mask_loadu_ps): Likewise.
18598 (_mm512_maskz_loadu_ps): Likewise.
18599 (_mm512_storeu_ps): Pass float * to
18600 __builtin_ia32_storeups512_mask.
18601 (_mm512_mask_storeu_ps): Likewise.
18602 (_mm512_mask_loadu_epi64): Pass const long long * to
18603 __builtin_ia32_loaddqudi512_mask.
18604 (_mm512_maskz_loadu_epi64): Likewise.
18605 (_mm512_mask_storeu_epi64): Pass long long *
18606 to __builtin_ia32_storedqudi512_mask.
18607 (_mm512_loadu_si512): Pass const int * to
18608 __builtin_ia32_loaddqusi512_mask.
18609 (_mm512_mask_loadu_epi32): Likewise.
18610 (_mm512_maskz_loadu_epi32): Likewise.
18611 (_mm512_storeu_si512): Pass int * to
18612 __builtin_ia32_storedqusi512_mask.
18613 (_mm512_mask_storeu_epi32): Likewise.
18614 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
18615 char * to __builtin_ia32_storedquqi256_mask.
18616 (_mm_mask_storeu_epi8): Likewise.
18617 (_mm256_mask_loadu_epi16): Pass const short * to
18618 __builtin_ia32_loaddquhi256_mask.
18619 (_mm256_maskz_loadu_epi16): Likewise.
18620 (_mm_mask_loadu_epi16): Pass const short * to
18621 __builtin_ia32_loaddquhi128_mask.
18622 (_mm_maskz_loadu_epi16): Likewise.
18623 (_mm256_mask_loadu_epi8): Pass const char * to
18624 __builtin_ia32_loaddquqi256_mask.
18625 (_mm256_maskz_loadu_epi8): Likewise.
18626 (_mm_mask_loadu_epi8): Pass const char * to
18627 __builtin_ia32_loaddquqi128_mask.
18628 (_mm_maskz_loadu_epi8): Likewise.
18629 (_mm256_mask_storeu_epi16): Pass short * to.
18630 __builtin_ia32_storedquhi256_mask.
18631 (_mm_mask_storeu_epi16): Pass short * to.
18632 __builtin_ia32_storedquhi128_mask.
18633 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
18634 const double * to __builtin_ia32_loadupd256_mask.
18635 (_mm256_maskz_loadu_pd): Likewise.
18636 (_mm_mask_loadu_pd): Pass onst double * to
18637 __builtin_ia32_loadupd128_mask.
18638 (_mm_maskz_loadu_pd): Likewise.
18639 (_mm256_mask_storeu_pd): Pass double * to
18640 __builtin_ia32_storeupd256_mask.
18641 (_mm_mask_storeu_pd): Pass double * to
18642 __builtin_ia32_storeupd128_mask.
18643 (_mm256_mask_loadu_ps): Pass const float * to
18644 __builtin_ia32_loadups256_mask.
18645 (_mm256_maskz_loadu_ps): Likewise.
18646 (_mm_mask_loadu_ps): Pass const float * to
18647 __builtin_ia32_loadups128_mask.
18648 (_mm_maskz_loadu_ps): Likewise.
18649 (_mm256_mask_storeu_ps): Pass float * to
18650 __builtin_ia32_storeups256_mask.
18651 (_mm_mask_storeu_ps): ass float * to
18652 __builtin_ia32_storeups128_mask.
18653 (_mm256_mask_loadu_epi64): Pass const long long * to
18654 __builtin_ia32_loaddqudi256_mask.
18655 (_mm256_maskz_loadu_epi64): Likewise.
18656 (_mm_mask_loadu_epi64): Pass const long long * to
18657 __builtin_ia32_loaddqudi128_mask.
18658 (_mm_maskz_loadu_epi64): Likewise.
18659 (_mm256_mask_storeu_epi64): Pass long long * to
18660 __builtin_ia32_storedqudi256_mask.
18661 (_mm_mask_storeu_epi64): Pass long long * to
18662 __builtin_ia32_storedqudi128_mask.
18663 (_mm256_mask_loadu_epi32): Pass const int * to
18664 __builtin_ia32_loaddqusi256_mask.
18665 (_mm256_maskz_loadu_epi32): Likewise.
18666 (_mm_mask_loadu_epi32): Pass const int * to
18667 __builtin_ia32_loaddqusi128_mask.
18668 (_mm_maskz_loadu_epi32): Likewise.
18669 (_mm256_mask_storeu_epi32): Pass int * to
18670 __builtin_ia32_storedqusi256_mask.
18671 (_mm_mask_storeu_epi32): Pass int * to
18672 __builtin_ia32_storedqusi128_mask.
18673 * config/i386/i386-builtin-types.def (PCSHORT): New.
18674 (PINT64): Likewise.
18675 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
18676 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
18677 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
18678 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
18679 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
18680 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
18681 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
18682 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
18683 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
18684 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
18685 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
18686 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
18687 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
18688 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
18689 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
18690 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
18691 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
18692 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
18693 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
18694 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
18695 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
18696 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
18697 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
18698 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
18699 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
18700 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
18701 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
18702 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
18703 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
18704 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
18705 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
18706 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
18707 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
18708 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
18709 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
18710 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
18711 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
18712 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
18713 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
18714 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
18715 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
18716 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
18717 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
18718 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
18719 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
18720 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
18721 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
18722 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
18723 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
18724 use UNSPEC_STOREU.
18725 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
18726 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
18727 load nor store.
18728 (ix86_expand_vector_move_misalign): Likewise.
18729 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
18730 to scalar function prototype for unaligned load/store builtins.
18731 (ix86_expand_special_args_builtin): Updated.
18732 * config/i386/sse.md (UNSPEC_LOADU): Removed.
18733 (UNSPEC_STOREU): Likewise.
18734 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
18735 (VI_ULOADSTORE_F_AVX512VL): Likewise.
18736 (ssescalarsize): Handle V4TI, V2TI and V1TI.
18737 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18738 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18739 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
18740 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
18741 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
18742 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
18743 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
18744 (<avx512>_storedqu<mode>_mask): Likewise.
18745 (*sse4_2_pcmpestr_unaligned): Likewise.
18746 (*sse4_2_pcmpistr_unaligned): Likewise.
18747 (*mov<mode>_internal): Renamed to ...
18748 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
18749 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
18750 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
18751 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
18752
18753 2016-04-19 Richard Biener <rguenther@suse.de>
18754
18755 PR tree-optimization/70171
18756 * tree-ssa-phiprop.c: Include stor-layout.h.
18757 (phiprop_insert_phi): Handle the aggregate copy case.
18758 (propagate_with_phi): Likewise.
18759
18760 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
18761
18762 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
18763 instead of simplify_gen_subreg (... , 0).
18764 (ix86_delegitimize_address): Ditto.
18765 (ix86_split_divmod): Ditto.
18766 (ix86_split_copysign_const): Ditto.
18767 (ix86_split_copysign_var): Ditto.
18768 (ix86_expand_args_builtin): Ditto.
18769 (ix86_expand_round_builtin): Ditto.
18770 (ix86_expand_special_args_builtin): Ditto.
18771 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
18772 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
18773 (udivmodqi4): Ditto.
18774 (absneg splitters): Ditto.
18775 (*jcc_bt<mode>_1): Ditto.
18776
18777 2016-04-19 Richard Biener <rguenther@suse.de>
18778
18779 PR tree-optimization/70724
18780 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
18781 restoring out from ...
18782 (free_scc_vn): ... here.
18783 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
18784 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
18785 tail merging.
18786 (pass_fre::execute): Restore SSA info.
18787
18788 2016-04-19 Richard Biener <rguenther@suse.de>
18789
18790 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
18791 * gimple-walk.c (walk_gimple_op): Initialize it.
18792 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
18793 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
18794 remapping SSA names of defs.
18795 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
18796 adjustment.
18797
18798 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
18799
18800 PR middle-end/70689
18801 * lra-constraints.c (equiv_substition_p): New.
18802 (process_alt_operands): Use it.
18803 (swap_operands): Swap it.
18804 (curr_insn_transform): Update it.
18805
18806 2016-04-18 Michael Matz <matz@suse.de>
18807
18808 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
18809 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
18810 * tree-core.h (tree_type_common.align): Use bit-field.
18811 (tree_type_common.spare): New.
18812 (tree_decl_common.off_align): Make smaller.
18813 (tree_decl_common.align): Use bit-field.
18814
18815 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
18816 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
18817 (scan_sharing_clauses): Ditto.
18818 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18819 (omp_finish_file): Ditto.
18820 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
18821 (layout_decl): Ditto.
18822 (relayout_decl): Ditto.
18823 (finalize_record_size): Use SET_TYPE_ALIGN.
18824 (finalize_type_size): Ditto.
18825 (finish_builtin_struct): Ditto.
18826 (layout_type): Ditto.
18827 (initialize_sizetypes): Ditto.
18828 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
18829 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
18830 (lookup_field_for_decl): Use SET_DECL_ALIGN.
18831 (get_chain_field): Ditto.
18832 (get_trampoline_type): Ditto.
18833 (get_nl_goto_field): Ditto.
18834 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18835 SET_DECL_ALIGN.
18836 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
18837 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
18838 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18839 (build_qualified_type): Use SET_TYPE_ALIGN.
18840 (build_aligned_type, build_range_type_1): Ditto.
18841 (build_atomic_base): Ditto.
18842 (build_common_tree_nodes): Ditto.
18843 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
18844 (expand_one_stack_var_at): Ditto.
18845 * coverage.c (build_var): Use SET_DECL_ALIGN.
18846 * except.c (init_eh): Ditto.
18847 * function.c (assign_parm_setup_block): Ditto.
18848 * symtab.c (increase_alignment_1): Ditto.
18849 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
18850 * tree-vect-stmts.c (ensure_base_align): Ditto.
18851 * varasm.c (align_variable): Ditto.
18852 (assemble_variable): Ditto.
18853 (build_constant_desc): Ditto.
18854 (output_constant_def_contents): Ditto.
18855
18856 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
18857 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
18858 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
18859 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
18860 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
18861
18862 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
18863
18864 PR target/70708
18865 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
18866 replace %vmovsd with "%vmovq".
18867 (vec_concatv2df): Likewise.
18868
18869 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
18870
18871 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
18872 (*vec_extractv2si_0): Ditto.
18873 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
18874 (zero_extended_scalar_load_operand splitters): Ditto.
18875 (vec_extract splitters): Ditto.
18876 (*vec_extractv4si_0_zext): Ditto.
18877 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
18878 and lowpart_subreg.
18879 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
18880 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
18881 (*sse4_1_extractps): Use lowpart_subreg.
18882 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
18883
18884 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18885
18886 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
18887 gld requirements.
18888 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
18889 Mention Solaris 11 packaging changes.
18890 Update gas and gld requirements.
18891 Remove reference to pre-Solaris 10 bug.
18892 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
18893 systems and bugs.
18894 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
18895 with cc.
18896
18897 2016-04-17 Jan Hubicka <jh@suse.cz>
18898
18899 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
18900 max_loop_iterations_int.
18901
18902 2016-04-18 Richard Biener <rguenther@suse.de>
18903
18904 PR tree-optimization/43434
18905 * tree-ssa-structalias.c (struct vls_data): New.
18906 (visit_loadstore): Handle all pointer-based accesses.
18907 (compute_dependence_clique): Compute a bitmap of restrict tags
18908 assigned bases and pass it to visit_loadstore.
18909
18910 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
18911
18912 PR target/70711
18913 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
18914 armv8.1-a and armv8.1-a+crc.
18915
18916 2016-04-18 Richard Biener <rguenther@suse.de>
18917
18918 PR tree-optimization/70701
18919 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
18920 references after translating through a memcpy.
18921
18922 2016-04-18 Richard Biener <rguenther@suse.de>
18923
18924 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
18925 (compute_antic): ... here. For partial antic use regular
18926 postorder and scrap iteration.
18927 (compute_partial_antic_aux): Remove unused return value.
18928 (init_pre): Do not allocate postorder.
18929 (fini_pre): Do not free postorder.
18930
18931 2016-04-18 Richard Biener <rguenther@suse.de>
18932
18933 PR middle-end/37870
18934 * expmed.c (extract_bit_field_1): Remove broken case
18935 using a wider MODE_INT mode.
18936
18937 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
18938
18939 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
18940 unless compiling with at least GCC-4.8.
18941
18942 2016-04-17 Jan Hubicka <jh@suse.cz>
18943
18944 PR bootstrap/70706
18945 * graphite.c (graphite_finalize): Update call to
18946 tree_estimate_probability.
18947 * predict.h (tree_estimate_probability): Update prototype.
18948
18949 2016-04-17 Jan Hubicka <jh@suse.cz>
18950
18951 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
18952 (tree_estimate_probability): Likewise.
18953 (pass_profile::execute): Update.
18954 (report_predictor_hitrates): New function.
18955 * profile.c (compute_branch_probabilities): Use it.
18956 * predict.h (report_predictor_hitrates): Declare.
18957
18958 2016-04-17 Jan Hubicka <jh@suse.cz>
18959
18960 PR ipa/70018
18961 * cgraph.h (cgraph_node::set_const_flag,
18962 cgraph_node::set_pure_flag): Update prototype to return bool;
18963 update comment.
18964 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
18965 of interposable symbol are interposable, too.
18966 (cgraph_set_const_flag_1): Rename to ...
18967 (set_const_flag_1): ... this one; change to self recursive function
18968 instead of call_for_symbol_thunks_and_aliases. Handle correctly
18969 clearnig the flag in all variants and also virtual thunks of const
18970 functions are pure; track if any change was done.
18971 (cgraph_node::set_const_flag): Update.
18972 (struct set_pure_flag_info): New struct.
18973 (cgraph_set_pure_flag_1): Rename to ...
18974 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
18975 rather than pointer encoded flags; track if any changes was done;
18976 handle correctly clearning flag and setting flag of aliases already
18977 declared const.
18978 (cgraph_node::set_pure_flag): Update.
18979 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
18980
18981 2016-04-17 Tom de Vries <tom@codesourcery.com>
18982
18983 PR other/70433
18984 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
18985 backslash in label.
18986
18987 2016-04-17 Tom de Vries <tom@codesourcery.com>
18988
18989 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
18990 '{}<> ' as escape-for-record.
18991
18992 2016-04-17 Tom de Vries <tom@codesourcery.com>
18993
18994 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
18995 structure.
18996
18997 2016-04-17 Tom de Vries <tom@codesourcery.com>
18998
18999 PR other/70185
19000 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
19001 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
19002 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
19003 * passes.c (finish_optimization_passes): Only call
19004 finish_graph_dump_file if dfi->graph_dump_initialized.
19005 (execute_function_dump, pass_init_dump_file): Use
19006 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
19007
19008 2016-04-17 Tom de Vries <tom@codesourcery.com>
19009
19010 PR tree-optimization/70256
19011 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
19012 (debug_varmap): New function.
19013
19014 2016-04-17 Tom de Vries <tom@codesourcery.com>
19015
19016 PR other/70183
19017 * passes.c (pass_manager::register_pass): Propagate pflags.
19018
19019 2016-04-17 Tom de Vries <tom@codesourcery.com>
19020
19021 PR other/68875
19022 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
19023 * passes.c (pass_manager::pass_manager): Declare and init p_start in
19024 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
19025 check if it's equal to p_start.
19026 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
19027
19028 2016-04-15 Jan Hubicka <jh@suse.cz>
19029
19030 PR ipa/70018
19031 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
19032 function does not bind to current def.
19033 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
19034 handle conservatively calls to functions that does not need to bind
19035 to current def.
19036 (check_call): Update call of worse_state.
19037 (ignore_edge_for_nothrow): Update.
19038 (ignore_edge_for_pure_const): Likewise.
19039 (propagate_pure_const): Update calls to worse_state.
19040 (skip_function_for_local_pure_const): Reformat comments.
19041
19042 2016-04-15 Jan Hubicka <jh@suse.cz>
19043
19044 PR ipa/70018
19045 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
19046 (cgraph_node::function_symbol): Likewise.
19047 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19048 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
19049 (symtab_node::ultimate_alias_target): Add REF parameter.
19050 (symtab_node::binds_to_current_def_p): Declare.
19051 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
19052 (cgraph_node::function_symbol): Likewise.
19053 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19054 (cgraph_node::get_availability): Likewise.
19055 (cgraph_edge::binds_to_current_def_p): New inline function.
19056 (varpool_node::get_availability): Add REF parameter.
19057 (varpool_node::ultimate_alias_target): Likewise.
19058 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
19059 (symtab_node::binds_to_current_def_p): Likewise.
19060 * varpool.c (varpool_node::get_availability): Likewise.
19061
19062 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
19063
19064 PR target/70662
19065 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
19066 Fix mode size check.
19067
19068 2016-04-15 Jakub Jelinek <jakub@redhat.com>
19069
19070 * BASE-VER: Set to 7.0.0.
19071
19072 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
19073
19074 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
19075
19076 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19077
19078 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
19079 architecture revisions.
19080
19081 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
19082
19083 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
19084 * config/i386/i386.c (ix86_using_red_zone): No longer static.
19085 * config/i386/i386.md (stack decrement to push peepholes): Guard
19086 with !x86_using_red_zone ().
19087
19088 2016-04-15 Jakub Jelinek <jakub@redhat.com>
19089
19090 PR c++/70675
19091 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
19092 to dump_generic_node.
19093 (NIY): Pass also flags to do_niy.
19094
19095 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
19096
19097 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
19098 (simd_clone_vector_of_formal_parm_types)
19099 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
19100 (simd_clone_mangle, simd_clone_create)
19101 (simd_clone_adjust_return_type, create_tmp_simd_array)
19102 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
19103 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
19104 (ipa_simd_modify_function_body, simd_clone_linear_addend)
19105 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
19106 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
19107 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
19108 * omp-simd-clone.c: ... this new file.
19109 (simd_clone_vector_of_formal_parm_types): Make it static.
19110 * Makefile.in (OBJS): Add omp-simd-clone.o.
19111
19112 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
19113
19114 PR target/70662
19115 * config/i386/sse.md: Use proper memory operand modifiers.
19116
19117
19118 2016-04-15 Richard Biener <rguenther@suse.de>
19119 Alan Modra <amodra@gmail.com>
19120
19121 PR tree-optimization/70130
19122 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
19123 when alignment stays not the same and no not use the realign
19124 scheme then.
19125
19126 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19127
19128 PR target/70669
19129 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
19130 direct move handlers for KFmode. Change TFmode handlers test from
19131 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
19132
19133 2016-04-14 Jakub Jelinek <jakub@redhat.com>
19134
19135 PR c++/70594
19136 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
19137 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
19138 (inlined_polymorphic_ctor_dtor_block_p): Use it.
19139 * tree-ssa-live.c (remove_unused_scope_block_p): When
19140 in_ctor_dtor_block, avoid discarding not just BLOCKs with
19141 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
19142 block_ultimate_origin is FUNCTION_DECL.
19143 (remove_unused_locals): If current_function_decl is
19144 polymorphic_ctor_dtor_p, pass initial true to
19145 remove_unused_scope_block_p' is_ctor_dtor_block.
19146
19147 2016-04-14 Martin Sebor <msebor@redhat.com>
19148
19149 PR c++/69517
19150 PR c++/70019
19151 PR c++/70588
19152 * doc/extend.texi (Variable Length): Revert.
19153
19154 2016-04-14 Marek Polacek <polacek@redhat.com>
19155 Jan Hubicka <hubicka@ucw.cz>
19156
19157 PR c++/70029
19158 * tree.c (verify_type): Disable the canonical type of main variant
19159 check.
19160
19161 2016-04-14 Jason Merrill <jason@redhat.com>
19162
19163 * cfgexpand.c, expr.c: Revert previous change.
19164
19165 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
19166
19167 PR middle-end/70643
19168 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
19169 when building a mem ref for the incoming reduction variable.
19170
19171 2016-04-14 Richard Biener <rguenther@suse.de>
19172
19173 PR tree-optimization/70614
19174 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
19175 loop if the evolution dropped to chrec_dont_know.
19176 (interpret_condition_phi): Likewise.
19177
19178 2016-04-14 Richard Biener <rguenther@suse.de>
19179
19180 PR tree-optimization/70623
19181 * tree-ssa-pre.c (changed_blocks): Make global ...
19182 (compute_antic): ... local here. Move and fix worklist
19183 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
19184 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
19185 worklist handling, dump when ANTIC_IN changed.
19186 (compute_partial_antic_aux): Remove worklist handling.
19187 (init_pre): Do not compute post dominators. Add a comment about
19188 the CFG order chosen.
19189 (fini_pre): Do not free post dominators.
19190
19191 2016-04-13 Martin Sebor <msebor@redhat.com>
19192
19193 PR c++/69517
19194 PR c++/70019
19195 PR c++/70588
19196 * doc/extend.texi (Variable Length): Document C++ specifics.
19197
19198 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19199
19200 PR c++/70641
19201 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
19202 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
19203 eh edges have been purged.
19204
19205 PR c++/70594
19206 * tree-sra.c (create_access_replacement,
19207 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
19208 gets fancy name.
19209 * tree-pretty-print.c (dump_fancy_name): New function.
19210 (dump_decl_name, dump_generic_node): Use it.
19211
19212 2016-04-13 Jason Merrill <jason@redhat.com>
19213
19214 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
19215 * expr.c (expand_expr_real_1): Likewise.
19216
19217 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
19218
19219 * config/i386/i386.md (kunpckhi): Swap operands.
19220 (kunpcksi): Likewise.
19221 (kunpckdi): Likewise.
19222 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
19223 (vec_pack_trunc_<mode>): Likewise.
19224
19225 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19226
19227 PR debug/70628
19228 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
19229
19230 PR middle-end/70633
19231 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
19232 gimplification turns some element into non-constant.
19233
19234 PR debug/70628
19235 * rtl.h (convert_memory_address_addr_space_1): New prototype.
19236 * explow.c (convert_memory_address_addr_space_1): No longer static,
19237 add NO_EMIT argument and don't call convert_modes if true, pass
19238 it down recursively, remove break after return.
19239 (convert_memory_address_addr_space): Adjust caller.
19240 * simplify-rtx.c (simplify_unary_operation_1): Call
19241 convert_memory_address_addr_space_1 instead of convert_memory_address,
19242 if it returns NULL, don't simplify.
19243
19244 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
19245
19246 PR target/70630
19247 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
19248
19249 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19250
19251 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19252 Bump the upper SIMDLEN limits, so that if the return type or
19253 characteristic type if the return type is void can be passed in
19254 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
19255 allowed.
19256
19257 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19258
19259 PR target/70640
19260 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
19261 Do not use "=" constraint on an input constraint.
19262 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
19263 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
19264 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
19265 generates (neg (abs ...)) instead of (abs ...).
19266
19267 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19268
19269 PR rtl-optimization/70596
19270 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
19271 just invalidate LRA data and reset them. Adjust dump wording.
19272
19273 2016-04-12 Martin Liska <mliska@suse.cz>
19274
19275 Revert
19276 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19277
19278 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19279 estimates here.
19280 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19281 max_loop_iterations_int.
19282 (tree_unswitch_outer_loop): Likewise.
19283 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19284 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19285
19286 2016-04-12 Tom de Vries <tom@codesourcery.com>
19287
19288 PR tree-optimization/68756
19289 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
19290 instead of new_name.
19291
19292 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19293
19294 PR tree-optimization/70602
19295 * tree-sra.c (generate_subtree_copies): Don't write anything into
19296 constant pool decls.
19297
19298 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
19299 regardless whether there are depend clauses or not.
19300
19301 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19302
19303 PR target/70381
19304 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
19305 target attribute and pragma from changing the -mfloat128
19306 and -mfloat128-hardware options.
19307
19308 * doc/extend.texi (Additional Floating Types): Document PowerPC
19309 __float128 restrictions.
19310
19311 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19312
19313 PR target/70133
19314 * config/aarch64/driver-aarch64.c
19315 (aarch64_get_extension_string_for_isa_flags): New.
19316 (arch_extension): Rename to...
19317 (aarch64_arch_extension): ...This.
19318 (ext_to_feat_string): Rename to...
19319 (aarch64_extensions): ...This.
19320 (aarch64_core_data): Keep track of architecture extension flags.
19321 (cpu_data): Rename to...
19322 (aarch64_cpu_data): ...This.
19323 (aarch64_arch_driver_info): Keep track of architecture extension
19324 flags.
19325 (get_arch_name_from_id): Rename to...
19326 (get_arch_from_id): ...This, change return type.
19327 (host_detect_local_cpu): Update and reformat for renames, handle
19328 extensions through common infrastructure.
19329
19330 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19331
19332 PR target/70133
19333 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
19334 track of a canonical flag name.
19335 (all_extensions): Likewise.
19336 (arch_to_arch_name): Also track extension flags enabled by the arch.
19337 (all_architectures): Likewise.
19338 (aarch64_parse_extension): Move to here.
19339 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
19340 rework.
19341 (aarch64_rewrite_selected_cpu): Update for above change.
19342 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
19343 are handled, such that the single explicit value enabled by an
19344 extension is kept seperate from the implicit values it also enables.
19345 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
19346 to here.
19347 (aarch64_parse_extension): New.
19348 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
19349 here to config/aarch64/aarch64-protos.h.
19350 (aarch64_parse_extension): Move from here to
19351 common/config/aarch64/aarch64-common.c.
19352 (aarch64_option_print): Update.
19353 (aarch64_declare_function_name): Likewise.
19354 (aarch64_start_file): Likewise.
19355 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
19356 the canonical flag for extensions.
19357 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
19358 flags.
19359
19360 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19361
19362 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
19363 AARCH64_FL_CRC.
19364
19365 2016-04-09 Tom de Vries <tom@codesourcery.com>
19366
19367 PR tree-optimization/68953
19368 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
19369 first to last subscript.
19370
19371 2016-04-09 Jakub Jelinek <jakub@redhat.com>
19372
19373 PR tree-optimization/70586
19374 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
19375 for any calls.
19376
19377 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
19378
19379 PR lto/70289
19380 PR ipa/70348
19381 PR tree-optimization/70373
19382 PR middle-end/70533
19383 PR middle-end/70534
19384 PR middle-end/70535
19385 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
19386 clauses for acc parallel reductions as necessary. Error on those
19387 that are private.
19388 * omp-low.c (scan_sharing_clauses): Don't install variables which
19389 are used in acc parallel reductions.
19390 (lower_rec_input_clauses): Remove dead code.
19391 (lower_oacc_reductions): Add support for reference reductions.
19392 (lower_reduction_clauses): Remove dead code.
19393 (lower_omp_target): Don't remap variables appearing in acc parallel
19394 reductions.
19395 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
19396
19397 2016-04-08 Jakub Jelinek <jakub@redhat.com>
19398
19399 PR middle-end/70593
19400 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
19401 with multiple SSA_NAME defs, force the outputs other than first
19402 to be live before calling live_track_process_def on each output.
19403
19404 PR rtl-optimization/70574
19405 * fwprop.c (forward_propagate_and_simplify): Don't add
19406 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
19407 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
19408 paradoxical subregs within *loc.
19409
19410 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
19411
19412 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
19413 -ftree-parallelize-loops={0,1}.
19414 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
19415 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
19416 * config/ia64/hpux.h (LIB_SPEC): Likewise.
19417 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19418 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
19419
19420 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
19421
19422 PR sanitizer/70541
19423 * asan.c (instrument_derefs): If we get unknown location, extract it
19424 with EXPR_LOCATION.
19425 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
19426
19427 2016-04-08 Tom de Vries <tom@codesourcery.com>
19428
19429 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
19430 implicit firstprivate clause.
19431
19432 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19433
19434 PR target/70566
19435 * config/arm/thumb2.md (tst + branch-> lsls + branch
19436 peephole below *orsi_not_shiftsi_si): Require that condition
19437 register is dead after the peephole.
19438 (second peephole after the above): Likewise.
19439
19440 2016-04-08 Alan Modra <amodra@gmail.com>
19441
19442 PR target/70117
19443 * builtins.c (fold_builtin_classify): For IBM extended precision,
19444 look at just the high-order double to test for NaN.
19445 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
19446 test just the high double for Inf but both doubles for subnormal
19447 limit.
19448
19449 2016-04-07 Jakub Jelinek <jakub@redhat.com>
19450
19451 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
19452 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
19453 node->simdclone->mask_mode != VOIDmode masks.
19454 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
19455 earlier, use it instead of node->simdclone.
19456 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19457 Set clonei->mask_mode.
19458
19459 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
19460
19461 PR c/70436
19462 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
19463 Pass it through to cp_parser_already_scoped_statement.
19464 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
19465 it through to cp_parser_statement.
19466 (cp_parser_statement): Pass IF_P through to
19467 cp_parser_iteration_statement.
19468 (cp_parser_pragma): Adjust call to
19469 cp_parser_iteration_statement.
19470
19471 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
19472
19473 PR c/70436
19474 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
19475 resolve a future -Wparentheses warning.
19476 * omp-low.c (scan_sharing_clauses): Likewise.
19477 * tree-parloops.c (eliminate_local_variables): Likewise.
19478
19479 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
19480
19481 PR rtl-optimization/70398
19482 * lra-constraints.c (process_address_1): Check zero scale and code
19483 for reloading with zero scale.
19484
19485 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
19486
19487 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
19488 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
19489
19490 2016-04-06 Jakub Jelinek <jakub@redhat.com>
19491
19492 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19493 Add support for AVX512F clones, include them by default for
19494 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
19495 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
19496 up to 128.
19497
19498 PR middle-end/70550
19499 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
19500 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
19501 firstprivate clauses.
19502 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
19503 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
19504 (lower_omp_target): Set TREE_NO_WARNING for
19505 non-addressable possibly uninitialized vars which are copied into
19506 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
19507
19508 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
19509
19510 * config/pa/predicates.md (integer_store_memory_operand): Accept
19511 REG+D operands with a large offset when reload_in_progress is true.
19512 (floating_point_store_memory_operand): Likewise.
19513
19514 2016-04-05 Jakub Jelinek <jakub@redhat.com>
19515
19516 PR c++/70336
19517 * match.pd (nested int casts): Limit to GIMPLE.
19518
19519 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
19520
19521 PR ipa/66223
19522 * ipa-devirt.c (maybe_record_node): Fix comment; use
19523 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
19524
19525 2016-04-05 Jakub Jelinek <jakub@redhat.com>
19526
19527 PR rtl-optimization/70542
19528 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
19529 if there are any uses other than insn or debug insns.
19530
19531 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
19532 Jakub Jelinek <jakub@redhat.com>
19533
19534 PR tree-optimization/70509
19535 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
19536 Shift HOST_WIDE_INT_1U instead of 1.
19537
19538 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
19539
19540 PR tree-optimization/70509
19541 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
19542 of the vector base type for index.
19543
19544 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
19545
19546 PR target/70510
19547 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
19548
19549 2016-04-05 Richard Biener <rguenther@suse.de>
19550
19551 PR tree-optimization/70526
19552 * tree-sra.c (build_ref_for_offset): Use prev_base to
19553 extract the alias pointer type.
19554
19555 2016-04-05 Richard Biener <rguenther@suse.de>
19556
19557 * dse.c (struct store_info): Remove alias_set member.
19558 (struct read_info_type): Likewise.
19559 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
19560 spill_deleted, clear_alias_set_lookup): Remove.
19561 (get_group_info): Remove dead base == NULL_RTX case.
19562 (dse_step0): Remove initialization of removed variables.
19563 (delete_dead_store_insn): Reomve alias set dumping.
19564 (free_read_records): Remove alias_set handling.
19565 (canon_address): Remove alias_set_out parameter.
19566 (record_store): Remove spill_alias_set, it's always zero.
19567 (check_mem_read_rtx): Likewise.
19568 (dse_step2): Rename from ...
19569 (dse_step2_nospill): ... this. Adjust.
19570 (scan_stores): Rename from ...
19571 (scan_stores_nospill): ... this.
19572 (scan_reads): Rename from ...
19573 (scan_reads_nospill): ... this.
19574 (scan_stores_spill, scan_reads_spill): Remove.
19575 (dse_step3_scan): Remove for_spills argument which is always false.
19576 (dse_step3): Likewise.
19577 (dse_step5): Rename from ...
19578 (dse_step5_nospill): ... this. Remove alias_set handling.
19579 (rest_of_handle_dse): Adjust.
19580
19581 2016-04-05 Jakub Jelinek <jakub@redhat.com>
19582
19583 PR target/70525
19584 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
19585 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
19586 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
19587 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
19588
19589 2016-04-05 Richard Biener <rguenther@suse.de>
19590
19591 PR middle-end/70499
19592 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
19593 non-register type temporaries into SSA.
19594
19595 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
19596
19597 PR ipa/66223
19598 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
19599 calls when sanitizing.
19600 (possible_polymorphic_call_target_p): Fix formatting.
19601
19602 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19603 Jakub Jelinek <jakub@redhat.com>
19604
19605 PR middle-end/70457
19606 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
19607 to ensure a call statement is compatible with a built-in's
19608 prototype.
19609 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
19610 Likewise.
19611
19612 2016-04-04 Richard Biener <rguenther@suse.de>
19613
19614 PR rtl-optimization/70484
19615 * rtl.h (canon_output_dependence): Declare.
19616 * alias.c (canon_output_dependence): New function.
19617 * dse.c (record_store): Use canon_output_dependence rather
19618 than canon_true_dependence.
19619
19620 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19621
19622 PR ipa/68881
19623 * cgraph.h (symtab_node::copy_visibility_from): New function.
19624 * symtab.c (symtab_node::copy_visibility_from): New function.
19625 * ipa-visibility.c (optimize_weakref): New function.
19626 (function_and_variable_visibility): Use it.
19627
19628 2016-04-04 Martin Liska <mliska@suse.cz>
19629
19630 PR hsa/70402
19631 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
19632 value that is really in range handled by SBR instruction.
19633 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
19634 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
19635 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
19636
19637 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
19638
19639 PR target/70416
19640 PR target/67391
19641 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
19642 set, but not for SP_REG operands.
19643
19644 2016-04-02 Martin Sebor <msebor@redhat.com>
19645
19646 PR c++/67376
19647 * fold-const.c (maybe_nonzero_address): New function.
19648 (fold_comparison): Call it. Fold equality and relational
19649 expressions involving null pointers.
19650 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
19651
19652 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
19653
19654 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
19655 the "Y" constraint (scalar FP 0.0 immediate).
19656
19657 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
19658 Add the "const_double" to the list of operand constraints.
19659
19660 2016-04-01 Jakub Jelinek <jakub@redhat.com>
19661
19662 PR rtl-optimization/70467
19663 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
19664 If low word of the last operand is 0, just emit addition/subtraction
19665 for the high word.
19666
19667 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19668
19669 PR target/70404
19670 * config/s390/s390.c (s390_expand_insv): Check for everything
19671 constant instead of just VOIDmode stuff.
19672
19673 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19674
19675 PR target/70496
19676 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
19677
19678 2016-04-01 Nathan Sidwell <nathan@acm.org>
19679
19680 * tree.def (TRY_CATCH_EXPR): Correct documentation.
19681
19682 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
19683
19684 PR rtl-optimization/70461
19685 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
19686 is necessary.
19687
19688 2016-03-31 Martin Liska <mliska@suse.cz>
19689
19690 PR hsa/70399
19691 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
19692 a tree value or an immediate integer value to a buffer
19693 that is eventually copied to a BRIG section.
19694 (emit_immediate_operand): Call the function here.
19695 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
19696 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
19697 of class' fields that are removed.
19698 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
19699 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
19700 m_brig_repr_size fields.
19701
19702 2016-03-31 Martin Liska <mliska@suse.cz>
19703
19704 PR hsa/70391
19705 * hsa-gen.c (hsa_function_representation::update_dominance): New
19706 function.
19707 (convert_addr_to_flat_segment): Likewise.
19708 (gen_hsa_memory_set): New alignment argument.
19709 (gen_hsa_ctor_assignment): Likewise.
19710 (gen_hsa_insns_for_single_assignment): Provide alignment
19711 to gen_hsa_ctor_assignment.
19712 (gen_hsa_insns_for_direct_call): Add new argument.
19713 (expand_lhs_of_string_op): New function.
19714 (expand_string_operation_builtin): Likewise.
19715 (expand_memory_copy): New function.
19716 (expand_memory_set): New function.
19717 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
19718 (convert_switch_statements): Change signature.
19719 (generate_hsa): Use a return value of the function.
19720 (pass_gen_hsail::execute): Do not call
19721 convert_switch_statements here.
19722 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
19723 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
19724 (hsa_function_representation::update_dominance): New function.
19725
19726 2016-03-31 Martin Liska <mliska@suse.cz>
19727
19728 PR hsa/70391
19729 * hsa-brig.c (emit_directive_variable): Emit alignment
19730 according to hsa_symbol::m_align.
19731 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
19732 (dump_hsa_symbol): Dump alignment of HSA symbols.
19733 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
19734 (gen_hsa_addr_with_align): New function.
19735 (hsa_bitmemref_alignment): Use newly added function.
19736 (gen_hsa_insns_for_load): Likewise.
19737 (gen_hsa_insns_for_store): Likewise.
19738 (gen_hsa_memory_copy): New argument added.
19739 (gen_hsa_insns_for_single_assignment): Respect
19740 alignment for assignments processed via gen_hsa_memory_copy.
19741 (gen_hsa_insns_for_direct_call): Likewise.
19742 (gen_hsa_insns_for_return): Likewise.
19743 (gen_function_def_parameters): Set default alignment.
19744 * hsa.c (hsa_object_alignment): New function.
19745 (hsa_byte_alignment): Pasted function.
19746 * hsa.h (hsa_symbol::m_align): New field.
19747
19748 2016-03-31 Bin Cheng <bin.cheng@arm.com>
19749
19750 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
19751 scratch field for goto case.
19752
19753 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
19754
19755 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
19756
19757 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
19758
19759 PR target/70442
19760 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
19761 (scalar_chain::convert_insn): Call convert_op for reg
19762 moves to handle undefined registers.
19763
19764 2016-03-31 Nathan Sidwell <nathan@acm.org>
19765
19766 PR c++/70393
19767 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
19768 Assert we don't want to move backwards.
19769
19770 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
19771
19772 PR target/70453
19773 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
19774
19775 2016-03-31 Jakub Jelinek <jakub@redhat.com>
19776
19777 PR rtl-optimization/70460
19778 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
19779 with operand from REG_LABEL_OPERAND, instead substitute
19780 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
19781 Don't do anything for REG_NON_LOCAL_GOTO jumps.
19782
19783 2016-03-31 Martin Liska <mliska@suse.cz>
19784
19785 * passes.c (execute_one_pass): Do not call
19786 todo_after for a discarded function.
19787
19788 2016-03-31 Bin Cheng <bin.cheng@arm.com>
19789
19790 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
19791 (no_cost, infinite_cost): Initialize the new field.
19792 (get_computation_cost_at): Record setup cost.
19793 (determine_use_iv_cost_address): Skip cost computation for sub
19794 uses if we can estimate it without losing accuracy.
19795
19796 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19797
19798 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19799 estimates here.
19800 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19801 max_loop_iterations_int.
19802 (tree_unswitch_outer_loop): Likewise.
19803 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19804 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19805
19806 2016-03-30 Richard Biener <rguenther@suse.de>
19807
19808 PR middle-end/70450
19809 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
19810
19811 2016-03-30 Jakub Jelinek <jakub@redhat.com>
19812
19813 PR target/70421
19814 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
19815 in gen_blendm expander.
19816
19817 2016-03-30 Nick Clifton <nickc@redhat.com>
19818
19819 PR target/62254
19820 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
19821 case where we are already provided with an SImode SUBREG.
19822
19823 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
19824
19825 PR target/70439
19826 * config/i386/i386.c (ix86_expand_epilogue): Properly check
19827 conflict between DRAP register and __builtin_eh_return.
19828
19829 2016-03-30 Michael Matz <matz@suse.de>
19830 Richard Biener <rguenther@suse.de>
19831
19832 PR ipa/12392
19833 * ipa-polymorphic-call.c (struct type_change_info): Change
19834 speculative to an unsigned allowing to limit the work we do.
19835 (csftc_abort_walking_p): New inline function..
19836 (check_stmt_for_type_change): Limit the number of may-defs
19837 skipped for speculative devirtualization to
19838 max-speculative-devirt-maydefs.
19839 * params.def (max-speculative-devirt-maydefs): New param.
19840 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
19841
19842 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
19843
19844 PR target/63890
19845 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
19846 and TARGET_MACHO.
19847
19848 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
19849
19850 PR tree-optimization/59124
19851 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
19852 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
19853
19854 2016-03-29 Jeff Law <law@redhat.com>
19855
19856 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
19857
19858 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
19859
19860 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
19861 to HOST_WIDE_INT.
19862
19863 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
19864
19865 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
19866 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
19867 gcrt0.o if linking dynamically.
19868
19869 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
19870
19871 PR ipa/70283
19872 * ipa-devirt.c (methods_equal_p): New function.
19873 (compare_virtual_tables): Use it.
19874 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
19875 * cgraphclones.c (clone_function_name_1): Use
19876 symbol_table::symbol_suffix_separator.
19877 * coverage.c (build_var): Likewise.
19878 * symtab.c (symbol_table::symbol_suffix_separator): New.
19879
19880 2016-03-29 Jakub Jelinek <jakub@redhat.com>
19881
19882 PR rtl-optimization/70429
19883 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
19884 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
19885 mode != result_mode.
19886
19887 PR c++/70353
19888 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
19889
19890 PR tree-optimization/70405
19891 * ssa-iterators.h (num_imm_uses): Add missing braces.
19892
19893 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
19894
19895 PR rtl-optimization/68695
19896 * ira-color.c (allocno_copy_cost_saving): New.
19897 (improve_allocation): Use it.
19898
19899 2016-03-29 Richard Henderson <rth@redhat.com>
19900
19901 PR middle-end/70355
19902 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
19903
19904 2016-03-29 Richard Biener <rguenther@suse.de>
19905
19906 PR middle-end/70424
19907 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
19908 use alignment returned by get_pointer_alignment_1 if it is
19909 bigger than BITS_PER_UNIT.
19910 * builtins.c (get_pointer_alignment_1): Do not return true
19911 for alignment extracted from SSA info.
19912
19913 2016-03-28 James Bowman <james.bowman@ftdichip.com>
19914
19915 * config/ft32/ft32.opt (mnodiv): New.
19916 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
19917 * doc/invoke.texi (FT32 Options -mnodiv): New.
19918
19919 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
19920
19921 PR target/70406
19922 * config/i386/i386.md (define_split, andn): Fix modes.
19923
19924 2016-03-26 Richard Biener <rguenther@suse.de>
19925 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19926
19927 PR ipa/70366
19928 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
19929 instead of
19930 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
19931 as 2nd argument to cl_optimization_restore().
19932
19933 2016-03-25 Richard Henderson <rth@redhat.com>
19934
19935 PR target/70120
19936 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
19937 * config/aarch64/aarch64-protos.h: Declare it.
19938 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
19939
19940 2016-03-25 Alan Modra <amodra@gmail.com>
19941
19942 PR target/70052
19943 * config/rs6000/constraints.md (j): Simplify.
19944 * config/rs6000/predicates.md (easy_fp_constant): Exclude
19945 decimal float 0.D.
19946 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
19947 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
19948 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
19949 in all constraint alternatives.
19950 (movtd_64bit_nodm): Delete "j" constraint alternative.
19951
19952 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
19953
19954 * tree-ssa-propagate.c: Enhance docs for
19955 SSA_PROP_NOT_INTERESTING.
19956
19957 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
19958
19959 * doc/extend.texi: Fix typo in documentation to pure attribute.
19960
19961 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
19962
19963 PR target/70319
19964 * config/pa/pa.md (bswapdi2): Use a scratch register.
19965
19966 2016-03-24 Richard Henderson <rth@redhat.com>
19967
19968 PR middle-end/69845
19969 * fold-const.c (extract_muldiv_1): Correct test for multiplication
19970 overflow.
19971
19972 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
19973
19974 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
19975 using ix86_expand_binary_operator instead of gen_andsi3.
19976
19977 2016-03-24 Richard Biener <rguenther@suse.de>
19978
19979 PR tree-optimization/70396
19980 * tree-vect-stmts.c (vectorizable_comparison): Use
19981 get_vectype_for_scalar_type.
19982
19983 2016-03-24 Richard Biener <rguenther@suse.de>
19984
19985 PR middle-end/70370
19986 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
19987 with register bases.
19988
19989 2016-03-24 Richard Biener <rguenther@suse.de>
19990
19991 PR tree-optimization/70372
19992 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
19993 build_all_ones_cst to also handle vector types correctly.
19994
19995 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19996
19997 PR target/70381
19998 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
19999 -mfloat128 here.
20000
20001 2016-03-23 Marek Polacek <polacek@redhat.com>
20002
20003 PR c++/69884
20004 * doc/invoke.texi: Document -Wignored-attributes.
20005
20006 2016-03-23 Bin Cheng <bin.cheng@arm.com>
20007
20008 PR tree-optimization/69042
20009 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
20010 parameter from 30 to 40.
20011
20012 2016-03-23 Bin Cheng <bin.cheng@arm.com>
20013
20014 PR tree-optimization/69042
20015 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
20016 for use with constant offset stripped in base.
20017
20018 2016-03-23 Richard Biener <rguenther@suse.de>
20019
20020 PR middle-end/70251
20021 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
20022 mode compatibility check.
20023 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20024
20025 2016-03-23 Jeff Law <law@redhat.com>
20026
20027 PR tree-optimization/64058
20028 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
20029 CONFLICT_COUNT.
20030 (struct ssa_conflicts): Move up earlier in the file.
20031 (conflicts_, var_map_): New static variables.
20032 (initialize_conflict_count): New function to initialize the
20033 CONFLICT_COUNT field for each conflict pair.
20034 (compare_pairs): Lazily initialize the conflict count and use it
20035 as the first tie-breaker.
20036 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
20037 and wipe conflicts_ and map_ around the call to qsort. Remove
20038 special case for 2 coalesce pairs.
20039 * bitmap.c (bitmap_count_unique_bits): New function.
20040 (bitmap_count_bits_in_word): New function, extracted from
20041 bitmap_count_bits.
20042 (bitmap_count_bits): Use bitmap_count_bits_in_word.
20043 * bitmap.h (bitmap_count_unique_bits): Declare it.
20044
20045 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
20046
20047 PR target/69917
20048 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
20049 transparent alias chain for decl assembler name.
20050 * config/sol2.c (solaris_assemble_visibility): Likewise.
20051
20052 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20053
20054 * config/arm/arm1020e.md (1020call_op): Reduce reservation
20055 duration.
20056 (v10_fdivs): Likewise.
20057 (v10_fdivd): Likewise.
20058
20059 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20060
20061 PR driver/70132
20062 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
20063 to not call fclose twice on file.
20064
20065 2016-03-23 Jakub Jelinek <jakub@redhat.com>
20066
20067 PR tree-optimization/70354
20068 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
20069 oprnd0 is wider than oprnd1 and there is a cast from the wider
20070 type to oprnd1, mask it with the mask of the narrower type.
20071
20072 PR target/70321
20073 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
20074 Optimize TARGET_STV splitters, if high or low word of last argument
20075 is 0 or -1.
20076
20077 2016-03-22 Jeff Law <law@redhat.com>
20078
20079 PR target/70232
20080 tree-ssa-threadbackward.c
20081 (fsm_find_control_statement_thread_paths): Correctly distinguish
20082 between old style jump threads vs FSM jump threads.
20083
20084 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
20085
20086 PR target/70302
20087 * config/i386/i386.c (scalar_chain::convert_op): Support
20088 uninitialized register usage case.
20089
20090 2016-03-22 Richard Biener <rguenther@suse.de>
20091
20092 PR middle-end/70251
20093 * genmatch.c (gen_transform): Adjust last parameter to a three-state
20094 int...
20095 (capture::gen_transform): ... to change behavior when substituting
20096 a condition into cond or not-cond expr context.
20097 (dt_simplify::gen_1): Adjust.
20098 * gimple-match-head.c: Include gimplify.h for unshare_expr.
20099 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
20100 last change and instead change to
20101 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
20102 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20103
20104 2016-03-22 Anthony Green <green@moxielogic.com>
20105
20106 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
20107 issue for moxiebox targets.
20108 (CC1PLUS_SPEC): Ditto.
20109
20110 2016-03-22 Richard Biener <rguenther@suse.de>
20111
20112 PR middle-end/70333
20113 * fold-const.c (extract_muldiv_1): Properly perform multiplication
20114 in the wide type.
20115
20116 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
20117
20118 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
20119
20120 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
20121
20122 PR target/70325
20123 * config/i386/i386.c (def_builtin): Handle
20124 OPTION_MASK_ISA_AVX512VL to be and-ed with other
20125 bits.
20126 (const struct builtin_description bdesc_special_args[]):
20127 Remove duplicate ISA bits.
20128
20129 2016-03-22 Jakub Jelinek <jakub@redhat.com>
20130
20131 PR target/70329
20132 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
20133 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
20134 in a way that works also for AVX512BW.
20135
20136 PR target/70300
20137 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
20138 instead of source if operands[1] is xmm16 and above and
20139 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
20140 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
20141
20142 PR c++/70295
20143 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
20144 on assign if (*from_p) is a comparison, set it to
20145 TREE_NO_WARNING (*from_p).
20146
20147 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20148
20149 PR middle-end/70326
20150 * lra.c (restore_scratches): Ignore deleted insns.
20151
20152 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
20153 Jakub Jelinek <jakub@redhat.com>
20154
20155 PR tree-optimization/70317
20156 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
20157 to HONOR_NANS.
20158
20159 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
20160
20161 PR target/70327
20162 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
20163 of ix86_expand_move.
20164 (movoi): Ditto.
20165 (movti): Use general_operand for operand 1 predicate.
20166
20167 2016-03-21 Martin Liska <mliska@suse.cz>
20168
20169 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
20170 insns.
20171 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
20172
20173 2016-03-21 Martin Liska <mliska@suse.cz>
20174
20175 PR ipa/70306
20176 * ipa-icf.c (sem_function::parse): Skip static
20177 constructors and destructors.
20178
20179 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20180
20181 PR target/70296
20182 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
20183 function-like macro, peek following token(s) if it is followed
20184 by CPP_OPEN_PAREN token with optional padding in between, and
20185 if not, don't treat it like a macro.
20186
20187 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
20188 Alexander Monakov <amonakov@ispras.ru>
20189
20190 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
20191 for the stabs debug format.
20192
20193 2016-03-21 Richard Biener <rguenther@suse.de>
20194
20195 PR tree-optimization/70310
20196 * tree-vect-generic.c (expand_vector_condition): Fold the built
20197 condition.
20198
20199 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
20200
20201 PR target/70293
20202 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
20203 Block third alternative for AVX-512VL target,
20204
20205 2016-03-21 Martin Liska <mliska@suse.cz>
20206
20207 PR hsa/70234
20208 * hsa-brig.c (emit_function_directives): Mark unemitted
20209 global variables for emission.
20210 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
20211 (get_symbol_for_decl): Likewise.
20212 * hsa.h (struct hsa_symbol): New flag.
20213
20214 2016-03-21 Richard Biener <rguenther@suse.de>
20215
20216 PR tree-optimization/70288
20217 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
20218 we do not estimate unsimplified all-constant conditionals or
20219 switches as optimized away.
20220
20221 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
20222
20223 PR rtl-optimization/69102
20224 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
20225 when we have a readonly dependency context.
20226
20227 2016-03-18 Jeff Law <law@redhat.com>
20228
20229 PR rtl-optimization/70263
20230 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
20231 (update_equiv_regs): When trying to move a store to after the insn
20232 that sets the source of the store, make sure the store occurs after
20233 the insn that sets the source of the store. When successful note
20234 the REG_EQUIV note created in the dump file.
20235
20236 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
20237 Bernd Schmidt <bschmidt@redhat.com>
20238
20239 * doc/extend.texi: Document more potential problems with basic asms.
20240
20241 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
20242
20243 PR rtl-optimization/70278
20244 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
20245 VOIDmode.
20246
20247 2016-03-18 Jason Merrill <jason@redhat.com>
20248
20249 * calls.c (load_register_parameters): Fix zero size sibcall logic.
20250
20251 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
20252
20253 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
20254 values to 128b regs.
20255
20256 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20257
20258 PR tree-optimization/70252
20259 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
20260 boolean vector has a proper number of elements.
20261 (supportable_narrowing_operation): Likewise.
20262
20263 2016-03-18 Tom de Vries <tom@codesourcery.com>
20264
20265 PR ipa/70269
20266 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
20267
20268 2016-03-18 Jakub Jelinek <jakub@redhat.com>
20269
20270 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
20271 instead of replace_rtx for DEBUG_INSNs.
20272
20273 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20274
20275 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
20276 load type reservations.
20277
20278 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
20279
20280 PR target/70188
20281 * config/pa/constraints.md: Revert 2015-02-13 change. Use
20282 define_constraint for "Q" and "T" constraints.
20283
20284 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
20285
20286 Tweak the pipeline model for Exynos M1
20287
20288 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
20289 model.
20290
20291 2016-03-17 David Malcolm <dmalcolm@redhat.com>
20292
20293 PR c/70264
20294 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
20295 where one or both locations aren't within a line_map.
20296
20297 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
20298
20299 PR driver/70192
20300 * opts.c (finish_options): Don't set flag_pie to the default if
20301 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
20302 if it is -1.
20303
20304 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
20305
20306 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
20307 true as ALL_REGS argument to replace_rtx.
20308
20309 2016-03-17 Richard Biener <rguenther@suse.de>
20310
20311 PR debug/70271
20312 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
20313 last.
20314
20315 2016-03-17 Jakub Jelinek <jakub@redhat.com>
20316
20317 PR target/70245
20318 * rtl.h (replace_rtx): Add ALL_REGS argument.
20319 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
20320 equality and assert mode is the same, instead of just rtx pointer
20321 equality.
20322 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
20323 true as ALL_REGS argument to replace_rtx.
20324
20325 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
20326
20327 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
20328 for boolean vector with vector mode only.
20329 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20330
20331 2016-03-17 Nick Clifton <nickc@redhat.com>
20332
20333 PR target/70162
20334 * config/rx/rx.c (rx_print_integer): Print negative constants in
20335 decimal.
20336
20337 2016-03-17 Jakub Jelinek <jakub@redhat.com>
20338
20339 PR target/70261
20340 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
20341
20342 2016-03-16 Richard Henderson <rth@redhat.com>
20343 Richard Biener <rguenth@suse.de>
20344
20345 PR middle-end/70240
20346 PR middle-end/68215
20347 PR tree-opt/68714
20348 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
20349 first operand as is_gimple_condexpr.
20350
20351 PR middle-end/70240
20352 PR middle-end/68215
20353 Revert r231575
20354 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
20355 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
20356 Do not gimplify the result.
20357 (do_unop): Adjust call to tree_vec_extract.
20358 (do_binop): Likewise.
20359 (do_compare): Likewise.
20360 (do_plus_minus): Likewise.
20361 (do_negate): Likewise.
20362 (expand_vector_condition): Likewise.
20363 (do_cond): Likewise.
20364
20365 2016-03-16 Richard Henderson <rth@redhat.com>
20366
20367 PR target/70048
20368 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
20369 (aarch64_classify_address): Use it.
20370 (aarch64_legitimize_address): Force all subexpressions of PLUS
20371 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
20372
20373 2016-03-16 Jakub Jelinek <jakub@redhat.com>
20374 Richard Biener <rguenth@suse.de>
20375
20376 PR target/70245
20377 * rtlanal.c (replace_rtx): For REG, if from is a REG,
20378 return to even if only REGNO is equal, and assert
20379 mode is the same.
20380
20381 2016-03-11 Jeff Law <law@redhat.com>
20382
20383 PR rtl-optimization/70224
20384 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
20385
20386 2016-03-16 Richard Henderson <rth@redhat.com>
20387
20388 PR middle-end/70199
20389 * function.h (struct function): Add has_forced_label_in_static.
20390 * gimplify.c (force_labels_r): Set it.
20391 * lto-streamer-in.c (input_struct_function_base): Read it.
20392 * lto-streamer-out.c (output_struct_function_base): Write it.
20393 * tree-inline.c (has_label_address_in_static_1): Remove.
20394 (copy_forbidden): Remove fndecl parameter; test
20395 has_forced_label_in_static.
20396 (inline_forbidden_p): Update call to copy_forbidden.
20397 (tree_versionable_function_p): Likewise.
20398 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
20399 (chkp_versioning): Likewise.
20400 * tree-inline.h (copy_forbidden): Update decl.
20401
20402 2016-03-16 Marek Polacek <polacek@redhat.com>
20403
20404 PR c/70093
20405 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
20406 function being thunked if the result type doesn't have fixed size.
20407 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
20408 doesn't have fixed size.
20409
20410 2016-03-16 Bin Cheng <bin.cheng@arm.com>
20411
20412 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
20413 reporting malformed loop nest.
20414
20415 2016-03-16 Tom de Vries <tom@codesourcery.com>
20416
20417 PR lto/70187
20418 * ipa-devirt.c (possible_polymorphic_call_targets): Move
20419 nodes.length () == 1 test to before first nodes[0] access.
20420
20421 2016-03-16 Tom de Vries <tom@codesourcery.com>
20422
20423 PR tree-optimization/68715
20424 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
20425 single_pred_p test.
20426
20427 2016-03-16 Tom de Vries <tom@codesourcery.com>
20428
20429 PR tree-optimization/68809
20430 * graphite-scop-detection.c (same_close_phi_node): Test if result types
20431 are the same.
20432
20433 2016-03-16 Carlos O'Donell <carlos@redhat.com>
20434 Sandra Loosemore <sandra@codesourcery.com>
20435
20436 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
20437 on leaf attribute. Mention ELF interposition problems.
20438
20439 2016-03-16 Alan Modra <amodra@gmail.com>
20440
20441 PR rtl-optimization/69195
20442 PR rtl-optimization/47992
20443 * ira.c (indirect_jump_optimize): Ignore artificial defs.
20444 Add comments.
20445
20446 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
20447
20448 PR bootstrap/69513
20449 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
20450
20451 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20452
20453 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
20454
20455 2016-03-15 Jakub Jelinek <jakub@redhat.com>
20456
20457 PR rtl-optimization/70222
20458 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
20459 optimization if mode is different from result_mode, queue up masking
20460 of the result in outer_op. Formatting fix.
20461
20462 PR middle-end/70239
20463 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
20464 of safe_grow.
20465
20466 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
20467
20468 PR rtl-optimization/69032
20469 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
20470 looping backwards over basic block insns.
20471
20472 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
20473
20474 PR target/66660
20475 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
20476 to non-speculative when propagating trap bits.
20477
20478 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
20479
20480 PR rtl-optimization/63384
20481 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
20482 DEBUG_INSN_P insns.
20483
20484 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
20485
20486 PR target/64411
20487 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
20488 factored out from ...
20489 (sched_analyze_insn): ... here.
20490 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
20491 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
20492 get_implicit_reg_pending_clobbers in it.
20493 (setup_id_reg_sets): Use setup_id_implicit_regs.
20494 (deps_init_id): Ditto.
20495
20496 2016-03-15 Tom de Vries <tom@codesourcery.com>
20497
20498 PR ipa/70161
20499 * cgraph.c (cgraph_node::get_body): Save, reset and restore
20500 dump_file_name.
20501 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
20502 execute_function_dump.
20503 (execute_one_pass): Don't dump function if it will be dumped after ipa
20504 transform.
20505
20506 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
20507
20508 * genrecog.c (match_pattern_2): If pred is NULL don't call
20509 safe_predicate_mode on it.
20510
20511 2016-03-14 Jakub Jelinek <jakub@redhat.com>
20512
20513 PR middle-end/70219
20514 * lra-constraints.c (delete_move_and_clobber): Change assertion
20515 to also allow dregno == 0.
20516
20517 2016-03-14 Richard Henderson <rth@redhat.com>
20518
20519 PR tree-opt/68714
20520 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
20521 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
20522 (reassociate_bb): Use optimize_vec_cond_expr; avoid
20523 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
20524 on vectors.
20525
20526 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
20527
20528 PR target/70083
20529 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
20530 regs.
20531 (lra_create_live_ranges_1): initialize hard register biggest_mode to
20532 VOIDmode.
20533 * lra-constraints.c (split_reg): For hard regs, try to find the
20534 biggest single-register mode used in the function.
20535
20536 2016-03-14 Richard Biener <rguenther@suse.de>
20537
20538 PR tree-optimization/56365
20539 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
20540 constants to compare against.
20541
20542 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
20543
20544 PR target/70098
20545 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
20546 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
20547 (define_split for the GPR case): Use int_reg_operand instead of
20548 gpc_reg_operand for the output.
20549
20550 2016-03-14 Tom de Vries <tom@codesourcery.com>
20551
20552 PR tree-optimization/70045
20553 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
20554 create_empty_if_region_on_edge argument.
20555
20556 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
20557
20558 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
20559 (STACK_CHECK_PROTECT): Likewise.
20560 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
20561 (STACK_CHECK_PROTECT): Likewise.
20562 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
20563 (STACK_CHECK_PROTECT): Likewise.
20564 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
20565 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20566 (STACK_CHECK_PROTECT): Likewise.
20567
20568 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
20569
20570 PR rtl-optimization/69307
20571 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
20572 registers in modes that span more than one register.
20573
20574 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
20575
20576 PR target/69614
20577 * lra-constraints.c (delete_move_and_clobber): New.
20578 (remove_inheritance_pseudos): Use it.
20579
20580 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
20581
20582 PR ada/70017
20583 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
20584 the libcall is LCT_THROW.
20585 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
20586 for the checking routine.
20587
20588 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20589
20590 PR target/70131
20591 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
20592 optimization if we have direct move.
20593 (roundu32<mode>2_fprs): Likewise.
20594
20595 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
20596
20597 PR target/70123
20598 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
20599 be rematerialized.
20600 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
20601 Arguments swapped. All callers changed. Take reg_renumber into
20602 account, and Calculate and compare register ranges for hard regs.
20603
20604 2016-03-11 Jeff Law <law@redhat.com>
20605
20606 PR tree-optimization/70190
20607 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20608 Handle cases where we can not extract the taken edge, even though we
20609 found a constant value.
20610
20611 PR tree-optimization/64058
20612 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
20613 (num_coalesce_pairs): Move up earlier in file.
20614 (find_coalesce_pair): Initialize the INDEX field for each pair
20615 discovered.
20616 (compare_pairs): No longer sort on the elements in each pair.
20617 Instead break ties with the index of the coalesce pair.
20618
20619 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20620
20621 PR target/70002
20622 * config/aarch64/aarch64-protos.h
20623 (aarch64_save_restore_target_globals): New prototype.
20624 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
20625 Call the above when popping pragma.
20626 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
20627 New function.
20628 (aarch64_set_current_function): Rewrite using the above.
20629
20630 2016-03-11 Jakub Jelinek <jakub@redhat.com>
20631
20632 PR tree-optimization/70177
20633 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
20634 (extract_ops_from_tree): ... this. In the 2 argument
20635 overload remove _1 suffix.
20636 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
20637 (extract_ops_from_tree): ... this.
20638 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
20639 Adjust callers.
20640 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
20641 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
20642 extract_ops_from_tree instead of 2 operand one.
20643
20644 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
20645
20646 PR tree-optimization/70013
20647 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
20648 for constant-pool entries.
20649
20650 2016-03-11 Jakub Jelinek <jakub@redhat.com>
20651
20652 PR rtl-optimization/70174
20653 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
20654 followed by gen_lowpart on force_reg instead of just gen_lowpart.
20655
20656 PR tree-optimization/70169
20657 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
20658 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
20659 for unknown codes.
20660
20661 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
20662 Jakub Jelinek <jakub@redhat.com>
20663
20664 PR target/70160
20665 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
20666 of uninitialized values.
20667
20668 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20669
20670 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
20671 define_expand.
20672 ("*trunctddd2"): New pattern definition.
20673 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
20674 TD->DD truncation.
20675
20676 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20677
20678 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
20679 definitions for BFP and DFP rounding modes.
20680 ("fixuns_truncdddi2", "fixuns_trunctddi2")
20681 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
20682 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
20683 ("fix_trunctf<mode>2"): Use the new constants instead of magic
20684 numbers.
20685
20686 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20687
20688 * config/s390/constraints.md: Adjust comment.
20689 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
20690 s390_decompose_addrstyle_without_index.
20691 * config/s390/predicates.md (shift_count_or_setmem_operand):
20692 Rename to setmem_operand.
20693 * config/s390/s390-protos.h
20694 (s390_decompose_shift_count): Rename to
20695 s390_decompose_addrstyle_without_index.
20696 * config/s390/s390.c (s390_decompose_shift_count)
20697 (s390_mem_constraint, print_shift_count_operand)
20698 (print_operand_address, print_operand): Rename
20699 s390_decompose_shift_count to
20700 s390_decompose_addrstyle_without_index and rename
20701 print_shift_count_operand to print_addrstyle_operand troughout the
20702 file.
20703 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
20704 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
20705 Rename shift_count_or_setmem_operand to setmem_operand.
20706 * config/s390/vx-builtins.md ("vec_insert<mode>")
20707 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
20708 nonmemory_operand.
20709
20710 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20711
20712 PR target/70168
20713 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
20714 Handle overlapping retval and newval.
20715
20716 2016-03-10 Nick Clifton <nickc@redhat.com>
20717
20718 PR target/7044
20719 * config/aarch64/aarch64.c
20720 (aarch64_override_options_after_change_1): When forcing
20721 flag_omit_frame_pointer to be true, use a special value that can
20722 be detected if this function is called again, thus preventing
20723 flag_omit_leaf_frame_pointer from being forced to be false.
20724
20725 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20726
20727 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
20728 Set x_flag_omit_leaf_frame_pointer when handling
20729 -momit-leaf-frame-pointer.
20730
20731 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20732
20733 PR lto/69589
20734 * cgraph.c (cgraph_node::dump): Dump split_part and
20735 indirect_call_target.
20736 * cgraph.h (cgraph_node): Add indirect_call_target flag.
20737 * ipa.c (has_addr_references_p): Cleanup.
20738 (is_indirect_call_target_p): New.
20739 (walk_polymorphic_call_targets): Do not mark virtuals that may be
20740 called indirectly as local.
20741 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
20742
20743 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20744
20745 PR ipa/69630
20746 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
20747 on cxa_pure_virtual.
20748
20749 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20750
20751 PR lto/69589
20752 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
20753
20754 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20755
20756 PR lto/69589
20757 * tree.c (need_assembler_name_p): Only record main variant type names.
20758
20759 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
20760
20761 PR target/70113.
20762 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
20763 Always define to 0 or 1.
20764 (TARGET_FIX_ERR_A53_843419): New macro.
20765 * config/aarch64/aarch64-elf-raw.h
20766 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
20767 * config/aarch64/aarch64-linux.h: Likewise.
20768 * config/aarch64/aarch64.c
20769 (aarch64_override_options_after_change_1): Do not default
20770 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
20771 843419 is on.
20772 (aarch64_attributes): Handle fix-cortex-a53-843419.
20773 (aarch64_can_inline_p): Likewise.
20774 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
20775
20776 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
20777 Jakub Jelinek <jakub@redhat.com>
20778
20779 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
20780 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
20781 DECL_COMMONS if flag_unconstrained_commons is set.
20782 * tree-dfa.c (get_ref_base_and_extent): Likewise.
20783 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
20784 (funconstrained-commons): Document.
20785
20786 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
20787
20788 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
20789 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
20790
20791 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
20792
20793 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
20794 has a proper number of elements.
20795
20796 2016-03-10 Alan Modra <amodra@gmail.com>
20797
20798 PR rtl-optimization/69195
20799 PR rtl-optimization/47992
20800 * ira.c (recorded_label_ref): Delete.
20801 (update_equiv_regs): Return void.
20802 (indirect_jump_optimize): New function.
20803 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
20804 before regstat_compute_ri. Don't rebuild_jump_labels here.
20805 Delete update_regstat.
20806
20807 2016-03-10 Richard Biener <rguenther@suse.de>
20808
20809 PR tree-optimization/70128
20810 * tree-ssa-structalias.c (set_uids_in_ptset): Set
20811 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
20812
20813 2016-03-09 Jakub Jelinek <jakub@redhat.com>
20814
20815 PR tree-optimization/70152
20816 * tree-sra.c (replace_removed_params_ssa_names): Copy over
20817 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
20818
20819 PR target/70086
20820 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
20821 instead of gen_sse2_loadlpd.
20822 * config/i386/sse.md (*vec_concatv2df): Rename to...
20823 (vec_concatv2df): ... this.
20824
20825 PR tree-optimization/70127
20826 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
20827
20828 2016-03-09 David Malcolm <dmalcolm@redhat.com>
20829
20830 PR c/68473
20831 PR c++/70105
20832 * diagnostic-show-locus.c (compatible_locations_p): New function.
20833 (layout::layout): Sanitize ranges using compatible_locations_p.
20834
20835 2016-03-09 David Malcolm <dmalcolm@redhat.com>
20836
20837 PR c/68473
20838 PR c++/70105
20839 * diagnostic-show-locus.c (layout_range::layout_range): Replace
20840 location_range param with three const expanded_locations * and a
20841 bool.
20842 (layout::layout): Replace call to
20843 rich_location::lazily_expand_location with get_expanded_location.
20844 Extract the range and perform location expansion here, passing
20845 the results to the layout_range ctor.
20846 * diagnostic.c (source_range::debug): Delete.
20847 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
20848 of rich_location::get_expanded_location.
20849 * gcc-rich-location.c (get_range_for_expr): Delete.
20850 (gcc_rich_location::add_expr): Reimplement to avoid the
20851 rich_location::add_range overload that took a location_range,
20852 passing a location_t instead.
20853
20854 2016-03-09 Richard Biener <rguenther@suse.de>
20855 Jakub Jelinek <jakub@redhat.com>
20856
20857 PR tree-optimization/70138
20858 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
20859 Also skip vect_double_reduction_def.
20860
20861 2016-03-09 Jakub Jelinek <jakub@redhat.com>
20862
20863 PR target/70049
20864 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
20865 if the operand is "m".
20866
20867 2016-03-09 Nathan Sidwell <nathan@acm.org>
20868
20869 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
20870
20871 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20872
20873 * config/i386/i386.c (processor_target_table): Fix cost table
20874 intialization order for znver1.
20875
20876 2016-03-08 Jakub Jelinek <jakub@redhat.com>
20877
20878 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
20879 - becuase -> because.
20880 * ipa-reference.c (ignore_module_statics): Likewise.
20881 * cgraph.c (cgraph_node::get_body): Likewise.
20882 * ipa-inline.c (early_inliner): Likewise.
20883 * ipa-devirt.c (types_same_for_odr): Likewise.
20884 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
20885 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
20886
20887 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20888
20889 * tree-ssa-math-opts.c: Fix typo in comment.
20890
20891 2016-03-08 Jakub Jelinek <jakub@redhat.com>
20892
20893 PR target/70110
20894 * config/i386/i386.c (scalar_chain::make_vector_copies,
20895 scalar_chain::convert_reg): Call end_sequence in between
20896 get_insns and emit_conversion_insns rather than after both
20897 calls.
20898
20899 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
20900
20901 PR target/70064
20902 * config/i386/i386.h (machine_function): Add
20903 pc_thunk_call_expanded flag.
20904 (ix86_pc_thunk_call_expanded): New define.
20905 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
20906 (*set_got): Rename insn pattern from set_got.
20907 (*set_got_labelled): Rename inst pattern from set_got_labelled.
20908 * config/i386/i386.c (ix86_compute_frame_layout): Use
20909 ix86_pc_thunk_call_expanded to prevent red-zone.
20910
20911 2016-03-07 Martin Jambor <mjambor@suse.cz>
20912
20913 * hsa.h (hsa_get_ctor_statements): Declare.
20914 (hsa_get_dtor_statements): Likewise.
20915 (hsa_get_kernel_dispatch_type): Likewise.
20916 * hsa.c (hsa_get_ctor_statements): New function.
20917 (hsa_get_dtor_statements): Likewise.
20918 (hsa_get_kernel_dispatch_type): Likewise.
20919 * hsa-brig.c (hsa_cdtor_statements): Removed.
20920 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
20921 hsa_get_dtor_statements.
20922 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
20923 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
20924
20925 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20926
20927 * config/arm/arm-cores.def (cortex-r8): New.
20928 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
20929 * config/arm/arm-tune.md: Likewise.
20930 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
20931
20932 2016-03-07 Martin Sebor <msebor@redhat.com>
20933
20934 PR rtl-optimization/19705
20935 * doc/invoke.texi (Options That Control Optimization): Clarify
20936 -fno-branch-count-reg.
20937
20938 2016-02-26 Richard Biener <rguenther@suse.de>
20939 Jeff Law <law@redhat.com>
20940
20941 PR tree-optimization/69740
20942 * cfghooks.c (remove_edge): Request loop fixups if we delete
20943 an edge that might turn an irreducible loop into a natural
20944 loop.
20945 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
20946 Move after definition of loops_state_clear.
20947
20948 2016-03-07 Bin Cheng <bin.cheng@arm.com>
20949
20950 PR rtl-optimization/69052
20951 * rtlanal.c (commutative_operand_precedence): Set higher precedence
20952 to CONST_WIDE_INT.
20953
20954 2016-03-07 Tom de Vries <tom@codesourcery.com>
20955
20956 PR tree-optimization/70116
20957 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
20958 is_tm_ending stmts and ubsan/asan internal functions.
20959 (find_duplicate): Use it. Don't test is_tm_ending here.
20960
20961 2016-03-07 Richard Biener <rguenther@suse.de>
20962
20963 PR tree-optimization/70115
20964 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
20965 (propagate_constants_for_unrolling): Use replace_uses_by.
20966
20967 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
20968
20969 PR middle-end/69916
20970 * omp-low.c (struct oacc_loop): Add ifns.
20971 (new_oacc_loop_raw): Initialize it.
20972 (finish_oacc_loop): Clear mask & flags if no ifns.
20973 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
20974 (oacc_loop_xform_loop): Add ifns arg & adjust.
20975 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
20976
20977 2016-03-07 Richard Henderson <rth@redhat.com>
20978
20979 PR rtl-opt/70061
20980 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
20981 (insert_value_copy_on_edge): Likewise.
20982
20983 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20984
20985 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
20986
20987 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20988
20989 PR target/62281
20990 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
20991
20992 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
20993
20994 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
20995
20996 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
20997
20998 Fix sseimul type attribute.
20999 * config/i386/znver1.md
21000 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
21001 znver1_sseimul_avx256_load) : Fix the type attribute.
21002 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
21003 pipe usage and latency.
21004
21005 2016-03-05 Jakub Jelinek <jakub@redhat.com>
21006
21007 PR c++/70084
21008 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
21009 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
21010 to the right type.
21011
21012 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
21013
21014 PR c/69973
21015 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
21016
21017 PR rtl-optimization/69941
21018 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
21019 the reg share its mode.
21020
21021 2016-03-04 Jeff Law <law@redhat.com>
21022
21023 PR tree-optimization/69196
21024 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21025 If the both SSA_NAMEs are anonymous, then consider them unassociated
21026 and include the PHI in the statement count.
21027
21028 2016-03-05 Tom de Vries <tom@codesourcery.com>
21029
21030 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
21031 construct in oacc routine. Check for oacc region in oacc routine.
21032
21033 2016-03-04 Jakub Jelinek <jakub@redhat.com>
21034
21035 PR target/70062
21036 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
21037 2016-02-22 changes, instead don't recurse if RECUR is already true.
21038 Don't change *dynamic_check if RECUR. Adjust recursive caller
21039 to pass true to the new argument.
21040 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
21041
21042 PR target/70059
21043 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
21044 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
21045 fixes.
21046 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
21047
21048 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
21049
21050 PR rtl-optimization/57676
21051 * lra-assigns.c (lra_assign): Guard test for maximum iterations
21052 with flag_checking.
21053
21054 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
21055
21056 * tree-vect-patterns.c (search_type_for_mask): Handle
21057 comparison of booleans.
21058
21059 2016-03-04 Jakub Jelinek <jakub@redhat.com>
21060
21061 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
21062 Fix @xref usage.
21063
21064 PR debug/69947
21065 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
21066 all other ops that have dw_val_class_die_ref operands,
21067 and DW_OP_GNU_entry_value.
21068
21069 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21070
21071 PR rtl-optimization/69904
21072 * config/arm/arm.c (arm_cannot_copy_insn_p):
21073 Return true for load-exclusive instructions.
21074
21075 2016-03-03 Jakub Jelinek <jakub@redhat.com>
21076
21077 PR target/70021
21078 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
21079 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
21080 the pattern no matter if it is used just by non-pattern, pattern
21081 or mix thereof.
21082 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
21083 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
21084 oprnd1 def_stmt is in pattern, don't look through it.
21085
21086 2016-03-03 Marek Polacek <polacek@redhat.com>
21087
21088 PR middle-end/70050
21089 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
21090
21091 2016-03-03 Martin Liska <mliska@suse.cz>
21092
21093 PR tree-optimization/70043
21094 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
21095 previous statement if we see a debug statement.
21096
21097 2016-03-03 Richard Biener <rguenther@suse.de>
21098
21099 PR tree-optimization/55936
21100 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
21101 parameter and guard unsafe equivalence use.
21102 (vrp_evaluate_conditional_warnv_with_ops): Always use
21103 safe equivalences but not via the quadratic compare_names
21104 helper.
21105
21106 2016-03-03 Michael Collison <michael.collison@linaro.org>
21107
21108 PR target/70014
21109 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
21110 for operand 1 to s_register_operand. Change predicate for operand
21111 2 to arm_not_immediate_operand.
21112
21113 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
21114
21115 * doc/tm.texi: Regenerated.
21116
21117 2016-03-02 Richard Henderson <rth@redhat.com>
21118
21119 PR rtl-opt/67145
21120 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
21121 simplification when all args are positive non-fixed registers.
21122
21123 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21124
21125 * target.def (lra_p): Specify that new ports should use LRA.
21126
21127 2016-03-02 Jakub Jelinek <jakub@redhat.com>
21128
21129 PR libgomp/69555
21130 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
21131 gimplify_type_sizes the type they refer to.
21132 (omp_notice_variable): Handle reference vars to VLAs.
21133 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
21134 reference to VLA decls in the second pass instead of first pass.
21135
21136 2016-03-02 Tom de Vries <tom@codesourcery.com>
21137
21138 PR tree-optimization/68659
21139 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
21140 new_expr == NULL_TREE.
21141 (get_new_name): Handle ADDR_EXPR.
21142
21143 2016-03-02 Bin Cheng <bin.cheng@arm.com>
21144
21145 PR rtl-optimization/69052
21146 * loop-invariant.c (canonicalize_address): New function.
21147 (inv_can_prop_to_addr_use): Check validity of address expression
21148 which is canonicalized by above function.
21149
21150 2016-03-02 Alan Modra <amodra@gmail.com>
21151
21152 PR ipa/69990
21153 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
21154 larger alignment.
21155
21156 2016-03-02 Jakub Jelinek <jakub@redhat.com>
21157
21158 PR target/70028
21159 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
21160 (*movhi_internal): Put mask moves from and to memory separately
21161 from moves from/to GPRs.
21162
21163 2016-03-02 Richard Biener <rguenther@suse.de>
21164
21165 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
21166 GENERIC expressions in GIMPLE.
21167
21168 2016-03-02 Richard Biener <rguenther@suse.de>
21169
21170 * config/i386/i386.c (type_natural_mode): Fix typo.
21171
21172 2016-03-02 Nick Clifton <nickc@redhat.com>
21173
21174 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
21175
21176 2016-03-02 Richard Biener <rguenther@suse.de>
21177 Uros Bizjak <ubizjak@gmail.com>
21178
21179 PR target/67278
21180 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
21181
21182 2016-03-02 Richard Biener <rguenther@suse.de>
21183
21184 PR middle-end/67278
21185 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
21186
21187 2016-03-02 Marek Polacek <polacek@redhat.com>
21188
21189 PR c/67854
21190 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
21191 "is promoted to" warning.
21192
21193 2016-03-01 DJ Delorie <dj@redhat.com>
21194
21195 * config.gcc: Deprecate mep-*.
21196
21197 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
21198
21199 PR middle-end/70025
21200 * lra-constraints.c (regno_val_use_in): New.
21201 (match_reload): Use it instead of regno_use_in.
21202
21203 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21204
21205 PR rtl-optimization/70007
21206 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
21207 references present in REG_EQUAL notes attached to non-SET patterns.
21208
21209 2016-03-01 Jeff Law <law@redhat.com>
21210
21211 PR tree-optimization/69196
21212 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21213 Appropriately clamp the number of statements to copy when the
21214 thread path does not traverse a loop backedge.
21215
21216 PR tree-optimization/69196
21217 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21218 Do count some PHIs in the thread path against the insn count. Decrease
21219 final statement count by one as the control statement in the last
21220 block will get removed. Remove special cased code for handling PHIs
21221 in the last block.
21222
21223 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
21224
21225 PR target/70027
21226 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
21227 asm dialect alternatives to explicit GOTPCREL calls.
21228
21229 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21230
21231 PR ada/70017
21232 * ira.c (do_reload): Issue warning for generic stack checking here...
21233 * reload1.c (reload): ...instead of here and streamline it.
21234
21235 2016-03-01 Nick Clifton <nickc@redhat.com>
21236
21237 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
21238
21239 2016-03-01 Richard Biener <rguenther@suse.de>
21240
21241 PR tree-optimization/69983
21242 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
21243 types and fall back to operand_equal_p.
21244
21245 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21246
21247 Revert
21248 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21249
21250 * config/s390/constraints.md ("jm8"): New constraint.
21251 * config/s390/predicates.md ("const_int_8bitset_operand"): New
21252 predicate.
21253 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
21254 into ...
21255 ("*setmem_long<setmem_and>"): New pattern.
21256 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
21257 into ...
21258 ("*setmem_long_31z<setmem_and>"): New pattern.
21259 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
21260 New substitution rules with the required attributes.
21261
21262
21263 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21264
21265 Revert
21266 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21267
21268 * gensupport.c (process_substs_on_one_elem): Split loop to
21269 complete mark_operands_used_in_match_dup on all expressions in the
21270 vector first.
21271 (adjust_operands_numbers): Inline into process_substs_on_one_elem
21272 and remove function.
21273
21274 2016-03-01 Richard Biener <rguenther@suse.de>
21275
21276 PR middle-end/70022
21277 * fold-const.c (fold_indirect_ref_1): Fix range checking for
21278 vector BIT_FIELD_REF extract.
21279
21280 2016-03-01 Richard Biener <rguenther@suse.de>
21281
21282 PR tree-optimization/69994
21283 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
21284
21285 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
21286
21287 PR tree-optimization/69956
21288 * tree-vect-stmts.c (supportable_widening_operation): Support
21289 multi-step conversion of boolean vectors.
21290 (supportable_narrowing_operation): Likewise.
21291
21292 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21293
21294 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
21295 anymore.
21296
21297 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21298
21299 * config/s390/subst.md (DSI_VI): New mode iterator.
21300 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
21301 * config/s390/vector.md ("vec_set<mode>"): Move expander before
21302 the insn definition.
21303 ("*vec_set<mode>"): Change predicate and add alternative to
21304 support only either register or const_int operands as element
21305 selector.
21306 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
21307 operands.
21308 ("vec_extract<mode>"): New expander.
21309 ("*vec_extract<mode>"): New insn definition supporting reg and
21310 const_int element selectors.
21311 ("*vec_extract<mode>_plus"): New insn definition supporting
21312 reg+const_int element selectors.
21313 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
21314 following expander+insn definition.
21315 ("<vec_shifts_name><mode>3"): New expander.
21316 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
21317
21318 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21319
21320 * config/s390/s390.md ("*tabort_1"): Change predicate to
21321 nonmemory_operand. Add a second alternative to cover
21322 register as well as const int operands.
21323 ("*tabort_1_plus"): New pattern definition.
21324
21325 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21326
21327 * config/s390/s390.md ("*ashrdi3_cc_31")
21328 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
21329 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
21330 Merge insn definitions into ...
21331 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21332 New pattern definition.
21333 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
21334 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
21335 ("*ashr<mode>3_and"): Merge insn definitions into ...
21336 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21337 New pattern definition.
21338 * config/s390/subst.md ("addr_style_op_cc_subst")
21339 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
21340 substitutions patterns plus attributes.
21341 Add ashiftrt to SUBST iterator.
21342
21343 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21344
21345 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
21346 op2 to nonmemory_operand.
21347 ("*<shift>di3_31", "*<shift>di3_31_and"):
21348 Merge into single pattern definition ...
21349 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
21350 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
21351 pattern definition ...
21352 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
21353 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
21354 iterator.
21355
21356 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21357
21358 * config/s390/predicates.md (const_int_6bitset_operand): New
21359 predicate.
21360 * config/s390/s390.md: Include subst.md.
21361 ("rotl<mode>3"): New expander.
21362 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
21363 ...
21364 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
21365 * config/s390/subst.md: New file.
21366
21367 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21368
21369 * config/s390/s390.md ("op_type", "atype", "length" attributes):
21370 Remove RRR type. It doesn't really exist.
21371 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
21372 attributes.
21373 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
21374 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
21375 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
21376 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
21377 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
21378 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
21379 `enabled' attribute.
21380
21381 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21382
21383 * gensupport.c (process_substs_on_one_elem): Split loop to
21384 complete mark_operands_used_in_match_dup on all expressions in the
21385 vector first.
21386 (adjust_operands_numbers): Inline into process_substs_on_one_elem
21387 and remove function.
21388
21389 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
21390
21391 PR target/69706
21392 * config/sparc/sparc.c (NWORDS_UP): Rename to...
21393 (CEIL_NWORDS): ...this. Use CEIL macro.
21394 (compute_fp_layout): Adjust to above renaming.
21395 (function_arg_union_value): Likewise.
21396 (sparc_arg_partial_bytes): Likewise.
21397 (sparc_function_arg_advance): Likewise.
21398
21399 2016-02-29 Jeff Law <law@redhat.com>
21400
21401 PR tree-optimization/70005
21402 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
21403 where an object with a boolean range is compared against a value
21404 outside [0..1].
21405
21406 PR tree-optimization/69999
21407 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
21408 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
21409 loop cleanups.
21410
21411 2016-02-29 Richard Biener <rguenther@suse.de>
21412
21413 PR tree-optimization/69994
21414 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
21415 (get_unary_op): Look through nop conversions.
21416 (ops_equal_values_p): New function, look for equality diregarding
21417 nop conversions.
21418 (eliminate_plus_minus_pair): Use ops_equal_values_p
21419 (repropagate_negates): Do not use get_unary_op here.
21420
21421 2016-02-29 Martin Liska <mliska@suse.cz>
21422
21423 * system.h: Poison ENABLE_CHECKING macro.
21424
21425 2016-02-29 Martin Liska <mliska@suse.cz>
21426
21427 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
21428 is presented in dump flags.
21429 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
21430 (hsa_regalloc): Likewise.
21431
21432 2016-02-19 Richard Biener <rguenther@suse.de>
21433
21434 PR tree-optimization/69980
21435 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
21436 permutation of those we need to keep.
21437
21438 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
21439
21440 PR target/69706
21441 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
21442 (NWORDS_UP): ...this
21443 (init_cumulative_args): Minor tweaks.
21444 (sparc_promote_function_mode): Likewise.
21445 (scan_record_type): Delete.
21446 (traverse_record_type): New function template.
21447 (classify_data_t): New structure type.
21448 (classify_registers): New inline function.
21449 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
21450 exhausted. Instantiate traverse_record_type on classify_registers and
21451 deal with the case of a structure passed in slot #15 with no FP field
21452 in the first word.
21453 (assign_data_t): New structure type.
21454 (compute_int_layout): New static function.
21455 (compute_fp_layout): Likewise.
21456 (count_registers): New inline function.
21457 (assign_int_registers): New static function.
21458 (assign_fp_registers): Likewise.
21459 (assign_registers): New inline function.
21460 (function_arg_record_value_1): Delete.
21461 (function_arg_record_value_2): Likewise.
21462 (function_arg_record_value_3): Likewise.
21463 (function_arg_record_value): Adjust to above changes. Instantiate
21464 traverse_record_type on count_registers to first count the number of
21465 registers to be used and then on assign_registers to assign them.
21466 (function_arg_union_value): Adjust to above renaming.
21467 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
21468 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
21469 case of a structure passed in slot #15
21470 (sparc_function_arg_advance): Likewise.
21471 (function_arg_padding): Minor tweak.
21472
21473 2016-02-29 Richard Biener <rguenther@suse.de>
21474
21475 PR tree-optimization/69720
21476 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
21477 the adjustment_def path for possibly vectorized defs.
21478 (vect_create_epilog_for_reduction): Handle vectorized initial
21479 defs properly.
21480
21481 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
21482
21483 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
21484
21485 2016-02-27 Jeff Law <law@redhat.com>
21486
21487 Revert
21488 2016-02-26 Richard Biener <rguenther@suse.de>
21489 Jeff Law <law@redhat.com>
21490
21491 PR tree-optimization/69740
21492 * cfghooks.c (remove_edge): Request loop fixups if we delete
21493 an edge that might turn an irreducible loop into a natural
21494 loop.
21495
21496 2016-02-27 Jakub Jelinek <jakub@redhat.com>
21497
21498 PR rtl-optimization/69896
21499 * tree-vect-generic.c (get_compute_type): Avoid single element
21500 vector types.
21501
21502 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
21503
21504 Rename the AArch64 tuning option and related functions to enable the
21505 Newton series for the reciprocal square root to reflect its
21506 approximative characteristic.
21507
21508 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
21509 function to "aarch64_emit_approx_rsqrt".
21510 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
21511 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
21512 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
21513 (xgene1_tunings): Likewise.
21514 (use_rsqrt_p): Likewise.
21515 (aarch64_emit_swrsqrt): Use new function name.
21516 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
21517 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
21518 text explaining this option.
21519 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
21520
21521 2016-02-26 Jakub Jelinek <jakub@redhat.com>
21522
21523 PR target/69969
21524 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21525 complain about -mallow-movmisalign without -mvsx if
21526 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
21527
21528 2016-02-26 Joel Sherrill <joel@rtems.org>
21529
21530 * config.gcc: Add x86_64-*-rtems*.
21531 * config/i386/rtems-64.h: New file.
21532
21533 2016-02-26 Joel Sherrill <joel@rtems.org>
21534
21535 * config.gcc: Add aarch64-*-rtems*.
21536 * config/aarch64/rtems.h: New file.
21537
21538 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
21539
21540 PR target/69946
21541 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
21542 shift amount using %h. Add comment.
21543
21544 2016-02-26 Richard Biener <rguenther@suse.de>
21545 Jeff Law <law@redhat.com>
21546
21547 PR tree-optimization/69740
21548 * cfghooks.c (remove_edge): Request loop fixups if we delete
21549 an edge that might turn an irreducible loop into a natural
21550 loop.
21551
21552 2016-02-26 Martin Jambor <mjambor@suse.cz>
21553
21554 PR middle-end/69920
21555 * tree-sra.c (sra_modify_assign): Do not remove loads of
21556 uninitialized aggregates to SSA_NAMEs.
21557
21558 2016-02-26 Richard Henderson <rth@redhat.com>
21559
21560 PR target/69709
21561 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
21562 pseudo in case the target rtx matches the source of the left
21563 shift.
21564
21565 2016-02-26 Martin Jambor <mjambor@suse.cz>
21566
21567 PR hsa/69568
21568 * hsa.h (hsa_type_packed_p): Declare.
21569 * hsa.c (hsa_type_packed_p): New function.
21570 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
21571 loads.
21572 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
21573 * hsa-brig.c (emit_basic_insn): Likewise.
21574
21575 2016-02-26 Martin Jambor <mjambor@suse.cz>
21576
21577 pr hsa/69674
21578 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
21579 pointers.
21580 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
21581
21582 2016-02-26 Martin Jambor <mjambor@suse.cz>
21583
21584 * hsa.h (is_a_helper): New overload for hsa_op_immed for
21585 hsa_op_with_type operands.
21586 (hsa_unsigned_type_for_type): Declare.
21587 * hsa.c (hsa_unsigned_type_for_type): New function.
21588 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
21589 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
21590 the finalizer. Do not emit extra move.
21591
21592 2016-02-26 Martin Jambor <mjambor@suse.cz>
21593
21594 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
21595 atomic operations in private segment.
21596
21597 2016-02-26 Martin Jambor <mjambor@suse.cz>
21598
21599 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
21600 statements to wi->info. Also disallow omp simd constructs.
21601 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
21602 for not gridifying. Dump special string for omp_for.
21603
21604 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21605
21606 PR target/69245
21607 * config/aarch64/aarch64.c (aarch64_set_current_function):
21608 Save/restore target globals when switching to
21609 target_option_default_node.
21610
21611 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21612
21613 PR target/69613
21614 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
21615 Return 0 if !SHIFT_COUNT_TRUNCATED.
21616
21617 2016-02-26 Jakub Jelinek <jakub@redhat.com>
21618 Eric Botcazou <ebotcazou@adacore.com>
21619
21620 PR rtl-optimization/69891
21621 * dse.c (scan_insn): If we can't figure out memset arguments
21622 or they are non-constant, call clear_rhs_from_active_local_stores.
21623
21624 2016-02-26 Martin Liska <mliska@suse.cz>
21625
21626 * doc/extend.texi: Mention clog10, clog10f an clog10l
21627 in Builtins section.
21628
21629 2016-02-26 Martin Liska <mliska@suse.cz>
21630
21631 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
21632 CHECKING_P.
21633 (resolve_args_picking_1): Likewise.
21634 * dwarf2out.h (struct GTY): Likewise.
21635
21636 2016-02-26 Martin Liska <mliska@suse.cz>
21637
21638 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
21639 with flag_checking.
21640 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
21641
21642 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
21643 Martin Liska <mliska@suse.cz>
21644
21645 * doc/install.texi: Mention --enable-valgrind-annotations.
21646
21647 2016-02-26 Richard Biener <rguenther@suse.de>
21648
21649 PR tree-optimization/69551
21650 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
21651 looking through aliases adjust DECL_PT_UID to refer to the
21652 ultimate alias target.
21653
21654 2016-02-25 Martin Liska <mliska@suse.cz>
21655
21656 PR middle-end/69919
21657 * alloc-pool.c (after_memory_report): New variable.
21658 * alloc-pool.h (base_pool_allocator ::release): Do not use
21659 the infrastructure if after_memory_report.
21660 * toplev.c (toplev::main): Mark after memory report.
21661
21662 2016-02-25 Richard Biener <rguenther@suse.de>
21663
21664 PR tree-optimization/48795
21665 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
21666
21667 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
21668
21669 PR driver/68463
21670 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
21671 offloading is enabled and -fopenacc or -fopenmp is specified.
21672 (CRTOFFLOADEND): Likewise.
21673 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
21674 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
21675 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
21676 (offload_objects_file_name): New static var.
21677 (tool_cleanup): Remove offload_objects_file_name file.
21678 (find_offloadbeginend): Replace with ...
21679 (find_crtoffloadtable): ... this.
21680 (run_gcc): Remove offload_argc and offload_argv.
21681 Get offload_objects_file_name from -foffload-objects=... option.
21682 Read names of object files with offload from this file, pass them to
21683 compile_images_for_offload_targets. Don't call find_offloadbeginend and
21684 don't pass offloadbegin and offloadend to the linker. Don't pass
21685 offload non-LTO files to the linker, because now they're not claimed.
21686
21687 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
21688
21689 PR ipa/69630
21690 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
21691 on builtin_unreachable.
21692
21693 2016-02-25 Jakub Jelinek <jakub@redhat.com>
21694
21695 PR rtl-optimization/69896
21696 * regcprop.c: Include cfgrtl.h.
21697 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
21698 than remembered mode, either delete it (if noop_move_p), or
21699 treat like copy_p but not noop_p instruction.
21700
21701 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21702
21703 PR debug/69705
21704 * dwarf2out.c (gen_variable_die): Work around buggy LTO
21705 - allow NULL decl for Fortran DW_TAG_common_block variables.
21706
21707 2016-02-24 Jason Merrill <jason@redhat.com>
21708
21709 * common.opt (flifetime-dse): Add -flifetime-dse=1.
21710
21711 2016-02-24 Richard Biener <rguenther@suse.de>
21712 Jakub Jelinek <jakub@redhat.com>
21713
21714 PR middle-end/69760
21715 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
21716 conditionally executed ops to well-defined overflow behavior.
21717
21718 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21719
21720 PR middle-end/69915
21721 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
21722 elements.
21723
21724 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21725
21726 PR rtl-optimization/69886
21727 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
21728 argument. Use it when checking validity of set instructions.
21729 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
21730 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
21731 callsite.
21732 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
21733 * store-motion.c (find_moveable_store): Update
21734 can_assign_to_reg_without_clobbers_p callsite.
21735
21736 2016-02-24 Richard Biener <rguenther@suse.de>
21737
21738 PR middle-end/68963
21739 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
21740 bogus check.
21741 (record_nonwrapping_iv): Do not fall back to the low/high bound
21742 for non-constant IV bases if the stmt is not always executed.
21743
21744 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21745
21746 * config/arm/arm-cores.def (cortex-a32): New entry.
21747 * config/arm/arm-tables.opt: Regenerate.
21748 * config/arm/arm-tune.md: Regenerate.
21749 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
21750 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
21751 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
21752 for -mcpu and -mtune.
21753
21754 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21755
21756 PR target/69875
21757 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
21758 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
21759 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
21760 (atomic_loaddi_1): Delete.
21761 (atomic_loaddi): Rewrite expander using the above changes.
21762
21763 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21764
21765 PR c/69918
21766 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
21767 2 to 3.
21768
21769 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21770 Richard Biener <rguenth@suse.de>
21771
21772 PR middle-end/69909
21773 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
21774 set_mem_attributes if tem is SSA_NAME which got expanded
21775 as a MEM.
21776
21777 2016-02-24 Richard Biener <rguenther@suse.de>
21778
21779 PR tree-optimization/69907
21780 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
21781 end of permutations for BB vectorization.
21782
21783 2016-02-24 Christian Bruel <christian.bruel@st.com>
21784
21785 * config/arm/arm-c.c (arm_option_override): Initialize
21786 target_option_current_node.
21787 * config/arm/arm.c (arm_pragma_target_parse): Replace
21788 build_target_option_node call by target_option_current_node.
21789 Set target_option_current_node.
21790 Fix comments.
21791
21792 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
21793
21794 PR target/69810
21795 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
21796 define_insn_and_split to define_insn.
21797 (zero_extendqi<mode>2_dot2): Same.
21798 (extendqi<mode>2_dot): Same.
21799 (extendqi<mode>2_dot2): Same.
21800
21801 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
21802
21803 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
21804 and add bypass for AES{D,E} and AESMC pairs.
21805 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
21806 and AESMC pairs.
21807
21808 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
21809
21810 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
21811 series for reciprocal square root in Exynos M1.
21812
21813 2016-02-23 Martin Sebor <msebor@redhat.com>
21814
21815 PR c/69759
21816 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
21817 __builtin_alloca_with_align.
21818
21819 2016-02-23 Richard Henderson <rth@redhat.com>
21820
21821 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
21822 (ix86_register_pragmas): Remove __seg_tls.
21823 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
21824 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
21825 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
21826 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
21827 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
21828 * doc/extend.texi (__seg_tls): Remove item.
21829
21830 2016-02-23 Richard Biener <rguenther@suse.de>
21831
21832 * alloc-pool.h (struct allocation_object): Make id member
21833 conditional on CHECKING_P again.
21834 (get_instance): Adjust.
21835 (base_pool_allocator): Likewise.
21836
21837 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
21838
21839 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
21840 (parallelize_loops): In OpenACC kernels mode, set n_threads to
21841 zero.
21842 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
21843 flag_openacc.
21844 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
21845
21846 2016-02-23 Richard Biener <rguenther@suse.de>
21847
21848 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
21849 * bitmap.h (struct bitmap_usage): Likewise.
21850 (bitmap_move): Declare.
21851 * bitmap.c (register_overhead): Take size_t argument.
21852 (bitmap_move): New function.
21853 * df-problems.c (df_rd_transfer_function): Use bitmap_move
21854 to properly account overhead.
21855 * tree.c (free_node): Use tree_size.
21856
21857 2016-02-23 Jakub Jelinek <jakub@redhat.com>
21858
21859 PR c++/69902
21860 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
21861 when inverting comparison.
21862
21863 PR c/69900
21864 * common.opt (Wunreachable-code): Add Warning flag.
21865
21866 2016-02-23 Mark Wielaard <mjw@redhat.com>
21867 Jakub Jelinek <jakub@redhat.com>
21868
21869 PR c/69911
21870 * cgraphunit.c (check_global_declaration): Check main_input_filename
21871 and DECL_SOURCE_FILE are not NULL.
21872
21873 2016-02-23 Martin Jambor <mjambor@suse.cz>
21874
21875 PR tree-optimization/69666
21876 * tree-sra.c (sra_modify_assign): Do not attempt to create
21877 default_def replacements for unscalarizable regions.
21878
21879 2016-02-20 Mark Wielaard <mjw@redhat.com>
21880
21881 PR c/28901
21882 * cgraphunit.c (check_global_declaration): Check level of
21883 warn_unused_const_variable and main_input_filename.
21884 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
21885 (-Wunused-variable): For C implies -Wunused-const-variable=1.
21886 (-Wunused-const-variable): Explain levels 1 and 2.
21887
21888 2016-02-22 Jakub Jelinek <jakub@redhat.com>
21889
21890 PR target/69888
21891 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
21892 identical arguments. Formatting and spelling fixes.
21893
21894 PR target/69885
21895 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
21896 be specified.
21897
21898 PR target/69894
21899 PR target/69895
21900 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
21901 and m68k-devices.def.
21902 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
21903 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
21904
21905 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
21906
21907 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
21908 and HImode registers.
21909
21910 2016-02-22 Richard Biener <rguenther@suse.de>
21911
21912 PR tree-optimization/69882
21913 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
21914 preserve permutations present because of gaps.
21915 (vect_supported_load_permutation_p): Always continue checking
21916 permutations after vect_attempt_slp_rearrange_stmts.
21917
21918 2016-02-22 Bin Cheng <bin.cheng@arm.com>
21919
21920 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
21921 min_profitable_estimate, rather than min_profitable_iters.
21922
21923 2016-02-22 Jakub Jelinek <jakub@redhat.com>
21924
21925 PR target/69885
21926 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
21927 SImode for last match_operand.
21928
21929 2016-02-22 Martin Liska <mliska@suse.cz>
21930
21931 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
21932 return bitsize - 1 as the return value.
21933
21934 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
21935
21936 PR target/69806
21937 PR target/54089
21938 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
21939 Handle negative shift counts.
21940 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
21941 force_reg on the shift constant.
21942 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
21943 (lshrsi3_d): Handle negative shift counts.
21944
21945 2016-02-22 Richard Biener <rguenther@suse.de>
21946 Tom de Vries <tom@codesourcery.com>
21947
21948 * graph.c: Include dumpfile.h.
21949 (print_graph_cfg): Split into three overloads.
21950 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
21951
21952 2016-02-22 Tom de Vries <tom@codesourcery.com>
21953
21954 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
21955 dump-fn.
21956
21957 2016-02-22 Richard Biener <rguenther@suse.de>
21958
21959 PR ipa/37448
21960 * ipa-inline-transform.c (inline_call): When not updating
21961 overall summaries adjust self size by the growth estimate.
21962 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
21963 hash-set, do not update overall summaries here. Renamed from ...
21964 (inline_to_all_callers): ... this which is now wrapping the
21965 above and performing delayed overall summary update.
21966 (early_inline_small_functions): Delay updating of the overall
21967 summary.
21968
21969 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
21970
21971 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
21972 variable.
21973
21974 2016-02-19 Jakub Jelinek <jakub@redhat.com>
21975
21976 PR driver/69805
21977 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
21978 :%* in %:gt() argument.
21979 (greater_than_spec_func): Adjust for expecting only numbers,
21980 if there are more than two numbers, compare the last two.
21981
21982 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
21983
21984 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
21985 -Wnarrowing with -std.
21986
21987 2016-02-19 Jakub Jelinek <jakub@redhat.com>
21988
21989 PR c++/69851
21990 * expr.c (store_field): Don't use bit-field path if exp is
21991 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
21992 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
21993 and the assignment can be performed by bitwise copy. Formatting
21994 fix.
21995
21996 PR middle-end/69838
21997 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
21998 call copy_reg_eh_region_note_forward on before and/or after sequences
21999 and remove note from insn if it no longer can throw.
22000
22001 PR target/69820
22002 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
22003 if TARGET_AVX512BW.
22004
22005 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22006
22007 * config/s390/vector.md: Add missing commutative operand markers
22008 to the patterns which qualify for one.
22009 * config/s390/vx-builtins.md: Likewise.
22010
22011 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22012
22013 * config/s390/vector.md (VI, VI_QHS): Add single element vector
22014 types to mode iterators.
22015 (vec_double): ... and mode attribute.
22016 * config/s390/vx-builtins.md (non_vec_int): Likewise.
22017
22018 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22019
22020 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
22021 Change the predicate of op2 from nonimmediate to general and let
22022 reload fix it if necessary.
22023
22024 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22025
22026 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
22027
22028 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22029
22030 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
22031 mode.
22032
22033 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22034
22035 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
22036 * config/s390/s390.c (s390_expand_vec_movstr): New function.
22037 * config/s390/s390.md ("movstr<P:mode>"): Call
22038 s390_expand_vec_movstr.
22039
22040 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22041
22042 * config/s390/s390.md: Add missing output modifier for operand 1
22043 to print it as address properly.
22044
22045 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22046
22047 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
22048 * config/s390/2964.md: New file.
22049 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
22050 of insn grouping attributes depending on the CPU level.
22051 (s390_get_unit_mask): New function.
22052 (s390_sched_score): Remove the OOO from the scheduling macros.
22053 Add loop to calculate a score for the instruction mix.
22054 (s390_sched_reorder): Likewise plus improve debug output.
22055 (s390_sched_variable_issue): Rename macros as above. Calculate
22056 the unit distances after actually scheduling an insn. Improve
22057 debug output.
22058 (s390_sched_init): Clear last_scheduled_unit_distance array.
22059 * config/s390/s390.md: Include 2964.md.
22060
22061 2016-02-18 Jakub Jelinek <jakub@redhat.com>
22062
22063 PR target/69671
22064 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
22065 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
22066 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
22067 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
22068 *avx512f_<code>v8div16qi2_mask_1): New insns.
22069
22070 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22071
22072 PR target/68404
22073 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
22074 2016-02-09 change.
22075
22076 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
22077 earlyclobber from target. Use wF constraint for fused memory
22078 address.
22079 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
22080
22081 2016-02-18 Jakub Jelinek <jakub@redhat.com>
22082 Martin Liska <mliska@suse.cz>
22083
22084 PR sanitizer/69863
22085 * cfgexpand.c (asan_sanitize_stack_p): New function.
22086 (partition_stack_vars): Use the function.
22087 (expand_stack_vars): Likewise.
22088 (defer_stack_allocation): Likewise.
22089 (expand_used_vars): Likewise.
22090
22091 2016-02-18 Richard Biener <rguenther@suse.de>
22092
22093 PR middle-end/69553
22094 * fold-const.c (operand_equal_p): Properly compare offsets for
22095 IMAGPART_EXPR and ARRAY_REF.
22096
22097 2016-02-18 Nick Clifton <nickc@redhat.com>
22098
22099 PR target/62254
22100 PR target/69610
22101 * config/arm/arm.c (arm_option_override_internal): Disable
22102 interworking if the target does not support thumb instructions.
22103 (arm_reload_in_hi): Handle the case where a register to register
22104 move needs reloading because there is no simple pattern to handle
22105 it.
22106 (arm_reload_out_hi): Likewise.
22107
22108 2016-02-18 Richard Biener <rguenther@suse.de>
22109
22110 PR middle-end/69854
22111 * match.pd: Don't use fold_binary or fold_unary for folding
22112 constants.
22113
22114 2016-02-17 Jakub Jelinek <jakub@redhat.com>
22115
22116 PR c++/69850
22117 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
22118 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
22119 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
22120 warn on gimple_no_warning_p statements.
22121
22122 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
22123
22124 * doc/extend.texi (C++ Attributes): Correct description of
22125 warn_unused type attribute.
22126
22127 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22128
22129 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
22130 correct instruction.
22131
22132 2016-02-17 Richard Biener <rguenther@suse.de>
22133
22134 PR rtl-optimization/69609
22135 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
22136 (find_traces_1_round): When ending a trace update cached priority
22137 of successors.
22138 (bb_to_key): Use cached priority when available.
22139 (copy_bb): Initialize cached priority.
22140 (reorder_basic_blocks_software_trace_cache): Likewise.
22141
22142 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22143
22144 PR target/69161
22145 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
22146 New predicate.
22147 (aarch64_comparison_operator): Break overly long line into two.
22148 (aarch64_comparison_operation): Likewise.
22149 * config/aarch64/aarch64.md (cstorecc4): Use
22150 aarch64_comparison_operator_mode instead of
22151 aarch64_comparison_operator.
22152 (cstore<mode>4): Likewise.
22153 (aarch64_cstore<mode>): Likewise.
22154 (*cstoresi_insn_uxtw): Likewise.
22155 (cstore<mode>_neg): Likewise.
22156 (*cstoresi_neg_uxtw): Likewise.
22157
22158 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22159
22160 PR target/69161
22161 * config/arm/predicates.md (arm_comparison_operator_mode):
22162 New predicate.
22163 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
22164 instead of arm_comparison_operator.
22165 (*mov_negscc): Likewise.
22166 (*mov_notscc): Likewise.
22167 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
22168 (*thumb2_mov_negscc): Likewise.
22169 (*thumb2_mov_negscc_strict_it): Likewise.
22170 (*thumb2_mov_notscc): Likewise.
22171 (*thumb2_mov_notscc_strict_it): Likewise.
22172
22173 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
22174
22175 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
22176 Add missing return.
22177
22178 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
22179
22180 * config/visium/visium.c (machine_libfunc_index): New enum.
22181 (machine_libfuncs): New structure.
22182 (visium_libfuncs): New static variable.
22183 (TARGET_INIT_LIBFUNCS): Define to...
22184 (visium_init_libfuncs): ...this. New function.
22185 (expand_block_move_4): Use the appropriate libfunc.
22186 (expand_block_move_2): Likewise.
22187 (expand_block_move_1): Likewise.
22188 (expand_block_set_4): Likewise.
22189 (expand_block_set_2): Likewise.
22190 (expand_block_set_1): Likewise.
22191 (visium_trampoline_init): Likewise.
22192
22193 2016-02-17 Nick Clifton <nickc@redhat.com>
22194
22195 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
22196 TI's devices.csv file as of March 2016.
22197
22198 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
22199
22200 PR Target/48344
22201 * opts-global.c (handle_common_deferred_options): Introduce and
22202 initialize two global variables to remember command-line options
22203 specifying a stack-limiting register.
22204 * opts.h: Add extern declarations of the two new global variables.
22205 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
22206 variable based on the values of the two new global variables.
22207
22208 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22209
22210 PR c/69835
22211 * common.opt (Wnonnull-compare): New warning.
22212 * doc/invoke.texi (-Wnonnull): Remove text about comparison
22213 of arguments against NULL.
22214 (-Wnonnull-compare): Document.
22215 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
22216 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
22217 * passes.def (pass_warn_nonnull_compare): Add.
22218 * gimple-ssa-nonnull-compare.c: New file.
22219
22220 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22221
22222 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
22223 AARCH64_EXTRA_TUNE_RECIP_SQRT.
22224
22225 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22226
22227 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
22228 reciprocal sqrt for -mlow-precision-recip-sqrt.
22229
22230 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22231 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22232
22233 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
22234 always use lane loads to construct non-constant vectors.
22235
22236 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22237
22238 * config/aarch64/aarch64.md
22239 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
22240 constraints for operand 3.
22241 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
22242
22243 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22244 Richard Biener <rguenther@suse.de>
22245
22246 PR tree-optimization/69820
22247 * tree-vect-patterns.c (type_conversion_p): Return false if
22248 *orig_type is unsigned single precision or boolean.
22249 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
22250 Formatting fix.
22251
22252 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22253
22254 PR rtl-optimization/69764
22255 PR rtl-optimization/69771
22256 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
22257 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
22258
22259 2016-02-16 Richard Biener <rguenther@suse.de>
22260
22261 PR tree-optimization/69776
22262 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
22263 sets from caller.
22264 (indirect_refs_may_alias_p): Likewise.
22265 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
22266 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
22267 according to tbaa_p.
22268 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
22269 (optimize_stmt): For redundant store discovery do not allow tbaa.
22270
22271 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
22272
22273 PR tree-optimization/69714
22274 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
22275 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
22276
22277 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
22278
22279 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
22280 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
22281 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
22282 * config/arc/arc.c (arc_init): Check FPU options.
22283 (get_arc_condition_code): Handle new CC_FPU* modes.
22284 (arc_select_cc_mode): Likewise.
22285 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
22286 register pair only. Allow access for ARCv2 accumulator.
22287 (gen_compare_reg): Whenever we have FPU support use FPU compare
22288 instructions.
22289 (arc_reorg): Don't generate brcc insns when FPU compare
22290 instructions are involved.
22291 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
22292 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
22293 floating point emulation.
22294 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
22295 (REVERSE_CONDITION): Add new CC_FPU* modes.
22296 (TARGET_FP_SP_BASE): Define.
22297 (TARGET_FP_DP_BASE): Likewise.
22298 (TARGET_FP_SP_FUSED): Likewise.
22299 (TARGET_FP_DP_FUSED): Likewise.
22300 (TARGET_FP_SP_CONV): Likewise.
22301 (TARGET_FP_DP_CONV): Likewise.
22302 (TARGET_FP_SP_SQRT): Likewise.
22303 (TARGET_FP_DP_SQRT): Likewise.
22304 (TARGET_FP_DP_AX): Likewise.
22305 * config/arc/arc.md (ARCV2_ACC): New constant.
22306 (type): New fpu type attribute.
22307 (SDF): Conditional iterator.
22308 (cstore<mode>, cbranch<mode>): Change expand condition.
22309 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
22310 handles FPU/FPX cases as well.
22311 * config/arc/arc.opt (mfpu): New option.
22312 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
22313 Renamed.
22314 (adddf3, muldf3, subdf3): Removed.
22315 * config/arc/predicates.md (proper_comparison_operator): Recognize
22316 CC_FPU* modes.
22317 * config/arc/fpu.md: New file.
22318 * doc/invoke.texi (ARC Options): Document mfpu option.
22319
22320 2016-02-16 Richard Biener <rguenther@suse.de>
22321
22322 PR rtl-optimization/69291
22323 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
22324 noce_operand_ok check.
22325
22326 2016-02-16 Tom de Vries <tom@codesourcery.com>
22327
22328 PR lto/67709
22329 * omp-low.c (simd_clone_create): Remove call to
22330 symtab->call_cgraph_insertion_hooks.
22331
22332 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22333
22334 PR tree-optimization/69802
22335 * tree-ssa-reassoc.c (update_range_test): If op is
22336 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
22337 op == 1 test of precision 1 integral op, otherwise handle
22338 that case as op itself. Fix up formatting.
22339 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
22340 up formatting.
22341
22342 2016-02-16 Richard Biener <rguenther@suse.de>
22343
22344 PR tree-optimization/69586
22345 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
22346 types for conversion sources.
22347
22348 2016-02-16 Richard Biener <rguenther@suse.de>
22349
22350 PR middle-end/69801
22351 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
22352 mask OEP_ADDRESS_OF.
22353
22354 2016-02-16 Alan Modra <amodra@gmail.com>
22355
22356 PR target/68973
22357 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
22358 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
22359 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
22360 (p8_mtvsrwz): New.
22361 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
22362 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
22363 (p8_fmrgow_<mode>): Likewise.
22364 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
22365 changes.
22366 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
22367 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
22368 to use movdi_internal64. Remove op0_di.
22369 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
22370
22371 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
22372
22373 Add support for the FCCMP insn types
22374
22375 * config/aarch64/aarch64.md (fccmp): Change insn type.
22376 (fccmpe): Likewise.
22377 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
22378 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
22379 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
22380 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
22381 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
22382 * config/arm/types.md (fccmps): Add new insn type.
22383 (fccmpd): Likewise.
22384
22385 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
22386
22387 * alias.c (get_alias_set): Fix a typo in comment.
22388
22389 2016-02-15 Richard Biener <rguenther@suse.de>
22390
22391 PR tree-optimization/69595
22392 * match.pd: Complete range test simplification to true.
22393
22394 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
22395
22396 PR rtl-optimization/69648
22397 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
22398 pic_offset_table_rtx.
22399
22400 PR rtl-optimization/69752
22401 * ira.c (update_equiv_regs): When looking for more than a single SET,
22402 also take other side effects into account.
22403
22404 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
22405
22406 * config/s390/s390.c (s390_function_profiler): Add a new sequence
22407 for z900+ CPUs in 31-bit mode.
22408
22409 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
22410
22411 * common/config/s390/s390-common.c (s390_supports_split_stack):
22412 New function.
22413 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
22414 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
22415 * config/s390/s390.c (struct machine_function): New field
22416 split_stack_varargs_pointer.
22417 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
22418 in s390_emit_prologue.
22419 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
22420 vararg pointer.
22421 (morestack_ref): New global.
22422 (SPLIT_STACK_AVAILABLE): New macro.
22423 (s390_expand_split_stack_prologue): New function.
22424 (s390_live_on_entry): New function.
22425 (s390_va_start): Use split-stack vararg pointer if appropriate.
22426 (s390_asm_file_end): Emit the split-stack note sections.
22427 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
22428 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
22429 (UNSPECV_SPLIT_STACK_CALL): New unspec.
22430 (UNSPECV_SPLIT_STACK_DATA): New unspec.
22431 (split_stack_prologue): New expand.
22432 (split_stack_space_check): New expand.
22433 (split_stack_data): New insn.
22434 (split_stack_call): New expand.
22435 (split_stack_call_*): New insn.
22436 (split_stack_cond_call): New expand.
22437 (split_stack_cond_call_*): New insn.
22438
22439 2016-02-15 Richard Biener <rguenther@suse.de>
22440
22441 PR tree-optimization/69783
22442 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22443 Add trivially correct cases.
22444
22445 2016-02-15 Tom de Vries <tom@codesourcery.com>
22446
22447 PR lto/69655
22448 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
22449 do_force_output.
22450 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
22451
22452 2016-02-15 Richard Biener <rguenther@suse.de>
22453
22454 PR tree-optimization/69776
22455 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
22456 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
22457 indicate whether we can use TBAA to disambiguate against stores.
22458 Use alias-set zero if not.
22459 (visit_reference_op_store): Do not use TBAA when looking up
22460 redundant stores.
22461 * tree-ssa-pre.c (compute_avail): Use TBAA here.
22462 (eliminate_dom_walker::before_dom_children): But not when looking
22463 up redundant stores.
22464
22465 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
22466
22467 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
22468
22469 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22470
22471 * config/i386/znver1.md
22472 (znver1_pop, znver1_pop_mem,
22473 znver1_load_imov_double_store,
22474 znver1_load_imov_direct_store,
22475 znver1_load_imov_direct_load,
22476 znver1_load_imov_double_load): Add new.
22477 (znver1_insn, znver1_insn_load): Add icmov type.
22478 (znver1_sseavx_fma,
22479 znver1_sseavx_fma_load,
22480 znver1_avx256_fma,
22481 znver1_avx256_fma_load): Fix pipe usage.
22482
22483 2016-02-14 Alan Modra <amodra@gmail.com>
22484
22485 PR target/68973
22486 * reload.c (find_reloads_address_1): For pre/post-inc/dec
22487 with an invalid hard reg, reload just the reg not the entire
22488 pre/post-inc/dec address expression.
22489
22490 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
22491
22492 PR target/67260
22493 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
22494 fixed R1_REG scratch reg.
22495 (sibcall_value_pcrel_fdpic): Likewise.
22496
22497 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
22498
22499 PR target/67636
22500 PR target/64345
22501 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
22502
22503 2016-02-12 Walter Lee <walt@tilera.com>
22504
22505 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
22506 * config/tilegx/t-tilegx: Likewise.
22507
22508 2016-02-12 David Malcolm <dmalcolm@redhat.com>
22509
22510 PR other/69554
22511 * diagnostic-show-locus.c (struct line_span): New struct.
22512 (layout::get_first_line): Delete.
22513 (layout::get_last_line): Delete.
22514 (layout::get_num_line_spans): New member function.
22515 (layout::get_line_span): Likewise.
22516 (layout::print_heading_for_line_span_index_p): Likewise.
22517 (layout::get_expanded_location): Likewise.
22518 (layout::calculate_line_spans): Likewise.
22519 (layout::m_first_line): Delete.
22520 (layout::m_last_line): Delete.
22521 (layout::m_line_spans): New field.
22522 (layout::layout): Update comment. Replace m_first_line and
22523 m_last_line with m_line_spans, replacing their initialization
22524 with a call to calculate_line_spans.
22525 (diagnostic_show_locus): When printing source lines and
22526 annotations, rather than looping over a single span
22527 of lines, instead loop over each line_span within
22528 the layout, with an inner loop over the lines within them.
22529 Call the context's start_span callback when changing line spans.
22530 * diagnostic.c (diagnostic_initialize): Initialize start_span.
22531 (diagnostic_build_prefix): Break out the building of the location
22532 part of the string into...
22533 (diagnostic_get_location_text): ...this new function, rewriting
22534 it from nested ternary expressions to a sequence of "if"
22535 statements.
22536 (default_diagnostic_start_span_fn): New function.
22537 * diagnostic.h (diagnostic_start_span_fn): New typedef.
22538 (diagnostic_context::start_span): New field.
22539 (default_diagnostic_start_span_fn): New prototype.
22540
22541 2016-02-12 David Malcolm <dmalcolm@redhat.com>
22542
22543 PR driver/69779
22544 * gcc.c (driver::finalize): Fix cleanup of "specs".
22545
22546 2016-02-12 David Malcolm <dmalcolm@redhat.com>
22547
22548 PR driver/69265
22549 PR driver/69453
22550 * gcc.c (driver::driver): Initialize m_option_suggestions.
22551 (driver::~driver): Clean up m_option_suggestions.
22552 (suggest_option): Convert to...
22553 (driver::suggest_option): ...this, and split out into
22554 driver::build_option_suggestions and find_closest_string.
22555 (driver::build_option_suggestions): New function, from
22556 first half of suggest_option. Special-case
22557 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
22558 the sanitizer_opts array. For options of enum types, add the
22559 various enum values to the candidate strings.
22560 (driver::handle_unrecognized_options): Remove "const".
22561 * gcc.h (driver::handle_unrecognized_options): Likewise.
22562 (driver::build_option_suggestions): New decl.
22563 (driver::suggest_option): New decl.
22564 (driver::m_option_suggestions): New field.
22565 * opts-common.c (add_misspelling_candidates): New function.
22566 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
22567 and make non-static.
22568 * opts.h (sanitizer_opts): New array decl.
22569 (add_misspelling_candidates): New function decl.
22570 * spellcheck.c (find_closest_string): New function.
22571 * spellcheck.h (find_closest_string): New function decl.
22572
22573 2016-02-12 Jakub Jelinek <jakub@redhat.com>
22574
22575 PR rtl-optimization/69764
22576 PR rtl-optimization/69771
22577 * optabs.c (expand_binop_directly): For shift_optab_p, force
22578 convert_modes with VOIDmode if xop1 has VOIDmode.
22579
22580 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
22581
22582 PR target/69729
22583 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
22584 to correctly determine instrumentation thunks.
22585
22586 2016-02-12 Jakub Jelinek <jakub@redhat.com>
22587
22588 PR ipa/69241
22589 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
22590 type by reference, force lhs on the call.
22591
22592 PR ipa/68672
22593 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
22594 Compute retval and retbnd early in all cases if split_part_return_p
22595 and return_bb is not EXIT. Remove all clobber stmts and reset
22596 all debug stmts that refer to SSA_NAMEs defined in split part,
22597 except if it is retval, in that case replace the old retval with the
22598 lhs of the call to the split part.
22599
22600 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22601
22602 revert:
22603 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22604
22605 PR middle-end/66726
22606 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
22607 whose result is used in PHI.
22608 (maybe_optimize_range_tests): Likewise.
22609 (final_range_test_p): Likweise.
22610
22611 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22612
22613 PR middle-end/66726
22614 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
22615 whose result is used in PHI.
22616 (maybe_optimize_range_tests): Likewise.
22617 (final_range_test_p): Likweise.
22618
22619 2016-02-12 Jakub Jelinek <jakub@redhat.com>
22620
22621 * cgraph.c: Spelling fixes - behaviour -> behavior and
22622 neighbour -> neighbor.
22623 * target.def: Likewise.
22624 * sel-sched.c: Likewise.
22625 * config/mips/mips.c: Likewise.
22626 * config/arc/arc.md: Likewise.
22627 * config/arm/cortex-a57.md: Likewise.
22628 * config/arm/arm.c: Likewise.
22629 * config/arm/neon.md: Likewise.
22630 * config/arm/arm-c.c: Likewise.
22631 * config/vms/vms-c.c: Likewise.
22632 * config/s390/s390.c: Likewise.
22633 * config/i386/znver1.md: Likewise.
22634 * config/i386/i386.c: Likewise.
22635 * config/ia64/hpux-unix2003.h: Likewise.
22636 * config/msp430/msp430.md: Likewise.
22637 * config/rx/rx.c: Likewise.
22638 * config/rx/rx.md: Likewise.
22639 * config/aarch64/aarch64-simd.md: Likewise.
22640 * config/aarch64/aarch64.c: Likewise.
22641 * config/nvptx/nvptx.c: Likewise.
22642 * config/bfin/bfin.c: Likewise.
22643 * config/cris/cris.opt: Likewise.
22644 * config/rs6000/rs6000.c: Likewise.
22645 * target.h: Likewise.
22646 * spellcheck.c: Likewise.
22647 * ira-build.c: Likewise.
22648 * tree-inline.c: Likewise.
22649 * builtins.c: Likewise.
22650 * lra-constraints.c: Likewise.
22651 * explow.c: Likewise.
22652 * hwint.h: Likewise.
22653 * targhooks.c: Likewise.
22654 * tree-vect-data-refs.c: Likewise.
22655 * expr.c: Likewise.
22656 * doc/tm.texi: Likewise.
22657 * doc/extend.texi: Likewise.
22658 * doc/install.texi: Likewise.
22659 * doc/md.texi: Likewise.
22660 * tree-ssa-tail-merge.c: Likewise.
22661 * sched-int.h: Likewise.
22662 * match.pd: Likewise.
22663 * sched-ebb.c: Likewise.
22664 * target.def (omit_struct_return_reg): Likewise.
22665 * gimple-ssa-isolate-paths.c: Likewise.
22666 (find_implicit_erroneous_behaviour): Renamed to...
22667 (find_implicit_erroneous_behavior): ... this.
22668 (find_explicit_erroneous_behaviour): Renamed to...
22669 (find_explicit_erroneous_behavior): ... this.
22670 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
22671
22672 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
22673
22674 PR rtl-optimization/64682
22675 PR rtl-optimization/69567
22676 PR rtl-optimization/69737
22677 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
22678 in I2 as well, just lose it.
22679
22680 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22681
22682 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
22683 New variable.
22684 (aarch64_last_printed_tune_string): Likewise.
22685 (aarch64_declare_function_name): Only output .arch assembler
22686 directive if it will be different from the previously output
22687 directive. Same for .tune comment but only if -dA is set.
22688 (aarch64_start_file): New function.
22689 (TARGET_ASM_FILE_START): Define.
22690
22691 2016-02-11 David Malcolm <dmalcolm@redhat.com>
22692
22693 PR plugins/69758
22694 * Makefile.in (PLUGIN_HEADERS): Add params.list.
22695
22696 2016-02-11 Jakub Jelinek <jakub@redhat.com>
22697
22698 PR target/65313
22699 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
22700 -Wmaybe-uninitialized warning.
22701
22702 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
22703
22704 PR target/69713
22705 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
22706
22707 2016-02-11 Richard Biener <rguenther@suse.de>
22708
22709 PR rtl-optimization/69291
22710 * ifcvt.c (noce_try_store_flag_constants): Do not allow
22711 subexpressions affected by changing the result.
22712
22713 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
22714
22715 PR target/69148
22716 * lra-constraints.c (curr_insn_transform): Find in/out operands
22717 for secondary memory moves. Update dups.
22718
22719 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
22720
22721 PR tree-optimization/69652
22722 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
22723 to nested loop, did source re-formatting, skip debug statements,
22724 add check on statement with volatile operand, remove dead scalar
22725 statements.
22726
22727 2016-02-10 Jakub Jelinek <jakub@redhat.com>
22728 Patrick Palka <ppalka@gcc.gnu.org>
22729
22730 PR ipa/69241
22731 PR c++/69649
22732 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
22733 calls if the return type is TREE_ADDRESSABLE.
22734 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
22735 * ipa-split.c (split_function): Fix doubled "we" in comment.
22736 Use void return type for the split part even if
22737 !split_point->split_part_set_retval.
22738
22739 2016-02-10 Bin Cheng <bin.cheng@arm.com>
22740
22741 PR tree-optimization/68021
22742 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
22743 when computing the value of biv cand by itself.
22744
22745 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
22746
22747 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
22748 (cortexa57_tunings): Likewise.
22749 (cortexa72_tunings): Likewise.
22750 (arch_macro_fusion_pair_p): Add support for AES fusion.
22751 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
22752 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
22753 Allow virtual registers before reload so early scheduling works.
22754 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
22755 correct latency and pipeline.
22756 (cortex_a57_crypto_complex): Likewise.
22757 (cortex_a57_crypto_xor): Likewise.
22758 (define_bypass): Add AES bypass.
22759
22760 2016-02-10 Richard Biener <rguenther@suse.de>
22761
22762 PR tree-optimization/69726
22763 * passes.def: Add DCE pass before late uninit.
22764 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
22765 really fixup if-conversions job.
22766
22767 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
22768
22769 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
22770 (arm_cortex_a57_tune): Likewise.
22771 (aarch_macro_fusion_pair_p): Add support for AES fusion.
22772 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
22773
22774 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
22775
22776 * timevar.def (TV_PHASE_DBGINFO): Delete.
22777 (TV_PHASE_CHECK_DBGINFO): Likewise.
22778 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
22779
22780 2016-02-10 Richard Biener <rguenther@suse.de>
22781
22782 PR tree-optimization/69719
22783 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22784 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
22785
22786 2016-02-09 Andrew Pinski <apinski@cavium.com>
22787
22788 PR tree-opt/69282
22789 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
22790 get_vcond_mask_icode returns false.
22791
22792 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
22793
22794 PR target/68404
22795 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
22796 an ADDIS that adds a pointer to a large constant that sets the
22797 upper16 bits with a load operation.
22798
22799 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
22800
22801 PR target/68532
22802 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
22803 order.
22804 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
22805 endian.
22806 (vzipq_s16): Likewise.
22807 (vzipq_s32): Likewise.
22808 (vzipq_f32): Likewise.
22809 (vzipq_u8): Likewise.
22810 (vzipq_u16): Likewise.
22811 (vzipq_u32): Likewise.
22812 (vzipq_p8): Likewise.
22813 (vzipq_p16): Likewise.
22814
22815 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
22816
22817 PR target/68532
22818 * config/arm/arm.c (neon_endian_lane_map): New function.
22819 (neon_vector_pair_endian_lane_map): New function.
22820 (arm_evpc_neon_vuzp): Allow for big endian lane order.
22821 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
22822 endian.
22823 (vuzpq_s16): Likewise.
22824 (vuzpq_s32): Likewise.
22825 (vuzpq_f32): Likewise.
22826 (vuzpq_u8): Likewise.
22827 (vuzpq_u16): Likewise.
22828 (vuzpq_u32): Likewise.
22829 (vuzpq_p8): Likewise.
22830 (vuzpq_p16): Likewise.
22831
22832 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
22833
22834 PR target/69634
22835 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
22836 debug insns.
22837
22838 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
22839
22840 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
22841 truncate const_int operand 1 to QImode.
22842
22843 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
22844
22845 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
22846 corresponding to an abnormal edge.
22847
22848 2016-02-09 Tom de Vries <tom@codesourcery.com>
22849
22850 PR tree-optimization/69599
22851 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
22852 function.
22853 (find_func_aliases_for_builtin_call, find_func_clobbers)
22854 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
22855 partition.
22856
22857 2016-02-09 Richard Biener <rguenther@suse.de>
22858
22859 PR tree-optimization/69715
22860 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
22861 LHS on calls as non-rewritable.
22862
22863 2016-02-09 Tom de Vries <tom@codesourcery.com>
22864
22865 PR lto/69707
22866 * lto-wrapper.c (append_diag_options): New function.
22867 (compile_offload_image): Call append_diag_options.
22868
22869 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
22870
22871 PR other/69722
22872 * doc/extend.texi (Flag Output Operands): Correct sectioning.
22873 Minor copy-edit to fix verb tenses.
22874
22875 2016-02-08 Jakub Jelinek <jakub@redhat.com>
22876
22877 PR tree-optimization/69209
22878 * ipa-split.c (split_function): If split part is not
22879 returning retval, retval has gimple type but is not
22880 gimple value, force it into a SSA_NAME first.
22881
22882 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
22883
22884 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
22885 outdated section.
22886
22887 2016-02-08 Jason Merrill <jason@redhat.com>
22888
22889 PR c++/69631
22890 * convert.c (convert_to_integer_1): Check dofold on truncation
22891 distribution.
22892 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
22893 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
22894 Rename from *_nofold.
22895 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
22896 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
22897
22898 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
22899
22900 PR target/60410
22901 * tree.c (build_common_tree_nodes): Remove short_double argument.
22902 All callers changed.
22903 * tree.h (build_common_tree_nodes): Adjust declaration.
22904 * doc/invoke.texi (-fshort-double): Remove documentation.
22905 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
22906 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
22907 * lto-wrapper.c (merge_and_complain, append_compiler_options)
22908 (append_linker_options): Don't handle OPT_fshort_double.
22909
22910 PR rtl-optimization/68730
22911 * lra-remat.c (insn_to_cand_activation): New static variable.
22912 (lra_remat): Allocate and free it.
22913 (create_cand): New arg activation. Initialize a field in
22914 insn_to_cand_activation if it is nonnull.
22915 (create_cands): Pass the activation insn to create_cand when making
22916 a candidate involving an output reload. Reorganize code a little.
22917 (do_remat): Keep track of active status of candidates in a separate
22918 bitmap.
22919
22920 2016-02-08 Richard Biener <rguenther@suse.de>
22921
22922 PR tree-optimization/69719
22923 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22924 Properly use absolute of the difference of the two offsets to
22925 compare or adjust the segment length.
22926
22927 2016-02-08 Richard Biener <rguenther@suse.de>
22928 Jeff Law <law@redhat.com>
22929
22930 PR target/68273
22931 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
22932 types for anonymous SSA names.
22933
22934 2016-02-08 Richard Biener <rguenther@suse.de>
22935
22936 PR rtl-optimization/69274
22937 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
22938
22939 2016-02-08 Jeff Law <law@redhat.com>
22940
22941 PR tree-optimization/65917
22942 * tree-ssa-dom.c (record_temporary_equivalences): Record both
22943 equivalences from if (x == y) style conditionals.
22944 (loop_depth_of_name): Remove.
22945 (record_equality): Remove loop depth check.
22946 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
22947 (const_and_copies::record_const_or_copy_raw): New member function.
22948 * tree-ssa-scopedtables.c
22949 (const_and_copies::record_const_or_copy_raw): New, factored out of
22950 (const_and_copies::record_const_or_copy): Call new member function.
22951
22952 2016-02-05 Jeff Law <law@redhat.com>
22953
22954 PR tree-optimization/68541
22955 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
22956 (count_stmts_in_block): New function.
22957 (poor_ifcvt_candidate_code): Likewise.
22958 (is_feasible_trace): Add some heuristics to determine when path
22959 splitting is profitable.
22960 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
22961 is a diamond with a single exit.
22962
22963 2016-02-05 Martin Sebor <msebor@redhat.com>
22964
22965 PR c++/69662
22966 * doc/invoke.texi: Update -Wplacement-new to take an optional
22967 argument.
22968
22969 2016-02-06 Richard Henderson <rth@redhat.com>
22970
22971 PR c/69643
22972 * tree.c (tree_nop_conversion_p): Do not strip casts into or
22973 out of non-standard address spaces.
22974
22975 2016-02-05 Jakub Jelinek <jakub@redhat.com>
22976
22977 PR rtl-optimization/69691
22978 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
22979
22980 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
22981
22982 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
22983 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
22984 (*ieee128_mfvsrd_64bit): Likewise.
22985 (*ieee128_mfvsrd_32bit): Likewise.
22986
22987 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
22988
22989 PR target/69369
22990 Revert r232560:
22991 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
22992
22993 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
22994 instrumented_version.
22995
22996 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
22997
22998 * doc/invoke.texi (Optimize Options): In table of --param options
22999 rename second occurrence of tracer-min-branch-ratio to
23000 tracer-min-branch-probability, rename
23001 tracer-min-branch-ratio-feedback to
23002 tracer-min-branch-probability-feedback and clarify description,
23003 rename sched-spec-state-edge-prob-cutoff to
23004 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
23005 to selsched-insns-to-rename, rename lto-minpartition to
23006 lto-min-partition, delete reorder-blocks-duplicate and
23007 reorder-blocks-duplicate-feedback.
23008
23009 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23010
23011 * config/s390/s390.c (s390_register_info_set_ranges): Remove
23012 superfluous loops.
23013
23014 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
23015
23016 * doc/extend.texi: S/390: Correct some typos.
23017
23018 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23019
23020 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
23021
23022 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23023
23024 PR target/69625
23025 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
23026 (s390_register_info_gprtofpr): Use new macros above.
23027 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
23028 its name.
23029 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
23030 its name. Adjust restore and save gpr ranges.
23031 (s390_register_info_set_ranges): New function.
23032 (s390_register_info): Use new macros above. Call
23033 s390_register_info_set_ranges.
23034 (s390_optimize_register_info): Likewise.
23035 (s390_hard_regno_rename_ok): Use new macros.
23036 (s390_hard_regno_scratch_ok): Likewise.
23037 (s390_emit_epilogue): Likewise.
23038 (s390_can_use_return_insn): Likewise.
23039 (s390_optimize_prologue): Likewise.
23040 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
23041
23042 2016-02-05 Jakub Jelinek <jakub@redhat.com>
23043
23044 PR bootstrap/69677
23045 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
23046 alignment fixes.
23047 (ix86_option_override_internal): Disable TARGET_STV even for
23048 -m{incoming,preferred}-stack-boundary=3.
23049
23050 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23051
23052 * config.gcc: Mark deprecated rtems targets as obsolete.
23053
23054 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
23055
23056 PR rtl-optimization/64682
23057 PR rtl-optimization/69567
23058 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
23059 before I2 only if the register is both used and set in I2.
23060
23061 2016-02-04 DJ Delorie <dj@redhat.com>
23062
23063 * config/msp430/msp430.c (msp430_start_function): Add function type.
23064
23065 2016-02-04 Jakub Jelinek <jakub@redhat.com>
23066
23067 PR fortran/69368
23068 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
23069
23070 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
23071
23072 PR rtl-optimization/69577
23073 Revert:
23074 2015-10-29 Richard Henderson <rth@redhat.com>
23075
23076 PR target/68124
23077 PR rtl-opt/67609
23078 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
23079 sse check to the exact conditions of PR 67609.
23080
23081 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
23082
23083 PR target/69667
23084 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
23085 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
23086 not allowed into the traditional Altivec registers.
23087 (movtd_64bit_nodm): Likewise.
23088 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
23089
23090 2016-02-04 David Malcolm <dmalcolm@redhat.com>
23091
23092 * config/aarch64/cortex-a57-fma-steering.c
23093 (aarch64_register_fma_steering): Remove "static" from arguments
23094 to register_pass.
23095
23096 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
23097
23098 PR target/69619
23099 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
23100 twice when complex.
23101
23102 2016-02-04 Mike Frysinger <vapier@gentoo.org>
23103
23104 * doc/invoke.texi: Delete -mno-fma4.
23105
23106 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
23107
23108 PR rtl-optimization/69577
23109 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
23110 (find_subregs_of_mode): Update accordingly. Iterate over partial
23111 definitions.
23112
23113 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
23114
23115 * config/arm/arm-protos.h (neon_reinterpret): Remove.
23116 * config/arm/arm.c (neon_reinterpret): Remove.
23117 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
23118 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
23119 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
23120 vreinterpretti): Remove.
23121 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
23122 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
23123 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
23124 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
23125 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
23126 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
23127 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
23128 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
23129 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
23130 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
23131 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
23132 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
23133 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
23134 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
23135 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
23136 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
23137 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
23138 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
23139 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
23140 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
23141 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
23142 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
23143 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
23144 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
23145 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
23146 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
23147 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
23148 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
23149 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
23150 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
23151 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
23152 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
23153 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
23154 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
23155 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
23156 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
23157 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
23158 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
23159 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
23160 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
23161 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
23162 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
23163 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
23164 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
23165 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
23166 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
23167 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
23168 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
23169 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
23170 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
23171 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
23172 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
23173 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
23174 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
23175 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
23176 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
23177 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
23178 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
23179 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
23180 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
23181 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
23182 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
23183 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
23184 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
23185 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
23186 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
23187 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
23188 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
23189 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
23190 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
23191 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
23192 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
23193 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
23194 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
23195 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
23196 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
23197 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
23198 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
23199 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
23200 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
23201 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
23202 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
23203 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
23204 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
23205 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
23206 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
23207 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
23208 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
23209 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
23210 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
23211 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
23212 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
23213 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
23214 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
23215 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
23216 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
23217 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
23218 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
23219 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
23220 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
23221 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
23222 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
23223 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
23224
23225 2016-02-04 Martin Liska <mliska@suse.cz>
23226
23227 PR sanitizer/69276
23228 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
23229 that are gimple_store_p.
23230 (maybe_instrument_call): Likewise.
23231
23232 2016-02-04 Bin Cheng <bin.cheng@arm.com>
23233
23234 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
23235 register scaling out of memory reference and comment why.
23236
23237 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23238
23239 PR target/65932
23240 PR target/67714
23241 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
23242 folding the source of a SET.
23243
23244 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23245
23246 PR target/65932
23247 PR target/67714
23248 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
23249 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
23250
23251 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
23252
23253 PR target/65932
23254 PR target/67714
23255 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
23256 HImode.
23257
23258 2016-02-04 Christian Bruel <christian.bruel@st.com>
23259
23260 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
23261 * config/arm/arm.c (arm_set_current_function): Likewise.
23262
23263 2016-02-04 Jakub Jelinek <jakub@redhat.com>
23264 Ilya Enkovich <enkovich.gnu@gmail.com>
23265 H.J. Lu <hongjiu.lu@intel.com>
23266
23267 PR target/69454
23268 * config/i386/i386.c (convert_scalars_to_vector): Remove
23269 stack alignment fixes.
23270 (ix86_option_override_internal): Disable TARGET_STV if stack
23271 might not be aligned enough.
23272 (ix86_minimum_alignment): Assert that TARGET_STV is false.
23273
23274 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
23275
23276 * config/i386/x86-tune.def: Disable default prefetching
23277 for -march=znver1.
23278
23279 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23280 Vladimir Makarov <vmakarov@redhat.com>
23281
23282 PR target/69461
23283 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
23284 in validating fused toc addresses.
23285
23286 2016-02-03 Jakub Jelinek <jakub@redhat.com>
23287
23288 PR c/69627
23289 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
23290 range->m_caret fields if range->m_show_caret_p is false.
23291
23292 PR target/69644
23293 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
23294 Force oldval into register if it does not satisfy reg_or_short_operand
23295 predicate. Fix up formatting.
23296
23297 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
23298 Alexandre Oliva <aoliva@redhat.com>
23299
23300 PR target/69461
23301 * lra-constraints.c (simplify_operand_subreg): Check additionally
23302 address validity after potential reloading.
23303 (process_address_1): Check insns validity. In case of failure do
23304 nothing.
23305
23306 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
23307
23308 PR target/69118
23309 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
23310 Fix target.
23311
23312 2016-02-02 Jakub Jelinek <jakub@redhat.com>
23313
23314 * wide-int.cc (canonize_uhwi): New function.
23315 (wi::divmod_internal): Use it.
23316
23317 2016-02-02 James Norris <jnorris@codesourcery.com>
23318
23319 * gimplify.c (omp_notice_variable): Add usage check.
23320
23321 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
23322
23323 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
23324 like LE, GE, LT, GT when emitting relational operator.
23325
23326 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
23327
23328 * ira-costs.c (find_costs_and_classes): Add extra argument.
23329 * target.def (ira_change_pseudo_allocno_class): Add parameter.
23330 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
23331 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
23332 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
23333 Add best_class parameter, and return it if not ALL_REGS.
23334 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
23335 Add parameter.
23336 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
23337 Update target hook.
23338
23339 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
23340
23341 * config/aarch64/aarch64.c
23342 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
23343 (aarch64_ira_change_pseudo_allocno_class): New function.
23344
23345 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
23346
23347 PR target/67032
23348 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
23349
23350 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23351
23352 * config/avr/avr.c (avr_option_override): Set
23353 PARAM_ALLOW_STORE_DATA_RACES to 1.
23354
23355 2016-02-02 Richard Biener <rguenther@suse.de>
23356
23357 PR tree-optimization/69595
23358 * match.pd: Add range test simplifications to true/false.
23359
23360 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
23361
23362 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
23363 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
23364 instead.
23365
23366 2016-02-02 Richard Biener <rguenther@suse.de>
23367
23368 PR tree-optimization/69606
23369 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
23370 info on the result before moving a stmt.
23371
23372 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
23373
23374 PR middle-end/68542
23375 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
23376 branch with vector comparison.
23377 * config/i386/sse.md (VI48_AVX): New mode iterator.
23378 (define_expand "cbranch<mode>4): Add support for conditional branch
23379 with vector comparison.
23380 * tree-vect-loop.c (optimize_mask_stores): New function.
23381 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
23382 has_mask_store field of vect_info.
23383 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
23384 vectorized loops having masked stores after vec_info destroy.
23385 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
23386 correspondent macros.
23387 (optimize_mask_stores): Add prototype.
23388
23389 2016-02-02 Alan Modra <amodra@gmail.com>
23390
23391 PR target/69548
23392 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
23393 allow subregs.
23394
23395 2016-02-02 Alan Modra <amodra@gmail.com>
23396
23397 PR target/68662
23398 * config/rs6000/rs6000.c (need_toc_init): New var, set it
23399 whenever toc_label_name used.
23400 (rs6000_file_start): Don't set up toc section here,
23401 (rs6000_output_function_epilogue): do so here instead,
23402 (rs6000_xcoff_file_start): and here.
23403 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
23404 (load_toc_aix_di): Likewise.
23405
23406 2016-02-01 Jakub Jelinek <jakub@redhat.com>
23407
23408 PR rtl-optimization/69592
23409 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
23410 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
23411 (num_sign_bit_copies_binary_arith_p): New inline function.
23412 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
23413
23414 2016-02-01 Jeff Law <law@redhat.com>
23415
23416 PR tree-optimization/69580
23417 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
23418 * tree-ssa-threadbackward.c
23419 (fsm_find_control_statement_thread_paths): Do not try to walk
23420 through large PHI nodes.
23421
23422 2016-02-01 Jakub Jelinek <jakub@redhat.com>
23423
23424 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
23425 when count is incremented above limit, don't analyze further
23426 insns afterwards.
23427
23428 * omp-low.c (oacc_parse_default_dims): Avoid
23429 -Wsign-compare warning, make sure value fits into int
23430 rather than just unsigned int.
23431
23432 2016-02-01 Bin Cheng <bin.cheng@arm.com>
23433
23434 PR tree-optimization/67921
23435 * fold-const.c (split_tree): New parameters. Convert pointer
23436 type variable part to proper type before negating.
23437 (fold_binary_loc): Pass new arguments to split_tree.
23438
23439 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
23440
23441 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
23442 (nvptx_goacc_validate_dims): Extend to handle global defaults.
23443 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
23444 * doc/tm.texti: Rebuilt.
23445 * doc/invoke.texi (fopenacc-dim): Document.
23446 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
23447 (append_compiler_options): Likewise.
23448 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
23449 (oacc_parse_default_dims): New.
23450 (oacc_validate_dims): Add USED arg. Select non-unity default when
23451 possible.
23452 (oacc_loop_fixed_partitions): Return mask of used partitions.
23453 (oacc_loop_auto_partitions): Emit dump info.
23454 (oacc_loop_partition): Return mask of used partitions.
23455 (execute_oacc_device_lower): Parse default dimension arg. Adjust
23456 loop partitioning and validation calls.
23457
23458 2016-02-01 Richard Biener <rguenther@suse.de>
23459
23460 PR middle-end/69556
23461 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
23462
23463 2016-02-01 Richard Biener <rguenther@suse.de>
23464
23465 PR tree-optimization/69574
23466 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
23467 of asserting return chrec_dont_know.
23468
23469 2016-02-01 Martin Liska <mliska@suse.cz>
23470
23471 * mem-stats-traits.h: Add copyright header.
23472 * mem-stats.h: Likewise.
23473
23474 2016-02-01 Richard Biener <rguenther@suse.de>
23475
23476 PR tree-optimization/69579
23477 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
23478 Do not propagate through abnormal PHI results.
23479
23480 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
23481
23482 * postreload.c (reload_cse_simplify): Remove dead code.
23483
23484 2016-02-01 Jakub Jelinek <jakub@redhat.com>
23485
23486 PR rtl-optimization/69570
23487 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
23488 if there is more than one set, not if there is a single set.
23489
23490 2016-02-01 Richard Henderson <rth@redhat.com>
23491
23492 PR rtl-opt/69535
23493 * combine.c (make_compound_operation): When looking through a
23494 subreg, make sure to re-extend to the width of the outer mode.
23495
23496 2016-01-30 Jakub Jelinek <jakub@redhat.com>
23497
23498 PR tree-optimization/69546
23499 * wide-int.cc (wi::divmod_internal): For unsigned division
23500 where both operands fit into uhwi, if o1 is 1 and o0 has
23501 msb set, if divident_prec is larger than bits per hwi,
23502 clear another quotient word and return 2 instead of 1.
23503 Similarly for remainder with msb in HWI set, if dividend_prec
23504 is larger than bits per hwi.
23505
23506 2016-01-29 Martin Jambor <mjambor@suse.cz>
23507
23508 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
23509 Use short lowercase names.
23510 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
23511 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
23512 acq_rel one. Protect warning agains segfaults if
23513 get_memory_order_name returns NULL.
23514 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
23515 with release semantics. Do not warn if get_memory_order already did.
23516 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
23517 semantics. Fix check for relaxed or acquire semantics. Do not warn
23518 if get_memory_order already did.
23519
23520 2016-01-29 Sebastian Pop <s.pop@samsung.com>
23521
23522 * doc/install.texi: Document that isl-0.16 is supported.
23523
23524 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
23525
23526 PR target/69299
23527 * config/i386/constraints.md (Bm): Describe as special memory
23528 constraint.
23529 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
23530 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23531 * genpreds.c (struct constraint_data): Add is_special_memory.
23532 (have_special_memory_constraints, special_memory_start): New
23533 static vars.
23534 (special_memory_end): Ditto.
23535 (add_constraint): Add new arg is_special_memory. Add code to
23536 process its true value. Update have_special_memory_constraints.
23537 (process_define_constraint): Pass the new arg.
23538 (process_define_register_constraint): Ditto.
23539 (choose_enum_order): Process special memory.
23540 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
23541 function insn_extra_special_memory_constraint.
23542 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23543 * gensupport.c (process_rtx): Process
23544 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23545 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
23546 * ira-lives.c (single_reg_class): Use
23547 insn_extra_special_memory_constraint.
23548 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
23549 * lra-constraints.c (process_alt_operands): Ditto.
23550 (curr_insn_transform): Use insn_extra_special_memory_constraint.
23551 * recog.c (asm_operand_ok, preprocess_constraints): Process
23552 CT_SPECIAL_MEMORY.
23553 * reload.c (find_reloads): Ditto.
23554 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
23555 * stmt.c (parse_input_constraint): Use
23556 insn_extra_special_memory_constraint.
23557
23558 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
23559
23560 PR target/69530
23561 * lra-splill.c (lra_final_code_change): Revert r229087 by
23562 removing all sub-registers.
23563
23564 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
23565
23566 PR target/65604
23567 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
23568
23569 2016-01-29 Jakub Jelinek <jakub@redhat.com>
23570
23571 PR target/69551
23572 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
23573 SSE1, copy target into the temporary reg first before recursing
23574 on it.
23575
23576 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
23577
23578 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
23579 with vm.
23580
23581 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
23582
23583 * ginclude/stdarg.h: Test __cplusplus instead of
23584 __GXX_EXPERIMENTAL_CXX0X__.
23585
23586 2016-01-29 Richard Biener <rguenther@suse.de>
23587
23588 PR tree-optimization/69547
23589 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
23590 Do not mark clobbers necessary.
23591 (mark_all_reaching_defs_necessary_1): Likewise.
23592
23593 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23594
23595 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
23596 declaration name with %qs and print it in both error messages.
23597 Also fix indentation.
23598
23599 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23600
23601 PR other/69006
23602 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
23603 trailing blank line from error message.
23604
23605 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
23606
23607 PR c++/69462
23608 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
23609 for C++-11.
23610
23611 2016-01-29 Richard Biener <rguenther@suse.de>
23612
23613 PR middle-end/69537
23614 * match.pd: Allow all integral types when simplifying a
23615 widening or sign-changing conversion.
23616
23617 2016-01-28 Sebastian Pop <s.pop@samsung.com>
23618
23619 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
23620 back to setting codegen_error to fail codegen.
23621
23622 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
23623
23624 PR target/69459
23625 * config/i386/constraints.md (C): Only accept constant zero operand.
23626 (BC): New constraint.
23627 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
23628 instead of C constraint.
23629 * doc/md.texi (Machine Constraints): Update description
23630 of C constraint.
23631
23632 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
23633
23634 PR target/68400
23635 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
23636
23637 2016-01-28 Jakub Jelinek <jakub@redhat.com>
23638
23639 PR middle-end/69542
23640 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
23641 non-debug insns.
23642
23643 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
23644
23645 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
23646 branches if using guessed profile.
23647
23648 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
23649
23650 * graphite-optimize-isl.c (optimize_isl): Fix dump.
23651
23652 2016-01-28 Richard Henderson <rth@redhat.com>
23653
23654 PR target/69305
23655 * config/aarch64/aarch64-modes.def (CC_Cmode): New
23656 * config/aarch64/aarch64-protos.h: Update.
23657 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
23658 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
23659 (aarch64_get_condition_code_1): Handle CC_Cmode.
23660 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
23661 (*add<mode>3_compareC_cconly_imm): New.
23662 (*add<mode>3_compareC_cconly): New.
23663 (*add<mode>3_compareC_imm): New.
23664 (add<mode>3_compareC): New.
23665 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
23666 to be first. Use aarch64_carry_operation.
23667 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
23668 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
23669 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
23670 (subti3): Use subdi3_compare1.
23671 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
23672 (sub<mode>3_compare1): New.
23673 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
23674 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
23675 (*subsi3_carryin_uxtw): Likewise.
23676 (*ngc<mode>, *ngcsi_uxtw): Likewise.
23677 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
23678 * config/aarch64/iterators.md (DWI): New.
23679 * config/aarch64/predicates.md (aarch64_carry_operation): New.
23680 (aarch64_borrow_operation): New.
23681
23682 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
23683
23684 * graphite-optimize-isl.c (optimize_isl): Print a different debug
23685 message when isl does not return a valid schedule.
23686
23687 2016-01-28 Sebastian Pop <s.pop@samsung.com>
23688
23689 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
23690 Remove comments from class declarations: they are already in the code
23691 close by the defs.
23692
23693 2016-01-28 Sebastian Pop <s.pop@samsung.com>
23694
23695 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
23696 codegen_error_p.
23697 (ternary_op_to_tree): Same.
23698 (unary_op_to_tree): Same.
23699 (nary_op_to_tree): Same.
23700 (gcc_expression_from_isl_expr_op): Same.
23701 (gcc_expression_from_isl_expression): Same.
23702 (graphite_create_new_loop): Same.
23703 (graphite_create_new_loop_guard): Same.
23704 (build_iv_mapping): Same.
23705 (graphite_create_new_guard): Same.
23706 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
23707 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
23708
23709 2016-01-28 Sebastian Pop <s.pop@samsung.com>
23710
23711 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
23712 instead of setting codegen_error to fail codegen.
23713
23714 2016-01-28 Jason Merrill <jason@redhat.com>
23715
23716 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
23717
23718 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
23719
23720 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
23721 Remove CONST_INT_P check in CCMP cost calculation.
23722
23723 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
23724
23725 * config/aarch64/aarch64.c (generic_vector_cost):
23726 Set vec_permute_cost.
23727 (cortexa57_vector_cost): Likewise.
23728 (exynosm1_vector_cost): Likewise.
23729 (xgene1_vector_cost): Likewise.
23730 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
23731 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
23732 Add vec_permute_cost entry.
23733
23734 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
23735
23736 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
23737 immediate as %1.
23738 (add<mode>3_compare0): Likewise.
23739 (addsi3_compare0_uxtw): Likewise.
23740 (add<mode>3nr_compare0): Likewise.
23741 (compare_neg<mode>): Likewise.
23742 (<optab><mode>3): Likewise.
23743
23744 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
23745
23746 * tree-vect-stmts.c (vectorizable_comparison): Add
23747 NULL check for vectype.
23748
23749 2016-01-28 Richard Biener <rguenther@suse.de>
23750
23751 PR tree-optimization/69466
23752 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
23753 Account for PHIs we couldn't duplicate.
23754
23755 2016-01-28 Martin Liska <mliska@suse.cz>
23756
23757 PR pch/68758
23758 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
23759 instead of ENABLE_VALGRIND_CHECKING.
23760
23761 2016-01-27 Richard Henderson <rth@redhat.com>
23762
23763 PR rtl-opt/69447
23764 * lra-remat.c (subreg_regs): New.
23765 (dump_candidates_and_remat_bb_data): Dump it.
23766 (operand_to_remat): Reject if operand in subreg_regs.
23767 (set_bb_regs): Collect subreg_regs.
23768 (lra_remat): Init and free subreg_regs. Compute
23769 calculate_local_reg_remat_bb_data before create_cands.
23770
23771 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
23772
23773 PR target/68986
23774 * config/i386/i386.c (ix86_update_stack_boundary): Don't
23775 change stack_alignment_needed for __tls_get_addr call.
23776
23777 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
23778
23779 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
23780
23781 2016-01-27 Jeff Law <law@redhat.com>
23782
23783 PR tree-optimization/68398
23784 PR tree-optimization/69196
23785 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
23786 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
23787 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23788 Only count PHIs in the last block in the path. The others will
23789 const/copy propagate away. Add heuristic to allow more irreducible
23790 subloops to be created when it is likely profitable to do so.
23791
23792 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23793 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
23794 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
23795
23796 2016-01-27 Jakub Jelinek <jakub@redhat.com>
23797
23798 PR lto/69254
23799 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
23800 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
23801 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
23802 * tree-streamer-in.c: Include asan.h.
23803 (streamer_get_builtin_tree): For builtins in sanitizer
23804 range call initialize_sanitizer_builtins and retry.
23805
23806 2016-01-27 Ian Lance Taylor <iant@google.com>
23807
23808 * common.opt (fkeep-gc-roots-live): New undocumented option.
23809 * tree-ssa-loop-ivopts.c (add_candidate_1): If
23810 -fkeep-gc-roots-live, skip pointers.
23811 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
23812 NULL.
23813
23814 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
23815
23816 PR target/69512
23817 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
23818 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
23819
23820 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
23821
23822 PR target/68380
23823 * configure.ac: NetBSD provides SSP in its C library.
23824 * configure: Updated.
23825
23826 2016-01-27 Richard Biener <rguenther@suse.de>
23827
23828 PR tree-optimization/69166
23829 * tree-vect-loop.c (vect_is_simple_reduction): Always check
23830 reduction code for commutativity / associativity.
23831
23832 2016-01-27 Martin Jambor <mjambor@suse.cz>
23833
23834 PR tree-optimization/69355
23835 * tree-sra.c (analyze_access_subtree): Correct hole detection when
23836 total_scalarization fails.
23837
23838 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
23839
23840 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
23841 power9.
23842
23843 2016-01-27 Christian Bruel <christian.bruel@st.com>
23844
23845 PR target/69245
23846 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
23847 Move arm_reset_previous_fndecl and set_target_option_current_node in
23848 the conditional part. Call save_restore_target_globals.
23849 * config/arm/arm.c (arm_set_current_function):
23850 Refactor to better support #pragma target and attribute mix.
23851 Call save_restore_target_globals.
23852 * config/arm/arm-protos.h (save_restore_target_globals): New function.
23853
23854 2016-01-27 Martin Liska <mliska@suse.cz>
23855
23856 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
23857 reference for an HSA kernel and its host function.
23858
23859 2016-01-27 Jakub Jelinek <jakub@redhat.com>
23860
23861 PR tree-optimization/69399
23862 * wide-int.h (wi::lrshift): For larger precisions, only
23863 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
23864
23865 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
23866
23867 * config/arc/predicates.md (proper_comparison_operator): Reject
23868 constant-constant comparison.
23869
23870 2016-01-26 Tom de Vries <tom@codesourcery.com>
23871
23872 PR tree-optimization/69110
23873 * tree-data-ref.c (initialize_data_dependence_relation): Handle
23874 DR_NUM_DIMENSIONS == 0.
23875
23876 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
23877 Sebastian Pop <s.pop@samsung.com>
23878
23879 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
23880 isl_ast_op_cond and isl_ast_op_select.
23881 (gcc_expression_from_isl_expr_op): Same.
23882
23883 2016-01-26 Jason Merrill <jason@redhat.com>
23884
23885 PR c++/68782
23886 * tree.c (recompute_constructor_flags): Split out from
23887 build_constructor.
23888 (verify_constructor_flags): New.
23889 * tree.h: Declare them.
23890
23891 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
23892
23893 PR rtl-optimization/69217
23894 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
23895 are no TYPE_FIELDS set for the record type.
23896
23897 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23898
23899 PR target/68662
23900 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
23901 toc_label_name unconditionally.
23902 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
23903 SYMBOL_REF string. Use toc_label_name instead of constructing
23904 LCTOC1.
23905 (rs6000_elf_declare_function_name): Use toc_label_name instead of
23906 constructing LCTOC1.
23907
23908 2016-01-26 Martin Sebor <msebor@redhat.com>
23909
23910 PR other/69477
23911 * doc/extend.texi (Common Type Attributes): Move text that talks about
23912 attribute packed from attribute aligned to the section discussing
23913 the former attribute for clarity.
23914
23915 2016-01-26 Richard Henderson <rth@redhat.com>
23916
23917 PR middle-end/60908
23918 * trans-mem.c (tm_region_init): Mark entry block as visited.
23919
23920 2016-01-26 David Malcolm <dmalcolm@redhat.com>
23921
23922 PR other/69006
23923 * diagnostic-show-locus.c (layout::print_source_line): Replace
23924 call to pp_newline with call to layout::print_newline.
23925 (layout::print_annotation_line): Likewise.
23926 (layout::move_to_column): Likewise.
23927 (layout::print_any_fixits): After printing any fixits, print a
23928 trailing newline, if necessary.
23929 (layout::print_newline): New method, resetting any colorization
23930 before a newline.
23931 (diagnostic_show_locus): Move the pp_newline to before the
23932 early bailout. Remove dummy block enclosing the layout instance.
23933 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
23934 of pp_newline_and_flush with pp_flush.
23935 (diagnostic_append_note): Delete use of pp_newline.
23936 (diagnostic_append_note_at_rich_loc): Delete.
23937 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
23938 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
23939 when newline characters are added to the buffer.
23940
23941 2016-01-26 Michael Matz <matz@suse.de>
23942
23943 * configure.ac (ac_cv_std_swap_in_utility): New test.
23944 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
23945 * configure: Regenerate.
23946 * config.in: Regenerate.
23947
23948 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
23949
23950 * config/arc/arc.md (cstoresi4): Force operand into register.
23951 (arcset<code>): Fix predicate.
23952 (arcsetltu): Likewise.
23953 (arcsetgeu): Likewise.
23954 (arcsethi): Likewise.
23955 (arcsetls): Likewise.
23956
23957 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23958
23959 PR tree-optimization/69483
23960 * gimple-fold.c (canonicalize_constructor_val): Return NULL
23961 if base has error_mark_node type.
23962
23963 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
23964
23965 PR target/68620
23966 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
23967 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
23968 New helper macros.
23969 (vget_lane_f16): Handle big-endian.
23970 (vgetq_lane_f16): Likewise.
23971 (vset_lane_f16): Likewise.
23972 (vsetq_lane_f16): Likewise.
23973 * config/arm/iterators.md (VQXMOV): Add V8HF.
23974 (VDQ): Add V4HF and V8HF.
23975 (V_reg): Handle V4HF and V8HF.
23976 (Is_float_mode): Likewise.
23977 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
23978 neon_vdup_nv8hf): New patterns.
23979 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
23980 Use VD_LANE iterator.
23981 (neon_vld1_dup<mode>): Use VQ2 iterator.
23982
23983 2016-01-26 Nathan Sidwell <nathan@acm.org>
23984
23985 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
23986 (set_oacc_fn_attrib): Add IS_KERNEL arg.
23987 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
23988 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
23989 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
23990 (oacc_validate_dims): Add LEVEL arg, don't return level.
23991 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
23992 oacc_validate_dims.
23993 (execute_oacc_device_lower): Adjust, add more dump output.
23994 * tree-ssa-loop.c (gate_oacc_kernels): Use
23995 oacc_fn_attrib_kernels_p.
23996 * tree-parloops.c (create_parallel_loop): Adjust
23997 set_oacc_fn_attrib call.
23998
23999 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24000
24001 PR lto/69254
24002 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
24003 (append_compiler_options): Handle -fcilkplus.
24004 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
24005
24006 2016-01-26 Nick Clifton <nickc@redhat.com>
24007
24008 PR target/66655
24009 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
24010 been marked as DECL_ONE_ONLY but we do not the means to make it
24011 so, then do not allow it to bind locally.
24012
24013 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24014
24015 PR lto/69254
24016 * opts.h (parse_sanitizer_options): New prototype.
24017 * opts.c (sanitizer_opts): New array.
24018 (parse_sanitizer_options): New function.
24019 (common_handle_option): Use parse_sanitizer_options.
24020
24021 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
24022
24023 PR target/68986
24024 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
24025 alignment adjustment to ...
24026 (ix86_update_stack_boundary): Here. Don't over-align stack for
24027 __tls_get_addr.
24028 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
24029 if __tls_get_addr is called.
24030
24031 2016-01-26 Christian Bruel <christian.bruel@st.com>
24032
24033 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
24034
24035 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
24036
24037 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
24038
24039 2016-01-26 Richard Biener <rguenther@suse.de>
24040
24041 PR middle-end/69467
24042 * match.pd: Guard X * CST CMP 0 pattern with single_use.
24043
24044 2016-01-26 Richard Biener <rguenther@suse.de>
24045
24046 PR tree-optimization/69452
24047 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
24048 (move_computations_dom_walker::before_dom_children): Rename
24049 to ...
24050 (move_computations_worker): This.
24051 (move_computations): Perform an RPO rather than a DOM walk.
24052
24053 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24054
24055 PR target/69442
24056 * combine.c (combine_instructions): For REG_EQUAL note with
24057 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
24058 to the underlying register.
24059 * doc/rtl.texi (REG_EQUAL): Document the behavior of
24060 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
24061
24062 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
24063
24064 PR target/67896
24065 * config/aarch64/aarch64-builtins.c
24066 (aarch64_init_simd_builtin_types): Do not set structural
24067 equality to __Poly{8,16,64,128}_t types.
24068
24069 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
24070
24071 PR tree-optimization/69400
24072 * wide-int.cc (wi_pack): Take the precision as argument and
24073 perform canonicalization here rather than in the callers.
24074 Use the main loop to handle all full-width HWIs. Add a
24075 zero HWI if in_len isn't a full result.
24076 (wi::divmod_internal): Update accordingly.
24077 (wi::mul_internal): Likewise. Simplify.
24078
24079 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
24080 Sebastian Pop <s.pop@samsung.com>
24081
24082 * graphite-poly.c (apply_poly_transforms): Simplify.
24083 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
24084 (print_isl_map): Same.
24085 (print_isl_union_map): Same.
24086 (print_isl_schedule): New.
24087 (debug_isl_schedule): New.
24088 * graphite-dependences.c (scop_get_reads): Do not call
24089 isl_union_map_add_map that is undocumented isl functionality.
24090 (scop_get_must_writes): Same.
24091 (scop_get_may_writes): Same.
24092 (scop_get_original_schedule): Remove.
24093 (scop_get_dependences): Do not call isl_union_map_compute_flow that
24094 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
24095 (compute_deps): Remove.
24096 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
24097 (debug_schedule_ast): New.
24098 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
24099 set_separate_option.
24100 (graphite_regenerate_ast_isl): Add dump.
24101 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
24102 from scop->transformed_schedule.
24103 (graphite_regenerate_ast_isl): Add more dump.
24104 * graphite-optimize-isl.c (optimize_isl): Set
24105 scop->transformed_schedule. Check whether schedules are equal.
24106 (apply_poly_transforms): Move here.
24107 * graphite-poly.c (apply_poly_transforms): ... from here.
24108 (free_poly_bb): Static.
24109 (free_scop): Static.
24110 (pbb_number_of_iterations_at_time): Remove.
24111 (print_isl_ast): New.
24112 (debug_isl_ast): New.
24113 (debug_scop_pbb): New.
24114 * graphite-scop-detection.c (print_edge): Move.
24115 (print_sese): Move.
24116 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
24117 (build_scop_scattering): Remove.
24118 (create_pw_aff_from_tree): Assert instead of bailing out.
24119 (add_condition_to_pbb): Remove unused code, do not fail.
24120 (add_conditions_to_domain): Same.
24121 (add_conditions_to_constraints): Remove.
24122 (build_scop_context): New.
24123 (add_iter_domain_dimension): New.
24124 (build_iteration_domains): Initialize pbb->iterators.
24125 Call add_conditions_to_domain.
24126 (nested_in): New.
24127 (loop_at): New.
24128 (index_outermost_in_loop): New.
24129 (index_pbb_in_loop): New.
24130 (outermost_pbb_in): New.
24131 (add_in_sequence): New.
24132 (add_outer_projection): New.
24133 (outer_projection_mupa): New.
24134 (add_loop_schedule): New.
24135 (build_schedule_pbb): New.
24136 (build_schedule_loop): New.
24137 (embed_in_surrounding_loops): New.
24138 (build_schedule_loop_nest): New.
24139 (build_original_schedule): New.
24140 (build_poly_scop): Call build_original_schedule.
24141 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
24142 (free_poly_dr): Remove.
24143 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
24144 (free_poly_bb): Remove.
24145 (debug_loop_vec): Remove.
24146 (print_isl_ast): Declare.
24147 (debug_isl_ast): Declare.
24148 (scop_do_interchange): Remove.
24149 (scop_do_strip_mine): Remove.
24150 (scop_do_block): Remove.
24151 (flatten_all_loops): Remove.
24152 (optimize_isl): Remove.
24153 (pbb_number_of_iterations_at_time): Remove.
24154 (debug_scop_pbb): Declare.
24155 (print_schedule_ast): Declare.
24156 (debug_schedule_ast): Declare.
24157 (struct scop): Remove schedule. Add original_schedule,
24158 transformed_schedule.
24159 (free_gimple_poly_bb): Remove.
24160 (print_generated_program): Remove.
24161 (debug_generated_program): Remove.
24162 (unify_scattering_dimensions): Remove.
24163 * sese.c (print_edge): ... here.
24164 (print_sese): ... here.
24165 (debug_edge): ... here.
24166 (debug_sese): ... here.
24167 * sese.h (print_edge): Declare.
24168 (print_sese): Declare.
24169 (dump_edge): Declare.
24170 (dump_sese): Declare.
24171
24172 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
24173 Sebastian Pop <s.pop@samsung.com>
24174
24175 * Makefile.in: Set ISLVER in site.exp.
24176
24177 2016-01-25 Jakub Jelinek <jakub@redhat.com>
24178
24179 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
24180 DECL_VALUE_EXPR of new_var even for the non-array case. Look
24181 through DECL_VALUE_EXPR for expansion.
24182
24183 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
24184
24185 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
24186 the frame info after reload completed.
24187
24188 2016-01-25 Jeff Law <law@redhat.com>
24189
24190 PR tree-optimization/69196
24191 PR tree-optimization/68398
24192 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
24193 tree-ssa-threadupdate.c.
24194 (determine_bb_domination_status): Prototype
24195 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
24196 (determine_bb_domination_status): No longer static.
24197 (valid_jump_thread_path): Remove code to detect characteristics
24198 of the jump thread path not associated with correctness.
24199 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
24200 Correct test for thread path length. Count PHIs for real operands as
24201 statements that need to be copied. Do not count ASSERT_EXPRs.
24202 Look at all the blocks in the thread path. Compute and selectively
24203 filter thread paths based on threading through the latch, threading
24204 a multiway branch or crossing a multiway branch.
24205
24206 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24207
24208 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
24209 decl with __attribute__ ((unused)) annotation.
24210
24211 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
24212
24213 PR target/69421
24214 * tree-vect-stmts.c (vectorizable_condition): Check vectype
24215 of operands is compatible with a statement vectype.
24216
24217 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
24218
24219 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
24220 improve wording for mixed storage order support.
24221
24222 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
24223
24224 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
24225 (vcvt_u64_f64): Likewise.
24226 (vcvta_s64_f64): Likewise.
24227 (vcvta_u64_f64): Likewise.
24228 (vcvtm_s64_f64): Likewise.
24229 (vcvtm_u64_f64): Likewise.
24230 (vcvtn_s64_f64): Likewise.
24231 (vcvtn_u64_f64): Likewise.
24232 (vcvtp_s64_f64): Likewise.
24233 (vcvtp_u64_f64): Likewise.
24234
24235 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
24236
24237 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
24238 (arc_init): Check validity mll64 option.
24239 (arc_save_restore): Use double load/store instruction.
24240 (arc_expand_movmem): Likewise.
24241 (arc_split_move): Don't split if we have double load/store
24242 instructions. Returns a boolean.
24243 (arc_process_double_reg_moves): Change function to return boolean
24244 instead of a sequence of instructions.
24245 (arc_dwarf_register_span): New function.
24246 * config/arc/arc-protos.h (arc_split_move): Change prototype.
24247 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
24248 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
24249 (*movdf_insn): Likewise.
24250 * config/arc/arc.opt (mll64): New option.
24251 * config/arc/predicates.md (even_register_operand): New predicate.
24252 * doc/invoke.texi (ARC Options): Add mll64 documentation.
24253
24254 2016-01-25 Richard Biener <rguenther@suse.de>
24255
24256 PR lto/69393
24257 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
24258 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
24259 DECL_NAMELESS.
24260 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
24261
24262 2016-01-25 Richard Biener <rguenther@suse.de>
24263
24264 PR tree-optimization/69376
24265 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
24266 flag.
24267 (VN_INFO_ANTI_RANGE_P): New inline.
24268 (VN_INFO_RANGE_TYPE): Likewise.
24269 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
24270 SSA_NAME_ANTI_RANGE_P.
24271 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
24272 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24273 Properly query VN_INFO_RANGE_TYPE.
24274
24275 2016-01-25 Nick Clifton <nickc@redhat.com>
24276
24277 PR target/66655
24278 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
24279
24280 2016-01-23 Tom de Vries <tom@codesourcery.com>
24281
24282 PR tree-optimization/69426
24283 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
24284 removed clobber.
24285
24286 2016-01-23 Jakub Jelinek <jakub@redhat.com>
24287
24288 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
24289 "the the" with "the" in the comments.
24290 * ipa-devirt.c (build_type_inheritance_graph,
24291 update_type_inheritance_graph): Likewise.
24292 * tree.c (build_function_type_list_1): Likewise.
24293 * cfgloopmanip.c (scale_loop_profile): Likewise.
24294 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
24295 * gimple-ssa-split-paths.c
24296 (find_block_to_duplicate_for_splitting_paths): Likewise.
24297 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
24298 * expr.c (convert_move): Likewise.
24299 * var-tracking.c (vt_stack_adjustments): Likewise.
24300 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
24301 * tree-vrp.c (test_for_singularity): Likewise.
24302
24303 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
24304 directly instead of building a temporary tree.
24305
24306 PR bootstrap/69434
24307 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
24308 remove <algorithm> include.
24309
24310 2016-01-22 Jakub Jelinek <jakub@redhat.com>
24311
24312 PR target/69432
24313 * config/i386/i386.c: Include dojump.h.
24314 (expand_small_movmem_or_setmem,
24315 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
24316 fixes.
24317 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
24318 if dynamic_check != -1.
24319
24320 2016-01-21 Jeff Law <law@redhat.com>
24321
24322 PR middle-end/69347
24323 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
24324 record_temporary_equivalences. Rewritten to avoid unnecessary calls
24325 into dominated_by_p.
24326 (cprop_into_successor_phis): Avoid unnecessary tests.
24327
24328 2016-01-22 Richard Henderson <rth@redhat.com>
24329
24330 PR target/69416
24331 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
24332 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
24333
24334 2016-01-22 Michael Matz <matz@suse.de>
24335
24336 * system.h (string, algorithm): Include only conditionally.
24337 (new): Include always under C++.
24338 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
24339 * final.c (toplevel): Ditto.
24340 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
24341 * genconditions.c (write_header): Make gencondmd.c define
24342 INCLUDE_STRING.
24343 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
24344
24345 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
24346 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
24347
24348 2016-01-22 Christian Bruel <christian.bruel@st.com>
24349
24350 PR target/68674
24351 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
24352
24353 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24354
24355 PR target/69403
24356 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
24357 define_insn_and_split. Ensure operands[1] and operands[0] do not
24358 get assigned the same register.
24359
24360 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
24361
24362 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
24363
24364 2016-01-22 Christian Bruel <christian.bruel@st.com>
24365
24366 * config/arm/arm-c.c (arm_pragma_target_parse):
24367 Remove warn_builtin_macro_redefined overwrite.
24368
24369 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
24370
24371 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
24372 flag_non_call_exceptions compatibility.
24373
24374 2016-01-22 Jakub Jelinek <jakub@redhat.com>
24375
24376 PR debug/66668
24377 * dwarf2out.c (add_child_die_after): New function.
24378 (dwarf_qual_info_t): New type.
24379 (dwarf_qual_info): New variable.
24380 (qualified_die_p): New function.
24381 (modified_type_die): For -fdebug-types-section, ensure
24382 canonical order of qualifiers. Put qualified DIEs adjacent
24383 to the corresponding non-qualified type DIE and search there
24384 for existing qualified DIEs.
24385
24386 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
24387
24388 * doc/extend.texi (scalar_storage_order type attribute): Document
24389 restriction on type punning and aliasing, and remove future tense.
24390
24391 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
24392
24393 PR target/69252
24394 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
24395 first stage.
24396
24397 2016-01-21 Jeff Law <law@redhat.com>
24398
24399 PR middle-end/69347
24400 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
24401 useless call to record_temporary_equivalences.
24402 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
24403 allocate 10 slots in the bb_path vector and let it grow as needed.
24404 (fsm_find_control_statement_thread_paths): Similarly for the next_path
24405 vector.
24406
24407 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
24408
24409 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
24410 Detangle.
24411 * configure: Regenerate.
24412
24413 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
24414
24415 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
24416 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
24417
24418 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
24419
24420 PR middle-end/66178
24421 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
24422 drop EXPAND_INITIALIZER.
24423 * rtl.h (contains_symbolic_reference_p): Declare.
24424 * rtlanal.c (contains_symbolic_reference_p): New function.
24425 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
24426 a subtraction into a NOT if symbolic constants are involved.
24427
24428 2016-01-21 Anton Blanchard <anton@samba.org>
24429 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24430
24431 PR target/63354
24432 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
24433 #define.
24434 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
24435 function.
24436
24437 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
24438
24439 * config/microblaze/microblaze.c
24440 (get_branch_target): New.
24441 (insert_wic_for_ilb_runout): New.
24442 (insert_wic): New.
24443 (microblaze_machine_dependent_reorg): New.
24444 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
24445 * config/microblaze/microblaze.md
24446 (UNSPEC_IPREFETCH): Define.
24447 (iprefetch): New pattern
24448 * config/microblaze/microblaze.opt
24449 (mxl-prefetch): New flag.
24450
24451 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
24452
24453 * config/microblaze/microblaze.h
24454 (FIXED_REGISTERS): Update in macro.
24455 (CALL_USED_REGISTERS): Update in macro.
24456
24457 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
24458
24459 PR rtl-optimization/68920
24460 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
24461 moves.
24462
24463 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
24464
24465 PR rtl-optimization/68990
24466 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
24467 pseudo instead of inheritance ones.
24468
24469 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24470 Nick Clifton <nickc@redhat.com>
24471
24472 PR target/69129
24473 PR target/69012
24474 * config/mips/mips.c (mips_compute_frame_info): Initialise
24475 args_size and hard_frame_pointer_offset fields of the frame
24476 structure before calling mips_global_pointer.
24477
24478 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
24479
24480 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
24481 label reference.
24482 * configure: Regenerate.
24483
24484 2016-01-21 Richard Biener <rguenther@suse.de>
24485
24486 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
24487
24488 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
24489
24490 * config/s390/s390.c (s390_asm_declare_function_size): Add code
24491 to actually emit the .size directive.
24492
24493 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
24494 Jakub Jelinek <jakub@redhat.com>
24495
24496 PR target/69187
24497 PR target/65624
24498 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
24499 args array size by one to avoid buffer overflow.
24500
24501 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
24502
24503 * config/s390/s390.md (pool_section_start): Use switch_to_section
24504 to select proper read-only data section instead of hardcoding
24505 .rodata.
24506 (pool_section_end): Use switch_to_section to match the above.
24507
24508 2016-01-21 Richard Biener <rguenther@suse.de>
24509
24510 PR tree-optimization/69378
24511 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
24512 (set_ssa_val_to): Use it for dominance checks taking into
24513 account not executable edges.
24514
24515 2016-01-21 Jakub Jelinek <jakub@redhat.com>
24516
24517 PR c++/69355
24518 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
24519 for bitsize instead of GET_MODE_PRECISION (mode).
24520
24521 2016-01-20 Martin Sebor <msebor@redhat.com>
24522
24523 PR c/52291
24524 * extend.texi (__sync Builtins): Clarify the semantics of
24525 __sync_fetch_and_OP built-ins on pointers.
24526 (__atomic Builtins): Same.
24527
24528 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24529 Sebastian Pop <s.pop@samsung.com>
24530
24531 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
24532 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
24533 (is_valid_rename): Same.
24534 (translate_isl_ast_to_gimple::get_rename): Same.
24535 (translate_isl_ast_to_gimple::rename_all_uses): Same.
24536 (translate_isl_ast_to_gimple::rename_uses): Same.
24537 (get_new_name): Check for close_phi nodes.
24538 (copy_loop_phi_args): Use phi_node_kind.
24539 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
24540 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
24541
24542 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24543 Sebastian Pop <s.pop@samsung.com>
24544
24545 Revert commit r229783.
24546 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
24547 Remove use of parameter_rename_map.
24548 (copy_def): Remove.
24549 (copy_internal_parameters): Remove.
24550 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
24551 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
24552 (free_sese_info): Do not free parameter_rename_map.
24553 (set_rename): Do not use parameter_rename_map.
24554 (rename_uses): Update call to set_rename.
24555 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
24556 * sese.h (parameter_rename_map_t): Remove.
24557 (struct sese_info_t): Remove field parameter_rename_map.
24558
24559 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24560 Sebastian Pop <s.pop@samsung.com>
24561
24562 * graphite-isl-ast-to-gimple.c: Fix comment.
24563 * graphite-scop-detection.c (defined_in_loop_p): New.
24564 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
24565 names defined in loop.
24566
24567 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24568 Sebastian Pop <s.pop@samsung.com>
24569
24570 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
24571 Discard unstructured if-then-else regions.
24572
24573 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24574 Sebastian Pop <s.pop@samsung.com>
24575
24576 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
24577 (cleanup_loop_iter_dom): Remove.
24578 (build_loop_iteration_domains): Remove.
24579 (build_scop_context): Remove.
24580 (build_scop_iteration_domain): Remove.
24581 (add_loop_constraints): New.
24582 (build_iteration_domains): New.
24583 (build_poly_scop): Call build_iteration_domains.
24584
24585 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24586 Sebastian Pop <s.pop@samsung.com>
24587
24588 * graphite-scop-detection.c
24589 (scop_detection::harmful_loop_in_region): Free dom and loops.
24590 (scop_detection::loop_body_is_valid_scop): Free bbs.
24591
24592 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24593 Sebastian Pop <s.pop@samsung.com>
24594
24595 * graphite-scop-detection.c (record_loop_in_sese): New.
24596 (gather_bbs::before_dom_children): Call record_loop_in_sese.
24597 (build_scops): Remove call to build_sese_loop_nests.
24598 * sese.c (sese_record_loop): Remove.
24599 (build_sese_loop_nests): Remove.
24600 (new_sese_info): Remove region->loops.
24601 (free_sese_info): Same.
24602 * sese.h (sese_contains_loop): Same.
24603 (build_sese_loop_nests): Remove.
24604 (sese_contains_loop): Remove.
24605
24606 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24607 Sebastian Pop <s.pop@samsung.com>
24608
24609 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
24610 loop_is_valid_in_scop.
24611 (scop_detection::harmful_stmt_in_region): Renamed
24612 harmful_loop_in_region.
24613 Call loop_is_valid_in_scop.
24614
24615 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24616 Sebastian Pop <s.pop@samsung.com>
24617
24618 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
24619 isl_ast_node_mark.
24620
24621 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24622 Sebastian Pop <s.pop@samsung.com>
24623
24624 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
24625 * graphite.h (struct poly_bb): Remove field is_reduction.
24626 (PBB_IS_REDUCTION): Remove.
24627
24628 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24629 Sebastian Pop <s.pop@samsung.com>
24630
24631 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
24632 (add_pdr_constraints): Same.
24633 (scop_get_reads): Same.
24634 (scop_get_must_writes): Same.
24635 (scop_get_may_writes): Same.
24636 (scop_get_original_schedule): Same.
24637 (extend_schedule): Same.
24638 (apply_schedule_on_deps): Same.
24639 (carries_deps): Same.
24640 (compute_deps): Same.
24641 (scop_get_dependences): Same.
24642 * graphite-isl-ast-to-gimple.c
24643 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
24644 * graphite-optimize-isl.c (get_schedule_for_band): Same.
24645 (get_schedule_for_band_list): Same.
24646 (get_schedule_map): Same.
24647 (apply_schedule_map_to_scop): Same.
24648 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
24649 (build_loop_iteration_domains): Same.
24650 (add_condition_to_pbb): Same.
24651 (add_param_constraints): Same.
24652 (pdr_add_memory_accesses): Same.
24653 (pdr_add_data_dimensions): Same.
24654
24655 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
24656
24657 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
24658 requirements.
24659
24660 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
24661
24662 * common.opt (feliminate-dwarf2-dups): Replace references to
24663 "DWARF 2" with just "DWARF".
24664 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
24665 * doc/extend.texi: Likewise.
24666 * doc/cpp.texi: Likewise.
24667 * doc/invoke.texi: Likewise.
24668 (Option Summary): Add -gdwarf to list of Debugging Options.
24669 (Debugging Options): Document -gdwarf.
24670 * doc/contrib.texi: Spell "DWARF" like that.
24671
24672 2016-01-21 Jakub Jelinek <jakub@redhat.com>
24673
24674 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
24675 warning. Fix up formatting.
24676
24677 PR middle-end/67653
24678 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
24679 attempt to mark memory input operand addressable and
24680 call prepare_gimple_addressable in that case. Don't adjust
24681 input_location for diagnostics, use error_at instead.
24682
24683 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
24684
24685 * config/rs6000/ppc-auxv.h: New file.
24686 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
24687 (cpu_is): Likewise.
24688 (cpu_supports): Likewise.
24689 * config/rs6000/rs6000.c: include "ppc-auxv.h".
24690 (cpu_is_info): New variable.
24691 (cpu_supports_info): Likewise.
24692 (tcb_verification_symbol): Likewise.
24693 (cpu_builtin_p): Likewise.
24694 (cpu_expand_builtin): New function.
24695 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
24696 (rs6000_init_builtins): Likewise.
24697 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
24698 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
24699 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
24700 * configure: Regenerate.
24701 * config.in: Likewise.
24702 * doc/extend.texi (PowerPC Built-in Functions): Document
24703 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
24704
24705 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
24706
24707 PR target/68609
24708 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
24709 domain check.
24710 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
24711 for V4SFmode.
24712
24713 2016-01-20 Richard Henderson <rth@redhat.com>
24714
24715 PR bootstrap/69343
24716 PR bootstrap/69339
24717 PR tree-opt/68964
24718 Revert:
24719 * tree.c (tm_define_builtin): New.
24720 (find_tm_vector_type): New.
24721 (build_tm_vector_builtins): New.
24722 (build_common_builtin_nodes): Call it.
24723
24724 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
24725
24726 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
24727 (arm_fp_ok): Likewise.
24728 (arm_fp): Likewise.
24729 (arm_crypto): Likewise.
24730
24731 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
24732 Richard Biener <rguenther@suse.de>
24733
24734 PR tree-optimization/69328
24735 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
24736 vectors have same number of elements.
24737 (vectorizable_condition): Fix masked version recognition.
24738
24739 2016-01-20 Richard Biener <rguenther@suse.de>
24740
24741 PR tree-optimization/69345
24742 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
24743 (VN_INFO_PTR_INFO): Likewise.
24744 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
24745 info when it is equal between non-dominating SSA names.
24746 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24747 Make sure to look at original SSA infos.
24748
24749 2016-01-20 Jeff Law <law@redhat.com>
24750
24751 PR target/25114
24752 * config/m68k/predicates.md (pow2_m1_operand): New predicate
24753 extracted from ...
24754 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
24755 (pc_or_label_operand): New predicate.
24756 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
24757 tests for small integers that are 2^n - 1.
24758
24759 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
24760
24761 * doc/invoke.texi (Options Summary): Add '.' after @xref.
24762
24763 2016-01-19 Jeff Law <law@redhat.com>
24764
24765 PR middle-end/69347
24766 * tree-ssa-threadbackwards.c
24767 (fsm_find_control_statement_thread_paths): Do not try to lookup
24768 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
24769
24770 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
24771
24772 * doc/lto.texi: Remove text that says only Gold has linker plugin
24773 support.
24774
24775 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
24776
24777 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
24778 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
24779 the DIE accordingly.
24780 (modified_type_die): Add REVERSE parameter and pass it recursively,
24781 as well as to base_type_die. Adjust presence check accordingly.
24782 (base_type_for_mode): Adjust call to modified_type_die.
24783 (add_type_attribute): Add REVERSE parameter and pass it to
24784 modified_type_die.
24785 (generic_parameter_die): Adjust call to add_type_attribute.
24786 (add_scalar_info): Likewise.
24787 (add_subscript_info): Likewise.
24788 (gen_array_type_die): Likewise.
24789 (gen_descr_array_type_die): Likewise.
24790 (gen_entry_point_die): Likewise.
24791 (gen_enumeration_type_die): Likewise.
24792 (gen_formal_parameter_die): Likewise.
24793 (gen_subprogram_die): Likewise.
24794 (gen_variable_die ): Likewise.
24795 (gen_const_die): Likewise.
24796 (gen_field_die): Likewise.
24797 (gen_pointer_type_die): Likewise.
24798 (gen_reference_type_die): Likewise.
24799 (gen_ptr_to_mbr_type_die): Likewise.
24800 (gen_inheritance_die): Likewise.
24801 (gen_subroutine_type_die): Likewise.
24802 (gen_typedef_die): Likewise.
24803 (force_type_die): Adjust call to modified_type_die.
24804
24805 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
24806
24807 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
24808 flow throughout the file. Fix broken link to Objective-C 2.0
24809 documentation.
24810 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
24811 errors.
24812
24813 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24814
24815 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
24816
24817 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24818
24819 PR ipa/66223
24820 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
24821 (maybe_record_node): Record cxa_pure_virtual as the only possible
24822 target if there are not ohter candidates.
24823 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
24824
24825 2016-01-19 Richard Biener <rguenther@suse.de>
24826
24827 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
24828 (get_memory_order): Likewise.
24829
24830 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
24831
24832 * tree-vect-stmts.c (vectorizable_store): Check
24833 rhs vectype.
24834
24835 2016-01-19 David Malcolm <dmalcolm@redhat.com>
24836
24837 PR jit/68446
24838 * gcc.c (driver::decode_argv): Add call to
24839 init_opts_obstack before init_options_struct.
24840 * opts.c (init_opts_obstack): Remove idempotency.
24841 (init_options_struct): Replace call to init_opts_obstack
24842 with a gcc_assert to verify that it has already been called.
24843 * toplev.c (toplev::main): Add call to init_opts_obstack before
24844 calls to init_options_struct.
24845 (toplev::finalize): Move cleanup of opts_obstack next to
24846 cleanup of save_decoded_options, clearing the latter, and
24847 save_decoded_options_count.
24848
24849 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24850
24851 PR target/69135
24852 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
24853 attribute to unconditional. Remove %? from output template.
24854
24855 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24856 Jiong Wang <jiong.wang@arm.com>
24857
24858 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
24859 generated from different expand order.
24860
24861 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24862
24863 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
24864 Add support for CCMP costing.
24865
24866 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24867
24868 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
24869 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
24870 (fccmpe<mode>): Likewise.
24871 (fcmp): Rename to fcmp and globalize pattern.
24872 (fcmpe): Likewise.
24873 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
24874 (aarch64_gen_ccmp_next): Add FP support.
24875
24876 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24877
24878 * target.def (gen_ccmp_first): Update documentation.
24879 (gen_ccmp_next): Likewise.
24880 * doc/tm.texi (gen_ccmp_first): Update documentation.
24881 (gen_ccmp_next): Likewise.
24882 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
24883 expand_ccmp_expr_1. Improve comments.
24884 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
24885 (ccmp_ior<mode>): Remove pattern.
24886 (cmp<mode>): Remove expand.
24887 (cmp): Globalize pattern.
24888 (cstorecc4): Use cc_register.
24889 (mov<mode>cc): Remove ccmp_cc_register check.
24890 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
24891 Simplify after removal of CC_DNE/* modes.
24892 (aarch64_ccmp_mode_to_code): Remove.
24893 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
24894 In 'k' case use integer as condition.
24895 (aarch64_nzcv_codes): Remove inverted cases.
24896 (aarch64_code_to_ccmode): Remove.
24897 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
24898 comparison with CC register to be used in folowing CCMP/branch/CSEL.
24899 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
24900 pattern. Return the comparison with CC register. Invert conditions
24901 when bitcode is OR.
24902 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
24903 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
24904
24905 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24906
24907 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
24908 instrumented_version.
24909
24910 2016-01-19 Richard Biener <rguenther@suse.de>
24911
24912 PR tree-optimization/69336
24913 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
24914 handled components with get_ref_base_and_extent.
24915 (equal_mem_array_ref_p): Adjust.
24916
24917 2016-01-19 Jakub Jelinek <jakub@redhat.com>
24918
24919 PR debug/65779
24920 * shrink-wrap.c: Include valtrack.h.
24921 (move_insn_for_shrink_wrap): Add DEBUG argument. If
24922 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
24923 in between insn and where it will be moved to. Call
24924 dead_debug_insert_temp.
24925 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
24926 first and dead_debug_local_finish at the end.
24927 For uses and defs bitmap, handle all regs in between REGNO and
24928 END_REGNO, not just the first one.
24929
24930 2016-01-19 Richard Biener <rguenther@suse.de>
24931
24932 PR tree-optimization/69352
24933 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
24934 (equal_mem_array_ref_p): Constrain size and max size properly.
24935 Compare the reverse flag.
24936
24937 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
24938
24939 * ira.c (ira): Update regstat data if we deleted insns.
24940
24941 2016-01-19 Jakub Jelinek <jakub@redhat.com>
24942
24943 PR rtl-optimization/68955
24944 PR rtl-optimization/64557
24945 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
24946 here. Fix up formatting.
24947 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
24948
24949 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24950
24951 PR lto/69133
24952 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
24953 assume that the node has body.
24954 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
24955 check.
24956
24957 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24958
24959 * lto-streamer-out.c (lto_output): Do not stream instrumentation
24960 thunks.
24961
24962 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24963
24964 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
24965 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
24966
24967 2016-01-19 Martin Jambor <mjambor@suse.cz>
24968 Martin Liska <mliska@suse.cz>
24969 Michael Matz <matz@suse.de>
24970
24971 * Makefile.in (OBJS): Add new source files.
24972 (GTFILES): Add hsa.c.
24973 * common.opt (disable_hsa): New variable.
24974 (-Whsa): New warning.
24975 * config.in (ENABLE_HSA): New.
24976 * configure.ac: Treat hsa differently from other accelerators.
24977 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
24978 $enable_offloading.
24979 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
24980 * doc/install.texi (Configuration): Document --with-hsa-runtime,
24981 --with-hsa-runtime-include, --with-hsa-runtime-lib and
24982 --with-hsa-kmt-lib.
24983 * doc/invoke.texi (-Whsa): Document.
24984 (hsa-gen-debug-stores): Likewise.
24985 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
24986 to invoke offload compiler for hsa acclerator.
24987 * opts.c (common_handle_option): Determine whether HSA offloading
24988 should be performed.
24989 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
24990 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
24991 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
24992 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
24993 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
24994 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
24995 GF_OMP_FOR_KIND_GRID_LOOP.
24996 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
24997 (pp_gimple_stmt_1): Likewise.
24998 * gimple-walk.c (walk_gimple_stmt): Likewise.
24999 * gimple.c (gimple_build_omp_grid_body): New function.
25000 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
25001 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
25002 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
25003 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
25004 GF_OMP_TEAMS_GRID_PHONY.
25005 (gimple_statement_omp_single_layout): Updated comments.
25006 (gimple_build_omp_grid_body): New function.
25007 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
25008 (gimple_omp_for_grid_phony): New function.
25009 (gimple_omp_for_set_grid_phony): Likewise.
25010 (gimple_omp_parallel_grid_phony): Likewise.
25011 (gimple_omp_parallel_set_grid_phony): Likewise.
25012 (gimple_omp_teams_grid_phony): Likewise.
25013 (gimple_omp_teams_set_grid_phony): Likewise.
25014 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
25015 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
25016 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
25017 (BUILT_IN_GOMP_TARGET): Updated type.
25018 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
25019 (adjust_for_condition): New function.
25020 (get_omp_for_step_from_incr): Likewise.
25021 (extract_omp_for_data): Moved parts to adjust_for_condition and
25022 get_omp_for_step_from_incr.
25023 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
25024 (fixup_child_record_type): Bail out if receiver_decl is NULL.
25025 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
25026 (scan_omp_parallel): Do not create child functions for phony
25027 constructs.
25028 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
25029 (scan_omp_1_op): Checking assert we are not remapping to
25030 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
25031 (parallel_needs_hsa_kernel_p): New function.
25032 (expand_parallel_call): Register apprpriate parallel child
25033 functions as HSA kernels.
25034 (grid_launch_attributes_trees): New type.
25035 (grid_attr_trees): New variable.
25036 (grid_create_kernel_launch_attr_types): New function.
25037 (grid_insert_store_range_dim): Likewise.
25038 (grid_get_kernel_launch_attributes): Likewise.
25039 (get_target_argument_identifier_1): Likewise.
25040 (get_target_argument_identifier): Likewise.
25041 (get_target_argument_value): Likewise.
25042 (push_target_argument_according_to_value): Likewise.
25043 (get_target_arguments): Likewise.
25044 (expand_omp_target): Call get_target_arguments instead of looking
25045 up for teams and thread limit.
25046 (grid_expand_omp_for_loop): New function.
25047 (grid_arg_decl_map): New type.
25048 (grid_remap_kernel_arg_accesses): New function.
25049 (grid_expand_target_kernel_body): New function.
25050 (expand_omp): Call it.
25051 (lower_omp_for): Do not emit phony constructs.
25052 (lower_omp_taskreg): Do not emit phony constructs but create for them
25053 a temporary variable receiver_decl.
25054 (lower_omp_taskreg): Do not emit phony constructs.
25055 (lower_omp_teams): Likewise.
25056 (lower_omp_grid_body): New function.
25057 (lower_omp_1): Call it.
25058 (grid_reg_assignment_to_local_var_p): New function.
25059 (grid_seq_only_contains_local_assignments): Likewise.
25060 (grid_find_single_omp_among_assignments_1): Likewise.
25061 (grid_find_single_omp_among_assignments): Likewise.
25062 (grid_find_ungridifiable_statement): Likewise.
25063 (grid_target_follows_gridifiable_pattern): Likewise.
25064 (grid_remap_prebody_decls): Likewise.
25065 (grid_copy_leading_local_assignments): Likewise.
25066 (grid_process_kernel_body_copy): Likewise.
25067 (grid_attempt_target_gridification): Likewise.
25068 (grid_gridify_all_targets_stmt): Likewise.
25069 (grid_gridify_all_targets): Likewise.
25070 (execute_lower_omp): Call grid_gridify_all_targets.
25071 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
25072 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
25073 (tree_omp_clause): Added union field dimension.
25074 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
25075 * tree.c (omp_clause_num_ops): Added number of arguments of
25076 OMP_CLAUSE__GRIDDIM_.
25077 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
25078 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
25079 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
25080 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
25081 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
25082 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
25083 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
25084 * tree-pass.h (make_pass_gen_hsail): Declare.
25085 (make_pass_ipa_hsa): Likewise.
25086 * ipa-hsa.c: New file.
25087 * lto-section-in.c (lto_section_name): Add hsa section name.
25088 * lto-streamer.h (lto_section_type): Add hsa section.
25089 * timevar.def (TV_IPA_HSA): New.
25090 * hsa-brig-format.h: New file.
25091 * hsa-brig.c: New file.
25092 * hsa-dump.c: Likewise.
25093 * hsa-gen.c: Likewise.
25094 * hsa.c: Likewise.
25095 * hsa.h: Likewise.
25096 * toplev.c (compile_file): Call hsa_output_brig.
25097 * hsa-regalloc.c: New file.
25098
25099 2016-01-18 Jeff Law <law@redhat.com>
25100
25101 PR tree-optimization/69320
25102 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
25103 ranged object, do nothing if the RHS constant is not [0..1].
25104 (optimize_stmt): Comparing a boolean ranged object against a
25105 constant outside [0..1] results in a compile-time constant.
25106
25107 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
25108 test.
25109
25110 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
25111
25112 * doc/invoke.texi (Invoking GCC): Add new section to menu.
25113 (Option Summary): Update to reflect new section and moved options.
25114 (C++ Dialect Options): Move -fstats to new section.
25115 (Debugging Options): Move all dump, statistics, and other GCC
25116 developer options to new section. Rewrite section introduction
25117 and re-order remaining options to put the more basic ones first.
25118 (Optimization Options): Move -fira-verbose and -flto-report* to
25119 new section.
25120 (Developer Options): New section incorporating moved options.
25121 * doc/cppopts.texi (-dM): Update cross-reference.
25122
25123 2016-01-18 Richard Henderson <rth@redhat.com>
25124
25125 PR target/69176
25126 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
25127 operands to pseudo only if CSE is expected. Split long immediate
25128 operands only after reload, and for the stack pointer.
25129 (*add<GPI>3_pluslong): Remove.
25130 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
25131 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
25132 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
25133 (*add<GPI>3 peepholes): New.
25134 (*add<GPI>3 splitters): New.
25135 * config/aarch64/constraints.md (Upl): New.
25136 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
25137
25138 2016-01-18 Richard Biener <rguenther@suse.de>
25139
25140 PR tree-optimization/69297
25141 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
25142 stmt at most once.
25143 (vect_bb_vectorization_profitable_p): Clear visited flag again.
25144
25145 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
25146
25147 PR middle-end/68542
25148 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
25149 of mixind vector and scalar types.
25150 (fold_relational_const): Add handling of vector
25151 comparison with boolean result.
25152 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
25153 comparison of vector operands with boolean result for EQ/NE only.
25154 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
25155 (verify_gimple_cond): Likewise.
25156 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
25157 valid type of VAL.
25158
25159 2016-01-18 Joseph Myers <joseph@codesourcery.com>
25160
25161 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
25162 !TARGET_OCTEON.
25163
25164 2016-01-18 Richard Biener <rguenther@suse.de>
25165
25166 PR middle-end/69308
25167 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
25168
25169 2016-01-18 Tom de Vries <tom@codesourcery.com>
25170
25171 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
25172
25173 2016-01-18 Tom de Vries <tom@codesourcery.com>
25174
25175 * omp-low.c (set_oacc_fn_attrib): Make extern.
25176 * omp-low.h (set_oacc_fn_attrib): Declare.
25177 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
25178 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
25179 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
25180 Add and handle function parameter oacc_kernels_p.
25181 (find_reduc_addr, get_omp_data_i_param): New function.
25182 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
25183 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
25184 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
25185 Calculate dominance info. Skip loops that are not in a kernels region
25186 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
25187 (pass_parallelize_loops::execute): Call parallelize_loops with
25188 oacc_kernels_p argument.
25189 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
25190 New member function.
25191 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
25192 * passes.def: Add argument to pass_parallelize_loops instantation.
25193
25194 2016-01-18 Tom de Vries <tom@codesourcery.com>
25195
25196 * tree-parloops.c (pass_parallelize_loops::execute): Allow
25197 pass_parallelize_loops to be run outside the loop pipeline.
25198
25199 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25200
25201 * tree-scalar-evolution.c (follow_copies_to_constant): New.
25202 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
25203
25204 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25205
25206 PR target/63679
25207 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
25208 using get_ref_base_and_extent.
25209 (equal_mem_array_ref_p): New.
25210 (hashable_expr_equal_p): Add call to previous.
25211
25212 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25213
25214 PR target/63679
25215 * tree-sra.c (disqualified_constants, constant_decl_p): New.
25216 (sra_initialize): Allocate disqualified_constants.
25217 (sra_deinitialize): Free disqualified_constants.
25218 (disqualify_candidate): Update disqualified_constants when appropriate.
25219 (create_access): Scan for constant-pool entries as we go along.
25220 (scalarizable_type_p): Add check against type_contains_placeholder_p.
25221 (maybe_add_sra_candidate): Allow constant-pool entries.
25222 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
25223 (initialize_constant_pool_replacements): New.
25224 (sra_modify_assign): Avoid mangling assignments created by previous,
25225 and don't generate writes into constant pool.
25226 (sra_modify_function_body): Call initialize_constant_pool_replacements.
25227
25228 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25229
25230 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
25231 andnot instruction.
25232 (scalar_chain::convert_op): Likewise.
25233 * config/i386/i386.md (*andndi3_doubleword): New.
25234
25235 2016-01-18 Richard Biener <rguenther@suse.de>
25236
25237 PR tree-optimization/69170
25238 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
25239 building a vector from scalar results of a pattern stmt.
25240
25241 2016-01-18 Jakub Jelinek <jakub@redhat.com>
25242
25243 * haifa-sched.c (autopref_multipass_init): Work around
25244 -Wmaybe-uninitialized warning.
25245
25246 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
25247
25248 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
25249 against the constant 0.
25250
25251 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25252
25253 PR tree-optimization/68799
25254 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
25255 look up phi candidates in the statement-candidate map.
25256 (phi_add_costs): Likewise.
25257 (record_phi_increments): Likewise.
25258 (phi_incr_cost): Likewise.
25259 (ncd_with_phi): Likewise.
25260 (all_phi_incrs_profitable): Likewise.
25261
25262 2016-01-17 Jakub Jelinek <jakub@redhat.com>
25263
25264 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
25265 -Wmaybe-uninitialized warning.
25266
25267 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
25268
25269 * doc/invoke.texi (Invoking GCC): Add new section to menu.
25270 (Option Summary): Update to reflect new section and moved options.
25271 (C++ Dialect Options): Move -fvtable-verify and related options.
25272 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
25273 and profiling-related options.
25274 (Optimization Options): Move profile generation options and
25275 -fstack-protector and related options.
25276 (Instrumentation Options): New section incorporating moved options.
25277 (Code Generation Options): Move -finstrument-functions and
25278 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
25279
25280 2016-01-16 Tom de Vries <tom@codesourcery.com>
25281
25282 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
25283
25284 2016-01-16 Tom de Vries <tom@codesourcery.com>
25285
25286 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
25287
25288 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
25289
25290 * hash-table.h (hash_table::empty): Turn into an inline wrapper
25291 that checks whether the table is already empty. Rename the
25292 original implementation to...
25293 (hash_table::empty_slot): ...this new private function.
25294
25295 2016-01-15 David Malcolm <dmalcolm@redhat.com>
25296
25297 PR diagnostic/68899
25298 * diagnostic-show-locus.c (layout::print_source_line): Move x
25299 offset of line until after call to
25300 get_line_width_without_trailing_whitespace.
25301
25302 2016-01-15 Jeff Law <law@redhat.com>
25303
25304 PR tree-optimization/69270
25305 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
25306 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
25307 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
25308 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
25309 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25310 ssa_name_has_boolean_range and constant_boolean_node.
25311
25312 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
25313
25314 PR rtl-optimization/69030
25315 * lra-spills.c (remove_pseudos): Check nrefs and make the function
25316 returning bool.
25317 (spill_pseudos): Delete debug insn for dead pseudo.
25318 (lra_spill): Initiate spill_hard_reg and slots memory separately.
25319
25320 2016-01-15 Jiong Wang <jiong.wang@arm.com>
25321
25322 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
25323 New.
25324 (TYPES_UNOPUS): Likewise.
25325 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
25326 builtin type, from UNOP to UNOPUS.
25327 (lbtruncuv4sf): Likewise.
25328 (lbtruncuv2df): Likewise.
25329 (lrounduv2sf): Likewise.
25330 (lrounduv4sf): Likewise.
25331 (lrounduv2df): Likewise.
25332 (lroundusf): Likewise.
25333 (lroundusf): Likewise.
25334 (lceiluv2sf): Likewise.
25335 (lceiluv4sf): Likewise.
25336 (lceiluv2df): Likewise.
25337 (lceilusf): Likewise.
25338 (lceiludf): Likewise.
25339 (lflooruv2sf): Likewise.
25340 (lflooruv4sf): Likewise.
25341 (lflooruv2df): Likewise.
25342 (lfloorusf): Likewise.
25343 (lfloorudf): Likewise.
25344 (lfrintnuv2sf): Likewise.
25345 (lfrintnuv4sf): Likewise.
25346 (lfrintnuv2df): Likewise.
25347 (lfrintnusf): Likewise.
25348 (lfrintnudf): Likewise.
25349 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
25350 conversion.
25351 (vcvtq_u32_f32): Likewise.
25352 (vcvtq_u64_f64): Likewise.
25353 (vcvta_u32_f32): Likewise.
25354 (vcvtaq_u32_f32): Likewise.
25355 (vcvtaq_u64_f64): Likewise.
25356 (vcvtm_u32_f32): Likewise.
25357 (vcvtmq_u32_f32): Likewise.
25358 (vcvtmq_u64_f64): Likewise.
25359 (vcvtn_u32_f32): Likwise.
25360 (vcvtnq_u32_f32): Likewise.
25361 (vcvtnq_u64_f64): Likewise.
25362 (vcvtp_u32_f32): Likewise.
25363 (vcvtpq_u32_f32): Likewise.
25364 (vcvtpq_u64_f64): Likewise.
25365 (vcvtmd_u64_f64): Likewise.
25366 (vcvtms_u32_f32): Likewise.
25367 (vcvtad_u64_f64): Likewise.
25368 (vcvtas_u32_f32): Likewise.
25369 (vcvtnd_u64_f64): Likewise.
25370 (vcvtns_u32_f32): Likewise.
25371 (vcvtpd_u64_f64): Likewise.
25372 (vcvtps_u32_f32): Likewise.
25373
25374 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25375
25376 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
25377 CSEL of zero_extended registers.
25378
25379 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25380
25381 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25382 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
25383
25384 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25385
25386 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
25387 false when argument string is not found in the attributes table
25388 at all.
25389
25390 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
25391
25392 PR target/68609
25393 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
25394 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
25395 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
25396 precision estimate.
25397
25398 2016-01-15 Richard Biener <rguenther@suse.de>
25399
25400 PR tree-optimization/66856
25401 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
25402 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
25403 (vect_create_new_slp_node): Increment stmt reference count.
25404 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
25405 an SLP tree before swapping operands.
25406 (vect_build_slp_tree): Likewise.
25407 (destroy_bb_vec_info): Free stmt info after SLP instances.
25408 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
25409 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
25410 (STMT_VINFO_NUM_SLP_USES): New macro.
25411
25412 2016-01-15 Richard Biener <rguenther@suse.de>
25413
25414 PR debug/69137
25415 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
25416 (add_linkage_name): ... here.
25417 (gen_typedef_die): Use add_linkage_name_raw instead of
25418 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
25419 if necessary.
25420
25421 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
25422
25423 * gimplify.c (oacc_default_clause): Decode reference and pointer
25424 types for both kernels and parallel regions.
25425
25426 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
25427
25428 PR middle-end/69246
25429 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
25430
25431 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
25432
25433 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
25434 (convert_scalars_to_vector): Likewise.
25435
25436 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
25437
25438 * doc/extend.texi (Type Traits): Fix grammar.
25439
25440 2016-01-15 Martin Jambor <mjambor@suse.cz>
25441
25442 * tree-inline.c (remap_decl): Use existing dclarations if
25443 remapping a type and prevent_decl_creation_for_types.
25444 (replace_locals_stmt): Do an initial remapping of non-VLA typed
25445 decls first. Do real remapping with
25446 prevent_decl_creation_for_types set.
25447 * tree-inline.h (copy_body_data): New field
25448 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
25449 padding.
25450
25451 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
25452
25453 * config/s390/s390.opt (mmvcle): More verbose help text.
25454
25455 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
25456
25457 * config/s390/s390.opt: Add period to -mzvector option text.
25458
25459 2016-01-15 Richard Biener <rguenther@suse.de>
25460
25461 PR tree-optimization/68961
25462 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
25463 of invariants in stores again.
25464
25465 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25466
25467 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
25468
25469 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
25470
25471 * config/i386/i386.c (ix86_expand_branch): Don't split
25472 DI mode xor instruction to SI mode.
25473
25474 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
25475
25476 PR ipa/68148
25477 * ipa-icf.c (sem_function::merge): Virtual functions may become
25478 reachable even if they address is not taken and there are no
25479 idrect calls.
25480
25481 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
25482
25483 * lto-streamer-out.c (subtract_estimated_size): New function.
25484 (get_symbol_initial_value): Use it.
25485
25486 2016-01-15 Christian Bruel <christian.bruel@st.com>
25487
25488 PR target/65837
25489 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
25490 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
25491 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
25492 use add_builtin_function_ext_scope instead of add_builtin_function.
25493 (neon_set_p, neon_crypto_set_p): Remove.
25494 (arm_init_builtins): Always call arm_init_neon_builtins and
25495 arm_init_crypto_builtins.
25496 (arm_expand_builtin): Check that builtins are allowed for the arch.
25497 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
25498 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
25499 arm_init_neon_builtins call.
25500
25501 2016-01-15 Richard Biener <rguenther@suse.de>
25502
25503 PR tree-optimization/69117
25504 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
25505 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
25506 of the leader conservatively.
25507 (free_scc_vn): Restore original SSA name infos.
25508
25509 2016-01-14 Jeff Law <law@redhat.com>
25510
25511 PR tree-optimization/69270
25512 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
25513 single bit of precision, verify it's also unsigned.
25514 (record_edge_info): Use constant_boolean_node rather than fold_convert
25515 to convert boolean_true/boolean_false to the right type.
25516
25517 2016-01-14 Richard Henderson <rth@redhat.com>
25518
25519 PR rtl-opt/69014
25520 * loop-doloop.c (record_reg_sets): New.
25521 (doloop_optimize): Reject the transform if the sequence
25522 clobbers registers live at the end of the loop block.
25523 (doloop_optimize_loops): Enable df_live if needed.
25524
25525 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25526
25527 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
25528 * config/rs6000/rs6000.c: Likewise.
25529 * config/rs6000/rs6000.h: Likewise.
25530 * config/rs6000/rs6000.md: Likewise.
25531 * doc/extend.texi: Likewsie.
25532
25533 2016-01-14 Jeff Law <law@redhat.com>
25534
25535 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
25536 typo.
25537
25538 2016-01-14 Richard Henderson <rth@redhat.com>
25539
25540 PR c/69272
25541 PR tree-opt/68964
25542 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
25543 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
25544 instead of builtin_decl_declared_p to test for declaration.
25545
25546 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
25547
25548 * doc/loop.texi (Loop Analysis and Representation): Document
25549 loop_depth function.
25550
25551 2016-01-14 Tom de Vries <tom@codesourcery.com>
25552
25553 PR tree-optimization/68773
25554 * omp-low.c (expand_omp_target): Don't set force_output.
25555 * varpool.c (varpool_node::get_create): Same.
25556 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
25557 offload_funcs with force_output.
25558
25559 2016-01-14 Jakub Jelinek <jakub@redhat.com>
25560
25561 PR debug/69244
25562 * lra-eliminations.c (move_plus_up): Don't change anything if either
25563 the outer or inner subreg mode is not MODE_INT.
25564 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
25565 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
25566
25567 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
25568
25569 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
25570 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
25571 reduc_uplus_@var{m}): Remove.
25572 * expr.c (expand_expr_real_2): Remove expansion path for
25573 reduc_[us](min|max|plus) optabs.
25574 * optabs-tree.c (scalar_reduc_to_vector): Remove.
25575 * optabs-tree.h (scalar_reduc_to_vector): Remove.
25576 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
25577 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
25578 * tree-vect-loop.c (vectorizable_reduction): Remove test for
25579 reduc_[us](min|max|plus) optabs.
25580
25581 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
25582
25583 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
25584 (reduc_plus_scal_v2sf): New.
25585 (reduc_smax_v2sf): Rename to...
25586 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
25587 (reduc_smin_v2sf): Rename to...
25588 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
25589
25590 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
25591
25592 * alias.c (compare_base_symbol_refs): New function.
25593 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
25594 it.
25595
25596 2016-01-14 Jakub Jelinek <jakub@redhat.com>
25597
25598 PR middle-end/68146
25599 PR tree-optimization/69155
25600 * tree-complex.c: Include cfganal.h.
25601 (phis_to_revisit): New variable.
25602 (extract_component): Add phiarg_p argument. Assert that returned
25603 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
25604 (update_phi_components): Partly rewrite to use loop over real/imag
25605 components instead of code duplication. If extract_component returns
25606 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
25607 create_tmp_reg into the PHI node instead, and mention the phi triplet
25608 in phis_to_revisit.
25609 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
25610 in phis_to_revisit at the end.
25611
25612 2016-01-14 Richard Biener <rguenther@suse.de>
25613
25614 PR tree-optimization/68060
25615 * tree-vect-loop.c (vect_is_simple_reduction): Check the
25616 outer loop reduction is only used in the inner loop before
25617 detecting a double reduction.
25618
25619 2016-01-14 Jakub Jelinek <jakub@redhat.com>
25620
25621 PR target/68269
25622 * combine.c (expand_field_assignment): Punt if compute_mode is
25623 unsupported scalar mode.
25624
25625 2016-01-14 Richard Biener <rguenther@suse.de>
25626
25627 PR tree-optimization/66856
25628 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
25629 SLP node only if it built successfully.
25630 (vect_analyze_slp_instance): Adjust.
25631
25632 2016-01-14 Jeff Law <law@redhat.com>
25633
25634 PR tree-optimization/69270
25635 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
25636 (record_edge_info): Use it. Convert boolean_{true,false}_node
25637 to the type of op0.
25638
25639 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
25640
25641 PR ipa/66487
25642 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
25643 use block_ultimate_origin
25644 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
25645
25646 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
25647
25648 * doc/invoke.texi (Submodel Options): Rename section to
25649 "Machine-Dependent Options" to better reflect its content.
25650 Rewrite introductory text to remove archaic CPU names.
25651 Update references.
25652
25653 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
25654
25655 * doc/invoke.texi (Code Gen Options): Move section up in file,
25656 before target-specific options. Update menu and option summary
25657 to reflect the new section ordering.
25658
25659 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
25660
25661 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
25662 (C++ Dialect Options): Add cross-reference to -std option.
25663 * doc/standards.texi (C++ Language): Document C++14 support.
25664
25665 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
25666
25667 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
25668 for pack/unpack functions for __ibm128.
25669 (PACK_IF): Likewise.
25670 (UNPACK_IF): Likewise.
25671
25672 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
25673 support for __ibm128 pack/unpack functions.
25674 (rs6000_invalid_builtin): Likewise.
25675 (rs6000_init_builtins): Likewise.
25676 (rs6000_opt_masks): Likewise.
25677
25678 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
25679 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
25680 functions
25681 (RS6000_BTM_COMMON): Likewise.
25682
25683 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
25684 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
25685 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
25686 128-bit floating point. Add support for the double values to be
25687 in Altivec registers for TF/IF packing and unpacking, but restrict
25688 TD packing sub-fields to be FPR registers. Don't allow overlapped
25689 register support for packing. Allow pack inputs to be memory
25690 locations. Don't build generator functions for unpack<mode>_dm
25691 and unpack<mode>_nodm.
25692 (unpack<mode>_dm): Likewise.
25693 (unpack<mode>_nodm): Likewise.
25694 (pack<mode>): Likewise.
25695
25696 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
25697 built-in functions to pack/unpack explicit __ibm128 values.
25698 (__builtin_unpack_ibm128): Likewise.
25699
25700 * doc/extend.texi (PowerPC Built-in Functions): Document
25701 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
25702
25703 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
25704
25705 PR c/66208
25706 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
25707 Add new arg loc and pass it down as context.
25708 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
25709 to the location to use for the warning.
25710 (check_function_arguments): New arg loc. All callers changed. Pass
25711 it to check_function_nonnull.
25712 * c-common.h (check_function_arguments): Adjust declaration.
25713
25714 2016-01-13 Jakub Jelinek <jakub@redhat.com>
25715
25716 PR tree-optimization/69156
25717 * gimple.c (validate_type): Removed.
25718 (gimple_builtin_call_types_compatible_p): Use
25719 useless_type_conversion_p instead of validate_type.
25720 * value-prof.c (gimple_stringop_fixed_value): Fold
25721 icall_size to correct type.
25722
25723 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
25724
25725 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
25726 effects.
25727
25728 2016-01-13 Richard Henderson <rth@redhat.com>
25729
25730 PR tree-opt/68964
25731 * target.def (builtin_tm_load, builtin_tm_store): Remove.
25732 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
25733 (ix86_builtin_tm_store): Remove.
25734 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25735 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25736 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25737 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25738 * doc/tm.texi: Rebuild.
25739
25740 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
25741 (BUILT_IN_TM_MEMCPY_RTWN): New.
25742 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
25743 fallback from vector to integer helpers.
25744 (build_tm_load): Handle vector types directly, instead of
25745 via target hook.
25746 (build_tm_store): Likewise.
25747 (expand_assign_tm): Prepare for register types not handled by
25748 the above. Copy them to memory and use memcpy.
25749 * tree.c (tm_define_builtin): New.
25750 (find_tm_vector_type): New.
25751 (build_tm_vector_builtins): New.
25752 (build_common_builtin_nodes): Call it.
25753
25754 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
25755
25756 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
25757 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
25758
25759 2016-01-13 Tom de Vries <tom@codesourcery.com>
25760
25761 PR tree-optimization/69169
25762 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
25763 handled_struct_type param.
25764 (create_variable_info_for, intra_create_variable_infos): Call
25765 create_variable_info_for_1 with extra arg.
25766
25767 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
25768
25769 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
25770 and "armv8.1-a+crc" entries.
25771
25772 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
25773
25774 PR target/69228
25775 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
25776 Change first operand predicate from register_or_constm1_operand
25777 to register_operand.
25778 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
25779 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
25780 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
25781 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
25782 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
25783 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
25784 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
25785 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
25786 comparison with constm1_rtx from vec_prefetch_gen part.
25787
25788 2016-01-13 Richard Biener <rguenther@suse.de>
25789
25790 PR tree-optimization/69013
25791 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
25792 Exchange assert for a test.
25793
25794 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25795
25796 PR target/69247
25797 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
25798
25799 2016-01-13 Richard Biener <rguenther@suse.de>
25800
25801 PR tree-optimization/69242
25802 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
25803 assert with a check.
25804
25805 2016-01-13 Richard Biener <rguenther@suse.de>
25806
25807 PR tree-optimization/69186
25808 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25809 Properly guard vect_update_misalignment_for_peel call.
25810
25811 2016-01-12 Jeff Law <law@redhat.com>
25812
25813 PR tree-optimization/pr67755
25814 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
25815 "need_profile_correction".
25816 (thread_block_1): Initialize new field to false by default. If we
25817 have multiple thread paths through a common joiner to different
25818 final targets, then set new field to true.
25819 (compute_path_counts): Only do count adjustment when it's really
25820 needed.
25821
25822 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
25823
25824 * doc/invoke.texi (Spec Files): Move section down in file, past
25825 all command-line option descriptions.
25826
25827 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25828
25829 PR middle-end/54809
25830 * doc/gty.texi: Remove documentation of mark_hook.
25831 * gengtype.c (struct write_types_data): Remove code to support
25832 mark_hook attribute.
25833 (walk_type): Likewise.
25834 (write_func_for_structure): Likewise.
25835
25836 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
25837
25838 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
25839 Directory Options, and -specs= to Overall Options.
25840 (Overall Options): Adjust similarly. Reorder to group related
25841 options together. Make -specs= cross-reference the spec file details.
25842 (Directory Options): Adjust similarly.
25843
25844 2016-01-12 Jeff Law <law@redhat.com>
25845
25846 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
25847
25848 2016-01-12 Olivier Hainque <hainque@adacore.com>
25849
25850 * gcc.c (spec_undefvar_allowed): New global.
25851 (process_command): Set to true when running for --version or --help,
25852 alone or together.
25853 (getenv_spec_function): When the variable is not defined, use the
25854 variable name as the variable value if we're allowed not to issue
25855 a fatal error.
25856
25857 2016-01-12 Bin Cheng <bin.cheng@arm.com>
25858
25859 PR tree-optimization/68911
25860 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
25861 information computed for expression "init + nit * step".
25862
25863 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
25864
25865 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
25866 about name of GCC executable. Remove deleted node from menu.
25867 (Directory Options) <-B>: Remove cross-reference to deleted node.
25868 (Target Options): Delete section.
25869
25870 2016-01-12 Christian Bruel <christian.bruel@st.com>
25871
25872 PR target/69180
25873 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
25874 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
25875
25876 2016-01-12 Jakub Jelinek <jakub@redhat.com>
25877
25878 PR target/69198
25879 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
25880 aligned_mem is properly set for AVX512-VL floating point masked
25881 stores.
25882
25883 PR target/69175
25884 * ifcvt.c (cond_exec_process_if_block): When removing the last
25885 insn from then_bb, remove also any possible barriers that follow it.
25886
25887 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
25888
25889 PR target/68456
25890 PR target/69226
25891 * config/i386/iamcu.h (SIZE_TYPE): New macro.
25892 (PTRDIFF_TYPE): Likewise.
25893 (WCHAR_TYPE): Likewise.
25894 (WCHAR_TYPE_SIZE): Likewise.
25895 (STDINT_LONG32): Likewise.
25896
25897 2016-01-12 Richard Biener <rguenther@suse.de>
25898
25899 PR tree-optimization/69053
25900 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
25901 convert initial value for cond reductions.
25902
25903 2016-01-12 Richard Biener <rguenther@suse.de>
25904
25905 PR tree-optimization/69007
25906 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
25907 widen_sum after dot_prod and sad.
25908
25909 2016-01-12 Richard Biener <rguenther@suse.de>
25910
25911 PR tree-optimization/69168
25912 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
25913 pattern stmt SLP type.
25914 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
25915 end up unused so cope with that case.
25916
25917 2016-01-12 Richard Biener <rguenther@suse.de>
25918
25919 PR tree-optimization/69157
25920 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
25921 stmts def type only during analyze phase.
25922 (vectorizable_call): Likewise.
25923 (vectorizable_simd_clone_call): Likewise.
25924 (vectorizable_conversion): Likewise.
25925 (vectorizable_assignment): Likewise.
25926 (vectorizable_shift): Likewise.
25927 (vectorizable_operation): Likewise.
25928 (vectorizable_store): Likewise.
25929 (vectorizable_load): Likewise.
25930
25931 2016-01-12 Richard Biener <rguenther@suse.de>
25932
25933 PR tree-optimization/69174
25934 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
25935 space.
25936 (vectorizable_load): Properly compute the number of loads needed
25937 for permuted strided SLP loads and do not spuriously assign
25938 to SLP_TREE_VEC_STMTS.
25939
25940 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
25941
25942 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
25943 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
25944 (MD_EXEC_PREFIX): Remove.
25945 (MD_STARTFILE_PREFIX) Removee.
25946 (FILE_NAME_ABSOLUTE_P): Remove.
25947 (CPP_SPEC): Do not read macros from sys/version.h.
25948 (LINK_COMMAND_SPEC): Remove.
25949 (LOCAL_INCLUDE_DIR): Remove.
25950 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
25951 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
25952 (POST_LINK_SPEC): Define to invoke stubify after linker
25953 (LIBSTDCXX): Remove define
25954 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
25955 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
25956 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
25957 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
25958 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
25959 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
25960 (i386_djgpp_asm_named_section): Add propotype of new procedure
25961
25962 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
25963 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
25964 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
25965 in config/i386/djgpp.h).
25966 (STANDARD_STARTFILE_PREFIX_2): Define identical to
25967 STANDARD_STARTFILE_PREFIX_1.
25968 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
25969 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
25970 installation errors.
25971 (MAX_OFILE_ALIGNMENT): Define to 128.
25972 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
25973
25974 * config/i386/djgpp.c: New file. Add implementation of
25975 i386_djgpp_asm_named_section.
25976
25977 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
25978
25979 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
25980 Add rule for building djgpp.o.
25981
25982 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25983
25984 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
25985 (rtx_is_swappable_p): Reductions are swappable.
25986 (insn_is_swappable_p): V2DF reductions are swappable.
25987
25988 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
25989
25990 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
25991 reloads for other unsupported memory operands.
25992
25993 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
25994 Jim Wilson <jim.wilson@linaro.org>
25995
25996 PR target/69194
25997 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
25998 copy_to_mode_reg instead of force_reg.
25999
26000 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
26001
26002 PR target/69225
26003 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
26004 TARGET_80387 is true.
26005
26006 2016-01-11 Jakub Jelinek <jakub@redhat.com>
26007
26008 PR target/69071
26009 * lra-eliminations.c (move_plus_up): Only move plus up
26010 if subreg of the constant can be simplified into constant
26011 and use the simplified subreg of the constant instead of
26012 the original constant.
26013
26014 * fold-const.c (fold_convertible_p): Don't return true
26015 for conversion of VECTOR_TYPE to same sized integral type.
26016 (fold_convert_loc): Fix up formatting. Fold conversion of
26017 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
26018 instead of NOP_EXPR.
26019
26020 PR tree-optimization/69214
26021 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
26022 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26023 Formatting fix.
26024
26025 PR tree-optimization/69207
26026 * tree-vect-slp.c (vect_get_constant_vectors): For
26027 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
26028 fold_convertible_p to vector_type's element type, and always
26029 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
26030
26031 2016-01-11 Richard Biener <rguenther@suse.de>
26032
26033 PR tree-optimization/69173
26034 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
26035 fixup the cycle if all stmts are in a pattern.
26036
26037 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
26038
26039 PR middle-end/68999
26040 * alias.c (base_alias_check): Move check for addresses with
26041 alignment ANDs before the call for compare_base_decls.
26042 (memrefs_conflict_p): Return -1 for different decls
26043 that went through alignment adjustments.
26044
26045 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26046
26047 PR rtl-optimization/68796
26048 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
26049 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
26050 and QImode comparisons against zero with CC_NZmode.
26051 * config/aarch64/iterators.md (short_mask): New mode_attr.
26052
26053 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
26054
26055 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
26056 (<avx512>_store<mode>_mask): Likewise.
26057
26058 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
26059 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26060
26061 PR rtl-optimization/68841
26062 * ifcvt.c (struct noce_if_info): Add orig_x field.
26063 (bbs_ok_for_cmove_arith): Add to_rename parameter.
26064 Don't record conflicts on to_rename if it's present.
26065 Allow memory destinations in sets.
26066 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
26067 blocks, passing orig_x to the checks.
26068 (noce_process_if_block): Set if_info->orig_x appropriately.
26069
26070 2016-01-11 Tom de Vries <tom@codesourcery.com>
26071
26072 PR tree-optimization/69069
26073 * tree-parloops.c (create_parallel_loop): Add missing phi args.
26074
26075 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
26076
26077 PR rtl-optimization/68920
26078 * config/i386/i386.c (ix86_option_override_internal): Restrict number
26079 of conditional moves for RTL if-conversion to 1 for
26080 TARGET_ONE_IF_CONV_INSN.
26081 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
26082 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
26083 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
26084 parameter to restirct number of conditional moves for
26085 RTL if-conversion.
26086 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
26087 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
26088 conditionl moves.
26089
26090 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
26091
26092 PR bootstrap/69123
26093 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
26094 onepart vars. Fix typo in comment. Fix reversed condition in
26095 unshare test.
26096 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
26097
26098 PR bootstrap/69123
26099 * var-tracking.c (dump_onepart_variable_differences): New.
26100 (dataflow_set_different): If a detailed dump is requested,
26101 delay early returns and dump differences between onepart
26102 variables present before and after, and added variables.
26103
26104 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
26105
26106 PR target/69010
26107 * expr.c (expand_expr_real_1): For boolean vector constants
26108 with a scalar mode use const_scalar_mask_from_tree.
26109 (const_scalar_mask_from_tree): New.
26110 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
26111 assigned to a mask type to handle constants.
26112
26113 2016-01-11 Martin Jambor <mjambor@suse.cz>
26114
26115 PR ipa/69044
26116 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
26117 useless parameters if we cannot change function signature.
26118
26119 2016-01-11 Martin Jambor <mjambor@suse.cz>
26120
26121 PR ipa/66616
26122 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
26123 flag.
26124
26125 2016-01-11 Tom de Vries <tom@codesourcery.com>
26126
26127 PR tree-optimization/69109
26128 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
26129 latch with phi.
26130
26131 2016-01-11 Tom de Vries <tom@codesourcery.com>
26132
26133 PR tree-optimization/69108
26134 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
26135 res is not used in a phi.
26136
26137 2016-01-11 Yury Gribov <y.gribov@samsung.com>
26138
26139 PR 67425
26140 * common.opt (frandom-seed): Fix parameter name.
26141 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
26142
26143 2016-01-11 Tom de Vries <tom@codesourcery.com>
26144
26145 PR tree-optimization/69058
26146 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
26147 not supported.
26148
26149 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
26150
26151 * config/arc/arc.opt (mdiv-rem): Add period to the end.
26152 (mcode-density): Likewise.
26153
26154 2016-01-10 Tom de Vries <tom@codesourcery.com>
26155
26156 PR tree-optimization/69062
26157 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
26158 (parallelize_loops): Don't paralelize loop that has phi with address
26159 arg.
26160
26161 2016-01-10 Tom de Vries <tom@codesourcery.com>
26162
26163 PR tree-optimization/69039
26164 * tree-parloops.c (try_create_reduction_list): Only allow single exit
26165 phi for reduction.
26166
26167 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
26168
26169 PR middle-end/68743
26170 * match.pd: Require target has function_c99_misc before doing
26171 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
26172
26173 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
26174
26175 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
26176 use GMPINC.
26177 * configure: Regenerate.
26178
26179 2016-01-09 Jakub Jelinek <jakub@redhat.com>
26180
26181 PR middle-end/50865
26182 PR tree-optimization/69097
26183 * fold-const.h (expr_not_equal_to): New prototype.
26184 * fold-const.c: Include stringpool.h and tree-ssanames.h.
26185 (expr_not_equal_to): New function.
26186 * match.pd (X % -Y is the same as X % Y): Don't optimize
26187 unless X is known not to be equal to minimum or Y is known
26188 not to be equal to -1.
26189 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
26190 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
26191 (simplify_stmt_using_ranges): Adjust caller.
26192 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
26193 substitute_and_fold.
26194
26195 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
26196
26197 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
26198 w/o DECL_NAME.
26199
26200 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26201
26202 PR tree-optimization/69167
26203 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
26204 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
26205 ops[0] comparison.
26206 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
26207
26208 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26209 Richard Biener <rguenther@suse.de>
26210
26211 PR tree-optimization/68707
26212 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
26213 instances that can be handled via vect_load_lanes.
26214
26215 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
26216
26217 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
26218 if we can't determine address equivalence.
26219 * alias.c (compare_base_decl): Update for changed return value of
26220 symtab_node::equal_address_to.
26221
26222 2016-01-08 Jason Merrill <jason@redhat.com>
26223
26224 PR c++/68983
26225 PR c++/67557
26226 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
26227 * expr.c (store_field): Not here.
26228 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
26229 call with TREE_ADDRESSABLE type.
26230 * tree-cfg.c (verify_gimple_call): Adjust.
26231
26232 2016-01-08 Olivier Hainque <hainque@adacore.com>
26233
26234 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
26235 libc_internal.
26236
26237 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26238
26239 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
26240 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
26241 (reduc_smin_v2sf): Rename to...
26242 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
26243 (reduc_splus_v2sf): Rename to...
26244 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
26245
26246 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26247
26248 PR tree-optimization/69162
26249 * gimplify.c (gimplify_va_arg_expr): Encode original type of
26250 valist argument in another argument.
26251 (gimplify_modify_expr): Adjust for the above change. Cleanup.
26252 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
26253 to determine the va_list type, build a MEM_REF instead of
26254 build_fold_indirect_ref.
26255
26256 PR tree-optimization/69172
26257 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
26258 gimple_build.
26259
26260 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
26261
26262 PR tree-optimization/67781
26263 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
26264 and cmpnop in two steps: first the ones not accessed in original
26265 gimple expression in a endian independent way and then the ones not
26266 accessed in the final result in an endian-specific way.
26267
26268 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26269
26270 PR tree-optimization/69083
26271 * tree-vect-slp.c (vect_get_constant_vectors): For
26272 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
26273 element type. If op is fold_convertible_p to vector_type's element
26274 type, use NOP_EXPR instead of VCE.
26275
26276 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
26277
26278 PR rtl-optimization/67778
26279 PR rtl-optimization/68634
26280 PR rtl-optimization/68909
26281 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
26282 block from the stack until done with it. Remove a superfluous
26283 bitmap set. Remove a superfluous bitmap test.
26284
26285 2016-01-07 Martin Sebor <msebor@redhat.com>
26286
26287 PR c/68966
26288 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
26289 constraint on the type of arguments.
26290
26291 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
26292
26293 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
26294 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
26295 unaligned_access on the gcc_options set.
26296 * config/arm/arm.c (arm_option_override_internal): Use
26297 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
26298
26299 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26300
26301 PR target/69140
26302 * config/i386/i386.c (ix86_frame_pointer_required): Enable
26303 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
26304
26305 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26306
26307 Revert
26308 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
26309
26310 PR target/69140
26311 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26312 depending on frame_pointer_needed before remaining integer and SSE
26313 registers are saved.
26314
26315 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
26316
26317 PR 1078
26318 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
26319
26320 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
26321
26322 PR target/69171
26323 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
26324 Use the "xBm" constraint.
26325 (float<sseintvecmodelower><mode>2<mask_name><round_name):
26326 Likewise.
26327 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
26328 (sse_cvtsi2ssq<round_name>): Likewise.
26329 (sse_cvtss2si<round_name>): Likewise.
26330 (sse_cvtss2siq<round_name>): Likewise.
26331 (sse2_cvtsi2sdq<round_name>): Likewise.
26332 (sse2_cvtsd2si<round_name>): Likewise.
26333 (sse2_cvtsd2siq<round_name>): Likewise.
26334 * config/i386/subst.md (round_nimm_scalar_predicate): New
26335 predicate.
26336
26337 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
26338
26339 PR middle-end/67639
26340 * varasm.c (make_decl_rtl): Mark invalid register vars as
26341 DECL_EXTERNAL.
26342
26343 PR rtl-optimization/66206
26344 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
26345 All callers changed.
26346
26347 2016-01-07 Jakub Jelinek <jakub@redhat.com>
26348
26349 PR tree-optimization/69141
26350 * tree-ssa-pre.c: Include langhooks.h.
26351 (eliminate_dom_walker::before_dom_children): Use
26352 lang_hooks.decl_printable_name instead of
26353 cgraph_node::get ()->name ().
26354
26355 PR middle-end/68960
26356 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
26357 it and DECL_ALIGN too.
26358
26359 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
26360
26361 * config/mips/mips-ftypes.def: Sort to lexicographical order.
26362
26363 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
26364
26365 PR target/69140
26366 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26367 depending on frame_pointer_needed before remaining integer and SSE
26368 registers are saved.
26369
26370 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26371
26372 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
26373 mode iterator with VSX_M2.
26374 (*p9_vecstore_<mode>): Likewise.
26375 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
26376 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
26377 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
26378 (define_split for VSX_LE128 stores): Likewise.
26379 (define_peephole2 for TImode LE swaps): Likewise.
26380 (define_split for VSX_LE128 post-reload stores): Likewise.
26381
26382 2016-01-06 Marek Polacek <polacek@redhat.com>
26383
26384 PR sanitizer/69099
26385 * convert.c (convert_to_integer_1): Adjust call to
26386 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
26387 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
26388 EXPR instead of ARG.
26389 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
26390
26391 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
26392
26393 PR 1078
26394 * doc/extend.texi (RL78 Variable Attributes): New section.
26395
26396 2016-01-05 Marek Polacek <polacek@redhat.com>
26397
26398 PR c/69104
26399 * builtins.c (get_memmodel): Use expansion point location rather than
26400 the input location. Call warning_at rather than warning.
26401 (expand_builtin_atomic_compare_exchange): Likewise.
26402 (expand_builtin_atomic_load): Likewise.
26403 (expand_builtin_atomic_store): Likewise.
26404 (expand_builtin_atomic_clear): Likewise.
26405
26406 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
26407
26408 PR target/68991
26409 * config/i386/i386.c (ix86_expand_vector_logical_operator):
26410 Replace nonimmediate_operand with vector_operand.
26411 * config/i386/predicates.md (vector_operand): New predicate.
26412 (general_vector_operand): Replace nonimmediate_operand with
26413 vector_operand.
26414 * config/i386/sse.md: Replace nonimmediate_operand with
26415 vector_operand and m constraint with Bm constraint on SSE
26416 patterns with 16-byte memory operand.
26417 * config/i386/subst.md (round_nimm_predicate): Replace
26418 nonimmediate_operand with vector_operand.
26419 (round_saeonly_nimm_predicate): Likewise.
26420 (round_saeonly_nimm_scalar_predicate): New.
26421
26422 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
26423
26424 PR target/68991
26425 * config/i386/constraints.md (Bm): New constraint.
26426 * config/i386/predicates.md (vector_memory_operand): New
26427 predicate.
26428 * config/i386/sse.md: Replace xm with xBm in plusminus and
26429 any_logic patterns.
26430
26431 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
26432
26433 PR 1078
26434 * doc/extend.texi (V850 Function Attributes): New section.
26435 (V850 Variable Attributes): New section.
26436
26437 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
26438
26439 PR 1078
26440 * doc/extend.texi (MicroBlaze Function Attributes): Document
26441 interrupt_handler and fast_interrupt attributes.
26442
26443 2016-01-05 Sergei Trofimovich <siarheit@google.com>
26444
26445 PR other/60465
26446 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
26447 for local symbolic operands.
26448 * config/ia64/predicates.md (local_symbolic_operand64): New
26449 predicate.
26450
26451 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26452
26453 PR rtl-optimization/68651
26454 * combine.c (combine_simplify_rtx): Canonicalize x + x into
26455 x << 1.
26456
26457 2016-01-05 Nathan Sidwell <nathan@acm.org>
26458
26459 * alias.c (compare_base_decls): Use symtab_node::get.
26460
26461 2016-01-05 Nick Clifton <nickc@redhat.com>
26462
26463 PR target/68770
26464 * ira-costs.c (copy_cost): Initialise the t_icode field of the
26465 secondary_reload_info structure.
26466
26467 PR target/66655
26468 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
26469 decls if weak support is available.
26470
26471 2016-01-04 Martin Sebor <msebor@redhat.com>
26472
26473 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
26474
26475 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
26476
26477 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
26478 OPTION_MASK_P9_DFORM.
26479
26480 * config/rs6000/constraints.md (wo constraint): New constraint for
26481 ISA 3.0 (power9).
26482
26483 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
26484 for wo constraint.
26485 (rs6000_init_hard_regno_mode_ok): Likewise.
26486
26487 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
26488 wo constraint.
26489
26490 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
26491 expanders not to have constraints. Add support for ISA 3.0 xxperm
26492 instruction. Add support for fusing xxlor with xxperm.
26493 (altivec_vperm_<mode>_internal): Likewise.
26494 (altivec_vperm_v8hiv16qi): Likewise.
26495 (altivec_vperm_<mode>v16q): Likewise.
26496 (altivec_vperm_<mode>_uns): Likewise.
26497 (vperm_v8hiv4si): Likewise.
26498 (vperm_v16qiv8hi): Likewise.
26499
26500 * doc/md.texi (RS/6000 constraints): Document wo constraint.
26501
26502 2016-01-04 Jakub Jelinek <jakub@redhat.com>
26503
26504 Update copyright years.
26505
26506 * gcc.c (process_command): Update copyright notice dates.
26507 * gcov-dump.c (print_version): Ditto.
26508 * gcov.c (print_version): Ditto.
26509 * gcov-tool.c (print_version): Ditto.
26510 * gengtype.c (create_file): Ditto.
26511 * doc/cpp.texi: Bump @copying's copyright year.
26512 * doc/cppinternals.texi: Ditto.
26513 * doc/gcc.texi: Ditto.
26514 * doc/gccint.texi: Ditto.
26515 * doc/gcov.texi: Ditto.
26516 * doc/install.texi: Ditto.
26517 * doc/invoke.texi: Ditto.
26518
26519 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
26520
26521 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
26522 modes larger than TImode as TImode if NEON is not enabled.
26523
26524 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
26525
26526 PR target/69100
26527 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
26528 mode for %f0-%f31 only if TARGET_FPU.
26529
26530 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
26531
26532 PR target/69072
26533 * config/sparc/sparc.c (scan_record_type): Take into account subfields
26534 to compute the PACKED_P predicate.
26535 (function_arg_record_value): Minor tweaks.
26536
26537 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
26538
26539 * doc/install.texi (--with-multilib-list): Describe the meaning of the
26540 option for arm*-*-* targets.
26541
26542 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
26543
26544 * doc/extend.texi (Common Function Attributes): Move docs for
26545 MSP430-specific attributes to....
26546 (MSP430 Function Attributes): ...here. Delete the redundant
26547 entries and copy-edit the remaining text.
26548 (MSP430 Variable Attributes): Use uniform format for index
26549 entries and add a cross-reference to the corresponding function
26550 attribute docs.
26551
26552 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
26553
26554 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
26555 -finite-math typo.
26556 (x86 Options): Likewise.
26557
26558 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
26559
26560 PR 1078
26561
26562 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
26563 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
26564 to corresponding attribute.
26565
26566 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
26567
26568 * doc/extend.texi (Common Function Attributes) <noplt>: Move
26569 to correct alphabetization of table. Copy-edit and correct
26570 markup.
26571 <stack_protect>: Likewise.
26572 <target_clones>: Likewise.
26573 <simd>: Likewise.
26574 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
26575 Correct punctuation.
26576 (Code Gen Options) <-fno-plt>: Copy-edit.
26577
26578 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
26579
26580 PR target/68917
26581 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
26582 SI values. Explicitly convert SI to DI and vice-versa.
26583
26584 2016-01-01 Jakub Jelinek <jakub@redhat.com>
26585
26586 PR tree-optimization/69070
26587 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
26588 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
26589
26590 PR sanitizer/69055
26591 * ubsan.c (ubsan_instrument_float_cast): Call
26592 initialize_sanitizer_builtins.
26593
26594 PR target/69015
26595 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
26596 \f
26597 Copyright (C) 2016 Free Software Foundation, Inc.
26598
26599 Copying and distribution of this file, with or without modification,
26600 are permitted in any medium without royalty provided the copyright
26601 notice and this notice are preserved.