]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
ARMv8-M Security Extension's cmse_nonsecure_call: use __gnu_cmse_nonsecure_call
[thirdparty/gcc.git] / gcc / ChangeLog
1 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2 Thomas Preud'homme <thomas.preudhomme@arm.com>
3
4 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
5 (cmse_nonsecure_call_clear_caller_saved): New.
6 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
7 (arm_function_ok_for_sibcall): Disable sibcalls for
8 cmse_nonsecure_call.
9 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
10 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
11 (call_value): Likewise.
12 (nonsecure_call_internal): New.
13 (nonsecure_call_value_internal): New.
14 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
15 (*nonsecure_call_value_reg_thumb1_v5): New.
16 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
17 (*nonsecure_call_value_reg_thumb2): New.
18 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
19
20 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
21 Thomas Preud'homme <thomas.preudhomme@arm.com>
22
23 * config/arm/arm.c (gimplify.h): New include.
24 (arm_handle_cmse_nonsecure_call): New.
25 (arm_attribute_table): Added cmse_nonsecure_call.
26 (arm_comp_type_attributes): Deny compatibility of function types
27 with without the cmse_nonsecure_call attribute.
28 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
29
30 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
31 Thomas Preud'homme <thomas.preudhomme@arm.com>
32
33 * config/arm/arm.c (output_return_instruction): Clear
34 registers.
35 (thumb2_expand_return): Likewise.
36 (thumb1_expand_epilogue): Likewise.
37 (thumb_exit): Likewise.
38 (arm_expand_epilogue): Likewise.
39 (cmse_nonsecure_entry_clear_before_return): New.
40 (comp_not_to_clear_mask_str_un): New.
41 (compute_not_to_clear_mask): New.
42 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
43 * config/arm/thumb2.md (*thumb2_return): Disable for
44 cmse_nonsecure_entry functions.
45 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
46 cmse_nonsecure_entry functions.
47
48 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
49 Thomas Preud'homme <thomas.preudhomme@arm.com>
50
51 * config/arm/arm.c (use_return_insn): Change to return with bxns
52 when cmse_nonsecure_entry.
53 (output_return_instruction): Likewise.
54 (arm_output_function_prologue): Likewise.
55 (thumb_pop): Likewise.
56 (thumb_exit): Likewise.
57 (thumb2_expand_return): Assert that entry functions always have simple
58 returns.
59 (arm_expand_epilogue): Handle entry functions.
60 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
61 (arm_asm_declare_function_name): New.
62 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
63 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
64 use arm_asm_declare_function_name.
65
66 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
67 Thomas Preud'homme <thomas.preudhomme@arm.com>
68
69 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
70 (arm_attribute_table): Added cmse_nonsecure_entry
71 (arm_compute_func_type): Handle cmse_nonsecure_entry.
72 (cmse_func_args_or_return_in_stack): New.
73 (arm_handle_cmse_nonsecure_entry): New.
74 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
75 (IS_CMSE_ENTRY): Likewise.
76 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
77
78 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
79 Thomas Preud'homme <thomas.preudhomme@arm.com>
80
81 * config.gcc (extra_headers): Added arm_cmse.h.
82 * config/arm/arm-arches.def (ARM_ARCH):
83 (armv8-m): Add FL2_CMSE.
84 (armv8-m.main): Likewise.
85 (armv8-m.main+dsp): Likewise.
86 * config/arm/arm-c.c
87 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
88 * config/arm/arm-flags.h: Define FL2_CMSE.
89 * config/arm.c (arm_arch_cmse): New.
90 (arm_option_override): New error for unsupported cmse target.
91 * config/arm/arm.h (arm_arch_cmse): New.
92 * config/arm/arm.opt (mcmse): New.
93 * config/arm/arm_cmse.h: New file.
94 * doc/invoke.texi (ARM Options): Add -mcmse.
95 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
96 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
97
98 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
99
100 * config/avr/avr.c: Fix coding rule glitches.
101
102 2016-12-02 Martin Jambor <mjambor@suse.cz>
103
104 * hsa.c (hsa_callable_function_p): Return false for artificial
105 functions.
106
107 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
108
109 PR rtl-optimization/78561
110 * varasm.c (recompute_pool_offsets): New.
111 (output_constant_pool): Call it.
112
113 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
114
115 PR rtl-optimization/78561
116 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
117 get_pool_size to get_pool_size_upper_bound.
118 (rs6000_stack_info): Likewise.
119 (rs6000_emit_prologue): Likewise.
120 (rs6000_elf_declare_function_name): Likewise.
121 (rs6000_set_up_by_prologue): Likewise.
122 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
123 * output.h (get_pool_size): Rename to...
124 (get_pool_size_upper_bound): ...This.
125 * varasm.c (get_pool_size): Rename to...
126 (get_pool_size_upper_bound): ...This.
127
128 2016-12-02 Bin Cheng <bin.cheng@arm.com>
129
130 * match.pd: Add new pattern:
131 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
132
133 2016-12-02 Nathan Sidwell <nathan@acm.org>
134
135 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
136 braces.
137
138 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
139
140 PR middle-end/78328
141 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
142 VR_ANTI_RANGE.
143
144 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
145
146 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
147 problem.
148
149 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
150
151 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
152 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
153 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
154 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
155 avr_mcu_types.flash_size to compute default value.
156 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
157 mcu->flash_size to compute value for spec.
158
159 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
160
161 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
162 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
163 about linker description to avoid progmem altogether.
164 [absdata]: Point to -mabsdata option.
165
166 2016-12-02 Jakub Jelinek <jakub@redhat.com>
167
168 PR rtl-optimization/78547
169 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
170 DECL_INCOMING_RTL is not shared.
171 * config/i386/i386.c (convert_scalars_to_vectors): If any
172 insns have been converted, adjust all parameter's DEC_RTL and
173 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
174 TImode.
175
176 PR rtl-optimization/78575
177 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
178 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
179 if not already wrapped in a subreg. Make sure df_insn_rescan does not
180 affect further iterations.
181
182 2016-12-02 Martin Liska <mliska@suse.cz>
183
184 PR ipa/78555
185 * sreal.c (sreal::to_int): Make absolute value before shifting.
186 (sreal::operator/): Likewise.
187 (sreal_verify_negative_division): New test.
188 (void sreal_c_tests): Call the new test.
189 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
190 SREAL_SIGN macros.
191 (sreal::normalize_down): Likewise.
192
193 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
194
195 * combine.c (combine_simplify_rtx): Suppress replacement of
196 "(and (reg) (const_int bit))" with "if_then_else".
197
198 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
199
200 PR target/77822
201 * config/s390/s390.md ("extzv")
202 ("*extzv<mode><clobbercc_or_nocc>")
203 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
204 ("*<risbg_n>_ior_and_sr_ze")
205 ("*extract1bitdi<clobbercc_or_nocc>")
206 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
207 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
208 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
209 to validate the arguments of zero_extract and sign_extract.
210
211 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
212
213 PR target/77822
214 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
215
216 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
217
218 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
219 function.
220 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
221 macro.
222
223 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
224
225 * config/s390/vector.md (vec_halfhalf): New mode iterator.
226 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
227 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
228 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
229 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
230 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
231 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
232 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
233 ("vec_unpacku_lo_v4si"): New pattern definitions.
234 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
235 vector.md.
236
237 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
238
239 * config/s390/s390-protos.h (s390_reverse_condition): New
240 prototype.
241 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
242 of CC mode values.
243 (s390_reverse_condition): New function.
244 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
245 target macros.
246
247 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
248
249 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
250 (CCVHUANY): Remove modes.
251 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
252 documentation.
253 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
254 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
255 modes.
256 (s390_branch_condition_mask): Adjust to use the new cc consumer
257 modes. The new modes allow for proper reversal in the middle-end.
258 (s390_expand_vec_compare_cc): Determine the proper cc producer and
259 consumer modes for a comparison.
260 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
261 throughout the file.
262 * config/s390/vx-builtins.md: Likewise.
263
264 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
265
266 * asan.c (asan_global_struct): Refactor.
267 (create_odr_indicator): New function.
268 (asan_needs_odr_indicator_p): Likewise.
269 (is_odr_indicator): Likewise.
270 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
271 constructor.
272 (asan_protect_global): Do not protect odr indicators.
273
274 2016-12-01 Jeff Law <law@redhat.com>
275
276 * tree-ssa-threadedge.c
277 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
278 propagation of operands if there are no operands.
279
280 2016-12-02 Jakub Jelinek <jakub@redhat.com>
281
282 PR tree-optimization/78586
283 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
284 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
285 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
286 type is INTEGER_TYPE or POINTER_TYPE.
287
288 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
289
290 PR target/78577
291 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
292 (vextuhrx): Likewise.
293 (vextuwlx): Likewise.
294 (vextuwrx): Likewise.
295
296 2016-12-01 David Malcolm <dmalcolm@redhat.com>
297
298 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
299 early_dwarf_finished.
300
301 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
302 David S. Miller <davem@davemloft.net>
303
304 * config/sparc/sparc.opt (mlra): New target option.
305 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
306 (sparc_lra_p): ...this. New function.
307 (D_MODES, DF_MODES): Add missing cast.
308 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
309 provide these insns when flag_pic.
310 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
311 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
312 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
313 embmedany_textulo, embmedany_textlo): Likewise.
314 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
315
316 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
317
318 PR debug/66419
319 PR c++/78235
320 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
321
322 2016-12-01 Richard Biener <rguenther@suse.de>
323 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
324
325 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
326 memset if len-oldlen != 0.
327 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
328
329 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
330
331 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
332
333 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
334
335 * config/avr/avr.c: Fix coding rule glitches.
336
337 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
338
339 PR tree-optimization/78598
340 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
341 overflows.
342
343 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
344
345 PR rtl-optimization/78596
346 * combine.c (simplify_comparison): Cast to unsigned to avoid
347 left shifting of negative value.
348
349 2016-12-01 Matthias Klose <doko@ubuntu.com>
350
351 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
352
353 2016-12-01 Richard Biener <rguenther@suse.de>
354
355 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
356 treat arrays with same type as objects that cannot overlap.
357
358 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
359
360 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
361 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
362 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
363
364 2016-12-01 Jakub Jelinek <jakub@redhat.com>
365
366 PR debug/78587
367 * dwarf2out.c (loc_descr_plus_const): For negative offset use
368 uint_loc_descriptor instead of int_loc_descriptor and perform negation
369 in unsigned HOST_WIDE_INT type.
370 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
371
372 PR target/78614
373 * config/rs6000/rs6000.c (rs6000_frame_related): Call
374 set_used_flags (pat) before any simplifications. Clear used flag on
375 PARALLEL copy. Don't guard add_reg_note call. Call
376 copy_rtx_if_shared on pat before storing it into
377 REG_FRAME_RELATED_EXPR.
378
379 2016-12-01 Alan Modra <amodra@gmail.com>
380
381 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
382 look inside UNSPEC_VSX_XXSPLTW vec.
383
384 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
385
386 PR rtl-optimization/78607
387 * combine.c (try_combine): Emit a barrier after a unconditional trap.
388
389 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
390
391 PR target/78602
392 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
393 element is not a constant or in a register, force it to a
394 register.
395
396 PR target/78560
397 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
398 that will be set to a vector element to be in a register.
399 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
400 the wrong multiplier to convert the element number to a byte
401 offset.
402
403 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
404
405 PR tree-optimization/77856
406 * lra-constraints.c (inherit_in_ebb): Check original regno for
407 invalid invariant regs too. Set only clobbered hard regs for the
408 invalid invariant regs.
409
410 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
411
412 Commit files forgotten in r242966.
413
414 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
415 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
416 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
417 prefix check to find wrap-around value, instead use MCU flash size.
418 For 8k flash devices, update link_pmem_wrap spec string to
419 add --pmem-wrap-around=8k.
420 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
421 here...
422 (LINK_SPEC): ...to here.
423
424 2016-11-30 David Malcolm <dmalcolm@redhat.com>
425
426 PR c/78498
427 * selftest.c (selftest::assert_strndup_eq): New function.
428 (selftest::test_strndup): New function.
429 (selftest::test_libiberty): New function.
430 (selftest::selftest_c_tests): Call test_libiberty.
431
432 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
433
434 PR rtl-optimization/78610
435 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
436 instructions.
437
438 2016-11-30 Bin Cheng <bin.cheng@arm.com>
439
440 PR tree-optimization/78574
441 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
442 header PHI that doesn't define biv.
443
444 2016-11-30 Jakub Jelinek <jakub@redhat.com>
445
446 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
447 reset_used_flags.
448
449 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
450 sharing the SUBREG rtx between move and following insn.
451
452 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
453 for REG_EQUIV argument.
454
455 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
456
457 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
458
459 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
460
461 PR ipa/78555
462 * real.c (real_hash): Add cast to avoid left
463 shifting of negative values.
464
465 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
466
467 PR target/78362
468 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
469 from a subreg in operands[1] and don't call REGNO on a non-reg
470 expression when deciding to force operands[2] into a reg.
471
472 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
473 Andrew Burgess <andrew.burgess@embecosm.com>
474
475 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
476 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
477 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
478 * config/arc/arc700.md: Add define_bypass for store/load.
479
480 2016-11-30 Martin Liska <mliska@suse.cz>
481
482 * cgraph.c (symbol_table::initialize): Initialize
483 ipa_clones_dump_file.
484 (cgraph_node::remove): Report to ipa_clones_dump_file.
485 * cgraph.h: Add new argument (suffix) to cloning methods.
486 * cgraphclones.c (dump_callgraph_transformation): New function.
487 (cgraph_node::create_clone): New argument.
488 (cgraph_node::create_virtual_clone): Likewise.
489 (cgraph_node::create_version_clone): Likewise.
490 * dumpfile.c: Add .ipa-clones dump file.
491 * dumpfile.h (enum tree_dump_index): Add TDI_clones
492 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
493 to dump_callgraph_transformation.
494
495 2016-11-30 Martin Liska <mliska@suse.cz>
496
497 PR sanitizer/78541
498 * asan.c (asan_expand_mark_ifn): Properly
499 select a VAR_DECL from FRAME.* component reference.
500
501 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
502
503 PR rtl-optimization/78583
504 * simplify-rtx.c (simplify_truncation): Add check missing from the
505 previous commit.
506
507 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
508
509 PR rtl-optimization/78590
510 * combine.c (change_zero_ext): Transform zero_extend of subregs only
511 if the subreg_reg is a scalar integer mode.
512
513 2016-11-30 Jakub Jelinek <jakub@redhat.com>
514
515 PR tree-optimization/78586
516 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
517 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
518 Don't build_int_cst min/max twice. Formatting fix.
519
520 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
521
522 PR rtl-optimization/78588
523 * combine.c (if_then_else_cond): Also guard against BLKmode.
524 * rtlanal.c (num_sign_bit_copies1): Add assert.
525
526 2016-11-29 Jeff Law <law@redhat.com>
527
528 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
529 variables.
530
531 * lra-constraints.c (check_and_process_move): Constrain the
532 range of DCLASS and SCLASS to avoid false positive out of bounds
533 array index warning.
534
535 2016-11-29 David Malcolm <dmalcolm@redhat.com>
536
537 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
538
539 2016-11-29 David Malcolm <dmalcolm@redhat.com>
540
541 PR preprocessor/78569
542 * input.c (get_substring_ranges_for_loc): Fail gracefully if
543 line directives were present.
544
545 2016-11-30 Matthias Klose <doko@ubuntu.com>
546
547 * doc/install.texi: Document configure options --enable-objc-gc
548 and --with-target-bdw-gc.
549
550 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
551
552 PR target/78594
553 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
554 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
555 residing in traditional altivec registers can be stored
556 correctly.
557
558 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
559
560 PR target/78603
561 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
562 overhead loop start between a call and its CALL_ARG_LOCATION
563 note.
564
565 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
566
567 * config/bfin/linux.h (CPP_SPEC): Define.
568
569 2016-11-29 Martin Sebor <msebor@redhat.com>
570
571 PR tree-optimization/78512
572 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
573 * config/rs6000/linux.h: Same.
574 * config/rs6000/linux64.h: Same.
575 * config/sol2.h: Same.
576 * config/sol2.c (solaris_printf_pointer_format): Remove.
577 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
578 * doc/tm.texi: Regenerate.
579 * gimple-ssa-sprintf.c (format_pointer): Rempove.
580 (pass_sprintf_length::compute_format_length): Return bool.
581 (pass_sprintf_length::handle_gimple_call): Adjust.
582 * target.def (printf_pointer_format): Remove.
583 * targhooks.c (default_printf_pointer_format): Remove.
584 (linux_printf_pointer_format): Same.
585 * targhooks.h (default_printf_pointer_format): Remove.
586 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
587
588 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
589
590 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
591 (mshift): Ditto.
592 (SWI1248_AVX512BWDQ): Ditto.
593 (SWI1248_AVX512BW): Ditto.
594 (k<any_logic:code><mode>): Ditto.
595 (kandn<mode>): Ditto.
596 (kxnor<mode>): Ditto.
597 (knot<mode>): Ditto.
598 (*k<any_lshift:code><mode>): Ditto.
599 (kortestzhi, kortestchi): Ditto.
600 (kunpckhi, kunpcksi, kunpckdi): Ditto.
601
602 2016-11-29 Andrew Pinski <apinski@cavium.com>
603
604 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
605 for the EQ_EXPR.
606
607 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
608
609 PR target/71331
610 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
611 to stack before call mcount.
612 (tilegx_can_use_return_insn_p): Clean up code.
613
614 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
615
616 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
617
618 2016-11-29 David Malcolm <dmalcolm@redhat.com>
619
620 PR c++/72774
621 PR c++/72786
622 PR c++/77922
623 PR c++/78313
624 * spellcheck.c (selftest::test_find_closest_string): Verify that
625 we don't offer the goal string as a suggestion.
626 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
627 offer the goal string as a suggestion.
628
629
630 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
631
632 * config/arc/arc.c (arc_override_options): Avoid selection of
633 compact casesi for ARCv2.
634
635 2016-11-29 Richard Biener <rguenther@suse.de>
636
637 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
638 PHIs after a regular stmt.
639 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
640 start a new BB.
641
642 2016-11-29 Martin Liska <mliska@suse.cz>
643
644 PR gcov-profile/78582
645 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
646 to prevent PHI argument clash.
647
648 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
649
650 * config/arc/arc.opt (marclinux): Fix typo.
651 (marclinux_prof): Likewise.
652
653 2016-11-29 Jiong Wang <jiong.wang@arm.com>
654
655 * target.def (stack_protect_runtime_enabled_p): New.
656 * function.c (expand_function_end): Guard stack_protect_epilogue with
657 targetm.stack_protect_runtime_enabled_p.
658 * cfgexpand.c (pass_expand::execute): Likewise.
659 * calls.c (expand_call): Likewise.
660 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
661 * doc/tm.texi: Regenerate.
662
663 2016-11-29 Richard Biener <rguenther@suse.de>
664
665 PR middle-end/78546
666 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
667
668 2016-11-29 Janus Weil <janus@gcc.gnu.org>
669
670 * doc/contrib.texi: Add a few missing gfortran contributors.
671
672 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
673
674 * combine.c (change_zero_ext): Also handle extends from a subreg
675 to a mode bigger than that of the operand of the subreg.
676
677 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
678
679 PR target/77687
680 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
681 stack_restore_tie insn instead of stack_tie, for the SVR4 and
682 SPE ABIs.
683 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
684
685 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
686
687 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
688 head_components and tail_components.
689 (spread_components): New algorithm.
690 (emit_common_tails_for_components): Clear head_components and
691 tail_components.
692 (insert_prologue_epilogue_for_components): Write extra output to the
693 dump file for sibcalls and abnormal exits.
694
695 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
696
697 PR rtl-optimization/78342
698 * combine.c: Include "cfghooks.h".
699 (try_combine): If we create an unconditional trap, break the basic
700 block in two just after it, and remove the edge between; also, set
701 the *new_direct_jump_p flag so that cleanup_cfg is run.
702
703 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
704
705 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
706 and sign_extract.
707
708 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
709
710 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
711 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
712 output template string.
713 (*anddi_1): Use multi-line output template string.
714 (*andqi_1): Ditto.
715
716 2016-11-28 Jakub Jelinek <jakub@redhat.com>
717
718 PR middle-end/78540
719 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
720 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
721 note has been removed.
722 * postreload.c (reload_combine_recognize_pattern): If
723 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
724
725 2016-11-28 Martin Sebor <msebor@redhat.com>
726
727 PR middle-end/78520
728 * gimple-ssa-sprintf.c (target_max_value): Remove.
729 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
730 (get_width_and_precision): New function.
731 (format_integer, format_floating, get_string_length, format_string):
732 Correct handling of width and precision with unknown value.
733 (format_directive): Add warning.
734 (pass_sprintf_length::compute_format_length): Allow for precision
735 to consist of a sole period with no asterisk or digits after it.
736
737 2016-11-28 Jakub Jelinek <jakub@redhat.com>
738
739 PR rtl-optimization/78546
740 * simplify-rtx.c (neg_const_int): When negating most negative
741 number in mode wider than HOST_BITS_PER_WIDE_INT, use
742 simplify_const_unary_operation to produce CONST_DOUBLE or
743 CONST_WIDE_INT.
744 (simplify_plus_minus): Handle the case where neg_const_int
745 doesn't return a CONST_INT.
746
747 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
748
749 PR target/78556
750 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
751 left shifting of negative values.
752
753 2016-11-28 Jakub Jelinek <jakub@redhat.com>
754
755 PR fortran/78298
756 * tree-nested.c (convert_local_reference_stmt): After adding
757 shared (FRAME.NN) clause to omp parallel, task or target,
758 add it also to all outer omp parallel, task or target constructs.
759
760 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
761
762 * config/i386/i386.md (UNSPEC_KMASKOP): New.
763 (UNSPEC_KMOV): Remove.
764 (kmovw): Expand to plain HImode move.
765 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
766 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
767 Remove corresponding clobber-removing splitter.
768 (*anddi_1): Remove mask register alternatives.
769 (*andsi_1): Ditto.
770 (*andhi_1): Ditto.
771 (*andqi_1): Ditto.
772 (*<any_or:code><mode>_1): Ditto.
773 (*<any_or:code>qi_1): Ditto.
774 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
775 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
776 Remove corresponding splitter to operation with general registers.
777 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
778 (*andn<SWI12:mode>): New pattern.
779 (*kxnor<mode>): Remove general register alternatives. Tag pattern
780 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
781 with general registers.
782 (knot<mode>): New insn pattern.
783 (*one_cmpl<mode>2_1): Remove mask register alternatives.
784 (one_cmplqi2_1): Ditto.
785 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
786 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
787 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
788 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
789 to generate kmaskop shift.
790 (vec_unpacks_hi_<mode>): Ditto.
791 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
792 Use CODE_FOR_kandhi.
793 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
794 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
795 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
796
797 2016-11-28 Richard Biener <rguenther@suse.de>
798
799 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
800 to SSA names via extract_range_from_ssa_name if allowed.
801
802 2016-11-28 Richard Biener <rguenther@suse.de>
803
804 PR tree-optimization/78542
805 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
806 if allowed.
807
808 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
809
810 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
811 isolates a single bit, even if the condition involves subregs.
812
813 2016-11-28 Tamar Christina <tamar.christina@arm.com>
814
815 * config/aarch64/aarch64-simd-builtins.def
816 (BSL_P): Added di and v2di mode.
817 * config/aarch64/arm_neon.h
818 (vsriq_n_p64, vsri_n_p64): Added poly type.
819 (vextq_p64, vext_p64): Likewise.
820 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
821
822 2016-11-28 Tamar Christina <tamar.christina@arm.com>
823
824 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
825 (TYPES_GETREGP): Likewise.
826 (TYPES_SHIFTINSERTP): Likewise.
827 (TYPES_COMBINEP): Likewise.
828 (TYPES_STORE1P): Likewise.
829 * config/aarch64/aarch64-simd-builtins.def
830 (combine): Added poly generator.
831 (get_dregoi): Likewise.
832 (get_dregci): Likewise.
833 (get_dregxi): Likewise.
834 (ssli_n): Likewise.
835 (ld1): Likewise.
836 (st1): Likewise.
837 * config/aarch64/arm_neon.h
838 (poly64x1x2_t, poly64x1x3_t): New.
839 (poly64x1x4_t, poly64x2x2_t): Likewise.
840 (poly64x2x3_t, poly64x2x4_t): Likewise.
841 (poly64x1_t): Likewise.
842 (vcreate_p64, vcombine_p64): Likewise.
843 (vdup_n_p64, vdupq_n_p64): Likewise.
844 (vld2_p64, vld2q_p64): Likewise.
845 (vld3_p64, vld3q_p64): Likewise.
846 (vld4_p64, vld4q_p64): Likewise.
847 (vld2_dup_p64, vld3_dup_p64): Likewise.
848 (vld4_dup_p64, vsli_n_p64): Likewise.
849 (vsliq_n_p64, vst1_p64): Likewise.
850 (vst1q_p64, vst2_p64): Likewise.
851 (vst3_p64, vst4_p64): Likewise.
852 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
853 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
854 (vget_lane_p64, vgetq_lane_p64): Likewise.
855 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
856 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
857 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
858 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
859 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
860 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
861 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
862 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
863 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
864 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
865 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
866 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
867 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
868 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
869 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
870 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
871 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
872 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
873 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
874 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
875 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
876 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
877 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
878 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
879 (vset_lane_p64, vsetq_lane_p64): Likewise.
880 (vget_low_p64, vget_high_p64): Likewise.
881 (vcombine_p64, vst2_lane_p64): Likewise.
882 (vst3_lane_p64, vst4_lane_p64): Likewise.
883 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
884 (vst4q_lane_p64, vget_lane_p64): Likewise.
885 (vget_laneq_p64, vset_lane_p64): Likewise.
886 (vset_laneq_p64, vcopy_lane_p64): Likewise.
887 (vcopy_laneq_p64, vdup_n_p64): Likewise.
888 (vdupq_n_p64, vdup_lane_p64): Likewise.
889 (vdup_laneq_p64, vld1_p64): Likewise.
890 (vld1q_p64, vld1_dup_p64): Likewise.
891 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
892 (vmov_n_p64, vmovq_n_p64): Likewise.
893 (vst3q_p64, vst4q_p64): Likewise.
894 (vld1_lane_p64, vld1q_lane_p64): Likewise.
895 (vst1_lane_p64, vst1q_lane_p64): Likewise.
896 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
897 (vdupq_laneq_p64): Likewise.
898
899 2016-11-28 Tamar Christina <tamar.christina@arm.com>
900
901 * config/arm/arm_neon.h (vget_lane_p64): New.
902
903 2016-11-28 Iain Sandoe <iain@codesourcery.com>
904
905 PR target/71767
906 * configure.ac (with_ld64): Use portable method to extract the
907 major part of the version number.
908 * configure: Regenerated.
909
910 2016-11-28 Jakub Jelinek <jakub@redhat.com>
911
912 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
913 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
914 intmax_t couldn't be determined.
915 (format_integer): Make {,u}intmax_type_node no longer static,
916 initialize them only when needed. For z and t use
917 signed_or_unsigned_type_for instead of assuming size_t and
918 ptrdiff_t have the same precision.
919
920 PR lto/78211
921 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
922 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
923 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
924 vector instead of traversing m_classes hash table. Release
925 m_classes_vec.
926 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
927 Formatting fixes.
928 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
929 add it also to m_classes_vec vector.
930 (sem_item_optimizer::remove_symtab_node,
931 sem_item_optimizer::build_hash_based_classes,
932 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
933 (sem_item_optimizer::subdivide_classes_by_equality,
934 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
935 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
936 instead of traversing m_classes hash table. Formatting fixes.
937 (sem_item_optimizer::traverse_congruence_split,
938 sem_item_optimizer::do_congruence_step_for_index,
939 sem_item_optimizer::do_congruence_step): Formatting fixes.
940 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
941 vector instead of traversing m_classes hash table.
942 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
943 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
944 instead of traversing m_classes hash table.
945
946 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
947
948 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
949 X is not unused after.
950
951 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
952
953 PR rtl-optimization/78120
954 * rtlanal.c (insn_rtx_cost): Revert previous change.
955
956 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
957
958 PR 41076
959 * config/avr/avr.md (SPLIT34): New mode iterator.
960 (bitop): New code iterator.
961 (*iorhi3.ashift8-*). New insn-and-split patterns.
962 (*movhi): Post-reload split reg = 0.
963 [!MOVW]: Post-reload split reg = reg.
964 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
965 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
966 (iorhi3, iorpsi3, iorsi3): Same.
967 (xorhi3, xorpsi3, xorsi3): Same.
968 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
969 costs to *iorhi3.ashift8-* patterns.
970
971 2016-11-27 Iain Sandoe <iain@codesourcery.com>
972 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
973
974 PR target/67710
975 * config.in: Regenerate
976 * config/darwin-driver.c (darwin_driver_init): Emit a version string
977 for the assembler.
978 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
979 * config/darwin.opt(asm_macosx_version_min): New.
980 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
981 * configure: Regenerate
982 * configure.ac: Check for mmacosx-version-min handling.
983
984 2016-11-27 Iain Sandoe <iain@codesourcery.com>
985
986 PR target/57438
987 * config/i386/i386.c (ix86_code_end): Note that we emitted code
988 where the function might otherwise appear empty for picbase thunks.
989 (ix86_output_function_epilogue): If we find a zero-sized function
990 assume that reaching it is UB and trap. If we find a trailing label
991 append a nop.
992 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
993 find a zero-sized function assume that reaching it is UB and trap.
994 If we find a trailing label, append a nop.
995
996 2016-11-27 Iain Sandoe <iain@codesourcery.com>
997
998 PR target/71767
999 * config/darwin-sections.def (picbase_thunk_section): New.
1000 * config/darwin.c (darwin_init_sections): Set up picbase thunk
1001 section. (darwin_rodata_section, darwin_objc2_section,
1002 machopic_select_section, darwin_asm_declare_constant_name,
1003 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
1004 coalesced with newer linkers.
1005 (darwin_override_options): Decide on usage of coalesed sections
1006 on the basis of the target linker version.
1007 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
1008 * config/darwin.opt (mtarget-linker): New.
1009 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
1010 a coalesced section, instead use a thunks section.
1011
1012 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1013
1014 PR target/71767
1015 * configure.ac (with-ld64): New var, set for Darwin, set on
1016 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
1017 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
1018 * config/darwin10.h(DEF_LD64): Update for this target version.
1019 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
1020 (DEF_LD64): Update for this target version.
1021 * configure: Regenerated.
1022 * config.in: Regenerated.
1023
1024 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1025
1026 PR target/71767
1027 * config/darwin.c (imachopic_indirection_name): Make data
1028 section indirections linker-visible.
1029 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
1030 constant labels linker-visible.
1031
1032 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1033
1034 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
1035 (free_lang_data): Remove assignment to ptrdiff_type_node.
1036
1037 2016-11-25 Jakub Jelinek <jakub@redhat.com>
1038
1039 PR rtl-optimization/78526
1040 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
1041 beyond val's precision.
1042
1043 PR rtl-optimization/78527
1044 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
1045 out of bounds shift count.
1046
1047 2016-11-25 Martin Liska <mliska@suse.cz>
1048
1049 PR web/71666
1050 * doc/invoke.texi (-fprofile-use): Fix reference to a section
1051 where -fprofile-generate is documented.
1052
1053 2016-11-25 Martin Liska <mliska@suse.cz>
1054
1055 PR gcov-profile/78086
1056 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
1057 not supported by a target. Set priority to 100 if possible.
1058 (build_gcov_exit_decl): Likewise.
1059
1060 2016-11-25 Richard Biener <rguenther@suse.de>
1061
1062 PR ipa/78515
1063 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
1064 unary, binary and single RHSs.
1065 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
1066
1067 2016-11-25 Bin Cheng <bin.cheng@arm.com>
1068
1069 PR middle-end/78507
1070 PR middle-end/78510
1071 PR middle-end/78517
1072 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
1073 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
1074 and set it to result code if transformation is valid. Use code EQ
1075 directly in last simplification case.
1076
1077 2016-11-25 Richard Biener <rguenther@suse.de>
1078
1079 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
1080 before valueizing return stmts.
1081
1082 2016-11-24 Richard Biener <rguenther@suse.de>
1083
1084 PR tree-optimization/78343
1085 * passes.def: Add CD-DCE pass after loop splitting.
1086 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
1087 SCEV init/finalize ...
1088 (perform_tree_ssa_dce): ... here. Deal with being
1089 executed inside the loop pipeline in aggressive mode.
1090
1091 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
1092
1093 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
1094
1095 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
1096
1097 PR tree-optimization/77673
1098 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
1099 (init_symbolic_number): Initialize src field from src parameter.
1100 (perform_symbolic_merge): Select most dominated statement as the
1101 source statement. Set src field of resulting n structure from the
1102 input src with the lowest address.
1103 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
1104 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
1105 of load from src field rather than insertion statement. Cancel
1106 optimization if statement analyzed is not dominated by the insertion
1107 statement.
1108 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
1109 dominance information.
1110
1111 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
1112
1113 PR ada/67205
1114 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
1115
1116 2016-11-25 Martin Jambor <mjambor@suse.cz>
1117
1118 PR tree-optimization/70965
1119 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
1120
1121 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
1122
1123 PR target/78509
1124 * config/i386/i386.c (i386_excess_precision): Do not return
1125 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
1126 EXCESS_PRECISION_TYPE_STANDARD.
1127 * target.def (excess_precision): Document that targets should
1128 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
1129 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
1130 Fix typo in first sentence.
1131 * doc/tm.texi: Regenerate.
1132
1133 2016-11-25 Richard Biener <rguenther@suse.de>
1134
1135 PR tree-optimization/78396
1136 * tree-vectorizer.c (vectorize_loops): When the if-converted
1137 body contains masked loads or stores do not attempt to
1138 basic-block-vectorize it.
1139
1140 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
1141 Alan Hayward <alan.hayward@arm.com>
1142 David Sherwood <david.sherwood@arm.com>
1143
1144 * function.h (spill_slot_alignment): Declare.
1145 * function.c (spill_slot_alignment): New function.
1146 * lra-spills.c (slot): Add align and size fields.
1147 (assign_mem_slot): Use them in the call to assign_stack_local.
1148 (add_pseudo_to_slot): Update the fields.
1149 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
1150
1151 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
1152 Alan Hayward <alan.hayward@arm.com>
1153 David Sherwood <david.sherwood@arm.com>
1154
1155 * stor-layout.c (layout_type): Allow the caller to set the mode of
1156 a float type. Only choose one here if the mode is still VOIDmode.
1157 * tree.c (build_common_tree_nodes): Set the type mode of decimal
1158 floats before calling layout_type.
1159 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
1160
1161 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
1162
1163 * tree-tailcall.c (find_tail_calls): Allow calls to reference
1164 local variables if all references are known to be direct.
1165
1166 2016-11-25 Jakub Jelinek <jakub@redhat.com>
1167 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1168
1169 PR middle-end/78501
1170 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
1171 non null and it's precision matches precision of lhs's type.
1172
1173 2016-11-24 Martin Sebor <msebor@redhat.com>
1174
1175 PR tree-optimization/78476
1176 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
1177 Add a member.
1178 (handle_gimple_call): Adjust signature.
1179 (try_substitute_return_value): Remove calls to bounded functions
1180 with zero buffer size whose result is known.
1181 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
1182
1183 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1184
1185 * varasm.c (assemble_start_function): Wrap align_log definition in
1186 ASM_OUTPUT_MAX_SKIP_ALIGN.
1187
1188 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
1189
1190 * config/i386/i386.md (wide AND insn to QImode splitter): Use
1191 explicit mode macros.
1192 (wide OR insn to QImode splitter): Ditto.
1193
1194 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
1195
1196 PR rtl-optimization/77541
1197 * lra-constraints.c (struct input_reload): Add field match_p.
1198 (get_reload_reg): Check modes of input reloads to generate unique
1199 value reload pseudo.
1200 (match_reload): Add input reload pseudo for the current insn.
1201
1202 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
1203
1204 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
1205 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
1206 architecture levels.
1207 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
1208 the aarch64_fp16_type_node, not all HFmode types.
1209 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
1210 (aarch64_scalar_mode_supported_p): Likewise.
1211 (aarch64_excess_precision): New.
1212 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
1213 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
1214 (TARGET_C_EXCESS_PRECISION): Likewise.
1215
1216 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
1217
1218 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
1219 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
1220
1221 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
1222
1223 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
1224 (<optab>dihf2): Likewise.
1225 (aarch64_fp16_<optab><mode>hf2): New.
1226
1227 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
1228
1229 PR target/67822
1230 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
1231
1232 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
1233
1234 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
1235 Enable REE at -O2 and higher.
1236 * config/sparc/sparc.c (sparc_option_override): Disable it by default
1237 in 32-bit mode.
1238
1239 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1240
1241 PR target/48863
1242 PR inline-asm/70184
1243 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
1244 (new_temp_expr_table): Initialise reg_vars_cnt.
1245 (free_temp_expr_table): Release reg_vars_cnt.
1246 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
1247 field of TAB.
1248 (find_replaceable_in_bb): Use the above to record register variable
1249 write occurrences and cancel replacement across them.
1250
1251 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
1252
1253 PR rtl-optimization/78437
1254 * ree.c (get_uses): New function.
1255 (combine_reaching_defs): When a copy is needed, return false if any
1256 reaching use of the source register reads it in a mode larger than
1257 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
1258
1259 2016-11-24 Martin Liska <mliska@suse.cz>
1260
1261 * gimple-pretty-print.c (dump_edge_probability): New function.
1262 (dump_gimple_switch): Dump label edge probabilities.
1263 (dump_gimple_cond): Likewise.
1264 (dump_gimple_label): Dump
1265 (dump_gimple_bb_header): Dump basic block frequency.
1266 (pp_cfg_jump): Replace e->dest argument with e.
1267 (dump_implicit_edges): Likewise.
1268 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
1269 Use gimple_bb (at) instead of at->bb.
1270
1271 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
1272
1273 * common.opt (flimit-function-alignment): New.
1274 * doc/invoke.texi (-flimit-function-alignment): Document.
1275 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
1276 * final.c (shorten_branches): Set it.
1277 * varasm.c (assemble_start_function): Limit alignment if
1278 requested.
1279
1280 2016-11-24 Richard Biener <rguenther@suse.de>
1281
1282 PR tree-optimization/71595
1283 * cfgloopmanip.h (remove_path): Add irred_invalidated and
1284 loop_closed_ssa_invalidated parameters, defaulted to NULL.
1285 * cfgloopmanip.c (remove_path): Likewise, pass them along to
1286 called functions. Only fix irred flags if the caller didn't
1287 request state.
1288 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
1289 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
1290 to remove_path.
1291
1292 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
1293
1294 PR rtl-optimization/78120
1295 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
1296 cases, and additionally test against max_seq_cost for speed
1297 optimization.
1298 (noce_process_if_block): Compute an estimate for the original cost when
1299 optimizing for speed, using the minimum of then and else block costs.
1300
1301 PR rtl-optimization/78120
1302 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
1303
1304 PR rtl-optimization/78120
1305 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
1306
1307 2016-11-24 Bin Cheng <bin.cheng@arm.com>
1308
1309 * match.pd: Refine type conversion in result expr for below pattern:
1310 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
1311
1312 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
1313
1314 PR middle-end/78429
1315 * tree.h (wi::fits_to_boolean_p): New predicate.
1316 (wi::fits_to_tree_p): Use it for boolean types.
1317 * tree.c (int_fits_type_p): Likewise.
1318
1319 2016-11-24 Martin Liska <mliska@suse.cz>
1320
1321 * print-tree.c (struct bucket): Remove.
1322 (print_node): Add new argument which drives whether a tree node
1323 is printed briefly or not.
1324 (debug_tree): Replace a custom hash table with hash_set<T>.
1325 * print-tree.h (print_node): Add the argument.
1326
1327 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
1328
1329 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
1330
1331 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
1332
1333 PR target/78458
1334 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
1335 if it is at least NREGS wide.
1336
1337 2016-11-23 Joseph Myers <joseph@codesourcery.com>
1338
1339 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
1340 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
1341 TFmode, IFmode and KFmode.
1342
1343 2016-11-23 Joseph Myers <joseph@codesourcery.com>
1344
1345 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
1346 pattern.
1347
1348 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
1349
1350 * combine.c (change_zero_ext): Only change the mode of a hard register
1351 destination if can_change_dest_mode holds for that.
1352
1353 2016-11-23 Jeff Law <law@redhat.com>
1354
1355 * varasm.c (assemble_name): Increase buffer size for name.
1356
1357 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
1358
1359 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
1360
1361 * doc/extend.texi: Constify first argument to __builtin_object_size.
1362
1363 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
1364
1365 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
1366 to be used. Add brackets around macro argument.
1367
1368 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
1369
1370 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
1371
1372 2016-11-23 Jakub Jelinek <jakub@redhat.com>
1373
1374 PR sanitizer/69278
1375 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
1376 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
1377
1378 2016-11-23 Jakub Jelinek <jakub@redhat.com>
1379
1380 PR middle-end/69183
1381 * omp-low.c (build_outer_var_ref): Change lastprivate argument
1382 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
1383 on worksharing constructs, treat it like clauses on simd construct.
1384 Formatting fix.
1385 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
1386 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
1387 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
1388 of true as last argument to build_outer_var_ref.
1389
1390 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
1391
1392 * config/i386/i386.md (*movqi_internal): Calculate mode
1393 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
1394 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
1395 (*k<logic><mode>): Calculate mode attribute depending on
1396 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
1397 (*andqi_1): Calculate mode attribute of alternative 3 depending
1398 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
1399 (kandn<mode>): Calculate mode attribute of alternative 2 depending
1400 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
1401 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
1402 iterator. Calculate mode attribute of alternative 1 depending
1403 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
1404 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
1405 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
1406
1407 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1408
1409 PR middle-end/78153
1410 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
1411 * tree-vrp.c (extract_range_basic): Handle case for
1412 CFN_BUILT_IN_STRLEN.
1413
1414 2016-11-23 Jeff Law <law@redhat.com>
1415
1416 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
1417
1418 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
1419 in boolean context warning.
1420
1421 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
1422
1423 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1424
1425 PR target/63250
1426 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
1427 (arm_fp16_type_node): ...This, make visibile.
1428 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
1429 arm_fp16_type_node.
1430 (arm_init_simd_builtin_types): Likewise.
1431 (arm_init_fp16_builtins): Likewise.
1432 * config/arm/arm.c (arm_excess_precision): New.
1433 (arm_floatn_mode): Likewise.
1434 (TARGET_C_EXCESS_PRECISION): Likewise.
1435 (TARGET_FLOATN_MODE): Likewise.
1436 (arm_promoted_type): Only promote arm_fp16_type_node.
1437 * config/arm/arm.h (arm_fp16_type_node): Declare.
1438
1439 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1440
1441 * config/arm/arm.c (arm_convert_to_type): Delete.
1442 (TARGET_CONVERT_TO_TYPE): Delete.
1443 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
1444 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
1445 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
1446 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
1447 are in fast math mode, and have no single step hardware instruction.
1448 (extendhfdf2): Only expand through SFmode if we don't have a
1449 single-step hardware instruction.
1450 * config/arm/vfp.md (*truncdfhf2): New.
1451 (extendhfdf2): Likewise.
1452
1453 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1454
1455 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
1456 provides HFmode.
1457
1458 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1459
1460 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
1461 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
1462 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
1463 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
1464 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
1465 * doc/tm.texi: Regenerate.
1466 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
1467
1468 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1469
1470 * toplev.c (init_excess_precision): Delete most logic.
1471 * tree.c (excess_precision_type): Rewrite to use
1472 TARGET_EXCESS_PRECISION.
1473 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
1474 more generic fashion.
1475 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
1476 __STDC_WANT_IEC_60559_TYPES_EXT__.
1477
1478 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1479
1480 * common.opt (fpermitted-flt-eval-methods): New.
1481 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
1482 * flag_types.h (permitted_flt_eval_methods): New.
1483
1484 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1485
1486 * config/m68k/m68k.c (m68k_excess_precision): New.
1487 (TARGET_C_EXCESS_PRECISION): Define.
1488
1489 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1490
1491 * config/s390/s390.c (s390_excess_precision): New.
1492 (TARGET_C_EXCESS_PRECISION): Define.
1493
1494 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1495
1496 * config/i386/i386.c (ix86_excess_precision): New.
1497 (TARGET_C_EXCESS_PRECISION): Define.
1498
1499 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
1500
1501 * target.def (excess_precision): New hook.
1502 * target.h (flt_eval_method): New.
1503 (excess_precision_type): Likewise.
1504 * targhooks.c (default_excess_precision): New.
1505 * targhooks.h (default_excess_precision): New.
1506 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
1507 * doc/tm.texi: Regenerate.
1508
1509 2016-11-23 Martin Sebor <msebor@redhat.com>
1510
1511 PR middle-end/78461
1512 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
1513 set the minimum number of bytes for an unknown string to zero.
1514
1515 2016-11-23 Martin Jambor <mjambor@suse.cz>
1516 Martin Liska <mliska@suse.cz>
1517
1518 * hsa-builtins.def: New file.
1519 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
1520 * builtins.def: Include hsa-builtins.def.
1521 (DEF_HSA_BUILTIN): New macro.
1522 * dumpfile.h (OPTGROUP_OPENMP): Define.
1523 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
1524 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
1525 GF_OMP_FOR_GRID_GROUP_ITER.
1526 (gimple_omp_for_grid_phony): Added checking assert.
1527 (gimple_omp_for_set_grid_phony): Likewise.
1528 (gimple_omp_for_grid_intra_group): New function.
1529 (gimple_omp_for_set_grid_intra_group): Likewise.
1530 (gimple_omp_for_grid_group_iter): Likewise.
1531 (gimple_omp_for_set_grid_group_iter): Likewise.
1532 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
1533 previosuly only distribute loop was permitted.
1534 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
1535 (grid_get_kernel_launch_attributes): Support multiple HSA grid
1536 dimensions.
1537 (grid_expand_omp_for_loop): Likewise and also support standalone
1538 distribute constructs. New parameter INTRA_GROUP, updated both users.
1539 (grid_expand_target_grid_body): Support standalone distribute
1540 constructs.
1541 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
1542 (pass_data_expand_omp_ssa): Likewise.
1543 (pass_data_omp_device_lower): Likewsie.
1544 (pass_data_lower_omp): Likewise.
1545 (pass_data_diagnose_omp_blocks): Likewise.
1546 (pass_data_oacc_device_lower): Likewise.
1547 (pass_data_omp_target_link): Likewise.
1548 (grid_lastprivate_predicate): New function.
1549 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
1550 gridified loops.
1551 (lower_omp_for): Support standalone distribute constructs.
1552 (grid_prop): New type.
1553 (grid_safe_assignment_p): Check for assignments to group_sizes, new
1554 parameter GRID.
1555 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
1556 it to callee.
1557 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
1558 optimization info messages.
1559 (grid_find_single_omp_among_assignments): Likewise.
1560 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
1561 (grid_parallel_clauses_gridifiable): New function.
1562 (grid_inner_loop_gridifiable_p): Likewise.
1563 (grid_dist_follows_simple_pattern): Likewise.
1564 (grid_gfor_follows_tiling_pattern): Likewise.
1565 (grid_call_permissible_in_distribute_p): Likewise.
1566 (grid_handle_call_in_distribute): Likewise.
1567 (grid_dist_follows_tiling_pattern): Likewise.
1568 (grid_target_follows_gridifiable_pattern): Support standalone
1569 distribute constructs.
1570 (grid_var_segment): New enum.
1571 (grid_mark_variable_segment): New function.
1572 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
1573 if a new argument says so.
1574 (grid_process_grid_body): New function.
1575 (grid_eliminate_combined_simd_part): Likewise.
1576 (grid_mark_tiling_loops): Likewise.
1577 (grid_mark_tiling_parallels_and_loops): Likewise.
1578 (grid_process_kernel_body_copy): Support standalone distribute
1579 constructs.
1580 (grid_attempt_target_gridification): New grid variable holding overall
1581 gridification state. Support standalone distribute constructs and
1582 collapse clauses.
1583 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
1584 * hsa.h (hsa_bb): Add method method append_phi.
1585 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
1586 occurences in all files too.
1587 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
1588 (is_a_helper <hsa_insn_br *>::test): New function.
1589 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
1590 branch instructions.
1591 (hsa_insn_signal): Make a direct descendant of
1592 hsa_insn_basic. Add memorder constructor parameter and
1593 m_memory_order and m_signalop member variables.
1594 (hsa_insn_queue): Changed constructor parameters to common form.
1595 Added m_segment and m_memory_order member variables.
1596 (hsa_summary_t): Add private member function
1597 process_gpu_implementation_attributes.
1598 (hsa_function_summary): Rename m_binded_function to
1599 m_bound_function.
1600 (hsa_insn_basic_p): Remove typedef.
1601 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
1602 (hsa_op_reg_p): Remove typedef.
1603 (hsa_function_representation): Change hsa_op_reg_p into plain
1604 pointers.
1605 (hsa_insn_phi): Removed new and delete operators.
1606 (hsa_insn_br): Likewise.
1607 (hsa_insn_cbr): Likewise.
1608 (hsa_insn_sbr): Likewise.
1609 (hsa_insn_cmp): Likewise.
1610 (hsa_insn_mem): Likewise.
1611 (hsa_insn_atomic): Likewise.
1612 (hsa_insn_signal): Likewise.
1613 (hsa_insn_seg): Likewise.
1614 (hsa_insn_call): Likewise.
1615 (hsa_insn_arg_block): Likewise.
1616 (hsa_insn_comment): Likewise.
1617 (hsa_insn_srctype): Likewise.
1618 (hsa_insn_packed): Likewise.
1619 (hsa_insn_cvt): Likewise.
1620 (hsa_insn_alloca): Likewise.
1621 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
1622 (process_gpu_implementation_attributes): New function.
1623 (link_functions): Move some functionality into it. Adjust after
1624 renaming m_binded_functions to m_bound_functions.
1625 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
1626 to the list of instructions with no output registers.
1627 (get_in_type): Return this if it is a register of
1628 matching size.
1629 (hsa_get_declaration_name): Moved to...
1630 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
1631 temporary string on an obstack instead from ggc.
1632 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
1633 down to two overloads.
1634 (hsa_allocp_operand_address): Removed.
1635 (hsa_allocp_operand_immed): Likewise.
1636 (hsa_allocp_operand_reg): Likewise.
1637 (hsa_allocp_operand_code_list): Likewise.
1638 (hsa_allocp_operand_operand_list): Likewise.
1639 (hsa_allocp_inst_basic): Likewise.
1640 (hsa_allocp_inst_phi): Likewise.
1641 (hsa_allocp_inst_mem): Likewise.
1642 (hsa_allocp_inst_atomic): Likewise.
1643 (hsa_allocp_inst_signal): Likewise.
1644 (hsa_allocp_inst_seg): Likewise.
1645 (hsa_allocp_inst_cmp): Likewise.
1646 (hsa_allocp_inst_br): Likewise.
1647 (hsa_allocp_inst_sbr): Likewise.
1648 (hsa_allocp_inst_call): Likewise.
1649 (hsa_allocp_inst_arg_block): Likewise.
1650 (hsa_allocp_inst_comment): Likewise.
1651 (hsa_allocp_inst_queue): Likewise.
1652 (hsa_allocp_inst_srctype): Likewise.
1653 (hsa_allocp_inst_packed): Likewise.
1654 (hsa_allocp_inst_cvt): Likewise.
1655 (hsa_allocp_inst_alloca): Likewise.
1656 (hsa_allocp_bb): Likewise.
1657 (hsa_obstack): New.
1658 (hsa_init_data_for_cfun): Initialize obstack.
1659 (hsa_deinit_data_for_cfun): Release memory of the obstack.
1660 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
1661 (hsa_op_reg::operator new): Likewise.
1662 (hsa_op_address::operator new): Likewise.
1663 (hsa_op_code_list::operator new): Likewise.
1664 (hsa_op_operand_list::operator new): Likewise.
1665 (hsa_insn_basic::operator new): Likewise.
1666 (hsa_insn_phi::operator new): Likewise.
1667 (hsa_insn_br::operator new): Likewise.
1668 (hsa_insn_sbr::operator new): Likewise.
1669 (hsa_insn_cmp::operator new): Likewise.
1670 (hsa_insn_mem::operator new): Likewise.
1671 (hsa_insn_atomic::operator new): Likewise.
1672 (hsa_insn_signal::operator new): Likewise.
1673 (hsa_insn_seg::operator new): Likewise.
1674 (hsa_insn_call::operator new): Likewise.
1675 (hsa_insn_arg_block::operator new): Likewise.
1676 (hsa_insn_comment::operator new): Likewise.
1677 (hsa_insn_srctype::operator new): Likewise.
1678 (hsa_insn_packed::operator new): Likewise.
1679 (hsa_insn_cvt::operator new): Likewise.
1680 (hsa_insn_alloca::operator new): Likewise.
1681 (hsa_init_new_bb): Likewise.
1682 (hsa_bb::append_phi): New function.
1683 (gen_hsa_phi_from_gimple_phi): Use it.
1684 (get_symbol_for_decl): Fix dinstinguishing between
1685 global and local functions. Put local variables into a segment
1686 according to their attribute or static flag, if there is one.
1687 (hsa_insn_br::hsa_insn_br): New.
1688 (hsa_insn_br::operator new): Likewise.
1689 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
1690 (query_hsa_grid_nodim): New function.
1691 (multiply_grid_dim_characteristics): Likewise.
1692 (gen_get_num_threads): Likewise.
1693 (gen_get_num_teams): Reimplemented.
1694 (gen_get_team_num): Likewise.
1695 (gen_hsa_insns_for_known_library_call): Updated calls to the above
1696 helper functions.
1697 (get_memory_order_name): Removed.
1698 (get_memory_order): Likewise.
1699 (hsa_memorder_from_tree): New function.
1700 (gen_hsa_ternary_atomic_for_builtin): Renamed to
1701 gen_hsa_atomic_for_builtin, can also create signals.
1702 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
1703 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
1704 (hsa_insn_atomic): Fix function comment.
1705 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
1706 ancestor constructor and initialization of new member variables.
1707 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
1708 member variables.
1709 (hsa_get_host_function): Handle functions with no bound CPU
1710 implementation. Fix binded to bound.
1711 (get_brig_function_name): Likewise.
1712 (HSA_SORRY_ATV): Remove semicolon after macro.
1713 (HSA_SORRY_AT): Likewise.
1714 (omp_simple_builtin::generate): Add missing semicolons.
1715 (hsa_insn_phi::operator new): Removed.
1716 (hsa_insn_br::operator new): Likewise.
1717 (hsa_insn_cbr::operator new): Likewise.
1718 (hsa_insn_sbr::operator new): Likewise.
1719 (hsa_insn_cmp::operator new): Likewise.
1720 (hsa_insn_mem::operator new): Likewise.
1721 (hsa_insn_atomic::operator new): Likewise.
1722 (hsa_insn_signal::operator new): Likewise.
1723 (hsa_insn_seg::operator new): Likewise.
1724 (hsa_insn_call::operator new): Likewise.
1725 (hsa_insn_arg_block::operator new): Likewise.
1726 (hsa_insn_comment::operator new): Likewise.
1727 (hsa_insn_srctype::operator new): Likewise.
1728 (hsa_insn_packed::operator new): Likewise.
1729 (hsa_insn_cvt::operator new): Likewise.
1730 (hsa_insn_alloca::operator new): Likewise.
1731 (get_symbol_for_decl): Accept CONST_DECLs, put them to
1732 readonly segment.
1733 (gen_hsa_addr): Also process CONST_DECLs.
1734 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
1735 copies.
1736 (gen_hsa_unary_operation): Make sure the function does
1737 not use bittype source type for firstbit and lastbit operations.
1738 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
1739 source type.
1740 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
1741 instruction.
1742 (emit_branch_insn): Renamed to emit_cond_branch_insn.
1743 Emit the width stored in the class.
1744 (emit_generic_branch_insn): New function.
1745 (emit_insn): Call emit_generic_branch_insn.
1746 (emit_signal_insn): Remove obsolete comment. Update
1747 member variable name, pick a type according to profile.
1748 (emit_alloca_insn): Remove obsolete comment.
1749 (emit_atomic_insn): Likewise.
1750 (emit_queue_insn): Get segment and memory order from the IR object.
1751 (hsa_brig_section): Make allocate_new_chunk, chunks
1752 and cur_chunk provate, add a default NULL parameter to add method.
1753 (hsa_brig_section::add): Added a new parameter, store pointer to
1754 output data there if it is non-NULL.
1755 (emit_function_directives): Use this new parameter instead of
1756 calculating the pointer itself, fix function comment.
1757 (hsa_brig_emit_function): Add forgotten endian conversion.
1758 (hsa_output_kernels): Remove unnecessary building of
1759 kernel_dependencies_vector_type.
1760 (emit_immediate_operand): Declare.
1761 (emit_directive_variable): Also emit initializers of CONST_DECLs.
1762 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
1763 (verify_function_arguments): Properly detect variadic
1764 arguments.
1765 * hsa-dump.c (hsa_width_specifier_name): New function.
1766 (dump_hsa_insn_1): Dump generic branch instructions, update signal
1767 member variable name. Special dumping for queue objects.
1768 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
1769 m_binded_functions to m_bound_functions. Copy externally visible flag
1770 to the node.
1771 (ipa_hsa_write_summary): Likewise.
1772 (ipa_hsa_read_section): Likewise.
1773
1774 2016-11-23 Richard Biener <rguenther@suse.de>
1775
1776 PR tree-optimization/78396
1777 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
1778 vectorize try vectorizing an if-converted body using BB vectorization.
1779
1780 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
1781 Alan Hayward <alan.hayward@arm.com>
1782 David Sherwood <david.sherwood@arm.com>
1783
1784 * rtlanal.c (subreg_get_info): Use more local variables.
1785 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
1786 occupies at least one register. Assume that full hard registers
1787 have consistent endianness. Share previously-duplicated if block.
1788 Rework the main handling so that it operates on independently-
1789 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
1790 to check lowpart offsets, without trying to find an equivalent
1791 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
1792 as a final register-endianness correction.
1793
1794 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
1795
1796 PR target/77881
1797 PR bootstrap/78390
1798 PR target/78438
1799 PR bootstrap/78477
1800 * combine.c (make_compound_operation_int): Do not convert a subreg of
1801 a non-constant logical shift right to a zero_extract. Handle the case
1802 where some zero bits have been shifted into the range covered by that
1803 subreg.
1804
1805 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
1806 Alan Hayward <alan.hayward@arm.com>
1807 David Sherwood <david.sherwood@arm.com>
1808
1809 * rtl.h (subreg_size_offset_from_lsb): Declare.
1810 (subreg_offset_from_lsb): New function.
1811 (subreg_size_lowpart_offset): Declare.
1812 (subreg_lowpart_offset): Turn into an inline function.
1813 (subreg_size_highpart_offset): Declare.
1814 (subreg_highpart_offset): Turn into an inline function.
1815 * emit-rtl.c (subreg_size_lowpart_offset): New function.
1816 (subreg_size_highpart_offset): Likewise
1817 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
1818
1819 2016-11-23 Richard Biener <rguenther@suse.de>
1820
1821 PR tree-optimization/78482
1822 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
1823 (remove_forwarder_block_with_phi): When merging with a loop
1824 header creates a new latch reset number of iteration information
1825 of the loop.
1826
1827 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
1828
1829 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
1830 (*ashrsi3_extend0): ...this. Accept constant integers.
1831 (*ashrsi3_extend2): Rename to...
1832 (*ashrsi3_extend1): ...this.
1833 (*ashrsi3_extend2): New pattern.
1834 (*lshrsi3_extend1): Accept constant integers.
1835 (*lshrsi3_extend2): Fix condition on operand 2.
1836
1837 2016-11-23 Martin Liska <mliska@suse.cz>
1838
1839 * config/i386/i386.c: Initialize function pointer to NULL.
1840
1841 2016-11-23 Bin Cheng <bin.cheng@arm.com>
1842
1843 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
1844 for A == C1 ? A : C2 to below.
1845 * match.pd: Move from above to here:
1846 (cond (eq (convert1? x) c1) (convert2? x) c2)
1847 -> (cond (eq x c1) c1 c2).
1848
1849 2016-11-23 Bin Cheng <bin.cheng@arm.com>
1850
1851 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
1852 for A cmp C1 ? A : C2 to below, also simplify remaining code.
1853 * match.pd: Move and extend simplification from above to here:
1854 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
1855 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
1856 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
1857
1858 2016-11-23 Martin Liska <mliska@suse.cz>
1859 Martin Jambor <mjambor@suse.cz>
1860
1861 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
1862
1863 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
1864
1865 PR target/78213
1866 * opts.c (finish_options): Set -fsyntax-only if running self tests.
1867
1868 2016-11-23 Richard Biener <rguenther@suse.de>
1869
1870 PR middle-end/71762
1871 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
1872 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
1873
1874 2016-11-23 Richard Biener <rguenther@suse.de>
1875
1876 PR lto/78472
1877 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
1878 fields.
1879
1880 2016-11-23 Richard Biener <rguenther@suse.de>
1881 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
1882
1883 PR tree-optimization/78154
1884 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
1885 returns it's argument and the argument is nonnull.
1886 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
1887 ATT_RETNONNULL_NOTHROW_LEAF.
1888 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
1889 ATTR_RETNONNULL_NOTHROW_LEAF.
1890 (BUILT_IN_STPCPY): Likewise.
1891 (BUILT_IN_STPNCPY): Likewise.
1892 (BUILT_IN_MEMPCPY_CHK): Likewise.
1893 (BUILT_IN_STPCPY_CHK): Likewise.
1894 (BUILT_IN_STPNCPY_CHK): Likewise.
1895 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
1896 (BUILT_IN_STRNCAT): Likewise.
1897 (BUILT_IN_STRNCPY): Likewise.
1898 (BUILT_IN_MEMSET_CHK): Likewise.
1899 (BUILT_IN_STRCAT_CHK): Likewise.
1900 (BUILT_IN_STRCPY_CHK): Likewise.
1901 (BUILT_IN_STRNCAT_CHK): Likewise.
1902 (BUILT_IN_STRNCPY_CHK): Likewise.
1903
1904 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1905
1906 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
1907 * fold-const.h (tree_expr_nonzero_p) : Declare.
1908 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
1909
1910 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
1911
1912 * system.h (HAVE_DESIGNATED_INITIALIZERS,
1913 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
1914 "defined" in macros.
1915 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
1916 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
1917 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
1918
1919 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
1920
1921 PR target/60300
1922 * config/avr/constraints.md (Csp): Widen range to [-11..6].
1923 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
1924 of RCALLs in prologue to 3.
1925
1926 2016-11-22 Michael Collison <michael.collison@arm.com>
1927
1928 * config/aarch64/aarch64-protos.h
1929 (aarch64_and_split_imm1, aarch64_and_split_imm2)
1930 (aarch64_and_bitmask_imm): New prototypes
1931 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
1932 New overloaded function to create bit mask covering the
1933 lowest to highest bits set.
1934 (aarch64_and_split_imm2): New overloaded functions to create bit
1935 mask of zeros between first and last bit set.
1936 (aarch64_and_bitmask_imm): New function to determine if a integer
1937 is a valid two instruction "and" operation.
1938 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
1939 allowing wider range of constants with "and" operations.
1940 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
1941 "and" operator from matching restricted constant range used for
1942 ior and xor operators.
1943 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
1944 for constants in "and" operantions.
1945 (UsP constraint): New DImode constraint for constants
1946 in "and" operations.
1947 * config/aarch64/iterators.md (lconst2): New mode iterator.
1948 (LOGICAL2): New code iterator.
1949 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
1950 predicate.
1951 (aarch64_logical_and_operand): New predicate allowing extended
1952 constants for "and" operations.
1953
1954 2016-11-22 Walter Lee <walt@tilera.com>
1955
1956 * config/tilegx/tilegx.md (trap): New pattern.
1957 * config/tilepro/tilepro.md (trap): Likewise.
1958
1959 2016-11-22 Walter Lee <walt@tilera.com>
1960
1961 * config/tilegx/tilegx.md (*zero_extract): Use
1962 define_insn_and_split instead of define_insn; Handle pos + size >
1963 64.
1964 (*sign_extract): Likewise.
1965
1966 2016-11-22 Marek Polacek <polacek@redhat.com>
1967
1968 PR tree-optimization/78455
1969 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
1970
1971 2016-11-22 Ian Lance Taylor <iant@golang.org>
1972
1973 PR go/78431
1974 PR go/78432
1975 * godump.c (go_format_type): Always pass alignment as 1 when
1976 calling go_append_padding at end of struct/union.
1977
1978 2016-11-22 Jakub Jelinek <jakub@redhat.com>
1979
1980 PR target/78451
1981 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
1982 _mm512_setzero_hi): Removed.
1983 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
1984 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
1985 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
1986 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
1987 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
1988 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
1989 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
1990 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
1991 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
1992 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
1993 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
1994 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
1995 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
1996 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
1997 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
1998 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
1999 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
2000 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
2001 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
2002 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
2003 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
2004 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
2005 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
2006 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
2007 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
2008 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
2009 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
2010 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
2011 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
2012 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
2013 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
2014 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
2015 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
2016 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
2017 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
2018 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
2019 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
2020 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
2021 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
2022 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
2023 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
2024 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
2025 _mm512_setzero_qi or _mm512_setzero_hi.
2026 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
2027 _mm512_maskz_dbsad_epu8): Formatting fixes.
2028 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
2029 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
2030 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
2031 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
2032 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
2033 _mm512_setzero_qi or _mm512_setzero_hi.
2034
2035 2016-11-22 Nathan Sidwell <nathan@acm.org>
2036
2037 * gcc-ar.c (main): Fix indentation.
2038 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
2039 * ggc-page.c (move_ptes_to_front): Fix formatting.
2040 * hsa-dump.c (dump_has_cfun): Fix indentation.
2041 * sel-sched-ir.h: Remove trailing blank lines.
2042
2043 2016-11-22 Jakub Jelinek <jakub@redhat.com>
2044 Alexander Monakov <amonakov@ispras.ru>
2045
2046 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
2047 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
2048 (omp_clause_code_name): Add _simt_ name.
2049 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
2050 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
2051 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
2052 (scan_omp_simd): New function.
2053 (scan_omp_1_stmt): Use it in target regions if needed.
2054 (omp_max_vf): Don't max with omp_max_simt_vf.
2055 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
2056 OMP_CLAUSE__SIMT_ is present.
2057 (lower_rec_input_clauses): Compute maybe_simt from presence of
2058 OMP_CLAUSE__SIMT_.
2059 (lower_lastprivate_clauses): Likewise.
2060 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
2061 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
2062 * internal-fn.def (GOMP_USE_SIMT): New internal function.
2063 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
2064
2065 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
2066
2067 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
2068 (expand_GOMP_SIMT_VF): New.
2069 (expand_GOMP_SIMT_LAST_LANE): New.
2070 (expand_GOMP_SIMT_ORDERED_PRED): New.
2071 (expand_GOMP_SIMT_VOTE_ANY): New.
2072 (expand_GOMP_SIMT_XCHG_BFLY): New.
2073 (expand_GOMP_SIMT_XCHG_IDX): New.
2074 * internal-fn.def (GOMP_SIMT_LANE): New.
2075 (GOMP_SIMT_VF): New.
2076 (GOMP_SIMT_LAST_LANE): New.
2077 (GOMP_SIMT_ORDERED_PRED): New.
2078 (GOMP_SIMT_VOTE_ANY): New.
2079 (GOMP_SIMT_XCHG_BFLY): New.
2080 (GOMP_SIMT_XCHG_IDX): New.
2081 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
2082 (create_omp_child_function): ...here. Set "omp target entrypoint"
2083 or "omp declare target" attribute based on is_gimple_omp_offloaded.
2084 (omp_max_simt_vf): New. Use it...
2085 (omp_max_vf): ...here.
2086 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
2087 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
2088 (lower_omp_ordered): Likewise, for "ordered" lowering.
2089 (expand_omp_simd): Add SIMT transforms.
2090 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
2091 (execute_omp_device_lower): New.
2092 (pass_data_omp_device_lower): New.
2093 (pass_omp_device_lower): New pass.
2094 (make_pass_omp_device_lower): New.
2095 * passes.def (pass_omp_device_lower): Position new pass.
2096 * tree-pass.h (PROP_gimple_lomp_dev): Define.
2097 (make_pass_omp_device_lower): Declare.
2098
2099 2016-11-22 Jakub Jelinek <jakub@redhat.com>
2100
2101 PR target/78451
2102 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
2103 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
2104 _mm_setzero_di.
2105 (_mm_maskz_load_epi64): Likewise.
2106 (_mm_setzero_hi): Removed.
2107 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
2108 _mm_setzero_di.
2109 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
2110 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
2111 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
2112 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
2113 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
2114 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
2115 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
2116 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
2117 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
2118 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
2119 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
2120 Likewise.
2121 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
2122 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
2123 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
2124 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
2125 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
2126 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
2127 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
2128 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
2129 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
2130 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
2131 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
2132 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
2133 instead of _mm_setzero_hi.
2134 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
2135 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
2136 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
2137 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
2138 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
2139 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
2140 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
2141 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
2142 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
2143 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
2144 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
2145 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
2146 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
2147 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
2148 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
2149 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
2150 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
2151 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
2152 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
2153 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
2154 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
2155 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
2156 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
2157 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
2158 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
2159 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
2160 _mm_setzero_di.
2161 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
2162 instead of _mm_setzero_hi.
2163 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
2164 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
2165 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
2166 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
2167 _mm_setzero_si128 instead of _mm_setzero_di.
2168 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
2169 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
2170 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
2171 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
2172 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
2173 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
2174 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
2175 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
2176 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
2177 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
2178 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
2179 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
2180 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
2181 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
2182 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
2183 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
2184 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
2185 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
2186 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
2187 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
2188 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
2189 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
2190 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
2191 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
2192 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
2193 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
2194 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
2195 _mm512_maskz_insertf32x8): Formatting fixes.
2196 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
2197 _mm_setzero_si128 instead of _mm_setzero_di.
2198 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
2199 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
2200 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
2201 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
2202 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
2203 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
2204 _mm_setzero_si128 instead of _mm_setzero_di.
2205 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
2206 Likewise in macros.
2207 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
2208 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
2209 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
2210 _mm_setzero_si128 instead of _mm_setzero_hi.
2211 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
2212 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
2213 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
2214 instead of _mm_setzero_di.
2215 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
2216 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
2217 _mm_setzero_hi.
2218 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
2219 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
2220 _mm_setzero_hi.
2221 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
2222 _mm_setzero_di.
2223 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
2224 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
2225 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
2226
2227 2016-11-22 Carl Love <cel@us.ibm.com>
2228
2229 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
2230 equal and vector compare not equal. The vector compares take two
2231 arguments of type vector bool char, vector bool short, vector bool int,
2232 vector bool long long with the same return type.
2233 * doc/extend.texi: Update built-in documentation file for the new
2234 powerpc built-ins.
2235
2236 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
2237
2238 * Makefile.in ($(lang_checks_parallelized)): Fix detection
2239 of -j argument.
2240
2241 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
2242
2243 * config.gcc: Allow new rmprofile value for configure option
2244 --with-multilib-list.
2245 * config/arm/t-rmprofile: New file.
2246 * doc/install.texi (--with-multilib-list): Document new rmprofile value
2247 for ARM.
2248
2249 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2250
2251 PR target/78439
2252 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
2253 register operand in alternatives 4,5,6.
2254
2255 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
2256
2257 PR target/77904
2258 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
2259 in save register mask if it is needed.
2260
2261 2016-11-22 Jakub Jelinek <jakub@redhat.com>
2262
2263 PR tree-optimization/78436
2264 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
2265 (shift_bytes_in_array, shift_bytes_in_array_right,
2266 merged_store_group::apply_stores): Formatting fixes.
2267 (clear_bit_region): Likewise. Use memset.
2268 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
2269 instead of EXPR and inerted instead of inserted. Use memset instead
2270 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
2271 if shift_amnt is 0.
2272
2273 PR middle-end/78416
2274 * expmed.c (expand_divmod): Use wide_int for computation of
2275 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
2276 Use size <= HOST_BITS_PER_WIDE_INT instead of
2277 HOST_BITS_PER_WIDE_INT >= size.
2278
2279 PR tree-optimization/78445
2280 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
2281 any_complicated_phi, version loop even if flag_tree_loop_if_convert
2282 is 1. Formatting fix.
2283
2284 2016-11-22 Martin Liska <mliska@suse.cz>
2285
2286 PR ipa/78309
2287 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
2288 (sem_function::get_hash): Use the new field.
2289 (sem_function::parse): Remove an argument from ctor.
2290 (sem_variable::parse): Likewise.
2291 (sem_variable::get_hash): Use the new field.
2292 (sem_item_optimizer::read_section): Use new ctor and set hash.
2293 * ipa-icf.h: _hash is removed from sem_item::sem_item,
2294 sem_variable::sem_variable, sem_function::sem_function.
2295
2296 2016-11-21 Jeff Law <law@redhat.com>
2297
2298 PR target/68538
2299 * config/cris/cris.md: Don't call copy_to_mode_reg unless
2300 can_create_pseudo_p is true.
2301
2302 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
2303
2304 PR target/68803
2305 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
2306 *rotldi3_insert_7): New define_insns.
2307
2308 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
2309
2310 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
2311 so that DImode can be allocated to FP/vector registers in more
2312 cases, and we can avoid direct move operations. If the register
2313 needs reloading, prefer GPRs over FP/vector registers. In the
2314 case of FPR vs. Altivec registers, prefer FPR registers unless we
2315 have the ISA 3.0 reg+offset scalar instructions.
2316 (movdi_internal64): Likewise.
2317
2318 2016-11-21 Jakub Jelinek <jakub@redhat.com>
2319
2320 PR middle-end/67335
2321 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
2322 for tmp simd array if DECL_NAME (parm) is NULL.
2323
2324 2016-11-20 Jeff Law <law@redhat.com>
2325
2326 PR target/25128
2327 * config/m68k/predicates.md (swap_peephole_relational_operator): New
2328 predicate.
2329 * config/m68k/m68k.md (relational tests against 65535/65536): New
2330 peephole2.
2331
2332 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2333
2334 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
2335
2336 2016-11-21 Martin Sebor <msebor@redhat.com>
2337
2338 * doc/invoke.texi (-fprintf-return-value): Document that option
2339 is enabled by default.
2340
2341 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
2342
2343 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
2344 for-loop declaration of loop variable.
2345 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
2346 * config/avr/avr.c (avr_popcount_each_byte)
2347 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
2348 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
2349 (avr_expand_epilogue, avr_function_arg_advance)
2350 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
2351 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
2352 (avr_adjust_reg_alloc_order, output_reload_in_const)
2353 (avr_conditional_register_usage, avr_find_unused_d_reg)
2354 (avr_map_decompose, avr_fold_builtin): Same.
2355
2356 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
2357
2358 * config/avr/avr.c (avr_popcount): Remove static function.
2359 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
2360
2361 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
2362
2363 * arm.opt (mapcs-float): Delete option.
2364 * arm.c (arm_option_override): Remove hunk relating to
2365 TARGET_APCS_FLOAT.
2366 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
2367
2368 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
2369
2370 * tree-tailcall.c (process_assignment): Simplify the check for
2371 a valid copy, allowing the source to be a local variable as
2372 well as an SSA name.
2373 (find_tail_calls): Allow copies between local variables to follow
2374 the call. Allow the result to be stored in any local variable,
2375 even if it's an aggregate.
2376 (eliminate_tail_call): Check whether the result is an SSA name
2377 before updating its SSA_NAME_DEF_STMT.
2378
2379 2016-11-21 David Malcolm <dmalcolm@redhat.com>
2380
2381 PR preprocessor/78324
2382 * input.c (get_substring_ranges_for_loc): Fail gracefully if
2383 -ftrack-macro-expansion has a value other than 2.
2384
2385 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
2386
2387 PR rtl-optimization/78400
2388 * shrink-wrap.c (try_shrink_wrapping_separate): Call
2389 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
2390 and df_update_exit_block_uses.
2391
2392 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2393
2394 PR c++/71973
2395 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
2396 new default-enabled warning..
2397 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
2398 (BT_PTR_CONST_STRING): Updated.
2399 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
2400 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
2401 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
2402 (strftime): Update builtin function.
2403 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
2404 * tree.h (const_tm_ptr_type_node): New type node.
2405 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
2406 const_tm_ptr_type_node.
2407
2408 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2409
2410 PR tree-optimization/78413
2411 * tree-if-conv.c (versionable_outer_loop_p): Require that both
2412 inner and outer loop latches have single predecessors.
2413
2414 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
2415
2416 PR target/78093
2417 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
2418 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
2419
2420 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2421
2422 * rtl.h: Adjust prototype.
2423 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
2424 (dead_or_set_regno_p): Likewise.
2425
2426 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2427
2428 * rtl.h: Adjust prototype.
2429 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
2430
2431 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2432
2433 * function.c (contains): Change argument type to rtx_insn *.
2434 (prologue_contains): Likewise.
2435 (epilogue_contains): Likewise.
2436 (prologue_epilogue_contains): Likewise.
2437 * function.h: Adjust prototype.
2438
2439 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2440
2441 * optabs.c (emit_libcall_block): Change argument type to
2442 rtx_insn *.
2443 * optabs.h: Adjust prototype.
2444
2445 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2446
2447 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
2448 (fixup_reorder_chain): Adjust.
2449 * cfgrtl.h: Adjust prototype.
2450
2451 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2452
2453 * rtl.h: Adjust prototype.
2454 * rtlanal.c (replace_label_in_insn): Change argument type to
2455 rtx_insn *.
2456
2457 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2458
2459 * config/v850/v850.c (expand_prologue): Adjust.
2460 (expand_epilogue): Likewise.
2461 * expr.c (init_expr_target): Likewise.
2462 * genrecog.c (print_subroutine): Always make the argument type
2463 rtx_insn *.
2464 * recog.h: Adjust prototype.
2465
2466 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2467
2468 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
2469 up variables to make some rtx_insn *.
2470 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
2471 * config/arc/arc.c: Likewise.
2472 * config/arm/arm.c: Likewise.
2473 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
2474 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
2475 Likewise.
2476 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
2477
2478 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2479
2480 * config/arm/arm.c (legitimize_pic_address): Change to use
2481 rtx_insn * as the type of variables.
2482 (arm_pic_static_addr): Likewise.
2483 (arm_emit_movpair): Likewise.
2484 * config/c6x/c6x.c (reorg_split_calls): Likewise.
2485 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
2486 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
2487 * config/frv/frv.md: Likewise.
2488 * config/i386/i386-protos.h: Likewise.
2489 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
2490 (ix86_split_fp_branch): Likewise.
2491 (predict_jump): Likewise.
2492 * config/ia64/ia64.c: Likewise.
2493 * config/mcore/mcore.c: Likewise.
2494 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
2495 * config/s390/s390.c: Likewise.
2496 * config/s390/s390.md: Likewise.
2497 * config/spu/spu.md: Likewise.
2498 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
2499 * lower-subreg.c (resolve_simple_move): Likewise.
2500
2501 2016-11-20 Jeff Law <law@redhat.com>
2502
2503 PR target/48551
2504 * reload.h (struct target_reload): Make x_double_reg_address_ok
2505 be per-mode rather.
2506 * reload.c (find_reloads_address): Check if double_reg_address_ok
2507 is true for the mode of the memory reference.
2508 * reload1.c (init_reload): Initialize double_reg_address_ok for
2509 each mode.
2510
2511 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
2512
2513 PR middle-end/61409
2514 * tree-ssa-uninit.c: Define new global max_phi_args.
2515 (compute_uninit_opnds_pos): Use max_phi_args.
2516 (prune_uninit_phi_opnds): Same.
2517 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
2518 missing NUM_PREDS in function comment.
2519 (can_one_predicate_be_invalidated_p): New.
2520 (can_chain_union_be_invalidated_p): New.
2521 (flatten_out_predicate_chains): New.
2522 (uninit_ops_invalidate_phi_use): New.
2523 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
2524
2525 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
2526
2527 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
2528 * match.pd (A /[ex] B CMP C): New simplifications.
2529
2530 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
2531
2532 * match.pd (0 / X, X / X, X % X): New simplifications.
2533
2534 2016-11-19 Jakub Jelinek <jakub@redhat.com>
2535
2536 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
2537 when checking if callee's isa flags are subset of caller's isa flags.
2538 Fix comment wording.
2539
2540 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
2541 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
2542 instead and using = 0 instead of &= 0.
2543
2544 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
2545 ix86_add_new_builtins): Formatting fixes.
2546 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
2547 (ix86_get_builtin): Likewise.
2548
2549 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
2550 don't initialize it, don't use it for the case where it isn't
2551 provable %{z} nor using the same argument, instead move merge
2552 argument into a new pseudo and use that as target. Formatting fixes.
2553
2554 2016-11-19 Jeff Law <law@redhat.com>
2555
2556 PR target/25111
2557 * config/m68k/m68k.md (bsetdreg): New pattern.
2558 (bchgdreg, bclrdreg): Likewise.
2559
2560 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
2561
2562 PR target/78426
2563 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
2564 instead of force_reg.
2565 (sh_expand_setmem): Likewise.
2566
2567 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
2568
2569 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
2570
2571 2016-11-18 Walter Lee <walt@tilera.com>
2572
2573 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
2574 end-of-bundle marker for consecutive barriers.
2575
2576 2016-11-18 Walter Lee <walt@tilera.com>
2577
2578 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
2579
2580 2016-11-18 Jakub Jelinek <jakub@redhat.com>
2581
2582 PR middle-end/78419
2583 * multiple_target.c (get_attr_len): Start with argnum and increment
2584 argnum on every arg. Use strchr in a loop instead of counting commas
2585 manually.
2586 (get_attr_str): Increment argnum for every comma in the string.
2587 (separate_attrs): Use for instead of while loop, simplify.
2588 (expand_target_clones): Rename defenition argument to definition.
2589 Free attrs and attr_str even when diagnosing errors. Temporarily
2590 change input_location around targetm.target_option.valid_attribute_p
2591 calls. Don't emit warning or errors if that function fails.
2592
2593 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
2594
2595 PR debug/78191
2596 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
2597 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
2598 abbrev_opt_base_type_end only by increasing die_abbrev, before
2599 any other dies.
2600 (optimize_abbrev_table): Don't change abbrev numbers of
2601 base types and CU or optimize implicit consts in them if
2602 calc_base_type_die_sizes has been called during build_abbrev_table.
2603 (calc_base_type_die_sizes): If abbrev_opt_start, set
2604 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
2605
2606 2016-11-18 Jeff Law <law@redhat.com>
2607
2608 PR target/25112
2609 * config/m68k/m68k.c (moveq feeding equality comparison): New
2610 peepholes.
2611 * config/m68k/predicates.md (addq_subq_operand): New predicate.
2612 (equality_comparison_operator): Likewise.
2613
2614 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
2615
2616 * rtlanal.c (load_extend_op): Move to...
2617 * rtl.h: ...here and make inline.
2618
2619 2016-11-18 Terry Guo <terry.guo@arm.com>
2620 Thomas Preud'homme <thomas.preudhomme@arm.com>
2621
2622 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
2623 * config/arm/arm-opts.h: Include arm-flags.h.
2624 (struct arm_arch_core_flag): Define.
2625 (arm_arch_core_flags): Define.
2626 * config/arm/arm-protos.h: Include arm-flags.h
2627 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
2628 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
2629 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
2630 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
2631 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
2632 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
2633 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
2634 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
2635 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
2636 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
2637 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
2638 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
2639 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
2640 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
2641 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
2642 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
2643 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
2644 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
2645 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
2646 ARM_FSET_CPU_SUBSET): Move to ...
2647 * config/arm/arm-flags.h: This new file.
2648 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
2649 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
2650 (TARGET_MODE_SPECS): Define.
2651 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
2652
2653 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
2654
2655 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
2656 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
2657 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
2658 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
2659 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
2660 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
2661 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
2662 missing and make value unsigned.
2663 (arm_feature_set): Use unsigned entries instead of unsigned long.
2664
2665 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
2666
2667 Re-apply after PR bootstrap/77359 is fixed:
2668 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2669
2670 * explow.c (get_dynamic_stack_size): Take known alignment of stack
2671 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
2672 size needed.
2673
2674 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
2675
2676 PR bootstrap/77359
2677 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
2678 variables in functions calling alloca. Also update the ASCII
2679 drawings.
2680 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
2681 (STACK_DYNAMIC_OFFSET): Likewise.
2682 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
2683 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
2684 macros to aix.h.
2685
2686 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
2687 Alan Hayward <alan.hayward@arm.com>
2688 David Sherwood <david.sherwood@arm.com>
2689
2690 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
2691 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
2692 (add_const_value_attribute): Likewise.
2693 * explow.c (plus_constant): Likewise.
2694 * expmed.c (expand_mult, make_tree): Likewise.
2695 * expr.c (convert_modes): Likewise.
2696 * loop-doloop.c (doloop_optimize): Likewise.
2697 * postreload.c (reload_cse_simplify_set): Likewise.
2698 * simplify-rtx.c (simplify_const_unary_operation): Likewise
2699 (simplify_binary_operation_1, simplify_const_binary_operation):
2700 Likewise.
2701 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
2702 * wide-int.h: Update documentation to recommend rtx_mode_t
2703 instead of std::make_pair.
2704
2705 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
2706 Alan Hayward <alan.hayward@arm.com>
2707 David Sherwood <david.sherwood@arm.com>
2708
2709 * tree.h (SET_DECL_MODE): New macro.
2710 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
2711 (expand_gimple_basic_block): Likewise.
2712 * function.c (split_complex_args): Likeise.
2713 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2714 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
2715 * stor-layout.c (layout_decl, relayout_decl): Likewise.
2716 (finish_bitfield_representative): Likewise.
2717 * tree.c (make_node_stat): Likewise.
2718 * tree-inline.c (remap_ssa_name): Likewise.
2719 (tree_function_versioning): Likewise.
2720 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
2721 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2722 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2723 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
2724 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
2725 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
2726 * varasm.c (make_debug_expr_from_rtl): Likewise.
2727
2728 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
2729
2730 PR rtl-optimization/71785
2731 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
2732 (duplicate_computed_gotos): New function.
2733 (pass_duplicate_computed_gotos::execute): Rewrite.
2734
2735 2016-11-17 Jeff Law <law@redhat.com>
2736
2737 PR target/47192
2738 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
2739 barrier prior to deallocating the stack.
2740
2741 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
2742
2743 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
2744 to make better use of cmem loads in the case where a single bit is
2745 being accessed.
2746 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
2747
2748 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
2749
2750 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
2751 F_AVX5124FMAPS.
2752 (isa_names_table): Handle new features.
2753
2754 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
2755 Andrew Senkevich <andrew.senkevich@intel.com>
2756
2757 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
2758 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
2759 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
2760 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
2761 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
2762 * config/i386/avx5124fmapsintrin.h: New file.
2763 * config/i386/avx5124vnniwintrin.h: Ditto.
2764 * config/i386/constraints.md (h): New constraint.
2765 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
2766 * config/i386/driver-i386.c (host_detect_local_cpu):
2767 Detect avx5124fmaps, avx5124vnniw.
2768 * config/i386/i386-builtin-types.def: Add types
2769 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
2770 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
2771 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
2772 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
2773 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
2774 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
2775 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
2776 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
2777 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
2778 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
2779 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
2780 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
2781 __builtin_ia32_vp4dpwssds_mask): New.
2782 * config/i386/i386-c.c (ix86_target_macros_internal):
2783 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
2784 * config/i386/i386-modes.def: Fixed comment typos, added new
2785 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
2786 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
2787 -mavx5124vnniw.
2788 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
2789 (ix86_option_override_internal): Handle new options.
2790 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
2791 avx5124vnniw.
2792 (ix86_expand_builtin): Handle new builtins.
2793 (ix86_additional_allocno_class_p): New.
2794 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
2795 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
2796 (reg_class): Add MOD4_SSE_REGS.
2797 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
2798 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
2799 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
2800 avx5124vnniwintrin.h.
2801 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
2802 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
2803 (define_mode_iterator IMOD4): New.
2804 (define_mode_attr imod4_narrow): Ditto.
2805 (define_insn "mov<mode>"): Ditto.
2806 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
2807 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
2808 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
2809 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
2810 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
2811 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
2812 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
2813 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
2814 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
2815 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
2816 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
2817 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
2818 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
2819 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
2820 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
2821 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
2822 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
2823 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
2824 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
2825 * genmodes.c (mode_size_inline): Extend return type.
2826 * machmode.h (mode_size, mode_base_align): Extend type.
2827
2828 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
2829
2830 PR target/78101
2831 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
2832 the appropriate checks for SFmode/DFmode load/stores in GPR
2833 registers.
2834 (fusion_addis_mem_combo_store): Likewise.
2835 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
2836 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
2837 d-form instructions for traditional Altivec registers.
2838 (emit_fusion_p9_load): Likewise.
2839 (emit_fusion_p9_store): Likewise.
2840 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
2841 early clobber from scratch register. Do not match if the register
2842 being stored is the scratch register.
2843 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
2844 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
2845 instructions for traditional Altivec registers.
2846 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
2847 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
2848 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
2849
2850 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
2851
2852 PR target/77933
2853 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
2854 being live in the function and lr needing to be saved. Distinguish
2855 between already saved pushable registers and registers to push.
2856 Check for LR being an available pushable register.
2857
2858 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2859
2860 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
2861 string input is a string constant.
2862 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
2863 via cmpstrnsi even if neither string is constant.
2864
2865 2016-11-17 Jakub Jelinek <jakub@redhat.com>
2866
2867 PR middle-end/78201
2868 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
2869 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
2870 instead, return false if it is NULL, or doesn't fit into uhwi, or
2871 is larger or equal to targetm.max_anchor_offset.
2872
2873 2016-11-17 Pip Cet <pipcet@gmail.com>
2874 Eric Botcazou <ebotcazou@adacore.com>
2875
2876 PR rtl-optimization/78355
2877 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
2878 needs to deal with unaligned accesses.
2879 * doc/tm.texi: Regenerate.
2880 * lra-constraints.c (simplify_operand_subreg): Only invoke
2881 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
2882
2883 2016-11-17 David Malcolm <dmalcolm@redhat.com>
2884
2885 * input.c (selftest::test_lexer_string_locations_long_line): New
2886 function.
2887 (selftest::test_lexer_string_locations_raw_string_multiline): New
2888 function.
2889 (selftest::input_c_tests): Call the new functions, via
2890 for_each_line_table_case.
2891
2892 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2893
2894 * config/aarch64/aarch64.md (mov<mode>): Call
2895 aarch64_split_dimode_const_store on DImode constant stores.
2896 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
2897 New prototype.
2898 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
2899 function.
2900
2901 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2902 Richard Biener <rguenther@suse.de>
2903
2904 PR tree-optimization/77848
2905 * tree-if-conv.c (tree_if_conversion): Always version loops unless
2906 the user specified -ftree-loop-if-convert.
2907
2908 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
2909
2910 PR target/77308
2911 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
2912 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
2913 *thumb2_strd_base_neg): Recognize insn regardless of
2914 current_tune->prefer_ldrd_strd.
2915 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
2916 whenever possible.
2917
2918 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
2919
2920 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
2921 instruction type.
2922
2923 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
2924
2925 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
2926 for arcem.
2927 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
2928 * config/arc/arc-cpus.def (quarkse_em): Add.
2929 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
2930 * config/arc/arc-opts.h (FPX_QK): Define.
2931 * config/arc/arc-tables.opt: Regenerate.
2932 * config/arc/arc.c (gen_compare_reg): Change.
2933 (arc_register_move_cost): Avoid Dy,Dx moves.
2934 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
2935 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
2936 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
2937 New expands.
2938 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
2939 (fix_truncsfsi2_fpu): Rename.
2940 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
2941 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
2942 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
2943 * config/arc/t-multilib: Regenerate.
2944
2945 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
2946
2947 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
2948 appropriate.
2949 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
2950 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
2951 (avr_rtx_costs_1, extra_constraint_Q): Same.
2952 (avr_address_cost): Use SUBREG_P if possible.
2953
2954 2016-11-17 Richard Biener <rguenther@suse.de>
2955
2956 PR middle-end/78383
2957 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
2958 non-local goto into CFG.
2959
2960 2016-11-17 Richard Biener <rguenther@suse.de>
2961
2962 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
2963 backward compatibility.
2964 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
2965 * tree-if-conv.c (pass_if_conversion::gate): Do not test
2966 flag_tree_loop_if_convert_stores.
2967 (pass_if_conversion::execute): Likewise.
2968
2969 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2970
2971 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
2972 const_double code before calling aarch64_float_const_zero_rtx_p.
2973
2974 2016-11-17 Richard Biener <rguenther@suse.de>
2975
2976 PR tree-optimization/78306
2977 * ipa-inline-analysis.c (initialize_inline_failed): Do not
2978 inhibit inlining if function calls cilk_spawn.
2979 (can_inline_edge_p): Likewise.
2980
2981 2016-11-17 Richard Biener <rguenther@suse.de>
2982
2983 PR middle-end/78305
2984 * fold-const.c (negate_expr_p): Fix multiplication case.
2985
2986 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
2987
2988 PR target/78357
2989 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
2990 condition.
2991 (TARGET_INIT_LIBFUNCS): Delete definition and...
2992 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
2993 comments.
2994
2995 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
2996
2997 * config/netbsd-stdint.h: New.
2998 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
2999 (x86_64-*-netbsd*): Likewise.
3000
3001 2016-11-16 Andrew PInski <apinski@cavium.com>
3002
3003 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
3004 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
3005 flag_aarch64_verbose_cost instead of checking for details dump.
3006 (aarch64_rtx_costs_wrapper): Likewise.
3007
3008 2016-11-16 Jakub Jelinek <jakub@redhat.com>
3009
3010 PR rtl-optimization/78378
3011 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
3012 inner only if pos is 0. Fix up formatting.
3013
3014 2016-11-17 Alan Modra <amodra@gmail.com>
3015
3016 PR rtl-optimization/78325
3017 PR rtl-optimization/70890
3018 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
3019 for dead regno.
3020
3021 2016-11-16 Jason Merrill <jason@redhat.com>
3022
3023 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
3024
3025 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3026 Richard Biener <rguenther@suse.de>
3027
3028 PR tree-optimization/77848
3029 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
3030 an outer loop, only save basic block aux information for the inner
3031 loop.
3032 (versionable_outer_loop_p): New function.
3033 (tree_if_conversion): Version the outer loop instead of the inner
3034 one if the pattern will be recognized for outer-loop
3035 vectorization.
3036
3037 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
3038
3039 * gcc/bb-reorder.c: Remove 'toplev.h' include.
3040 (pass_partition_blocks::gate): No longer check
3041 user_defined_section_attribute, instead check the function decl
3042 for a section attribute.
3043 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
3044 set user_defined_section_attribute.
3045 * gcc/final.c (rest_of_handle_final): Likewise.
3046 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
3047 * gcc/toplev.h: Remove declaration of
3048 user_defined_section_attribute.
3049
3050 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3051
3052 * config/mips/mips.md (casesi_internal_mips16_<mode>):
3053 Explicitly switch between JR and JRC for the table jump. Adjust
3054 instruction count.
3055
3056 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3057
3058 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
3059 `insn_count' to 11 rather than 16.
3060
3061 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3062
3063 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
3064 `ltu' rather than `leu' operation in the RTL pattern
3065
3066 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3067
3068 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
3069 missing <d> instruction prefixes throughout. Correct
3070 formatting.
3071
3072 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3073
3074 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
3075 rather than R_MIPS_JALR relocation in microMIPS code. Do not
3076 cancel short delay slots in PIC call relaxation.
3077
3078 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
3079
3080 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
3081 general register with general register or ARM constant into SP
3082 register.
3083
3084 2016-11-16 Jakub Jelinek <jakub@redhat.com>
3085
3086 PR fortran/78299
3087 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
3088 that loop->header == body_bb if broken_loop.
3089
3090 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
3091
3092 * tree-ssa-math-opts.c (bswap_replace): Remove test
3093 of SLOW_UNALIGNED_ACCESS.
3094
3095 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
3096
3097 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
3098 is selected. Pass -mgomp to offload compiler in OpenMP case.
3099 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
3100 declaration from nvptx.c.
3101 (nvptx_gen_shuffle): Declare.
3102 (nvptx_output_set_softstack): Declare.
3103 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
3104 (need_softstack_decl): New variable.
3105 (need_unisimt_decl): New variable.
3106 (diagnose_openacc_conflict): New. Use it...
3107 (nvptx_option_override): ...here. Handle TARGET_GOMP.
3108 (nvptx_encode_section_info): Handle "shared" attribute.
3109 (write_as_kernel): Restrict to OpenACC target regions.
3110 (init_softstack_frame): New.
3111 (nvptx_init_unisimt_predicate): New.
3112 (write_omp_entry): New. Use it...
3113 (nvptx_declare_function_name): ...here to emit OpenMP target region
3114 entrypoints. Handle TARGET_SOFT_STACK. Call
3115 nvptx_init_unisimt_predicate.
3116 (nvptx_output_set_softstack): New.
3117 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
3118 (nvptx_gen_shuffle): Export.
3119 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
3120 predicate.
3121 (nvptx_print_operand): Fix handling of instruction predicates.
3122 (nvptx_get_unisimt_master): New helper function.
3123 (nvptx_get_unisimt_predicate): Ditto.
3124 (nvptx_call_insn_is_syscall_p): Ditto.
3125 (nvptx_unisimt_handle_set): Ditto.
3126 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
3127 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
3128 (nvptx_handle_shared_attribute): New. Use it...
3129 (nvptx_attribute_table): ... here (new entry).
3130 (nvptx_record_offload_symbol): Handle NULL attributes.
3131 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
3132 (nvptx_simt_vf): New.
3133 (TARGET_SIMT_VF): Define.
3134 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
3135 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
3136 -muniform-simt option is active.
3137 (STACK_SIZE_MODE): Define.
3138 (FIXED_REGISTERS): Adjust.
3139 (SOFTSTACK_SLOT_REGNUM): New.
3140 (SOFTSTACK_PREV_REGNUM): New.
3141 (REGISTER_NAMES): Adjust.
3142 (struct machine_function): New fields.
3143 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
3144 (UNSPEC_VOTE_BALLOT): Ditto.
3145 (UNSPEC_LANEID): Ditto.
3146 (UNSPECV_NOUNROLL): Ditto.
3147 (atomic): New attribute.
3148 (predicable): New attribute. Generate predicated forms via
3149 define_cond_exec.
3150 (br_true): Mark as not predicable.
3151 (br_false): Ditto.
3152 (br_true_uni): Ditto.
3153 (br_false_uni): Ditto.
3154 (return): Ditto.
3155 (trap_if_true): Ditto.
3156 (trap_if_false): Ditto.
3157 (nvptx_fork): Ditto.
3158 (nvptx_forked): Ditto.
3159 (nvptx_joining): Ditto.
3160 (nvptx_join): Ditto.
3161 (nvptx_barsync): Ditto.
3162 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
3163 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
3164 (allocate_stack_<mode>): Remove unused pattern.
3165 (set_softstack_insn): New pattern.
3166 (restore_stack_block): Handle for TARGET_SOFT_STACK.
3167 (nvptx_vote_ballot): New pattern.
3168 (omp_simt_lane): Ditto.
3169 (omp_simt_last_lane): Ditto.
3170 (omp_simt_ordered): Ditto.
3171 (omp_simt_vote_any): Ditto.
3172 (omp_simt_xchg_bfly): Ditto.
3173 (omp_simt_xchg_idx): Ditto.
3174 (nvptx_nounroll): Ditto.
3175 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
3176 (atomic_exchange<mode>): Ditto.
3177 (atomic_fetch_add<mode>): Ditto.
3178 (atomic_fetch_addsf): Ditto.
3179 (atomic_fetch_<logic><mode>): Ditto.
3180 * config/nvptx/nvptx.opt (msoft-stack): New option.
3181 (muniform-simt): Ditto.
3182 (mgomp): Ditto.
3183 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
3184 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
3185 * doc/invoke.texi (msoft-stack): Document.
3186 (muniform-simt): Document
3187 (mgomp): Document.
3188 * doc/tm.texi: Regenerate.
3189 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
3190 * target.def: Define it.
3191 * target-insns.def (omp_simt_lane): New.
3192 (omp_simt_last_lane): New.
3193 (omp_simt_ordered): New.
3194 (omp_simt_vote_any): New.
3195 (omp_simt_xchg_bfly): New.
3196 (omp_simt_xchg_idx): New.
3197
3198 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3199
3200 * config/mips/mips-protos.h (mips_set_text_contents_type): New
3201 prototype.
3202 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
3203 (ASM_OUTPUT_CASE_END): Likewise.
3204 * config/mips/mips.c (mips_set_text_contents_type): New function.
3205 (mips16_emit_constants): Record the pool's initial label number
3206 with the `consttable' insn. Emit a `consttable_end' insn at the end.
3207 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
3208 for `consttable' insns.
3209 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
3210 for `consttable_end' insns.
3211 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
3212 (consttable): Add operand.
3213 (consttable_end): New insn.
3214
3215 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
3216
3217 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
3218 * tree-if-conv.c (tree_if_conversion): Make public.
3219 * * tree-if-conv.h: New file.
3220 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
3221 dynamic alias checks for epilogues.
3222 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
3223 * tree-vect-loop.c: include tree-if-conv.h.
3224 (new_loop_vec_info): Add zeroing orig_loop_info field.
3225 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
3226 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
3227 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
3228 using passed argument.
3229 (vect_transform_loop): Check if created epilogue should be returned
3230 for further vectorization with less vf. If-convert epilogue if
3231 required. Print vectorization success for epilogue.
3232 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
3233 if it is required, pass loop_vinfo produced during vectorization of
3234 loop body to vect_analyze_loop.
3235 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3236 orig_loop_info.
3237 (LOOP_VINFO_ORIG_LOOP_INFO): New.
3238 (LOOP_VINFO_EPILOGUE_P): New.
3239 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
3240 (vect_do_peeling): Change prototype to return epilogue.
3241 (vect_analyze_loop): Add argument of loop_vec_info type.
3242 (vect_transform_loop): Return created loop.
3243
3244 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3245
3246 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
3247 component as used also if LR_REGNO is a live input to the bb.
3248 * df-scan.c (df_get_entry_block_def_set): Return immediately after
3249 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
3250 (df_get_exit_block_use_set): Ditto.
3251 * df.h (df_scan_flags): New enum.
3252 * shrink-wrap.c (try_shrink_wrapping_separate): Set
3253 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
3254 df_update_entry_block_defs and df_update_exit_block_uses
3255 at the start; clear the flag and call those functions at the end.
3256
3257 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
3258 Alan Hayward <alan.hayward@arm.com>
3259 David Sherwood <david.sherwood@arm.com>
3260
3261 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
3262 nb_iterations to the number of latch iterations rather than the
3263 number of loop iterations.
3264
3265 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
3266 Alan Hayward <alan.hayward@arm.com>
3267 David Sherwood <david.sherwood@arm.com>
3268
3269 * combine.c (maybe_swap_commutative_operands): New function.
3270 (combine_simplify_rtx): Use it.
3271 (change_zero_ext): Likewise.
3272 (make_compound_operation_int): New function, split out of...
3273 (make_compound_operation): ...here. Use
3274 maybe_swap_commutative_operands for both.
3275
3276 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
3277
3278 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
3279 (neon-vfpv3): New FPU, currently an alias for 'neon'.
3280 * arm/arm-tables.opt: Regenerated.
3281 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
3282 neon-vfpv3.
3283 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
3284 and 'neon' are aliases for specific implementations.
3285
3286 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
3287 Alan Hayward <alan.hayward@arm.com>
3288 David Sherwood <david.sherwood@arm.com>
3289
3290 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
3291 and use it in the final call to gen_rtx_fmt_ee.
3292 (expand_vec_cond_expr): Update accordingly.
3293 (expand_vec_cmp_expr): Likewise.
3294
3295 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
3296 Alan Hayward <alan.hayward@arm.com>
3297 David Sherwood <david.sherwood@arm.com>
3298
3299 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
3300
3301 2016-11-16 Richard Biener <rguenther@suse.de>
3302
3303 PR middle-end/78333
3304 * gimplify.c (gimplify_function_tree): Do not instrument
3305 GNU extern inline functions.
3306
3307 2016-11-16 Martin Liska <mliska@suse.cz>
3308
3309 PR sanitizer/78270
3310 * gimplify.c (gimplify_switch_expr): Always save previous
3311 gimplify_ctxp->live_switch_vars.
3312
3313 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
3316 zero_extract operations to allow a movb to occur.
3317 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
3318 * testsuite/gcc.target/arc/movb-2.c: Likewise.
3319 * testsuite/gcc.target/arc/movb-5.c: Likewise.
3320 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
3321 little endian arc.
3322
3323 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
3324 Alan Hayward <alan.hayward@arm.com>
3325 David Sherwood <david.sherwood@arm.com>
3326
3327 * expr.c (emit_group_load_1): Tighten check for whether an
3328 access involves only one operand of a CONCAT. Use extract_bit_field
3329 for constants if the bit range does span the whole operand.
3330
3331 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
3332 Alan Hayward <alan.hayward@arm.com>
3333 David Sherwood <david.sherwood@arm.com>
3334
3335 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
3336
3337 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
3338 Alan Hayward <alan.hayward@arm.com>
3339 David Sherwood <david.sherwood@arm.com>
3340
3341 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
3342 all three iteration counts with an any_* test. Use a single update
3343 for each count. Fix the calculation of nb_iterations_estimate.
3344
3345 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
3346
3347 * config/pdp11/pdp11.c: Include dbxout.h.
3348
3349 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
3350
3351 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
3352
3353 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3354
3355 PR target/78364
3356 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
3357 proper ranges for an SBFX instruction.
3358 (extzv_t2): Likewise for UBFX.
3359
3360 2016-11-16 Richard Biener <rguenther@suse.de>
3361
3362 PR tree-optimization/78348
3363 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
3364 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
3365 (classify_partition): Set PKIND_MEMCPY if dependence analysis
3366 revealed no dependency, PKIND_MEMMOVE otherwise.
3367
3368 2016-11-16 Jakub Jelinek <jakub@redhat.com>
3369
3370 PR sanitizer/77823
3371 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
3372 it points to non-NULL tree, use it instead of ubsan_create_data.
3373 (instrument_si_overflow): Handle vector signed integer overflow
3374 checking.
3375 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
3376 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
3377 vector IFN_UBSAN_CHECK_*.
3378 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
3379 pass it through to ubsan_build_overflow_builtin.
3380 (expand_neg_overflow, expand_mul_overflow): Likewise.
3381 (expand_vector_ubsan_overflow): New function.
3382 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
3383 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
3384 (expand_arith_overflow): Adjust expand_*_overflow callers.
3385
3386 2016-11-16 Matthias Klose <doko@ubuntu.com>
3387
3388 * doc/install.texi: Remove references to java/libjava.
3389
3390 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
3391
3392 * tree-ssa-coalesce.c (register_default_def): Remove
3393 register_ssa_partition.
3394 (create_outofssa_var_map): Likewise.
3395 * tree-ssa-live.c (register_ssa_partition_check): Remove.
3396 * tree-ssa-live.h (register_ssa_partition): Likewise.
3397
3398 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
3399
3400 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
3401 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
3402 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
3403 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
3404 rtx when all sub-rtx are also permanent.
3405 (attr_eq): Simplify.
3406 (attr_copy_rtx): Remove.
3407 (make_canonical, get_attr_value): Use attr_equal_p.
3408 (copy_boolean): Rehash NOT.
3409 (simplify_test_exp_in_temp,
3410 optimize_attrs): Remove call to attr_copy_rtx.
3411 (attr_alt_intersection, attr_alt_union,
3412 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
3413 (make_automaton_attrs): Use attr_eq.
3414
3415 2016-11-15 Matthias Klose <doko@ubuntu.com>
3416
3417 * doc/install.texi: Remove references to java/libjava.
3418 * doc/sourcebuild.texi: Likewise.
3419 * doc/invoke.texi: Likewise.
3420 * doc/standards.texi: Likewise.
3421
3422 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
3423 Alan Hayward <alan.hayward@arm.com>
3424 David Sherwood <david.sherwood@arm.com>
3425
3426 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
3427 of VOIDmode.
3428 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3429 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3430 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3431 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3432 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3433 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3434 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3435
3436 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
3437 Alan Hayward <alan.hayward@arm.com>
3438 David Sherwood <david.sherwood@arm.com>
3439
3440 * dce.c (check_argument_store): Pass the size instead of
3441 the memory reference.
3442 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
3443
3444 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
3445 Alan Hayward <alan.hayward@arm.com>
3446 David Sherwood <david.sherwood@arm.com>
3447
3448 * alias.c (canon_rtx): Use simplify_gen_binary.
3449
3450 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
3451 Alan Hayward <alan.hayward@arm.com>
3452 David Sherwood <david.sherwood@arm.com>
3453
3454 * rtl.h (load_extend_op): Declare.
3455 * rtlanal.c (load_extend_op): New function.
3456 (nonzero_bits1): Use it.
3457 (num_sign_bit_copies1): Likewise.
3458 * cse.c (cse_insn): Likewise.
3459 * fold-const.c (fold_single_bit_test): Likewise.
3460 (fold_unary_loc): Likewise.
3461 * fwprop.c (free_load_extend): Likewise.
3462 * postreload.c (reload_cse_simplify_set): Likewise.
3463 (reload_cse_simplify_operands): Likewise.
3464 * combine.c (try_combine): Likewise.
3465 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
3466 subreg_lowpart_p checks.
3467
3468 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
3469 Alan Hayward <alan.hayward@arm.com>
3470 David Sherwood <david.sherwood@arm.com>
3471
3472 * combine.c (simplify_shift_const_1): Use the number of bits
3473 in the inner mode to determine the range of the shift.
3474 When handling shifts of vectors, skip any rules that apply
3475 only to scalars.
3476
3477 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
3478 Alan Hayward <alan.hayward@arm.com>
3479 David Sherwood <david.sherwood@arm.com>
3480
3481 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
3482 handling VOIDmode.
3483
3484 2016-11-15 Matthias Klose <doko@ubuntu.com>
3485
3486 * doc/install.texi: Remove references to gcj/libjava.
3487 * doc/invoke.texi: Likewise.
3488
3489 2016-11-15 Jeff Law <law@redhat.com>
3490
3491 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
3492 parameter. Callers changed.
3493 (check-subpath_and_update_thread_path): Extracted from
3494 fsm_find_control_statement_thread_paths.
3495 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
3496 (handle_phi, handle_assignment): Allow any constant node, not
3497 just INTEGER_CST.
3498
3499 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
3500
3501 * config/arc/arc-arch.h: New file.
3502 * config/arc/arc-arches.def: Likewise.
3503 * config/arc/arc-cpus.def: Likewise.
3504 * config/arc/arc-options.def: Likewise.
3505 * config/arc/t-multilib: Likewise.
3506 * config/arc/genmultilib.awk: Likewise.
3507 * config/arc/genoptions.awk: Likewise.
3508 * config/arc/arc-tables.opt: Likewise.
3509 * config/arc/driver-arc.c: Likewise.
3510 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
3511 * common/config/arc/arc-common.c (arc_handle_option): Trace
3512 toggled options.
3513 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
3514 options; check for supported cpu against arc-cpus.def file.
3515 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
3516 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
3517 * config/arc/arc-c.def: Add emacs local variables.
3518 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
3519 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
3520 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
3521 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
3522 (DEFAULT_arc_fpu_build): Define.
3523 (DEFAULT_arc_mpy_option): Define.
3524 * config/arc/arc-protos.h (arc_init): Delete.
3525 * config/arc/arc.c (arc_cpu_name): New variable.
3526 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
3527 (arc_arc700, arc_arc600, arc_arc601): New variable.
3528 (arc_init): Add static; remove selection of default tune value,
3529 cleanup obsolete error messages.
3530 (arc_override_options): Make use of .def files for selecting the
3531 right cpu and option configurations.
3532 * config/arc/arc.h (stdbool.h): Include.
3533 (TARGET_CPU_DEFAULT): Define.
3534 (CPP_SPEC): Remove mcpu=NPS400 handling.
3535 (arc_cpu_to_as): Declare.
3536 (EXTRA_SPEC_FUNCTIONS): Define.
3537 (OPTION_DEFAULT_SPECS): Likewise.
3538 (ASM_DEFAULT): Remove.
3539 (ASM_SPEC): Use arc_cpu_to_as.
3540 (DRIVER_SELF_SPECS): Remove deprecated options.
3541 (arc_base_cpu): Declare.
3542 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
3543 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
3544 variable.
3545 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
3546 * config/arc/arc.md (attr_cpu): Remove.
3547 * config/arc/arc.opt (mno-mpy): Deprecate.
3548 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
3549 (mcpu=ARCHS): Remove.
3550 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
3551 Deprecate.
3552 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
3553 (arc_fpu): Use new defines.
3554 (mpy-option): Change to use numeric or string like inputs.
3555 * config/arc/t-arc (driver-arc.o): New target.
3556 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
3557 * config/arc/t-arc-newlib: Delete.
3558 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
3559 * doc/invoke.texi (ARC): Update arc options.
3560
3561 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
3562
3563 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
3564 insn at the beginning of the constant pool.
3565 (mips_insert_insn_pseudos): New function.
3566 (mips_machine_reorg2): Call it.
3567 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
3568 UNSPEC_INSN_PSEUDO enum values.
3569 (insn_pseudo, consttable): New insns.
3570
3571 2016-11-15 Michael Matz <matz@suse.de>
3572
3573 PR missed-optimization/77881
3574 * combine.c (simplify_comparison): Remove useless subregs
3575 also inside the loop, not just after it.
3576 (make_compound_operation): Recognize some subregs as being
3577 masking as well.
3578
3579 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
3580 Alan Hayward <alan.hayward@arm.com>
3581 David Sherwood <david.sherwood@arm.com>
3582
3583 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
3584 GET_MODE_SIZE typo.
3585
3586 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3587
3588 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
3589 for using xxinsertw and vinsert{b,h} on ISA 3.0.
3590
3591 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
3592 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
3593 vinsert{b,h} on ISA 3.0.
3594
3595 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3596
3597 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
3598 and cmpnop in two steps: first the ones not accessed in original gimple
3599 expression in a endian independent way and then the ones not accessed
3600 in the final result in an endian-specific way.
3601 (bswap_replace): Stop doing big endian adjustment.
3602
3603 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
3604
3605 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
3606 (*ashl<mode>3_doubleword): Ditto.
3607
3608 2016-11-14 Martin Liska <mliska@suse.cz>
3609
3610 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
3611
3612 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
3613 Richard Biener <rguenther@suse.de>
3614
3615 * doc/invoke.texi (fgimple): Document.
3616 * dumpfile.h (TDF_GIMPLE): Add.
3617 * dumpfile.c (dump_options): Add gimple.
3618 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
3619 for TDF_GIMPLE.
3620 (dump_gimple_label): Likewise.
3621 (dump_gimple_phi): Likewise.
3622 (dump_gimple_bb_header): Likewise.
3623 (dump_phi_nodes): Likewise.
3624 (pp_cfg_jump): Likewise. Pass in dump flags.
3625 (dump_implicit_edges): Adjust.
3626 * passes.c (pass_init_dump_file): Do not dump function header
3627 for TDF_GIMPLE.
3628 * tree-cfg.c (dump_function_to_file): Dump function return type
3629 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
3630 GIMPLE stmts.
3631 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
3632 (dump_generic_node): Likewise.
3633 * function.h (struct function): Add pass_startwith member.
3634 * passes.c (execute_one_pass): Implement startwith.
3635 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
3636 and assign proper version for parsed ssa names.
3637 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
3638 * internal-fn.c (expand_PHI): New function.
3639 * internal-fn.h (expand_PHI): Declared here.
3640 * internal-fn.def: New defination for PHI.
3641 * tree-cfg.c (lower_phi_internal_fn): New function.
3642 (build_gimple_cfg): Call it.
3643 (verify_gimple_call): Condition for passing label as arg in internal
3644 function PHI.
3645 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
3646 present PHIs with arguments.
3647
3648 2016-11-14 Martin Liska <mliska@suse.cz>
3649
3650 PR bootstrap/78069
3651 * common.opt: Add prefer-atomic as a new enum value for
3652 -fprofile-update.
3653 * coretypes.h: Likewise.
3654 * doc/invoke.texi: Document the new option value.
3655 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
3656 * tree-profile.c (tree_profiling): Select default value
3657 of -fprofile-update when 'prefer-atomic' is selected.
3658
3659 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
3660
3661 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
3662 (cortex_a57_alu_shift): ...here.
3663
3664 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
3665
3666 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
3667 Use bfx attribute.
3668 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
3669 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
3670 (<optab>si3_insn_uxtw): Likewise.
3671 (<optab><mode>3_insn): Likewise.
3672 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
3673 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
3674 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
3675 (<optab><mode>): Likewise.
3676 (insv<mode>): Likewise.
3677 (andim_ashift<mode>_bfiz): Likewise.
3678 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
3679 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
3680 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
3681 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
3682 (exynos_m1_alu_p): Likewise.
3683 * config/arm/types.md: Add bfx.
3684 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
3685
3686 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
3687
3688 * config/aarch64/aarch64.c (cortexa57_vector_cost):
3689 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
3690
3691 2016-11-14 Richard Biener <rguenther@suse.de>
3692
3693 PR tree-optimization/78312
3694 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
3695 flow-sensitive info.
3696
3697 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
3698
3699 PR target/78093
3700 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
3701 * config/avr/avr.opt (-mabsdata): New option.
3702 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
3703 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
3704 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
3705 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
3706 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
3707 spec depending on AVR_ISA_LDS.
3708 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
3709
3710 2016-11-13 Jakub Jelinek <jakub@redhat.com>
3711
3712 * match.pd: Don't try to compare addresses of variables with
3713 DECL_VALUE_EXPR.
3714
3715 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
3716
3717 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
3718 (propagate_vr_accross_jump_function): Handle unary expressions.
3719 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
3720 (load_from_param_1): New.
3721 (load_from_unmodified_param): Factor common part into load_from_param_1.
3722 (load_from_param): New.
3723 (compute_complex_assign_jump_func): Handle unary expressions.
3724 (update_jump_functions_after_inlining): Likewise.
3725 (ipa_write_jump_function): Likewise.
3726 (ipa_read_jump_function): Likewise.
3727
3728 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3729
3730 PR c/35503
3731 * doc/invoke.texi: Document Wrestrict.
3732 * pretty-print.c (pp_format): Add case for "Z" specifier.
3733 (test_pp_format): Test "Z" specifier.
3734
3735 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
3736
3737 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
3738 original function needs a static chain.
3739
3740 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
3741
3742 PR target/78336
3743 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
3744 ASM_OUTPUT_DEF.
3745
3746 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3747
3748 PR target/77957
3749 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
3750 return early if !optional_tbtab.
3751
3752 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
3753
3754 PR rtl-optimization/59461
3755 * doc/rtl.texi (paradoxical subregs): Add missing word.
3756 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
3757 in modes with precision larger than that of last_set_mode.
3758 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
3759 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
3760 REGs to paradoxical SUBREGs.
3761 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
3762 larger than a word before invoking LOAD_EXTEND_OP on it.
3763
3764 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3765
3766 PR target/78243
3767 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
3768 element order for little endian ordering.
3769
3770 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
3771 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
3772 number.
3773
3774 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
3775
3776 PR target/78310
3777 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
3778 when calculating operand 2.
3779 (rotate to rotatex zext splitter): Ditto.
3780
3781 2016-11-11 Jeff Law <law@redhat.com>
3782
3783 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
3784 function.
3785 (stmt_uses_name_in_undefined_way): New function, extracted from
3786 find_implicit_erroneous_behavior and extended for div/mod case.
3787 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
3788 find_explicit_erroneous_behavior and extended for div/mod case.
3789 (find_implicit_erroneous_behavior): Use new helper function.
3790 (find_explicit_erroneous_behavior): Use new helper function.
3791
3792 2016-11-11 Richard Biener <rguenther@suse.de>
3793
3794 PR tree-optimization/71575
3795 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
3796 bogus assert.
3797
3798 2016-11-11 Richard Biener <rguenther@suse.de>
3799
3800 PR middle-end/78295
3801 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
3802 about uninitialized destination arg of BIT_INSERT_EXPR.
3803
3804 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
3805
3806 PR c/37998
3807 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
3808 terminology. Expand to remove ambiguity.
3809
3810 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
3811
3812 PR rtl-optimization/78232
3813 * combine.c (try_combine): Add a big comment about why reusing i2dest
3814 is undesirable.
3815 (change_zero_ext): Do not call simplify_gen_binary, do the
3816 simplifications manually.
3817
3818 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3819
3820 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
3821 enable HImode and QImode to go in vector registers by default if
3822 the -mvsx-small-integer option is enabled.
3823 (rs6000_secondary_reload_simple_move): Likewise.
3824 (rs6000_preferred_reload_class): Don't force integer constants to
3825 be loaded into vector registers that we can easily make into
3826 memory (or being created in the GPRs and moved over with direct move).
3827 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
3828 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
3829 vector extraction on ISA 3.0 when the scalar integer can be
3830 allocated in vector registers. Generate the VEC_SELECT directy,
3831 and don't use UNSPEC's to avoid having the scalar type in a vector
3832 register. Make the expander target registers, and let the
3833 combiner fold in results storing to memory, if the machine
3834 supports stores.
3835 (vsx_extract_<mode>_di): Likewise.
3836 (vsx_extract_<mode>_p9): Likewise.
3837 (vsx_extract_<mode>_di_p9): Likewise.
3838 (vsx_extract_<mode>_store_p9): Likewise.
3839 (vsx_extract_si): Likewise.
3840 (vsx_extract_<mode>_p8): Likewise.
3841 (p9_lxsi<wd>zx): Delete, no longer used.
3842 (p9_stxsi<wd>x): Likewise.
3843 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
3844 integers in vector registers for ISA 3.0.
3845 (QHI): Update comment.
3846 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
3847 vector extract instructions in sign/zero extend.
3848 (zero_extendhi<mode>): Likewise.
3849 (extendqi<mode>): Likewise.
3850 (extendhi<mode>2): Likewise.
3851 (HImode splitter for load/sign extend in vector register): Likewise.
3852 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
3853 optimizing floating point conversions to/from small data types and
3854 rewrite it to support QImode/HImode being allowed in vector
3855 registers on ISA 3.0.
3856 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
3857 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
3858 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
3859 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
3860 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
3861 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
3862 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
3863 VSPLITISW on ISA 2.07.
3864 (movhi_internal): Combine movhi_internal and movqi_internal into
3865 one mov<mode>_internal with an iterator. Add support for QImode
3866 and HImode being allowed in vector registers. Make large number
3867 of attributes and constraints easier to read.
3868 (movqi_internal): Likewise.
3869 (mov<mode>_internal): Likewise.
3870 (movdi_internal64): Fix constraint to allow loading -16..15 with
3871 VSPLITISW on ISA 2.07.
3872 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
3873 well as DImode.
3874
3875 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
3876
3877 PR rtl-optimization/78241
3878 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
3879 but emit initial peel copy if niter expr is not reliable.
3880
3881 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
3882
3883 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
3884 (maybe_record_trace_start): If the CFI is different on the new and
3885 old paths, print out both to the dump file before ICEing.
3886
3887 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
3888
3889 * target.def (additional_allocno_class_p): New.
3890 * hooks.h (hook_bool_reg_class_t_false): New prototype.
3891 * hooks.c (hook_bool_reg_class_t_false): New.
3892 * ira.c (setup_allocno_and_important_classes): Use the new hook.
3893 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
3894 * doc/tm.texi: Update.
3895
3896 2016-11-10 Jason Merrill <jason@redhat.com>
3897
3898 * gengtype.c (new_structure): Append to structures list.
3899 (find_structure): Likewise.
3900
3901 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
3902
3903 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
3904 this_dir is 2. Check for this_dir non-zero before dir != this_dir
3905 check.
3906
3907 2016-11-10 Jakub Jelinek <jakub@redhat.com>
3908
3909 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
3910 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
3911 TRUNC_DIV_EXPR.
3912 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
3913 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
3914 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
3915 teams distribute parallel for simd even to distribute and teams
3916 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
3917 OMP_CLAUSE_DEPEND_SINK case.
3918 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
3919 (omp_no_lastprivate): Removed.
3920 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
3921 (gimplify_omp_for): Likewise.
3922 (computable_teams_clause): Fail for automatic vars from current
3923 function not yet seen in bind expr.
3924 * langhooks.c (lhd_omp_scalar_p): New function.
3925 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
3926 * varpool.c (varpool_node::get_create): Set node->offloading
3927 even for DECL_EXTERNAL decls.
3928 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
3929 (LANG_HOOKS_OMP_SCALAR_P): Define.
3930 (LANG_HOOKS_DECLS): Use it.
3931
3932 2016-11-10 Martin Liska <mliska@suse.cz>
3933
3934 PR sanitizer/78270
3935 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
3936 only when SWITCH_BODY is a BIND_EXPR.
3937
3938 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
3939
3940 PR debug/78112
3941 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
3942 on the context only when it has no DIE yet.
3943
3944 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
3945
3946 * arm.h (target_cpus): Delete.
3947 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
3948 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
3949 (all_architectures): Likewise.
3950 (arm_option_override): Adjust use of CPU enums.
3951 (arm_sched_reorder): Likewise.
3952 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
3953 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
3954 * arm/genopt.sh (processor_type): Prefix enumeration entries with
3955 TARGET_CPU_.
3956 * arm-tables.opt: Regenerated.
3957
3958 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
3959
3960 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
3961 (falkor): New core.
3962 * config/aarch64/aarch64-tune.md: Regenerated.
3963 * config/arm/arm-cores.def (falkor): New core.
3964 * config/arm/arm-tables.opt: Regenerated.
3965 * config/arm/arm-tune.md: Regenerated.
3966 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
3967 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
3968 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
3969 (ARM Options/-mtune): Likewise.
3970
3971 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
3972
3973 Revert
3974 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
3975
3976 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
3977 (propagate_vr_accross_jump_function): Likewise.
3978 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
3979 (load_from_param_1): New.
3980 (load_from_unmodified_param): Factor common part into load_from_param_1.
3981 (load_from_param): New.
3982 (compute_complex_assign_jump_func): Handle unary expressions.
3983 (ipa_write_jump_function): Likewise.
3984 (ipa_read_jump_function): Likewise.
3985
3986 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
3987
3988 * simplify-rtx.c (simplify_binary_operation_1): Simplify
3989 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
3990 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
3991 is a const_int.
3992
3993 2016-11-09 David Malcolm <dmalcolm@redhat.com>
3994
3995 * print-rtl-function.c: Include varasm.h.
3996 (print_any_param_name): New function.
3997 (print_param): New function.
3998 (print_rtx_function): Call print_param for each argument.
3999 * print-rtl.c (rtx_writer::finish_directive): New function.
4000 * print-rtl.h (rtx_writer::finish_directive): New decl.
4001
4002 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
4003
4004 PR target/78262
4005 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
4006 operand 0 as earlyclobber.
4007 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
4008
4009 2016-11-09 Martin Liska <mliska@suse.cz>
4010
4011 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
4012
4013 2016-11-09 Jakub Jelinek <jakub@redhat.com>
4014
4015 PR target/77718
4016 * builtins.c (expand_builtin_memcmp): Formatting fix.
4017
4018 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
4019 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
4020 or of them, renumber other enumerators.
4021 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
4022 * doc/invoke.texi: Document -fsanitize=shift-base and
4023 -fsanitize-shift-exponent, document -fsanitize=shift as
4024 having those 2 suboptions.
4025
4026 2016-11-09 Richard Biener <rguenther@suse.de>
4027
4028 * fold-const.c (tree_swap_operands_p): Remove unused arg.
4029 * fold-const.c (tree_swap_operands_p): Likewise.
4030 (fold_binary_loc): Adjust.
4031 (fold_ternary_loc): Likewise.
4032 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
4033 * gimple-fold.c (fold_stmt_1): Likewise.
4034 * gimple-match-head.c (gimple_resimplify2): Likewise.
4035 (gimple_resimplify3): Likewise.
4036 (gimple_simplify): Likewise.
4037 * tree-ssa-dom.c (record_equality): Likewise.
4038 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
4039 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
4040 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
4041
4042 2016-11-09 Richard Biener <rguenther@suse.de>
4043
4044 * tree-ssa-dom.c (canonicalize_comparison): Remove.
4045 (optimize_stmt): Remove redundant pre-propagation canonicalization
4046 of comparison operand order.
4047
4048 2016-11-09 Martin Liska <mliska@suse.cz>
4049
4050 * fold-const-call.c (fold_const_call): Fix the folding.
4051
4052 2016-11-09 Richard Biener <rguenther@suse.de>
4053
4054 * common.opt (flag_evaluation_order): Remove.
4055 * expr.c (expand_operands): Remove code guarded by
4056 flag_evaluation_order.
4057 * fold-const.c (reorder_operands_p): Remove, it always returns
4058 true.
4059 (negate_expr_p): Remove calls to reorder_operands_p.
4060 (fold_negate_expr): Likewise.
4061 (tree_swap_operands_p): Likewise.
4062 (fold_binary_loc): Likewise.
4063
4064 2016-11-09 Andreas Schwab <schwab@suse.de>
4065
4066 PR target/78254
4067 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
4068 insns operating on a register.
4069
4070 2016-11-09 Richard Biener <rguenther@suse.de>
4071
4072 PR tree-optimization/78007
4073 * tree-vect-stmts.c (vectorizable_bswap): New function.
4074 (vectorizable_call): Call vectorizable_bswap for
4075 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
4076
4077 2016-11-09 Richard Biener <rguenther@suse.de>
4078
4079 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4080 Look at the DR_BASE_ADDRESS object for forcing alignment.
4081
4082 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
4083
4084 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
4085 (propagate_vr_accross_jump_function): Likewise.
4086 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4087 (load_from_param_1): New.
4088 (load_from_unmodified_param): Factor common part into load_from_param_1.
4089 (load_from_param): New.
4090 (compute_complex_assign_jump_func): Handle unary expressions.
4091 (ipa_write_jump_function): Likewise.
4092 (ipa_read_jump_function): Likewise.
4093
4094 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
4095
4096 PR ipa/78121
4097 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
4098 Also fold constant passed as argument while computing value range.
4099 (propagate_constants_accross_call): Pass param type.
4100 * ipa-prop.c: export ipa_get_callee_param_type.
4101 * ipa-prop.h: export ipa_get_callee_param_type.
4102
4103 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
4104
4105 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
4106 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
4107
4108 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
4109
4110 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
4111 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
4112 ASAN_STACK_MAGIC_MIDDLE.
4113 (asan_global_struct): Increase the size of fields.
4114 (asan_add_global): Add new field constructor.
4115 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
4116 __asan_version_mismatch_check_v8.
4117
4118 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
4119
4120 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
4121 at runtime.
4122
4123 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
4124
4125 PR target/70799
4126 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
4127 Handle ASHIFT and LSHIFTRT.
4128 (dimode_scalar_chain::compute_convert_gain): Ditto.
4129 (dimode_scalar_chain::convert_insn): Ditto.
4130
4131 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4132
4133 * gimple-ssa-store-merging.c: Include selftest.h
4134 (verify_array_eq): New function.
4135 (verify_shift_bytes_in_array): Likewise.
4136 (verify_shift_bytes_in_array_right): Likewise.
4137 (verify_clear_bit_region): Likewise.
4138 (verify_clear_bit_region_be): Likewise.
4139 (store_merging_c_tests): Likewise.
4140 * selftest.h (store_merging_c_tests): Declare prototype.
4141 * selftest-run-tests.c (selftest::run_tests): Run
4142 store_merging_c_tests.
4143
4144 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4145
4146 * config/arm/arm.opt (mold-rtx-costs): Delete.
4147 (mnew-generic-costs): Delete.
4148 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
4149 * config/arm/arm.c (arm_rtx_costs_1): Delete.
4150 (arm_size_rtx_costs): Likewise.
4151 (arm_slowmul_rtx_costs): Likewise.
4152 (arm_fastmul_rtx_costs): Likewise.
4153 (arm_xscale_rtx_costs): Likewise.
4154 (arm_9e_rtx_costs): Likewise.
4155 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
4156 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
4157 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
4158 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
4159 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
4160 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
4161 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
4162 arm_cortex_m7_tune):
4163 Delete rtx_costs field.
4164 (arm_new_rtx_costs): Rename to...
4165 (arm_rtx_costs_internal): ... This.
4166 (arm_rtx_costs): Remove old way of doing rtx costs.
4167
4168 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4169
4170 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
4171 (arm_fastmul_tune): Likewise.
4172 (arm_strongarm_tune): Likewise.
4173 (arm_xscale_tune): Likewise.
4174 (arm_9e_tune): Likewise.
4175 (arm_marvell_pj4_tune): Likewise.
4176 (arm_v6t2_tune): Likewise.
4177 (arm_v6m_tune): Likewise.
4178 (arm_fa726te_tune): Likewise.
4179
4180 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4181
4182 PR tree-optimization/78234
4183 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
4184 in start != 0 case.
4185
4186 2016-11-08 Martin Liska <mliska@suse.cz>
4187
4188 PR testsuite/78242
4189 * dbgcnt.def: Add new debug counter asan_use_after_scope.
4190 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
4191 with a value expr. Do not add artificial variables to
4192 live_switch_vars. Use the debug counter.
4193 (gimplify_target_expr): Use the debug counter.
4194 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
4195 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
4196 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
4197
4198 2016-11-08 Richard Biener <rguenther@suse.de>
4199
4200 * tree-vect-stmts.c (get_group_load_store_type): If the
4201 access is aligned do not trigger peeling for gaps.
4202 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
4203 force alignment of vars with DECL_USER_ALIGN.
4204
4205 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
4206
4207 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
4208
4209 2016-11-08 Richard Biener <rguenther@suse.de>
4210
4211 PR tree-optimization/78205
4212 * tree-vect-stmts.c (vectorizable_load): Move check whether
4213 we may run into gaps when BB vectorizing SLP permutations ...
4214 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
4215 here where we can do a more precise check.
4216
4217 2016-11-08 Richard Biener <rguenther@suse.de>
4218
4219 PR tree-optimization/78224
4220 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
4221 Split the fallthru edge in case its successor may have PHIs.
4222 Do not free dominance info.
4223
4224 2016-11-07 Jakub Jelinek <jakub@redhat.com>
4225
4226 PR target/78229
4227 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
4228 EH info even for bzhi and pdep/pext.
4229
4230 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
4231
4232 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
4233 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
4234
4235 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4236
4237 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
4238 if appropriate.
4239 * config/rs6000/vector.md (div<mode>3): Ditto.
4240
4241 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
4242
4243 * configure.ac (.hidden): Change to conftest_s string. Provide string
4244 for AIX assembler.
4245 (gcc_cv_ld_hidden): Yes for AIX.
4246 * configure: Regenerate.
4247
4248 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
4249
4250 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
4251 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
4252 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
4253 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4254 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
4255 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
4256 from #if to if.
4257 (rs6000_xcoff_visibility): New.
4258 (rs6000_xcoff_declare_function_name): Add visibility support.
4259 (rs6000_xcoff_asm_globalize_decl_name): New.
4260 (rs6000_xcoff_asm_output_aligned_decl_common): New.
4261 (rs6000_asm_weaken_decl): New.
4262 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
4263 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
4264 reference function.
4265
4266 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
4267
4268 PR driver/78206
4269 * incpath.c (remove_dup): Also silently ignore EPERM.
4270
4271 2016-11-07 Martin Jambor <mjambor@suse.cz>
4272
4273 * tree.c (verify_type_variant): Use pointer comparison to check that
4274 TYPE_SIZE_UNIT match.
4275
4276 2016-11-07 Jakub Jelinek <jakub@redhat.com>
4277
4278 PR target/77834
4279 * dse.c (dse_step5): Call scan_reads even if just
4280 insn_info->frame_read. Improve and fix dump file messages.
4281
4282 PR target/78227
4283 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
4284 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
4285
4286 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4287
4288 PR middle-end/35691
4289 * match.pd: Add following two patterns:
4290 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
4291 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
4292
4293 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
4294
4295 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
4296 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
4297 * rtl.h (duplicate_reg_notes): Declare.
4298 * rtlanal.c (duplicate_reg_note): New function.
4299
4300 PR rtl-optimization/77309
4301 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
4302 don't assume an equality comparison for plain COMPARE.
4303 (simplify_comparison): Pass a more accurate code to
4304 make_compound_operation.
4305
4306 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
4307
4308 * target.def (compute_pressure_classes): New target hook.
4309 * doc/tm.texi.in: Document it.
4310 * doc/tm.texi: Regenerate.
4311 * ira.c (setup_pressure_classes): Call target hook if defined.
4312
4313 2016-11-07 David Malcolm <dmalcolm@redhat.com>
4314
4315 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
4316 method.
4317 (rtx_writer::print_rtx): In compact mode, omit trailing operands
4318 that have the default values.
4319 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
4320 method.
4321 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
4322 label string from expected dump.
4323 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
4324 from expected dump.
4325
4326 2016-11-07 Jakub Jelinek <jakub@redhat.com>
4327
4328 PR target/77834
4329 * alias.c (nonoverlapping_memrefs_p): If one decl is
4330 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
4331
4332 2016-11-07 Richard Biener <rguenther@suse.de>
4333
4334 PR target/78229
4335 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
4336 EH info.
4337
4338 2016-11-07 Richard Biener <rguenther@suse.de>
4339
4340 PR tree-optimization/78218
4341 * gimple-ssa-store-merging.c
4342 (pass_store_merging::terminate_all_aliasing_chains):
4343 Drop unused argument, fix alias check to also consider uses.
4344 (pass_store_merging::execute): Adjust.
4345
4346 2016-11-07 Richard Biener <rguenther@suse.de>
4347
4348 PR tree-optimization/78228
4349 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
4350 undefined behavior.
4351
4352 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4353
4354 PR target/77822
4355 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
4356 aarch64_simd_shift_imm_<mode> predicate for operand 1.
4357 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
4358 to restrict them to an appropriate range and add FAIL check if the
4359 region they specify is out of range. Delete useless constraint
4360 strings.
4361 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
4362 2 and 3 to restrict their range and add pattern predicate.
4363
4364 2016-11-07 Martin Liska <mliska@suse.cz>
4365
4366 * asan.c (enum asan_check_flags): Move the enum to header file.
4367 (asan_init_shadow_ptr_types): Make type creation more generic.
4368 (shadow_mem_size): New function.
4369 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
4370 Rewritten stack unpoisoning code.
4371 (build_shadow_mem_access): Add new argument return_address.
4372 (instrument_derefs): Instrument local variables if use after scope
4373 sanitization is enabled.
4374 (asan_store_shadow_bytes): New function.
4375 (asan_expand_mark_ifn): Likewise.
4376 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
4377 * asan.h (enum asan_mark_flags): Moved here from asan.c
4378 (asan_protect_stack_decl): Protect all declaration that need
4379 to live in memory.
4380 (asan_sanitize_use_after_scope): New function.
4381 (asan_no_sanitize_address_p): Likewise.
4382 * cfgexpand.c (partition_stack_vars): Consider
4383 asan_sanitize_use_after_scope in condition.
4384 (expand_stack_vars): Likewise.
4385 * common.opt (-fsanitize-address-use-after-scope): New option.
4386 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
4387 Explain the parameter.
4388 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
4389 * gimplify.c (build_asan_poison_call_expr): New function.
4390 (asan_poison_variable): Likewise.
4391 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
4392 variables that have address taken.
4393 (gimplify_decl_expr): Likewise.
4394 (gimplify_target_expr): Likewise for C++ temporaries.
4395 (sort_by_decl_uid): New function.
4396 (gimplify_expr): Unpoison all variables for a label we can jump
4397 from outside of a scope.
4398 (gimplify_switch_expr): Unpoison variables defined in the switch
4399 context.
4400 (gimplify_function_tree): Clear asan_poisoned_variables.
4401 (asan_poison_variables): New function.
4402 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
4403 * internal-fn.c (expand_ASAN_MARK): New function.
4404 * internal-fn.def (ASAN_MARK): Declare.
4405 * opts.c (finish_options): Handle -fstack-reuse if
4406 -fsanitize-address-use-after-scope is enabled.
4407 (common_handle_option): Enable address sanitization if
4408 -fsanitize-address-use-after-scope is enabled.
4409 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
4410 New parameter.
4411 * params.h: Likewise.
4412 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
4413 * sanitizer.def: Define __asan_poison_stack_memory and
4414 __asan_unpoison_stack_memory functions.
4415 * asan.c (asan_mark_poison_p): New function.
4416 (transform_statements): Handle asan_mark_poison_p calls.
4417 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
4418
4419 2016-11-07 Tamar Christina <tamar.christina@arm.com>
4420
4421 PR driver/78196
4422 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
4423
4424 2016-11-07 Martin Liska <mliska@suse.cz>
4425
4426 * tree-profile.c (gimple_gen_time_profiler): Set proper type
4427 to time_profiler_counter_ptr.
4428
4429 2016-11-07 Richard Biener <rguenther@suse.de>
4430
4431 PR tree-optimization/37150
4432 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
4433 parameter.
4434 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
4435 (vect_analyze_slp_cost_1): Account for the real number of
4436 permutations emitted and for dead loads.
4437 (vect_transform_slp_perm_load): Add n_perms parameter counting
4438 the number of emitted permutations.
4439 * tree-vect-stmts.c (vectorizable_load): Adjust.
4440
4441 2016-11-07 Richard Biener <rguenther@suse.de>
4442
4443 PR tree-optimization/78189
4444 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
4445 alignment computation.
4446
4447 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
4448
4449 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
4450
4451 2016-11-05 Martin Sebor <msebor@redhat.com>
4452
4453 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
4454 documentation.
4455
4456 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
4457
4458 PR bootstrap/78188
4459 PR c++/71848
4460 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
4461
4462 2016-11-04 Jakub Jelinek <jakub@redhat.com>
4463
4464 PR target/77834
4465 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
4466 doesn't have rtl set.
4467
4468 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4469
4470 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
4471 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
4472 rs6000_gimple_fold_builtin.
4473 (rs6000_gimple_fold_builtin): New function. Add handling for
4474 early expansion of vector addition builtins.
4475
4476 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
4477
4478 * expr.h (copy_blkmode_from_reg): Delete.
4479 * expr.c (copy_blkmode_from_reg): Make static.
4480
4481 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
4482
4483 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
4484 * combine.c (LOAD_EXTEND_OP): Delete.
4485 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
4486 * cse.c (LOAD_EXTEND_OP): Delete.
4487 * fold-const.c (LOAD_EXTEND_OP): Likewise.
4488 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
4489 * postreload.c (LOAD_EXTEND_OP): Delete.
4490 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
4491 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
4492 (find_reloads): Likewise.
4493 * reload1.c (eliminate_regs_1): Likewise.
4494 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
4495 (num_sign_bit_copies1): Likewise.
4496
4497 2016-11-04 David Malcolm <dmalcolm@redhat.com>
4498
4499 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
4500 (selftest::ix86_test_dumping_hard_regs): New function.
4501 (selftest::ix86_run_selftests): New function.
4502 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
4503 selftest::ix86_run_selftests.
4504 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
4505 * doc/tm.texi: Regenerate
4506 * selftest-rtl.h: New file.
4507 * rtl-tests.c: Include "selftest-rtl.h".
4508 (selftest::assert_rtl_dump_eq): Make non-static.
4509 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
4510 (selftest::test_dumping_regs): Update comment.
4511 * selftest-run-tests.c: Include "target.h".
4512 (selftest::run_tests): If non-NULL, call
4513 targetm.run_target_selftests.
4514 * target.def (run_target_selftests): New hook.
4515
4516 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4517
4518 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
4519 representative core for this architecture.
4520 * config/arm/arm-cores.def (cortex-m33): Define new processor.
4521 * config/arm/arm-tables.opt: Regenerate.
4522 * config/arm/arm-tune.md: Likewise.
4523 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
4524 valid -mcpu options.
4525 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
4526
4527 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4528
4529 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
4530 representative core for this architecture.
4531 * config/arm/arm-cores.def (cortex-m23): Define new processor.
4532 * config/arm/arm-tables.opt: Regenerate.
4533 * config/arm/arm-tune.md: Likewise.
4534 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
4535 this tuning parameters apply to in the comment.
4536 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
4537 valid -mcpu options.
4538 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
4539
4540 2016-11-04 Bin Cheng <bin.cheng@arm.com>
4541
4542 * fold-const.c (fold_cond_expr_with_comparison): Remove call
4543 to pedantic_non_lvalue_loc. Remove useless code for lvalue
4544 where cond_expr can't be a lvalue.
4545
4546 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
4547
4548 * config/arc/arc.c (arc_process_double_reg_moves): Use
4549 gen_dexcl_2op call.
4550 * config/arc/arc.md (movsi_insn): Disable unsupported move
4551 instructions for ARCv2 cores.
4552 (movdi): Use prepare_move_operands.
4553 (movsf, movdf): Use move_dest_operand predicate.
4554 * config/arc/constraints.md (Chs): Enable when barrel shifter is
4555 present.
4556 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
4557 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
4558 also a destination.
4559 (dexcl_3op_peep2_insn_nores): Likewise.
4560 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
4561 (LINK_COMMAND_SPEC): Remove.
4562
4563 2016-11-04 Richard Biener <rguenther@suse.de>
4564
4565 PR middle-end/78185
4566 * loop-invariant.c (find_exits): Record entering inner
4567 loops as possibly exiting to handle infinite sub-loops.
4568 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
4569 (fill_always_executed_in_1): Honor infinite child loops.
4570
4571 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4572
4573 PR target/78192
4574 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
4575 has already been adjusted for endianness, so don't adjust it any
4576 further.
4577
4578 PR target/77993
4579 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
4580 ICmode unless we have standard PowerPC floating point.
4581 * config/rs6000/rs6000.md (FP iterator): Likewise.
4582 (FMOVE128 iterator): Likewise.
4583
4584 2016-11-03 Jakub Jelinek <jakub@redhat.com>
4585 Alexandre Oliva <aoliva@redhat.com>
4586 Jason Merrill <jason@redhat.com>
4587
4588 PR debug/28767
4589 PR debug/56974
4590 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
4591 langhook.
4592 * langhooks.c (lhd_type_dwarf_attribute): New function.
4593 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
4594 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
4595 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
4596 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
4597 (check_qualified_type, check_aligned_type): Call it.
4598 * dwarf2out.c (modified_type_die): Don't use type_main_variant
4599 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
4600 check_base_type and check_lang_type.
4601 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
4602 return early. For pointer-to-data-member add DW_AT_use_location
4603 attribute.
4604 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
4605 if needed.
4606 (gen_type_die_with_usage): Don't use type_main_variant
4607 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
4608 check_base_type and check_lang_type. Formatting fixes. Call
4609 get_debug_type langhook.
4610
4611 2016-11-03 Jason Merrill <jason@redhat.com>
4612
4613 * tree.c (check_lang_type): New.
4614 (check_qualified_type): Use it.
4615 (check_aligned_type): Use it.
4616 * tree.h: Declare it.
4617
4618 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
4619
4620 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
4621 (arm*-freebsd*): Likewise.
4622 (arm*-*-netbsdelf*): Likewise.
4623 (arm*-*-linux*): Likewise.
4624 (arm*-*-uclinux*eabi*): Likewise.
4625 (arm*-*-phoenix*): Likewise.
4626 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
4627 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
4628 specified. Default to arm6 if target_cpu_cname is not set.
4629 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
4630 default cpu has been correctly configured.
4631 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
4632 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
4633 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
4634 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
4635 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
4636 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
4637 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
4638
4639 2016-11-03 Jiong Wang <jiong.wang@arm.com>
4640
4641 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
4642 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
4643 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
4644 (output_cfa_loc): Support DW_CFA_val_expression.
4645 (output_cfa_loc_raw): Likewise.
4646 (output_cfi): Likewise.
4647 (output_cfi_directive): Likewise.
4648 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
4649 (dw_cfi_oprnd2_desc): Likewise.
4650 (mem_loc_descriptor): Recognize new pattern generated for value
4651 expression.
4652
4653 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
4654
4655 PR rtl-optimization/78186
4656 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
4657 well, when converting to IOR.
4658
4659 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
4660
4661 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
4662 (vec_interleave_highv8qi): Likewise.
4663
4664 2016-11-03 Martin Liska <mliska@suse.cz>
4665
4666 * profile.c (instrument_values): Fix coding style.
4667 (branch_prob): Use renamed function.
4668 * tree-profile.c (init_ic_make_global_vars): Likewise.
4669 (gimple_init_edge_profiler): Rename to
4670 gimple_init_gcov_profiler.
4671 tree_time_profiler_counter variable declaration.
4672 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
4673 emission.
4674 * value-prof.h: Remove an argument.
4675
4676 2016-11-03 Richard Biener <rguenther@suse.de>
4677
4678 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
4679 symtab_node::get_create.
4680
4681 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4682
4683 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
4684 Move comments into more natural position.
4685
4686 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
4687
4688 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
4689 (PTRDIFF_TYPE): Define as int.
4690
4691 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4692
4693 * ccmp.c (expand_ccmp_expr_1): Adjust.
4694 (expand_ccmp_expr): Likewise.
4695 (expand_ccmp_next): Likewise.
4696 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
4697 (aarch64_gen_ccmp_first): Likewise.
4698 * doc/tm.texi: Regenerate.
4699 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
4700 (gen_ccmp_next): Likewise.
4701
4702 2016-11-03 Bin Cheng <bin.cheng@arm.com>
4703
4704 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
4705 (vect_is_simple_reduction): Swap cond_reduction by inversion.
4706
4707 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
4708
4709 * config/i386/i386.c (ix86_init_libfuncs): New. Call
4710 darwin_rename_builtins here.
4711 (ix86_expand_divmod_libfunc): New.
4712 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
4713 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
4714
4715 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
4716 Nathan Sidwell <nathan@acm.org>
4717
4718 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
4719
4720 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
4721
4722 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
4723 New function.
4724 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
4725 to format MODE_INT and MODE_PARTIAL_INT literals.
4726
4727 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
4728
4729 PR target/78168
4730 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
4731 NULL if TARGET_SPE_ABI.
4732
4733 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4734
4735 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
4736 clear padding bits even when they're less than a byte.
4737
4738 2016-11-02 Richard Biener <rguenther@suse.de>
4739
4740 * gimple-ssa-store-merging.c: Include gimplify-me.h.
4741 (imm_store_chain_info::output_merged_stores): Force base_addr
4742 to be proper GIMPLE for a MEM_REF address.
4743 (pass_store_merging::execute): Restrict negative bitpos
4744 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
4745 check. Take into account non-NULL_TREE offset if the base
4746 is already addressable.
4747
4748 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
4749
4750 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
4751 New pattern.
4752 (aarch64_be_crypto_sha1hv4si): New pattern.
4753
4754 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
4755
4756 * config/aarch64/aarch64.md (add<mode>3): Remove
4757 redundant code. Don't split frame based additions.
4758
4759 2016-11-02 Richard Biener <rguenther@suse.de>
4760
4761 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
4762 redundant val and dest members.
4763 (store_immediate_info::store_immediate_info): Adjust.
4764 (merged_store_group::merged_store_group): Adjust.
4765 (merged_store_group::apply_stores): Likewise.
4766 (struct imm_store_chain_info): Add base_addr field.
4767 (imm_store_chain_info::imm_store_chain_info): New constructor.
4768 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
4769 (imm_store_chain_info::output_merged_store): Likewise. Use
4770 addr_base which is already the address.
4771 (imm_store_chain_info::output_merged_stores): Likewise.
4772 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
4773 imm_store_chain_info instead of base. Fix alias check.
4774 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
4775 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
4776 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
4777 use the address of the base and adjust for other changes.
4778
4779 2016-11-02 Martin Liska <mliska@suse.cz>
4780
4781 * fold-const-call.c (host_size_t_cst_p): Test whether
4782 t is convertible to size_t.
4783
4784 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4785
4786 PR tree-optimization/78170
4787 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
4788 introduced by native_encode_expr on little-endian as well.
4789
4790 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4791
4792 PR tree-optimization/78162
4793 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
4794 as invalid.
4795
4796 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4797
4798 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
4799 function comment.
4800 (aarch64_next_callee_save): Likewise.
4801 (aarch64_pushwb_single_reg): Likewise.
4802 (aarch64_gen_storewb_pair): Likewise.
4803 (aarch64_push_regs): Likewise.
4804 (aarch64_gen_loadwb_pair): Likewise.
4805 (aarch64_pop_regs): Likewise.
4806 (aarch64_gen_store_pair): Likewise.
4807 (aarch64_gen_load_pair): Likewise.
4808 (aarch64_save_callee_saves): Likewise.
4809 (aarch64_restore_callee_saves): Likewise.
4810
4811 2016-11-02 Richard Biener <rguenther@suse.de>
4812
4813 PR tree-optimization/78035
4814 PR tree-optimization/77964
4815 * gimple-pretty-print.c (pp_points_to_solution): Print
4816 vars_contains_interposable.
4817 * tree-ssa-alias.c: Include varasm.h.
4818 (ptrs_compare_unequal): Check vars_contains_interposable and
4819 decl_binds_to_current_def_p.
4820 (dump_points_to_solution): Dump vars_contains_interposable.
4821 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
4822 flag.
4823 * tree-ssa-structalias.c: Include varasm.h.
4824 (set_uids_in_ptset): Record whether vars contains a
4825 not decl_binds_to_current_def_p variable in vars_contains_interposable.
4826 (ipa_escaped_pt): Update initializer.
4827
4828 2016-11-02 Richard Biener <rguenther@suse.de>
4829
4830 PR tree-optimization/78047
4831 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
4832 fake field at offset zero conservatively regarding to may_have_pointers.
4833
4834 2016-11-02 Richard Biener <rguenther@suse.de>
4835
4836 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
4837 infer_value_range on stmt ops and update value-ranges.
4838 Dump visited stmts and blocks.
4839 (evrp_dom_walker::push_value_range): Dump changes.
4840 (evrp_dom_walker::pop_value_range): Likewise.
4841 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
4842
4843 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4844
4845 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
4846 rtx_insn *.
4847 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
4848
4849 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4850
4851 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
4852 and adjust for that.
4853 * cfgrtl.h (delete_insn_chain): Adjust prototype.
4854
4855 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4856
4857 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
4858 to rtx_insn *.
4859 (transcode_memory_rtx): Likewise.
4860 (move_to_acc): Likewise.
4861 (move_from_acc): Likewise.
4862 (move_acc_to_reg): Likewise.
4863 (move_to_x): Likewise.
4864 (move_to_hl): Likewise.
4865 (move_to_de): Likewise.
4866 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
4867 (rs6000_emit_savres_rtx): Likewise.
4868 (rs6000_emit_prologue): Likewise.
4869 * reorg.c (update_reg_unused_notes): Likewise.
4870 * rtl.h (remove_note): Adjust prototype.
4871 * rtlanal.c (remove_note): Make argument type rtx_insn *.
4872
4873 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4874
4875 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
4876 variables so some can be rtx_insn *.
4877 (alpha_emit_xfloating_libcall): Likewise.
4878 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
4879 (mips_legitimize_tls_address): Likewise.
4880 * optabs.c (expand_binop): Likewise.
4881 * reload1.c (gen_reload): Likewise.
4882
4883 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4884
4885 * reorg.c (relax_delay_slots): Split up the trial variable.
4886
4887 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4888
4889 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
4890 of variables rtx_insn *.
4891 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
4892 (legitimize_tls_address): Likewise.
4893 * config/bfin/bfin.c (hwloop_optimize): Likewise.
4894 (bfin_gen_bundles): Likewise.
4895 * config/c6x/c6x.c (reorg_split_calls): Likewise.
4896 (c6x_reorg): Likewise.
4897 * config/frv/frv.c (frv_reorder_packet): Likewise.
4898 * config/i386/i386.c (ix86_split_idivmod): Likewise.
4899 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
4900 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
4901 * config/mn10300/mn10300.c: Likewise.
4902 * config/rl78/rl78.c: Likewise.
4903 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
4904 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
4905 (sh_expand_cmpnstr): Likewise.
4906 (sh_expand_strlen): Likewise.
4907 (sh_expand_setmem): Likewise.
4908 * config/sh/sh.md: Likewise.
4909 * emit-rtl.c (emit_pattern_before): Likewise.
4910 * except.c: Likewise.
4911 * final.c: Likewise.
4912 * jump.c: Likewise.
4913
4914 2016-11-01 Jason Merrill <jason@redhat.com>
4915
4916 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
4917 a COND_EXPR with constant condition.
4918
4919 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4920
4921 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
4922 and its initialization.
4923
4924 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4925
4926 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
4927 HAVE_AS_LEB128.
4928
4929 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4930
4931 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
4932 argument, don't call add_linkage_name if it is true.
4933 (gen_variable_die): For C++ inline static data members, consider the
4934 initial call when old_die is NULL to be declaration and call
4935 add_name_and_src_coords_attributes in that case with true as
4936 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
4937 (gen_member_die): For C++ inline static data members, emit a
4938 definition DIE right away in DW_TAG_compile_unit context.
4939
4940 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
4941
4942 PR target/78166
4943 * config/pa/pa.md: Add new shift/add patterns to handle
4944 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
4945
4946 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
4947
4948 * config/xtensa/xtensa-protos.h
4949 (xtensa_use_return_instruction_p): New prototype.
4950 * config/xtensa/xtensa.c (xtensa_current_frame_size,
4951 xtensa_callee_save_size): Remove.
4952 (struct machine_function): Add new fields: current_frame_size,
4953 callee_save_size, frame_laid_out and epilogue_done.
4954 (compute_frame_size, xtensa_expand_prologue,
4955 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
4956 cfun->machine->callee_save_size and xtensa_current_frame_size
4957 with cfun->machine->current_frame_size.
4958 (compute_frame_size): Update cfun->machine->frame_laid_out and
4959 don't update frame layout after reload completion.
4960 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
4961 instead of zeroing xtensa_current_frame_size.
4962 (xtensa_use_return_instruction_p): New function.
4963 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
4964 declaration.
4965 (INITIAL_ELIMINATION_OFFSET): Use return value of
4966 compute_frame_size instead of xtensa_current_frame_size value.
4967 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
4968 function xtensa_use_return_instruction_p instead of inline code.
4969
4970 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4971
4972 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
4973 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
4974 * dwarf2out.c (rnglist_idx): New variable.
4975 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
4976 (DEBUG_RNGLISTS_SECTION): Define.
4977 (ranges_base_label): New variable.
4978 (size_of_die) <case dw_val_class_range_list>: If using
4979 DW_FORM_rnglistx, count size of uleb128 of range list index.
4980 (value_format) <case dw_val_class_range_list>: For
4981 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
4982 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
4983 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
4984 (add_ranges_num): Remove useless prototype. Don't multiply
4985 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
4986 for new fields added to dw_ranges struct.
4987 (add_ranges): Add maybe_new_sec argument and pass it
4988 through to add_ranges_num.
4989 (note_rnglist_head): New function.
4990 (add_ranges_by_labels): Pass true as maybe_new_sec to
4991 add_ranges_num, call note_rnglist_head on the head of the list.
4992 (output_ranges): Add function comment. Switch to
4993 .debug_ranges section here and emit .Ldebug_ranges0 label.
4994 (index_rnglists, output_rnglists): New functions.
4995 (gen_subprogram_die): Formatting fixes.
4996 (add_high_low_attributes): Don't divide offsets
4997 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
4998 first list element or when pointing into the middle of
4999 a list. Pass true as second argument to add_ranges on the
5000 first block fragment after cold/hot section switch.
5001 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
5002 section instead of .debug_ranges. Initialize
5003 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
5004 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
5005 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
5006 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
5007 Call output_rnglists for -gdwarf-5.
5008 (dwarf2out_c_finalize): Clear rnglist_idx.
5009
5010 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
5011
5012 * combine.c (simplify_compare_const): Add gcc_fallthrough.
5013
5014 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
5015 Tamar Christina <tamar.christina@arm.com>
5016
5017 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
5018 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
5019 (vmaxnmq_f32): Likewise.
5020 (vminnm_f32): Likewise.
5021 (vminnmq_f32): Likewise.
5022 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
5023 (vminnm): Likewise.
5024 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
5025 expander.
5026
5027 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5028
5029 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
5030 binary floating point types supported by the hardware except for
5031 double.
5032 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
5033 vector instruction for optimizing extracting a SImode from a
5034 V4SImode vector and converting it to floating point.
5035 (vsx_xvcvuxwdp_df): Likewise.
5036 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
5037 registers to be any VSX register. Move stores to the end of the
5038 constraints.
5039 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
5040 to optimize extracting a SImode from a V4SImode vector and
5041 converting it to a binary floating point type supported by the
5042 hardware. Use the vector converts instead of extracting the
5043 element, sign extending it, and then converting it to double.
5044 Other floating point types than double first convert to double,
5045 then the double is converted to that type.
5046 (vsx_extract_si_<uns>float_<mode>): Likewise.
5047
5048 2016-10-31 Andrew Pinski <apinski@cavium.com>
5049
5050 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
5051 Rewrite handling of part num to handle the case where
5052 multiple implementers share the same part num.
5053
5054 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5055 Jakub Jelinek <jakub@redhat.com>
5056
5057 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
5058 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
5059
5060 2016-10-31 Jakub Jelinek <jakub@redhat.com>
5061
5062 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
5063 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
5064 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
5065 (is_cu_die, is_unit_die): Likewise.
5066 (should_move_die_to_comdat, break_out_comdat_types): Adjust
5067 comments for DWARF5 DW_UT_type units.
5068 (output_compilation_unit_header): Add UT argument, output
5069 start of DWARF5 .debug_info section header.
5070 (output_comp_unit): Add dwo_id argument. Adjust
5071 output_compilation_unit_header caller, for DW_UT_split_compile
5072 emit dwo_id field, otherwise padding1. Emit padding2 field.
5073 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
5074 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
5075 (output_skeleton_debug_sections): Add dwo_id argument, for
5076 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
5077 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
5078 DW_UT_type or DW_UT_split_type units rather than .debug_types.
5079 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
5080 DW_TAG_compile_unit for skeleton unit die. Don't add
5081 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
5082 address to output_comp_unit and output_skeleton_debug_sections.
5083
5084 * dwarf2out.c (debug_line_str_section): New variable.
5085 (debug_line_str_hash): Likewise.
5086 (DEBUG_LINE_STR_SECTION): Define.
5087 (set_indirect_string): Handle DW_FORM_line_strp like
5088 DW_FORM_strp.
5089 (find_string_form): Fix up formatting.
5090 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
5091 Fix up indentation.
5092 (output_die): Handle DW_FORM_line_strp.
5093 (DWARF5_USE_DEBUG_LINE_STR): Define.
5094 (output_line_string): New function.
5095 (output_file_names): Add -gdwarf-5 support.
5096 (output_line_info): Likewise.
5097 (init_sections_and_labels): Initialize debug_line_str_section.
5098 (output_indirect_string): Change 2nd argument from void *
5099 to enum dwarf_form form, compare with form rather than
5100 DW_FORM_strp.
5101 (output_indirect_strings): Pass DW_FORM_strp to
5102 output_indirect_string traversion.
5103 (dwarf2out_finish): Output .debug_line_str strings.
5104 (dwarf2out_c_finalize): Clear debug_line_str_section and
5105 debug_line_str_hash.
5106
5107 2016-10-31 Tom Tromey <tom@tromey.com>
5108
5109 PR debug/77315
5110 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
5111 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
5112 DW_OP_GNU_push_tls_address case.
5113 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
5114
5115 2016-10-31 Jakub Jelinek <jakub@redhat.com>
5116
5117 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
5118 for frame_offset_rel bit.
5119 (struct array_descr_info): Add rank field.
5120 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
5121 and placeholder_seen fields.
5122 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
5123 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
5124 DW_OP_pick 1 into DW_OP_over.
5125 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
5126 gen_variant_part): Clear placeholder_{arg,seen}.
5127 (loc_list_from_tree_1): Drop const from context argument.
5128 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
5129 (loc_list_for_address_of_addr_expr_of_indirect_ref,
5130 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
5131 context argument.
5132 (add_scalar_info): Drop const from context argument. Handle
5133 context->placeholder_arg.
5134 (add_bound_info): Drop const from context argument.
5135 (gen_descr_array_type_die): Drop const from ctx variable.
5136 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
5137 attribute and use a single DW_TAG_generic_subrange instead of
5138 7 DW_TAG_subrange_type for assumed rank arrays.
5139
5140 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
5141 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
5142 from bool to 1-bit uchar bitfield. Add num_assigned and
5143 offset_emitted bitfields.
5144 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
5145 for dw_val_class_lineptr and dw_val_class_macptr. Handle
5146 dw_val_class_loclistsptr.
5147 (new_addr_loc_descr): Fix up formatting.
5148 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
5149 (add_AT_low_high_pc): Fix up formatting.
5150 (add_AT_loclistsptr): New function.
5151 (AT_lbl): Allow dw_val_class_loclistsptr.
5152 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
5153 Handle dw_val_class_loclistsptr.
5154 (loc_list_idx): New variable.
5155 (output_loclists_offsets, assign_location_list_indexes): New
5156 functions.
5157 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
5158 add size_of_uleb128 of the index. Drop never used
5159 dwarf_split_debug_info AT_index handling. Handle
5160 dw_val_class_loclistsptr.
5161 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
5162 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
5163 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
5164 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
5165 DW_FORM_loclistx indexes.
5166 (output_attr_index_or_value): Fix up formatting. Don't handle
5167 dw_val_class_loc_list here.
5168 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
5169 For dw_val_class_loc_list call output_loc_list_offset rather than
5170 output_attr_index_or_value.
5171 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
5172 or .debug_loclists.dwo section name for debug_loc_section.
5173 (resolve_addr_in_expr): Formatting fix.
5174 (index_location_lists): Likewise.
5175 (dwarf2out_finish): If there are any location lists, for
5176 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
5177 index_location_lists only if have_location_lists. Call
5178 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
5179 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
5180 -gsplit-dwarf also emit offset table.
5181
5182 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
5183 (size_of_die, value_format, output_die): Use
5184 DW_FORM_data16 for 128-bit dw_val_class_const_double or
5185 dw_val_class_wide_int.
5186
5187 * dwarf2out.c (dwarf_op): Renamed to ...
5188 (dwarf_OP): ... this.
5189 (convert_descriptor_to_mode, scompare_loc_descriptor,
5190 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
5191 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
5192 callers.
5193 (dwarf_AT, dwarf_TAG): New functions.
5194 (check_die): Disallow DW_AT_call_all_calls next to
5195 DW_AT_GNU_all_call_sites.
5196 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
5197 and attributes instead of the corresponding GNU tag and attributes.
5198 (gen_subprogram_die): Likewise. Emit call site information even
5199 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
5200 DW_AT_defaulted in comment.
5201 (resolve_addr): Handle DW_AT_call_origin attribute on
5202 DW_TAG_call_site DIE like DW_AT_abstract_origin on
5203 DW_TAG_GNU_call_site DIE.
5204
5205 * dwarf2out.c (dwarf_op): New function.
5206 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
5207 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
5208 (output_loc_operands, output_loc_operands_raw): Likewise.
5209 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
5210 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
5211 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
5212 if dwarf_version < 5.
5213 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
5214 DW_OP_GNU_xxx.
5215 (scompare_loc_descriptor, ucompare_loc_descriptor,
5216 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
5217 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
5218 optimize_location_into_implicit_ptr): Likewise. Only punt for
5219 !dwarf_strict if dwarf_version < 5.
5220 (string_cst_pool_decl): Adjust comment.
5221 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
5222
5223 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
5224 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
5225 (struct dw_val_node): Add val_file_implicit field.
5226 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
5227 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
5228 output_die): Handle dw_val_class_const_implicit,
5229 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
5230 (abbrev_die_table): Change into va_gc vec.
5231 (abbrev_die_table_allocated, abbrev_die_table_in_use,
5232 ABBREV_DIE_TABLE_INCREMENT): Remove.
5233 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
5234 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
5235 variables.
5236 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
5237 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
5238 vectors.
5239 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
5240 functions.
5241 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
5242 the implicit value.
5243 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
5244 vec.
5245 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
5246 unit. Call optimize_abbrev_table.
5247 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
5248 abbrev_die_table being a va_gc vec.
5249
5250 PR tree-optimization/77860
5251 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
5252 also integral complex and vector constants.
5253
5254 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
5255 optimize_macinfo_range, save_macinfo_strings): Replace
5256 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
5257 (output_macinfo): Likewise. Emit .debug_macro* rather than
5258 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
5259 (init_sections_and_labels): Use .debug_macro* labels rather than
5260 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
5261 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
5262 or DW_AT_GNU_macros for -gdwarf-5.
5263
5264 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
5265
5266 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
5267
5268 2016-09-11 Le-Chun Wu <lcwu@google.com>
5269 Mark Wielaard <mjw@redhat.com>
5270
5271 * common.opt (Wshadow=global): New option. Default for -Wshadow.
5272 (Wshadow=local): New option.
5273 (Wshadow-local): Hidden alias for -Wshadow=local.
5274 (Wshadow=compatible-local): New option.
5275 (Wshadow-compatible-local): Hidden alias for
5276 -Wshadow=compatible-local.
5277 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
5278 Wshadow=compatible-local.
5279
5280 2016-10-31 Bin Cheng <bin.cheng@arm.com>
5281
5282 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
5283 Check slp defs for COND_EXPR by swapping/inverting operands if the
5284 new parameter SWAP indicates so.
5285 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
5286 is isomorphic to the first stmt via swapping/inverting. Store swap
5287 information in the new parameter SWAP.
5288 (vect_build_slp_tree): New local array SWAP and pass it to function
5289 vect_build_slp_tree_1. Cleanup result handling code for function
5290 call to vect_get_and_check_slp_defs. Skip operand swapping if the
5291 order of operands has been fixed as indicated by SWAP[i].
5292
5293 2016-10-31 Bin Cheng <bin.cheng@arm.com>
5294
5295 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
5296 unnecessary data dependence check after visited store stmt.
5297
5298 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5299
5300 PR tree-optimization/71915
5301 PR tree-optimization/71490
5302 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
5303 stride_type field.
5304 (find_basis_for_base_expr): Require stride types to match when
5305 seeking a basis.
5306 (alloc_cand_and_find_basis): Record the stride type.
5307 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
5308 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
5309 the expressions having those types.
5310 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
5311 (create_mul_ssa_cand): Likewise.
5312 (create_mul_imm_cand): Likewise.
5313 (create_add_ssa_cand): Likewise.
5314 (create_add_imm_cand): Likewise.
5315 (legal_cast_p_1): Change interface to accept types rather than the
5316 expressions having those types.
5317 (legal_cast_p): Pass types to legal_cast_p_1.
5318 (slsr_process_cast): Pass stride type to
5319 alloc_cand_and_find_basis.
5320 (slsr_process_copy): Likewise.
5321 (dump_candidate): Display stride type when a cast exists.
5322 (create_add_on_incoming_edge): Introduce a cast when necessary for
5323 the stride type.
5324 (analyze_increments): Change the code checking for invalid casts
5325 to rely on the stride type, and update the documentation and
5326 example. Change the code checking for pointer multiplies to rely
5327 on the stride type.
5328 (insert_initializers): Introduce a cast when necessary for the
5329 stride type. Use the stride type for the type of the initializer.
5330
5331 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5332
5333 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
5334
5335 2016-10-29 Jakub Jelinek <jakub@redhat.com>
5336
5337 PR rtl-optimization/77919
5338 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
5339 into memory if both modes are complex and their inner modes have the
5340 same precision. If the two modes are different complex modes, convert
5341 each part separately and generate a new CONCAT.
5342
5343 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
5344
5345 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
5346
5347 2016-10-29 Jakub Jelinek <jakub@redhat.com>
5348
5349 PR target/78148
5350 * gimple-ssa-store-merging.c
5351 (imm_store_chain_info::output_merged_store): Use build_aligned_type
5352 instead of SET_TYPE_ALIGN on shared integral type.
5353
5354 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
5355
5356 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
5357 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
5358 Adjust comment.
5359
5360 2016-10-28 Jeff Law <law@redhat.com>
5361
5362 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
5363 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
5364
5365 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
5366
5367 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
5368
5369 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
5370
5371 * target.def (min_arithmetic_precision): New hook.
5372 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
5373 * doc/tm.texi: Regenerate.
5374 * internal-fn.c (expand_arith_overflow): Adjust handling of target
5375 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
5376 * targhooks.c (default_min_arithmetic_precision): New function.
5377 * targhooks.h (default_min_arithmetic_precision): Declare.
5378 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
5379 (sparc_min_arithmetic_precision): New function.
5380
5381 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
5382
5383 PR target/71847
5384 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
5385 Swap commutative operands in new RTL if needed. Handle zero_ext
5386 in the set_dest.
5387 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
5388 PATTERN (insn).
5389
5390 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5391 Kugan Vivekanandarajah <kuganv@linaro.org>
5392 Jim Wilson <jim.wilson@linaro.org>
5393
5394 PR tree-optimization/43721
5395 * target.def: New hook expand_divmod_libfunc.
5396 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
5397 * doc/tm.texi: Regenerate.
5398 * internal-fn.def: Add new entry for DIVMOD ifn.
5399 * internal-fn.c (expand_DIVMOD): New.
5400 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
5401 targhooks.h.
5402 (widen_mul_stats): Add new field divmod_calls_inserted.
5403 (target_supports_divmod_p): New.
5404 (divmod_candidate_p): Likewise.
5405 (convert_to_divmod): Likewise.
5406 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
5407 renumber_gimple_stmt_uids at beginning of function. Call
5408 convert_to_divmod and record stats for divmod.
5409 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
5410 TARGET_EXPAND_DIVMOD_LIBFUNC.
5411 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
5412 divmod_simode.
5413
5414 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
5415 Segher Boessenkool <segher@kernel.crashing.org>
5416
5417 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
5418 swapping the arms of the branch.
5419 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
5420 sequence for the generic signed-signed-signed case.
5421
5422 2016-10-28 Jeff Law <law@redhat.com>
5423
5424 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
5425 fallthru comment.
5426 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
5427
5428 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
5429
5430 PR rtl-optimization/78029
5431 * function.c (prologue_contains, epilogue_contains): New functions.
5432 (record_prologue_seq, record_epilogue_seq): New functions.
5433 * function.h (prologue_contains, epilogue_contains,
5434 record_prologue_seq, record_epilogue_seq): New declarations.
5435 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
5436 mixing prologue and epilogue insns.
5437 (init_deps): Initialize the new fields in struct deps_desc.
5438 * sched-int.h (struct deps_desc): New fields last_prologue,
5439 last_epilogue, and last_logue_was_epilogue.
5440 * shrink-wrap.c (emit_common_heads_for_components): Record all
5441 emitted prologue and epilogue insns.
5442 (emit_common_tails_for_components): Ditto.
5443 (insert_prologue_epilogue_for_components): Ditto.
5444
5445 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5446
5447 PR middle-end/22141
5448 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
5449 * common.opt (fstore-merging): New Optimization option.
5450 * opts.c (default_options_table): Add entry for
5451 OPT_ftree_store_merging.
5452 * fold-const.h (can_native_encode_type_p): Declare prototype.
5453 * fold-const.c (can_native_encode_type_p): Define.
5454 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
5455 (PARAM_MAX_STORES_TO_MERGE): Likewise.
5456 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
5457 * passes.def: Insert pass_tree_store_merging.
5458 * tree-pass.h (make_pass_store_merging): Declare extern
5459 prototype.
5460 * gimple-ssa-store-merging.c: New file.
5461 * doc/invoke.texi (Optimization Options): Document
5462 -fstore-merging.
5463 (--param documentation): Document store-merging-allow-unaligned
5464 and max-stores-to-merge.
5465
5466 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
5467
5468 PR middle-end/72747
5469 * gimplify.c (gimplify_init_constructor): Move emit of constructor
5470 assignment to earlier in the if/else logic.
5471
5472 2016-10-28 Richard Biener <rguenther@suse.de>
5473
5474 PR middle-end/78128
5475 PR middle-end/71002
5476 * fold-const.c (make_bit_field_ref): Only adjust alias set
5477 when the original alias set was zero.
5478
5479 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5480
5481 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
5482 (s390_adjust_loops): New function.
5483 (s390_reorg): Invoke s390_adjust_loops.
5484 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
5485 ("osc_break"): New insn definition.
5486
5487 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5488
5489 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
5490 * config.gcc: Support alternate archXX cpu levels with
5491 --with-arch= and --with-tune=.
5492 * config/s390/linux.h: Translate new archXX cpu levels to the
5493 original names when calling GAS.
5494 * config/s390/tpf.h: Likewise.
5495 * doc/invoke.texi: Document the alternate cpu level names.
5496
5497 2016-10-28 Jakub Jelinek <jakub@redhat.com>
5498
5499 PR rtl-optimization/77919
5500 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
5501 MEM if mode1 is not a complex mode.
5502
5503 PR rtl-optimization/78132
5504 * ree.c (combine_reaching_defs): Give up if copy_needed and
5505 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
5506
5507 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
5508
5509 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
5510
5511 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
5512
5513 * config/rs6000/constraints.md (wH constraint): Add new
5514 constraints for allowing 32-bit integers (and eventually 8/16-bit
5515 integers) into the vector registers.
5516 (wI constraint): Likewise.
5517 (wJ constraint): Likewise.
5518 (wK constraint): Likewise.
5519 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
5520 -mvsx-small-integer as a default option for ISA 2.07
5521 (i.e. power8).
5522 (POWERPC_MASKS): Likewise.
5523 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
5524 switch to turn off small integer support in vector registers.
5525 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
5526 test for -mupper-regs-di, since it is already done with the
5527 reg_add[mode].scalar_in_vsx_p. Add support for the switch
5528 -mvsx-small-integer.
5529 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
5530 constraints.
5531 (rs6000_setup_reg_addr_masks): Likewise.
5532 (rs6000_init_hard_regno_mode_ok): Likewise.
5533 (rs6000_option_override_internal): Add consistency checks for
5534 -mvsx-small-integer.
5535 (rs6000_secondary_reload_simple_move): SImode is a simple move if
5536 -mvsx-small-integer.
5537 (rs6000_secondary_reload): Use std::swap.
5538 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
5539 VSX_REGS for small integers in vector registers, since there is no
5540 D-FORM address mode for such types.
5541 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
5542 (rs6000_opt_masks): Add -mvsx-small-integer.
5543 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
5544 support.
5545 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
5546 extracts can be done on ISA 2.07.
5547 (vsx_extract_<mode>): Add support for small integers in vsx
5548 registers.
5549 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
5550 longer support V4SImode in this pattern.
5551 (vsx_extract_si): New insn to support extraction of SImode in ISA
5552 2.07 using either xxextractuw or vspltw.
5553 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
5554 longer support V4SImode in this pattern.
5555 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
5556 wJ, and wK constraints.
5557 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
5558 storing SDmode with VSX instructions.
5559 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
5560 GPR load and before the FPR and VSX loads. Remove ??, ! from the
5561 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
5562 small integers in vector registers.
5563 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
5564 load and before the FPR and VSX loads. Remove ??, ! from the
5565 constraints. Add VEXTSW2D support for small integers in vector
5566 registers.
5567 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
5568 integers in vector registers.
5569 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
5570 move instead of using an UNSPEC.
5571 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
5572 integers in vector registers.
5573 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
5574 move instead of using an UNSPEC.
5575 (movsi_internal1): Add support for -mvsx-small-integer. Align
5576 columns so that it is more readable.
5577 (SImode splitter for ISA 3.0 constants): Add splitter for
5578 -128..127 constants that can easily be constructed on ISA 3.0.
5579 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
5580 constraints.
5581
5582 2016-10-27 Jakub Jelinek <jakub@redhat.com>
5583
5584 PR middle-end/78025
5585 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
5586 functions.
5587
5588 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
5589
5590 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
5591 PIC_OFFSET_TABLE_REGNUM twice.
5592
5593 2016-10-27 Bin Cheng <bin.cheng@arm.com>
5594
5595 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
5596 support for constant operand for OP.
5597
5598 2016-10-27 Jakub Jelinek <jakub@redhat.com>
5599
5600 * dwarf2out.c (gen_member_die): Only reparent_child instead of
5601 splice_child_die if child doesn't have DW_AT_specification attribute.
5602
5603 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
5604
5605 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
5606 (TARGET_HAVE_LDREXBH): Likewise.
5607 (TARGET_HAVE_LDACQ): Likewise.
5608
5609 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
5610
5611 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
5612 logic to to decide whether to copy over old value to register for new
5613 value.
5614 * config/arm/sync.md: Add comments explaning why mode and code
5615 attribute are not defined in iterators.md
5616 (thumb1_atomic_op_str): New code attribute.
5617 (thumb1_atomic_newop_str): Likewise.
5618 (thumb1_atomic_fetch_op_str): Likewise.
5619 (thumb1_atomic_fetch_newop_str): Likewise.
5620 (thumb1_atomic_fetch_oldop_str): Likewise.
5621 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
5622 mirror the more restrictive constraints of the Thumb-1 insns after
5623 split compared to Thumb-2 counterpart insns.
5624 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
5625 in sync with non atomic version.
5626 (atomic_nand<mode>): Likewise.
5627 (atomic_fetch_<sync_optab><mode>): Likewise.
5628 (atomic_fetch_nand<mode>): Likewise.
5629 (atomic_<sync_optab>_fetch<mode>): Likewise.
5630 (atomic_nand_fetch<mode>): Likewise.
5631 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
5632 in sync with atomic version.
5633 (thumb1_subsi3_insn): Likewise.
5634 (thumb1_andsi3_insn): Likewise.
5635 (thumb1_iorsi3_insn): Likewise.
5636 (thumb1_xorsi3_insn): Likewise.
5637
5638 2016-10-27 Nick Clifton <nickc@redhat.com>
5639
5640 * plugin.c (register_plugin_info): Produce an error message if the
5641 plugin is not found in the hash table.
5642
5643 2016-10-27 Bin Cheng <bin.cheng@arm.com>
5644
5645 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
5646 New pattern.
5647
5648 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
5649
5650 PR target/78056
5651 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
5652 define builtin functions from the bdesc_spe_predicates or
5653 bdesc_spe_evsel arrays if the builtin mask is not compatible with
5654 the current compiler configuration.
5655 (paired_init_builtins): Modify loop to not define define builtin
5656 functions from the bdesc_paried_preds array if the builtin mask is
5657 not compatible with the current compiler configuration.
5658 (altivec_init_builtins): Modify loops to not define the
5659 __builtin_altivec_stxvl function nor the builtin functions from
5660 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
5661 builtin mask is not compatible with the current compiler
5662 configuration.
5663
5664 2016-10-26 Jeff Law <law@redhat.com>
5665
5666 * config/sh/sh.c (output_branch): Add missing fallthru comments.
5667 (gen_shl_and): Likewise.
5668 * config/sh/sh.md (movsicc): Add missing fallthru comments.
5669
5670 * config/mips/mips.c (mips16_constant_cost): Add missing
5671 fallthru comments.
5672 (mips16_build_call_stub): Increase buffer size. Adjust
5673 fallthru comment.
5674
5675 2016-10-26 David Malcolm <dmalcolm@redhat.com>
5676
5677 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
5678 INSN_UIDs for all insns in compact mode.
5679 (rtx_writer::print_rtx): Likewise.
5680 * print-rtl.h (rtx_writer::flag_compact): Update comment.
5681 * rtl-tests.c (selftest::test_dumping_insns): Update expected
5682 output to include INSN_UID.
5683 (selftest::test_uncond_jump): Likewise.
5684
5685 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
5686
5687 * haifa-sched.c (call_used_regs_num): Rename to...
5688 (call_saved_regs_num): ...this.
5689 (fixed_regs_num): New variable.
5690 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
5691 regs not call_used.
5692 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
5693
5694 2016-10-26 David Malcolm <dmalcolm@redhat.com>
5695
5696 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
5697 class rtx_writer.
5698 * print-rtl.c (outfile): Delete global.
5699 (sawclose): Likewise.
5700 (indent): Likewise.
5701 (in_call_function_usage): Likewise.
5702 (flag_compact): Likewise.
5703 (flag_simple): Likewise.
5704 (rtx_writer::rtx_writer): New ctor.
5705 (print_rtx_operand_code_0): Convert to...
5706 (rtx_writer::print_rtx_operand_code_0): ...this.
5707 (print_rtx_operand_code_e): Convert to...
5708 (rtx_writer::print_rtx_operand_code_e): ...this.
5709 (print_rtx_operand_codes_E_and_V): Convert to...
5710 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
5711 (print_rtx_operand_code_i): Convert to...
5712 (rtx_writer::print_rtx_operand_code_i): ...this.
5713 (print_rtx_operand_code_r): Convert to...
5714 (rtx_writer::print_rtx_operand_code_r): ...this.
5715 (print_rtx_operand_code_u): Convert to...
5716 (rtx_writer::print_rtx_operand_code_u): ...this.
5717 (print_rtx_operand): Convert to...
5718 (rtx_writer::print_rtx_operand): ...this.
5719 (print_rtx): Convert to...
5720 (rtx_writer::print_rtx): ...this.
5721 (print_inline_rtx): Rewrite in terms of class rtx_writer.
5722 (debug_rtx): Likewise.
5723 (print_rtl): Convert to...
5724 (rtx_writer::print_rtl): ...this.
5725 (print_rtl): Reimplement in terms of class rtx_writer.
5726 (print_rtl_single): Rewrite in terms of class rtx_writer.
5727 (print_rtl_single_with_indent): Convert to..
5728 (rtx_writer::print_rtl_single_with_indent): ...this.
5729 (print_simple_rtl): Rewrite in terms of class rtx_writer.
5730 * print-rtl.h (flag_compact): Delete decl.
5731 (class rtx_writer): New class.
5732 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
5733 class rtx_writer.
5734
5735 2016-10-26 Jeff Law <law@redhat.com>
5736
5737 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
5738 fallthru.
5739
5740 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
5741 (check_if_valid_sleep_operand): Add missing fallthru comment.
5742 (arc_register_move_cost): Increase buffer size.
5743 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
5744 comment.
5745 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
5746
5747 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
5748 comment. Add gcc_unreachable for path that should never happen.
5749
5750 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
5751 fallthru comment.
5752
5753 2016-10-26 Jakub Jelinek <jakub@redhat.com>
5754 Martin Liska <mliska@suse.cz>
5755
5756 PR fortran/77973
5757 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
5758 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
5759 on outer context if any.
5760
5761 2016-10-26 Jakub Jelinek <jakub@redhat.com>
5762
5763 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
5764 by increment rather than double it.
5765 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
5766 emit a space before args[4].
5767 (END): Don't emit a space before with_arg.
5768
5769 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
5770
5771 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
5772 Baseline only alternatives to (i) hold store atomic success value in a
5773 return register rather than a scratch register, (ii) use a low register
5774 for it and to (iii) ensure the cbranchsi insn generated by the split
5775 respect the constraints of Thumb-1 cbranchsi4_insn and
5776 cbranchsi4_scratch.
5777 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
5778 constraints must match those in atomic_compare_and_swap.
5779 (cbranchsi4_scratch): Likewise.
5780
5781 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
5782
5783 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
5784 variable. Add the new parameter to the insn generator. Set that
5785 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
5786 return value from the negation of that parameter for Thumb-1, keeping
5787 the logic unchanged otherwise except for using bdst as the destination
5788 register of the compare_and_swap insn.
5789 (arm_split_compare_and_swap): Add explanation about how is the value
5790 returned to the function comment. Rename scratch variable to
5791 neg_bval. Adapt initialization of variables holding operands to the
5792 new operand numbers. Use return register to hold result of store
5793 exclusive for Thumb-1, scratch register otherwise. Construct the
5794 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
5795 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
5796 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
5797 for strongly ordered compare_and_swap.
5798 * config/arm/predicates.md (cc_register_operand): New predicate.
5799 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
5800 match_operand with the new predicate to accept either the CC flag or a
5801 destination register for the boolean return value, restricting it to
5802 CC flag only via constraint. Adapt operand numbers accordingly.
5803
5804 2016-10-26 Jeff Law <law@redhat.com>
5805
5806 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
5807
5808 * config/frv/frv.c (comparison_string): Do not fall through after
5809 an error.
5810
5811 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
5812 comment.
5813 (expand_one_builtin): Add missing break.
5814
5815 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
5816 (m32c_legitimate_address_p): Likewise.
5817
5818 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
5819
5820 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
5821
5822 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
5823 fallthru comment.
5824
5825 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
5826 fallthru comment.
5827
5828 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
5829
5830 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
5831 comment.
5832 (rl78_asm_ctor_dtor): Increase buffer size.
5833
5834 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
5835 buffer size.
5836 (xstormy16_asm_output_constructor): Likewise.
5837
5838 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
5839 size.
5840
5841 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
5842 comment to silence warning.
5843
5844 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
5845 (spu_legitimate_address_p): Fix logic error and add missing fallthru
5846 comment.
5847
5848 2016-10-26 Michael Matz <matz@suse.de>
5849
5850 PR tree-optimization/78060
5851 PR tree-optimization/78061
5852 PR tree-optimization/78088
5853 * tree-ssa-loop-split.c (easy_exit_values): New function.
5854 (tree_ssa_split_loops): Use it.
5855 (compute_new_first_bound): Change order of operations,
5856 fix invalid use of types.
5857
5858 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
5859
5860 gen-pass-instances.awk is sensitive to the order in which
5861 passes are added; passes that appear later have to be added first.
5862
5863 PR target/71676
5864 PR target/71678
5865 * config/avr/avr-passes.def: Swap order of directives for
5866 gen-pass-instances.awk.
5867
5868 2016-10-25 Jeff Law <law@redhat.com>
5869
5870 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
5871 (vax_notice_update_cc): Likewise.
5872
5873 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
5874
5875 * config.gcc (sparc*-*-solaris2*): Adjust.
5876 (sparc64-*-linux*): Likewise.
5877 * config/sparc/default-64.h: Rename to...
5878 * config/sparc/default64.h: ...this.
5879 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
5880 with TARGET_ARCH64.
5881 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
5882 * config/sparc/sparc.h: Minor tweaks.
5883 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
5884 TARGET_ARCH32 throughout. Minor various tweaks throughout.
5885
5886 2016-10-25 David Malcolm <dmalcolm@redhat.com>
5887
5888 * input.c (fcache::file_patch): Add comment about lifetime.
5889 (selftest::cpp_reader_ptr): New class.
5890 (selftest::lexer_test): Convert m_parser from cpp_reader *
5891 to a cpp_reader_ptr, and move m_tempfile to after it.
5892 (selftest::lexer_test::lexer_test): Update for above reordering.
5893 (lexer_test::~lexer_test): Move cleanup of m_parser to
5894 cpp_reader_ptr's dtor.
5895
5896 2016-10-25 David Malcolm <dmalcolm@redhat.com>
5897
5898 * toplev.c (toplev::main): Remove call to
5899 location_adhoc_data_fini.
5900
5901 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
5902
5903 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
5904 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
5905
5906 2016-10-25 David Malcolm <dmalcolm@redhat.com>
5907
5908 * ggc-tests.c (forcibly_ggc_collect): Rename to...
5909 (selftest::forcibly_ggc_collect): ...this, and remove "static".
5910 (test_basic_struct): Update for above renaming.
5911 (test_length): Likewise.
5912 (test_union): Likewise.
5913 (test_finalization): Likewise.
5914 (test_deletable_global): Likewise.
5915 (test_inheritance): Likewise.
5916 (test_chain_next): Likewise.
5917 (test_user_struct): Likewise.
5918 (test_tree_marking): Likewise.
5919 * selftest-run-tests.c (selftest::run_tests): Call
5920 selftest::forcibly_ggc_collect at the end of the selftests.
5921 * selftest.h (selftest::forcibly_ggc_collect): New decl.
5922
5923 2016-10-25 Jakub Jelinek <jakub@redhat.com>
5924
5925 PR target/78102
5926 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
5927 * optabs.c (expand_vec_cond_expr): For comparison codes
5928 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
5929 (expand_vec_cmp_expr): For comparison codes
5930 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
5931 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
5932 Add enum tree_code argument.
5933 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
5934 inline functions.
5935 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
5936 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
5937 fallback.
5938 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
5939 NE_EXPR, attempt to use vcondeq_optab as fallback.
5940 * tree-vect-generic.c (expand_vector_comparison,
5941 expand_vector_divmod, expand_vector_condition): Adjust
5942 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
5943 * tree-vect-stmts.c (vectorizable_condition,
5944 vectorizable_comparison): Likewise.
5945 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
5946 check_bool_pattern, search_type_for_mask_1): Likewise.
5947 * expr.c (do_store_flag): Likewise.
5948 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
5949 @code{vcondeq@var{m}@var{n}}): Document.
5950 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
5951 New expanders.
5952
5953 2016-10-25 Jeff Law <law@redhat.com>
5954
5955 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
5956 comment.
5957 (v850_output_aligned_bss): Add missing break.
5958
5959 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
5960
5961 2016-10-25 Martin Liska <mliska@suse.cz>
5962
5963 PR sanitizer/78106
5964 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
5965 statements as they can also contain possibly a freeing call.
5966
5967 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
5968 Martin Liska <mliska@suse.cz>
5969
5970 PR ipa/78099
5971 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
5972 * ipa-icf.c (sem_function::get_hash): Add target optimization
5973 node to hash.
5974
5975 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
5976
5977 PR target/78041
5978 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
5979 Remove partial overlap check for shift by 1.
5980 (ashldi3_neon): Likewise.
5981
5982 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
5983
5984 * config/arm/constraints.md (Q constraint): Document its use for
5985 Thumb-1.
5986 (Pf constraint): New constraint for relaxed, consume or relaxed memory
5987 models.
5988 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
5989 alternatives to allow any register when memory model matches Pf and
5990 thus lda is used, but only low registers otherwise. Use unpredicated
5991 output template for Thumb-1 targets.
5992 (atomic_store<mode>): Likewise for stl.
5993 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
5994 whose output template does not have predication.
5995 (arm_load_acquire_exclusive<mode>): Likewise.
5996 (arm_load_exclusivesi): Likewise.
5997 (arm_load_acquire_exclusivesi): Likewise.
5998 (arm_store_release_exclusive<mode>): Likewise.
5999 (arm_store_exclusive<mode>): Use unpredicated output template for
6000 Thumb-1 targets.
6001
6002 2016-10-25 Jakub Jelinek <jakub@redhat.com>
6003
6004 * internal-fn.def (LAUNDER): New internal function.
6005 * internal-fn.c (expand_LAUNDER): New function.
6006
6007 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
6008 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
6009
6010 New avr target pass to work around performance loss by PR fix.
6011
6012 PR target/71676
6013 PR target/71678
6014 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
6015 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
6016 * config/avr/predicates.md (extend_operator): New.
6017 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
6018 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
6019 (make_avr_pass_casesi): New prototypes.
6020 * config/avr/avr.c (print-rtl.h): Include it.
6021 (pass_data avr_pass_data_casesi): Data for new pass.
6022 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
6023 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
6024 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
6025 (avr_optimize_casesi): New functions.
6026
6027 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
6028 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
6029
6030 PR target/71676
6031 PR target/71678
6032 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
6033
6034 2016-10-24 Jakub Jelinek <jakub@redhat.com>
6035
6036 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
6037 DW_AT_rvalue_reference attributes.
6038
6039 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
6040
6041 * doc/invoke.text (Wint-in-bool-context): Update documentation.
6042 * value-prof.c (stringop_block_profile): Fix a warning.
6043
6044 2016-10-24 Martin Sebor <msebor@redhat.com>
6045
6046 PR middle-end/77735
6047 * builtins.c (string_length): New function.
6048 (c_strlen): Use string_length. Correctly handle wide strings.
6049 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
6050 functions.
6051 (target_int_max): Call target_max_value.
6052 (format_result::knownrange): New data member.
6053 (fmtresult::fmtresult): Define default constructor.
6054 (format_integer): Use it and set format_result::knownrange.
6055 Handle global constants.
6056 (format_floating_max): Add third argument.
6057 (format_floating): Recompute maximum value for %a for each argument.
6058 (get_string_length): Use fmtresult default ctor.
6059 (format_string): Set format_result::knownrange.
6060 (format_directive): Check format_result::knownrange.
6061 (add_bytes): Same. Correct caret placement in diagnostics.
6062 (pass_sprintf_length::compute_format_length): Set
6063 format_result::knownrange.
6064 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
6065
6066 2016-10-24 Jakub Jelinek <jakub@redhat.com>
6067
6068 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
6069 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
6070
6071 2016-10-24 Ximin Luo <infinity0@pwned.gg>
6072
6073 PR debug/77985
6074 * dwarf2out.c (file_table_relative_p): Remove.
6075 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
6076 also for absolute paths.
6077 * doc/tm.texi: Update.
6078 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
6079 * target.def (force_at_comp_dir): Remove hook.
6080 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
6081
6082 2016-10-24 Richard Biener <rguenther@suse.de>
6083
6084 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
6085 backedges when identifying the single predecessor to take
6086 conditional info from. Use SCEV to get at ranges for loop IVs.
6087 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
6088 avoid false warning.
6089
6090 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
6091
6092 PR target/78093
6093 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
6094 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
6095 (avr_address_tiny_absdata_p): New static function.
6096 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
6097 it to determine validity of constant addresses.
6098 (avr_attribute_table) [absdata]: New variable attribute...
6099 (avr_handle_absdata_attribute): ...and handler.
6100 (avr_decl_absdata_p): New static function.
6101 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
6102 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
6103 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
6104
6105 2016-10-24 Richard Biener <rguenther@suse.de>
6106
6107 PR tree-optimization/78076
6108 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
6109 also on the loop tree root.
6110
6111 2016-10-24 Jakub Jelinek <jakub@redhat.com>
6112
6113 * config/i386/i386.c (ix86_fold_builtin): Handle
6114 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
6115 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
6116 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
6117 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
6118
6119 2016-10-24 Martin Liska <mliska@suse.cz>
6120
6121 PR sanitizer/77966
6122 * opts.c (finish_options): Skip conditionally.
6123
6124 2016-10-23 Martin Sebor <msebor@redhat.com>
6125
6126 PR target/77837
6127 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
6128 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
6129
6130 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
6131
6132 * config/sparc/sparc.md (cpu_feature): Minor tweak.
6133 (enabled): Likewise.
6134 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
6135 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
6136 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
6137 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
6138 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
6139 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
6140
6141 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
6142
6143 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
6144 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
6145
6146 2016-10-21 Andrew Pinski <apinski@cavium.com>
6147
6148 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
6149 integer constants.
6150 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
6151 implementer_id to unsigned char.
6152 Change part_no to unsigned int.
6153 (AARCH64_BIG_LITTLE): New define.
6154 (INVALID_IMP): New define.
6155 (INVALID_CORE): New define.
6156 (cpu_data): Change the last element's implementer_id and part_no to
6157 integers.
6158 (valid_bL_string_p): Rewrite to ..
6159 (valid_bL_core_p): this for integers instead of strings.
6160 (parse_field): New function.
6161 (contains_string_p): Rewrite to ...
6162 (contains_core_p): this for integers and only for the part_no.
6163 (host_detect_local_cpu): Rewrite handling of implementation and
6164 par num to be integers; simplifying the code.
6165
6166 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6167
6168 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
6169 value range for pointers in more cases.
6170
6171 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
6172
6173 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
6174 Add extra argument to allow emitting the move immediate.
6175 Use add/sub with positive immediate.
6176 (aarch64_add_constant): Add inline function.
6177 (aarch64_add_sp): Likewise.
6178 (aarch64_sub_sp): Likewise.
6179 (aarch64_expand_prologue): Call aarch64_sub_sp.
6180 (aarch64_expand_epilogue): Call aarch64_add_sp.
6181 Decide when to leave out move.
6182 (aarch64_output_mi_thunk): Call aarch64_add_constant.
6183
6184 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
6185
6186 * config/aarch64/aarch64.c (aarch64_layout_frame):
6187 Align FP callee-saves.
6188
6189 2016-10-21 Jakub Jelinek <jakub@redhat.com>
6190
6191 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
6192 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
6193 Formatting fixes.
6194 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
6195 _rdseed64_step): Likewise.
6196 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
6197
6198 PR target/78057
6199 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
6200 and tree-ssanames.h.
6201 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
6202 with INTEGER_CST argument.
6203 (ix86_gimple_fold_builtin): New function.
6204 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6205
6206 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
6207 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
6208 (ranges_table_allocated, ranges_table_in_use,
6209 ranges_by_label_allocated, ranges_by_label_in_use,
6210 RANGES_TABLE_INCREMENT): Removed.
6211 (add_ranges_num): Use vec_safe_push into ranges_table.
6212 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
6213 (output_ranges): Adjust for ranges_table and ranges_by_label
6214 conversion from arrays to vec.
6215 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
6216 conversion from arrays to vec.
6217 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
6218 ranges_table_in_use, ranges_by_label_allocated and
6219 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
6220
6221 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
6222 if needed. Re-add origin_die variable and its initialization.
6223
6224 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
6225 even for -fstack-reuse=none, or for volatile vars etc.
6226
6227 2016-10-21 David Malcolm <dmalcolm@redhat.com>
6228
6229 * print-rtl-function.c (flag_compact): Move extern decl to...
6230 * print-rtl.h (flag_compact): ...here.
6231 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
6232 (ASSERT_RTL_DUMP_EQ): New macro.
6233 (selftest::test_dumping_regs): New function.
6234 (selftest::test_dumping_insns): New function.
6235 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
6236 the insns.
6237 (selftest::rtl_tests_c_tests): Call the new test functions.
6238
6239 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6240
6241 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
6242 (outgoing_edges_match): Likewise.
6243 (try_crossjump_to_edge): Likewise.
6244 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6245 (rtl_tidy_fallthru_edge): Likewise.
6246 * rtl.h (tablejump_p): Adjust prototype.
6247 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
6248
6249 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6250
6251 * rtl.h (label_ref_label): New function.
6252 (set_label_ref_label): New function.
6253 (LABEL_REF_LABEL): Delete.
6254 * alias.c (rtx_equal_for_memref_p): Adjust.
6255 * cfgbuild.c (make_edges): Likewise.
6256 (purge_dead_tablejump_edges): Likewise.
6257 * cfgexpand.c (convert_debug_memory_address): Likewise.
6258 * cfgrtl.c (patch_jump_insn): Likewise.
6259 * combine.c (distribute_notes): Likewise.
6260 * cse.c (hash_rtx_cb): Likewise.
6261 (exp_equiv_p): Likewise.
6262 (fold_rtx): Likewise.
6263 (check_for_label_ref): Likewise.
6264 * cselib.c (rtx_equal_for_cselib_1): Likewise.
6265 (cselib_hash_rtx): Likewise.
6266 * emit-rtl.c (mark_label_nuses): Likewise.
6267 * explow.c (convert_memory_address_addr_space_1): Likewise.
6268 * final.c (output_asm_label): Likewise.
6269 (output_addr_const): Likewise.
6270 * gcse.c (add_label_notes): Likewise.
6271 * genconfig.c (walk_insn_part): Likewise.
6272 * genrecog.c (validate_pattern): Likewise.
6273 * ifcvt.c (cond_exec_get_condition): Likewise.
6274 (noce_emit_store_flag): Likewise.
6275 (noce_get_alt_condition): Likewise.
6276 (noce_get_condition): Likewise.
6277 * jump.c (maybe_propagate_label_ref): Likewise.
6278 (mark_jump_label_1): Likewise.
6279 (redirect_exp_1): Likewise.
6280 (rtx_renumbered_equal_p): Likewise.
6281 * lra-constraints.c (operands_match_p): Likewise.
6282 * print-rtl.c (print_value): Likewise.
6283 * reload.c (find_reloads): Likewise.
6284 * reload1.c (set_label_offsets): Likewise.
6285 * reorg.c (get_branch_condition): Likewise.
6286 * rtl-tests.c (test_uncond_jump): Likewise.
6287 * rtl.c (rtx_equal_p_cb): Likewise.
6288 (rtx_equal_p): Likewise.
6289 * rtlanal.c (reg_mentioned_p): Likewise.
6290 (rtx_referenced_p): Likewise.
6291 (get_condition): Likewise.
6292 * varasm.c (const_hash_1): Likewise.
6293 (compare_constant): Likewise.
6294 (const_rtx_hash_1): Likewise.
6295 (output_constant_pool_1): Likewise.
6296
6297 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6298
6299 PR target/71627
6300 * reload.c (find_valid_class_1): Allow regclass if atleast one
6301 regno in regclass is ok. Compute and use rclass size based on
6302 actually available regnos for mode in rclass.
6303
6304 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
6305
6306 * config/sparc/sparc-modes.def (CCV): New.
6307 (CCXV): Likewise.
6308 * config/sparc/predicates.md (v_comparison_operator): New.
6309 (icc_comparison_operator): Add support for CCV/CCXV.
6310 (xcc_comparison_operator): Likewise.
6311 * config/sparc/sparc.c (output_cbranch): Likewise.
6312 (sparc_print_operand): Likewise.
6313 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
6314 (uaddvdi4): New expander.
6315 (addvdi4): Likewise.
6316 (uaddvdi4_sp32): New instruction.
6317 (addvdi4_sp32): Likewise.
6318 (uaddvsi4): New expander.
6319 (addvsi4): Likewise.
6320 (cmp_ccc_plus_sltu_set): New instruction.
6321 (cmp_ccv_plus): Likewise.
6322 (cmp_ccxv_plus): Likewise.
6323 (cmp_ccv_plus_set): Likewise.
6324 (cmp_ccxv_plus_set): Likewise.
6325 (cmp_ccv_plus_sltu_set): Likewise.
6326 (uaddvdi4): New expander.
6327 (subvdi4): Likewise.
6328 (usubdi4_sp32): New instruction.
6329 (subvdi4_sp32): Likewise.
6330 (usubvsi4): New expander.
6331 (subvsi4): Likewise.
6332 (cmpsi_minus_sltu_set): New instruction.
6333 (cmp_ccv_minus): Likewise.
6334 (cmp_ccxv_minus): Likewise.
6335 (cmp_ccv_minus_set): Likewise.
6336 (cmp_ccxv_minus_set): Likewise.
6337 (cmp_ccv_minus_sltu_set): Likewise.
6338 (unegvdi3): New expander.
6339 (negvdi3): Likewise.
6340 (unegdi3_sp32): New instruction.
6341 (negvdi3_sp32): Likewise.
6342 (unegvsi3): New expander.
6343 (negvsi3): Likewise.
6344 (cmp_ccc_neg_sltu_set): New instruction.
6345 (cmp_ccv_neg): Likewise.
6346 (cmp_ccxv_neg): Likewise.
6347 (cmp_ccv_neg_set): Likewise.
6348 (cmp_ccxv_neg_set): Likewise.
6349 (cmp_ccv_neg_sltu_set): Likewise.
6350
6351 * tree-ssa-loop-split.c: Remove trailing spaces.
6352 * match.pd: Likewise.
6353
6354 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6355
6356 PR rtl-optimization/78038
6357 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
6358 be deduced to set REG through the RTL structure.
6359 (make_defs_and_copies_lists): Return false on a failing get_defs call.
6360
6361 2016-10-21 Richard Biener <rguenther@suse.de>
6362
6363 PR tree-optimization/78051
6364 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
6365 and mark replaced if folding did something.
6366
6367 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
6368
6369 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
6370 and "protected" in visibility types.
6371 (rs6000_xcoff_declare_function_name): Fix formatting.
6372 (rs6000_xcoff_declare_object_name): Fix formatting.
6373
6374 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
6375
6376 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
6377 and IX86_BUILTIN_HUGE_VALQ here ...
6378 (ix86_expand_builtin): ... not here.
6379
6380 2016-10-20 Jakub Jelinek <jakub@redhat.com>
6381
6382 * doc/gty.texi (for_user): Use @item next to @findex.
6383
6384 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
6385
6386 PR target/78037
6387 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
6388 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
6389 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
6390 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
6391 __builtin_ia32_lzcnt_u16.
6392 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
6393 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
6394 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
6395 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
6396 (bmi_tzcnt_<mode>): New expander.
6397 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
6398 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
6399 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
6400 (lzcnt_<mode>): New expander.
6401 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
6402 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
6403 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
6404 (UINT64_FTYPE_UINT64): New.
6405 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
6406 (__builtin_ia32_lzcnt_u16): New description.
6407 (__builtin_ia32_lzcnt_u32): Ditto.
6408 (__builtin_ia32_lzcnt_u64): Ditto.
6409 (__builtin_ctzs): Remove description.
6410 (__builtin_ia32_tzcnt_u16): New description.
6411 (__builtin_ia32_tzcnt_u32): Ditto.
6412 (__builtin_ia32_tzcnt_u64): Ditto.
6413 * config/i386/i386.c (ix86_expand_args_builtin): Handle
6414 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
6415
6416 2016-10-20 Martin Liska <mliska@suse.cz>
6417
6418 PR lto/78049
6419 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
6420 comparison with STMT_UID_NOT_IN_RANGE.
6421 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
6422 LTRANS.
6423
6424 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
6425
6426 * compare-elim.c (conforming_compare): Accept UNSPECs.
6427 (find_comparison_dom_walker::before_dom_children): Deal with
6428 instructions both using and killing the flags register.
6429 (equivalent_reg_at_start): New function extracted from...
6430 (try_eliminate_compare): ...here. Use it and add support for
6431 registers and UNSPECs as second operand of the compare.
6432 * config/visium/visium-modes.def (CCV): New.
6433 * config/visium/predicates.md (visium_v_comparison_operator): New.
6434 (visium_branch_operator): Deal with CCV mode.
6435 * config/visium/visium.c (visium_select_cc_mode): Likewise.
6436 (output_cbranch): Likewise.
6437 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
6438 (uaddv<mode>4): New expander.
6439 (addv<mode>4): Likewise.
6440 (add<mode>3_insn_set_carry): New instruction.
6441 (add<mode>3_insn_set_overflow): Likewise.
6442 (addsi3_insn_set_overflow): Likewise.
6443 (usubv<mode>4): New expander.
6444 (subv<mode>4): Likewise.
6445 (sub<mode>3_insn_set_carry): New instruction.
6446 (sub<mode>3_insn_set_overflow): Likewise.
6447 (subsi3_insn_set_overflow): Likewise.
6448 (unegv<mode>3): New expander.
6449 (negv<mode>3): Likewise.
6450 (neg<mode>2_insn_set_overflow): New instruction.
6451 (addv_tst<mode>): Likewise.
6452 (subv_tst<mode>): Likewise.
6453 (negv_tst<mode>): Likewise.
6454 (cbranch<mode>4_addv_insn): New splitter and instruction.
6455 (cbranch<mode>4_subv_insn): Likewise.
6456 (cbranch<mode>4_negv_insn): Likewise.
6457
6458 2016-10-20 Richard Biener <rguenther@suse.de>
6459
6460 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
6461 Handle decls possibly not bound.
6462 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
6463 nothing_id for decls that might not be bound if we are interested
6464 for the address.
6465 (get_constraint_for_component_ref): Deal with that.
6466
6467 2016-10-20 Michael Matz <matz@suse.de>
6468
6469 Loop splitting.
6470 * common.opt (-fsplit-loops): New flag.
6471 * passes.def (pass_loop_split): Add.
6472 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
6473 (enable_fdo_optimizations): Add loop splitting.
6474 * timevar.def (TV_LOOP_SPLIT): Add.
6475 * tree-pass.h (make_pass_loop_split): Declare.
6476 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
6477 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
6478 * tree-ssa-loop-split.c: New file.
6479 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
6480 * doc/invoke.texi (fsplit-loops): Document.
6481 * doc/passes.texi (Loop optimization): Add paragraph about loop
6482 splitting.
6483
6484 2016-10-20 Richard Biener <rguenther@suse.de>
6485
6486 * cgraphunit.c (analyze_functions): Set node->definition to
6487 false to signal symbol removal to debug_hooks->late_global_decl.
6488 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
6489 WPA signal symbol removal to the debuginfo machinery.
6490 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
6491 using early_finised to guard the we're called for symbol
6492 removal case look at the symtabs definition flag.
6493 (gen_variable_die): Remove redundant check.
6494
6495 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6496
6497 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
6498
6499 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6500
6501 PR tree-optimization/53979
6502 * match.pd ((a ^ b) | a -> a | b): New pattern.
6503
6504 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
6505
6506 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
6507 config/pa/pa64-hpux-lib.h.
6508 (PA_CRTBEGIN_HACK): Likewise.
6509 (DTOR_LIST_BEGIN): Likewise.
6510
6511 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
6512
6513 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
6514 register only if "in" and "out" are different registers.
6515
6516 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
6517
6518 * omp-low.c (pass_oacc_device_lower::gate): New method.
6519 (execute): Always call execute_oacc_device_lower.
6520
6521 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6522
6523 PR tree-optimization/77916
6524 PR tree-optimization/77937
6525 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
6526 stopgap fix.
6527 (insert_initializers): Requirement of initializer for -1 should be
6528 based on pointer-typedness of the candidate basis.
6529
6530 2016-10-19 Bin Cheng <bin.cheng@arm.com>
6531
6532 PR tree-optimization/78005
6533 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
6534 upper (included) bound for niters of prolog loop.
6535 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
6536 Compute niters of scalar loop above which vectorized loop is
6537 preferred, as well as the upper (included) bound for the niters.
6538 (vect_do_peeling): Record niter bound for loops accordingly.
6539
6540 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
6541
6542 PR lto/77458
6543 * tree-core.h (enum tree_index): Put the complex types after their
6544 component types.
6545 * tree-streamer.c (verify_common_node_recorded): New function.
6546 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
6547
6548 2016-10-19 Martin Liska <mliska@suse.cz>
6549
6550 * cgraph.h (cgraph_edge::binds_to_current_def_p):
6551 Replace NULL with false as a return value.
6552
6553 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
6554
6555 PR tree-optimization/78024
6556 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
6557 don't clear BB_VISITED after processing.
6558
6559 2016-10-19 Richard Biener <rguenther@suse.de>
6560
6561 * domwalk.c (dom_walker::walk): Use RPO order.
6562
6563 2016-10-19 Richard Biener <rguenther@suse.de>
6564
6565 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
6566 stmts_to_remove.
6567 (evrp_dom_walker::~evrp_dom_walker): Free it.
6568 (evrp_dom_walker::stmts_to_remove): Add.
6569 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
6570 whose output we fully propagate for removal. Propagate
6571 into BB destination PHI arguments.
6572 (execute_early_vrp): Remove queued stmts. Dump value ranges
6573 before stmt removal.
6574
6575 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
6576
6577 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
6578 * passes.def: Add two instances of pass_walloca.
6579 * tree-pass.h (make_pass_walloca): New.
6580 * gimple-ssa-warn-alloca.c: New file.
6581 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
6582 -Wvla-larger-than= options.
6583
6584 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
6585
6586 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
6587 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
6588
6589 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
6590
6591 * config/rs6000/altivec.h (vec_xl_len): New macro.
6592 (vec_xst_len): New macro.
6593 (vec_cmpnez): New macro.
6594 (vec_cntlz_lsbb): New macro.
6595 (vec_cnttz_lsbb): New macro.
6596 (vec_xlx): New macro.
6597 (vec_xrx): New macro.
6598 (vec_all_nez): New C++ predicate template.
6599 (vec_any_eqz): New C++ predicate template.
6600 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
6601 conditional compilation.
6602 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
6603 conditional compilation.
6604 (vec_all_nez): New macro.
6605 (vec_any_eqz): New macro.
6606 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
6607 compilation.
6608 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
6609 compilation.
6610 * config/rs6000/vector.md (VI): Moved this mode iterator
6611 definition from altivec.md to vector.md.
6612 (UNSPEC_NEZ_P): New value.
6613 (vector_ne_<mode>_p): New expansion for implementation of
6614 vec_all_ne and vec_any_eq built-in functions.
6615 (vector_nez_<mode>_p): New expansion for implementation of
6616 vec_all_nez and vec_any_eqz built-in functions.
6617 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
6618 and vec_any_eq built-in function.
6619 (cr6_test_for_zero): New commentary to explain this expansion.
6620 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
6621 (cr6_test_for_lt): New commentary to explain this expansion.
6622 (cr6_test_for_lt_reverse): New commentary to explain this
6623 expansion.
6624 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6625 overloaded function prototypes for vec_all_ne, vec_all_nez,
6626 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
6627 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
6628 built-in functions.
6629 (altivec_resolve_overloaded_builtin): Modify the handling of
6630 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
6631 the compiler is configured to support TARGET_P9_VECTOR.
6632 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
6633 to explain the special processing that is given to predicate
6634 built-ins introduced using this macro.
6635 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
6636 the special processing given to predicate built-ins introduced
6637 using this macro.
6638 (BU_VSX_P): Likewise.
6639 (BU_P8V_AV_P): Likewise.
6640 (BU_P9V_AV_P): Likewise.
6641 (BU_P9V_AV_X): New macro.
6642 (BU_P9V_64BIT_AV_X): New macro.
6643 (BU_P9V_VSX_3): New macro.
6644 (BU_P9V_OVERLOAD_P): New macro.
6645 (LXVL): New BU_P9V_64BIT_VSX_2.
6646 (VEXTUBLX): New BU_P9V_AV_2.
6647 (VEXTUBRX): Likewise.
6648 (VEXTUHLX): Likewise.
6649 (VEXTUHRX): Likewise.
6650 (VEXTUWLX): Likewise.
6651 (VEXTUWRX): Likewise.
6652 (STXVL): New BU_P9V_64BIT_AV_X.
6653 (VCLZLSBB): New BU_P9V_AV_1.
6654 (VCTZLSBB): Likewise.
6655 (CMPNEB): New BU_P9V_AV_2.
6656 (CMPNEH): Likewise.
6657 (CMPNEW): Likewise.
6658 (CMPNEF): Likewise.
6659 (CMPNED): Likewise.
6660 (VCMPNEB_P): New BU_P9V_AV_P.
6661 (VCMPNEH_P): Likewise.
6662 (VCMPNEW_P): Likewise.
6663 (VCMPNED_P): Likewise.
6664 (VCMPNEFP_P): Likewise.
6665 (VCMPNEDP_P): Likewise.
6666 (CMPNEZB): New BU_P9V_AV_2.
6667 (CMPNEZH): Likewise.
6668 (CMPNEZW): Likewise.
6669 (VCMPNEZB_P): New BU_P9V_AV_P.
6670 (VCMPNEZH_P): Likewise.
6671 (VCMPNEZW_P): Likewise.
6672 (LXVL): New BU_P9V_OVERLOAD_2.
6673 (STXVL): New BU_P9V_OVERLOAD_3.
6674 (VEXTULX): New BU_P9V_OVERLOAD_2.
6675 (VEXTURX): Likewise.
6676 (CMPNEZ): Likewise.
6677 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
6678 (VCMPNE_P): Likewise.
6679 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
6680 (VCTZLSBB): Likewise.
6681 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
6682 comment to explain mode used for scratch register.
6683 (altivec_expand_stxvl_builtin): New function.
6684 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
6685 (altivec_init_builtins): Add initialized variable
6686 void_ftype_v16qi_pvoid_long and use this type to define the
6687 built-in function __builtin_altivec_stxvl.
6688 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
6689 (UNSPEC_STXVL): New value.
6690 (UNSPEC_VCLZLSBB): New value.
6691 (UNSPEC_VCTZLSBB): New value.
6692 (UNSPEC_VEXTUBLX): New value.
6693 (UNSPEC_VEXTUHLX): New value.
6694 (UNSPEC_VEXTUWLX): New value.
6695 (UNSPEC_VEXTUBRX): New value.
6696 (UNSPEC_VEXTUHRX): New value.
6697 (UNSPEC_VEXTUWRX): New value.
6698 (UNSPEC_VCMPNEB): New value.
6699 (UNSPEC_VCMPNEZB): New value.
6700 (UNSPEC_VCMPNEH): New value.
6701 (UNSPEC_VCMPNEZH): New value.
6702 (UNSPEC_VCMPNEW): New value.
6703 (UNSPEC_VCMPNEZW): New value.
6704 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
6705 vector of integer modes.
6706 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
6707 vector of float or double modes.
6708 (*vector_nez_<mode>_p): New insn for vector test all not equal or
6709 zero.
6710 (lxvl): New expand for load VSX vector with length.
6711 (*lxvl): New insn for load VSX vector with length.
6712 (stxvl): New expand for store VSX vector with length.
6713 (*stxvl): New insn for store VSX vector with length.
6714 (vcmpneb): New insn for vector of byte compare not equal.
6715 (vcmpnezb): New insn for vector of byte compare not equal or zero.
6716 (vcmpneh): New insn for vector of half word compare not equal.
6717 (vcmpnezh): New insn for vector of half word compare not equal or
6718 zero.
6719 (vcmpnew): New insn for vector of word compare not equal.
6720 (vcmpne<VSs>): New insn for vector of float or double compare not
6721 equal.
6722 (vcmpnezw): New insn for vector of word compare not equal or zero.
6723 (vclzlsbb): New insn for vector count leading zero
6724 least-significant bits byte.
6725 (vctzlsbb): New insn for vector count trailing zero least
6726 signficant bits byte.
6727 (vextublx): New insn for vector extract unsigned byte left
6728 indexed.
6729 (vextubrx): New insn for vector extract unsigned byte right
6730 indexed.
6731 (vextuhlx): New insn for vector extract unsigned half word left
6732 indexed.
6733 (vextuhrx): New insn for vector extract unsigned half word right
6734 indexed.
6735 (vextuwlx): New insn for vector extract unsigned word left
6736 indexed.
6737 (vextuwrx): New insn for vector extract unsigned word right
6738 indexed.
6739 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
6740 clarify intent of this constant.
6741 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
6742 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
6743 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
6744 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
6745 and vec_xrx functions.
6746
6747 2016-10-18 Andrew Pinski <apinski@cavium.com>
6748
6749 PR tree-opt/65950
6750 * predict.c (is_exit_with_zero_arg): New function.
6751 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
6752 as nottaken.
6753
6754 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
6755
6756 PR target/77991
6757 * config/i386/i386.c (legitimize_tls_address)
6758 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
6759 convert dest to Pmode if different than Pmode.
6760
6761 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6762
6763 PR tree-optimization/77916
6764 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
6765 stopgap fix, as pointers with -1 increment are still broken.
6766
6767 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
6768
6769 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
6770 mapping class decoration from here...
6771 (rs6000_xcoff_encode_section): ...to here.
6772
6773 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
6774 if shrink-wrapping and optimizing for speed.
6775
6776 2016-10-18 Richard Biener <rguenther@suse.de>
6777
6778 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
6779 not visited but non-executable predecessors. Return taken edge.
6780 Simplify conditions and refactor propagation vs. folding step.
6781
6782 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
6783
6784 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
6785 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
6786 (rs6000_get_separate_components): Assert we do not have those
6787 strategies selected.
6788
6789 2016-10-18 Richard Biener <rguenther@suse.de>
6790
6791 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
6792 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
6793 clearing.
6794 (substitute_and_fold_dom_walker): Adjust constructor.
6795 (substitute_and_fold_dom_walker::before_dom_children): Remove
6796 do_dce flag and handling (always true).
6797 (substitute_and_fold): Likewise.
6798 * tree-vrp.c (vrp_finalize): Adjust.
6799 (execute_early_vrp): Remove final BB_VISITED clearing.
6800 * tree-ssa-ccp.c (ccp_finalize): Adjust.
6801 * tree-ssa-copy.c (fini_copy_prop): Likewise.
6802 * ira.c (ira): Call clear_bb_flags.
6803
6804 2016-10-18 Richard Biener <rguenther@suse.de>
6805
6806 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
6807 get at the operand to look at with TREE_OPERAND for generic
6808 sub-nodes.
6809
6810 2016-10-18 David Malcolm <dmalcolm@redhat.com>
6811
6812 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
6813 copy_md_ptr_loc.
6814 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
6815 (write_test_expr): Use rtx_reader_ptr for calls to
6816 fprint_c_condition.
6817 (write_attr_value): Likewise.
6818 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
6819 call to print_md_ptr_loc.
6820 (write_one_condition): Likewise for calls to print_c_condition.
6821 * genconstants.c: Include "statistics.h" and "vec.h".
6822 (main): Update for conversion to member functions.
6823 * genemit.c (emit_c_code): Use rtx_reader_ptr for
6824 call to print_md_ptr_loc.
6825 * genenums.c: Include "statistics.h" and "vec.h".
6826 (main): Update for conversion of traverse_enum_types to a method.
6827 * genmddeps.c: Include "statistics.h" and "vec.h".
6828 * genoutput.c (process_template): Use rtx_reader_ptr for call to
6829 print_md_ptr_loc.
6830 * genpreds.c (write_predicate_subfunction): Likewise.
6831 (write_predicate_expr): Likewise for calls to print_c_condition.
6832 * genrecog.c (print_test): Likewise.
6833 * gensupport.c (process_rtx): Likewise for calls to
6834 copy_md_ptr_loc and join_c_conditions.
6835 (alter_test_for_insn): Likewise for call to join_c_conditions.
6836 (process_substs_on_one_elem): Likewise.
6837 (gen_mnemonic_setattr): Update for move of string_obstack to a
6838 field of rtx_reader.
6839 (mnemonic_htab_callback): Likewise. Fix formatting.
6840 (gen_mnemonic_attr): Likewise.
6841 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
6842 to print_c_condition.
6843 * read-md.c: Include "statistics.h" and "vec.h".
6844 (string_obstack): Convert this global to field "m_string_obstack"
6845 of class rtx_reader.
6846 (ptr_locs): Likewise, as "m_ptr_locs".
6847 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
6848 (joined_conditions): Likewise, as "m_joined_conditions".
6849 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
6850 (md_constants): Likewise, as "m_md_constants".
6851 (enum_types): Likewise, as "m_enum_types".
6852 (set_md_ptr_loc): Convert to...
6853 (rtx_reader::set_md_ptr_loc): ...member function.
6854 (get_md_ptr_loc): Convert to...
6855 (rtx_reader::get_md_ptr_loc): ...member function.
6856 (copy_md_ptr_loc): Convert to...
6857 (rtx_reader::copy_md_ptr_loc): ...member function.
6858 (fprint_md_ptr_loc): Convert to...
6859 (rtx_reader::fprint_md_ptr_loc): ...member function.
6860 (print_md_ptr_loc): Convert to...
6861 (rtx_reader::print_md_ptr_loc): ...member function.
6862 (join_c_conditions): Convert to...
6863 (rtx_reader::join_c_conditions): ...member function.
6864 (fprint_c_condition): Convert to...
6865 (rtx_reader::fprint_c_condition): ...member function.
6866 (print_c_condition): Convert to...
6867 (rtx_reader::print_c_condition): ...member function.
6868 (read_name): Convert to...
6869 (rtx_reader::read_name): ...member function.
6870 (read_escape): Convert to...
6871 (rtx_reader::read_escape): ...member function.
6872 (read_quoted_string): Convert to...
6873 (rtx_reader::read_quoted_string): ...member function.
6874 (read_braced_string): Convert to...
6875 (rtx_reader::read_braced_string): ...member function.
6876 (read_string): Convert to...
6877 (rtx_reader::read_string): ...member function.
6878 (read_skip_construct): Convert to...
6879 (rtx_reader::read_skip_construct): ...member function.
6880 (handle_constants): Convert to...
6881 (rtx_reader::handle_constants): ...member function.
6882 (traverse_md_constants): Convert to...
6883 (rtx_reader::traverse_md_constants): ...member function.
6884 (handle_enum): Convert to...
6885 (rtx_reader::handle_enum): ...member function.
6886 (lookup_enum_type): Convert to...
6887 (rtx_reader::lookup_enum_type): ...member function.
6888 (traverse_enum_types): Convert to...
6889 (rtx_reader::traverse_enum_types): ...member function.
6890 (rtx_reader::rtx_reader): Move initializations
6891 of various former global data from rtx_reader::read_md_files to
6892 here, as fields, along with the call to unlock_std_streams.
6893 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
6894 the new fields.
6895 (rtx_reader::read_md_files): Move initializations of various
6896 global data from here to the ctor.
6897 * read-md.h (read_name): Convert to...
6898 (rtx_reader::read_name): ...member function.
6899 (rtx_reader::read_escape): New method decl.
6900 (read_quoted_string): Convert to...
6901 (rtx_reader::read_quoted_string): ...member function.
6902 (rtx_reader::read_braced_string): New method decl.
6903 (read_string): Convert to...
6904 (rtx_reader::read_string): ...member function.
6905 (rtx_reader::read_skip_construct): New method decl.
6906 (rtx_reader::set_md_ptr_loc): New method decl.
6907 (rtx_reader::get_md_ptr_loc): New method decl.
6908 (copy_md_ptr_loc): Convert to...
6909 (rtx_reader::copy_md_ptr_loc): ...member function.
6910 (fprint_md_ptr_loc): Convert to...
6911 (rtx_reader::fprint_md_ptr_loc): ...member function.
6912 (print_md_ptr_loc): Convert to...
6913 (rtx_reader::print_md_ptr_loc): ...member function.
6914 (rtx_reader::lookup_enum_type): New method decl.
6915 (rtx_reader::traverse_enum_types): New method decl.
6916 (rtx_reader::handle_constants): New method decl.
6917 (traverse_md_constants): Convert to...
6918 (rtx_reader::traverse_md_constants): ...member function.
6919 (rtx_reader::handle_enum): New method decl.
6920 (rtx_reader::join_c_conditions): New method decl.
6921 (fprint_c_condition): Convert to...
6922 (rtx_reader::fprint_c_condition): ...member function.
6923 (print_c_condition): Convert to...
6924 (rtx_reader::print_c_condition): ...member function.
6925 (rtx_reader::apply_iterator_to_string): New method decl.
6926 (rtx_reader::copy_rtx_for_iterators): New method decl.
6927 (rtx_reader::read_conditions): New method decl.
6928 (rtx_reader::record_potential_iterator_use): New method decl.
6929 (rtx_reader::read_mapping): New method decl.
6930 (rtx_reader::read_rtx): New method decl.
6931 (rtx_reader::read_rtx_code): New method decl.
6932 (rtx_reader::read_rtx_operand): New method decl.
6933 (rtx_reader::read_nested_rtx): New method decl.
6934 (rtx_reader::read_rtx_variadic): New method decl.
6935 (rtx_reader::get_string_obstack): New method.
6936 (rtx_reader::get_md_constants): New method.
6937 (string_obstack): Convert global variable decl to...
6938 (rtx_reader::m_string_obstack): ...this new field.
6939 (rtx_reader::m_ptr_locs): New field.
6940 (rtx_reader::m_ptr_loc_obstack): New field.
6941 (rtx_reader::m_joined_conditions): New field.
6942 (rtx_reader::m_joined_conditions_obstack): New field.
6943 (rtx_reader::m_md_constants): New field.
6944 (rtx_reader::m_enum_types): New field.
6945 * read-rtl.c (apply_iterator_to_string): Convert to...
6946 (rtx_reader::apply_iterator_to_string): ...member function.
6947 (copy_rtx_for_iterators): Convert to...
6948 (rtx_reader::copy_rtx_for_iterators): ...member function.
6949 (add_condition_to_string): Use rtx_reader_ptr for
6950 calls join_c_conditions.
6951 (apply_iterators): Use rtx_reader_ptr for calls to
6952 join_c_conditions and copy_rtx_for_iterators.
6953 (read_conditions): Convert to...
6954 (rtx_reader::read_conditions): ...member function.
6955 (record_potential_iterator_use): Convert to...
6956 (rtx_reader::record_potential_iterator_use): ...member function.
6957 (read_mapping): Convert to...
6958 (rtx_reader::read_mapping): ...member function.
6959 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
6960 (read_rtx): Convert to...
6961 (rtx_reader::read_rtx): ...member function.
6962 (read_rtx_code): Convert to...
6963 (rtx_reader::read_rtx_code): ...member function.
6964 (read_rtx_operand): Convert to...
6965 (rtx_reader::read_rtx_operand): ...member function. Update for move
6966 of string_obstack to a field.
6967 (read_nested_rtx): Convert to..
6968 (rtx_reader::read_nested_rtx): ...member function.
6969 (read_rtx_variadic): Convert to..
6970 (rtx_reader::read_rtx_variadic): ...member function.
6971
6972 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
6973
6974 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
6975
6976 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
6977
6978 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
6979 for pointer type too.
6980 (ipcp_update_vr): set_ptr_nonnull for pointer.
6981
6982 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
6983
6984 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
6985 pt_solution_singleton_p.
6986 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
6987 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
6988 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
6989 pointer nonnull computed by VRP.
6990 Also Conservatively set pt.null to 1.
6991 (pt_solution_reset): Conservatively set pt.null to 1.
6992 (pt_solution_singleton_or_null_p): Renamed from
6993 pt_solution_singleton_p.
6994 * tree-ssanames.h (set_ptr_nonnull): Declare.
6995 (get_ptr_nonnull): Likewise.
6996 * tree-ssanames.c (set_ptr_nonnull): New.
6997 (get_ptr_nonnull): Likewise.
6998 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
6999 (evrp_dom_walker::before_dom_children): Likewise.
7000
7001 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
7002
7003 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7004 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7005 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7006 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7007 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
7008 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7009 (rs6000_option_override_internal): Clear it if ABI_AIX.
7010 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7011 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
7012
7013 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7014
7015 * gimple-ssa-strength-reduction.c (record_increment): Remove
7016 garbage comment.
7017
7018 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
7019
7020 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
7021 that the result is non-zero if it is true.
7022 (maybe_expand_shift): New wrapper around expand_shift_1.
7023 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
7024
7025 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7026
7027 PR tree-optimization/77916
7028 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
7029 Don't allow a MINUS_EXPR for pointer arithmetic for either known
7030 or unknown strides.
7031 (record_increment): Increments of -1 for unknown strides just use
7032 a multiply initializer like other negative values.
7033 (analyze_increments): Remove stopgap solution for -1 increment
7034 applied to pointer arithmetic.
7035
7036 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
7037
7038 * dominance.c (dom_info::dom_info): Add new constructor for region
7039 which is vector of basic blocks.
7040 (dom_init): New method to initialize members common for both
7041 constructors.
7042 (dom_info::dom_info): Invoke dom_init for partial initialization.
7043 (dom_info::get_idom): Add check to corner cases on basic blocks which
7044 are not in region.
7045 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
7046 to detect unreachable bbs.
7047 (dom_info::calc_idoms): Likewise.
7048 (compute_dom_fast_query_in_region): New function.
7049 (calculate_dominance_info_for_region): Likewise.
7050 (free_dominance_info_for_region): Likewise.
7051 * dominance.h: Add prototypes for introduced region-based functions
7052 * tree-if-conv.c (build_region): New function.
7053 (if_convertible_loop_p_1): Invoke local version of post-dominators
7054 calculation before basic block predication with subsequent freeing
7055 post-dominator info.
7056 (tree_if_conversion): Remove free of post-dominator info
7057 (pass_if_conversion::execute): Delete detection of infinite loops
7058 and fake edges to exit block since post-dominator calculation is
7059 performed per if-converted loop only.
7060
7061 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
7062
7063 PR target/77308
7064 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
7065 register explicitly.
7066 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
7067 optimizing for size.
7068
7069 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7070
7071 * config/aarch64/aarch64.c: Delete inclusion of
7072 cortex-a57-fma-steering.h.
7073 (aarch64_override_options): Delete call
7074 to aarch64_register_fma_steering.
7075 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
7076 * config/aarch64/cortex-a57-fma-steering.h: Delete.
7077 * config/aarch64/aarch64-passes.def: New file.
7078 * config/aarch64/cortex-a57-fma-steering.c
7079 (aarch64_register_fma_steering): Delete definition.
7080 (make_pass_fma_steering): Remove static qualifier.
7081 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
7082 (cortex-a57-fma-steering.o): Remove dependency on
7083 cortex-a57-fma-steering.h.
7084
7085 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
7086
7087 * explow.c (validize_mem): Do not modify the argument in-place.
7088
7089 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
7090
7091 * tree-streamer.c (record_common_node): Explicitly list expected
7092 tree codes.
7093
7094 2016-10-17 Richard Biener <rguenther@suse.de>
7095
7096 PR tree-optimization/77988
7097 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
7098
7099 2016-10-17 Marek Polacek <polacek@redhat.com>
7100
7101 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
7102
7103 2016-10-17 Richard Biener <rguenther@suse.de>
7104
7105 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
7106 before using it.
7107
7108 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7109
7110 PR tree-optimization/71636
7111 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
7112
7113 2016-10-17 Richard Biener <rguenther@suse.de>
7114
7115 * gimplify.c (gimplify_function_tree): Do not move the outer
7116 binds block.
7117
7118 2016-10-17 Jakub Jelinek <jakub@redhat.com>
7119
7120 * langhooks.h (struct lang_hooks_for_decls): Remove
7121 function_decl_explicit_p, function_decl_deleted_p and
7122 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
7123 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
7124 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
7125 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
7126 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
7127 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
7128 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
7129 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
7130 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
7131 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
7132 * langhooks.c (lhd_decl_dwarf_attribute): New function.
7133 * dwarf2out.c (gen_subprogram_die): Use
7134 lang_hooks.decls.decl_dwarf_attribute instead of
7135 lang_hooks.decls.function_decl_*.
7136
7137 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
7138
7139 PR ada/37139
7140 PR ada/67205
7141 * common.opt (-ftrampolines): New option.
7142 * doc/invoke.texi (Code Gen Options): Document it.
7143 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
7144 * doc/tm.texi: Regenerate.
7145 * builtins.def: Add init_descriptor and adjust_descriptor.
7146 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
7147 on platforms with descriptors.
7148 (expand_builtin_init_descriptor): New function.
7149 (expand_builtin_adjust_descriptor): Likewise.
7150 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
7151 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
7152 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
7153 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
7154 Set STATIC_CHAIN_REG_P on the static chain register, if any.
7155 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
7156 (expand_call): Likewise. Move around call to prepare_call_address
7157 and pass all flags to it.
7158 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
7159 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
7160 (gimple_call_set_by_descriptor): New setter.
7161 (gimple_call_by_descriptor_p): New getter.
7162 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
7163 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
7164 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
7165 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
7166 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
7167 * rtl.h (STATIC_CHAIN_REG_P): New macro.
7168 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
7169 * target.def (custom_function_descriptors): New POD hook.
7170 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
7171 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
7172 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
7173 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
7174 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
7175 (build_common_builtin_nodes): Initialize init_descriptor and
7176 adjust_descriptor.
7177 * tree-nested.c: Include target.h.
7178 (struct nesting_info): Add 'any_descr_created' field.
7179 (get_descriptor_type): New function.
7180 (lookup_element_for_decl): New function extracted from...
7181 (create_field_for_decl): Likewise.
7182 (lookup_tramp_for_decl): ...here. Adjust.
7183 (lookup_descr_for_decl): New function.
7184 (convert_tramp_reference_op): Deal with descriptors.
7185 (build_init_call_stmt): New function extracted from...
7186 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
7187 * defaults.h (FUNCTION_ALIGNMENT): Define.
7188 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
7189 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
7190 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
7191 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
7192 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
7193
7194 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
7195
7196 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
7197 constants in CONST_VECTORs.
7198
7199 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
7200
7201 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
7202 register as destination of bmask.
7203 (vector_init_bshuffle): Likewise.
7204 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
7205 (bmaskdi_vis): Enable only in 64-bit mode.
7206
7207 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
7208
7209 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
7210 make LR a separately shrink-wrapped component unless savres_strategy
7211 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
7212 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
7213 wrapping when not both {SAVE,REST}_INLINE_GPRS.
7214
7215 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
7216
7217 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
7218 and keep looping on failure.
7219
7220 2016-10-14 David Malcolm <dmalcolm@redhat.com>
7221
7222 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
7223 set.
7224 (print_rtx_function): Update example in comment for...
7225 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
7226 non-virtual pseudos with a '%' sigil followed by the regno, offset
7227 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
7228 pseudo is dumped as "%0".
7229
7230 2016-10-14 Jakub Jelinek <jakub@redhat.com>
7231
7232 PR middle-end/77959
7233 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
7234 return a MEM.
7235
7236 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
7237
7238 * config/sparc/sparc-passes.def: New file.
7239 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
7240 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
7241 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
7242
7243 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
7244
7245 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
7246 loop peel to loops with exit test at the beginning.
7247
7248 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
7249
7250 PR rtl-optimization/68212
7251 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
7252 frequency when computing scale factor for peeled copies.
7253 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
7254 values for switch/peel blocks/edges.
7255
7256 2016-10-14 Pedro Alves <palves@redhat.com>
7257
7258 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
7259
7260 2016-10-14 Catherine Moore <clm@codesourcery.com>
7261
7262 * config/mips/mips.c (mips_prepare_pch_save): Initialize
7263 micromips_globals to zero.
7264
7265 2016-10-14 Richard Biener <rguenther@suse.de>
7266
7267 PR tree-optimization/77979
7268 * tree-vrp.c (compare_name_with_value): Handle released SSA names
7269 in the equivalency sets.
7270 (compare_names): Likewise.
7271
7272 2016-10-14 Martin Liska <mliska@suse.cz>
7273
7274 * builtins.h(target_char_cst_p): Declare the function.
7275 * builtins.c (fold_builtin_memchr): Remove.
7276 (target_char_cst_p): Move the function from gimple-fold.c.
7277 (fold_builtin_3): Do not call the function.
7278 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
7279 (gimple_fold_builtin): Call the function.
7280 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
7281
7282 2016-10-14 Martin Liska <mliska@suse.cz>
7283
7284 * builtins.c (fold_builtin_strcmp): Remove function.
7285 (fold_builtin_strncmp): Likewise.
7286 (fold_builtin_2): Remove call of the function.
7287 (fold_builtin_3): Likewise.
7288 * fold-const-call.c (fold_const_call): Add constant folding
7289 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
7290 * fold-const-call.h (build_cmp_result): Declare the function.
7291 * gimple-fold.c (gimple_load_first_char): New function.
7292 (gimple_fold_builtin_string_compare): Likewise.
7293 (gimple_fold_builtin): Call the function.
7294
7295 2016-10-14 Nathan Sidwell <nathan@acm.org>
7296
7297 * gcov-io.c (gcov_open): Deconstify 'mode'.
7298
7299 2016-10-14 Martin Liska <mliska@suse.cz>
7300
7301 * fold-const.c (c_getstr): Support of properly \0-terminated
7302 string constants. New argument is added.
7303 * fold-const.h: New argument is added.
7304
7305 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7306
7307 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
7308 New function.
7309 (aarch64_print_hint_for_core): Likewise.
7310 (aarch64_print_hint_for_arch): Likewise.
7311 (aarch64_validate_march): Use it. Fix indentation in type signature.
7312 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
7313 (aarch64_validate_mtune): Likewise.
7314 (aarch64_handle_attr_arch): Likewise.
7315 (aarch64_handle_attr_cpu): Likewise.
7316 (aarch64_handle_attr_tune): Likewise.
7317
7318 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7319
7320 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
7321 and udivmod_optab.
7322
7323 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
7324
7325 * config/m68k/m68k.c (m68k_option_override): Check
7326 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
7327 instead of stack_limit_rtx.
7328
7329 2016-10-13 Jakub Jelinek <jakub@redhat.com>
7330
7331 * dwarf2out.c (gen_member_die): Handle inline static data member
7332 definitions.
7333
7334 2016-10-13 Nathan Sidwell <nathan@acm.org>
7335
7336 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
7337 gcov_var.mode. Remove unnecessary fstat.
7338
7339 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
7340
7341 PR bootstrap/77962
7342 * function.c (thread_prologue_and_epilogue_insns): Call all
7343 make_*logue_seq in the same order as traditional. Call them
7344 all a second time if shrink_wrapped_separate.
7345
7346 2016-10-13 Marek Polacek <polacek@redhat.com>
7347
7348 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
7349 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
7350 use -Wno-error.
7351
7352 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7353
7354 PR tree-optimization/77937
7355 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
7356 to infinite when we have a pointer with an increment of -1.
7357
7358 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7359
7360 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
7361 into ...
7362 * memmodel.h: This file.
7363 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
7364 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
7365 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
7366 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
7367 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
7368 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
7369 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
7370 compare-elim.c, config/aarch64/aarch64-builtins.c,
7371 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
7372 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
7373 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
7374 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
7375 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
7376 config/darwin.c, config/epiphany/epiphany.c,
7377 config/epiphany/mode-switch-use.c,
7378 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
7379 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
7380 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
7381 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
7382 config/m68k/m68k.c, config/mcore/mcore.c,
7383 config/microblaze/microblaze.c, config/mmix/mmix.c,
7384 config/mn10300/mn10300.c, config/moxie/moxie.c,
7385 config/msp430/msp430.c, config/nds32/nds32-cost.c,
7386 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
7387 config/nds32/nds32-memory-manipulation.c,
7388 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
7389 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
7390 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
7391 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
7392 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
7393 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
7394 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7395 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
7396 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
7397 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
7398 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
7399 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
7400 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
7401 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
7402 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
7403 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
7404 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
7405 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
7406 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
7407 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
7408 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
7409 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
7410 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
7411 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
7412 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
7413 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
7414 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
7415 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
7416 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
7417 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
7418 var-tracking.c, varasm.c: Include memmodel.h.
7419 * genattrtab.c (write_header): Include memmodel.h in generated file.
7420 * genautomata.c (main): Likewise.
7421 * gengtype.c (open_base_files): Likewise.
7422 * genopinit.c (main): Likewise.
7423 * genconditions.c (write_header): Include memmodel.h earlier in
7424 generated file.
7425 * genemit.c (main): Likewise.
7426 * genoutput.c (output_prologue): Likewise.
7427 * genpeep.c (main): Likewise.
7428 * genpreds.c (write_insn_preds_c): Likewise.
7429 * genrecog.c (write_header): Likewise.
7430 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
7431
7432 2016-10-13 David Malcolm <dmalcolm@redhat.com>
7433
7434 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
7435 for new "compact" param of print_rtx_function. Check for "cinsn"
7436 rather than "insn".
7437 * print-rtl-function.c (flag_compact): New decl.
7438 (print_rtx_function): Add param "compact" and use it to set
7439 flag_compact, adding a description of the effect to the leading
7440 comment, and updating the example output.
7441 * print-rtl.c (flag_compact): New variable.
7442 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
7443 mode.
7444 (print_rtx_operand_code_i): When printing source locations, wrap
7445 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
7446 (print_rtx_operand_code_r): Don't print regnos for hard regs and
7447 virtuals in compact mode.
7448 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
7449 apart from in LABEL_REFs.
7450 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
7451 Don't print basic block ids in compact mode.
7452 (print_rtx): In compact mode, prefix the code of insns with "c",
7453 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
7454 * print-rtl.h (print_rtx_function): Add "compact" param.
7455
7456 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
7457
7458 * arm.h (TARGET_VFP): Delete.
7459 (TARGET_VFPD32): Remove references to TARGET_VFP.
7460 (TARGET_VFP3, TARGET_VFP5): Likewise.
7461 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
7462 (TARGET_NEON_FP16): Likewise.
7463 (TARGET_FMA): Likewise.
7464 (TARGET_CRYPTO): Likewise.
7465 (TARGET_NEON): Likewise.
7466 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
7467 (FUNCTION_ARG_REGNO_P): Likewise.
7468 * arm.c (arm_option_check_internal): Likewise.
7469 (arm_option_override): Likewise.
7470 (use_return_insn): Likewise.
7471 (arm_function_value_regno_p): Likewise.
7472 (arm_apply_result_size): Likewise.
7473 (use_vfp_abi): Likewise.
7474 (arm_legitimate_address_outer_p): Likewise.
7475 (thumb2_legitimate_address_p): Likewise.
7476 (arm_legitimate_index_p): Likewise.
7477 (thumb2_legitimate_index_p): Likewise.
7478 (arm_legitimate_address): Likewise.
7479 (arm_get_vfp_saved_size): Likewise.
7480 (arm_emit_vfp_multi_reg_pop): Likewise.
7481 (arm_get_frame_offsets): Likewise.
7482 (arm_save_coproc_regs): Likewise.
7483 (arm_hard_regno_mode_ok): Likewise.
7484 (arm_expand_epilogue_apcs_frame): Likewise.
7485 (arm_expand_epilogue): Likewise.
7486 (arm_file_start): Likewise.
7487 (arm_conditional_register_usage): Likewise.
7488 (arm_validize_comparison): Use vfp_compare_operand directly.
7489 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
7490 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
7491 unsupported usage.
7492 (arm_atomic_assign_expand_fenv): Likewise.
7493 * arm.md (divsf3): Likewise.
7494 (arm_negsi2): Likewise.
7495 (absdf2): Likewise.
7496 (arm_movdi): Likewise.
7497 (arm_movt): Likewise.
7498 (cbranchsf4): Change predicate to vfp_compare_operand.
7499 (cbranchdf4): Change predicate to vfp_compare_operand.
7500 (cstorehf4): Change predicate to vfp_compare_operand.
7501 (cstoresf4): Change predicate to vfp_compare_operand.
7502 (cstoredf4): Change predicate to vfp_compare_operand.
7503 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
7504 (movhi_insn_arch4, movhi_bytes): Likewise.
7505 * constraints.md (Dt): Likewise.
7506 (Dp): Likewise.
7507 * iterators.md (SDF): Likewise.
7508 * predicates.md (arm_float_compare_operand): Delete.
7509 (const_double_vcvt_power_of_two_reciprocal): Remove references to
7510 TARGET_VFP.
7511 (const_double_vcvt_power_of_two): Likewise.
7512 * thumb2.md thumb2_movsi_insn): Likewise.
7513 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
7514 (movhf_vfp): Likewise.
7515 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
7516 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
7517 (movsf_vfp, thumb2_movsf_vfp): Likewise.
7518 (movdf_vfp, thumb2_movdf_vfp): Likewise.
7519 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
7520 (subsf3_vfp, divsf3_vfp): Likewise.
7521 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
7522 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
7523 (mulsf3negsfsubsf_vfp): Likewise.
7524 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
7525 (floatunssisf2, sqrtsf2_vfp): Likewise.
7526 (movcc_vfp): Likewise.
7527 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
7528 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
7529 (push_multi_vfp): Likewise.
7530 (set_fpscr, get_fpscr): Likewise.
7531 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
7532
7533 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
7534
7535 * arm.h (TARGET_VFP): Unconditionally define to 1.
7536 (arm_fpu_desc): Remove 'model' field.
7537 (TARGET_FPU_MODEL): Delete.
7538 * arm.c (all_fpus): Don't initialize the model field.
7539 (arm_can_inline_p): Don't check the FPU model.
7540 * arm-fpus.def: Remove redundant model field from all FPU
7541 descriptions.
7542
7543 2016-10-13 Richard Biener <rguenther@suse.de>
7544
7545 PR middle-end/77826
7546 * genmatch.c (struct capture): Add value_match member.
7547 (commutate): Preserve value_match.
7548 (lower_opt_convert): Likewise.
7549 (lower_cond): Likewise.
7550 (replace_id): Likewise.
7551 (struct dt_operand): Add value_match member.
7552 (decision_tree::cmp_node): Compare it.
7553 (decision_tree::insert_operand): Honor it when finding and
7554 when appending a DT_MATCH.
7555 (dt_operand::gen_match_op): Generate a type check after
7556 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
7557 (parser::get_internal_capture_id): New helper.
7558 (parser::finish_match_operand): New function lowering @@<id>.
7559 (parser::parse_capture): Parse @@<id> as value-match.
7560 (parser::parse_expr): Use get_internal_capture_id.
7561 (parser::parse_simplify): Call finish_match_operand.
7562 (walk_captures): New helper.
7563 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
7564 of operand_equal_p.
7565 ((X /[ex] A) * A -> X): Likewise.
7566 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
7567 convert[12] and value-matching.
7568 ((A | B) & (A | C) -> A | (B & C)): Likewise.
7569 ((X | Y) | Y -> X | Y): Likewise.
7570 ((X ^ Y) ^ Y -> X): Likewise.
7571 (A - (A & B) -> ~B & A): Likewise.
7572 ((T)(P + A) - (T)P -> (T) A): Likewise.
7573 ((T)P - (T)(P + A) -> -(T) A): Likewise.
7574 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
7575 * doc/match-and-simplify.texi: Amend capture section.
7576
7577 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
7578
7579 * config/arc/arc.md (umul_600): Remove predicated variant.
7580 (umul64_600): Likewise.
7581
7582 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
7583
7584 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
7585
7586 2016-10-13 Bin Cheng <bin.cheng@arm.com>
7587
7588 * tree-vect-loop.c (loop_niters_no_overflow): New func.
7589 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
7590 no-overflow information to vect_do_peeling_for_loop_bound and
7591 vect_gen_vector_loop_niters.
7592
7593 2016-10-13 Bin Cheng <bin.cheng@arm.com>
7594
7595 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
7596 iterates 1 time.
7597
7598 2016-10-13 Bin Cheng <bin.cheng@arm.com>
7599
7600 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
7601 adjust_vec automatically.
7602 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
7603 param exit_bb to guard_to.
7604 (slpeel_checking_verify_cfg_after_peeling):
7605 (set_prologue_iterations):
7606 (create_lcssa_for_virtual_phi): New func which is factored out from
7607 slpeel_tree_peel_loop_to_edge.
7608 (slpeel_tree_peel_loop_to_edge):
7609 (iv_phi_p): New func.
7610 (vect_can_advance_ivs_p): Call iv_phi_p.
7611 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
7612 new gimple stmts in basic block.
7613 (vect_gen_niters_for_prolog_loop): Rename to...
7614 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
7615 adjust implementation.
7616 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
7617 sizetype if necessary.
7618 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
7619 it to external function.
7620 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
7621 (vect_gen_vector_loop_niters_mult_vf): New.
7622 (slpeel_update_phi_nodes_for_loops): New.
7623 (slpeel_update_phi_nodes_for_guard1): Reimplement.
7624 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
7625 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
7626 * tree-vect-loop.c (vect_build_loop_niters): Move to file
7627 tree-vect-loop-manip.c
7628 (vect_generate_tmps_on_preheader): Delete.
7629 (vect_transform_loop): Rename vectorization_factor to vf. Call
7630 vect_do_peeling instead of vect_do_peeling-* functions.
7631 * tree-vectorizer.h (vect_do_peeling): New decl.
7632 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
7633 (vect_do_peeling_for_loop_bound): Delete.
7634 (vect_do_peeling_for_alignment): Delete.
7635
7636 2016-10-13 Bin Cheng <bin.cheng@arm.com>
7637
7638 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
7639 duplicated loop after its preheader and after the original loop.
7640
7641 2016-10-13 Bin Cheng <bin.cheng@arm.com>
7642
7643 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
7644 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
7645
7646 2016-10-13 Bin Cheng <bin.cheng@arm.com>
7647
7648 * tree-vect-loop.c (vectorizable_live_operation): Support handling
7649 for live variable outside loop but not in lcssa form.
7650
7651 2016-10-13 Bin Cheng <bin.cheng@arm.com>
7652
7653 * cfg.c (reset_original_copy_tables): New func.
7654 * cfg.h (reset_original_copy_tables): New decl.
7655
7656 2016-10-13 Jakub Jelinek <jakub@redhat.com>
7657
7658 PR c/77946
7659 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
7660 public_flag.
7661 * varasm.c (default_binds_local_p_3): Formatting fix.
7662
7663 2016-10-13 Bin Cheng <bin.cheng@arm.com>
7664
7665 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
7666 style issue.
7667 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
7668 Remove useless code.
7669
7670 2016-10-13 Martin Liska <mliska@suse.cz>
7671
7672 PR tree-optimization/77943
7673 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
7674 a different EH landing pads.
7675
7676 2016-10-13 Jakub Jelinek <jakub@redhat.com>
7677
7678 PR target/77957
7679 * hooks.h (hook_tree_void_null): Declare.
7680 * hooks.c (hook_tree_void_null): New function.
7681 * langhooks.c (lhd_return_null_tree_v): Remove.
7682 * langhooks-def.h (lhd_return_null_tree_v): Remove.
7683 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
7684 set y to const0_rtx.
7685 * function.c (stack_protect_epilogue): Likewise.
7686 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
7687 if TARGET_THREAD_SSP_OFFSET is defined.
7688 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
7689 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
7690 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
7691 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
7692 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
7693 (ix86_stack_protect_guard): New function.
7694
7695 2016-10-13 Richard Biener <rguenther@suse.de>
7696
7697 * dwarf2out.c (tree_add_const_value_attribute): Do not try
7698 rtl_for_decl_init during early phase.
7699 (gen_variable_die): Do not create locations during early phase.
7700 (gen_label_die): Likewise.
7701 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
7702 twice.
7703
7704 2016-10-12 Richard Biener <rguenther@suse.de>
7705
7706 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
7707 try_add_new_range and made to eturn new range.
7708 (evrp_dom_walker::before_dom_children): Push op1 value range before
7709 pushing op0 value range.
7710
7711 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7712
7713 PR tree-optimization/77937
7714 * gimple-ssa-strength-reduction.c (analyze_increments): Use
7715 POINTER_TYPE_P on the candidate type to determine whether
7716 candidates in this chain require pointer arithmetic.
7717
7718 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
7719
7720 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
7721 correction if the type is smaller than a word.
7722 (visium_select_cc_mode): Add ... fall through ... comment.
7723
7724 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
7725
7726 * config/rs6000/rs6000.c (machine_function): Add new fields
7727 gpr_is_wrapped_separately and lr_is_wrapped_separately.
7728 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
7729 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
7730 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
7731 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
7732 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
7733 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
7734 (rs6000_get_separate_components): New function.
7735 (rs6000_components_for_bb): New function.
7736 (rs6000_disqualify_components): New function.
7737 (rs6000_emit_prologue_components): New function.
7738 (rs6000_emit_epilogue_components): New function.
7739 (rs6000_set_handled_components): New function.
7740 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
7741 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
7742 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
7743 (rs6000_emit_epilogue): Don't emit GPR restores if
7744 gpr_is_wrapped_separately for that register. Don't make a
7745 REG_CFA_RESTORE note for registers we did not restore, either.
7746
7747 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
7748
7749 * function.c (thread_prologue_and_epilogue_insns): Call
7750 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
7751 if it has possibly changed. Compute the split_prologue_seq and
7752 epilogue_seq later, too.
7753 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
7754 (dump_components): New function.
7755 (struct sw): New struct.
7756 (SW): New function.
7757 (init_separate_shrink_wrap): New function.
7758 (fini_separate_shrink_wrap): New function.
7759 (place_prologue_for_one_component): New function.
7760 (spread_components): New function.
7761 (disqualify_problematic_components): New function.
7762 (emit_common_heads_for_components): New function.
7763 (emit_common_tails_for_components): New function.
7764 (insert_prologue_epilogue_for_components): New function.
7765 (try_shrink_wrapping_separate): New function.
7766 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
7767
7768 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
7769
7770 * regrename.c (build_def_use): Invalidate chains that have a
7771 REG_CFA_RESTORE on some instruction.
7772
7773 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
7774
7775 * dce.c (delete_unmarked_insns): Don't delete instructions with
7776 a REG_CFA_RESTORE note.
7777
7778 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
7779
7780 * common.opt (-fshrink-wrap-separate): New flag.
7781 * doc/invoke.texi: Document it.
7782 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
7783 * doc/tm.texi: Regenerate.
7784 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
7785 * target.def (shrink_wrap): New hook vector.
7786 (get_separate_components, components_for_bb, disqualify_components,
7787 emit_prologue_components, emit_epilogue_components,
7788 set_handled_components): New hooks.
7789
7790 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
7791
7792 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
7793 vector return by reference only if -Wpsabi.
7794 (rs6000_pass_by_reference): Similarly, for argument passing.
7795
7796 2016-10-12 David Malcolm <dmalcolm@redhat.com>
7797
7798 * function-tests.c: Include "print-rtl.h".
7799 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
7800 function, and verify what is dumped.
7801 * print-rtl-function.c (print_edge): New function.
7802 (begin_any_block): New function.
7803 (end_any_block): New function.
7804 (can_have_basic_block_p): New function.
7805 (print_rtx_function): Track the basic blocks of insns in the
7806 chain, wrapping those that are within blocks within "(block)"
7807 directives. Remove the "(cfg)" directive.
7808
7809 2016-10-12 David Malcolm <dmalcolm@redhat.com>
7810
7811 * selftest.c (selftest::read_file): New function.
7812 (selftest::test_read_file): New function.
7813 (selftest::selftest_c_tests): Call test_read_file.
7814 * selftest.h (selftest::read_file): New decl.
7815
7816 2016-10-12 Richard Biener <rguenther@suse.de>
7817
7818 PR debug/77947
7819 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
7820 function context.
7821
7822 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
7823
7824 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
7825
7826 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
7827 dwarf2out_assembly_start.
7828
7829 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
7830
7831 * Makefile.in (SELFTEST_FLAGS): New variable.
7832 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
7833
7834 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
7835 early_finish hook.
7836
7837 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
7838
7839 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
7840 dumped in RTL dumps.
7841
7842 2016-10-12 Martin Liska <mliska@suse.cz>
7843
7844 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
7845 (gimple_fold_builtin_memory_op): Use the function.
7846 (gimple_fold_builtin_strchr): Likewise.
7847 (gimple_fold_builtin_strcat): Likewise.
7848 (gimple_build): Likewise.
7849
7850 2016-10-12 Nathan Sidwell <nathan@acm.org>
7851
7852 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
7853
7854 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
7855
7856 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
7857 equivalent 32-bit constant (modulo 2**32) when that yields
7858 smaller instructions.
7859 (size_of_int_loc_descriptor): Update accordingly.
7860
7861 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
7862
7863 * dwarf2out.c (dwarf2out_early_global_decl): For nested
7864 functions, call dwarf2out_decl on the parent function first.
7865
7866 2016-10-12 Richard Biener <rguenther@suse.de>
7867
7868 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
7869 on the conversion.
7870
7871 2016-10-12 Richard Biener <rguenther@suse.de>
7872
7873 * tree-ssa-propagate.c
7874 (substitute_and_fold_dom_walker::before_dom_children): Do not
7875 ignore ASSERT_EXPRs but only preserve them.
7876 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
7877 that have been propagated into.
7878 (vrp_finalize): Enable DCE for substitute_and_fold.
7879
7880 2016-10-12 Richard Biener <rguenther@suse.de>
7881
7882 PR tree-optimization/77920
7883 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
7884 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
7885 (simplify_abs_using_ranges): Likewise.
7886 (simplify_conversion_using_ranges): Likewise.
7887 (simplify_stmt_using_ranges): Adjust.
7888
7889 2016-10-12 Jakub Jelinek <jakub@redhat.com>
7890
7891 PR tree-optimization/77929
7892 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
7893 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
7894
7895 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7896
7897 PR target/77934
7898 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
7899 needs a base register for arg 1.
7900
7901 2016-10-12 Jakub Jelinek <jakub@redhat.com>
7902
7903 * common.opt (Wimplicit-fallthrough) Turn into alias to
7904 -Wimplicit-fallthrough=3. Remove EnabledBy.
7905 (Wimplicit-fallthrough=): New option.
7906 * gimplify.c (warn_implicit_fallthrough_r): Use
7907 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
7908 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
7909 to -Wimplicit-fallthrough=3.
7910 (-Wimplicit-fallthrough=): Document.
7911
7912 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
7913
7914 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
7915 and GEU in DImode if TARGET_SUBXC.
7916 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
7917 (seqdi<W:mode>_zero_subxc): Delete.
7918 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
7919 (neg_seqdi<W:mode>_zero_vis3): Delete.
7920 (plus_seqdi<W:mode>_zero): Likewise.
7921 (minus_seqdi<W:mode>_zero): Likewise.
7922 (plus_plus_sltu<W:mode>): Accept only register.
7923 (addx<W:mode>): Likewise.
7924 (plus_sltu<W:mode>_vis3): Likewise.
7925 (plus_plus_sltu<W:mode>_vis3): Likewise.
7926 (neg_sgeu<W:mode>_vis3): Delete.
7927 (minus_sgeu<W:mode>_vis3): Likewise.
7928 (addxc<W:mode>): Accept only registers.
7929 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
7930 (minus_neg_sltu<W:mode>_subxc): Accept only register.
7931 (neg_plus_sltu<W:mode>_subxc): Likewise.
7932 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
7933 (minus_minus_sltu<W:mode>_subxc): Accept only register.
7934 (sgeu<W:mode>_insn_subxc): Delete.
7935 (plus_sgeu<W:mode>_subxc): Likewise.
7936 (subxc<W:mode>): Accept only register.
7937 (scc splitter): Split always GEU again.
7938
7939 2016-10-11 Jeff Law <law@redhat.com>
7940
7941 PR tree-optimization/77424
7942 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
7943 dead conditionals. Assert that all e->aux fields are NULL.
7944
7945 2016-10-11 David Malcolm <dmalcolm@redhat.com>
7946
7947 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
7948 operand-printing "switch" statement into...
7949 (print_rtx_operand_code_0): ...this new function, ...
7950 (print_rtx_operand_code_e): ...this new function, ...
7951 (print_rtx_operand_codes_E_and_V): ...this new function, ...
7952 (print_rtx_operand_code_i): ...this new function, ...
7953 (print_rtx_operand_code_r): ...this new function, ...
7954 (print_rtx_operand_code_u): ...this new function, ...
7955 (print_rtx_operand): ...and this new function.
7956
7957 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
7958
7959 * config/alpha/alpha-passes.def: New file.
7960 * config/alpha/t-alpha: New file.
7961 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
7962 (make_pass_handle_trap_shadows): New prototype.
7963 (make_pass_align_insns): Ditto.
7964 * config/alpha/alpha.c (alpha_option_override): Don't register
7965 passes here.
7966 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
7967
7968 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7969
7970 PR target/77924
7971 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
7972 distinct __ibm128 IBM extended double type if long doubles are
7973 128-bits and the default format for long double is IEEE 128-bit.
7974
7975 2016-10-11 Richard Biener <rguenther@suse.de>
7976
7977 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
7978 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
7979 (verify_die): New function.
7980 (dwarf2out_finish): Call it.
7981 (output_line_info): Handle case of -gsplit-dwarf without
7982 DWARF2_ASM_LINE_DEBUG_INFO.
7983
7984 2016-10-11 Richard Biener <rguenther@suse.de>
7985
7986 PR debug/77931
7987 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
7988 sub-chains of BLOCK_VARS and gimple_bind_vars.
7989
7990 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
7991
7992 * config/i386/znver1.md : Fix imov/imovx load type reservations.
7993
7994 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
7995
7996 * config/sparc/sparc.opt (msubxc): New option.
7997 * doc/invoke.texi (SPARC options): Document it and tidy up.
7998 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
7999 * doc/tm.texi: Regenerate.
8000 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
8001 (CCNZ): ...this.
8002 (CCX_NOOV): Rename into...
8003 (CCXNZ): ...this.
8004 (CCC): New.
8005 (CCXC): Likewise.
8006 * config/sparc/predicates.m (fcc_register_operand): Simplify.
8007 (fcc0_register_operand): Likewise.
8008 (icc_register_operand): New.
8009 (icc_or_fcc_register_operand): Simplify.
8010 (nz_comparison_operator): New.
8011 (c_comparison_operator): Likewise.
8012 (noov_compare_operator): Rename into...
8013 (icc_comparison_operator): ...this. Use above predicates.
8014 (noov_compare64_operator): Rename into...
8015 (v9_comparison_operator): ...this and tidy up.
8016 (fcc_comparison_operator): New.
8017 (icc_or_fcc_comparison_operator): Likewise.
8018 (v9_register_compare_operator): Rename info...
8019 (v9_register_comparison_operator): ...this.
8020 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8021 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
8022 for Niagara-7.
8023 (sparc_fixed_condition_code_regs): New function.
8024 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
8025 renaming and add support for CCC/CCXC.
8026 (output_cbranch): Likewise.
8027 (sparc_print_operand): Likewise.
8028 (gen_v9_scc): Remove obsolete assertion.
8029 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
8030 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
8031 (output_cbcond): Remove bogus handling of CC modes.
8032 (sparc_register_move_cost): Return 100 for NO_REGS.
8033 * config/sparc/sparc.md (W): New mode iterator.
8034 (length): Adjust for noov_compare64_operator renaming.
8035 (cmpsi_sne): New instruction.
8036 (cmpdi_sne): Likewise.
8037 (seqdi_special): Delete.
8038 (seqdi_special): Likewise.
8039 (snesi<P:mode>_special): Likewise.
8040 (snedi_special): Likewise.
8041 (snedi_special_vis3): Likewise.
8042 (snesi patterns): Use W iterator.
8043 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
8044 (sltu patterns): Likewise.
8045 (sgeu patterns): Likewise.
8046 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
8047 (normal_branch): Use icc_comparison_operator predicate.
8048 (inverted_branch): Likewise.
8049 (cbcond_sp32): Use comparison_operator predicate.
8050 (cbcond_sp64): Likewise.
8051 (normal_int_branch_sp64): Adjust for renaming
8052 (inverted_int_branch_sp64): Likewise.
8053 (mov<I:mode>_cc_reg_sp64): Likewise.
8054 (movsf_cc_reg_sp6): Likewise.
8055 (movdf_cc_reg_sp64): Likewise.
8056 (movtf_cc_reg_hq_sp64): Likewise.
8057 (movtf_cc_reg_sp64): Likewise.
8058 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
8059 (movsf_cc_v9): Likewise.
8060 (movdf_cc_v9): Likewise.
8061 (movtf_cc_hq_v9): Likewise.
8062 (movtf_cc_v9): Likewise.
8063 (adddi3): Call gen_adddi3_sp32.
8064 (adddi3_insn_sp32): Rename to...
8065 (adddi3_sp32): ...this. Accept only register_operand as operand #1
8066 and use CCCmode for the carry.
8067 (addx_extend_sp32): Use CCCmode for the carry.
8068 (addx_extend_sp64): Delete.
8069 (adddi3_extend_sp32): Use CCCmode for the carry.
8070 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
8071 (subdi3): Call gen_subdi3_sp32.
8072 (subdi3_insn_sp32): Rename to...
8073 (subdi3_sp32): ...this and use CCmode for the carry.
8074 (subx_extend_sp32): Use CCCmode for the carry.
8075 (subx_extend_sp64): Delete.
8076 (subdi3_extend_sp32): Use CCmode for the carry.
8077 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
8078 (negdi3): Call gen_negdi3_sp32.
8079 (negdi3_sp32): Use CCCmode for the carry.
8080 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
8081 (cmp_nz_ashift_1): Use CCNZ mode.
8082 (cmp_nz_set_ashift_1): Likewise.
8083 (ctrapsi4): Use comparison_operator predicate.
8084 (ctrapdi4): Likewise.
8085 (trapsi_insn): Use icc_comparison_operator predicate.
8086 (trapdi_insn): Likewise.
8087 (edge8 patterns): Use CCNZmode.
8088 (edge16 patterns): Likewise.
8089 (edge32 patterns): Likewise.
8090
8091 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
8092
8093 * config/visium/visium-modes.def (CC_NOOV): Rename into...
8094 (CCNZ): ...this.
8095 (CC_BTST): Rename into...
8096 (CCC): ...this.
8097 * config/visium/predicates.md (real_add_operand): New.
8098 (visium_btst_operator): Rename into...
8099 (visium_equality_comparison_operator): ...this.
8100 (visium_noov_operator): Rename into...
8101 (visium_nz_comparison_operator): ...this.
8102 (visium_c_comparison_operator): New.
8103 (visium_branch_operator): Adjust and deal with all CC modes.
8104 * config/visium/visium.c (visium_adjust_cost): Adjust.
8105 (visium_split_double_add): Use the *_set_carry patterns.
8106 (visium_select_cc_mode): Add support for CCC mode and adjust.
8107 (output_cbranch): Adjust and use the carry-based operators for
8108 floating-point comparisons.
8109 * config/visium/visium.md (flags_subst_arith): Adjust.
8110 (addsi3_insn_set_carry): New instruction.
8111 (subsi3_insn_set_carry): Likewise.
8112 (negsi2_insn_set_carry): Likewise.
8113 (btst): Adjust.
8114 (cmp<mode>_sne): Likewise.
8115 (cbranch<mode>4): Use ordered_comparison_operator.
8116 (cbranch<mode>4_insn): Likewise.
8117 (cbranchsi4_btst_insn): Adjust.
8118
8119 2016-10-11 Tom de Vries <tom@codesourcery.com>
8120
8121 PR middle-end/77558
8122 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
8123 special-casing.
8124
8125 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
8126
8127 * tree.h (build_complex_type): Add second parameter with default.
8128 * tree.c (build_complex_type): Add NAMED second parameter and adjust
8129 recursive call. Create a TYPE_DECL only if NAMED is true.
8130 (build_common_tree_nodes): Pass true in calls to build_complex_type.
8131
8132 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
8133
8134 New avr-passes.def to register AVR specific passes.
8135
8136 * config/avr/avr-passes.def: New file.
8137 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
8138 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
8139 (make_avr_pass_recompute_note): New proto.
8140 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
8141 (avr_pass_recompute_notes): Use anonymous namespace.
8142 (avr_register_passes): Remove function...
8143 (avr_option_override): ...and its call.
8144
8145 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
8146
8147 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
8148 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
8149 PTF_AVOID_BRANCHLIKELY_SPEED for others.
8150 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
8151 flags.
8152 * config/mips/mips.c (mips_option_override): Enable the branch
8153 likely depending on the tune flags and optimization level.
8154 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
8155 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
8156 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
8157 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
8158
8159 2016-10-11 Richard Biener <rguenther@suse.de>
8160
8161 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
8162 (output_function): Properly stream the whole block tree.
8163 * lto-streamer-in.c (input_function): Likewise.
8164
8165 2016-10-11 Marek Polacek <polacek@redhat.com>
8166
8167 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
8168
8169 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
8170
8171 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
8172 (evrp_dom_walker::before_dom_children): Infer and push new value
8173 ranges for x in y < x.
8174
8175 2016-10-10 Joseph Myers <joseph@codesourcery.com>
8176
8177 PR target/77586
8178 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
8179 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
8180 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
8181 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
8182 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
8183 (IA64_NO_LIBGCC_TFMODE): Likewise.
8184
8185 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
8186
8187 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
8188 copying.
8189
8190 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
8191
8192 * config.gcc: Add aarch64-*-freebsd* support.
8193 * config.host: Likewise.
8194 * config/aarch64/aarch64-freebsd.h: New file.
8195 * config/aarch64/t-aarch64-freebsd: Ditto.
8196
8197 2016-10-10 Jeff Law <law@redhat.com>
8198
8199 PR tree-optimization/71947
8200 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
8201 B with A within a single statement.
8202
8203 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8204
8205 PR tree-optimization/77824
8206 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
8207 zero cost for copies.
8208 (find_candidates_dom_walker::before_dom_children): Replace
8209 MODIFY_EXPR with SSA_NAME.
8210 (replace_mult_candidate): Likewise.
8211 (replace_profitable_candidates): Likewise.
8212
8213 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8214
8215 * config/s390/s390.h: Wrap more macros args in brackets and fix
8216
8217 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
8218
8219 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
8220
8221 2016-10-10 Andreas Schwab <schwab@suse.de>
8222
8223 PR target/77738
8224 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
8225 pseudo is not DImode.
8226
8227 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
8228
8229 * common/config/arc/arc-common.c (arc_option_optimization_table):
8230 Remove compact casesi option.
8231 * config/arc/arc.c (arc_override_options): Use compact casesi
8232 option only for pre-ARCv2 cores.
8233 * doc/invoke.texi (mcompact-casesi): Update text.
8234
8235 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8236
8237 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
8238 Add macro to say we can efficiently handle overlapping unaligned
8239 loads.
8240 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
8241 poor code for processors older than p8.
8242
8243 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
8244
8245 * gen-pass-instances.awk: Remove GNUism.
8246
8247 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8248
8249 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
8250 NULL of (*ipcp_transformations)][node->uid].
8251
8252 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
8253
8254 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
8255 (MALLOC_ABI_ALIGNMENT): Define.
8256
8257 2016-10-09 Jakub Jelinek <jakub@redhat.com>
8258
8259 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
8260 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
8261 VAR_OR_FUNCTION_DECL_P macros.
8262 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
8263 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
8264 chkp_find_bounds_1): Likewise.
8265 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
8266 * hsa-gen.c (get_symbol_for_decl): Likewise.
8267 * cgraphunit.c (check_global_declaration, analyze_functions,
8268 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
8269 Likewise.
8270 * gimple-fold.c (can_refer_decl_in_current_unit_p,
8271 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
8272 Likewise.
8273 * tree.c (set_decl_section_name, copy_node_stat,
8274 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
8275 merge_dllimport_decl_attributes, handle_dll_attribute,
8276 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
8277 verify_type): Likewise.
8278 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
8279 find_explicit_erroneous_behavior): Likewise.
8280 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
8281 * ipa.c (process_references): Likewise.
8282 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
8283 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
8284 notice_global_symbol, assemble_variable, mark_decl_referenced,
8285 build_constant_desc, output_constant_def_contents, do_assemble_alias,
8286 make_decl_one_only, default_section_type_flags,
8287 categorize_decl_for_section, default_encode_section_info): Likewise.
8288 * trans-mem.c (requires_barrier): Likewise.
8289 * gimple-expr.c (mark_addressable): Likewise.
8290 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
8291 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
8292 expand_debug_expr): Likewise.
8293 * tree-dump.c (dequeue_and_dump): Likewise.
8294 * ubsan.c (instrument_bool_enum_load): Likewise.
8295 * tree-pretty-print.c (print_declaration): Likewise.
8296 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
8297 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
8298 * asan.c (asan_protect_global, instrument_derefs): Likewise.
8299 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
8300 pass_build_ssa::execute): Likewise.
8301 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
8302 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
8303 Likewise.
8304 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
8305 Likewise.
8306 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
8307 can_be_nonlocal, remap_decls, copy_debug_stmt,
8308 initialize_inlined_parameters, add_local_variables,
8309 reset_debug_binding, replace_locals_op): Likewise.
8310 * dse.c (can_escape): Likewise.
8311 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
8312 Likewise.
8313 * tree-diagnostic.c (default_tree_printer): Likewise.
8314 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
8315 unpack_ts_decl_with_vis_value_fields,
8316 lto_input_ts_decl_common_tree_pointers): Likewise.
8317 * builtins.c (builtin_save_expr, fold_builtin_expect,
8318 readonly_data_expr): Likewise.
8319 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
8320 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
8321 Likewise.
8322 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
8323 * gimplify.c (force_constant_size, gimplify_bind_expr,
8324 gimplify_decl_expr, gimplify_var_or_parm_decl,
8325 gimplify_compound_lval, gimplify_init_constructor,
8326 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
8327 gimplify_type_sizes): Likewise.
8328 * cgraphbuild.c (record_reference, record_type_list, mark_address,
8329 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
8330 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
8331 remove_unused_locals): Likewise.
8332 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
8333 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
8334 * function.c (instantiate_expr, instantiate_decls_1,
8335 setjmp_vars_warning, add_local_decl): Likewise.
8336 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
8337 Likewise.
8338 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
8339 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
8340 optimize_va_list_gpr_fpr_size): Likewise.
8341 * tree-nrv.c (pass_nrv::execute): Likewise.
8342 * tsan.c (instrument_expr): Likewise.
8343 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
8344 * vtable-verify.c (verify_bb_vtables): Likewise.
8345 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
8346 get_ref_base_and_extent): Likewise.
8347 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
8348 Likewise.
8349 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
8350 analyze_all_variable_accesses): Likewise.
8351 * tree-nested.c (get_nonlocal_debug_decl,
8352 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
8353 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
8354 get_local_debug_decl, convert_local_omp_clauses,
8355 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
8356 Likewise.
8357 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
8358 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
8359 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
8360 dbxout_symbol, dbxout_common_check): Likewise.
8361 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
8362 string_constant): Likewise.
8363 * hsa.c (hsa_get_declaration_name): Likewise.
8364 * passes.c (rest_of_decl_compilation): Likewise.
8365 * tree-ssanames.c (make_ssa_name_fn): Likewise.
8366 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
8367 pack_ts_decl_with_vis_value_fields,
8368 write_ts_decl_common_tree_pointers): Likewise.
8369 * stor-layout.c (place_field): Likewise.
8370 * symtab.c (symtab_node::maybe_create_reference,
8371 symtab_node::verify_base, symtab_node::make_decl_local,
8372 symtab_node::copy_visibility_from,
8373 symtab_node::can_increase_alignment_p): Likewise.
8374 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
8375 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
8376 fortran_common, add_location_or_const_value_attribute,
8377 add_scalar_info, add_linkage_name, set_block_abstract_flags,
8378 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
8379 optimize_one_addr_into_implicit_ptr,
8380 optimize_location_into_implicit_ptr): Likewise.
8381 * gimple-low.c (record_vars_into): Likewise.
8382 * ipa-visibility.c (update_vtable_references): Likewise.
8383 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
8384 Likewise.
8385 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
8386 DFS::DFS_write_tree_body, write_symbol): Likewise.
8387 * langhooks.c (lhd_warn_unused_global_decl,
8388 lhd_set_decl_assembler_name): Likewise.
8389 * attribs.c (decl_attributes): Likewise.
8390 * except.c (output_ttype): Likewise.
8391 * varpool.c (varpool_node::get_create, ctor_for_folding,
8392 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
8393 * fold-const.c (fold_unary_loc): Likewise.
8394 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
8395 ipa_find_agg_cst_from_init): Likewise.
8396 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
8397 expand_omp_target, lower_omp_regimplify_p,
8398 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
8399 find_link_var_op): Likewise.
8400 * tree-chrec.c (chrec_contains_symbols): Likewise.
8401 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
8402 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
8403 execute_fixup_cfg): Likewise.
8404
8405 PR tree-optimization/77901
8406 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
8407 if ranges[i].exp is SSA_NAME when looking for >= and only when
8408 ranges[i].exp is NULL or SSA_NAME when looking for the other
8409 comparison.
8410
8411 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8412
8413 * ipa-cp.c (ipcp_alignment_lattice): Remove.
8414 (ipcp_param_lattices): Remove field alignment.
8415 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
8416 (set_all_contains_variable): Remove call to
8417 ipcp_alignment_lattice::set_to_bottom.
8418 (initialize_node_lattices): Likewise.
8419 (propagate_alignment_accross_jump_function): Remove.
8420 (propagate_constants_accross_call): Remove call to
8421 propagate_alignment_accross_jump_function.
8422 (ipcp_store_alignment_results): Remove.
8423 (ipcp_driver): Remove call to ipcp_store_alignment_results.
8424 (propagate_bits_accross_jump_function): Handle ancestor jump function.
8425 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
8426 pretty-printing of alignment jump function.
8427 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
8428 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
8429 alignments and remove computing ipa_alignment jump function.
8430 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
8431 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
8432 (ipa_read_jump_function): Remove reading of ipa_alignment.
8433 (write_ipcp_transformation_info): Remove streaming for alignment
8434 propagation summary.
8435 (read_ipcp_transformation_info): Remove reading of alignment
8436 propagation summary.
8437 (ipcp_update_alignments): Remove.
8438 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
8439 type.
8440 (ipcp_transform_function): Remove call to ipcp_update_alignments()
8441 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
8442 * ipa-prop.h (ipa_alignment): Remove.
8443 (ipa_jump_func): Remove field alignment.
8444 (ipcp_transformation_summary): Remove field alignments.
8445 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
8446 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
8447 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
8448
8449 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
8450
8451 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
8452
8453 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
8454 change.
8455 (visium_expand_fp_cstore): Likewise.
8456
8457 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8458
8459 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
8460 * diagnostic.c (warning_at_rich_loc_n): New function.
8461 (diagnostic_n_impl_richloc): Likewise.
8462 (diagnostic_n_impl): Move most of the function to
8463 diagnostic_n_impl_richloc and call it.
8464
8465 2016-10-08 Jakub Jelinek <jakub@redhat.com>
8466
8467 * gen-pass-instances.awk: Rewritten.
8468 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
8469 $(PASSES_EXTRA) after passes.def to the script.
8470 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
8471 * config/i386/i386-passes.def: New file.
8472 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
8473 make_pass_stv): Declare.
8474 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
8475 false.
8476 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
8477 or !TARGET_64BIT.
8478 (pass_stv::clone, pass_stv::set_pass_param): New methods.
8479 (pass_stv::timode_p): New non-static data member.
8480 (ix86_option_override): Don't register passes here.
8481
8482 * doc/invoke.texi: Document accepting Else, fallthrough.
8483
8484 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
8485 style changes.
8486
8487 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
8488 FALLTHRU comment styles.
8489
8490 2016-10-07 Andrew Pinski <apinski@cavium.com>
8491
8492 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
8493 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
8494 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
8495 Likewise.
8496 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
8497 Likewise.
8498 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
8499 Likewise.
8500 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
8501 (AARCH64_ARCH): Likewise.
8502 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
8503 Likewise.
8504 (AARCH64_CORE): Likewise.
8505 (AARCH64_ARCH): Likewise.
8506 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
8507 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
8508 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
8509 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
8510 (AARCH64_ARCH): Likewise.
8511 (AARCH64_CORE): Likewise.
8512 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
8513 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
8514 (AARCH64_CORE): Likewise.
8515 (AARCH64_ARCH): Likewise.
8516
8517 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8518
8519 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
8520 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
8521 floating point type infrastructre, and -mfloat128 that enables the
8522 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
8523 if -mfloat128-type. Define __ibm128 to be long double by default.
8524 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
8525 the IEEE 128-bit floating point type infrastructure should
8526 automatically be enabled.
8527 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
8528 instead of -mfloat128 to enable KFmode.
8529 (rs6000_option_override_internal): Split the option -mfloat128
8530 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
8531 systems, automatically set -mfloat128-type, but don't enable it on
8532 other operating systems. Move setting the long double size and
8533 IEEE quad support before the IEEE 128-bit floating point changes.
8534 (rs6000_init_builtins): Do not create a unique type for __ibm128
8535 if long double is IBM extended double, instead rely on __ibm128
8536 being defined as 'long double'. If -mfloat128-type and not
8537 -mfloat128, create the KFmode type with an undocumented __ieee128
8538 keyword.
8539 (rs6000_init_libfuncs): Use -mfloat128-type instead of
8540 -mfloat128 for tests about the types, but keep tests for
8541 -mfloat128 to enable the keyword support.
8542 (rs6000_complex_function_value): Likewise.
8543 (rs6000_scalar_mode_supported_p): Likewise.
8544 (rs6000_floatn_mode): Likewise.
8545 (rs6000_c_mode_for_suffix): Likewise.
8546 (rs6000_opt_masks): Add -mfloat128-type.
8547 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
8548 -mfloat128-type being split from -mfloat128. Add
8549 -mfloat128-hardware, which was missing.
8550 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
8551 -mfloat128 and -mfloat128-type:
8552 (-mfloat128-type): Likewise.
8553 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
8554 that 64-bit Linux systems with enable -mfloat128-type by default
8555 on VSX systems.
8556 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
8557 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
8558 -mfloat128-type instead of -mfloat128.
8559 (FLOAT128_2REG_P): Likewise.
8560 (MASK_FLOAT128_TYPE): Likewise.
8561 (ALTIVEC_ARG_MAX_RETURN): Likewise.
8562 (RS6000_BTM_FLOAT128): Likewise.
8563 (TARGET_FLOAT128): Poison old identifiers.
8564 (OPTION_MASK_FLOAT128): Likewise.
8565 (MASK_FLOAT128): Likewise.
8566 * config/rs6000/rs6000.md (FP): Likewise.
8567 (FLOAT128): Likewise.
8568 (fix_trunc<mode>di2): Likewise.
8569 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
8570 (floatdi<mode>2): Likewise.
8571 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
8572 (neg<mode>2, FLOAT128 iterator): Likewise.
8573 (abs<mode>2, FLOAT128 iterator): Likewise.
8574 (ieee_128bit_negative_zero): Likewise.
8575 (ieee_128bit_vsx_neg<mode>2): Likewise.
8576 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
8577 (ieee_128bit_vsx_abs<mode>2): Likewise.
8578 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
8579 (ieee_128bit_vsx_nabs<mode>2): Likewise.
8580 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
8581 (extendiftf2): Likewise.
8582 (extendifkf2): Likewise.
8583 (extendtfkf2): Likewise.
8584 (trunciftf2): Likewise.
8585 (truncifkf2): Likewise.
8586 (trunckftf2): Likewise.
8587 (trunctfif2): Likewise.
8588 (extendkftf2): Likewise.
8589 (trunctfkf2): Likewise.
8590
8591 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8592
8593 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
8594 before merging in bytes to pass down to real_from_target.
8595
8596 2016-10-07 Richard Biener <rguenther@suse.de>
8597
8598 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
8599 required hack.
8600 (substitute_and_fold_dom_walker::before_dom_children):
8601 Substitute and fold before pass specific folding to avoid
8602 feeding that with SSA names that will be later released.
8603 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
8604 introduced by folding and visited by evaluate_stmt called during
8605 ccp_fold_stmt.
8606 (likely_value): Likewise.
8607 (evaluate_stmt): Likewise.
8608 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
8609 (simplify_div_or_mod_using_ranges): Likewise.
8610 (simplify_min_or_max_using_ranges): Likewise.
8611 (simplify_abs_using_ranges): Likewise.
8612 (simplify_conversion_using_ranges): Likewise.
8613 (simplify_float_conversion_using_ranges): Likewise.
8614 (simplify_stmt_using_ranges): Likewise.
8615
8616 2016-10-07 Marek Polacek <polacek@redhat.com>
8617
8618 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
8619 FALLTHROUGH_LABEL_P here...
8620 (warn_implicit_fallthrough_r): ...not here.
8621
8622 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
8623
8624 PR tree-optimization/77880
8625 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
8626 necessary.
8627
8628 2016-10-07 Marek Polacek <polacek@redhat.com>
8629
8630 PR c++/77803
8631 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
8632
8633 2016-10-07 Richard Biener <rguenther@suse.de>
8634
8635 * bitmap.h: Document constraints on bitmap modification while
8636 iterating over it.
8637
8638 2016-10-07 Richard Biener <rguenther@suse.de>
8639
8640 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
8641 * bitmap.h (bmp_iter_set): When advancing to the next element
8642 check that we didn't remove the current one.
8643 (bmp_iter_and): Likewise.
8644 (bmp_iter_and_compl): Likewise.
8645 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
8646 we currently iterate on but keep a one-level queue.
8647 * sched-deps.c (remove_from_deps): Do not clear current bit
8648 but keep a one-level queue.
8649
8650 2016-10-07 Jakub Jelinek <jakub@redhat.com>
8651
8652 PR tree-optimization/77664
8653 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
8654 for the other ranges.
8655 (optimize_range_tests_diff): Fix up formatting.
8656 (optimize_range_tests_var_bound): New function.
8657 (optimize_range_tests): Use it.
8658
8659 2016-10-07 Martin Liska <mliska@suse.cz>
8660
8661 * coverage.c (build_gcov_exit_decl): Fix priority what
8662 should be really 99.
8663
8664 2016-10-07 Richard Biener <rguenther@suse.de>
8665
8666 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
8667 vars in gimple_bind_vars but not in BLOCK_VARS.
8668
8669 2016-10-07 Richard Biener <rguenther@suse.de>
8670
8671 PR tree-optimization/77879
8672 * tree-ssa-structalias.c (handle_const_call): Properly handle
8673 NRV return slots.
8674 (handle_pure_call): Likewise.
8675
8676 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8677
8678 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
8679 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
8680 possible overflow.
8681
8682 2016-10-06 Andrew Pinski <apinski@cavium.com>
8683
8684 * config/aarch64/aarch64-cores.def: Add a comment before each
8685 set of cores.
8686
8687 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
8688
8689 PR tree-optimization/77862
8690 * tree-vrp.c (add_equivalence): Use get_value_range so that
8691 num_vr_values is checked before accessing vr_values.
8692
8693 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
8694
8695 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
8696 POINTER_TYPE_P.
8697
8698 2016-10-05 Jeff Law <law@redhat.com>
8699
8700 PR tree-optimization/71661
8701 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
8702 removal of a forwarder exposes a new natural loop.
8703
8704 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
8705
8706 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
8707 Introduce ssesuffix variable.
8708 (<mask_codefor><code><mode>3<mask_name>): Ditto.
8709 (*<code><mode>3): Ditto.
8710
8711 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
8712
8713 * postreload.c (reload_cse_simplify): Skip also USE when detecting
8714 noop move.
8715
8716 2016-10-06 Richard Biener <rguenther@suse.de>
8717
8718 PR tree-optimization/77855
8719 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
8720 instead of removing the current item while iterating over the set
8721 which is not safe.
8722
8723 2016-10-06 James Clarke <jrtc27@jrtc27.com>
8724 Eric Botcazou <ebotcazou@adacore.com>
8725
8726 PR target/77759
8727 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
8728 (classify_registers): Don't set it
8729 (function_arg_slotno): Don't initialize and test it. Tidy up.
8730
8731 2016-10-06 Richard Biener <rguenther@suse.de>
8732
8733 PR tree-optimization/77839
8734 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
8735 lattice transition.
8736
8737 2016-10-06 Martin Liska <mliska@suse.cz>
8738
8739 * gcc.c: Set -fprofile-update=atomic when profiling is
8740 enabled and -pthread is set. Warn when one combines
8741 -pthread and -fprofile-update=single for an app using
8742 profiling code.
8743
8744 2016-10-06 Martin Liska <mliska@suse.cz>
8745
8746 PR bootstrap/77788
8747 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
8748 * gimple-ssa-strength-reduction.c (slsr_process_cast):
8749 Initialize a pointer to NULL.
8750 (slsr_process_copy): Likewise.
8751 * input.c (location_get_source_line): Likewise.
8752 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8753
8754 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
8755
8756 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
8757 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
8758 (ix86_handle_option): Deleted handle of OPT_mpcommit.
8759 * config.gcc: Deleted pcommitintrin.h
8760 * config/i386/pcommitintrin.h: Deleted file.
8761 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
8762 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
8763 detection.
8764 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
8765 __PCOMMIT__.
8766 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
8767 (PTA_PCOMMIT): Deleted define.
8768 (ix86_option_override_internal): Deleted handle of option.
8769 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
8770 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
8771 __builtin_ia32_pcommit): Deleted.
8772 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
8773 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
8774 (pcommit): Deleted instruction.
8775 * config/i386/i386.opt: Mention -mpcommit deprecation.
8776 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
8777
8778 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
8779
8780 PR target/77874
8781 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
8782 Remove wrong assert.
8783 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
8784 Use <round_constraint> as operand 1 constraint.
8785
8786 2016-10-05 Jakub Jelinek <jakub@redhat.com>
8787
8788 PR sanitizer/66343
8789 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
8790 (ubsan_instrument_float_cast): And not here.
8791
8792 PR sanitizer/66343
8793 * ubsan.c (ubsan_ids): New GTY(()) array.
8794 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
8795 instead of static local counters.
8796
8797 2016-10-05 Martin Sebor <msebor@redhat.com>
8798
8799 PR bootstrap/77819
8800 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
8801 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
8802 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
8803 (default_printf_pointer_format): Define function.
8804 * targhooks.c (linux_printf_pointer_format): Define new function.
8805 * targhooks.h (linux_printf_pointer_format): Declare.
8806 (gnu_libc_printf_pointer_format): Remove declaration.
8807
8808 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8809
8810 * fold-const.c (native_encode_real): Fix logic for selecting offset
8811 to write to when BYTES_BIG_ENDIAN.
8812
8813 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
8814
8815 * builtins.c (fold_builtin_strchr): Remove function.
8816 (fold_builtin_strrchr): Likewise.
8817 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
8818 * gimple-fold.c (target_char_cst_p): New function.
8819 (gimple_fold_builtin_strchr) Add more foldings.
8820 (gimple_fold_builtin): Add index, strrchr, rindex cases.
8821
8822 2016-10-05 Richard Biener <rguenther@suse.de>
8823
8824 PR middle-end/77863
8825 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
8826 capture ids in c-exprs.
8827
8828 2016-10-05 Richard Biener <rguenther@suse.de>
8829
8830 PR middle-end/77826
8831 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
8832 with types_match for GIMPLE code gen to handle type mismatched
8833 constants properly.
8834 (dt_operand::gen): Adjust.
8835 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
8836 and constant A.
8837
8838 2016-10-05 Richard Biener <rguenther@suse.de>
8839
8840 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
8841
8842 2016-10-05 Richard Biener <rguenther@suse.de>
8843
8844 PR middle-end/77842
8845 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
8846
8847 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
8848
8849 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
8850 version check to protect only DW_TAG_imported_module generation.
8851
8852 2016-10-05 Richard Biener <rguenther@suse.de>
8853
8854 PR middle-end/55152
8855 * match.pd (min(a,-a) -> -abs(a)): New pattern.
8856
8857 2016-10-04 Ian Lance Taylor <iant@golang.org>
8858
8859 * explow.c (allocate_dynamic_stack_space): Call
8860 do_pending_stack_adjust before handling flag_split_stack.
8861
8862 2016-10-04 David Malcolm <dmalcolm@redhat.com>
8863
8864 * genattrtab.c (make_internal_attr): Supply dummy column number to
8865 file_location ctor.
8866 (main): Likewise.
8867 * genoutput.c (init_insn_for_nothing): Likewise.
8868 * gensupport.c (add_define_attr): Likewise.
8869 * read-md.c (message_at_1): Print column number.
8870 (fatal_with_file_and_line): Likewise.
8871 (rtx_reader::read_char): Track column numbers.
8872 (rtx_reader::unread_char): Likewise.
8873 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
8874 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
8875 (rtx_reader::handle_file): Initialize m_read_md_colno.
8876 (rtx_reader::get_current_location): Supply column number to
8877 file_location ctor.
8878 * read-md.h (struct file_location): Add field "colno".
8879 (file_location::file_location): Likewise.
8880 (rtx_reader::get_colno): New accessor.
8881 (rtx_reader::m_read_md_colno): New field.
8882 (rtx_reader::m_last_line_colno): New field.
8883
8884 2016-10-04 Jakub Jelinek <jakub@redhat.com>
8885
8886 * doc/extend.texi (Java Exceptions): Remove.
8887 (java_interface): Remove.
8888
8889 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
8890
8891 PR tree-optimization/77808
8892 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
8893 and addr are different before copying points-to information.
8894
8895 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
8896
8897 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
8898 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
8899 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
8900 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
8901
8902 2016-10-04 Richard Biener <rguenther@suse.de>
8903
8904 PR tree-optimization/77399
8905 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
8906 verify the target can convert.
8907
8908 2016-10-04 Richard Biener <rguenther@suse.de>
8909
8910 PR middle-end/77833
8911 * explow.c (plus_constant): Verify the mode of the constant
8912 pool offset before calling plus_constant.
8913
8914 2016-10-04 Richard Biener <rguenther@suse.de>
8915
8916 PR middle-end/77407
8917 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
8918 type support, mark with :C.
8919 (X / -X -> -1): Mark with :C.
8920
8921 2016-10-04 Jakub Jelinek <jakub@redhat.com>
8922
8923 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
8924 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
8925 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
8926 * doc/tm.texi: Regenerated.
8927 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
8928 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
8929 * config/darwin.h (JCR_SECTION_NAME): Remove.
8930 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
8931 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
8932 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
8933 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
8934 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
8935 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
8936
8937 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8938
8939 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
8940 between "because" and "param" in dump message in call to fprintf.
8941
8942 2016-10-03 Jeff Law <law@redhat.com>
8943
8944 PR tree-optimization/71550
8945 PR tree-optimization/71403
8946 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
8947 (profitable_jump_thread_path): Also return boolean indicating if
8948 the realized path will create an irreducible loop.
8949 Remove loop depth tests from 71403.
8950 (fsm_find_control_statement_thread_paths): Remove loop depth tests
8951 from 71403. If threading will create an irreducible loop, then
8952 throw away loop iteration and related information.
8953
8954 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
8955
8956 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
8957 -Woverloaded-virtual checks for warning options.
8958 * configure: Regenerate.
8959
8960 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
8961
8962 PR preprocessor/77699
8963 * input.c (maybe_grow): Don't allocate one byte extra headroom.
8964 (get_next_line): Return false on error.
8965 (read_next_line): Removed, use get_next_line instead.
8966 (read_line_num): Don't copy the line.
8967 (location_get_source_line): Don't use static data.
8968 (selftest::test_reading_source_line): Add more test cases.
8969
8970 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8971
8972 Revert
8973 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8974
8975 * ifcvt.c (noce_try_avoid_const_materialization): New function.
8976 (noce_process_if_block): Use it.
8977
8978 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
8979
8980 * doc/invoke.texi: Update -Wint-in-bool-context.
8981
8982 2016-10-02 Jakub Jelinek <jakub@redhat.com>
8983
8984 * dwarf2out.c (output_fde, output_call_frame_info,
8985 dwarf2out_do_cfi_startproc, set_indirect_string,
8986 gen_internal_sym, output_die, output_line_info): Use
8987 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
8988 ASM_GENERATE_INTERNAL_LABEL output.
8989
8990 2016-10-01 Richard Biener <rguenther@suse.de>
8991
8992 PR middle-end/77798
8993 * genmatch.c (get_operand_type): Add operand position arg
8994 and handle COND_EXPR comparison operand with fixed boolean_type_node.
8995 (expr::gen_transform): Adjust.
8996 (dt_simplify::gen_1): Likewise.
8997
8998 2016-10-01 Jakub Jelinek <jakub@redhat.com>
8999
9000 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
9001 comments. Simplify asserts, remove unnecessary conditions.
9002 Formatting fixes.
9003 (*<code><mode>3): Likewise.
9004
9005 2016-09-30 Jakub Jelinek <jakub@redhat.com>
9006
9007 * doc/invoke.texi (-Wregister): Document.
9008
9009 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
9010
9011 * configure.ac: Split CHECKING_P into CHECKING_P and
9012 ENABLE_EXTRA_CHECKING.
9013 * configure: Regenerated.
9014 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
9015 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
9016
9017 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
9018
9019 PR other/31566
9020 * gcc.c (process_command): For @filename handling, output
9021 the correct name if the file does not exist.
9022
9023 2016-09-30 Marek Polacek <polacek@redhat.com>
9024
9025 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
9026 * config/alpha/predicates.md: Likewise.
9027
9028 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9029
9030 * ifcvt.c (noce_try_avoid_const_materialization): New function.
9031 (noce_process_if_block): Use it.
9032
9033 2016-09-30 Martin Liska <mliska@suse.cz>
9034
9035 * doc/invoke.texi: Document asan-use-after-return that
9036 it's disabled by default in runtime.
9037
9038 2016-09-30 Richard Biener <rguenther@suse.de>
9039
9040 * tree-vrp.c (intersect_ranges): If we failed to handle
9041 the intersection choose a constant singleton range if available.
9042
9043 2016-09-30 Richard Biener <rguenther@suse.de>
9044
9045 PR tree-optimization/77399
9046 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
9047 float <-> int conversions.
9048
9049 2016-09-30 Alan Modra <amodra@gmail.com>
9050
9051 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
9052
9053 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
9054
9055 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
9056 ext_level before calling CPUID with 0x80000008.
9057 Simplify xgetbv checks.
9058
9059 2016-09-29 David Malcolm <dmalcolm@redhat.com>
9060
9061 * Makefile.in (OBJS): Add print-rtl-function.o.
9062 * print-rtl-function.c: New file.
9063 * print-rtl.h (print_rtx_function): New decl.
9064
9065 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
9066
9067 PR target/77756
9068 * config/i386/cpuid.h (__get_cpuid_count): New.
9069 (__get_cpuid): Rename __level to __leaf.
9070
9071 2016-09-29 Marek Polacek <polacek@redhat.com>
9072
9073 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
9074
9075 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
9076
9077 PR target/77718
9078 * builtins.c (expand_builtin_memcmp): Don't swap args unless
9079 result is only being compared with zero.
9080
9081 2016-09-29 Marek Polacek <polacek@redhat.com>
9082
9083 * dwarf2out.c (loc_descriptor): Add fall through comment.
9084 (add_const_value_attribute): Likewise.
9085
9086 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
9087
9088 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
9089 with "v6t2". Move "arch" attribute above "pool_range".
9090 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
9091 with "v6t2".
9092 (*thumb2_movhi_vfp): Likewise.
9093 (*arm_movhi_fp16): Likewise.
9094 (*thumb2_movhi_fp16): Likewise.
9095 (*arm_movsi_vfp): Remove "arch" attribute.
9096 (*thumb2_movsi_vfp): Likewise.
9097
9098 2016-09-29 Martin Liska <mliska@suse.cz>
9099
9100 * doc/extend.texi: Remove limitation of Objective C for
9101 __attribute__((constructor)) and __attribute__((destructor)).
9102
9103 2016-09-29 Richard Biener <rguenther@suse.de>
9104
9105 PR tree-optimization/77768
9106 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9107 Handle stores to readonly memory when removing redundant stores.
9108
9109 2016-09-29 Richard Biener <rguenther@suse.de>
9110
9111 PR middle-end/77407
9112 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
9113 X / -X -> -1 simplifications.
9114
9115 2016-09-29 Richard Biener <rguenther@suse.de>
9116
9117 PR middle-end/55152
9118 * match.pd: Add max(a,-a) -> abs(a) pattern.
9119 * tree-ssa-phiopt.c (minmax_replacement): Disable for
9120 HONOR_SIGNED_ZEROS types.
9121
9122 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
9123
9124 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
9125 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
9126
9127 2016-09-29 Richard Biener <rguenther@suse.de>
9128
9129 * tree-vrp.c (set_defs_to_varying): New helper avoiding
9130 writing to vr_const_varying.
9131 (vrp_initialize): Call it.
9132 (vrp_visit_stmt): Likewise.
9133 (evrp_dom_walker::before_dom_children): Likewise.
9134
9135 2016-09-29 Richard Biener <rguenther@suse.de>
9136
9137 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
9138 constructors with vector elements.
9139
9140 2016-09-29 Richard Biener <rguenther@suse.de>
9141
9142 PR tree-optimization/77768
9143 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
9144 with stores to a place we know has a constant value.
9145
9146 2016-09-29 Alan Modra <amodra@gmail.com>
9147
9148 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
9149 * doc/invoke.texi: Document it.
9150 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
9151 (rs6000_passes_float): Comment.
9152 (rs6000_passes_long_double): New static var.
9153 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
9154 (init_cumulative_args): Set up to emit fp .gnu_attribute for
9155 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
9156 to include fp values returned in vectors.
9157 Set rs6000_passes_long_double.
9158 (rs6000_function_arg_advance_1): Likewise for function args.
9159 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
9160 and SPE. Emit long double tag value too.
9161 (rs6000_opt_vars): Add gnu-attr.
9162 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
9163 * configure: Regenerate.
9164 * config.in: Regenerate.
9165
9166 2016-09-28 Jakub Jelinek <jakub@redhat.com>
9167
9168 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
9169 of 0 < x.
9170 (format_floating, format_string, format_directive,
9171 get_destination_size, pass_sprintf_length::handle_gimple_call):
9172 Likewise.
9173
9174 2016-09-28 Jakub Jelinek <jakub@redhat.com>
9175
9176 * gimple-ssa-sprintf.c: Fix comment formatting.
9177 (format_integer): Use is_gimple_assign.
9178 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
9179 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
9180 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
9181 (pass_sprintf_length::execute): Use is_gimple_call.
9182
9183 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
9184
9185 * gimple-fold.c (gimple_fold_builtin): After failing to fold
9186 strchr, also try the generic folding.
9187
9188 2016-09-28 Martin Sebor <msebor@redhat.com>
9189
9190 PR c/77762
9191 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
9192 Fix typos.
9193
9194 2016-09-28 Martin Sebor <msebor@redhat.com>
9195
9196 PR middle-end/77683
9197 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
9198 length modifier is not expected.
9199 (format_floating): Ignore l length modifier and fail gracefuly
9200 when it isn't one of the other expected ones.
9201
9202 2016-09-28 Martin Sebor <msebor@redhat.com>
9203
9204 PR bootstrap/77753
9205 * varasm.c (assemble_addr_to_section): Increase local buffer size.
9206
9207 2016-09-27 Richard Biener <rguenther@suse.de>
9208
9209 * dwarf2out.c (cu_die_list): New global.
9210 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
9211 main_comp_unit_die to cu_die_list if we created it.
9212 Move break_out_includes ...
9213 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
9214 the cu_die_list.
9215
9216 2016-09-28 Richard Biener <rguenther@suse.de>
9217
9218 * dwarf2out.c (struct die_struct): Add removed flag.
9219 (lookup_type_die): If the DIE is marked as removed, clear
9220 TYPE_SYMTAB_DIE and return NULL.
9221 (lookup_decl_die): If the DIE is marked as removed, remove it
9222 from the hash and return NULL.
9223 (mark_removed): New helper.
9224 (prune_unused_types_prune): Call it for removed DIEs.
9225 (gen_subprogram_die): Move the premark_used_types call to after
9226 DIEs for the functions scopes are generated.
9227 (process_scope_var): Do not re-create pruned types or type decls.
9228 Make sure to also re-parent type decls.
9229 (dwarf2out_finish): Move unused type pruning and debug_types
9230 handling ...
9231 (dwarf2out_early_finish): ... here.
9232
9233 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
9234
9235 * config/arc/arc-c.c: New file.
9236 * config/arc/arc-c.def: Likewise.
9237 * config/arc/t-arc: Likewise.
9238 * config.gcc: Include arc-c.o as c and cpp object.
9239 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
9240 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
9241 arc_cpu_cpp_builtins.
9242
9243 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
9244
9245 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
9246 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
9247
9248 2016-09-28 Nathan Sidwell <nathan@acm.org>
9249
9250 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
9251 printing.
9252
9253 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
9254
9255 PR tree-optimization/61056
9256 * gimple-fold.c (gimple_fold_builtin_strchr):
9257 New function to optimize strchr (s, 0) to strlen.
9258 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
9259
9260 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
9261
9262 PR tree-optimization/77724
9263 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
9264 Add tree_fits_shwi_p check.
9265
9266 2016-09-27 Jakub Jelinek <jakub@redhat.com>
9267
9268 * auto-inc-dec.c (try_merge): Remove break after return.
9269 * cselib.c (autoinc_split): Likewise.
9270 * explow.c (promote_mode): Likewise.
9271 * fixed-value.c (fixed_arithmetic): Likewise.
9272 * hsa.c (hsa_internal_fn::get_arity): Likewise.
9273 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
9274 * trans-mem.c (get_attrs_for): Likewise.
9275 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
9276 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
9277 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
9278 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
9279 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
9280 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
9281 * config/cris/cris.c (cris_op_str): Likewise.
9282 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
9283 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
9284
9285 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
9286
9287 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
9288 IFN_GOACC_REDUCTION_CODES): New.
9289 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
9290 ifn_goacc_reduction_kind): Use them.
9291 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
9292 of internal functions, when applicable.
9293
9294 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
9295
9296 * config/mips/constraints.md (d): Fix documentation.
9297 * doc/md.texi (Machine Constraints): Update accordingly.
9298
9299 2016-09-27 Richard Biener <rguenther@suse.de>
9300
9301 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
9302 cur_line_info_table initialization ...
9303 (dwarf2out_assembly_start): ... here.
9304
9305 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
9306
9307 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
9308 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
9309 (*thumb2_movhi_vfp): Likewise.
9310 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
9311 template. Expand predicable attribute to mark VMOV.F16 as not
9312 predicable. Add "arch" attribute.
9313 (*thumb2_movhi_fp16): Likewise.
9314 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
9315 (*thumb2_movsi_vfp): Add "arch" attribute.
9316
9317 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
9318
9319 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
9320 VAR_DECL string.
9321
9322 2016-09-27 Marek Polacek <polacek@redhat.com>
9323
9324 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
9325 comment.
9326
9327 * config/c6x/c6x.h: Adjust fall through comment.
9328 * config/sh/sh.c (final_prescan_insn): Likewise.
9329 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
9330 (visium_expand_fp_cstore): Likewise.
9331
9332 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9333
9334 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
9335 expected by -Wimplicit-fallthrough.
9336 (thumb1_size_rtx_costs): Likewise.
9337 (thumb2_reorg): Likewise.
9338 (tls_mentioned_p): Add "Fall through" comment.
9339 (thumb2_reorg): Likewise.
9340 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
9341 comment form expected by -Wimplicit-fallthrough.
9342
9343 2016-09-27 Martin Liska <mliska@suse.cz>
9344
9345 PR gcov-profile/46266
9346 * input.h (RESERVED_LOCATION_P): New macro.
9347 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
9348 instread of comparison with UNKNOWN_LOCATION.
9349
9350 2016-09-27 Richard Biener <rguenther@suse.de>
9351
9352 PR tree-optimization/77745
9353 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9354 When removing redundant stores make sure to check compatibility
9355 of the TBAA state for downstream accesses.
9356 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
9357 value-numbering virtual operands for store matches.
9358
9359 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
9360
9361 PR target/51244
9362 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
9363 movrt patterns. Match them before anything else in the SET case.
9364
9365 2016-09-27 Martin Liska <mliska@suse.cz>
9366
9367 PR gcov-profile/7970
9368 PR gcov-profile/16855
9369 PR gcov-profile/44779
9370 * coverage.c (build_gcov_exit_decl): New function.
9371 (coverage_obj_init): Call the function and generate __gcov_exit
9372 destructor.
9373 * doc/gcov.texi: Document when __gcov_exit function is called.
9374
9375 2016-09-27 Marek Polacek <polacek@redhat.com>
9376
9377 PR bootstrap/77751
9378 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9379 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
9380 -Wno-error instead of -Wno-implicit-fallthrough.
9381
9382 2016-09-27 Martin Liska <mliska@suse.cz>
9383
9384 PR bootstrap/77749
9385 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
9386
9387 2016-09-27 Jakub Jelinek <jakub@redhat.com>
9388
9389 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
9390 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
9391 comments. Remove break after return.
9392 (ix86_fp_compare_code_to_integer, has_dispatch,
9393 ix86_simd_clone_usable): Remove break after return.
9394
9395 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
9396
9397 PR rlt-optimization/77714
9398 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
9399 REG_EQUAL note.
9400
9401 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
9402
9403 PR ipa/77677
9404 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
9405 extract_range_from_unary_expr to convert value_range.
9406 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
9407 (extract_range_from_unary_expr): This.
9408 * tree-vrp.h (extract_range_from_unary_expr): Declare.
9409
9410 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
9411
9412 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
9413
9414 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9415
9416 * config/i386/i386.c (ix86_print_operand)
9417 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
9418 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
9419 (epilogue_renumber): Likewise.
9420
9421 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
9422
9423 PR middle-end/77719
9424 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
9425 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
9426
9427 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
9428
9429 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
9430 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
9431 is_mm_seq_cst, is_mm_sync): Move to ...
9432 * memmodel.h: This. New file.
9433 * builtins.c: Include memmodel.h.
9434 * optabs.c: Likewise.
9435 * tsan.c: Likewise.
9436 * config/aarch64/aarch64.c: Likewise.
9437 * config/alpha/alpha.c: Likewise.
9438 * config/arm/arm.c: Likewise.
9439 * config/i386/i386.c: Likewise.
9440 * config/ia64/ia64.c: Likewise.
9441 * config/mips/mips.c: Likewise.
9442 * config/rs6000/rs6000.c: Likewise.
9443 * config/sparc/sparc.c: Likewise.
9444 * genconditions.c: Include memmodel.h in generated file.
9445 * genemit.c: Likewise.
9446 * genoutput.c: Likewise.
9447 * genpeep.c: Likewise.
9448 * genpreds.c: Likewise.
9449 * genrecog.c: Likewise.
9450
9451 2016-09-26 David Malcolm <dmalcolm@redhat.com>
9452
9453 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
9454 "c" instead when parsing characters. Move operand parsing into...
9455 (read_rtx_operand): ...this new function, renaming "i" to "idx",
9456 and tightening the scope of various locals.
9457
9458 2016-09-26 Liu Hao <lh_mouse@126.com>
9459
9460 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
9461
9462 2016-09-26 Marek Polacek <polacek@redhat.com>
9463
9464 * system.h: Use __has_attribute to check whether the fallthrough
9465 attribute is supported.
9466
9467 2016-09-26 Marek Polacek <polacek@redhat.com>
9468
9469 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
9470 gimple_call_internal_p.
9471 * ipa-split.c (find_return_bb): Likewise.
9472 (execute_split_functions): Likewise.
9473 * omp-low.c (dump_oacc_loop_part): Likewise.
9474 (oacc_loop_xform_head_tail): Likewise.
9475 * predict.c (predict_loops): Likewise.
9476 * sanopt.c (pass_sanopt::execute): Likewise.
9477 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
9478 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
9479 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
9480 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
9481 (expand_ifn_va_arg): Likewise.
9482 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
9483 (optimize_mask_stores): Likewise.
9484 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
9485 (vect_transform_stmt): Likewise.
9486 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
9487 * tsan.c (instrument_memory_accesses): Likewise.
9488
9489 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9490 Alexander Monakov <amonakov@ispras.ru>
9491
9492 * regrename.c (rename_chains): Check
9493 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
9494 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
9495 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9496
9497 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9498
9499 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
9500 (s390_sched_score): Likewise.
9501
9502 2016-09-26 Martin Liska <mliska@suse.cz>
9503
9504 * doc/gcov.texi: Update program output of gcov tool.
9505
9506 2016-09-26 Martin Liska <mliska@suse.cz>
9507
9508 PR gcov-profile/23332
9509 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
9510 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
9511 * value-prof.c (dump_histogram_value): Do not handle
9512 HIST_TYPE_CONST_DELTA.
9513 (stream_in_histogram_value): Likewise.
9514 (gimple_find_values_to_profile): Likewise.
9515 * value-prof.h (enum hist_type): Likewise.
9516
9517 2016-09-26 Martin Liska <mliska@suse.cz>
9518
9519 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
9520 from default sanitize recover values.
9521 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
9522 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
9523 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
9524 consistent.
9525 * opts.c (finish_options): Do a generic loop over options
9526 that can be recovered.
9527 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
9528 SANITIZE_RETURN.
9529 (common_handle_option): Likewise.
9530 * opts.h: Declare can_recover to sanitizer_opts_s.
9531
9532 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
9533
9534 * target.def(elf_flags_numeric): Change documentation to present tense.
9535 * doc/tm.texi: Regenerate.
9536
9537 2016-09-26 Marek Polacek <polacek@redhat.com>
9538
9539 PR c/7652
9540 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9541 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
9542 -Wno-switch-fallthrough.
9543 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
9544 (expand_builtin): Likewise.
9545 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
9546 * convert.c (convert_to_real_1): Likewise.
9547 (convert_to_integer_1): Likewise.
9548 * final.c (output_alternate_entry_point): Likewise.
9549 * genattrtab.c (make_canonical): Likewise.
9550 (write_test_expr): Likewise.
9551 * genpreds.c (validate_exp): Likewise.
9552 * gimple-ssa-strength-reduction.c
9553 (find_candidates_dom_walker::before_dom_children): Likewise.
9554 * godump.c (go_format_type): Likewise.
9555 * reload1.c (elimination_effects): Likewise.
9556 * resource.c (mark_referenced_resources): Likewise.
9557 (mark_set_resources): Likewise.
9558 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
9559 * varasm.c (output_addressed_constants): Likewise.
9560
9561 2016-09-26 Marek Polacek <polacek@redhat.com>
9562
9563 PR c/7652
9564 * common.opt (Wimplicit-fallthrough): New option.
9565 * doc/extend.texi: Document statement attributes and the fallthrough
9566 attribute.
9567 * doc/invoke.texi: Document -Wimplicit-fallthrough.
9568 * gimple.h (gimple_call_internal_p): New function.
9569 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
9570 (struct label_entry): New struct.
9571 (find_label_entry): New function.
9572 (case_label_p): New function.
9573 (collect_fallthrough_labels): New function.
9574 (last_stmt_in_scope): New function.
9575 (should_warn_for_implicit_fallthrough): New function.
9576 (warn_implicit_fallthrough_r): New function.
9577 (maybe_warn_implicit_fallthrough): New function.
9578 (expand_FALLTHROUGH_r): New function.
9579 (expand_FALLTHROUGH): New function.
9580 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
9581 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
9582 (gimplify_label_expr): New function.
9583 (gimplify_case_label_expr): Set location.
9584 (gimplify_expr): Call gimplify_label_expr.
9585 * internal-fn.c (expand_FALLTHROUGH): New function.
9586 * internal-fn.def (FALLTHROUGH): New internal function.
9587 * langhooks.c (lang_GNU_OBJC): New function.
9588 * langhooks.h (lang_GNU_OBJC): Declare.
9589 * system.h (gcc_fallthrough): Define.
9590 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
9591 * tree.h (FALLTHROUGH_LABEL_P): Define.
9592
9593 2016-09-26 Richard Biener <rguenther@suse.de>
9594
9595 * dwarf2out.c (stripattributes): Remove unused function.
9596 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
9597 Push dwarf_split_debug_info handling into init_sections_and_labels.
9598 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
9599 (DEBUG_MACRO_SECTION_FLAGS): Remove.
9600 (debug_macinfo_section_name): New global.
9601 (output_macinfo): Use debug_macinfo_section_name.
9602 (init_sections_and_labels): Split out section and label generation
9603 from dwarf2out_init. Set debug_macinfo_section_name.
9604 (dwarf2out_init): Move text section label generation and emission
9605 to ...
9606 (dwarf2out_assembly_start): ... here.
9607 (dwarf2out_finish): Call init_sections_and_labels before DWARF
9608 output starts.
9609
9610 2016-09-26 Richard Biener <rguenther@suse.de>
9611
9612 PR debug/77692
9613 * cgraphunit.c (analyze_functions): Before early removing
9614 global vars calls the late_global_decl debug handler mark
9615 the variable as readonly.
9616
9617 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
9618
9619 PR target/51244
9620 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
9621 (sh_rtx_costs): Handle SET of movt and movrt patterns.
9622 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
9623 declare new overloads.
9624 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
9625 operand.
9626
9627 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9628
9629 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
9630 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
9631
9632 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
9633
9634 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
9635 * configure: Regenerate.
9636
9637 2016-09-24 Marek Polacek <polacek@redhat.com>
9638
9639 PR c/77490
9640 * doc/invoke.texi: Document -Wbool-operation.
9641
9642 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9643
9644 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
9645 * config/rs6000/rs6000.c (expand_block_compare): New function used by
9646 cmpmemsi pattern to do builtin expansion of memcmp ().
9647 (compute_current_alignment): Add helper function for
9648 expand_block_compare used to compute alignment as the compare proceeds.
9649 (select_block_compare_mode): Used by expand_block_compare to select
9650 the mode used for reading the next chunk of bytes in the compare.
9651 (do_load_for_compare): Used by expand_block_compare to emit the load
9652 insns for the compare.
9653 (rs6000_emit_dot_insn): Moved this function to avoid a forward
9654 reference from expand_block_compare ().
9655 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
9656 prototype for this function.
9657 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
9658 target option for controlling how much code inline expansion of
9659 memcmp() will be allowed to generate.
9660
9661 2016-09-23 Jakub Jelinek <jakub@redhat.com>
9662
9663 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
9664 hook_bool_mode_false, hook_bool_mode_true,
9665 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
9666 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
9667 hook_bool_const_rtx_insn_const_rtx_insn_true,
9668 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
9669 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
9670 hook_bool_const_tree_hwi_hwi_const_tree_false,
9671 hook_bool_const_tree_hwi_hwi_const_tree_true,
9672 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
9673 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
9674 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
9675 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
9676 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
9677 hook_bool_const_tree_true, hook_bool_tree_tree_false,
9678 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
9679 hook_bool_rtx_insn_true, hook_bool_rtx_false,
9680 hook_bool_uintp_uintp_false,
9681 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
9682 hook_rtx_tree_int_null, hook_uint_mode_0,
9683 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
9684 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
9685 hook_constcharptr_const_rtx_insn_null,
9686 hook_constcharptr_const_tree_const_tree_null,
9687 hook_constcharptr_int_const_tree_null,
9688 hook_constcharptr_int_const_tree_const_tree_null,
9689 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
9690 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
9691 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
9692
9693 * vec.h (vNULL): Extend comment to say = vNULL initialization
9694 isn't needed for static vars.
9695
9696 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
9697 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
9698 = vNULL initialization of file scope vec.
9699 * passes.c (pass_tab, enabled_pass_uid_range_tab,
9700 disabled_pass_uid_range_tab): Likewise.
9701 * haifa-sched.c (sched_luids, h_i_d): Likewise.
9702 * tree-chkp-opt.c (check_infos): Likewise.
9703 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
9704
9705 * vec.h (vnull::operator vec): Add constexpr keyword for
9706 C++11 and later.
9707
9708 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
9709
9710 PR tree-optimization/77654
9711 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
9712 to duplicate_ssa_name_ptr_info.
9713
9714 2016-09-23 David Malcolm <dmalcolm@redhat.com>
9715
9716 PR preprocessor/77672
9717 * input.c (selftest::test_lexer_string_locations_simple): Update
9718 test to expect location information of the terminator character
9719 at the location of the final closing quote.
9720 (selftest::test_lexer_string_locations_hex): Likewise.
9721 (selftest::test_lexer_string_locations_oct): Likewise.
9722 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
9723 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
9724 (selftest::test_lexer_string_locations_ucn4): Likewise.
9725 (selftest::test_lexer_string_locations_ucn8): Likewise.
9726 (selftest::test_lexer_string_locations_u8): Likewise.
9727 (selftest::test_lexer_string_locations_utf8_source): Likewise.
9728 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
9729 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
9730 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
9731 (selftest::test_lexer_string_locations_macro): Likewise.
9732 (selftest::test_lexer_string_locations_long_line): Likewise.
9733
9734 2016-09-23 Richard Biener <rguenther@suse.de>
9735
9736 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
9737 virtual definition to virtual use if the call devirtualizes
9738 to a const or pure function.
9739 (visit_use): Also visit calls we can devirtualize to a
9740 const or pure function.
9741
9742 2016-09-23 Richard Biener <rguenther@suse.de>
9743
9744 PR tree-optimization/77697
9745 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
9746 signal error if we have sth ternary or unhandled.
9747
9748 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9749
9750 * config/arm/arm_neon.h (vabd_f16): New.
9751 (vabdq_f16): New.
9752 (vabs_f16): New.
9753 (vabsq_f16): New.
9754 (vadd_f16): New.
9755 (vaddq_f16): New.
9756 (vcage_f16): New.
9757 (vcageq_f16): New.
9758 (vcagt_f16): New.
9759 (vcagtq_f16): New.
9760 (vcale_f16): New.
9761 (vcaleq_f16): New.
9762 (vcalt_f16): New.
9763 (vcaltq_f16): New.
9764 (vceq_f16): New.
9765 (vceqq_f16): New.
9766 (vceqz_f16): New.
9767 (vceqzq_f16): New.
9768 (vcge_f16): New.
9769 (vcgeq_f16): New.
9770 (vcgez_f16): New.
9771 (vcgezq_f16): New.
9772 (vcgt_f16): New.
9773 (vcgtq_f16): New.
9774 (vcgtz_f16): New.
9775 (vcgtzq_f16): New.
9776 (vcle_f16): New.
9777 (vcleq_f16): New.
9778 (vclez_f16): New.
9779 (vclezq_f16): New.
9780 (vclt_f16): New.
9781 (vcltq_f16): New.
9782 (vcltz_f16): New.
9783 (vcltzq_f16): New.
9784 (vcvt_f16_s16): New.
9785 (vcvt_f16_u16): New.
9786 (vcvt_s16_f16): New.
9787 (vcvt_u16_f16): New.
9788 (vcvtq_f16_s16): New.
9789 (vcvtq_f16_u16): New.
9790 (vcvtq_s16_f16): New.
9791 (vcvtq_u16_f16): New.
9792 (vcvta_s16_f16): New.
9793 (vcvta_u16_f16): New.
9794 (vcvtaq_s16_f16): New.
9795 (vcvtaq_u16_f16): New.
9796 (vcvtm_s16_f16): New.
9797 (vcvtm_u16_f16): New.
9798 (vcvtmq_s16_f16): New.
9799 (vcvtmq_u16_f16): New.
9800 (vcvtn_s16_f16): New.
9801 (vcvtn_u16_f16): New.
9802 (vcvtnq_s16_f16): New.
9803 (vcvtnq_u16_f16): New.
9804 (vcvtp_s16_f16): New.
9805 (vcvtp_u16_f16): New.
9806 (vcvtpq_s16_f16): New.
9807 (vcvtpq_u16_f16): New.
9808 (vcvt_n_f16_s16): New.
9809 (vcvt_n_f16_u16): New.
9810 (vcvtq_n_f16_s16): New.
9811 (vcvtq_n_f16_u16): New.
9812 (vcvt_n_s16_f16): New.
9813 (vcvt_n_u16_f16): New.
9814 (vcvtq_n_s16_f16): New.
9815 (vcvtq_n_u16_f16): New.
9816 (vfma_f16): New.
9817 (vfmaq_f16): New.
9818 (vfms_f16): New.
9819 (vfmsq_f16): New.
9820 (vmax_f16): New.
9821 (vmaxq_f16): New.
9822 (vmaxnm_f16): New.
9823 (vmaxnmq_f16): New.
9824 (vmin_f16): New.
9825 (vminq_f16): New.
9826 (vminnm_f16): New.
9827 (vminnmq_f16): New.
9828 (vmul_f16): New.
9829 (vmul_lane_f16): New.
9830 (vmul_n_f16): New.
9831 (vmulq_f16): New.
9832 (vmulq_lane_f16): New.
9833 (vmulq_n_f16): New.
9834 (vneg_f16): New.
9835 (vnegq_f16): New.
9836 (vpadd_f16): New.
9837 (vpmax_f16): New.
9838 (vpmin_f16): New.
9839 (vrecpe_f16): New.
9840 (vrecpeq_f16): New.
9841 (vrnd_f16): New.
9842 (vrndq_f16): New.
9843 (vrnda_f16): New.
9844 (vrndaq_f16): New.
9845 (vrndm_f16): New.
9846 (vrndmq_f16): New.
9847 (vrndn_f16): New.
9848 (vrndnq_f16): New.
9849 (vrndp_f16): New.
9850 (vrndpq_f16): New.
9851 (vrndx_f16): New.
9852 (vrndxq_f16): New.
9853 (vrsqrte_f16): New.
9854 (vrsqrteq_f16): New.
9855 (vrecps_f16): New.
9856 (vrecpsq_f16): New.
9857 (vrsqrts_f16): New.
9858 (vrsqrtsq_f16): New.
9859 (vsub_f16): New.
9860 (vsubq_f16): New.
9861
9862 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9863
9864 * config.gcc (extra_headers): Add arm_fp16.h
9865 * config/arm/arm_fp16.h: New.
9866 * config/arm/arm_neon.h: Include "arm_fp16.h".
9867
9868 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9869
9870 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
9871 variants).
9872 (vmulf): New (v8hf, v4hf variants).
9873 (vfma): New (v8hf, v4hf variants).
9874 (vfms): New (v8hf, v4hf variants).
9875 (vsub): New (v8hf, v4hf variants).
9876 (vcage): New (v8hf, v4hf variants).
9877 (vcagt): New (v8hf, v4hf variants).
9878 (vcale): New (v8hf, v4hf variants).
9879 (vcalt): New (v8hf, v4hf variants).
9880 (vceq): New (v8hf, v4hf variants).
9881 (vcgt): New (v8hf, v4hf variants).
9882 (vcge): New (v8hf, v4hf variants).
9883 (vcle): New (v8hf, v4hf variants).
9884 (vclt): New (v8hf, v4hf variants).
9885 (vceqz): New (v8hf, v4hf variants).
9886 (vcgez): New (v8hf, v4hf variants).
9887 (vcgtz): New (v8hf, v4hf variants).
9888 (vcltz): New (v8hf, v4hf variants).
9889 (vclez): New (v8hf, v4hf variants).
9890 (vabd): New (v8hf, v4hf variants).
9891 (vmaxf): New (v8hf, v4hf variants).
9892 (vmaxnm): New (v8hf, v4hf variants).
9893 (vminf): New (v8hf, v4hf variants).
9894 (vminnm): New (v8hf, v4hf variants).
9895 (vpmaxf): New (v4hf variant).
9896 (vpminf): New (v4hf variant).
9897 (vpadd): New (v4hf variant).
9898 (vrecps): New (v8hf, v4hf variants).
9899 (vrsqrts): New (v8hf, v4hf variants).
9900 (vabs): New (v8hf, v4hf variants).
9901 (vneg): New (v8hf, v4hf variants).
9902 (vrecpe): New (v8hf, v4hf variants).
9903 (vrnd): New (v8hf, v4hf variants).
9904 (vrnda): New (v8hf, v4hf variants).
9905 (vrndm): New (v8hf, v4hf variants).
9906 (vrndn): New (v8hf, v4hf variants).
9907 (vrndp): New (v8hf, v4hf variants).
9908 (vrndx): New (v8hf, v4hf variants).
9909 (vrsqrte): New (v8hf, v4hf variants).
9910 (vmul_lane): Add v4hf and v8hf variants.
9911 (vmul_n): Add v4hf and v8hf variants.
9912 (vext): New (v8hf, v4hf variants).
9913 (vcvts): New (v8hi, v4hi variants).
9914 (vcvts): New (v8hf, v4hf variants).
9915 (vcvtu): New (v8hi, v4hi variants).
9916 (vcvtu): New (v8hf, v4hf variants).
9917 (vcvts_n): New (v8hf, v4hf variants).
9918 (vcvtu_n): New (v8hi, v4hi variants).
9919 (vcvts_n): New (v8hi, v4hi variants).
9920 (vcvtu_n): New (v8hf, v4hf variants).
9921 (vbsl): New (v8hf, v4hf variants).
9922 (vcvtas): New (v8hf, v4hf variants).
9923 (vcvtau): New (v8hf, v4hf variants).
9924 (vcvtms): New (v8hf, v4hf variants).
9925 (vcvtmu): New (v8hf, v4hf variants).
9926 (vcvtns): New (v8hf, v4hf variants).
9927 (vcvtnu): New (v8hf, v4hf variants).
9928 (vcvtps): New (v8hf, v4hf variants).
9929 (vcvtpu): New (v8hf, v4hf variants).
9930
9931 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9932
9933 * config/arm/arm-builtins.c (hf_UP): New.
9934 (si_UP): New.
9935 (vfp_builtin_data): New. Update comment.
9936 (enum arm_builtins): Include "arm_vfp_builtins.def".
9937 (ARM_BUILTIN_VFP_PATTERN_START): New.
9938 (arm_init_vfp_builtins): New.
9939 (arm_init_builtins): Add arm_init_vfp_builtins.
9940 (arm_expand_vfp_builtin): New.
9941 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
9942 long line.
9943 * config/arm/arm_vfp_builtins.def: New file.
9944 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
9945 (arm-builtins.o): Likewise.
9946
9947 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
9948
9949 PR ipa/77677
9950 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
9951 from constant while creating value range.
9952
9953 2016-09-23 Renlin Li <renlin.li@arm.com>
9954
9955 * ira.c (ira): Move ira_use_lra_p initialization code to ...
9956 (ira_init_once): Here.
9957
9958 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
9959 Jakub Jelinek <jakub@redhat.com>
9960
9961 * hooks.h (hook_uint_uintp_false): Rename to...
9962 (hook_bool_uint_uintp_false): ... this.
9963 * hooks.c (hook_uint_uintp_false): Rename to...
9964 (hook_bool_uint_uintp_false): ... this.
9965 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
9966 instead of hook_uint_uintp_false.
9967
9968 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9969
9970 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
9971 (arm_init_builtins): Move body of a loop to the standalone
9972 function arm_init_neon_builtin.
9973 (arm_expand_neon_builtin_1): New. Update comment. Function body
9974 moved from arm_neon_builtin with some white-space fixes.
9975 (arm_expand_neon_builtin): Move code into the standalone function
9976 arm_expand_neon_builtin_1.
9977
9978 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9979
9980 * config/arm/iterators.md (VCVTHI): New.
9981 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
9982 (NEON_VAGLTE): New.
9983 (VFM_LANE_AS): New.
9984 (VH_CVTTO): New.
9985 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
9986 (V_HALF): Add V4HF. Fix white-space.
9987 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
9988 (V_s_elem): Likewise.
9989 (V_sz_elem): Fix white-space.
9990 (V_elem_ch): Likewise.
9991 (VH_elem_ch): New.
9992 (scalar_mul_constraint): Add V8HF and V4HF.
9993 (Is_float_mode): Fix white-space.
9994 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
9995 (q): Add HF. Fix white-space.
9996 (float_sup): New.
9997 (float_SUP): New.
9998 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
9999 (neon_vfm_lane_as): New.
10000 * config/arm/neon.md (add<mode>3_fp16): New.
10001 (sub<mode>3_fp16): New.
10002 (mul<mode>3add<mode>_neon): New.
10003 (fma<VH:mode>4_intrinsic): New.
10004 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
10005 (fmsub<VH:mode>4_intrinsic): New.
10006 (<absneg_str><mode>2): New.
10007 (neon_v<absneg_str><mode>): New.
10008 (neon_v<fp16_rnd_str><mode>): New.
10009 (neon_vrsqrte<mode>): New.
10010 (neon_vpaddv4hf): New.
10011 (neon_vadd<mode>): New.
10012 (neon_vsub<mode>): New.
10013 (neon_vmulf<mode>): New.
10014 (neon_vfma<VH:mode>): New.
10015 (neon_vfms<VH:mode>): New.
10016 (neon_vc<cmp_op><mode>): New.
10017 (neon_vc<cmp_op><mode>_fp16insn): New
10018 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
10019 (neon_vca<cmp_op><mode>): New.
10020 (neon_vca<cmp_op><mode>_fp16insn): New.
10021 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
10022 (neon_vc<cmp_op>z<mode>): New.
10023 (neon_vabd<mode>): New.
10024 (neon_v<maxmin>f<mode>): New.
10025 (neon_vp<maxmin>fv4hf: New.
10026 (neon_<fmaxmin_op><mode>): New.
10027 (neon_vrecps<mode>): New.
10028 (neon_vrsqrts<mode>): New.
10029 (neon_vrecpe<mode>): New (VH variant).
10030 (neon_vdup_lane<mode>_internal): New.
10031 (neon_vdup_lane<mode>): New.
10032 (neon_vcvt<sup><mode>): New (VCVTHI variant).
10033 (neon_vcvt<sup><mode>): New (VH variant).
10034 (neon_vcvt<sup>_n<mode>): New (VH variant).
10035 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
10036 (neon_vcvt<vcvth_op><sup><mode>): New.
10037 (neon_vmul_lane<mode>): New.
10038 (neon_vmul_n<mode>): New.
10039 * config/arm/unspecs.md (UNSPEC_VCALE): New
10040 (UNSPEC_VCALT): New.
10041 (UNSPEC_VFMA_LANE): New.
10042 (UNSPECS_VFMS_LANE): New.
10043
10044 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10045
10046 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
10047 ("*extzv<mode><clobbercc_or_nocc>"):
10048 Correct a typo in a comment.
10049 Merged patterns.
10050 ("*insv<mode>_zEC12", "*insv<mode>_z10")
10051 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
10052 ("*insv<mode>_zEC12_appendbitsleft")
10053 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
10054 ("*insv<mode>_z10_appendbitsleft"): Ditto.
10055 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
10056 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
10057 Provide pattern with operands switched.
10058 ("*pre_z10_extv<mode>"):
10059 Use new subst patterns.
10060 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
10061 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
10062 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
10063 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
10064 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
10065 ("*<risbg_n>_sidi_ior_and_lshiftrt")
10066 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
10067 New patterns.
10068 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
10069 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
10070 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
10071 on zEC12.
10072 ("SINT"): New mode_iterator with SI, HI, QI.
10073 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
10074 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
10075 duplication.
10076
10077 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10078
10079 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
10080 new interface of s390_contiguous_bitmask_p.
10081 ("contiguous_bitmask_nowrap_operand"): New predicate.
10082 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
10083 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
10084 of s390_contiguous_bitmask_p.
10085 ("NxxDw"): Rename NxxDq constraint to NxxDw.
10086 ("NxxSw"): New constraint.
10087 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
10088 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
10089 interface.
10090 (s390_contiguous_bitmask_nowrap_p): Export.
10091 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
10092 former s390_contiguous_bitmask_p.
10093 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
10094 detect contiguous bit ranges with wraparound. Change signature to
10095 return START and END position instead of POS and LENGTH.
10096 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
10097 ranges with wraparound.
10098 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
10099 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
10100 Adapt to new signature of s390_contiguous_bitmask_p.
10101
10102 2016-09-23 Bin Cheng <bin.cheng@arm.com>
10103
10104 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
10105 (create_intersect_range_checks): New.
10106 (vect_create_cond_for_alias_checks): Call above function.
10107
10108 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10109
10110 * config/arm/iterators.md (Code iterators): Fix some white-space
10111 in the comments.
10112 (GLTE): New.
10113 (ABSNEG): New
10114 (FCVT): Moved from vfp.md.
10115 (VCVT_HF_US_N): New.
10116 (VCVT_SI_US_N): New.
10117 (VCVT_HF_US): New.
10118 (VCVTH_US): New.
10119 (FP16_RND): New.
10120 (absneg_str): New.
10121 (FCVTI32typename): Moved from vfp.md.
10122 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
10123 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
10124 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
10125 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
10126 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
10127 (vcvth_op): New.
10128 (fp16_rnd_str): New.
10129 (fp16_rnd_insn): New.
10130 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
10131 (UNSPEC_VCVT_HF_U_N): New.
10132 (UNSPEC_VCVT_SI_S_N): New.
10133 (UNSPEC_VCVT_SI_U_N): New.
10134 (UNSPEC_VCVTH_S): New.
10135 (UNSPEC_VCVTH_U): New.
10136 (UNSPEC_VCVTA_S): New.
10137 (UNSPEC_VCVTA_U): New.
10138 (UNSPEC_VCVTM_S): New.
10139 (UNSPEC_VCVTM_U): New.
10140 (UNSPEC_VCVTN_S): New.
10141 (UNSPEC_VCVTN_U): New.
10142 (UNSPEC_VCVTP_S): New.
10143 (UNSPEC_VCVTP_U): New.
10144 (UNSPEC_VCVTP_S): New.
10145 (UNSPEC_VCVTP_U): New.
10146 (UNSPEC_VRND): New.
10147 (UNSPEC_VRNDA): New.
10148 (UNSPEC_VRNDI): New.
10149 (UNSPEC_VRNDM): New.
10150 (UNSPEC_VRNDN): New.
10151 (UNSPEC_VRNDP): New.
10152 (UNSPEC_VRNDX): New.
10153 * config/arm/vfp.md (<absneg_str>hf2): New.
10154 (neon_vabshf): New.
10155 (neon_v<fp16_rnd_str>hf): New.
10156 (neon_vrndihf): New.
10157 (addhf3): New.
10158 (subhf3): New.
10159 (divhf3): New.
10160 (mulhf3): New.
10161 (*mulsf3neghf_vfp): New.
10162 (*negmulhf3_vfp): New.
10163 (*mulsf3addhf_vfp): New.
10164 (*mulhf3subhf_vfp): New.
10165 (*mulhf3neghfaddhf_vfp): New.
10166 (*mulhf3neghfsubhf_vfp): New.
10167 (fmahf4): New.
10168 (neon_vfmahf): New.
10169 (fmsubhf4_fp16): New.
10170 (neon_vfmshf): New.
10171 (*fnmsubhf4): New.
10172 (*fnmaddhf4): New.
10173 (neon_vsqrthf): New.
10174 (neon_vrsqrtshf): New.
10175 (FCVT): Move to iterators.md.
10176 (FCVTI32typename): Likewise.
10177 (neon_vcvth<sup>hf): New.
10178 (neon_vcvth<sup>si): New.
10179 (neon_vcvth<sup>_nhf_unspec): New.
10180 (neon_vcvth<sup>_nhf): New.
10181 (neon_vcvth<sup>_nsi_unspec): New.
10182 (neon_vcvth<sup>_nsi): New.
10183 (neon_vcvt<vcvth_op>h<sup>si): New.
10184 (neon_<fmaxmin_op>hf): New.
10185
10186 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10187
10188 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
10189 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
10190 ("*insv<mode>_zEC12_appendbitsleft")
10191 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
10192 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
10193
10194 2016-09-23 Jakub Jelinek <jakub@redhat.com>
10195
10196 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
10197 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
10198 construct values without normalization.
10199 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
10200 static local lhs_ops to vNULL.
10201
10202 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10203 Jiong Wang <jiong.wang@arm.com>
10204
10205 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
10206 available when FP16 instructions are available.
10207 (output_move_vfp): Add support for 16-bit data moves.
10208 (arm_validize_comparison): Fix some white-space. Support HFmode
10209 by conversion to SFmode.
10210 * config/arm/arm.md (truncdfhf2): Fix a comment.
10211 (extendhfdf2): Likewise.
10212 (cstorehf4): New.
10213 (movsicc): Fix some white-space.
10214 (movhfcc): New.
10215 (movsfcc): Fix some white-space.
10216 (*cmovhf): New.
10217 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
10218 instructions are available.
10219 (*thumb2_movhi_vfp): Likewise.
10220 (*arm_movhi_fp16): New.
10221 (*thumb2_movhi_fp16): New.
10222 (*movhf_vfp_fp16): New.
10223 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
10224 (*movhf_vfp): Likewise.
10225 (extendhfsf2): Enable when VFP FP16 instructions are available.
10226 (truncsfhf2): Enable when VFP FP16 instructions are available.
10227
10228 2016-09-23 Martin Liska <mliska@suse.cz>
10229
10230 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
10231
10232 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10233
10234 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
10235 V4HF modes.
10236 (arm_evpc_neon_vtrn): Likewise.
10237 (arm_evpc_neon_vrev): Likewise.
10238 (arm_evpc_neon_vext): Likewise.
10239 * config/arm/arm_neon.h (vbsl_f16): New.
10240 (vbslq_f16): New.
10241 (vdup_n_f16): New.
10242 (vdupq_n_f16): New.
10243 (vdup_lane_f16): New.
10244 (vdupq_lane_f16): New.
10245 (vext_f16): New.
10246 (vextq_f16): New.
10247 (vmov_n_f16): New.
10248 (vmovq_n_f16): New.
10249 (vrev64_f16): New.
10250 (vrev64q_f16): New.
10251 (vtrn_f16): New.
10252 (vtrnq_f16): New.
10253 (vuzp_f16): New.
10254 (vuzpq_f16): New.
10255 (vzip_f16): New.
10256 (vzipq_f16): New.
10257 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
10258 (vdup_lane): New (v8hf, v4hf variants).
10259 (vext): New (v8hf, v4hf variants).
10260 (vbsl): New (v8hf, v4hf variants).
10261 * config/arm/iterators.md (VDQWH): New.
10262 (VH): New.
10263 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
10264 (Scalar_mul_8_16): Fix white-space.
10265 (Is_d_reg): Add V4HF and V8HF.
10266 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
10267 (neon_vdup_lane<mode>): New.
10268 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
10269 (*neon_vtrn<mode>_insn): Likewise.
10270 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
10271 (*neon_vzip<mode>_insn): Likewise
10272 (neon_vuzp<mode>_internal): Likewise.
10273 (*neon_vuzp<mode>_insn): Likewise
10274 * config/arm/vec-common.md (vec_perm_const<mode>): New.
10275
10276 2016-09-23 Jiong Wang <jiong.wang@arm.com>
10277 Matthew Wahab <matthew.wahab@arm.com>
10278
10279 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
10280 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
10281 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
10282 available. Also fix some white-space.
10283 * config/arm/vfp.md (*arm_movhi_vfp): New.
10284 (*thumb2_movhi_vfp): New.
10285
10286 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10287
10288 * config/arm/arm-c.c (arm_cpu_builtins): Define
10289 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
10290 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
10291
10292 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10293
10294 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
10295 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
10296 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
10297 arm_v8_2a_fp16_neon_hw.
10298 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
10299 arm_v8_2a_neon.
10300
10301 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10302
10303 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
10304 arm_fp16_alternative_ok and arm_fp16_none_ok.
10305
10306 2016-09-23 Martin Liska <mliska@suse.cz>
10307
10308 * ipa-icf.c (sem_variable::merge): Replace adress with address.
10309
10310 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10311
10312 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
10313 ("armv8.2-a"): New.
10314 ("armv8.2-a+fp16"): New.
10315 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
10316 (FL2_FP16INST): New.
10317 (FL2_FOR_ARCH8_2A): New.
10318 * config/arm/arm-tables.opt: Regenerate.
10319 * config/arm/arm.c (arm_arch8_2): New.
10320 (arm_fp16_inst): New.
10321 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
10322 for incompatible fp16-format settings.
10323 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
10324 (TARGET_NEON_FP16INST): New.
10325 (arm_arch8_2): Declare.
10326 (arm_fp16_inst): Declare.
10327 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
10328 march=armv8.2-a and march=armv8.2-a+fp16.
10329 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
10330 and armv8.2-a+fp16.
10331 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
10332 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
10333
10334 2016-09-23 Martin Liska <mliska@suse.cz>
10335
10336 * doc/extend.texi: Remove fused-madd from i386 target options.
10337
10338 2016-09-23 Martin Liska <mliska@suse.cz>
10339
10340 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
10341 Handle movbe.
10342
10343 2016-09-23 Martin Liska <mliska@suse.cz>
10344
10345 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
10346 Handle crc32.
10347
10348 2016-09-23 Martin Liska <mliska@suse.cz>
10349
10350 PR target/71652
10351 * config/i386/i386.c (ix86_option_override_internal): Change
10352 signature and return false when there's an error related to
10353 arch string.
10354 (release_options_strings): New function.
10355 (ix86_valid_target_attribute_tree): Call the function.
10356
10357 2016-09-23 Jakub Jelinek <jakub@redhat.com>
10358
10359 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
10360 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
10361 (gen_hsa_ctor_assignment): Likewise.
10362 * print-tree.c (print_node): Likewise.
10363 * tree-dump.c (dequeue_and_dump): Likewise.
10364 * tree-sra.c (sra_modify_constructor_assign): Likewise.
10365 * expr.c (store_constructor): Likewise.
10366 * fold-const.c (operand_equal_p): Likewise.
10367 * tree-pretty-print.c (dump_generic_node): Likewise.
10368 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
10369 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
10370
10371 2016-09-23 Richard Biener <rguenther@suse.de>
10372
10373 * hooks.h (hook_uint_uintp_false): Declare.
10374
10375 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10376
10377 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
10378 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
10379
10380 2016-09-22 Martin Sebor <msebor@redhat.com>
10381
10382 PR target/77676
10383 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
10384 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
10385 (target_int_min): Correct computation.
10386 (format_integer): Use long long as the argument for the ll length
10387 modifier.
10388 (format_floating): Use target_int_max().
10389 (get_string_length): Same.
10390 (format_string): Avoid setting the bounded flag for strings
10391 of unknown length.
10392 (try_substitute_return_value): Avoid setting range info when
10393 the result isn't bounded.
10394 * varasm.c (assemble_name): Increase buffer size.
10395
10396 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
10397 Terry Guo <terry.guo@arm.com>
10398
10399 * target.def (elf_flags_numeric): New target hook.
10400 * targhooks.h (default_asm_elf_flags_numeric): New.
10401 * varasm.c (default_asm_elf_flags_numeric): New.
10402 (default_elf_asm_named_section): Use new target hook.
10403 * config/arm/arm.opt (mpure-code): New.
10404 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
10405 * config/arm/arm.c (arm_asm_init_sections): Add section
10406 attribute to default text section if -mpure-code.
10407 (arm_option_check_internal): Diagnose use of option with
10408 non supported targets and/or options.
10409 (arm_asm_elf_flags_numeric): New.
10410 (arm_function_section): New.
10411 (arm_elf_section_type_flags): New.
10412 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
10413 for -mpure-code.
10414 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
10415 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
10416
10417 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
10418
10419 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
10420
10421 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10422
10423 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
10424 * rtl.h: Adjust prototype.
10425
10426 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10427
10428 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
10429 (prev_active_insn): Likewise.
10430 (active_insn_p): Likewise.
10431 * rtl.h: Adjust prototypes.
10432 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
10433 * config/arc/arc.md: Likewise.
10434 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
10435 (branch_needs_nop_p): Likewise.
10436 (use_skip_p): Likewise.
10437 * config/sh/sh.c (gen_block_redirect): Likewise.
10438 (split_branches): Likewise.
10439 * reorg.c (optimize_skip): Likewise.
10440 (fill_simple_delay_slots): Likewise.
10441 (fill_slots_from_thread): Likewise.
10442 (relax_delay_slots): Likewise.
10443 * resource.c (mark_target_live_regs): Likewise.
10444
10445 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10446
10447 * config/cris/cris.c (cris_asm_output_case_end): Change argument
10448 type to rtx_insn *.
10449 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
10450 (prev_nonnote_nondebug_insn): Likewise.
10451 * config/cris/cris-protos.h: Adjust prototype.
10452 * rtl.h: Likewise.
10453 * jump.c (rtx_renumbered_equal_p): Adjust.
10454
10455 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10456
10457 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
10458 * rtl.h: Adjust prototype.
10459 * config/sh/sh.md: Adjust.
10460 * dwarf2out.c (add_var_loc_to_decl): Likewise.
10461
10462 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10463
10464 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
10465 (prev_nondebug_insn): Likewise.
10466 * loop-doloop.c (doloop_condition_get): Likewise.
10467 * rtl.h: Adjust prototype.
10468 * cfgloop.h: Likewise.
10469
10470 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10471
10472 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
10473 (prev_nonnote_insn): Likewise.
10474 * jump.c (reversed_comparison_code_parts): Likewise.
10475 (reversed_comparison): Likewise.
10476 * rtl.h: Adjust prototypes.
10477 * config/arc/arc.md: Adjust.
10478 * cse.c (find_comparison_args): Likewise.
10479 * reorg.c (redundant_insn): Change return type to rtx_insn *.
10480 (fix_reg_dead_note): Change argument type to rtx_insn *.
10481 (delete_prior_computation): Likewise.
10482 (delete_computation): Likewise.
10483 (fill_slots_from_thread): Adjust.
10484 (relax_delay_slots): Likewise.
10485 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10486 (simplify_relational_operation_1): Likewise.
10487 (simplify_ternary_operation): Likewise.
10488
10489 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10490
10491 * config/arc/arc-protos.h (arc_label_align): Change type of
10492 variables from rtx to rtx_insn *.
10493 * config/arc/arc.c (arc_label_align): Likewise.
10494 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
10495 * config/bfin/bfin.c (workaround_speculation): Likewise.
10496 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
10497 (find_last_same_clock): Likewise.
10498 (reorg_split_calls): Likewise.
10499 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
10500 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
10501 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
10502 (same_cmp_following_p): Likewise.
10503 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
10504 (same_cmp_following_p): Likwise.
10505 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
10506 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
10507 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
10508 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
10509 (rl78_alloc_physical_registers_cmp): Likewise.
10510 (rl78_alloc_physical_registers_umul): Likewise.
10511 (rl78_calculate_death_notes): Likewise.
10512 * config/s390/s390-protos.h (s390_label_align): Likewise.
10513 * config/s390/s390.c (s390_label_align): Likewise.
10514 * config/sh/sh.c (barrier_align): Likewise.
10515 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
10516 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
10517 (emit_cbcond_nop): Likewise.
10518
10519 2016-09-22 Martin Liska <mliska@suse.cz>
10520
10521 PR ipa/77653
10522 * ipa-icf.c (sem_variable::merge): Yield merge operation if
10523 alias address matters, not necessarily address of original.
10524
10525 2016-09-22 Richard Biener <rguenther@suse.de>
10526
10527 PR middle-end/77697
10528 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
10529 fold fails.
10530
10531 2016-09-22 Richard Biener <rguenther@suse.de>
10532
10533 PR middle-end/77677
10534 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
10535 from constant folding results.
10536 (gimple_resimplify2): Likewise.
10537 (gimple_resimplify3): Likewise.
10538
10539 2016-09-22 Richard Biener <rguenther@suse.de>
10540
10541 PR middle-end/77678
10542 * expr.c (expand_expr_real_1): Guard array access against negative
10543 offset.
10544
10545 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10546
10547 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
10548 of MPFR_RNDN.
10549 (format_floating): Likewise.
10550
10551 2016-09-22 Jakub Jelinek <jakub@redhat.com>
10552
10553 PR fortran/77665
10554 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
10555 for all IFN_GOMP_SIMD_* internal fns, not just for
10556 IFN_GOMP_SIMD_ORDERED_*.
10557
10558 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10559
10560 PR target/77670
10561 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
10562 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
10563 instructions when you want to invert the test.
10564 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
10565 correct order for XXSEL.
10566 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
10567 for using XSCMP{EQ,GT,GE}DP.
10568
10569 2016-09-21 David Malcolm <dmalcolm@redhat.com>
10570
10571 * genconstants.c (main): Introduce noop_reader and convert call
10572 to read_md_files to a method call.
10573 * genenums.c (main): Likewise.
10574 * genmddeps.c (main): Likewise.
10575 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
10576 rtx_reader_ptr->get_top_level_filename ().
10577 (write_tm_preds_h): Likewise.
10578 (write_insn_preds_c): Likewise.
10579 * gensupport.c (class gen_reader): New subclass of rtx_reader.
10580 (rtx_handle_directive): Convert to...
10581 (gen_reader::handle_unknown_directive): ...this.
10582 (init_rtx_reader_args_cb): Convert return type from bool to
10583 rtx_reader *. Create a gen_reader instance, using it for the
10584 call to read_md_files. Return it if no errors occur.
10585 (init_rtx_reader_args): Convert return type from bool to
10586 rtx_reader *.
10587 * gensupport.h (init_rtx_reader_args_cb): Likewise.
10588 (init_rtx_reader_args_cb): Likewise.
10589 * read-md.c (struct file_name_list): Move to class rtx_reader.
10590 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
10591 (read_md_filename): Delete in favor of
10592 rtx_reader::m_read_md_filename.
10593 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
10594 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
10595 (base_dir): Delete in favor of rtx_reader::m_base_dir.
10596 (first_dir_md_include): Delete in favor of
10597 rtx_reader::m_first_dir_md_include.
10598 (last_dir_md_include_ptr): Delete in favor of
10599 rtx_reader::m_last_dir_md_include_ptr.
10600 (max_include_len): Delete.
10601 (rtx_reader_ptr): New.
10602 (fatal_with_file_and_line): Use get_filename and get_lineno
10603 accessors of rtx_reader_ptr.
10604 (require_char_ws): Likewise.
10605 (rtx_reader::read_char): New method, based on ::read_char.
10606 (rtx_reader::unread_char): New method, based on ::unread_char.
10607 (read_escape): Use get_filename and get_lineno accessors of
10608 rtx_reader_ptr.
10609 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
10610 (read_string): Use get_filename and get_lineno accessors of
10611 rtx_reader_ptr.
10612 (rtx_reader::rtx_reader): New ctor.
10613 (rtx_reader::~rtx_reader): New dtor.
10614 (handle_include): Convert from a function to...
10615 (rtx_reader::handle_include): ...this method, converting
10616 handle_directive from a callback to a virtual function.
10617 (handle_file): Likewise, converting to...
10618 (rtx_reader::handle_file): ...this method.
10619 (handle_toplevel_file): Likewise, converting to...
10620 (rtx_reader::handle_toplevel_file): ...this method.
10621 (rtx_reader::get_current_location): New method.
10622 (parse_include): Convert from a function to...
10623 (rtx_reader::add_include_path): ...this method, dropping redundant
10624 update to unused max_include_len.
10625 (read_md_files): Convert from a function to...
10626 (rtx_reader::read_md_files): ...this method, converting
10627 handle_directive from a callback to a virtual function.
10628 (noop_reader::handle_unknown_directive): New method.
10629 * read-md.h (directive_handler_t): Delete this typedef.
10630 (in_fname): Delete.
10631 (read_md_file): Delete.
10632 (read_md_lineno): Delete.
10633 (read_md_filename): Delete.
10634 (class rtx_reader): New class.
10635 (rtx_reader_ptr): New decl.
10636 (class noop_reader): New subclass of rtx_reader.
10637 (read_char): Reimplement in terms of rtx_reader::read_char.
10638 (unread_char): Reimplement in terms of rtx_reader::unread_char.
10639 (read_md_files): Delete.
10640 * read-rtl.c (read_rtx_code): Update for deletion of globals
10641 read_md_filename and read_md_lineno.
10642
10643 2016-09-21 Jason Merrill <jason@redhat.com>
10644
10645 * input.h (from_macro_definition_at): New.
10646
10647 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
10648
10649 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
10650
10651 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10652
10653 PR tree-optimization/77550
10654 * tree-vect-stmts.c (create_array_ref): Change parameters.
10655 (get_group_alias_ptr_type): New function.
10656 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
10657
10658 2016-09-21 Marek Polacek <polacek@redhat.com>
10659
10660 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
10661 Add falls through comment.
10662
10663 2016-09-21 Richard Biener <rguenther@suse.de>
10664
10665 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
10666 (replace_child): Likewise.
10667 (remove_child_TAG): Adjust.
10668 (move_marked_base_types): Likewise.
10669 (prune_unused_types_prune): Clear die_sib of removed children.
10670
10671 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
10672
10673 PR target/77326
10674 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
10675 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
10676
10677 2016-09-21 Richard Biener <rguenther@suse.de>
10678
10679 PR tree-optimization/77648
10680 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
10681 with complex RHS.
10682 (make_transitive_closure_constraints): Adjust comment.
10683 (make_any_offset_constraints): New function.
10684 (handle_rhs_call): Make sure to first expand a pointer to all
10685 subfields before transitively closing it.
10686 (handle_const_call): Likewise. Properly expand returned
10687 pointers as well.
10688 (handle_pure_call): Likewise.
10689
10690 2016-09-21 Richard Biener <rguenther@suse.de>
10691 Jakub Jelinek <jakub@redhat.com>
10692
10693 PR tree-optimization/77621
10694 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
10695 group at non-vectorizable stmts.
10696
10697 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
10698
10699 PR tree-optimization/72835
10700 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
10701 (make_new_ssa_for_all_defs): Likewise.
10702 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
10703
10704 2016-09-20 Martin Sebor <msebor@redhat.com>
10705
10706 PR middle-end/49905
10707 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
10708 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
10709 * config/linux.c (gnu_libc_printf_pointer_format): New function.
10710 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
10711 * config/sol2.c (solaris_printf_pointer_format): New function.
10712 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
10713 options.
10714 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
10715 * doc/tm.texi: Regenerate.
10716 * gimple-fold.h (get_range_strlen): New function.
10717 (get_maxval_strlen): Declare existing function.
10718 * gimple-fold.c (get_range_strlen): Add arguments and compute both
10719 maximum and minimum.
10720 (get_range_strlen): Define overload.
10721 (get_maxval_strlen): Adjust.
10722 * gimple-ssa-sprintf.c: New file and pass.
10723 * passes.def (pass_sprintf_length): Add new pass.
10724 * targhooks.h (default_printf_pointer_format): Declare new function.
10725 (gnu_libc_printf_pointer_format): Same.
10726 (solaris_libc_printf_pointer_format): Same.
10727 * targhooks.c (default_printf_pointer_format): Define new function.
10728 * tree-pass.h (make_pass_sprintf_length): Declare new function.
10729 * print-tree.c: Increase buffer size.
10730
10731 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
10732
10733 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
10734
10735 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
10736
10737 * common.opt: New option -fipa-vrp.
10738 * ipa-cp.c (ipa_get_vr_lat): New.
10739 (ipcp_vr_lattice::print): Likewise.
10740 (print_all_lattices): Call ipcp_vr_lattice::print.
10741 (ipcp_vr_lattice::meet_with): New.
10742 (ipcp_vr_lattice::meet_with_1): Likewise.
10743 (ipcp_vr_lattice::top_p): Likewise.
10744 (ipcp_vr_lattice::bottom_p): Likewsie.
10745 (ipcp_vr_lattice::set_to_bottom): Likewise.
10746 (set_all_contains_variable): Call VR set_to_bottom.
10747 (initialize_node_lattices): Init VR lattices.
10748 (propagate_vr_accross_jump_function): New.
10749 (propagate_constants_accross_call): Call
10750 propagate_vr_accross_jump_function.
10751 (ipcp_store_vr_results): New.
10752 (ipcp_driver): Handle VR.
10753 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
10754 (ipa_set_jf_unknown): Likewise.
10755 (ipa_compute_jump_functions_for_edge): Likewise.
10756 (ipa_node_params_t::duplicate): Likewise.
10757 (ipa_write_jump_function): Likewise.
10758 (ipa_read_jump_function): Likewise.
10759 (write_ipcp_transformation_info): Likewise.
10760 (read_ipcp_transformation_info): Likewise.
10761 (ipcp_update_vr): New.
10762 (ipcp_transform_function): Handle VR.
10763 * ipa-prop.h (struct ipa_vr): New.
10764 * cgraph.c: Include tree-vrp.h.
10765 * cgraphunit.c: Likewise.
10766 * ipa-utils.c: Likewise.
10767 * ipa.c: Likewise.
10768 * opts.c: Likewise.
10769 * toplev.c: Likewise.
10770 * ipa-devirt.c: Likewise.
10771 * ipa-inline-transform.c: Likewise.
10772 * ipa-inline.c: Likewise.
10773 * ipa-profile.c: Likewise.
10774
10775 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
10776
10777 * doc/invoke.texi: Document -fdump-tree-evrp.
10778 * passes.def: Define new pass_early_vrp.
10779 * timevar.def: Define new TV_TREE_EARLY_VRP.
10780 * tree-pass.h (make_pass_early_vrp): New.
10781 * tree-ssa-propagate.c: Make replace_uses_in non static.
10782 * tree-ssa-propagate.h: Export replace_uses_in.
10783 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
10784 (extract_range_from_assert): Factor out
10785 extract_range_for_var_from_comparison_expr.
10786 (vrp_initialize_lattice): New.
10787 (vrp_initialize): Factor out vrp_initialize_lattice.
10788 (vrp_valueize): Fix it to reject complex value ranges.
10789 (vrp_free_lattice): New.
10790 (evrp_dom_walker::before_dom_children): Likewise.
10791 (evrp_dom_walker::after_dom_children): Likewise.
10792 (evrp_dom_walker::push_value_range): Likewise.
10793 (evrp_dom_walker::pop_value_range): Likewise.
10794 (execute_early_vrp): Likewise.
10795 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
10796 (make_pass_early_vrp): New.
10797
10798 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
10799
10800 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
10801 instead of exact_log2.
10802
10803 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
10804
10805 PR target/77621
10806 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
10807 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
10808 (ix86_add_stmt_cost): Penalize DFmode vector operations
10809 for !TARGET_VECTORIZE_DOUBLE.
10810
10811 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
10812
10813 * doc/invoke.texi (Warning Options): Simplify language.
10814 (Optimize Options): Complete sentence.
10815
10816 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
10817
10818 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
10819 early_finish hook.
10820
10821 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10822
10823 PR target/71395
10824 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
10825 inits on power8 and above, use the VMRGEW instruction instead of a
10826 permute.
10827
10828 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
10829 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
10830 initialization.
10831
10832 2016-09-20 Tamar Christina <tamar.christina@arm.com>
10833
10834 * config/aarch64/arm_neon.h
10835 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
10836 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
10837 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
10838
10839 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
10840
10841 * config/var/vax.h (ELIMINABLE_REGS): Define.
10842 (INITIAL_ELIMINATION_OFFSET): Define.
10843
10844 2016-09-20 Jakub Jelinek <jakub@redhat.com>
10845
10846 PR middle-end/77624
10847 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
10848 cast to void * if the cast is from some other pointer type.
10849
10850 2016-09-20 Richard Biener <rguenther@suse.de>
10851
10852 PR tree-optimization/77646
10853 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
10854 a VDEF.
10855
10856 2016-09-20 Tamar Christina <tamar.christina@arm.com>
10857
10858 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
10859 attributes to all inlined functions and make them extern.
10860
10861 2016-09-20 Richard Biener <rguenther@suse.de>
10862
10863 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
10864 hook.
10865 * debug.c (do_nothing_debug_hooks): Adjust.
10866 * dbxout.c (dbx_debug_hooks): Likewise.
10867 * sdbout.c (sdb_debug_hooks): Likewise.
10868 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
10869 (dwarf2out_finish): Move producer, filename and
10870 path annotation ...
10871 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
10872 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
10873
10874 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
10875
10876 PR c++/77434
10877 * doc/invoke.texi: Document -Wint-in-bool-context.
10878
10879 PR middle-end/77421
10880 * dwarf2out.c (output_loc_operands): Fix an assertion.
10881
10882 2016-09-19 Joseph Myers <joseph@codesourcery.com>
10883
10884 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
10885 (CR_DECIMAL_DIG): New macro.
10886
10887 2016-09-19 Joseph Myers <joseph@codesourcery.com>
10888
10889 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
10890 element.
10891
10892 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
10893
10894 PR rtl-optimization/77416
10895 * lra-remat.c (operand_to_remat): Process hard coded insn
10896 registers.
10897
10898 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10899
10900 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
10901 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
10902
10903 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
10904
10905 * target.def (lra_p): Wordsmithing.
10906 * doc/tm.texi: Regenerate.
10907
10908 2016-09-19 Jakub Jelinek <jakub@redhat.com>
10909 Jan Hubicka <jh@suse.cz>
10910
10911 PR target/77587
10912 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
10913 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
10914 Call ultimate_alias_target just once, not up to 4 times.
10915
10916 2016-09-19 Richard Biener <rguenther@suse.de>
10917
10918 * dwarf2out.c (early_dwarf_finished): New global.
10919 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
10920 is false.
10921 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
10922 if called from LTO exit early.
10923 (dwarf2out_late_global_decl): When being during the early
10924 debug phase do not add locations but only const value attributes.
10925 Adjust the way we generate early DIEs for LTO.
10926
10927 2016-09-19 Richard Biener <rguenther@suse.de>
10928
10929 PR middle-end/77605
10930 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
10931 proper niter to bound the loops.
10932
10933 2016-09-19 Richard Biener <rguenther@suse.de>
10934
10935 PR tree-optimization/77514
10936 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
10937 search for folded stmt.
10938
10939 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
10940
10941 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
10942 * tree-pass.h (make_pass_early_thread_jumps): Declare.
10943 * tree-ssa-threadbackward.c (fsm_find_thread_path,
10944 fsm_find_thread_path, profitable_jump_thread_path,
10945 fsm_find_control_statement_thread_paths,
10946 find_jump_threads_backwards): Add speed_p parameter.
10947 (pass_data_early_thread_jumps): New pass.
10948 (make_pass_early_thread_jumps): New function.
10949
10950 2016-09-17 Andreas Schwab <schwab@suse.de>
10951
10952 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
10953 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
10954
10955 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
10956
10957 * recog.c (rest_of_handle_split_after_reload): Delete.
10958 (pass_split_after_reload::gate): New method.
10959 (pass_split_after_reload::execute): Call split_all_insns directly.
10960
10961 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
10962
10963 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
10964 parameters for functions taking long long arguments.
10965
10966 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10967
10968 PR target/77613
10969 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
10970 splat with truncate.
10971
10972 2016-09-16 Jason Merrill <jason@redhat.com>
10973
10974 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
10975 New.
10976 * hwint.c (exact_log2): Use pow2p_hwi.
10977 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
10978 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
10979 * builtins.c (get_object_alignment_2, get_object_alignment)
10980 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
10981 least_bit_hwi.
10982 * calls.c (compute_argument_addresses, store_one_arg): Use
10983 least_bit_hwi.
10984 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
10985 * combine.c (force_to_mode): Use least_bit_hwi.
10986 (contains_muldiv, find_split_point, combine_simplify_rtx)
10987 (simplify_if_then_else, simplify_set, force_to_mode)
10988 (if_then_else_cond, simplify_and_const_int_1)
10989 (simplify_compare_const): Use pow2p_hwi.
10990 * cse.c (fold_rtx): Use pow2p_hwi.
10991 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
10992 Use least_bit_hwi.
10993 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
10994 (init_expmed_one_conv): Use pow2p_hwi.
10995 * expr.c (is_aligning_offset): Use pow2p_hwi.
10996 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
10997 (fold_binary_loc): Use pow2p_hwi.
10998 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
10999 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
11000 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
11001 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
11002 Use least_bit_hwi.
11003 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
11004 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
11005 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
11006 * omp-low.c (oacc_loop_fixed_partitions)
11007 (oacc_loop_auto_partitions): Use least_bit_hwi.
11008 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
11009 * stor-layout.c (place_field): Use least_bit_hwi.
11010 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
11011 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
11012 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
11013 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
11014 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
11015 * tree-vect-data-refs.c (vect_analyze_group_access_1)
11016 (vect_grouped_store_supported, vect_grouped_load_supported)
11017 (vect_permute_load_chain, vect_shift_permute_load_chain)
11018 (vect_transform_grouped_load): Use pow2p_hwi.
11019 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
11020 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
11021 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
11022 least_bit_hwi.
11023 * tsan.c (instrument_expr): Use least_bit_hwi.
11024 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
11025
11026 2016-09-16 Andreas Schwab <schwab@suse.de>
11027
11028 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
11029 OFFSET, not offset.
11030 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
11031
11032 2016-09-16 Jakub Jelinek <jakub@redhat.com>
11033
11034 PR target/77526
11035 * combine.c (rest_of_handle_combine): If any edges have been purged,
11036 free dominators if available.
11037
11038 2016-09-16 Jakub Jelinek <jakub@redhat.com>
11039 Eric Botcazou <ebotcazou@adacore.com>
11040
11041 PR middle-end/77594
11042 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
11043 through into expand_addsub_overflow after expand_neg_overflow.
11044
11045 2016-09-15 David Malcolm <dmalcolm@redhat.com>
11046
11047 * diagnostic-show-locus.c
11048 (selftest::test_fixit_insert_containing_newline): New function.
11049 (selftest::test_fixit_replace_containing_newline): New function.
11050 (selftest::diagnostic_show_locus_c_tests): Call the above.
11051
11052 2016-09-15 Bin Cheng <bin.cheng@arm.com>
11053
11054 PR tree-optimization/77503
11055 * tree-vect-loop.c (vectorizable_reduction): Record reduction
11056 code for CONST_COND_REDUCTION at analysis stage and use it at
11057 transform stage.
11058 * tree-vectorizer.h (struct _stmt_vec_info): New field.
11059 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
11060 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
11061 field.
11062
11063 2016-09-15 Richard Biener <rguenther@suse.de>
11064
11065 PR middle-end/77544
11066 * fold-const.c (split_tree): Do not split constant ~X.
11067
11068 2016-09-15 Jakub Jelinek <jakub@redhat.com>
11069
11070 PR rtl-optimization/77425
11071 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
11072 is NULL.
11073
11074 PR middle-end/77475
11075 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
11076 use %qs instead of %s where desirable, use argument instead of arg in
11077 the diagnostic wording, add list of supported strategies and
11078 spellcheck hint.
11079 (ix86_option_override_internal): Emit target("m...") instead of
11080 option("m...") in the diagnostic. Use %qs instead of %s in invalid
11081 -march/-mtune option diagnostic. Add list of supported arches/tunings
11082 and spellcheck hint. Remove prefix, suffix and sw variables, use
11083 main_args_p ? "..." : "..." in diagnostics to make translation
11084 possible.
11085
11086 2016-09-15 Richard Biener <rguenther@suse.de>
11087
11088 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
11089 extra offset argument.
11090 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
11091 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
11092 to reflect new offset parameter.
11093 * doc/tm.texi: Regenerate.
11094 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
11095 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
11096 offset argument.
11097 (darwin_asm_output_dwarf_offset): Likewise.
11098 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
11099 argument.
11100 (darwin_asm_output_dwarf_offset): Pass offset argument through.
11101 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
11102 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
11103
11104 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
11105
11106 PR fortran/72743
11107 * ipa-icf.c (set_alias_uids): New function.
11108 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
11109 all the merged variable's referring aliases.
11110
11111 2016-09-15 Richard Biener <rguenther@suse.de>
11112
11113 PR tree-optimization/77514
11114 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
11115 only forced_stmts sequence.
11116
11117 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
11118
11119 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
11120 * cfgexpand.c (update_alias_info_with_stack_vars): Use
11121 FOR_EACH_SSA_NAME to iterate over SSA variables.
11122 (pass_expand::execute): Likewise.
11123 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
11124 * tree-cfg.c (dump_function_to_file): Likewise.
11125 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
11126 (update_ssa): Likewise.
11127 * tree-ssa-alias.c (dump_alias_info): Likewise.
11128 * tree-ssa-ccp.c (ccp_finalize): Likewise.
11129 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
11130 (create_outofssa_var_map): Likewise.
11131 (coalesce_ssa_name): Likewise.
11132 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
11133 * tree-ssa-pre.c (compute_avail): Likewise.
11134 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
11135 (scc_vn_restore_ssa_info): Likewise.
11136 (free_scc_vn): Likwise.
11137 (run_scc_vn): Likewise.
11138 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
11139 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
11140 * tree-ssa-copy.c (fini_copy_prop): Likewise.
11141 * tree-ssa.c (verify_ssa): Likewise.
11142
11143 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
11144
11145 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
11146 and mips64r2 as default 32-bit and 64-bit architectures.
11147 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
11148 as default 32-bit and 64-bit architectures.
11149
11150 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
11151
11152 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
11153 of succ edge.
11154
11155 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
11156
11157 * target.def (lra_p): Change commentary (for the manual) for the
11158 new default.
11159 * doc/tm.texi: Regenerate.
11160
11161 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
11162
11163 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
11164 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
11165 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
11166 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
11167
11168 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
11169
11170 * targhooks.c (default_lra_p): Return true instead of false.
11171
11172 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
11173
11174 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
11175 hook_bool_void_false.
11176 * config/avr/avr.c: Ditto.
11177 * config/bfin/bfin.c: Ditto.
11178 * config/c6x/c6x.c: Ditto.
11179 * config/cr16/cr16.c: Ditto.
11180 * config/cris/cris.c: Ditto.
11181 * config/epiphany/epiphany.c: Ditto.
11182 * config/fr30/fr30.c: Ditto.
11183 * config/frv/frv.c: Ditto.
11184 * config/h8300/h8300.c: Ditto.
11185 * config/ia64/ia64.c: Ditto.
11186 * config/iq2000/iq2000.c: Ditto.
11187 * config/lm32/lm32.c: Ditto.
11188 * config/m32c/m32c.c: Ditto.
11189 * config/m32r/m32r.c: Ditto.
11190 * config/m68k/m68k.c: Ditto.
11191 * config/mcore/mcore.c: Ditto.
11192 * config/microblaze/microblaze.c: Ditto.
11193 * config/mmix/mmix.c: Ditto.
11194 * config/mn10300/mn10300.c: Ditto.
11195 * config/moxie/moxie.c: Ditto.
11196 * config/msp430/msp430.c: Ditto.
11197 * config/nios2/nios2.c: Ditto.
11198 * config/nvptx/nvptx.c: Ditto.
11199 * config/pa/pa.c: Ditto.
11200 * config/pdp11/pdp11.c: Ditto.
11201 * config/rl78/rl78.c: Ditto.
11202 * config/sparc/sparc.c: Ditto.
11203 * config/spu/spu.c: Ditto.
11204 * config/stormy16/stormy16.c: Ditto.
11205 * config/tilegx/tilegx.c: Ditto.
11206 * config/tilepro/tilepro.c: Ditto.
11207 * config/v850/v850.c: Ditto.
11208 * config/vax/vax.c: Ditto.
11209 * config/visium/visium.c: Ditto.
11210 * config/xtensa/xtensa.c: Ditto.
11211
11212 2016-09-14 Jakub Jelinek <jakub@redhat.com>
11213
11214 PR sanitizer/68260
11215 * tsan.c: Include target.h.
11216 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
11217 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
11218 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
11219 BUILT_IN_ATOMIC_TEST_AND_SET entries.
11220 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
11221
11222 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11223 Martin Liska <mliska@suse.cz>
11224
11225 PR middle-end/77574
11226 * predict.c (force_edge_cold): Add braces to a condition.
11227
11228 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
11229
11230 PR rtl-optimization/77289
11231 * lra-constraints.c (get_final_hard_regno): Removed.
11232 (get_hard_regno): Add new parameter final_p.
11233 (get_reg_class): Directly call lra_get_elimination_hard_regno.
11234 (operands_match_p): Adjust call to get_hard_regno.
11235 (uses_hard_regs_p): Likewise.
11236 (process_alt_operands): Likewise.
11237
11238 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
11239
11240 PR target/70713
11241 * config/msp430/msp430.c (msp430_start_function): Emit an error
11242 if a function is both weak and specifies an interrupt number.
11243
11244 2016-09-13 Jakub Jelinek <jakub@redhat.com>
11245
11246 PR tree-optimization/77454
11247 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
11248 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
11249 Formatting fix.
11250
11251 2016-09-13 Tamar Christina <tamar.christina@arm.com>
11252
11253 * config/aarch64/aarch64-builtins.c
11254 (aarch64_init_simd_builtins): Fix builtin type signature printing.
11255
11256 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
11257
11258 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
11259 SFmode and SCmode arguments by reference.
11260
11261 2016-09-13 David Malcolm <dmalcolm@redhat.com>
11262
11263 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
11264 Rename to...
11265 (selftest::test_one_liner_fixit_insert_before): ...this, and update
11266 for renaming of add_fixit_insert to add_fixit_insert_before.
11267 (selftest::test_one_liner_fixit_insert_after): New function.
11268 (selftest::test_one_liner_fixit_validation_adhoc_locations):
11269 Update for renaming of add_fixit_insert to add_fixit_insert_before.
11270 (selftest::test_one_liner_many_fixits): Likewise.
11271 (selftest::test_diagnostic_show_locus_one_liner): Update for
11272 renaming, call new test function.
11273 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
11274 renaming of add_fixit_insert to add_fixit_insert_before.
11275 (selftest::test_fixit_consolidation): Likewise.
11276 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
11277 Likewise.
11278 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
11279 (selftest::test_applying_fixits_insert_before): ...this.
11280 (selftest::test_applying_fixits_insert): Update for renaming of
11281 add_fixit_insert to add_fixit_insert_before.
11282 (selftest::test_applying_fixits_insert_after): New function.
11283 (selftest::test_applying_fixits_insert_after_at_line_end): New
11284 function.
11285 (selftest::test_applying_fixits_insert_after_failure): New function.
11286 (selftest::test_applying_fixits_multiple): Update for renaming of
11287 add_fixit_insert to add_fixit_insert_before.
11288 (selftest::change_line): Likewise.
11289 (selftest::test_applying_fixits_unreadable_file): Likewise.
11290 (selftest::test_applying_fixits_line_out_of_range): Likewise.
11291 (selftest::test_applying_fixits_column_validation): Likewise.
11292 (selftest::test_applying_fixits_column_validation): Likewise.
11293 (selftest::edit_context_c_tests): Update for renamed test function;
11294 call new test functions.
11295
11296 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
11297
11298 PR tree-optimization/77536
11299 PR rtl-optimization/68212
11300 * config/rs6000/rs6000.md (div->recip splitter): Remove
11301 optimize_insn_for_speed_p condition.
11302
11303 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
11304
11305 * optabs.c (prepare_cmp_insn): Update documentation comment.
11306
11307 2016-09-13 Jakub Jelinek <jakub@redhat.com>
11308 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11309
11310 PR middle-end/77475
11311 * opts.h (candidates_list_and_hint): Declare.
11312 * opts-common.c (candidates_list_and_hint): New function.
11313 (cmdline_handle_error): Use it.
11314
11315 2016-09-12 David Malcolm <dmalcolm@redhat.com>
11316
11317 * edit-context.c (edited_line::get_len): New accessor.
11318 (edited_file::print_diff): Split out hunk-printing into...
11319 (edited_file::print_diff_hunk): New method.
11320 (edited_file::print_diff_line): New method.
11321
11322 2016-09-12 Andrew Pinski <apinski@cavium.com>
11323
11324 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
11325 New tuning option.
11326 * config/aarch64/aarch64.c (thunderx_tunings): Enable
11327 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
11328 (aarch64_operands_ok_for_ldpstp): Return false if
11329 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
11330 was SImode and the alignment is less than 8 byte.
11331 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
11332
11333 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
11334
11335 PR target/77570
11336 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
11337
11338 2016-09-12 Marek Polacek <polacek@redhat.com>
11339
11340 * doc/extend.texi: Use lowercase "boolean".
11341 * doc/invoke.texi: Likewise.
11342 * doc/md.texi: Likewise.
11343 * target.def: Likewise.
11344 * doc/tm.texi: Regenerated.
11345
11346 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11347
11348 PR middle-end/77426
11349 * expmed.c (synth_mult): Delete duplicate mode check.
11350
11351 2016-09-10 Tom de Vries <tom@codesourcery.com>
11352
11353 PR C/71602
11354 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
11355 va_list type only.
11356 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
11357 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
11358
11359 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
11360
11361 PR rtl-optimization/77289
11362 * lra-constraints.c (get_final_hard_regno): Add support for non hard
11363 register numbers. Remove support for subregs.
11364 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
11365 (get_reg_class): Delete removed get_final_hard_regno() argument.
11366 (uses_hard_regs_p): Call get_final_hard_regno().
11367
11368 2016-09-09 Martin Sebor <msebor@redhat.com>
11369
11370 PR c/77520
11371 PR c/77521
11372 * pretty-print.c (pp_quoted_string): New function.
11373 (pp_format): Call it for %c and %s directives.
11374
11375 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
11376
11377 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
11378 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
11379 INITIAL_ELIMINATION_OFFSET) : Update documentation.
11380 * target.def (frame_pointer_required, can_eliminate): Likewise.
11381 * doc/tm.texi: Regenerated.
11382 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
11383 ELIMINABLE_REGS.
11384 * df-scan.c (df_hard_reg_init): Likewise.
11385 * ira.c (ira_setup_eliminable_regset): Likewise.
11386 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
11387 init_elim_table): Likewise.
11388 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
11389 set_initial_elim_offsets, update_eliminables,
11390 init_elim_table): Likewise.
11391 * rtlanal.c (get_initial_register_offset): Likewise.
11392 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
11393 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
11394 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
11395 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
11396 * config/fr30/fr30.h: Fix comment.
11397 * config/frv/frv.c: Likewise.
11398 * config/frv/frv.h: Likewise.
11399 * config/ft32/ft32.h: Likewise.
11400 * config/visium/visium.h: Likewise.
11401 * config/pa/pa64-linux.h: Likewise.
11402 * config/v850/v850.h: Likewise.
11403 * config/cris/cris.c: Likewise.
11404 * config/ia64/ia64.h: Likewise.
11405 * config/moxie/moxie.h: Likewise.
11406 * config/m32r/m32r.h: Likewise.
11407
11408 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
11409
11410 PR target/77267
11411 * config.in: Regenerate.
11412 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
11413 New macro.
11414 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
11415 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
11416 static-libmpxwrappers case.
11417 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
11418 MPX_LD_AS_NEEDED_GUARD_POP.
11419 * configure: Regenerate.
11420 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
11421 defined if linker support "--push-state"/"--pop-state".
11422
11423 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11424
11425 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
11426
11427 2016-09-09 Joseph Myers <joseph@codesourcery.com>
11428
11429 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
11430 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
11431 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
11432 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
11433 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
11434 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
11435 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
11436 Document.
11437 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
11438 width macros from TS 18661-1.
11439 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
11440
11441 2016-09-08 Jakub Jelinek <jakub@redhat.com>
11442
11443 PR fortran/77516
11444 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
11445 OMP_CLAUSE_SAFELEN_EXPR.
11446
11447 2016-09-07 David Malcolm <dmalcolm@redhat.com>
11448
11449 * Makefile.in (OBJS): Add substring-locations.o.
11450 * langhooks-def.h (class substring_loc): New forward decl.
11451 (lhd_get_substring_location): New decl.
11452 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
11453 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
11454 * langhooks.c (lhd_get_substring_location): New function.
11455 * langhooks.h (class substring_loc): New forward decl.
11456 (struct lang_hooks): Add field get_substring_location.
11457 * substring-locations.c: New file, taking definition of
11458 format_warning_va and format_warning_at_substring from
11459 c-family/c-format.c, making them non-static.
11460 * substring-locations.h (class substring_loc): Move class here
11461 from c-family/c-common.h. Add and rewrite comments.
11462 (format_warning_va): New decl.
11463 (format_warning_at_substring): New decl.
11464 (get_source_location_for_substring): Add comment.
11465
11466 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
11467
11468 * config/i386/i386.c: Add 'U' suffix to processor feature bits
11469 to avoid -Wnarrowing warning.
11470 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
11471 * opts.c: Likewise for SANITIZER_OPT bitmasks.
11472
11473 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
11474
11475 * config/aarch64/aarch64.c (aarch64_legitimize_address):
11476 Avoid use of base_offset if offset already in range.
11477
11478 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
11479
11480 * config/sh/sh-protos.h (struct sh_atomic_model,
11481 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
11482 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
11483 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
11484 * config/sh/sh.h (struct sh_atomic_model,
11485 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
11486 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
11487 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
11488 Guard with __cplusplus.
11489
11490 2016-09-06 Jakub Jelinek <jakub@redhat.com>
11491
11492 PR target/69255
11493 * config/i386/i386.c (ix86_expand_builtin): For builtin with
11494 unsupported or unknown ISA, use expand_call.
11495
11496 2016-09-06 Martin Liska <mliska@suse.cz>
11497
11498 PR gcov-profile/77378
11499 PR gcov-profile/77466
11500 * tree-profile.c (tree_profiling): Detect whether target can use
11501 -fprofile-update=atomic.
11502
11503 2016-09-06 Richard Biener <rguenther@suse.de>
11504
11505 PR tree-optimization/77479
11506 * tree-vrp.c (update_value_range): Extend overflow handling to
11507 VARYING.
11508
11509 2016-09-05 Jakub Jelinek <jakub@redhat.com>
11510
11511 PR target/77476
11512 * config/i386/i386.md (isa): Add x64_avx512bw.
11513 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
11514 (kmov_isa): New mode attr.
11515 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
11516 (*zero_extend<mode>si2): Likewise.
11517 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
11518
11519 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
11520
11521 * doc/invoke.texi (SPU Options): nops -> NOPs.
11522 (x86 Options): Ditto.
11523
11524 2016-09-05 Jakub Jelinek <jakub@redhat.com>
11525
11526 PR middle-end/77475
11527 * toplev.c (process_options): Temporarily set input_location
11528 to UNKNOWN_LOCATION around targetm.target_option.override () call.
11529
11530 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
11531
11532 PR rtl-optimization/77452
11533 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
11534 inner-mode reference to a CONST_VECTOR constant in the constant pool.
11535
11536 2016-09-05 Marek Polacek <polacek@redhat.com>
11537
11538 PR c/77423
11539 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
11540
11541 2016-09-05 Jakub Jelinek <jakub@redhat.com>
11542
11543 PR other/77421
11544 * gensupport.c (alter_output_for_subst_insn): Remove redundant
11545 *insn_out == '*' test. Don't copy unnecessary to yet another
11546 memory buffer, and don't leak it.
11547
11548 PR rtl-optimization/77425
11549 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
11550
11551 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
11552
11553 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
11554
11555 2016-09-02 David Malcolm <dmalcolm@redhat.com>
11556
11557 * common.opt (fdiagnostics-generate-patch): New option.
11558 * diagnostic.c: Include "edit-context.h".
11559 (diagnostic_initialize): Initialize context->edit_context_ptr.
11560 (diagnostic_finish): Delete context->edit_context_ptr.
11561 (diagnostic_report_diagnostic): Add fix-it hints from the
11562 diagnostic to context->edit_context_ptr, if any.
11563 * diagnostic.h (class edit_context): Add forward decl.
11564 (struct diagnostic_context): Add field "edit_context_ptr".
11565 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
11566 -fdiagnostics-generate-patch.
11567 (-fdiagnostics-generate-patch): New item.
11568 * toplev.c: Include "edit-context.h".
11569 (process_options): Set global_dc->edit_context_ptr to a new
11570 edit_context if the options need one.
11571 (toplev::main): Handle -fdiagnostics-generate-patch by using
11572 global_dc->edit_context_ptr.
11573
11574 2016-09-02 Jakub Jelinek <jakub@redhat.com>
11575
11576 PR c/65467
11577 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
11578 map and firstprivate clauses on target construct for _Atomic
11579 qualified decls.
11580 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
11581 on target construct for _Atomic qualified decls.
11582 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
11583 decls.
11584 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
11585 _Atomic qualified arguments not mentioned in uniform clause.
11586
11587 2016-09-02 David Malcolm <dmalcolm@redhat.com>
11588
11589 * Makefile.in (OBJS-libcommon): Add edit-context.o.
11590 * diagnostic-color.c (color_dict): Add "diff-filename",
11591 "diff-hunk", "diff-delete", and "diff-insert".
11592 (parse_gcc_colors): Update default value of GCC_COLORS in comment
11593 to reflect above changes.
11594 * doc/invoke.texi (-fdiagnostics-color): Update description of
11595 default GCC_COLORS, and of the supported capabilities.
11596 * edit-context.c: New file.
11597 * edit-context.h: New file.
11598 * input.c (struct fcache): Add field "missing_trailing_newline".
11599 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
11600 true.
11601 (add_file_to_cache_tab): Likewise.
11602 (fcache::fcache): Likewise.
11603 (get_next_line): Update c->missing_trailing_newline.
11604 (location_missing_trailing_newline): New function.
11605 * input.h (location_missing_trailing_newline): New decl.
11606 * selftest-run-tests.c (selftest::run_tests): Call
11607 edit_context_c_tests.
11608 * selftest.h (edit_context_c_tests): New decl.
11609
11610 2016-09-02 Jakub Jelinek <jakub@redhat.com>
11611 Richard Biener <rguenth@suse.de>
11612
11613 PR tree-optimization/77444
11614 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
11615 as steptype, remove redundant initialization.
11616
11617 2016-09-02 Jakub Jelinek <jakub@redhat.com>
11618
11619 PR sanitizer/77396
11620 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
11621 (sanopt_optimize_walker): Optimize away
11622 __asan_before_dynamic_init (...) followed by
11623 __asan_after_dynamic_init () without intervening memory loads/stores.
11624 * ipa-pure-const.c (special_builtin_state): Handle
11625 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
11626 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
11627
11628 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11629
11630 * cfg.c (free_original_copy_tables): Replace second assignment of
11631 bb_copy = NULL by bb_original = NULL.
11632
11633 2016-09-02 Jakub Jelinek <jakub@redhat.com>
11634
11635 PR other/77421
11636 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
11637 assignment added in r216794.
11638
11639 2016-09-02 David Malcolm <dmalcolm@redhat.com>
11640
11641 * Makefile.in (OBJS): Add typed-splay-tree.o.
11642 * selftest-run-tests.c (selftest::run_tests): Call
11643 typed_splay_tree_c_tests.
11644 * selftest.h (typed_splay_tree_c_tests): New decl.
11645 * typed-splay-tree.c: New file.
11646 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
11647 (typed_splay_tree::max): New method.
11648 (typed_splay_tree::min): New method.
11649 (typed_splay_tree::foreach): New method.
11650 (typed_splay_tree::closure): New struct.
11651 (typed_splay_tree::inner_foreach_fn): New function.
11652
11653 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11654
11655 * ipa-cp.c (ipcp_store_bits_results): Change option name from
11656 -fipa-cp-bit to -fipa-bit-cp.
11657
11658 2016-09-01 Martin Sebor <msebor@redhat.com>
11659
11660 PR tree-optimization/71831
11661 * tree-object-size.h: Return bool instead of the size and add
11662 argument for the size.
11663 * tree-object-size.c (compute_object_offset): Update signature.
11664 (addr_object_size): Same.
11665 (compute_builtin_object_size): Return bool instead of the size
11666 and add argument for the size. Handle POINTER_PLUS_EXPR when
11667 optimization is disabled.
11668 (expr_object_size): Adjust.
11669 (plus_stmt_object_size): Adjust.
11670 (pass_object_sizes::execute): Adjust.
11671 * builtins.c (fold_builtin_object_size): Adjust.
11672 * doc/extend.texi (Object Size Checking): Update.
11673 * ubsan.c (instrument_object_size): Adjust.
11674
11675 2016-09-01 Martin Sebor <msebor@redhat.com>
11676
11677 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
11678 it fits the output of the formatted function regardless of its
11679 arguments.
11680 * genmodes.c (parser::parse_expr): Same.
11681 * gimplify.c (gimplify_asm_expr): Same.
11682 * passes.c (pass_manager::register_one_dump_file): Same.
11683 * print-tree.c (print_node): Same.
11684
11685 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
11686
11687 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
11688
11689 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
11690
11691 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
11692
11693 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
11694
11695 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
11696 * config/rs6000/vector.md: Ditto.
11697 * config/rs6000/vsx.md: Ditto.
11698
11699 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
11700
11701 * ipa-inline-analysis.c (param_change_prob): Get to the base object
11702 first in all cases.
11703
11704 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
11705
11706 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
11707 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
11708 *return_and_restore_gpregs_<mode>_r11,
11709 *return_and_restore_gpregs_<mode>_r12,
11710 *return_and_restore_gpregs_<mode>_r1,
11711 *return_and_restore_fpregs_<mode>_r11,
11712 *return_and_restore_fpregs_<mode>_r12,
11713 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
11714 directly instead of via the "l" constraint. Renumber operands.
11715 Fix whitespace.
11716
11717 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
11718
11719 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
11720 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
11721 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
11722 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
11723 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
11724 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
11725 *call_value_nonlocal_darwin64, reload_macho_picbase,
11726 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
11727 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
11728 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
11729 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
11730 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
11731 *save_fpregs_<mode>_r1): Ditto.
11732 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
11733 *return_and_restore_gpregs_spe): Ditto.
11734
11735 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
11736
11737 * config/rs6000/rs6000.md
11738 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
11739 the use of the link register.
11740 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
11741
11742 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11743 Michael Meissner <meissner@linux.vnet.ibm.com>
11744
11745 PR target/72827
11746 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
11747 reg+reg addressing for TImode.
11748 (rs6000_legitimate_address_p): Only allow register indirect
11749 addressing for TImode, even without TARGET_QUAD_MEMORY.
11750
11751 2016-09-01 Richard Biener <rguenther@suse.de>
11752
11753 PR middle-end/77436
11754 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
11755 check whether the result fits the desired result type.
11756
11757 2016-09-01 Nathan Sidwell <nathan@acm.org>
11758
11759 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
11760
11761 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
11762
11763 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
11764 New function.
11765 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
11766
11767 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11768
11769 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
11770 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
11771 for comparisons of integer ZERO_EXTEND against zero.
11772
11773 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
11774
11775 * config/i386/i386.c (ix86_option_override_internal): Also disable the
11776 STV pass if -mstackrealign is enabled.
11777
11778 2016-08-31 Ilya Verbin <iverbin@gmail.com>
11779
11780 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
11781 AVX512IFMA.
11782
11783 2016-08-31 David Malcolm <dmalcolm@redhat.com>
11784
11785 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
11786 (layout_range::intersects_line_p): New method.
11787 (test_range_contains_point_for_single_point): Rename to...
11788 (test_layout_range_for_single_point): ...this, and add testing
11789 for layout_range::intersects_line_p.
11790 (test_range_contains_point_for_single_line): Rename to...
11791 (test_layout_range_for_single_line): ...this, and add testing
11792 for layout_range::intersects_line_p.
11793 (test_range_contains_point_for_multiple_lines): Rename to...
11794 (test_layout_range_for_multiple_lines): ...this, and add testing
11795 for layout_range::intersects_line_p.
11796 (layout::layout): Populate m_fixit_hints.
11797 (layout::get_expanded_location): Handle the case of a line-span
11798 for a fix-it hint.
11799 (layout::validate_fixit_hint_p): New method.
11800 (get_line_span_for_fixit_hint): New function.
11801 (layout::calculate_line_spans): Add spans for fixit-hints.
11802 (layout::should_print_annotation_line_p): New method.
11803 (layout::print_any_fixits): Drop param "richloc", instead using
11804 validated fixits in m_fixit_hints. Add "const" to hint pointers.
11805 (diagnostic_show_locus): Avoid printing blank annotation lines.
11806 (selftest::test_diagnostic_context::test_diagnostic_context):
11807 Initialize show_column and start_span.
11808 (selftest::test_diagnostic_context::start_span_cb): New static
11809 function.
11810 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
11811 (selftest::diagnostic_show_locus_c_tests): Update for function
11812 renamings. Call test_diagnostic_show_locus_fixit_lines.
11813
11814 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
11815
11816 PR tree-optimization/73714
11817 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
11818
11819 2016-08-31 David Malcolm <dmalcolm@redhat.com>
11820
11821 * selftest.c: Move "namespace selftest {" to top of file,
11822 removing explicit "selftest::" qualifiers throughout.
11823
11824 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
11825
11826 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
11827 New types.
11828 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
11829 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
11830 Replace builtin with vector extension.
11831 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
11832 New types.
11833 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
11834 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
11835 Replace builtin with vector extension.
11836 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
11837 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
11838 Replace builtin with vector extension.
11839 * config/i386/xmmintrin.h (__m128_u): New type.
11840 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
11841 (_mm_load_ps, _mm_store_ps): Simplify.
11842
11843 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
11844
11845 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
11846
11847 2016-08-30 David Malcolm <dmalcolm@redhat.com>
11848
11849 * diagnostic-show-locus.c (colorizer::begin_state): Support more
11850 than 3 ranges per diagnostic by alternating between color 1 and
11851 color 2.
11852 (layout::layout): Replace use of rich_location::MAX_RANGES
11853 with richloc->get_num_locations ().
11854 (layout::calculate_line_spans): Replace use of
11855 rich_location::MAX_RANGES with m_layout_ranges.length ().
11856 (layout::print_annotation_line): Handle arbitrary numbers of
11857 ranges in caret-printing by defaulting to '^'.
11858 (selftest::test_one_liner_many_fixits): New function.
11859 (test_diagnostic_show_locus_one_liner): Call it.
11860 * diagnostic.c (diagnostic_initialize): Update for renaming
11861 of rich_location::MAX_RANGES to
11862 rich_location::STATICALLY_ALLOCATED_RANGES.
11863 * diagnostic.h (struct diagnostic_context): Likewise.
11864
11865 2016-08-30 David Malcolm <dmalcolm@redhat.com>
11866
11867 * selftest.c (selftest::named_temp_file::named_temp_file): New
11868 ctor.
11869 (selftest::temp_source_file::~temp_source_file): Move to...
11870 (selftest::named_temp_file::~named_temp_file): ...here.
11871 (selftest::test_named_temp_file): New function.
11872 (selftest::selftest_c_tests): Call test_named_temp_file.
11873 * selftest.h (class named_temp_file): New class.
11874 (class temp_source_file): Convert to a subclass of named_temp_file.
11875
11876 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
11877
11878 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
11879 USEs of LR_REGNO in returns and sibcalls.
11880 (rs6000_output_mi_thunk): Similar.
11881 (rs6000_sibcall_aix): Similar.
11882 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
11883 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
11884 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
11885 Remove the USE of LR_REGNO from the patterns as well. Delete an
11886 obsolete comment.
11887 (return_internal_<mode>): Delete.
11888
11889 2016-08-30 Tamar Christina <tamar.christina@arm.com>
11890
11891 * config/aarch64/aarch64-simd.md
11892 (aarch64_ld2<mode>_dreg_le): New.
11893 (aarch64_ld2<mode>_dreg_be): New.
11894 (aarch64_ld2<mode>_dreg): Removed.
11895 (aarch64_ld3<mode>_dreg_le): New.
11896 (aarch64_ld3<mode>_dreg_be): New.
11897 (aarch64_ld3<mode>_dreg): Removed.
11898 (aarch64_ld4<mode>_dreg_le): New.
11899 (aarch64_ld4<mode>_dreg_be): New.
11900 (aarch64_ld4<mode>_dreg): Removed.
11901 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
11902
11903 2016-08-30 David Malcolm <dmalcolm@redhat.com>
11904
11905 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
11906 redundant location param.
11907 (test_one_liner_fixit_remove): Likewise.
11908 (test_one_liner_fixit_replace): Likewise.
11909 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
11910 * gcc-rich-location.c
11911 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
11912 get_range_from_loc. Drop overload taking a const char *.
11913 * gcc-rich-location.h
11914 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
11915 a const char *.
11916
11917 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
11918
11919 * config/linux.c (linux_libc_has_function): Return true on musl.
11920
11921 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
11922
11923 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
11924
11925 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
11926
11927 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
11928 used for abnormal egdes.
11929
11930 2016-08-30 Jakub Jelinek <jakub@redhat.com>
11931
11932 PR tree-optimization/72866
11933 * tree-vect-patterns.c (search_type_for_mask): Turn into
11934 a small wrapper, move all code to ...
11935 (search_type_for_mask_1): ... this new function. Add caching
11936 and adjust recursive calls.
11937
11938 PR debug/77363
11939 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
11940 instead of lookup_type_die (type_main_variant (type)) even for array
11941 types.
11942
11943 PR middle-end/77377
11944 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
11945 constant pool reference return x instead of c.
11946
11947 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
11948
11949 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
11950 include MQ.
11951
11952 2016-08-29 David Malcolm <dmalcolm@redhat.com>
11953
11954 * input.c
11955 (selftest::test_make_location_nonpure_range_endpoints): Fix
11956 header comment.
11957
11958 2016-08-29 David Malcolm <dmalcolm@redhat.com>
11959
11960 * diagnostic-show-locus.c
11961 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
11962 function.
11963 (selftest::test_diagnostic_show_locus_one_liner): Call it.
11964 * input.c (get_pure_location): Move to libcpp/line-map.c.
11965 * input.h (get_pure_location): Convert decl to an inline function
11966 calling implementation in libcpp.
11967
11968 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
11969
11970 PR target/77403
11971 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
11972 template for intel asm dialect.
11973 (vec_set_hi_<mode><mask_name>): Ditto.
11974
11975 2016-08-29 David Malcolm <dmalcolm@redhat.com>
11976
11977 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
11978 (selftest::fail_formatted): Likewise.
11979
11980 2016-08-29 David Malcolm <dmalcolm@redhat.com>
11981
11982 * input.c (make_location): Call get_start and get_finish
11983 on the endpoints to avoid storing packed ranges or ad-hoc
11984 ranges in them.
11985 (selftest::test_make_location_nonpure_range_endpoints): New function.
11986 (selftest::input_c_tests): Call it.
11987 * input.h (get_start): New inline function.
11988
11989 2016-08-29 Tom de Vries <tom@codesourcery.com>
11990
11991 PR c/77398
11992 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
11993 with assert.
11994
11995 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
11996
11997 * Makefile.in (gcov-iov.h): Add dummy recipe.
11998
11999 2016-08-29 Nathan Sidwell <nathan@acm.org>
12000
12001 * config/nvptx/nvptx.c: #include tree-vrp.h.
12002
12003 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
12004
12005 PR target/77324
12006 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
12007 HIGH+LO construct during reload.
12008
12009 2016-08-28 Tom de Vries <tom@codesourcery.com>
12010
12011 PR lto/70955
12012 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
12013 'sysv_abi va_list' attribute.
12014 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
12015 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
12016 attributes.
12017
12018 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12019
12020 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
12021 * emit-rtl.c (unshare_all_rtl_1): Adjust.
12022 (unshare_all_rtl_again): Likewise.
12023 * function.c (assign_stack_local_1): Likewise.
12024 (assign_stack_temp_for_type): Likewise.
12025
12026 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12027
12028 * cfgbuild.c (make_edges): Adjust.
12029 * cfgrtl.c (can_delete_label_p): Likewise.
12030 * dwarf2cfi.c (create_trace_edges): Likewise.
12031 * except.c (sjlj_emit_dispatch_table): Likewise.
12032 * function.h (struct expr_status): make x_forced_labels a vector.
12033 * jump.c (rebuild_jump_labels_1): Adjust.
12034 * reload1.c (set_initial_label_offsets): Likewise.
12035 * stmt.c (force_label_rtx): Likewise.
12036 (expand_label): Likewise.
12037
12038 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12039
12040 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
12041
12042 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
12043
12044 PR tree-optimization/71077
12045 PR tree-optimization/68542
12046 * fold-const.c (fold_relational_const): Fix folding of
12047 VECTOR_CST comparisons that have a scalar boolean result type.
12048 (selftest::test_vector_folding): New static function.
12049 (selftest::fold_const_c_tests): Call it.
12050
12051 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
12052
12053 * doc/extend.texi (SPU Built-in Functions): Remove stale
12054 references to material formerly at IBM and Sony.
12055
12056 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
12057
12058 PR target/77349
12059 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
12060
12061 2016-08-26 David Malcolm <dmalcolm@redhat.com>
12062
12063 * diagnostic-show-locus.c
12064 (selftest::test_fixit_consolidation): New function.
12065 (selftest::diagnostic_show_locus_c_tests): Call it.
12066 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
12067 constructor based on source_range.
12068
12069 2016-08-26 David Malcolm <dmalcolm@redhat.com>
12070
12071 * diagnostic-color.c (color_dict): Add "fixit-insert" and
12072 "fixit-delete".
12073 (parse_gcc_colors): Update description of default GCC_COLORS.
12074 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
12075 (colorizer::set_fixit_insert): New method.
12076 (colorizer::set_fixit_delete): New method.
12077 (colorizer::get_color_by_name): New method.
12078 (colorizer::STATE_FIXIT_INSERT): New constant.
12079 (colorizer::STATE_FIXIT_DELETE): New constant.
12080 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
12081 fields in favor of new field "m_stop_color". Add fields
12082 "m_fixit_insert" and "m_fixit_delete".
12083 (colorizer::colorizer): Update for above changes. Replace
12084 colorize_start calls with calls to get_color_by_name.
12085 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
12086 STATE_FIXIT_DELETE. Update for field renamings.
12087 (colorizer::finish_state): Simplify by using m_stop_color,
12088 rather than multiple identical "*_ce" fields.
12089 (colorizer::get_color_by_name): New method.
12090 (layout::print_any_fixits): Print insertions and replacements
12091 using the "fixit-insert" color, and deletions using the
12092 "fixit-delete" color.
12093 * doc/invoke.texi (-fdiagnostics-color): Update description of
12094 default GCC_COLORS, and of the supported capabilities.
12095
12096 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
12097
12098 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
12099 current_function_static_stack_size variable with the static
12100 stack frame size of the current function when
12101 flag_stack_usage_info is enabled.
12102
12103 2016-08-26 Nathan Sidwell <nathan@acm.org>
12104
12105 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
12106 assignment inside if condition.
12107
12108 2016-08-26 Richard Biener <rguenther@suse.de>
12109
12110 PR tree-optimization/69047
12111 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
12112 extracts similar to what FRE does.
12113 (non_rewritable_mem_ref_base): Likewise.
12114
12115 2016-08-26 Joseph Myers <joseph@codesourcery.com>
12116
12117 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
12118 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
12119 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12120 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12121 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
12122 Likewise.
12123 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12124 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12125 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12126 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
12127 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12128
12129 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12130
12131 PR target/70473
12132 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
12133 reservation duration to 15 cycles.
12134 (cortex_a8_vfp_macs): Likewise.
12135 (cortex_a8_vfp_macd): Likewise.
12136 (cortex_a8_vfp_divs): Likewise.
12137 (cortex_a8_vfp_divd): Likewise.
12138
12139 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12140
12141 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
12142 (aarch_macro_fusion_pair_p): Use above to avoid early return.
12143
12144 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12145 Martin Jambhor <mjambor@suse.cz>
12146
12147 * common.opt: New option -fipa-bit-cp.
12148 * doc/invoke.texi: Document -fipa-bit-cp.
12149 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
12150 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
12151 * tree-ssa-ccp.h: New header file.
12152 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
12153 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
12154 Replace all occurences of tree parameter by two new params: signop, int.
12155 (bit_value_unop_1): Change to bit_value_unop and export it.
12156 Replace all occurences of tree parameter by two new params: signop,
12157 int.
12158 (bit_value_binop): Change call from bit_value_binop_1 to
12159 bit_value_binop.
12160 (bit_value_assume_aligned): Likewise.
12161 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
12162 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
12163 to ccp_finalize.
12164 (ccp_finalize): Skip processing if val->mask == 0.
12165 * ipa-cp.c: Include tree-ssa-ccp.h
12166 (ipcp_bits_lattice): New class.
12167 (ipcp_param_lattice (bits_lattice): New member.
12168 (print_all_lattices): Call ipcp_bits_lattice::print.
12169 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
12170 (initialize_node_lattices): Likewise.
12171 (propagate_bits_accross_jump_function): New function.
12172 (propagate_constants_accross_call): Call
12173 propagate_bits_accross_jump_function.
12174 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
12175 (ipcp_store_bits_results): New function.
12176 (ipcp_driver): Call ipcp_store_bits_results.
12177 * ipa-prop.h (ipa_bits): New struct.
12178 (ipa_jump_func): Add new member bits of type ipa_bits.
12179 (ipa_param_descriptor): Change decl to decl_or_type.
12180 (ipa_get_param): Change decl to decl_or_type and assert on
12181 PARM_DECL.
12182 (ipa_get_type): New function.
12183 (ipcp_transformation_summary): New member bits.
12184 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
12185 (ipa_populate_param_decls): Likewise.
12186 (ipa_dump_param): Likewise.
12187 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
12188 function.
12189 (ipa_set_jf_unknown): Set ipa_bits::known to false.
12190 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
12191 propagation.
12192 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
12193 (ipa_write_jump_function): Add streaming for ipa_bits.
12194 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
12195 (write_ipcp_transformation_info): Add streaming for ipa_bits
12196 summary for ltrans.
12197 (read_ipcp_transfomration_info): Add support for reading streamed
12198 ipa_bits.
12199 (ipcp_update_bits): New function.
12200 (ipcp_transform_function): Call ipcp_update_bits.
12201
12202 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
12203
12204 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
12205 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
12206
12207 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
12208
12209 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
12210
12211 2016-08-25 Richard Biener <rguenther@suse.de>
12212
12213 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
12214 Only add locations in late dwarf.
12215 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
12216 (dwarf2out_early_finish): But do it here.
12217
12218 2016-08-24 Michael Collison <michael.collison@linaro.org>
12219 Michael Collison <michael.collison@arm.com>
12220
12221 * config/arm/arm-modes.def: Add new condition code mode CC_V
12222 to represent the overflow bit.
12223 * config/arm/arm.c (maybe_get_arm_condition_code):
12224 Add support for CC_Vmode.
12225 (arm_gen_unlikely_cbranch): New function to generate common
12226 rtl conditional branches for overflow patterns.
12227 * config/arm/arm-protos.h: Add prototype for
12228 arm_gen_unlikely_cbranch.
12229 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
12230 addsi3_compareV_upper): New patterns to support signed
12231 builtin overflow add operations.
12232 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
12233 New patterns to support unsigned builtin add overflow operations.
12234 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
12235 builtin overflow subtract operations,
12236 (usubv<mode>4): New patterns to support unsigned builtin subtract
12237 overflow operations.
12238 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
12239 to support builtin overflow negate operations.
12240
12241 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12242
12243 Revert
12244 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12245
12246 * explow.c (get_dynamic_stack_size): Take known alignment of stack
12247 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
12248 needed.
12249
12250 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
12251
12252 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
12253 MULTILIB_OPTIONS should be used. Small wording fixes.
12254 * genmultilib: Memorize set of all option combinations in
12255 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
12256 found in MULTILIB_OPTIONS by checking if option set is listed in
12257 combination_space. Output new and existing error message to stderr.
12258
12259 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
12260
12261 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
12262 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
12263 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
12264 (MULTILIB_REUSE): Remove reuse rules for option set including
12265 -mfpu=fp-armv8 and -mfpu=vfpv4
12266
12267 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
12268
12269 * config/arm/t-rtems: Add vfp multilib.
12270
12271 2016-08-23 Ian Lance Taylor <iant@golang.org>
12272
12273 * config/s390/s390.c (s390_asm_file_start): Call
12274 default_file_start.
12275
12276 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12277
12278 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
12279 initialization of all 0's to the 0 constant, instead of directly
12280 generating XOR. Add support for V4SImode vector initialization on
12281 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
12282 initialization. Change variables used in V4SFmode vector
12283 intialization. For V4SFmode vector splat on ISA 3.0, make sure
12284 any memory addresses are in index form. Add support for using
12285 VSPLTH/VSPLTB to initialize vector short and vector char vectors
12286 with all of the same element.
12287 (regno_or_subregno): New helper function to return a register
12288 number for either REG or SUBREG.
12289 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
12290 Use regno_or_subregno where possible.
12291 (rs6000_split_v4si_init_di_reg): New helper function to build up a
12292 DImode value from two SImode values in order to generate V4SImode
12293 vector initialization on 64-bit systems with direct move.
12294 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
12295 initialization.
12296 (rtx_is_swappable_p): V4SImode vector initialization insn is not
12297 swappable.
12298 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
12299 declaration.
12300 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
12301 attributes to initialize V8HImode and V16QImode vectors with the
12302 same element.
12303 (VSX_SPLAT_COUNT): Likewise.
12304 (VSX_SPLAT_SUFFIX): Likewise.
12305 (UNSPEC_VSX_VEC_INIT): New unspec.
12306 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
12307 Allow SFmode values to come from Altivec registers.
12308 (vsx_init_v4si): New insn/split for V4SImode vector initialization
12309 on 64-bit systems with direct move.
12310 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
12311 vector initializations, to allow V4SImode vector initializations
12312 on 64-bit systems with direct move.
12313 (vsx_splat_v4si): Likewise.
12314 (vsx_splat_v4si_di): Likewise.
12315 (vsx_splat_v4sf): Likewise.
12316 (vsx_splat_v4sf_internal): Likewise.
12317 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
12318 register classes.
12319 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
12320 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
12321 initializing V8HImode and V16QImode vectors with the same
12322 element.
12323 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
12324 optimization if -maltivec=be.
12325
12326 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
12327
12328 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
12329 attribute for alternatives 3 and 4.
12330
12331 2016-08-23 David Malcolm <dmalcolm@redhat.com>
12332
12333 * selftest.c (selftest::assert_str_contains): New function.
12334 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
12335 * selftest.h (selftest::assert_str_contains): New decl.
12336 (ASSERT_STR_CONTAINS): New macro.
12337
12338 2016-08-23 Richard Biener <rguenther@suse.de>
12339
12340 PR tree-optimization/77286
12341 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
12342 the CFG here.
12343 (vect_transform_loop): Split exit edges of loop and scalar
12344 loop if required and at the appropriate time.
12345
12346 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12347
12348 * explow.c (get_dynamic_stack_size): Take known alignment of stack
12349 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
12350 needed.
12351 Correct a typo in a comment.
12352
12353 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12354
12355 * config/s390/s390.md ("*andc_split"): New splitter for and with
12356 complement.
12357
12358 2016-08-23 Richard Biener <rguenther@suse.de>
12359
12360 PR tree-optimization/27336
12361 * tree-vrp.c (infer_value_range): Handle stmts that can throw
12362 by looking for a non-EH edge.
12363 (process_assert_insertions_for): Likewise.
12364
12365 2016-08-23 Richard Biener <rguenther@suse.de>
12366
12367 PR middle-end/77305
12368 * statistics.c (statistics_counter_event): Robustify against
12369 NULL current_pass.
12370
12371 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12372
12373 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
12374 for targets amdfam10 and barcelona.
12375
12376 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
12377
12378 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
12379 (zero_extend<mode>di2): Ditto.
12380 (*zero_extend<mode>si2): Ditto.
12381 (*zero_extendqihi2): Ditto.
12382
12383 2016-08-22 Joseph Myers <joseph@codesourcery.com>
12384
12385 PR middle-end/77269
12386 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
12387 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
12388
12389 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
12390
12391 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
12392 identical consecutive elements.
12393 [SSA_NAME]: Print the name's def stmt on its own line. When printing
12394 the node's def stmt, avoid printing an unwanted trailing newline by
12395 replacing the call to print_gimple_stmt() with its inlined body and
12396 adjusting it to not set pp_needs_newline and to call pp_flush()
12397 instead of pp_newline_and_flush().
12398
12399 2016-08-22 Joseph Myers <joseph@codesourcery.com>
12400
12401 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
12402 (float32_type_node, float64_type_node, float32x_type_node)
12403 (float128x_type_node): New macros.
12404 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
12405 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
12406 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
12407 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
12408 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
12409 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
12410 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
12411 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
12412 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
12413 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
12414 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
12415 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
12416 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
12417 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
12418 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
12419 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
12420 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
12421 (copysign, fabs, huge_val, inf, nan, nans): Use it.
12422 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
12423 and copysign.
12424 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
12425 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
12426 * doc/extend.texi (Other Builtins): Document these built-in
12427 functions.
12428 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
12429 for nan and nans.
12430
12431 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
12432
12433 * doc/install.texi (Binaries): www.opencsw.org now uses https.
12434
12435 2016-08-22 Richard Biener <rguenther@suse.de>
12436
12437 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
12438
12439 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
12440
12441 PR target/77270
12442 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
12443 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
12444 non-SSE2 athlons only, otherwise prefer SSE prefetches.
12445
12446 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12447
12448 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
12449 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
12450 (vrp_visit_switch_stmt): Likewise.
12451 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
12452 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
12453 (vrp_visit_stmt): Use extract_range_from_stmt.
12454 (vrp_visit_phi_node): Use extract_range_from_phi_node.
12455
12456 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12457
12458 * Makefile.in: Add tree-vrp.h to GTFILES.
12459 * gengtype.c (open_base_files): Add tree-vrp.h.
12460 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
12461 * builtins.c: Likewise.
12462 * fold-const.c: Likewise.
12463 * gimple-builder.c: Likewise.
12464 * gimple-laddress.c: Likewise.
12465 * hsa-gen.c: Likewise.
12466 * internal-fn.c: Likewise.
12467 * ssa.h: Likewise.
12468 * targhooks.c: Liewise,
12469 * tree-ssa-address.c: Likewise.
12470 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
12471 * tree-vrp.c (struct value_range): Move to tree-vrp.h
12472 * tree-vrp.h: New file.
12473
12474 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12475
12476 PR tree-optimization/61839
12477 * tree-vrp.c (two_valued_val_range_p): New.
12478 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
12479 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
12480 Also Convert VAR BINOP CST where VAR is two-valued to
12481 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
12482
12483 2016-08-19 David Malcolm <dmalcolm@redhat.com>
12484
12485 * diagnostic-show-locus.c
12486 (layout::annotation_line_showed_range_p): New method.
12487 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
12488 Reimplement case fixit_hint::REPLACE to cover removals, and
12489 replacements where the range of the replacement isn't one
12490 of the ranges in the rich_location.
12491 (test_one_liner_fixit_replace): Likewise.
12492 (selftest::test_one_liner_fixit_replace_non_equal_range): New
12493 function.
12494 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
12495 New function.
12496 (selftest::test_diagnostic_show_locus_one_liner): Call the new
12497 functions.
12498 * diagnostic.c (print_parseable_fixits): Remove case
12499 fixit_hint::REMOVE.
12500
12501 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
12502
12503 PR target/77270
12504 * config/i386/i386.c (ix86_option_override_internal): Remove
12505 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
12506 Enable SSE prefetch also for TARGET_PREFETCHWT1.
12507 Do not try to enable TARGET_PRFCHW ISA flag here.
12508 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
12509 Rewrite expander function body.
12510 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
12511
12512 2016-08-19 Joseph Myers <joseph@codesourcery.com>
12513
12514 PR c/32187
12515 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
12516 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
12517 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
12518 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
12519 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
12520 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
12521 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
12522 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
12523 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
12524 tree_index values.
12525 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
12526 macros.
12527 (struct floatn_type_info): New structure type.
12528 (floatn_nx_types): New variable declaration.
12529 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
12530 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
12531 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
12532 * tree.c (floatn_nx_types): New variable.
12533 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
12534 corresponding complex types.
12535 * target.def (floatn_mode): New hook.
12536 * targhooks.c: Include "real.h".
12537 (default_floatn_mode): New function.
12538 * targhooks.h (default_floatn_mode): New prototype.
12539 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
12540 types.
12541 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
12542 effective-target and dg-add-options keywords.
12543 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
12544 Document new effective-target keywords.
12545 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
12546 * doc/tm.texi: Regenerate.
12547 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
12548 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
12549 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
12550 18661-3.
12551 * real.h (struct real_format): Add field ieee_bits.
12552 * real.c (ieee_single_format, mips_single_format)
12553 (motorola_single_format, spu_single_format, ieee_double_format)
12554 (mips_double_format, motorola_double_format)
12555 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
12556 (ieee_extended_intel_128_format)
12557 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
12558 (mips_extended_format, ieee_quad_format, mips_quad_format)
12559 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
12560 (decimal_double_format, decimal_quad_format, ieee_half_format)
12561 (arm_half_format, real_internal_format: Initialize ieee_bits
12562 field.
12563 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
12564 float128_type_node. Set float80_type_node to float64x_type_node
12565 if appropriate and long_double_type_node not appropriate.
12566 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
12567 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
12568 Initialize ieee_bits field.
12569 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
12570 (rs6000_init_builtins): Set ieee128_float_type_node to
12571 float128_type_node.
12572 (rs6000_floatn_mode): New function.
12573
12574 2016-08-19 Jakub Jelinek <jakub@redhat.com>
12575
12576 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
12577 _rdseed64_step): Uglify argument names and/or local variable names
12578 in inline functions.
12579 * config/i386/rtmintrin.h (_xabort): Likewise.
12580 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
12581 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
12582 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
12583 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
12584 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
12585 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
12586 _mm_maskz_ternarylogic_epi32): Likewise.
12587 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
12588 __lwpins32, __lwpins64): Likewise.
12589 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
12590 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
12591 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
12592 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
12593 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
12594 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
12595 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
12596 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
12597 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
12598 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
12599 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
12600 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
12601 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
12602 _mm256_mask_i64gather_epi32): Likewise.
12603 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
12604 * config/i386/ia32intrin.h (__writeeflags): Likewise.
12605 * config/i386/pkuintrin.h (_wrpkru): Likewise.
12606 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
12607 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
12608 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
12609 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
12610 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
12611 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
12612 _mm512_mask_prefetch_i64scatter_ps): Likewise.
12613 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
12614 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
12615 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
12616 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
12617 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
12618 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
12619 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
12620 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
12621
12622 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
12623 returning void.
12624 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
12625 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
12626 Likewise.
12627 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
12628 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
12629 function name.
12630 (_rdpkru_u32): Add space after function name.
12631
12632 * config/i386/t-i386 (i386-c.o): Don't depend on
12633 i386-builtin-types.inc.
12634 (i386.o): Depend on i386-builtin-types.inc.
12635
12636 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
12637
12638 PR target/77281
12639 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
12640 Use const_vec_duplicate to check for duplicated elements.
12641
12642 2016-08-19 Richard Biener <rguenther@suse.de>
12643
12644 PR tree-optimization/77290
12645 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12646 Fix flag_tree_parallelize_loops check.
12647
12648 2016-08-19 Richard Biener <rguenther@suse.de>
12649
12650 * match.pd (x | 0 -> x): Add.
12651
12652 2016-08-19 Richard Biener <rguenther@suse.de>
12653
12654 PR tree-optimization/77286
12655 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
12656 Deal with virtual PHIs being out-of-order.
12657
12658 2016-08-18 David Malcolm <dmalcolm@redhat.com>
12659
12660 * doc/invoke.texi (fverbose-asm): Note that source code lines
12661 are emitted, and provide an example.
12662 * final.c (asm_show_source): New function.
12663 (final_scan_insn): Call asm_show_source.
12664
12665 2016-08-18 David Malcolm <dmalcolm@redhat.com>
12666
12667 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
12668 param with diagnostic_kind.
12669 (class colorizer): Similarly replace field m_diagnostic with
12670 m_diagnostic_kind.
12671 (colorizer::colorizer): Replace diagnostic
12672 param with diagnostic_kind.
12673 (colorizer::begin_state): Update for above field change.
12674 (layout::layout): Replace diagnostic param with rich_location *
12675 and diagnostic_kind.
12676 (diagnostic_show_locus): Replace diagnostic param with richloc
12677 and diagnostic_kind.
12678 (class selftest::test_diagnostic_context): New class.
12679 (selftest::test_diagnostic_show_locus_unknown_location): New
12680 function.
12681 (selftest::test_one_liner_simple_caret): New function.
12682 (selftest::test_one_liner_caret_and_range): New function.
12683 (selftest::test_one_liner_multiple_carets_and_ranges): New
12684 function.
12685 (selftest::test_one_liner_fixit_remove): New function.
12686 (selftest::test_one_liner_fixit_replace): New function.
12687 (selftest::test_diagnostic_show_locus_one_liner): New function.
12688 (selftest::diagnostic_show_locus_c_tests): Call the new test
12689 functions.
12690 * diagnostic.c (diagnostic_initialize): Initialize
12691 colorize_source_p, show_ruler_p and parseable_fixits_p.
12692 (default_diagnostic_finalizer): Update for change to
12693 diagnostic_show_locus.
12694 (diagnostic_append_note): Likewise.
12695 * diagnostic.h (diagnostic_show_locus): Replace
12696 const diagnostic_info * param with location * and diagnostic_t.
12697
12698 2016-08-18 David Malcolm <dmalcolm@redhat.com>
12699
12700 * input.c (saved_line_table): New global.
12701 (class selftest::temp_line_table): Rename to line_table_test and
12702 move declaration to selftest.h, and drop field m_old_line_table.
12703 (selftest::temp_line_table::temp_line_table): Rename ctor to...
12704 (selftest::line_table_test::line_table_test): ...this. Add a
12705 default ctor. Store current value of line_table within
12706 saved_line_table.
12707 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
12708 (selftest::line_table_test::~line_table_test): ...this, and
12709 restore line_table from the saved_line_table, rather than
12710 m_old_line_table.
12711 (selftest::test_accessing_ordinary_linemaps): Update for above
12712 renaming.
12713 (selftest::test_lexer): Likewise.
12714 (struct selftest::lexer_test): Likewise.
12715 (selftest::lexer_test::lexer_test): Likewise.
12716 (selftest::input_c_tests): Move the looping over test cases from
12717 here into...
12718 (selftest::for_each_line_table_case): New function.
12719 * input.h (saved_line_table): New decl.
12720 * selftest.h (struct selftest::line_table_case): New forward decl.
12721 (class selftest::line_table_test): New class, moved here from
12722 selftest::temp_line_table in input.c, and renamed.
12723 (selftest::for_each_line_table_case): New decl.
12724
12725 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
12726
12727 PR target/72839
12728 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
12729
12730 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
12731
12732 PR middle-end/70895
12733 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
12734 enclosing parallel construct for reduction variables on OpenACC loop
12735 directives.
12736
12737 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
12738
12739 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
12740 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
12741 -gdwarf-3.
12742 (function_to_dwarf_procedure): Update comment.
12743
12744 2016-08-18 David Malcolm <dmalcolm@redhat.com>
12745
12746 * input.c (diagnostics_file_cache_forcibly_evict_file): New
12747 function.
12748 * input.h (diagnostics_file_cache_forcibly_evict_file): New
12749 declaration.
12750 * selftest.c (selftest::temp_source_file::~temp_source_file):
12751 Evict m_filename from the diagnostic file cache.
12752
12753 2016-08-18 Richard Biener <rguenther@suse.de>
12754
12755 * tree-pass.h (make_pass_materialize_all_clones): Declare.
12756 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
12757 make_pass_materialize_all_clones): New simple IPA pass encapsulating
12758 clone materialization.
12759 * passes.def (all_late_ipa_passes): Start with
12760 pass_materialize_all_clones.
12761 * cgraphunit.c (symbol_table::compile): Remove call to
12762 materialize_all_clones.
12763 * tree-into-ssa.c: Include statistics.h.
12764 (update_ssa): Count number of times we do incremental/rewrite
12765 SSA update.
12766
12767 2016-08-18 Richard Biener <rguenther@suse.de>
12768
12769 PR tree-optimization/77282
12770 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12771 When doing auto-parallelizing also prevent use of PHIs that
12772 carry dependences across loop backedges.
12773
12774 2016-08-18 Tamar Christina <tamar.christina@arm.com>
12775 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12776
12777 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
12778
12779 2016-08-18 Richard Biener <rguenther@suse.de>
12780
12781 * ssa-iterators.h (ssa_vuse_operand): New inline.
12782 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
12783 (predicate_all_scalar_phis): Use remove_phi_node to remove
12784 phi nodes predicated. Delay removing virtual PHIs.
12785 (predicate_mem_writes): Update virtual operands.
12786 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
12787 (tree_if_conversion): Do not rewrite virtual SSA form.
12788 * tree-phinodes.c (release_phi_node): Make static.
12789 * tree-phinodes.h (release_phi_node): Remove.
12790
12791 2016-08-18 Jakub Jelinek <jakub@redhat.com>
12792
12793 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
12794 codes that appear in bdesc_* arrays, instead include i386-builtin.def
12795 twice to define those.
12796 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
12797 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
12798 bdesc_multi_arg): Define by including i386-builtin.def the third time.
12799 * config/i386/i386-builtin.def: New file.
12800
12801 2016-08-17 David Malcolm <dmalcolm@redhat.com>
12802
12803 * input.c (get_source_range_for_char): Rename to...
12804 (selftest::get_source_range_for_char): ...this, and move within
12805 the #if CHECKING_P guard.
12806 (get_num_source_ranges_for_substring): Rename to...
12807 (selftest::get_num_source_ranges_for_substring): ...this, move
12808 within the #if CHECKING_P guard, and make static.
12809 (selftest::assert_num_substring_ranges): Initialize
12810 actual_num_ranges.
12811
12812 2016-08-18 Alan Modra <amodra@gmail.com>
12813
12814 PR rtl-optimization/72771
12815 * reload.c (find_reloads): Don't assume that a subreg mem is OK
12816 when find_reloads_toplev returns address_reloaded==-1.
12817 (alternative_allows_const_pool_ref): Update comment.
12818
12819 2015-08-17 Alan Hayward <alan.hayward@arm.com>
12820
12821 PR tree-optimization/71752
12822 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
12823 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
12824
12825 2016-08-17 Jakub Jelinek <jakub@redhat.com>
12826
12827 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
12828 instead of testing ECF_NORETURN bit in gimple_call_flags.
12829 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
12830 * predict.c (tree_bb_level_predictions): Likewise.
12831 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
12832
12833 PR middle-end/77259
12834 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
12835 turning a call into __builtin_unreachable-like noreturn call, adjust
12836 gimple_call_set_fntype.
12837 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
12838 gimple_call_fntype has void return type.
12839
12840 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
12841
12842 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
12843 maybe_lookup_decl, to handle nested acc loop directives.
12844
12845 2016-08-17 Richard Biener <rguenther@suse.de>
12846
12847 PR tree-optimization/76490
12848 * tree-vrp.c (update_value_range): Preserve overflow infinities
12849 when intersecting with ranges from get_range_info.
12850 (operand_less_p): Handle overflow infinities correctly.
12851 (value_range_constant_singleton): Use vrp_operand_equal_p
12852 to handle overflow max/min correctly.
12853 (vrp_valueize): Likewise.
12854 (union_ranges): Likewise.
12855 (intersect_ranges): Likewise.
12856 (vrp_visit_phi_node): Improve iteration limitation to only
12857 apply when we'll possibly re-visit the PHI via a changed argument
12858 on the backedge.
12859
12860 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
12861
12862 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
12863 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
12864 rather than those that should not be built.
12865
12866 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
12867
12868 PR target/66488
12869 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
12870
12871 2016-08-17 Richard Biener <rguenther@suse.de>
12872
12873 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
12874 (verify_vssa): New function verifying virtual SSA form.
12875 (verify_ssa): Call it.
12876 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
12877 Do not apply loop-closed SSA handling to virtuals.
12878 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
12879 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
12880 when rewriting their symbol.
12881 (prepare_def_site_for): Likewise.
12882 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
12883 operands of moved stmts.
12884
12885 2016-08-17 Richard Biener <rguenther@suse.de>
12886
12887 PR tree-optimization/23855
12888 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
12889 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
12890 find guards to hoist. Do not update SSA form but rewrite virtuals
12891 into loop closed SSA.
12892 (find_loop_guard): Adjust to skip already hoisted guards. Do
12893 not mark virtuals for renaming or update SSA form.
12894
12895 2016-08-17 Martin Liska <mliska@suse.cz>
12896
12897 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
12898 a LONG_LONG_TYPE_SIZE comparison.
12899 * gcov-io.h: Remove macro definitions.
12900 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
12901 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
12902 comparison.
12903
12904 2016-08-16 Jakub Jelinek <jakub@redhat.com>
12905
12906 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
12907 that builtins not mentioned in bdesc_* arrays come first, then
12908 the ones mentioned in bdesc_* arrays in the order they appear in
12909 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
12910 IX86_BUILTIN__BDESC_*_LAST enumerator.
12911 (bdesc_mpx): Fix up a comment typo.
12912 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
12913 __builtin_ia32_vpcomneu[bwdq] builtins.
12914 (BDESC_VERIFY, BDESC_VERIFYS): Define.
12915 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
12916 enum ix86_builtins ordering.
12917 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
12918 for direct bdesc_* array member access instead of searching all the
12919 arrays until an fcode match is found.
12920
12921 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
12922
12923 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
12924 pattern as define_insn_and_split. Split insn before reload to
12925 ashl<mode>3_1.
12926 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
12927 <shift_insn><mode>3_1.
12928 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
12929 <rotate_insn><mode>3_1.
12930
12931 2016-08-16 David Malcolm <dmalcolm@redhat.com>
12932
12933 PR c/72857
12934 * input.c (get_source_range_for_substring): Rename to...
12935 (get_source_location_for_substring): ...this, adding param
12936 "caret_idx", and converting output param from source_range * to
12937 location_t *.
12938 (get_source_range_for_char): New function.
12939 (get_num_source_ranges_for_substring): Update comment to reflect
12940 above renaming.
12941 (assert_char_at_range): Update to use get_source_range_for_char
12942 rather than get_source_range_for_substring.
12943 (test_lexer_string_locations_concatenation_2): Likewise.
12944 * substring-locations.h (get_source_range_for_substring): Rename
12945 to...
12946 (get_source_location_for_substring): ...this, and adding param
12947 "caret_idx", and converting output param from source_range * to
12948 location_t *.
12949
12950 2016-08-16 David Malcolm <dmalcolm@redhat.com>
12951
12952 * input.c (class selftest::temp_source_file): Move to
12953 selftest.h.
12954 (selftest::temp_source_file::temp_source_file): Move to
12955 selftest.c.
12956 (selftest::temp_source_file::~temp_source_file): Likewise.
12957 * selftest.c (selftest::temp_source_file::temp_source_file): Move
12958 here from input.c.
12959 (selftest::temp_source_file::~temp_source_file): Likewise.
12960 * selftest.h (class selftest::temp_source_file): Move here from
12961 input.c
12962
12963 2016-08-16 Jakub Jelinek <jakub@redhat.com>
12964
12965 PR target/71910
12966 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
12967 inlining, add cgraph edge for the added __builtin_unreachable call.
12968
12969 PR middle-end/67485
12970 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
12971 only cast it to SHWI for the final comparison.
12972
12973 2016-08-16 Martin Liska <mliska@suse.cz>
12974
12975 PR gcov-profile/36412
12976 * doc/gcov.texi: Document --hash-filenames(-x).
12977 * gcov.c (print_usage): Add the option.
12978 (process_args): Process the option, sort options alphabetically.
12979 (md5sum_to_hex): New function.
12980 (make_gcov_file_name): Do the md5sum and append it to a
12981 filename.
12982
12983 2016-08-16 Bin Cheng <bin.cheng@arm.com>
12984
12985 PR tree-optimization/69848
12986 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
12987 and swtich operands to avoid additional NOT instruction.
12988 (vcond<v_cmp_mixed><mode>): Ditto.
12989 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
12990
12991 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
12992
12993 * doc/install.texi (*-*-solaris2*): Adjust latest change.
12994
12995 2016-08-16 Richard Biener <rguenther@suse.de>
12996
12997 PR tree-optimization/76783
12998 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
12999 BB visited flags at start.
13000
13001 2016-08-16 Bin Cheng <bin.cheng@arm.com>
13002
13003 PR tree-optimization/72817
13004 PR tree-optimization/73450
13005 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
13006 multiple_of_p for adjusted IV.base.
13007
13008 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
13009
13010 PR target/72867
13011 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
13012 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
13013 for !flag_finite_math_only or flag_signed_zeros.
13014 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
13015 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
13016 depend on flag_finite_math_only.
13017 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
13018 New insn pattern.
13019 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
13020 (*ieee_smin<mode>3): Ditto.
13021 (*ieee_smax<mode>3): Ditto.
13022 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
13023 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
13024 flag_signed_zeros.
13025 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
13026 depend on flag_finite_math_only.
13027 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
13028 (*mmx_<code>v2sf3): Remove.
13029 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
13030 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
13031 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
13032
13033 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13034
13035 PR rtl-optimization/73650
13036 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
13037 it is not a simple move.
13038
13039 2016-08-15 Martin Liska <mliska@suse.cz>
13040
13041 PR driver/72765
13042 * gcc.c (do_spec_1): Call save_string with the right size.
13043 (save_string): Do an assert about string we copy.
13044
13045 2016-08-15 Richard Biener <rguenther@suse.de>
13046
13047 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
13048 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
13049 TV_MACH_DEP.
13050 (pass_data_stv): Likewise.
13051
13052 2016-08-15 Richard Biener <rguenther@suse.de>
13053
13054 PR tree-optimization/73434
13055 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
13056 TBAA info on the base when forwarding a non-invariant address.
13057
13058 2016-08-15 Jakub Jelinek <jakub@redhat.com>
13059
13060 * dwarf2out.c (struct checksum_attributes): Add
13061 at_string_length_bit_size and at_string_length_byte_size fields.
13062 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
13063 and DW_AT_string_length_byte_size.
13064 (die_checksum_ordered): Handle at_string_length_bit_size and
13065 at_string_length_byte_size.
13066 (gen_array_type_die): For dwarf_version >= 5 emit
13067 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
13068 (adjust_string_types): For dwarf_version >= 5 remove
13069 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
13070 (resolve_addr): Likewise.
13071
13072 PR debug/71906
13073 * dwarf2out.c (string_types): New variable.
13074 (gen_array_type_die): Change early_dwarf handling of
13075 DW_AT_string_length, create DW_OP_call4 referencing the
13076 length var temporarily. Handle parameters that are pointers
13077 to string length.
13078 (adjust_string_types): New function.
13079 (gen_subprogram_die): Temporarily set string_types to local var,
13080 call adjust_string_types if needed.
13081 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
13082 New functions.
13083 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
13084
13085 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
13086
13087 * doc/install.texi (*-*-solaris2*): Fix version number and document
13088 requirement on GNU make for building libjava with the Solaris linker.
13089
13090 2016-08-15 Martin Liska <mliska@suse.cz>
13091 Jakub Jelinek <jakub@redhat.com>
13092
13093 PR tree-optimization/72824
13094 * tree-loop-distribution.c (const_with_all_bytes_same)
13095 <case VECTOR_CST>: Fix a typo.
13096
13097 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
13098
13099 PR target/76342
13100 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
13101 Renamed from _mm512_undefined_si512.
13102 (_mm_undefined_si512): New definition.
13103
13104 2016-08-13 Richard Biener <rguenther@suse.de>
13105
13106 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
13107 into PHIs and update the lattice for its def.
13108
13109 2016-08-12 Jakub Jelinek <jakub@redhat.com>
13110
13111 PR c/71512
13112 * ubsan.c (instrument_si_overflow): Pass true instead of false
13113 to gsi_replace.
13114 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
13115 of bbs. Return TODO_cleanup_cfg if any returned true.
13116
13117 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13118
13119 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
13120 ISA 3.0 MTVSRDD instruction.
13121 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
13122 vecperm.
13123
13124 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
13125
13126 PR tree-optimization/71083
13127 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
13128 bitfield access when possible.
13129
13130 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
13131
13132 PR middle-end/71654
13133 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
13134 sign-changing cast from a shorter unsigned type to a wider
13135 signed type.
13136
13137 2016-08-12 Jakub Jelinek <jakub@redhat.com>
13138
13139 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
13140 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
13141 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
13142
13143 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13144
13145 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
13146 Correct costs for vec_construct.
13147
13148 2016-08-12 Bin Cheng <bin.cheng@arm.com>
13149
13150 PR tree-optimization/69848
13151 * tree-vectorizer.h (enum vect_def_type): New condition reduction
13152 type CONST_COND_REDUCTION.
13153 * tree-vect-loop.c (vectorizable_reduction): Support new condition
13154 reudction type CONST_COND_REDUCTION.
13155
13156 2016-08-12 Richard Biener <rguenther@suse.de>
13157
13158 PR tree-optimization/57326
13159 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
13160 returning an SSA name.
13161 (phi_translate_1): When fully_constant_expression returns a NAME
13162 make sure we have a leader for it.
13163
13164 2016-08-12 Martin Liska <mliska@suse.cz>
13165 Adam Fineman <afineman@afineman.com>
13166
13167 * gcov.c (process_file): Create .gcov file when .gcda
13168 file is missing.
13169
13170 2016-08-12 Marek Polacek <polacek@redhat.com>
13171
13172 PR c/7652
13173 * alias.c (find_base_value): Adjust fall through comment.
13174 * cfgexpand.c (expand_debug_expr): Likewise.
13175 * combine.c (find_split_point): Likewise.
13176 (expand_compound_operation): Likewise. Add FALLTHRU.
13177 (make_compound_operation): Adjust fall through comment.
13178 (canon_reg_for_combine): Add FALLTHRU.
13179 (force_to_mode): Adjust fall through comment.
13180 (simplify_shift_const_1): Likewise.
13181 (simplify_comparison): Likewise.
13182 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
13183 FALLTHRU.
13184 * config/aarch64/predicates.md: Likewise.
13185 * config/i386/i386.c (function_arg_advance_32): Likewise.
13186 (ix86_gimplify_va_arg): Likewise.
13187 (print_reg): Likewise.
13188 (ix86_print_operand): Likewise.
13189 (ix86_build_const_vector): Likewise.
13190 (ix86_expand_branch): Likewise.
13191 (ix86_sched_init_global): Adjust fall through comment.
13192 (ix86_expand_args_builtin): Add FALLTHRU.
13193 (ix86_expand_builtin): Likewise.
13194 (ix86_expand_vector_init_one_var): Likewise.
13195 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
13196 (rs6000_adjust_cost): Likewise.
13197 (insn_must_be_first_in_group): Likewise.
13198 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
13199 * dbxout.c (dbxout_symbol): Adjust fall through comment.
13200 * df-scan.c (df_uses_record): Likewise.
13201 * dojump.c (do_jump): Add FALLTHRU.
13202 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
13203 comment.
13204 (resolve_args_picking_1): Adjust fall through comment.
13205 (loc_list_from_tree_1): Likewise.
13206 * expmed.c (make_tree): Likewise.
13207 * expr.c (expand_expr_real_2): Add FALLTHRU.
13208 (expand_expr_real_1): Likewise. Adjust fall through comment.
13209 * fold-const.c (const_binop): Adjust fall through comment.
13210 (fold_truth_not_expr): Likewise.
13211 (fold_cond_expr_with_comparison): Add FALLTHRU.
13212 (fold_binary_loc): Likewise.
13213 (contains_label_1): Adjust fall through comment.
13214 (multiple_of_p): Likewise.
13215 * gcov-tool.c (process_args): Add FALLTHRU.
13216 * genattrtab.c (check_attr_test): Likewise.
13217 (write_test_expr): Likewise.
13218 * genconfig.c (walk_insn_part): Likewise.
13219 * genpreds.c (validate_exp): Adjust fall through comment.
13220 (needs_variable): Likewise.
13221 * gensupport.c (get_alternatives_number): Add FALLTHRU.
13222 (subst_dup): Likewise.
13223 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
13224 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
13225 (gimplify_scan_omp_clauses): Add FALLTHRU.
13226 (goa_stabilize_expr): Likewise.
13227 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
13228 through comment.
13229 * hsa-gen.c (get_address_from_value): Likewise.
13230 * ipa-icf.c (sem_function::hash_stmt): Likewise.
13231 * ira.c (ira_setup_alts): Add FALLTHRU.
13232 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
13233 comment.
13234 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
13235 * opts.c (common_handle_option): Likewise.
13236 * read-rtl.c (read_rtx_code): Likewise.
13237 * real.c (round_for_format): Likewise.
13238 * recog.c (asm_operand_ok): Likewise.
13239 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
13240 * reload1.c (set_label_offsets): Likewise.
13241 (eliminate_regs_1): Likewise.
13242 (reload_reg_reaches_end_p): Likewise.
13243 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
13244 (rtx_cost): Likewise.
13245 * sched-rgn.c (is_exception_free): Likewise.
13246 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
13247 * stor-layout.c (int_mode_for_mode): Likewise.
13248 * toplev.c (print_to_asm_out_file): Likewise.
13249 (print_to_stderr): Likewise.
13250 * tree-cfg.c (gimple_verify_flow_info): Likewise.
13251 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
13252 (chrec_fold_multiply): Likewise.
13253 (evolution_function_is_invariant_rec_p): Likewise.
13254 (for_each_scev_op): Likewise.
13255 * tree-data-ref.c (siv_subscript_p): Likewise.
13256 (get_references_in_stmt): Likewise.
13257 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
13258 (substitute_in_expr): Likewise.
13259 (type_cache_hasher::equal): Likewise.
13260 (walk_type_fields): Likewise.
13261 * var-tracking.c (adjust_mems): Add FALLTHRU.
13262 (set_dv_changed): Adjust fall through comment.
13263 * varasm.c (default_function_section): Add FALLTHRU.
13264
13265 2016-08-12 Marek Polacek <polacek@redhat.com>
13266
13267 PR c/7652
13268 * tree-complex.c (expand_complex_division): Add missing break.
13269
13270 2016-08-12 Richard Biener <rguenther@suse.de>
13271
13272 * passes.c (execute_todo): Do not push/pop TV_TODO.
13273 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
13274 (execute_one_pass): Likewise.
13275 * common.opt (ftime-report-details): New switch.
13276 * doc/invoke.texi (ftime-report-details): Document.
13277 * timevar.h (timer::print_row): Adjust signature.
13278 (timer::all_zero): New static helper.
13279 (timer::child_map_t): New typedef.
13280 (timer::time_var_def): Add children field.
13281 * timevar.c (timer::named_items::print): Adjust.
13282 (timer::~timer): Free timevar recorded children.
13283 (timer::pop_internal): When -ftime-report-details record
13284 time spent in sub-timevars.
13285 (timer::print_row): Adjust.
13286 (timer::print): Print sub-timevar stats, use all_zero.
13287 * timevar.def (TV_TODO): Remove.
13288
13289 2016-08-12 Richard Biener <rguenther@suse.de>
13290
13291 PR tree-optimization/72851
13292 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
13293 worklists to use bitmaps indexed in execution order.
13294 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
13295 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
13296 (cfg_blocks): Make a bitmap.
13297 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
13298 New globals.
13299 (cfg_blocks_empty_p): Adjust.
13300 (cfg_blocks_add): Likewise.
13301 (cfg_blocks_get): Likewise.
13302 (add_ssa_edge): Likewise.
13303 (add_control_edge): Likewise.
13304 (simulate_stmt): Likewise.
13305 (process_ssa_edge_worklist): Likewise.
13306 (simulate_block): Likewise.
13307 (ssa_prop_init): Compute PRE order and stmt UIDs.
13308 (ssa_prop_fini): Adjust.
13309 (ssa_propagate): Adjust.
13310
13311 2016-08-12 Richard Biener <rguenther@suse.de>
13312
13313 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
13314 the currently executable edges have fixed ranges. Always
13315 go through update_value_range.
13316
13317 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
13318
13319 PR debug/63240
13320 * langhooks-def.h
13321 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
13322 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
13323 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
13324 (LANG_HOOKS_DECLS): Add it.
13325 * langhooks.h (struct lang_hooks_for_decls): Add
13326 function_decl_defaulted. Const_tree-ify
13327 function_decl_explicit_p and function_decl_deleted_p.
13328 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
13329 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
13330 also at strict DWARF v5.
13331
13332 PR debug/55641
13333 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
13334 TYPE_QUAL_CONST in reference-typed decls.
13335
13336 PR debug/49366
13337 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
13338 in DW_OP_pieces, just enough to handle pointers to member
13339 functions.
13340 (gen_remaining_tmpl_value_param_die_attribute): Use a location
13341 expression on DWARFv5 if a constant value doesn't work.
13342
13343 2016-08-11 David Malcolm <dmalcolm@redhat.com>
13344
13345 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
13346 * selftest.c (selftest::test_assertions): New function.
13347 (selftest::selftest_c_tests): New function.
13348 * selftest.h (selftest::selftest_c_tests): New declaration.
13349
13350 2016-08-11 Richard Biener <rguenther@suse.de>
13351 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13352
13353 PR rtl-optimization/72855
13354 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
13355
13356 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13357
13358 PR target/72863
13359 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
13360 (vsx_store_<mode>): Likewise.
13361
13362 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
13363
13364 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
13365 TImode CONST_WIDE_INT store.
13366 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
13367
13368 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
13369
13370 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
13371 mode if unaligned SSE load and store are optimal.
13372
13373 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
13374
13375 PR tree-optimization/71083
13376 * tree-predcom.c (ref_at_iteration): Correctly align the
13377 reference type.
13378
13379 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13380
13381 * config/s390/s390-builtin-types.def: Add INT128 types.
13382 * config/s390/s390-builtins.def: Add INT128 variants for the add
13383 sub low-level builtins dealing with TImode.
13384 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
13385 via subreg when expanding a builtin.
13386 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
13387 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
13388 Fix comment.
13389 * config/s390/vecintrin.h: Adjust builtin names accordingly.
13390 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
13391 ("vec_addc<mode>", "vec_addc_u128"): Merge to
13392 "vacc<bhfgq>_<mode>".
13393 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
13394 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
13395 ("vec_subc<mode>", "vec_subc_u128"): Merge to
13396 "vscbi<bhfgq>_<mode>".
13397 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
13398 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
13399
13400 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13401
13402 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
13403
13404 2016-08-11 Bin Cheng <bin.cheng@arm.com>
13405
13406 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
13407 unused declaration.
13408 (vcond<v_cmp_mixed><mode>): Ditto.
13409 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
13410
13411 2016-08-11 Bin Cheng <bin.cheng@arm.com>
13412
13413 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
13414 variable explicitly, also assert on it before use.
13415
13416 2016-08-11 Richard Biener <rguenther@suse.de>
13417
13418 PR tree-optimization/72772
13419 * cfgloopmanip.c (create_preheader): Use split_edge if there
13420 is a single loop entry, avoiding degenerate PHIs.
13421
13422 2016-08-11 Richard Biener <rguenther@suse.de>
13423
13424 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
13425 unconditional TODO_cleanup_cfg.
13426 (pass_thread_jumps::execute): Initialize loops, perform a CFG
13427 cleanup only if we threaded a jump.
13428
13429 2016-08-11 Alan Modra <amodra@gmail.com>
13430
13431 PR target/71680
13432 * lra-constraints.c (simplify_operand_subreg): Allow subreg
13433 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
13434 slow. Emit two reloads for slow mem case, first loading in
13435 fast innermode, then converting to required mode.
13436
13437 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
13438
13439 * config/rs6000/altivec.h (vec_extract_exp): New macro.
13440 (vec_extract_sig): New macro.
13441 (vec_insert_exp): New macro.
13442 (vec_test_data_class): New macro.
13443 (scalar_extract_exp): New macro.
13444 (scalar_extract_sig): New macro.
13445 (scalar_insert_exp): New macro.
13446 (scalar_test_data_class): New macro.
13447 (scalar_test_neg): New macro.
13448 (scalar_cmp_exp_gt): New macro.
13449 (scalar_cmp_exp_lt): New macro.
13450 (scalar_cmp_exp_eq): New macro.
13451 (scalar_cmp_exp_unordered): New macro.
13452 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
13453 to enforce constraint that operand is a 7-bit unsigned literal.
13454 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
13455 for power9 built-ins.
13456 (BU_P9V_VSX_2): Likewise.
13457 (BU_P9V_64BIT_VSX_2): Likewise.
13458 (VSEEDP): Add scalar extract exponent support.
13459 (VSEESP): Add scalar extract signature support.
13460 (VSTDCNDP): Add scalar test negative support.
13461 (VSTDCNSP): Likewise.
13462 (VSIEDP): Add scalar insert exponent support.
13463 (VSCEDPGT): Add scalar compare exponent greater than support.
13464 (VSCEDPLT): Add scalar compare exponent less than support.
13465 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
13466 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
13467 (VSTDCDP): Add scalar test data class support.
13468 (VSTDCSP): Likewise.
13469 (VSEEDP): Add overload support for scalar extract exponent
13470 operation.
13471 (VSESDP): Add overload support for scalar extract signature
13472 operation.
13473 (VSTDCN): Add overload support for scalar test negative
13474 operation.
13475 (VSTDCNDP): Add overload support for scalar test negative
13476 operation.
13477 (VSTDCNSP): Add overload support for scalar test negative
13478 operation.
13479 (VSIEDP): Add overload support for scalar insert exponent
13480 operation.
13481 (VSTDC): Add overload support for scalar test data class
13482 operation.
13483 (VSTDCDP): Add overload support for scalar test data class
13484 operation.
13485 (VSTDCSP): Add overload support for scalar test data class
13486 opreation.
13487 (VSCEDPGT): Add overload support for scalar compare exponent
13488 greater than operation.
13489 (VSCEDPLT): Add overload support for scalar compare exponent
13490 less than operation.
13491 (VSCEDPEQ): Add overload support for scalar compare exponent
13492 test-for-equality operation.
13493 (VSCEDPUO): Add overload support for scalar compare exponent
13494 test-for-unordered operation.
13495 (VEEDP): Add vector extract exponent support.
13496 (VEESP): Likewise.
13497 (VESDP): Add vector extract significand support.
13498 (VESSP): Likewise.
13499 (VIEDP): Add vector insert exponent support.
13500 (VIESP): Likewise.
13501 (VTDCDP): Add vector test data class support.
13502 (VTDCSP): Likewise.
13503 (VES): Add overload support for vector extract significand operation.
13504 (VESDP): Likewise.
13505 (VESSP): Likewise
13506 (VEE): Add overload support for vector extract exponent operation.
13507 (VEEDP): Likewise.
13508 (VEESP): Likewise.
13509 (VTDC): Add overload support for vector test data class operation.
13510 (VTDCDP): Likewise.
13511 (VTDCSP): Likewise.
13512 (VIE): Add overload support for vector insert exponent operation.
13513 (VIEDP): Likewise.
13514 (VIESP): Likewise.
13515 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13516 overloaded binary floating point functions.
13517 (altivec_resolve_overloaded_builtin): Improve error messages to
13518 distinguish between functions not supported in the current
13519 compiler configuration and functions that were invoked with an
13520 invalid parameter combination, and include the built-in function
13521 name in both error messages.
13522 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
13523 New prototype.
13524 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
13525 function.
13526 (rs6000_expand_binop_builtin): Add check to enforce that argument
13527 2 of the test data class operations is a 7-bit unsigned literal.
13528 (rs6000_invalid_builtin): Add code to issue an error message if a
13529 built-in function that requires the power9_vector and -m32
13530 command-line options is compiled without these options.
13531 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
13532 (UNSPEC_VSX_SXSIGDP): New value.
13533 (UNSPEC_VSX_SXSIGPDP): New value.
13534 (UNSPEC_VSX_SIEXPDP): New value.
13535 (UNSPEC_VSX_SCMPEXPDP): New value.
13536 (UNSPEC_VSX_STSTDC): New value.
13537 (UNSPEC_VSX_VXEXP): New value.
13538 (UNSPEC_VSX_VXSIG): New value.
13539 (UNSPEC_VSX_VIEXP): New value.
13540 (UNSPEC_VSX_VTSTDC): New value.
13541 (xsxexpdp): New insn for scalar extract exponent.
13542 (xsxsigdp): New insn for scalar extract significand.
13543 (xsiexpdp): New insn for scalar insert exponent.
13544 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
13545 (*xscmpexpdp): New insn for scalar compare exponents.
13546 (xststdc<Fvsx): New expansion for both single- and
13547 double-precision scalar test data class operations.
13548 (xststdcneg<Fvsx>): New expansion for both single- and
13549 double-precision scalar test for negative value operations.
13550 (*xststdc<Fvsx>): New insn for scalar test data class
13551 operation.
13552 (xvxexp<VSs>): New insn for single- and double-precision
13553 vector extract exponent operation.
13554 (xvxsig<VSs>): New insn for single- and double-precision
13555 vector extract significand operation.
13556 (xviexp<VSs>): New insn for single- and double-precision
13557 vector insert exponent operation.
13558 (xvtstdc<VSs>): New insn for single- and double-precision
13559 vector test data class operation.
13560 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
13561 built-in functions to represent the Power9 binary floating-point
13562 support instructions.
13563
13564 2016-08-10 bin cheng <bin.cheng@arm.com>
13565
13566 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
13567
13568 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
13569 Renlin Li <renlin.li@arm.com>
13570 Bin Cheng <bin.cheng@arm.com>
13571
13572 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
13573 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
13574 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
13575 (aarch64_vcond_internal<mode><mode>): Delete pattern.
13576 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
13577 (vcond<v_cmp_result><mode>): Ditto.
13578 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
13579 (vcondu<mode><mode>): Ditto.
13580 (vcond<v_cmp_mixed><mode>): New pattern.
13581 (vcondu<mode><v_cmp_mixed>): New pattern.
13582 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
13583 of aarch64_vcond_internal.
13584
13585 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
13586 Renlin Li <renlin.li@arm.com>
13587 Bin Cheng <bin.cheng@arm.com>
13588
13589 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
13590 (vec_cmp<mode><v_cmp_result>): New pattern.
13591 (vec_cmpu<mode><mode>): New pattern.
13592 (vcond_mask_<mode><v_cmp_result>): New pattern.
13593
13594 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
13595
13596 PR tree-optimization/71734
13597 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
13598 REF_LOOP, invoke ref_indep_loop_p_1.
13599 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
13600 to ref_indep_loop_p.
13601 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
13602 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
13603 is inside LOOP, do not cache dpendence value for loops with
13604 non-zero SAFELEN.
13605 (ref_indep_loop_p_2): Delete function.
13606 (can_sm_ref_p): Pass LOOP as additional argument to
13607 ref_indep_loop_p.
13608
13609 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
13610
13611 PR target/72853
13612 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
13613 being an offsettable address.
13614
13615 2016-08-10 Martin Liska <mliska@suse.cz>
13616
13617 PR gcov-profile/58306
13618 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
13619 atomic variants of profile update functions.
13620
13621 2016-08-10 Martin Liska <mliska@suse.cz>
13622
13623 Cherry picked (and modified) from google-4_7 branch
13624 2012-12-26 Rong Xu <xur@google.com>
13625 * common.opt (fprofile-update): Add new flag.
13626 * coretypes.h: Define enum profile_update.
13627 * doc/invoke.texi: Document -fprofile-update.
13628 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
13629 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
13630 * tree-profile.c (gimple_init_edge_profiler): Generate
13631 also atomic profiler update.
13632 (gimple_gen_edge_profiler): Likewise.
13633
13634 2016-08-10 David Malcolm <dmalcolm@redhat.com>
13635
13636 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
13637 stack_usage_file to NULL after fclose calls.
13638
13639 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13640
13641 PR target/71873
13642 * reload.c (push_reload): Compute subreg_in_class for
13643 subregs of constants and plus expressions. Remove special
13644 handling of SYMBOL_REFs.
13645
13646 2016-08-10 Alan Modra <amodra@gmail.com>
13647
13648 PR target/71680
13649 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
13650 SImode for TARGET_E500_DOUBLE when given SImode.
13651
13652 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
13653
13654 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
13655 unused variable __O.
13656
13657 2016-08-09 Martin Liska <mliska@suse.cz>
13658
13659 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
13660 _gcov_reset to __gcov_reset.
13661 * doc/gcov-tool.texi: Fix typo.
13662
13663 2016-08-09 Martin Liska <mliska@suse.cz>
13664
13665 * value-prof.c (gimple_divmod_values_to_profile): Do not
13666 instrument MOD histogram if a value is not a SSA name.
13667
13668 2016-08-09 Martin Liska <mliska@suse.cz>
13669
13670 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
13671 values.
13672
13673 2016-08-09 Renlin Li <renlin.li@arm.com>
13674
13675 PR middle-end/64971
13676 * calls.c (prepare_call_address): Convert funexp to Pmode when
13677 necessary.
13678 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
13679 (sibcall_value): Likewise.
13680
13681 2016-08-09 Marek Polacek <polacek@redhat.com>
13682
13683 PR c/7652
13684 * cselib.c (cselib_expand_value_rtx_1): Add return.
13685 * gengtype.c (dbgprint_count_type_at): Likewise.
13686 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
13687 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
13688
13689 2016-08-09 Martin Jambor <mjambor@suse.cz>
13690
13691 PR ipa/71981
13692 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
13693 if instance is a MEM_REF.
13694
13695 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
13696
13697 PR target/72843
13698 * config/i386/i386.md (*movtf_internal): Use
13699 lra_in_progress || reload_completed instead of !can_create_pseudo_p
13700 in the insn constraint.
13701 (*movxf_internal): Ditto.
13702 (*movdf_internal): Ditto.
13703 (*movsf_internal): Ditto.
13704
13705 2016-08-09 Bin Cheng <bin.cheng@arm.com>
13706
13707 PR tree-optimization/72772
13708 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
13709 for expanded base.
13710
13711 2016-08-09 Bin Cheng <bin.cheng@arm.com>
13712
13713 PR tree-optimization/72772
13714 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
13715 parameter STOP.
13716 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
13717 parameter STOP and update calls. Move expand_simple_operations
13718 function call from here...
13719 (simplify_using_initial_conditions): ...to here. Delete parameter
13720 STOP.
13721 (tree_simplify_using_condition): Delete parameter STOP.
13722 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
13723 simplify_using_initial_conditions.
13724
13725 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
13726
13727 PR c/65345
13728 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
13729 Use create_tmp_var_raw instead of create_tmp_var.
13730
13731 2016-08-09 Richard Biener <rguenther@suse.de>
13732
13733 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
13734 Treat same SSA names related.
13735
13736 2016-08-09 Jakub Jelinek <jakub@redhat.com>
13737
13738 PR tree-optimization/72824
13739 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
13740 real_zerop is not negative.
13741
13742 2016-08-09 Richard Biener <rguenther@suse.de>
13743
13744 PR tree-optimization/71802
13745 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
13746 all merge opportunities with the predecessor.
13747
13748 2016-08-09 Richard Biener <rguenther@suse.de>
13749
13750 PR ipa/68273
13751 * ipa-prop.c (ipa_modify_formal_parameters): Build
13752 parameter types with natural alignment also for the
13753 over-aligned case.
13754
13755 2016-08-08 Andi Kleen <ak@linux.intel.com>
13756
13757 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
13758
13759 2016-08-08 David Malcolm <dmalcolm@redhat.com>
13760
13761 PR c/64955
13762 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
13763 do-nothing langhook.
13764 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
13765 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
13766 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
13767 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
13768
13769 2016-08-08 David Malcolm <dmalcolm@redhat.com>
13770
13771 PR bootstrap/72844
13772 * input.c: Ensure that HAVE_ICONV is defined.
13773
13774 2016-08-08 Jakub Jelinek <jakub@redhat.com>
13775
13776 PR middle-end/72781
13777 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
13778 private vars for lastprivate and for linear iterator.
13779
13780 PR middle-end/68762
13781 * omp-simd-clone.c: Include varasm.h.
13782 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
13783 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
13784 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
13785 update function name.
13786
13787 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13788
13789 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
13790 (avr_diagnose_devicespecs_error): Remove.
13791 (avr_devicespecs_file): Remove composing absolute path for specfile
13792 and its verbose info. Remove conditions to check specs-file,
13793
13794 2016-08-08 Jakub Jelinek <jakub@redhat.com>
13795
13796 PR rtl-optimization/72821
13797 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
13798 just return false for them.
13799
13800 2016-08-08 Alan Modra <amodra@gmail.com>
13801
13802 PR target/72771
13803 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
13804 toc refs created during reload. Update function comment.
13805
13806 2016-08-08 Alan Modra <amodra@gmail.com>
13807
13808 PR target/72802
13809 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
13810 alternatives. Put loads first, then stores, and reg/reg moves
13811 within same class later. Delete attr length.
13812
13813 2016-08-08 Alan Modra <amodra@gmail.com>
13814
13815 PR target/72802
13816 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
13817 (mem_operand_ds_form): New predicate.
13818 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
13819 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
13820 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
13821 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
13822 (extendsfdf2_fpr): Replace o constraint with wY.
13823
13824 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
13825
13826 * tree-ssa-threadbackward.c: Include tree-inline.h
13827 (profitable_jump_thread_path): Use estimate_num_insns to estimate
13828 size of copied block; for cold paths reduce duplication.
13829 (find_jump_threads_backwards): Remove redundant tests.
13830 (pass_thread_jumps::gate): Enable for -Os.
13831
13832 2016-08-07 Jakub Jelinek <jakub@redhat.com>
13833
13834 PR c/72816
13835 * stor-layout.c (layout_decl): Fix up formatting.
13836 (relayout_decl): Allow DECL to be FIELD_DECL.
13837
13838 2016-08-07 Alan Modra <amodra@gmail.com>
13839
13840 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
13841
13842 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
13843
13844 * data-streamer-in.c (streamer_read_wide_int): New.
13845 (streamer_read_widest_int): Renamed function.
13846 * data-streamer-out.c (streamer_write_wide_int): New
13847 (streamer_write_widest_int): Renamed function.
13848 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
13849 data-stream-in.c.
13850 (input_cfg): Call renamed function.
13851 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
13852 data-stream-out.c.
13853 (output_cfg): Call renamed function.
13854 * data-streamer.h: Add declarations.
13855
13856 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13857
13858 * tree-ssa-ccp.c (extend_mask): New param sgn.
13859 Remove ORing with wi::mask.
13860 (get_default_value): Adjust call to extend_mask to pass sign.
13861 (evaluate_stmt): Likewise.
13862
13863 2016-08-06 Jakub Jelinek <jakub@redhat.com>
13864
13865 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
13866 INT64_MAX.
13867
13868 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13869
13870 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
13871 transform if operand's type is pointer to function or method.
13872
13873 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
13874
13875 PR tree-optimization/18046
13876 * tree-ssa-threadedge.c: Include cfganal.h.
13877 (simplify_control_statement_condition): If simplifying a
13878 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
13879 with the dominating ASSERT_EXPR before handing it off to VRP.
13880 Mention that a CASE_LABEL_EXPR may be returned.
13881 (thread_around_empty_blocks): Adjust to handle
13882 simplify_control_statement_condition() returning a
13883 CASE_LABEL_EXPR.
13884 (thread_through_normal_block): Likewise.
13885 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
13886 a switch statement by trying to determine which case label
13887 will be taken.
13888
13889 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
13890
13891 PR rtl-optimization/69847
13892 * lra-constraints.c (process_invariant_for_inheritance): Save
13893 pattern instead of src.
13894 (remove_inheritance_pseudos): Use the pattern. Add assert.
13895
13896 2016-08-05 David Malcolm <dmalcolm@redhat.com>
13897
13898 * input.c (string_concat::string_concat): New constructor.
13899 (string_concat_db::string_concat_db): New constructor.
13900 (string_concat_db::record_string_concatenation): New method.
13901 (string_concat_db::get_string_concatenation): New method.
13902 (string_concat_db::get_key_loc): New method.
13903 (class auto_cpp_string_vec): New class.
13904 (get_substring_ranges_for_loc): New function.
13905 (get_source_range_for_substring): New function.
13906 (get_num_source_ranges_for_substring): New function.
13907 (class selftest::lexer_test_options): New class.
13908 (struct selftest::lexer_test): New struct.
13909 (class selftest::ebcdic_execution_charset): New class.
13910 (selftest::ebcdic_execution_charset::s_singleton): New variable.
13911 (selftest::lexer_test::lexer_test): New constructor.
13912 (selftest::lexer_test::~lexer_test): New destructor.
13913 (selftest::lexer_test::get_token): New method.
13914 (selftest::assert_char_at_range): New function.
13915 (ASSERT_CHAR_AT_RANGE): New macro.
13916 (selftest::assert_num_substring_ranges): New function.
13917 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
13918 (selftest::assert_has_no_substring_ranges): New function.
13919 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
13920 (selftest::test_lexer_string_locations_simple): New function.
13921 (selftest::test_lexer_string_locations_ebcdic): New function.
13922 (selftest::test_lexer_string_locations_hex): New function.
13923 (selftest::test_lexer_string_locations_oct): New function.
13924 (selftest::test_lexer_string_locations_letter_escape_1): New function.
13925 (selftest::test_lexer_string_locations_letter_escape_2): New function.
13926 (selftest::test_lexer_string_locations_ucn4): New function.
13927 (selftest::test_lexer_string_locations_ucn8): New function.
13928 (selftest::uint32_from_big_endian): New function.
13929 (selftest::test_lexer_string_locations_wide_string): New function.
13930 (selftest::uint16_from_big_endian): New function.
13931 (selftest::test_lexer_string_locations_string16): New function.
13932 (selftest::test_lexer_string_locations_string32): New function.
13933 (selftest::test_lexer_string_locations_u8): New function.
13934 (selftest::test_lexer_string_locations_utf8_source): New function.
13935 (selftest::test_lexer_string_locations_concatenation_1): New
13936 function.
13937 (selftest::test_lexer_string_locations_concatenation_2): New
13938 function.
13939 (selftest::test_lexer_string_locations_concatenation_3): New
13940 function.
13941 (selftest::test_lexer_string_locations_macro): New function.
13942 (selftest::test_lexer_string_locations_stringified_macro_argument):
13943 New function.
13944 (selftest::test_lexer_string_locations_non_string): New function.
13945 (selftest::test_lexer_string_locations_long_line): New function.
13946 (selftest::test_lexer_char_constants): New function.
13947 (selftest::input_c_tests): Call the new test functions once per
13948 case within the line_table test matrix.
13949 * input.h (struct string_concat): New struct.
13950 (struct location_hash): New struct.
13951 (class string_concat_db): New class.
13952 * substring-locations.h: New header.
13953
13954 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
13955
13956 PR tree-optimization/72810
13957 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
13958 the type of the case labels when truncating.
13959
13960 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
13961
13962 PR Target/72819
13963 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
13964 (aarch64_fp16_ptr_type_node): Likewise.
13965 * config/aarch64/aarch64-simd-builtins.c
13966 (aarch64_fp16_ptr_type_node): Define.
13967 (aarch64_init_fp16_types): New, refactored out of...
13968 (aarch64_init_builtins): ...here, update to call
13969 aarch64_init_fp16_types.
13970 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
13971 HFmode.
13972 (aapcs_vfp_sub_candidate): Likewise.
13973
13974 2016-08-05 Martin Liska <mliska@suse.cz>
13975 Joshua Cranmer <Pidgeot18@gmail.com>
13976
13977 * gcov.c (line_t::has_block): New function.
13978 (enum loop_type): New enum.
13979 (handle_cycle): New function.
13980 (unblock): Likewise.
13981 (circuit): Likewise.
13982 (get_cycles_count): Likewise.
13983 (accumulate_line_counts): Use new loop detection algorithm.
13984
13985 2016-08-05 Martin Liska <mliska@suse.cz>
13986
13987 * gcov.c (output_intermediate_file): Rename
13988 function_info::line_next to next_file_fn.
13989 (process_file): Likewise.
13990 (read_graph_file): Likewise.
13991 (accumulate_line_counts): Likewise.
13992 (output_lines): Likewise.
13993
13994 2016-08-05 Richard Biener <rguenther@suse.de>
13995
13996 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
13997 restriction on threading to a loop header.
13998
13999 2016-08-05 Richard Biener <rguenther@suse.de>
14000
14001 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
14002 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
14003 adjust loop info accordingly.
14004
14005 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
14006
14007 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
14008 before folding call to __builtin_constant_p with parameters to false.
14009
14010 2016-08-05 Alan Modra <amodra@gmail.com>
14011
14012 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
14013 code accidentally committed 2016-05-02 providing class when given
14014 NO_REGS.
14015
14016 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
14017
14018 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
14019 the case label ranges that partially overlap with OP's value
14020 range.
14021
14022 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
14023
14024 PR target/72805
14025 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
14026 Cast builtin function result to __mmask16 instead of __mmask8.
14027 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
14028 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
14029 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
14030
14031 2016-08-04 David Malcolm <dmalcolm@redhat.com>
14032
14033 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
14034 (ASSERT_TRUE_AT): New macro.
14035 (ASSERT_FALSE): Reimplement in terms of...
14036 (ASSERT_FALSE_AT): New macro.
14037 (ASSERT_STREQ_AT): Fix typo in comment.
14038
14039 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
14040
14041 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
14042 labels are exhaustive, designate the label with the widest
14043 range to be the default label.
14044
14045 2016-08-04 Andrew Pinski <apinski@cavium.com>
14046
14047 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
14048 (thunderx_tunings): Use thunderx_vector_cost instead of
14049 generic_vector_cost.
14050
14051 2016-08-04 Martin Liska <mliska@suse.cz>
14052
14053 * gcov.c (main): Fix GNU coding style.
14054 (output_intermediate_file): Likewise.
14055 (process_file): Likewise.
14056 (generate_results): Likewise.
14057 (release_structures): Likewise.
14058 (create_file_names): Likewise.
14059 (find_source): Likewise.
14060 (read_graph_file): Likewise.
14061 (find_exception_blocks): Likewise.
14062 (canonicalize_name): Likewise.
14063 (make_gcov_file_name): Likewise.
14064 (mangle_name): Likewise.
14065 (accumulate_line_counts): Likewise.
14066 (output_branch_count): Likewise.
14067 (read_line): Likewise.
14068
14069 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
14070
14071 PR rtl-optimization/71779
14072 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
14073 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
14074 or if it was truncated.
14075
14076 PR rtl-optimization/70903
14077 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
14078
14079 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
14080
14081 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
14082 accessing SSA_NAME_PTR_INFO.
14083
14084 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
14085
14086 PR 70677
14087 * common/config/avr/avr-common.c (avr_option_optimization_table)
14088 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
14089
14090 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
14091
14092 PR 55181
14093 * config/avr/avr.md: New pattern to work around do_store_flag
14094 generating shift instructions for bit extractions.
14095
14096 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
14097
14098 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
14099 BITMAP_ALLOC.
14100 (add_equivalence): Likewise.
14101 (get_value_range): Allocate value range with vrp_value_range_pool.
14102 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
14103 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
14104
14105 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
14106
14107 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
14108 the default for the rs6000 port.
14109
14110 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14111
14112 PR middle-end/71876
14113 * calls.c (special_function_p): Remove special handling of
14114 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
14115 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
14116 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
14117
14118 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
14119
14120 PR middle-end/72778
14121 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
14122 Don't stop on regular insns.
14123
14124 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
14125
14126 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
14127 size to DImode boundary.
14128 (nvptx_propagate): Likewise.
14129
14130 2016-08-03 Alan Modra <amodra@gmail.com>
14131
14132 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
14133 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
14134 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
14135 from -mefficient-unaligned-vector. Note that this affects fp too.
14136
14137 2016-08-03 Alan Modra <amodra@gmail.com>
14138
14139 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
14140 cost more.
14141
14142 2016-08-03 Alan Modra <amodra@gmail.com>
14143
14144 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
14145 to a reg. Localize vars.
14146
14147 2016-08-03 Alan Modra <amodra@gmail.com>
14148
14149 * config/rs6000/rs6000.opt: Remove negatives from help strings
14150 and comments.
14151
14152 2016-08-03 Alan Modra <amodra@gmail.com>
14153
14154 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
14155 Delete duplicated code.
14156
14157 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
14158
14159 PR middle-end/72778
14160 * lra-spills.c (regno_in_use_p): New.
14161 (lra_final_code_change): Use it.
14162
14163 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
14164
14165 PR rtl-optimization/69847
14166 * lra-int.h (struct lra-reg): Use restore_rtx instead of
14167 restore_regno.
14168 (lra_rtx_hash): New.
14169 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
14170 of restore_regno.
14171 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
14172 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
14173 * lra-spills.c (lra_final_code_change): Don't delete insn when the
14174 next insn is USE with the same reg as the current insn source.
14175 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
14176 of restore_regno.
14177 (lra_constraints_init): Call initiate_invariants.
14178 (lra_constraints_finish): Call finish_invariants.
14179 (struct invariant, invariant_t, invariant_ptr_t): New.
14180 (const_invariant_ptr_t, invariants, invariants_pool): New.
14181 (invariant_table, invariant_hash, invariant_eq_p): New.
14182 (insert_invariant, initiate_invariants, finish_invariants): New.
14183 (clear_invariants, invalid_invariant_regs): New.
14184 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
14185 instead of restore_regno.
14186 (invariant_p, process_invariant_for_inheritance): New.
14187 (inherit_in_ebb): Implement invariant inheritance.
14188 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
14189 (remove_inheritance_pseudos): Implement undoing invariant
14190 inheritance.
14191 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
14192 instead of restore_regno.
14193 * lra-assigns.c (regno_live_length): New.
14194 (reload_pseudo_compare_func): Use regno_live_length.
14195 (assign_by_spills): Use restore_rtx instead of restore_regno.
14196 (lra_assign): Ditto. Initiate regno_live_length.
14197
14198 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
14199
14200 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
14201 __builtin_aarch64_fmindf.
14202
14203 2016-08-02 Bin Cheng <bin.cheng@arm.com>
14204
14205 PR tree-optimization/34114
14206 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
14207 information for more control IVs.
14208
14209 2016-08-02 Bin Cheng <bin.cheng@arm.com>
14210
14211 PR tree-optimization/34114
14212 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
14213 PLUS_EXPR case. Handle SSA_NAME case.
14214
14215 2016-08-02 Tamar Christina <tamar.christina@arm.com>
14216
14217 * config/aarch64/aarch64-simd-builtins.def
14218 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
14219 (__builtin_aarch64_fmaxdf): Likewise.
14220 (__builtin_aarch64_smin_nandf): Likewise.
14221 (__builtin_aarch64_smax_nandf): Likewise.
14222 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
14223 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
14224 (<fmaxmin><mode>3): ...this.
14225 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
14226 (vminnm_f64): Likewise.
14227 (vmin_f64): Likewise.
14228 (vmax_f64): Likewise.
14229 * config/aarch64/iterators.md (FMAXMIN): Merge with...
14230 (FMAXMIN_UNS): ...this.
14231 (fmaxmin): Merged with
14232 (fmaxmin_op): ...this...
14233 (maxmin_uns_op): ...in to this.
14234
14235 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14236
14237 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14238 Add support for vec_extract on vector float, vector int, vector
14239 short, and vector char vector types.
14240 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14241 vector float, vector int, vector short, and vector char
14242 optimizations on 64-bit ISA 2.07 systems for both constant and
14243 variable element numbers.
14244 (rs6000_split_vec_extract_var): Likewise.
14245 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
14246 Altivec registers on ISA 2.07 and above.
14247 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
14248 which never was matched due to the split occuring before register
14249 allocation (and the code would not have worked on little endian
14250 systems if it did match). Allow extracts to go to the Altivec
14251 registers if ISA 2.07 (power8). Change from using "" around the
14252 C++ code to using {}'s.
14253 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
14254 vec_extracts when the vector is in memory.
14255 (vsx_extract_v4sf_var): New insn to optimize vector float
14256 vec_extracts when the element number is variable on 64-bit ISA
14257 2.07 systems.
14258 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
14259 for 64-bit ISA 2.07 as well as ISA 3.0.
14260 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
14261 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
14262 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
14263 optimize vector int, vector short, and vector char vec_extracts
14264 when the vector is in memory.
14265 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
14266 optimize vector int, vector short, and vector char vec_extracts
14267 when the element number is variable.
14268
14269 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
14270
14271 PR target/71948
14272 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
14273 does not overlap with other symbol flags.
14274
14275 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
14276
14277 * config/aarch64/aarch64.h (aarch64_frame):
14278 Remove padding0 and hardfp_offset. Add locals_offset,
14279 initial_adjust, callee_adjust, callee_offset and final_adjust.
14280 * config/aarch64/aarch64.c (aarch64_layout_frame):
14281 Remove unused padding0 and hardfp_offset initializations.
14282 Choose frame layout and set frame variables accordingly.
14283 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
14284 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
14285 (aarch64_pop_regs): Likewise.
14286 (aarch64_expand_prologue): Remove all decision code, just emit
14287 prolog according to frame variables.
14288 (aarch64_expand_epilogue): Remove all decision code, just emit
14289 epilog according to frame variables.
14290 (aarch64_initial_elimination_offset): Use offset to local/arg area.
14291
14292 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
14293
14294 PR target/72748
14295 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
14296 fix_debug_reg_uses after changing source register mode to
14297 V1TImode if source register is undefined.
14298
14299 2015-08-01 Alan Hayward <alan.hayward@arm.com>
14300
14301 PR tree-optimization/71818
14302 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
14303 with non invariant evolutions
14304
14305 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
14306
14307 PR target/72767
14308 * config/avr/avr.md (length) [branch]: Correct insn length
14309 attribute for forward branches.
14310
14311 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
14312
14313 * doc/extend.texi (AVR Built-in Functions): Document
14314 __builtin_avr_nops.
14315 * config/avr/builtins.def (NOPS): New.
14316 * config/avr/avr.c (avr_expand_nops): New static function.
14317 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
14318
14319 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14320
14321 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
14322 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
14323 addresses.
14324
14325 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
14326
14327 * config/aarch64/aarch64.c (vulcan_tunings): Update
14328 vulcan L1 cache_line_size.
14329
14330 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
14331
14332 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
14333 function that takes a vector memory address, a hard register, an
14334 element number and a temporary base register, and recreates an
14335 address that points to the appropriate element within the vector.
14336 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
14337 (rs6000_split_vec_extract_var): Add support for the target of a
14338 vec_extract with variable element number being a scalar memory
14339 location.
14340 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
14341 swappable.
14342 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
14343 vsx_extract_<mode>_load insn with a new insn that optimizes
14344 storing either element to a memory location, using scratch
14345 registers to pick apart the vector and reconstruct the address.
14346 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
14347 (vsx_extract_<mode>_store): Rework alternatives to more correctly
14348 support Altivec registers. Add support for ISA 3.0 Altivec d-form
14349 store instruction.
14350 (vsx_extract_<mode>_var): Add support for extracting a variable
14351 element number from memory.
14352
14353 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
14354
14355 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
14356 when testing for compares against constants of the form 0xabab.
14357
14358 2016-07-29 Bin Cheng <bin.cheng@arm.com>
14359
14360 PR tree-optimization/57558
14361 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
14362 function.
14363 (vect_loop_versioning): Support versioning with niter assumptions.
14364 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
14365 (vect_get_loop_niters): New parameter. Reimplement to support
14366 assumptions in loop niter info.
14367 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
14368 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
14369 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
14370 Support loop versioning for niters.
14371 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
14372 (vect_free_loop_info_assumptions): New function.
14373 (vectorize_loops): Free loop niter info for loops with flag
14374 LOOP_F_ASSUMPTIONS set if vectorization failed.
14375 * tree-vectorizer.h (struct _loop_vec_info): New field
14376 num_iters_assumptions.
14377 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
14378 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
14379 (LOOP_REQUIRES_VERSIONING): New macro.
14380 (vect_free_loop_info_assumptions): New decl.
14381
14382 2016-07-29 Bin Cheng <bin.cheng@arm.com>
14383
14384 * cfgloop.h (struct loop): New field constraints.
14385 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
14386 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
14387 functions.
14388 * cfgloop.c (alloc_loop): Initialize new field.
14389 * cfgloopmanip.c (copy_loop_info): Copy constraints.
14390 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
14391 Adjust niter analysis wrto loop constraints.
14392 * doc/loop.texi (@node Number of iterations): Add description for loop
14393 constraints.
14394
14395 2016-07-29 Marek Polacek <polacek@redhat.com>
14396
14397 PR c/7652
14398 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
14399 (ix86_expand_round_builtin): Likewise.
14400
14401 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
14402 Georg-Johann Lay <avr@gjlay.de>
14403
14404 PR rtl-optimization/71976
14405 * combine.c (get_last_value): Return 0 if the argument for which
14406 the function is called has a wider mode than the recorded value.
14407
14408 2016-07-29 Marek Polacek <polacek@redhat.com>
14409
14410 PR c/7652
14411 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
14412 (altivec_expand_st_builtin): Likewise.
14413
14414 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
14415
14416 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
14417 introduced in r238381.
14418
14419 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
14420
14421 PR middle-end/68217
14422 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
14423 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
14424
14425 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
14426
14427 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
14428 New declaration.
14429 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14430 Add support for vec_extract of vector double or vector long having
14431 a variable element number on 64-bit ISA 2.07 systems or newer.
14432 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
14433 Likewise.
14434 (rs6000_split_vec_extract_var): New function to split a
14435 vec_extract built-in function with variable element number.
14436 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
14437 swappable.
14438 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
14439 (UNSPEC_VSX_EXTRACT): Likewise.
14440 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
14441 direct move instructions to be generated on 64-bit ISA 2.07
14442 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
14443 instruction.
14444 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
14445 arguments for vec_extract variable element.
14446 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
14447 vec_extract with variable element on V2DFmode and V2DImode
14448 vectors.
14449 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
14450 -mupper-regs-df requirement, since it isn't needed.
14451 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
14452 do direct moves on 64-bit systems, which allows optimization of
14453 vec_extract on 64-bit ISA 2.07 systems and newer.
14454
14455 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
14456 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
14457
14458 * config/aarch64/aarch64.md
14459 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
14460 statement and type.
14461 (<optab>qihi2_aarch64): Likewise, and split into two.
14462 (extendqihi2_aarch64): New.
14463 (zero_extendqihi2_aarch64): New.
14464 * config/aarch64/iterators.md (ldrxt): Remove.
14465 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
14466 uxtb/uxth.
14467
14468 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
14469
14470 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
14471
14472 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
14473
14474 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
14475 (aarch64_push_reg): New function to push 1 or 2 registers.
14476 (aarch64_pop_reg): New function to pop 1 or 2 registers.
14477 (aarch64_expand_prologue): Use aarch64_push_regs.
14478 (aarch64_expand_epilogue): Use aarch64_pop_regs.
14479
14480 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
14481
14482 PR tree-optimization/71734
14483 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
14484 attribute instead of REF_LOOP and use it.
14485 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
14486 set it for Loops having non-zero safelen attribute.
14487 (ref_indep_loop_p): Pass zero as initial value for safelen.
14488
14489 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
14490
14491 PR middle-end/72657
14492 PR target/72683
14493 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
14494 call using chkp_gimple_call_builtin_p.
14495 (chkp_copy_bounds_for_assign): Likewise.
14496
14497 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14498
14499 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
14500 * config/arm/arm-protos.h (struct tune_params): Likewise.
14501 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
14502 (cortex_a9_sched_adjust_cost): Likewise.
14503 (fa726te_sched_adjust_cost): Likewise.
14504 (arm_adjust_cost): Likewise.
14505 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
14506 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
14507 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
14508 * config/i386/i386.c (ix86_adjust_cost): Likewise.
14509 * config/ia64/ia64.c: Likewise.
14510 * config/m68k/m68k.c: Likewise.
14511 * config/mep/mep.c (mep_adjust_cost): Likewise.
14512 * config/microblaze/microblaze.c (microblaze_adjust_cost):
14513 * Likewise.
14514 * config/mips/mips.c (mips_adjust_cost): Likewise.
14515 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
14516 * Likewise.
14517 * config/pa/pa.c (pa_adjust_cost): Likewise.
14518 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
14519 (rs6000_debug_adjust_cost): Likewise.
14520 * config/sh/sh.c (sh_adjust_cost): Likewise.
14521 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
14522 (hypersparc_adjust_cost): Likewise.
14523 (sparc_adjust_cost): Likewise.
14524 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
14525 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
14526 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
14527 * Likewise.
14528 * config/visium/visium.c (visium_adjust_cost): Likewise.
14529 * doc/tm.texi: Regenerate.
14530 * haifa-sched.c (dep_cost_1): Adjust.
14531 * target.def: Merge adjust_cost and adjust_cost_2.
14532
14533 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14534
14535 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
14536
14537 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14538
14539 * store-motion.c (struct st_expr): Make pattern_regs a vector.
14540 (extract_mentioned_regs): Append to a vector instead of
14541 returning a rtx_expr_list.
14542 (st_expr_entry): Adjust.
14543 (free_st_expr_entry): Likewise.
14544 (store_ops_ok): Likewise.
14545 (store_killed_in_insn): Likewise.
14546 (find_moveable_store): Likewise.
14547
14548 2016-07-28 Martin Liska <mliska@suse.cz>
14549
14550 PR gcov-profile/68025
14551 * tree-profile.c (tree_profiling): Respect
14552 no_profile_instrument_function attribute.
14553 * doc/extend.texi: Document no_profile_instrument_function
14554 attribute.
14555
14556 2016-07-28 Martin Liska <mliska@suse.cz>
14557
14558 PR rtl-optimization/70944
14559 * combine.c (make_compound_operation):
14560 Do not allow make_compound_operation for vector mode
14561
14562 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
14563
14564 PR middle-end/71994
14565 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
14566 before calling get_ops.
14567
14568 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
14569
14570 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
14571 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
14572 (BITS_PER_UNIT_LOG): Remove.
14573 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
14574 * expr.c (expand_assignment): Likewise.
14575 * stor-layout.c (initialize_sizetypes): Likewise.
14576
14577 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
14578
14579 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
14580 signature of rs6000_expand_vector_extract so that the element
14581 number is a RTX instead of a constant integer.
14582 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
14583 Likewise.
14584 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
14585 (altivec_expand_vec_ext_builtin): Likewise.
14586 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
14587 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
14588 MFVSRLD instruction.
14589
14590 2016-07-27 David Malcolm <dmalcolm@redhat.com>
14591
14592 * input.c (get_pure_location): Move here from tree.c.
14593 (make_location): Likewise. Add header comment.
14594 (selftest::test_accessing_ordinary_linemaps): Verify
14595 pure_location_p, make_location, get_location_from_adhoc_loc and
14596 get_range_from_loc.
14597 * input.h (get_pure_location): Move declaration here from tree.h.
14598 (get_finish): Likewise for inline function.
14599 (make_location): Likewise for declaration.
14600 * tree.c (get_pure_location): Move to input.c.
14601 (make_location): Likewise.
14602 * tree.h (get_pure_location): Move declaration to tree.h.
14603 (get_finish): Likewise for inline function.
14604 (make_location): Likewise for declaration.
14605
14606 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14607
14608 PR middle-end/71078
14609 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
14610
14611 2016-07-27 David Malcolm <dmalcolm@redhat.com>
14612
14613 * system.h (STATIC_ASSERT): Use static_assert if building
14614 with C++11 onwards.
14615
14616 2016-07-27 Richard Biener <rguenther@suse.de>
14617
14618 PR tree-optimization/72517
14619 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
14620 Revert change to not compute read-read dependences.
14621
14622 2016-07-27 Richard Biener <rguenther@suse.de>
14623
14624 * predict.c (set_even_probabilities): Make nedges unsigned.
14625
14626 2016-07-27 Martin Liska <mliska@suse.cz>
14627
14628 * predict.c (set_even_probabilities): Handle unlikely edges.
14629 (combine_predictions_for_bb): Likewise.
14630
14631 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14632
14633 PR target/71869
14634 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
14635 __float128 support when we don't have hardware support, so that
14636 the IEEE built-in functions like isgreater, first call __unordkf3
14637 to make sure neither operand is a NaN, and if both operands are
14638 ordered, do the normal comparison.
14639
14640 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
14641
14642 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
14643 name.
14644 (extract_code_and_val_from_cond_with_ops): Verify that name is
14645 either cond_op0 or cond_op1.
14646
14647 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
14648
14649 PR tree-optimization/18046
14650 * genmodes.c (emit_mode_size_inline): Emit an assert that
14651 verifies that mode is a valid array index.
14652 (emit_mode_nuinits_inline): Likewise.
14653 (emit_mode_inner_inline): Likewise.
14654 (emit_mode_unit_size_inline): Likewise.
14655 (emit_mode_unit_precision_inline): Likewise.
14656 * tree-vrp.c: Include params.h.
14657 (find_switch_asserts): Register edge assertions for the default
14658 label which correspond to the anti-ranges of each case label.
14659 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
14660 * doc/invoke.texi: Document it.
14661
14662 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14663
14664 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
14665 and unnecessary call to gimple_bb.
14666
14667 2016-07-26 Richard Biener <rguenther@suse.de>
14668
14669 PR rtl-optimization/71984
14670 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
14671 for VOIDmode.
14672
14673 2016-07-26 Richard Biener <rguenther@suse.de>
14674
14675 PR middle-end/72517
14676 * expmed.c (extract_bit_field_1): Constrain the vector mode
14677 with element size matching the extraction mode size when
14678 choosing a better vector mode to do the extraction from.
14679
14680 2016-07-26 Richard Biener <rguenther@suse.de>
14681 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14682
14683 PR middle-end/70920
14684 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
14685 pattern.
14686
14687 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14688
14689 * tree-ssa-structalias.c (struct scc_info): Change types of
14690 members to auto_sbitmap and auto_vec.
14691 (scc_info::scc_info): New constructor.
14692 (scc_info::~scc_info): New destructor.
14693 (init_scc_info): Remove.
14694 (free_scc_info): Remove.
14695 (find_indirect_cycles): Adjust.
14696 (perform_var_substitution): Likewise.
14697 (free_var_substitution_info): Likewise.
14698
14699 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14700
14701 * tree-outof-ssa.c (struct elim_graph): Change type of members
14702 to auto_vec and auto_sbitmap.
14703 (elim_graph::elim_graph): New constructor.
14704 (delete_elim_graph): Remove.
14705 (expand_phi_nodes): Adjust.
14706
14707 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14708
14709 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
14710 (new_elim_graph): Adjust.
14711 (clear_elim_graph): Likewise.
14712 (delete_elim_graph): Likewise.
14713 (elim_graph_size): Likewise.
14714 (elim_graph_add_node): Likewise.
14715 (elim_graph_add_edge): Likewise.
14716 (elim_graph_remove_succ_edge): Likewise.
14717 (eliminate_name): Likewise.
14718 (eliminate_build): Likewise.
14719 (elim_forward): Likewise.
14720 (elim_unvisited_predecessor): Likewise.
14721 (elim_backward): Likewise.
14722 (elim_create): Likewise.
14723 (eliminate_phi): Likewise.
14724 (expand_phi_nodes): Likewise.
14725
14726 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14727
14728 * bt-load.c (compute_out): Use auto_sbitmap class.
14729 (link_btr_uses): Likewise.
14730 * cfganal.c (mark_dfs_back_edges): Likewise.
14731 (post_order_compute): Likewise.
14732 (inverted_post_order_compute): Likewise.
14733 (pre_and_rev_post_order_compute_fn): Likewise.
14734 (single_pred_before_succ_order): Likewise.
14735 * cfgexpand.c (pass_expand::execute): Likewise.
14736 * cfgloop.c (verify_loop_structure): Likewise.
14737 * cfgloopmanip.c (fix_bb_placements): Likewise.
14738 (remove_path): Likewise.
14739 (update_dominators_in_loop): Likewise.
14740 * cfgrtl.c (break_superblocks): Likewise.
14741 * ddg.c (check_sccs): Likewise.
14742 (create_ddg_all_sccs): Likewise.
14743 * df-core.c (df_worklist_dataflow): Likewise.
14744 * dse.c (dse_step3): Likewise.
14745 * except.c (eh_region_outermost): Likewise.
14746 * function.c (thread_prologue_and_epilogue_insns): Likewise.
14747 * gcse.c (prune_expressions): Likewise.
14748 (prune_insertions_deletions): Likewise.
14749 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
14750 * graph.c (draw_cfg_nodes_no_loops): Likewise.
14751 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
14752 * lcm.c (compute_earliest): Likewise.
14753 (compute_farthest): Likewise.
14754 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
14755 (unroll_loop_runtime_iterations): Likewise.
14756 (unroll_loop_stupid): Likewise.
14757 * lower-subreg.c (decompose_multiword_subregs): Likewise.
14758 * lra-lives.c: Likewise.
14759 * lra.c (lra): Likewise.
14760 * modulo-sched.c (schedule_reg_moves): Likewise.
14761 (optimize_sc): Likewise.
14762 (get_sched_window): Likewise.
14763 (sms_schedule_by_order): Likewise.
14764 (check_nodes_order): Likewise.
14765 (order_nodes_of_sccs): Likewise.
14766 (order_nodes_in_scc): Likewise.
14767 * recog.c (split_all_insns): Likewise.
14768 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
14769 * reload1.c (reload): Likewise.
14770 * sched-rgn.c (haifa_find_rgns): Likewise.
14771 (split_edges): Likewise.
14772 (compute_trg_info): Likewise.
14773 * sel-sched.c (init_seqno): Likewise.
14774 * store-motion.c (remove_reachable_equiv_notes): Likewise.
14775 * tree-into-ssa.c (update_ssa): Likewise.
14776 * tree-ssa-live.c (live_worklist): Likewise.
14777 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
14778 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
14779 * Likewise.
14780 (try_peel_loop): Likewise.
14781 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
14782 * Likewise.
14783 * tree-ssa-pre.c (compute_antic): Likewise.
14784 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
14785 * tree-stdarg.c (reachable_at_most_once): Likewise.
14786 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
14787 * var-tracking.c (vt_find_locations): Likewise.
14788
14789 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14790
14791 * sbitmap.h (auto_sbitmap): New class.
14792
14793 2016-07-26 Alan Modra <amodra@gmail.com>
14794
14795 PR target/72103
14796 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
14797 sri->t_icode.
14798
14799 2016-07-25 David Malcolm <dmalcolm@redhat.com>
14800
14801 * input.c (selftest::temp_source_file::temp_source_file): Fix
14802 missing "%s" in fprintf.
14803
14804 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
14805
14806 PR middle-end/71732
14807 * cselib.c (cselib_process_insn): Invalidate argument slots for
14808 const/pure calls.
14809
14810 2016-07-25 Jiong Wang <jiong.wang@arm.com>
14811
14812 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
14813 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
14814 vmulxh_lane_f16, vmulxh_laneq_f16): New.
14815
14816 2016-07-25 Jiong Wang <jiong.wang@arm.com>
14817
14818 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
14819 * config/aarch64/aarch64.md (fma, fnma): Support HF.
14820 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
14821
14822 2016-07-25 Jiong Wang <jiong.wang@arm.com>
14823
14824 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
14825 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
14826 New.
14827 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
14828 (add<mode>3): Likewise.
14829 (sub<mode>3): Likewise.
14830 (mul<mode>3): Likewise.
14831 (div<mode>3): Likewise.
14832 (*div<mode>3): Likewise.
14833 (<fmaxmin><mode>3): Extend to HF.
14834 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
14835 (fabd<mode>3): Likewise.
14836 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
14837 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
14838 (aarch64_fmulx<mode>): Likewise.
14839 (aarch64_fac<optab><mode>): Likewise.
14840 (aarch64_frecps<mode>): Likewise.
14841 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
14842 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
14843 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
14844 (VSDQ_HSDI): Support HI.
14845 (fcvt_target, FCVT_TARGET): Likewise.
14846 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
14847 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
14848 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
14849 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
14850 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
14851 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
14852 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
14853 vrsqrtsh_f16): New.
14854
14855 2016-07-25 Jiong Wang <jiong.wang@arm.com>
14856
14857 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
14858 * config/aarch64/aarch64-builtins.c (hi_UP): New.
14859 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
14860 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
14861 mode.
14862 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
14863 (aarch64_cm<optab><mode>): Likewise.
14864 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
14865 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
14866 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
14867 (sqrt<mode>2): Likewise.
14868 (*sqrt<mode>2): Likewise.
14869 (abs<mode>2): Likewise.
14870 (<optab><mode>hf2): New pattern for HF mode.
14871 (<optab>hihf2): Likewise.
14872 * config/aarch64/arm_neon.h: Include arm_fp16.h.
14873 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
14874 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
14875 Support HF mode.
14876 * config/aarch64/arm_fp16.h: New file.
14877 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
14878 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
14879 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
14880 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
14881 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
14882 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
14883 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
14884 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
14885 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
14886 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
14887 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
14888 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
14889 vsqrth_f16): New.
14890
14891 2016-07-25 Jiong Wang <jiong.wang@arm.com>
14892
14893 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
14894 reduc_smin_scal_): Use VDQIF_F16.
14895 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
14896 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
14897 Use VHSDF.
14898 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
14899 * config/aarch64/iterators.md (VDQIF_F16): New.
14900 (vp): Support HF modes.
14901 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
14902 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
14903
14904 2016-07-25 Jiong Wang <jiong.wang@arm.com>
14905
14906 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
14907 "*aarch64_mulx_elt_from_dup<mode>".
14908 (*aarch64_mul3_elt<mode>): Update schedule type.
14909 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
14910 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
14911 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
14912 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
14913 (f, fp): Support HF modes.
14914 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
14915 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
14916 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
14917 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
14918 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
14919 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
14920
14921 2016-07-25 Jiong Wang <jiong.wang@arm.com>
14922
14923 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
14924 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
14925 modes.
14926 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
14927 vfmsq_f16): New.
14928
14929 2016-07-25 Jiong Wang <jiong.wang@arm.com>
14930
14931 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
14932 * config/aarch64/aarch64-simd.md
14933 (aarch64_rsqrts<mode>): Extend to HF modes.
14934 (fabd<mode>3): Likewise.
14935 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
14936 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
14937 (aarch64_<maxmin_uns>p<mode>): Likewise.
14938 (<su><maxmin><mode>3): Likewise.
14939 (<maxmin_uns><mode>3): Likewise.
14940 (<fmaxmin><mode>3): Likewise.
14941 (aarch64_faddp<mode>): Likewise.
14942 (aarch64_fmulx<mode>): Likewise.
14943 (aarch64_frecps<mode>): Likewise.
14944 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
14945 (add<mode>3): Extend to HF modes.
14946 (sub<mode>3): Likewise.
14947 (mul<mode>3): Likewise.
14948 (div<mode>3): Likewise.
14949 (*div<mode>3): Likewise.
14950 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
14951 HF, V4HF and V8HF.
14952 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
14953 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
14954 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
14955 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
14956 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
14957 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
14958 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
14959 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
14960 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
14961 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
14962 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
14963 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
14964 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
14965 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
14966
14967 2016-07-25 Jiong Wang <jiong.wang@arm.com>
14968
14969 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
14970 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
14971 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
14972 (neg<mode>2): Likewise.
14973 (abs<mode>2): Likewise.
14974 (<frint_pattern><mode>2): Likewise.
14975 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
14976 (<optab><VDQF:mode><fcvt_target>2): Likewise.
14977 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
14978 (ftrunc<VDQF:mode>2): Likewise.
14979 (<optab><fcvt_target><VDQF:mode>2): Likewise.
14980 (sqrt<mode>2): Likewise.
14981 (*sqrt<mode>2): Likewise.
14982 (aarch64_frecpe<mode>): Likewise.
14983 (aarch64_cm<optab><mode>): Likewise.
14984 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
14985 HF, V4HF and V8HF.
14986 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
14987 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
14988 (stype): New.
14989 * config/aarch64/arm_neon.h (vdup_n_f16): New.
14990 (vdupq_n_f16): Likewise.
14991 (vld1_dup_f16): Use vdup_n_f16.
14992 (vld1q_dup_f16): Use vdupq_n_f16.
14993 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
14994 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
14995 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
14996 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
14997 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
14998 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
14999 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
15000 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
15001 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
15002 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
15003 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
15004 vsqrt_f16, vsqrtq_f16): New.
15005
15006 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15007
15008 * config/aarch64/aarch64-simd.md
15009 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
15010 (aarch64_ext<mode>): Likewise.
15011 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
15012 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
15013 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
15014 and V8HFmode.
15015 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
15016 float16x8_t.
15017 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
15018 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
15019 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
15020 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
15021 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
15022 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
15023 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
15024 New.
15025 (vmov_n_f16): Reimplement using vdup_n_f16.
15026 (vmovq_n_f16): Reimplement using vdupq_n_f16..
15027
15028 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15029
15030 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
15031 "frame_related_p". Generate CFA annotation when it's necessary.
15032 (aarch64_expand_prologue): Use aarch64_add_constant.
15033 (aarch64_expand_epilogue): Likewise.
15034 (aarch64_output_mi_thunk): Pass "false" when calling
15035 aarch64_add_constant.
15036
15037 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15038
15039 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
15040 sequences.
15041
15042 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15043
15044 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
15045 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
15046 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
15047 (aarch64_build_constant): Delete.
15048
15049 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
15050
15051 Revert
15052 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
15053
15054 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
15055 flag_toplevel_reorder.
15056
15057 2016-07-25 Richard Biener <rguenther@suse.de>
15058
15059 * cgraph.c (cgraph_node::verify_node): Compare against builtin
15060 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
15061 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
15062 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
15063 (streamer_get_builtin_tree): Likewise.
15064 (streamer_write_builtin): Likewise.
15065 * lto-streamer.h (LTO_builtin_decl): Remove.
15066 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
15067 (lto_input_scc): Remove LTO_builtin_decl handling.
15068 (lto_input_tree_1): Liekwise.
15069 * lto-streamer-out.c (lto_output_tree_1): Remove special
15070 handling of builtins.
15071 (DFS::DFS): Likewise.
15072 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
15073 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
15074 assert.
15075 (streamer_write_builtin): Remove.
15076
15077 2016-07-25 Martin Liska <mliska@suse.cz>
15078
15079 * lto-cgraph.c (input_symtab): Don't call get_working_sets
15080 if flag_auto_profile is set to true.
15081
15082 2016-07-25 Martin Liska <mliska@suse.cz>
15083
15084 PR gcov-profile/71868
15085 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
15086 have a function with multiple latches, count them all.
15087
15088 2016-07-25 Martin Liska <mliska@suse.cz>
15089
15090 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
15091
15092 2016-07-25 Martin Liska <mliska@suse.cz>
15093
15094 PR tree-optimization/71987
15095 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
15096 just for SSA_NAMEs. Fix GNU coding style.
15097
15098 2016-07-25 Martin Liska <mliska@suse.cz>
15099
15100 PR gcov-profile/64874
15101 * gcov-io.h: Update command about file format.
15102 * gcov-iov.c (main): Adapt the numbering scheme.
15103
15104 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
15105
15106 PR middle-end/66726
15107 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
15108 whose result is used in PHI.
15109 (final_range_test_p): Likewise.
15110 (maybe_optimize_range_tests): Likewise.
15111
15112 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
15113
15114 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15115 Reformat two multi-line strings.
15116
15117 2016-07-22 Martin Sebor <msebor@redhat.com>
15118
15119 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
15120
15121 2016-07-22 Martin Sebor <msebor@redhat.com>
15122
15123 PR c/71560
15124 * doc/extend.texi (Compound Literals): Correct and clarify.
15125 (Cast to Union): Same.
15126
15127 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
15128
15129 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
15130 comments to explain why certain error messages make mention of
15131 undocumented options.
15132 (rs6000_invalid_builtin): Change error messages to replace mention
15133 of undocumented options with mention of the -mcpu=power9 option
15134 that enables those undocumented options.
15135 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
15136 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
15137 definition of this macro to correct an existing error.
15138 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
15139 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
15140 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
15141 descriptions of built-in functions so that they depend on
15142 -mcpu=power9 instead of on the corresponding undocumented flags.
15143 * doc/invoke.texi (Option Summary): Remove all mention of newly
15144 undocumented flags.
15145 (IBM RS/6000 and PowerPC Options): Likewise.
15146 * doc/md.texi (Constraints for Particuliar Machines): Remove all
15147 mention of newly undocumented flags.
15148
15149 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
15150
15151 * ipa-cp.c (determine_versionability): Do not create constprop clones,
15152 when target_clones attribute is set.
15153
15154 2016-07-22 Bin Cheng <bin.cheng@arm.com>
15155
15156 * common.opt (funsafe-loop-optimizations): Mark ignore.
15157 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
15158 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
15159 related code.
15160 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
15161 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
15162
15163 2016-07-22 Bin Cheng <bin.cheng@arm.com>
15164
15165 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
15166 Parameter.
15167 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
15168 Parameter.
15169 (number_of_iterations_exit): Warn missed loop optimization for
15170 possible infinite loops.
15171
15172 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
15173
15174 PR target/71216
15175 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
15176 when to emit a ".machine" pseudo-op.
15177
15178 2016-07-22 Martin Liska <mliska@suse.cz>
15179
15180 PR gcov-profile/69028
15181 PR gcov-profile/62047
15182 * coverage.c (coverage_compute_lineno_checksum): Do not
15183 calculate checksum for fns w/o xloc.file.
15184 (coverage_compute_profile_id): Likewise.
15185
15186 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
15187
15188 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
15189 (avr_secondary_reload): ...and implementation.
15190 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
15191 * config/avr/avr.md (reload_in<mode>): Remove insns.
15192 (adjust_len) [lpm]: Remove insn attribute value.
15193 * config/avr/predicates.md (flash_operand): Remove insn predicate.
15194
15195 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
15196
15197 PR middle-end/71876
15198 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
15199 attribute.
15200 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
15201 * calls.c (special_function_p): Remove the special handling of the
15202 "__builtin_" prefix.
15203
15204 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
15205
15206 PR middle-end/71876
15207 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
15208 if STMT may be an alloca call.
15209 (gimple_alloca_call_p, alloca_call_p): Return only true for the
15210 builtin alloca call.
15211 * calls.h (gimple_maybe_alloca_call_p): New function.
15212 * tree-inline.c (inline_forbidden_p_stmt): Use
15213 gimple_maybe_alloca_call_p here.
15214
15215 2016-07-21 David Malcolm <dmalcolm@redhat.com>
15216
15217 * spellcheck-tree.c (best_macro_match::best_macro_match):
15218 Explictly specify the template arguments when invoking the base
15219 class constructor, to help older C++ compilers.
15220
15221 2016-07-21 Jakub Jelinek <jakub@redhat.com>
15222
15223 PR sanitizer/71953
15224 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
15225 before builtin_decl_implicit.
15226
15227 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
15228
15229 * optabs.c (emit_condiitonal_move): Short circuit for identical
15230 sources.
15231
15232 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
15233
15234 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
15235 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
15236 (noce_conversion_profitable_p): New.
15237 (noce_try_store_flag_constants): Use it.
15238 (noce_try_addcc): Likewise.
15239 (noce_try_store_flag_mask): Likewise.
15240 (noce_try_cmove): Likewise.
15241 (noce_try_cmove_arith): Likewise.
15242 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
15243 overwriting it.
15244 (noce_convert_multiple_sets): Move cost model to here, from...
15245 (bb_ok_for_noce_convert_multiple_sets) ...here.
15246 (noce_process_if_block): Update calls for above changes.
15247 (noce_find_if_block): Record new noce_if_info parameters.
15248
15249 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
15250
15251 * target.def (max_noce_ifcvt_seq_cost): New.
15252 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
15253 * doc/tm.texi: Regenerate.
15254 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
15255 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
15256 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
15257 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
15258 * doc/invoke.texi: Document new params.
15259
15260 2016-07-21 Richard Biener <rguenther@suse.de>
15261
15262 PR tree-optimization/71947
15263 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
15264 ranges have useful limit_vr information.
15265
15266 2016-07-21 Richard Biener <rguenther@suse.de>
15267
15268 * function-tests.c (build_trivial_generic_function): Set
15269 BLOCK_SUPERCONTEXT of DECL_INITIAL.
15270 * omp-low.c (create_omp_child_function): Likewise.
15271 (grid_expand_target_grid_body): Likewise.
15272 * cgraphunit.c (init_lowered_empty_function): Likewise.
15273 (cgraph_node::expand_thunk): Likewise.
15274 * tree-parloops.c (create_loop_fn): Likewise.
15275 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
15276
15277 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15278
15279 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
15280 in comment.
15281
15282 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
15283
15284 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
15285 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
15286 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
15287 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
15288 values for insn attribute.
15289 * config/avr/avr.c (avr_out_insert_notbit): New function.
15290 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
15291 ADJUST_LEN_INSV_NOTBIT_0/_7.
15292 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
15293
15294 2016-07-21 Bin Cheng <bin.cheng@arm.com>
15295
15296 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
15297 (chrec_convert_1, chrec_convert): Ditto.
15298 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
15299 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
15300 * tree-vrp.c (adjust_range_with_scev): Ditto.
15301 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
15302 (scev_var_range_cant_overflow): New function.
15303 (scev_probably_wraps_p): New parameter. Call above function.
15304 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
15305
15306 2016-07-21 Bin Cheng <bin.cheng@arm.com>
15307
15308 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
15309 by removing computation of may_be_zero.
15310
15311 2016-07-21 Jakub Jelinek <jakub@redhat.com>
15312
15313 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
15314
15315 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
15316
15317 Improving concepts performance and diagnostics.
15318 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
15319 for constraint satisfaction and subsumption.
15320 * timevar.h (auto_timevar): New constructor that matches the push/pop
15321 pattern of usage in pt.c.
15322
15323 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
15324
15325 * hwint.h (HOST_WIDE_INT_0): New define.
15326 (HOST_WIDE_INT_0U): Ditto.
15327 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
15328 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
15329 * simplify-rtx.c: Ditto.
15330 * tree-object-size.c: Ditto.
15331
15332 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15333
15334 * config/s390/s390.c (s390_encode_section_info): Remove mode size
15335 check.
15336
15337 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
15338
15339 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
15340 * combine.c: Use HOST_WIDE_INT_M1U instead of
15341 ~(unsigned HOST_WIDE_INT) 0.
15342 * double-int.h: Ditto.
15343 * dse.c: Ditto.
15344 * dwarf2asm.c:Ditto.
15345 * expmed.c: Ditto.
15346 * genmodes.c: Ditto.
15347 * match.pd: Ditto.
15348 * read-rtl.c: Ditto.
15349 * tree-ssa-loop-ivopts.c: Ditto.
15350 * tree-ssa-loop-prefetch.c: Ditto.
15351 * tree-vect-generic.c: Ditto.
15352 * tree-vect-patterns.c: Ditto.
15353 * tree.c: Ditto.
15354
15355 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
15356
15357 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
15358 constant addresses outside [0,0xc0] into a register.
15359 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
15360 cases where the base address register is unused after.
15361 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
15362 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
15363 (avr_out_store_psi_reg_disp_tiny): Same.
15364
15365 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
15366
15367 Implement attribute progmem on reduced Tiny cores by adding
15368 flash offset 0x4000 to respective symbols.
15369
15370 PR target/71948
15371 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
15372 documentation how it works on reduced Tiny cores.
15373 (AVR Named Address Spaces): No support for reduced Tiny.
15374 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
15375 (avr_address_tiny_pm_p): New static function.
15376 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
15377 if the address is in progmem.
15378 (avr_assemble_integer): Same.
15379 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
15380 for symbol_ref in progmem.
15381 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
15382 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
15383 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
15384
15385 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
15386
15387 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
15388 * configure: Regenerate.
15389 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
15390 (USE_THIN_ARCHIVES): New variable.
15391 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
15392 this archive as a thin archive.
15393
15394 2016-07-20 David Malcolm <dmalcolm@redhat.com>
15395
15396 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
15397 same location as last time, don't skip if we have fix-it hints.
15398 Clarify the skipping logic by converting it from one "if" clause
15399 to repeated "if" clauses.
15400 * spellcheck-tree.c: Include "cpplib.h".
15401 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
15402 (best_macro_match::best_macro_match): New constructor.
15403 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
15404 Move here from c/c-decl.c.
15405 (class best_macro_match): Move here from c/c-decl.c, converting
15406 from a typedef to a subclass, gaining a ctor.
15407
15408 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
15409
15410 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
15411 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
15412 define...
15413 (avr_addr_space_diagnose_usage): ...and implementation.
15414 (avr_addr_space_supported_p): New function.
15415 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
15416 report bad address space usage if that space is supported.
15417 (avr_insert_attributes): Same. No more complain about unsupported
15418 address spaces.
15419 * config/avr/avr-c.c (tm_p.h): Include it.
15420 (avr_cpu_cpp_builtins): Only define addr-space related built-in
15421 macro if avr_addr_space_supported_p.
15422
15423 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
15424
15425 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
15426 flag_toplevel_reorder.
15427
15428 2016-07-20 David Malcolm <dmalcolm@redhat.com>
15429
15430 * gcc-rich-location.c
15431 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
15432 a const char *.
15433 * gcc-rich-location.h
15434 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
15435
15436 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
15437
15438 * target.def (addr_space): Add new diagnose_usage to hook vector.
15439 * targhooks.c (default_addr_space_diagnose_usage): Add default
15440 implementation and...
15441 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
15442 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
15443 is some address space, call targetm.addr_space.diagnose_usage.
15444 * doc/tm.texi.in (Named Address Spaces): Add anchor for
15445 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
15446 * doc/tm.texi: Regenerate.
15447
15448 2016-07-20 Martin Liska <mliska@suse.cz>
15449
15450 PR middle-end/71898
15451 * graphite-isl-ast-to-gimple.c (later_of_the_two):
15452 Properly handly PHI stmts.
15453
15454 2016-07-20 Bin Cheng <bin.cheng@arm.com>
15455
15456 PR tree-optimization/71503
15457 PR tree-optimization/71683
15458 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
15459 and break.
15460
15461 2016-07-20 Martin Liska <mliska@suse.cz>
15462
15463 * doc/invoke.texi (-fipa-ra): Document when the option is
15464 disabled. Fix a typo.
15465
15466 2016-07-20 Martin Liska <mliska@suse.cz>
15467
15468 * Makefile.in: Include fibonacci_heap.c
15469 * fibonacci_heap.c: New file.
15470 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
15471 (fibonacci_heap::union_with): Fix deletion of the second heap.
15472 * selftest-run-tests.c (selftest::run_tests): Incorporate
15473 fibonacci heap tests.
15474 * selftest.h: Declare fibonacci_heap_c_tests.
15475
15476 2016-07-20 Martin Liska <mliska@suse.cz>
15477
15478 * selftest-run-tests.c (selftest::run_tests): New function.
15479 * selftest.h (sreal_c_tests): Declare.
15480 * sreal.c (sreal_verify_basics): New function.
15481 (verify_aritmetics): Likewise.
15482 (sreal_verify_arithmetics): Likewise.
15483 (verify_shifting): Likewise.
15484 (sreal_verify_shifting): Likewise.
15485 (void sreal_c_tests): Likewise.
15486
15487 2016-07-19 Jakub Jelinek <jakub@redhat.com>
15488
15489 PR rtl-optimization/71916
15490 * cfgrtl.c (contains_no_active_insn_p): Return false also for
15491 bb which have a single succ fake edge.
15492
15493 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
15494
15495 PR debug/71855
15496 * dwarf2out.c (gen_subprogram_die): Only call
15497 gen_unspecified_parameters_die while dumping early dwarf.
15498
15499 2016-07-19 Jakub Jelinek <jakub@redhat.com>
15500
15501 PR middle-end/71874
15502 * gimple-fold.c (fold_builtin_memory_op): Use
15503 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
15504
15505 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
15506
15507 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
15508 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
15509 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
15510 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
15511 * combine.c: Ditto.
15512 * cse.c: Ditto.
15513 * dojump.c: Ditto.
15514 * double-int.c: Ditto.
15515 * dse.c: Ditto.
15516 * dwarf2out.c: Ditto.
15517 * expmed.c: Ditto.
15518 * expr.c: Ditto.
15519 * fold-const.c: Ditto.
15520 * function.c: Ditto.
15521 * fwprop.c: Ditto.
15522 * genmodes.c: Ditto.
15523 * hwint.c: Ditto.
15524 * hwint.h: Ditto.
15525 * ifcvt.c: Ditto.
15526 * loop-doloop.c: Ditto.
15527 * loop-invariant.c: Ditto.
15528 * loop-iv.c: Ditto.
15529 * match.pd: Ditto.
15530 * optabs.c: Ditto.
15531 * real.c: Ditto.
15532 * reload.c: Ditto.
15533 * rtlanal.c: Ditto.
15534 * simplify-rtx.c: Ditto.
15535 * stor-layout.c: Ditto.
15536 * toplev.c: Ditto.
15537 * tree-ssa-loop-ivopts.c: Ditto.
15538 * tree-vect-generic.c: Ditto.
15539 * tree-vect-patterns.c: Ditto.
15540 * tree.c: Ditto.
15541 * tree.h: Ditto.
15542 * ubsan.c: Ditto.
15543 * varasm.c: Ditto.
15544 * wide-int-print.cc: Ditto.
15545 * wide-int.cc: Ditto.
15546 * wide-int.h: Ditto.
15547
15548 2016-07-19 David Malcolm <dmalcolm@redhat.com>
15549
15550 * selftest.c (selftest::assert_streq): Handle NULL values of
15551 val_actual and val_expected.
15552
15553 2016-07-19 Martin Jambor <mjambor@suse.cz>
15554
15555 PR fortran/71688
15556 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
15557 rather than cgraph_create_node to get a call graph node.
15558
15559 2016-07-19 Richard Biener <rguenther@suse.de>
15560
15561 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
15562 handle all tcc_constant bases and valueize SSA names.
15563 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
15564 tcc_constant bases.
15565
15566 2016-07-19 David Malcolm <dmalcolm@redhat.com>
15567
15568 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
15569 the flags of the exit block and bb2, not just the entry block.
15570
15571 2016-07-19 Richard Biener <rguenther@suse.de>
15572
15573 PR tree-optimization/71901
15574 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
15575 align member, group stuff with the bitfield.
15576 (vn_ref_op_align_unit): New inline.
15577 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
15578 record element alignment and operand 3 unchanged.
15579 (ao_ref_init_from_vn_reference): Adjust.
15580 (valueize_refs_1): Likewise.
15581 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15582
15583 2016-07-19 Richard Biener <rguenther@suse.de>
15584
15585 PR tree-optimization/71908
15586 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
15587 symbolic constants in a more reliable way.
15588
15589 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
15590
15591 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
15592 comment.
15593 (vect_update_inits_of_drs): Likewise.
15594 (vect_create_cond_for_alias_checks): Likewise.
15595 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
15596
15597 2016-07-19 Richard Biener <rguenther@suse.de>
15598
15599 PR lto/71907
15600 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
15601 with an abstract origin that is not an inlined function outer
15602 scope add a self-reference as abstract origin.
15603 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
15604
15605 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
15606
15607 PR target/71493
15608 * config/rs6000/rs6000.c (rs6000_function_value): Fix
15609 unintentional System V.4 structure return breakage for structures
15610 with a single floating point element.
15611
15612 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15613
15614 PR tree-optimization/71734
15615 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
15616 contains REF, use it to check safelen, assume that safelen value
15617 must be greater 1, fix style.
15618 (ref_indep_loop_p_2): Add REF_LOOP argument.
15619 (ref_indep_loop_p): Pass LOOP as additional argument to
15620 ref_indep_loop_p_2.
15621
15622 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
15623
15624 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
15625 allocation in the prologue.
15626 * explow.c (get_dynamic_stack_base): New function to return an address
15627 expression for the dynamic stack base.
15628 (get_dynamic_stack_size): New function to do the required dynamic stack
15629 space size calculations.
15630 (allocate_dynamic_stack_space): Use new functions.
15631 (align_dynamic_address): Move some code from
15632 allocate_dynamic_stack_space to new function.
15633 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
15634
15635 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15636
15637 * config/s390/s390.c (s390_encode_section_info): Always set
15638 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
15639 found.
15640
15641 2016-07-18 Richard Biener <rguenther@suse.de>
15642
15643 PR tree-optimization/71893
15644 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
15645 for sizetype cast added by array_ref_element_size.
15646 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15647
15648 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
15649
15650 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
15651 register parameters. Remove code to initialize argument pointer
15652 on TARGET_64BIT. Optimize call to _mcount when it can be reached
15653 using a pc-relative branch. Cleanup conditional code.
15654 * config/pa/pa.md (call_mcount): New expander.
15655 (call_mcount_nonpic): New insn.
15656 (call_mcount_pic): New insn and split.
15657 (call_mcount_pic_post_reload): New insn.
15658 (call_mcount_64bit): New insn and split.
15659 (call_mcount_64bit_post_reload): New insn.
15660
15661 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
15662
15663 * config/avr/predicates.md (const_m255_to_m1_operand): New.
15664 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
15665 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
15666 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
15667 (*usum_widenqihi3, *udiff_widenqihi3)
15668 (*addhi3_zero_extend.const): New combiner insns.
15669 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
15670 just 1 bit is affected.
15671 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
15672 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
15673
15674 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
15675
15676 * omp-low.c (lower_omp_target): Mark data clauses with
15677 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
15678 zero-length subarrays.
15679
15680 2016-07-15 Richard Biener <rguenther@suse.de>
15681
15682 PR tree-optimization/71881
15683 * tree-loop-distribution.c (destroy_loop): Remove blocks in
15684 reverse DOM order to make debug temp generation happy.
15685
15686 2016-07-15 Richard Biener <rguenther@suse.de>
15687
15688 PR tree-optimization/71887
15689 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
15690 verify it is not zero for division / modulo handling.
15691 (value_replacement): Adjust.
15692
15693 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
15694 Julian Brown <julian@codesourcery.com>
15695
15696 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
15697 * config/aarch64/aarch64-cost-tables.h
15698 (vulcan_extra_costs): New variable.
15699 * config/aarch64/aarch64.c
15700 (vulcan_addrcost_table): Likewise.
15701 (vulcan_regmove_cost): Likewise.
15702 (vulcan_vector_cost): Likewise.
15703 (vulcan_branch_cost): Likewise.
15704 (vulcan_tunings): Likewise.
15705
15706 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
15707
15708 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
15709 (output_in_order): Loop over undefined variables too. Output them
15710 via assemble_undefined_decl. Skip variables that correspond to hard
15711 registers or have value-exprs.
15712 * varpool.c (symbol_table::output_variables): Handle undefined
15713 variables together with defined ones.
15714
15715 2016-07-15 Richard Biener <rguenther@suse.de>
15716
15717 * tree-ssa-pre.c (get_representative_for): Make sure to return
15718 the value number of SSA names.
15719 (phi_translate_1): get_representative_for cannot return NULL.
15720 (do_pre_regular_insertion): Remove redundant call to
15721 fully_constant_expression.
15722 (do_pre_partial_partial_insertion): Likewise.
15723
15724 2016-07-15 Bin Cheng <bin.cheng@arm.com>
15725
15726 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
15727 (derive_simple_iv_with_niters): New function.
15728 (simple_iv): Rewrite using simple_iv_with_niters.
15729 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
15730 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
15731 function.
15732 (number_of_iterations_exit): Rewrite using above function.
15733 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
15734 Decl.
15735
15736 2016-07-15 Richard Biener <rguenther@suse.de>
15737
15738 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
15739 vec_construct cost.
15740
15741 2016-07-14 Jakub Jelinek <jakub@redhat.com>
15742
15743 PR tree-optimization/71872
15744 * tree-data-ref.c (get_references_in_stmt): Ignore references
15745 with is_gimple_constant get_base_address.
15746
15747 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
15748
15749 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
15750 (TARGET_HAVE_LDACQD): New macro.
15751 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
15752 than TARGET_HAVE_LDACQ.
15753 (arm_load_acquire_exclusivedi): Likewise.
15754 (arm_store_release_exclusivedi): Likewise.
15755
15756 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
15757
15758 PR rtl-optimization/71878
15759 * lra-constraints.c (match_reload): Pass information about other
15760 output operands. Create new unique register value if matching input
15761 operand shares same register value as output operand being considered.
15762 (curr_insn_transform): Record output operands already processed.
15763
15764 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15765
15766 PR target/65951
15767 PR tree-optimization/70923
15768 * tree-vect-patterns.c: Include mult-synthesis.h.
15769 (target_supports_mult_synth_alg): New function.
15770 (synth_lshift_by_additions): Likewise.
15771 (apply_binop_and_append_stmt): Likewise.
15772 (vect_synth_mult_by_constant): Likewise.
15773 (target_has_vecop_for_code): Likewise.
15774 (vect_recog_mult_pattern): Use above functions to synthesize vector
15775 multiplication by integer constants.
15776
15777 2016-07-14 Alan Modra <amodra@gmail.com>
15778
15779 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
15780 gpr alternatives. Correct '*' placement on Y,r alternative.
15781 Add '*' on operand 1 of r,r alternative.
15782
15783 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15784
15785 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
15786 * expmed.h: ... Here.
15787
15788 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
15789
15790 * gimple.h (stmt_can_terminate_bb_p): New function.
15791 * tree-cfg.c (need_fake_edge_p): Rename to ...
15792 (stmt_can_terminate_bb_p): ... this; return true if stmt can
15793 throw external; handle const and pure calls.
15794 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
15795
15796 2016-07-14 Richard Biener <rguenther@suse.de>
15797
15798 PR tree-optimization/71866
15799 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
15800 (do_hoist_insertion): Avoid endless recursion when we
15801 didn't insert anything because we managed to simplify
15802 things down to a constant or SSA name.
15803 (fully_constant_expression): Re-write in terms of ...
15804 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
15805 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
15806 vn_nary_build_or_lookup_1.
15807 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
15808 (vn_nary_build_or_lookup): ... this which now wraps it.
15809
15810 2016-07-14 Alan Modra <amodra@gmail.com>
15811
15812 PR target/71733
15813 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
15814 with p9_vector override before power9-dform override.
15815
15816 2016-07-13 Andi Kleen <ak@linux.intel.com>
15817
15818 * value-prof.c (gimple_value_profile_transformations): Don't run
15819 when auto_profile is on.
15820
15821 2016-07-13 Andi Kleen <ak@linux.intel.com>
15822
15823 * auto-profile.c (update_inlined_ind_target,
15824 afdo_indirect_call): Print information to dump file.
15825
15826 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
15827
15828 * genrecog.c (special_predicate_operand_p): New function.
15829 (predicate_name): Move function.
15830 (validate_pattern): Don't warn about missing mode for all
15831 define_special_predicate predicates.
15832
15833 2016-07-13 Bin Cheng <bin.cheng@arm.com>
15834
15835 * tree-vect-data-refs.c (vect_no_alias_p): New function.
15836 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
15837 resolve alias checks which are known at compilation time.
15838 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
15839 alias checks are resolved. Move dump info for too many runtime
15840 alias checks to here...
15841 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
15842
15843 2016-07-13 Richard Biener <rguenther@suse.de>
15844
15845 PR tree-optimization/24574
15846 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
15847 position and add shift, rotate, divison and modulo support
15848 for left zero.
15849 (value_replacement): Pass in argument position to absorbing_element_p.
15850
15851 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
15852
15853 PR ipa/71633
15854 * ipa-inline-transform.c (inline_call): Support
15855 instrumented thunks.
15856
15857 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15858
15859 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
15860 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
15861 divide feature.
15862 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
15863 Baseline. Make initial alternative TARGET_32BIT only.
15864 (udivsi3): Likewise.
15865 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
15866 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
15867 target.
15868
15869 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15870
15871 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
15872 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
15873 availability with TARGET_HAVE_MOVT.
15874 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
15875 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
15876 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
15877 UINTVAL.
15878 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
15879 extra instruction if MOVW is available. Use a cost variable
15880 incremented by COSTS_N_INSNS (1) when the condition match rather than
15881 returning an arithmetic expression based on COSTS_N_INSNS. Make
15882 constant with bottom half word zero cost 2 instruction if MOVW is
15883 available.
15884 * config/arm/arm.md (define_attr "arch"): Add v8mb.
15885 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
15886 target is ARMv8-M Baseline.
15887 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
15888 (arm_movtas_ze): Likewise.
15889 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
15890 alternative for constants satisfying j constraint.
15891 (thumb1_movsi_insn): Likewise.
15892 (movsi splitter for K alternative): Tighten condition to not trigger
15893 if movt is available and j constraint is satisfied.
15894 (Pe immediate splitter): Likewise.
15895 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
15896 constant fitting in an halfword to use MOVW.
15897 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
15898 effective target.
15899
15900 2016-07-13 Richard Biener <rguenther@suse.de>
15901
15902 PR middle-end/71104
15903 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
15904 gimplifying the LHS. Make sure to gimplify a returning twice
15905 call LHS without using SSA names.
15906
15907 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15908
15909 * tree-data-ref.c (find_data_references_in_stmt): Remove
15910 unnecessary call to vec::release.
15911 (graphite_find_data_references_in_stmt): Likewise.
15912 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
15913 * tree-vect-stmts.c (vectorizable_condition): Likewise.
15914
15915 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15916
15917 * cfgexpand.c (expand_used_vars): Make the type of a local
15918 variable auto_vec.
15919 * genmatch.c (lower_for): Likewise.
15920 * haifa-sched.c (haifa_sched_init): Likewise.
15921 (add_to_speculative_block): Likewise.
15922 (create_check_block_twin): Likewise.
15923 * predict.c (handle_missing_profiles): Likewise.
15924 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
15925 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
15926 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15927 Likewise.
15928 (maybe_lower_iteration_bound): Likewise.
15929 * tree-ssa-sccvn.c (DFS): Likewise.
15930 * tree-stdarg.c (reachable_at_most_once): Likewise.
15931 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
15932 (vectorizable_store): Likewise.
15933
15934 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15935
15936 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
15937 (sccvn_dom_walker): make cond_stack an auto_vec.
15938
15939 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15940
15941 * ree.c (struct ext_state): Make type of members auto_vec.
15942 (find_and_remove_re): Adjust.
15943
15944 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15945
15946 * cfgexpand.c (struct stack_vars_data): Make type of fields
15947 auto_vec.
15948 (expand_used_vars): Adjust.
15949
15950 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15951
15952 * ipa.c (record_cdtor_fn): Adjust.
15953 (build_cdtor_fns): Likewise.
15954 (ipa_cdtor_merge): Make static_ctors and static_dtors local
15955 variables.
15956
15957 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15958
15959 * genextract.c (struct accum_extract): Add constructor and make
15960 members auto_vec.
15961 (gen_insn): Adjust.
15962
15963 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15964
15965 * tree.c (struct free_lang_data_d): Add constructor and change
15966 types of members to ones that automatically manage resources.
15967 (fld_worklist_push): Adjust.
15968 (find_decls_types): Likewise.
15969 (find_decls_types_in_eh_region): Likewise.
15970 (free_lang_data_in_cgraph): Stop manually creating and
15971 destroying members of free_lang_data_d.
15972
15973 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
15974
15975 PR rtl-optimization/68961
15976 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
15977 peephole variant. Use sse_reg_operand predicates.
15978
15979 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
15980
15981 * config/i386/predicates.md (x86_64_immediate_operand)
15982 <case CONST_INT>: Remove unneeded truncation to DImode.
15983 <case CONST>: Ditto.
15984 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
15985
15986 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15987
15988 PR target/71805
15989 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
15990 The xxperm and xxpermr instructions require that the 2nd input
15991 operand overlap with the output operand, and not the 1st.
15992 (altivec_vperm_v8hiv16qi): Likewise.
15993 (altivec_vperm_<mode>_uns_internal): Likewise.
15994 (altivec_vpermr_<mode>_internal): Likewise.
15995 (vperm_v8hiv4si): Likewise.
15996 (vperm_v16qiv8hi): Likewise.
15997
15998 2016-07-12 Nathan Sidwell <nathan@acm.org>
15999
16000 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
16001 when -mno-pic-data-is-text-relative is in effect, by default.
16002 * doc/invoke.texi (mpic-data-is-text-relative): Document new
16003 behavior and clarify.
16004
16005 2016-07-12 Martin Liska <mliska@suse.cz>
16006
16007 * params.def: Add avg-loop niter.
16008 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
16009 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
16010 * doc/invoke.texi: Document the new parameter.
16011
16012 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16013
16014 PR middle-end/71700
16015 * expr.c (store_constructor): Mask sign-extended bits when widening
16016 sub-word constructor element at the start of a word.
16017
16018 2016-07-12 Martin Liska <mliska@suse.cz>
16019
16020 * Makefile.in: Append rule for params-options.h.
16021 * params-options.h: New file.
16022
16023 2016-07-12 Martin Liska <mliska@suse.cz>
16024
16025 * ira-build.c (mark_loops_for_removal): Properly iterate
16026 loops.
16027
16028 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
16029 Richard Biener <rguenther@suse.de>
16030
16031 PR tree-optimization/23286
16032 PR tree-optimization/70159
16033 * doc/invoke.texi: Document -fcode-hoisting.
16034 * common.opt (fcode-hoisting): New flag.
16035 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
16036 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
16037 (do_regular_insertion): Rename to ...
16038 (do_pre_regular_insertion): ... this and amend general comments
16039 on insertion strathegy.
16040 (do_partial_partial_insertion): Rename to ...
16041 (do_pre_partial_partial_insertion): ... this.
16042 (do_hoist_insertion): New function.
16043 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
16044 and call do_hoist_insertion properly.
16045 (insert): Adjust.
16046 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
16047 (pass_pre::execute): Register hoist_insert stats.
16048
16049 2016-07-12 Jakub Jelinek <jakub@redhat.com>
16050
16051 PR middle-end/71716
16052 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
16053 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
16054 is different from mode's bitsize. Small cleanup.
16055
16056 2016-07-12 Richard Biener <rguenther@suse.de>
16057
16058 PR rtl-optimization/68961
16059 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
16060 to simplify to a non-constant.
16061
16062 2016-07-11 Jakub Jelinek <jakub@redhat.com>
16063
16064 PR middle-end/71758
16065 * omp-low.c (expand_omp_target): Gimplify device.
16066
16067 PR tree-optimization/71823
16068 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
16069 to get vec_oprnds2 from op2.
16070
16071 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
16072
16073 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
16074 Hoist common subexpressions.
16075 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
16076
16077 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
16078
16079 PR target/71800
16080 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
16081 prevent generation of 'stxsiwx' on pre Power8 hardware.
16082
16083 2016-07-11 David Malcolm <dmalcolm@redhat.com>
16084
16085 * input.c: Include cpplib.h.
16086 (selftest::temp_source_file): New class.
16087 (selftest::temp_source_file::temp_source_file): New ctor.
16088 (selftest::temp_source_file::~temp_source_file): New dtor.
16089 (selftest::should_have_column_data_p): New function.
16090 (selftest::test_should_have_column_data_p): New function.
16091 (selftest::temp_line_table): New class.
16092 (selftest::temp_line_table::temp_line_table): New ctor.
16093 (selftest::temp_line_table::~temp_line_table): New dtor.
16094 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
16095 it to create a temp_line_table.
16096 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
16097 locations that are known to have column data.
16098 (selftest::line_table_case): New struct.
16099 (selftest::test_reading_source_line): Move tempfile handling
16100 to class temp_source_file.
16101 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
16102 (selftest::assert_token_loc_eq): New function.
16103 (ASSERT_TOKEN_LOC_EQ): New macro.
16104 (selftest::test_lexer): New function.
16105 (selftest::boundary_locations): New array.
16106 (selftest::input_c_tests): Call test_should_have_column_data_p.
16107 Loop over a test matrix of interesting values of location and
16108 default_range_bits, calling test_lexer on each case in the matrix.
16109 Move call to test_accessing_ordinary_linemaps into the matrix.
16110 * selftest.h (ASSERT_EQ): Reimplement in terms of...
16111 (ASSERT_EQ_AT): New macro.
16112
16113 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
16114
16115 PR target/71801
16116 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
16117 Don't convert TImode in debug insn.
16118
16119 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
16120
16121 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
16122 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
16123 (tree_type_common::lang_flag_7): New.
16124 (tree_type_common::spare): Reduce size.
16125 * tree.h (TYPE_ALIGN_OK): Remove.
16126 (TYPE_LANG_FLAG_7): New.
16127 (get_inner_reference): Adjust header.
16128 * print-tree.c (print_node): Adjust.
16129 * expr.c (get_inner_reference): Remove parameter keep_aligning.
16130 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
16131 calls to get_inner_reference.
16132 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
16133 handling of TYPE_ALIGN_OK.
16134 * builtins.c (get_object_alignment_2): Adjust call to
16135 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
16136 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
16137 TYPE_ALIGN_OK.
16138 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
16139 * cfgexpand.c (expand_debug_expr): Likewise.
16140 * dbxout.c (dbxout_expand_expr): Likewise.
16141 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
16142 loc_list_from_tree, fortran_common): Likewise.
16143 * fold-const.c (optimize_bit_field_compare,
16144 decode_field_reference, fold_unary_loc, fold_comparison,
16145 split_address_to_core_and_offset): Likewise.
16146 * gimple-laddress.c (execute): Likewise.
16147 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
16148 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
16149 * hsa-gen.c (gen_hsa_addr): Likewise.
16150 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
16151 * tsan.c (instrument_expr): Likewise.
16152 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
16153 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
16154 * tree-affine.c (tree_to_aff_combination,
16155 get_inner_reference_aff): Adjust calls to get_inner_reference.
16156 * tree-data-ref.c (split_constant_offset_1,
16157 dr_analyze_innermost): Likewise.
16158 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
16159 * tree-sra.c (ipa_sra_check_caller): Likewise.
16160 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
16161 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
16162 bswap_replace): Likewise.
16163 * tree-vect-data-refs.c (vect_check_gather,
16164 vect_analyze_data_refs): Likewise.
16165 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
16166 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
16167 TYPE_ALIGN_OK.
16168
16169 2016-07-11 David Malcolm <dmalcolm@redhat.com>
16170
16171 * Makefile.in (selftest-valgrind): New phony target.
16172 * function-tests.c (selftest::build_cfg): Delete pass instances
16173 created by the test.
16174 (selftest::convert_to_ssa): Likewise.
16175 (selftest::test_expansion_to_rtl): Likewise.
16176 * tree-cfg.c (selftest::test_linear_chain): Release dominator
16177 vectors.
16178 (selftest::test_diamond): Likewise.
16179
16180 2016-07-11 Richard Biener <rguenther@suse.de>
16181
16182 PR tree-optimization/71816
16183 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
16184 than replacing all of its operands.
16185
16186 2016-07-11 Alan Modra <amodra@gmail.com>
16187
16188 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
16189 (ctr<mode>): Add unspec.
16190 (ctr<mode>_internal*): Likewise.
16191
16192 2016-07-08 James Bowman <james.bowman@ftdichip.com>
16193
16194 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
16195 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
16196
16197 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
16198
16199 PR rtl-optimization/71621
16200 * lra-constraints.c (process_alt_operands): Check combination of
16201 reg class and mode.
16202
16203 2016-07-08 Jason Merrill <jason@redhat.com>
16204 Richard Biener <rguenther@suse.de>
16205
16206 P0145: Refining Expression Order for C++.
16207 * gimplify.c (initial_rhs_predicate_for): New.
16208 (gimplfy_modify_expr): Gimplify RHS before LHS.
16209
16210 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16211
16212 PR target/71297
16213 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16214 Allow standard error handling to take over when a wrong number
16215 of arguments is presented to __builtin_vec_ld () or
16216 __builtin_vec_st ().
16217
16218 2016-07-08 Jiong Wang <jiong.wang@arm.com>
16219
16220 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
16221 variants.
16222 (smin): Likewise.
16223 (fmax): New entry.
16224 (fmin): Likewise.
16225 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
16226 __builtin_aarch64_fmaxv2sf.
16227 (vmaxnmq_f32): Likewise.
16228 (vmaxnmq_f64): Likewise.
16229 (vminnm_f32): Likewise.
16230 (vminnmq_f32): Likewise.
16231 (vminnmq_f64): Likewise.
16232
16233 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
16234
16235 PR target/71806
16236 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
16237 enable -mfloat128-hardware by default.
16238 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
16239 that IEEE 128-bit hardware support needs.
16240 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16241 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
16242 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
16243 floating point requires.
16244 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16245 -mfloat128 and -mfloat128-hardware changes.
16246
16247 2016-07-08 Alan Hayward <alan.hayward@arm.com>
16248
16249 PR tree-optimization/71667
16250 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
16251
16252 2016-07-08 Martin Liska <mliska@suse.cz>
16253
16254 PR middle-end/71606
16255 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
16256 folding produces SAVE_EXPRs, thus return false for the type.
16257
16258 2016-07-07 Martin Liska <mliska@suse.cz>
16259
16260 * file-find.c (remove_prefix): New function.
16261 * file-find.h (remove_prefix): Declare the function.
16262 * gcc-ar.c (main): Skip a folder of the wrapper if
16263 a wrapped binary would point to the same file.
16264
16265 2016-07-07 Jan Hubicka <jh@suse.cz>
16266
16267 * tree-scalar-evolution.c (iv_can_overflow_p): export.
16268 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
16269 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
16270
16271 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
16272
16273 PR ipa/71624
16274 * ipa-inline-analysis.c (compute_inline_parameters): Set
16275 local.can_change_signature to false for intrumentation
16276 thunk callees.
16277
16278 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16279
16280 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
16281 with TARGET_HAVE_MOVT.
16282 (TARGET_HAVE_MOVT): Define.
16283 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
16284 availability with TARGET_HAVE_MOVT.
16285 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
16286 availability.
16287 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
16288 TARGET_THUMB2.
16289 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
16290 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
16291 * config/arm/constraints.md (define_constraint "j"): Use
16292 TARGET_HAVE_MOVT to check MOVT availability.
16293
16294 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16295
16296 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
16297
16298 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16299
16300 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
16301 (armv8-m.main): Likewise.
16302 (armv8-m.main+dsp): Likewise.
16303 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
16304 (FL_FOR_ARCH8M_MAIN): Likewise.
16305 * config/arm/arm-tables.opt: Regenerate.
16306 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
16307 armv8-m.main+dsp to BE8_LINK_SPEC.
16308 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
16309 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
16310 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
16311 Baseline and Mainline.
16312 (arm_option_override_internal): Also disable arm_restrict_it when
16313 !arm_arch_notm. Update comment for -munaligned-access to also cover
16314 ARMv8-M Baseline.
16315 (arm_file_start): Increase buffer size for printing architecture name.
16316 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
16317 and armv8-m.main+dsp.
16318 (mno-unaligned-access): Clarify that this is disabled by default for
16319 ARMv8-M Baseline architectures as well.
16320
16321 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16322
16323 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
16324 decide whether to prevent some libgcc routines being included for some
16325 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
16326 link between this condition and the one in
16327 libgcc/config/arm/lib1func.S.
16328
16329 2016-07-07 Richard Biener <rguenther@suse.de>
16330
16331 * tree-ssa-pre.c: Include alias.h.
16332 (compute_avail): If we have multiple VN_REFERENCEs with the
16333 same hashtable entry adjust that to make it a valid replacement
16334 for all of them with respect to alignment and aliasing
16335 when doing insertion.
16336 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
16337 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
16338
16339 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
16340
16341 PR target/70098
16342 PR target/71763
16343 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
16344 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
16345 constraint.
16346
16347 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16348
16349 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
16350 (adjust_mems): Adjust.
16351 (adjust_insn): Likewise.
16352 (prepare_call_arguments): Likewise.
16353
16354 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16355
16356 * gcse.c (struct ls_expr): Make stores field a vector.
16357 (ldst_entry): Adjust.
16358 (free_ldst_entry): Likewise.
16359 (print_ldst_list): Likewise.
16360 (compute_ld_motion_mems): Likewise.
16361 (update_ld_motion_stores): Likewise.
16362
16363 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16364
16365 * gcse.c (struct ls_expr): Remove loads field.
16366 (ldst_entry): Adjust.
16367 (free_ldst_entry): Likewise.
16368 (print_ldst_list): Likewise.
16369 (compute_ld_motion_mems): Likewise.
16370
16371 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16372
16373 * store-motion.c (struct st_expr): Make antic_stores a vector.
16374 (st_expr_entry): Adjust.
16375 (free_st_expr_entry): Likewise.
16376 (print_store_motion_mems): Likewise.
16377 (find_moveable_store): Likewise.
16378 (compute_store_table): Likewise.
16379 (remove_reachable_equiv_notes): Likewise.
16380 (replace_store_insn): Likewise.
16381 (build_store_vectors): Likewise.
16382
16383 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16384
16385 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
16386 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
16387
16388 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
16389
16390 PR tree-optimization/71518
16391 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
16392 misalign also for outer loops with negative step.
16393
16394 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
16395
16396 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
16397 (cortex_a53_shift): Add mov_shift.
16398 (cortex_a53_shift_reg): Add new reservation for register shifts.
16399 (cortex_a53_alu): Remove bfm.
16400 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
16401 (cortex_a53_alu_extr): Add new reservation for EXTR.
16402 (bypasses): Improve bypass modelling.
16403
16404 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16405
16406 PR target/50739
16407 * config/avr/avr.c (avr_asm_select_section): Strip off
16408 SECTION_DECLARED from flags when calling get_section.
16409
16410 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
16411
16412 * tree-vectorizer.h (vect_memory_access_type): Add
16413 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
16414 * tree-vect-stmts.c (compare_step_with_zero): New function.
16415 (perm_mask_for_reverse): Move further up file.
16416 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
16417 step is negative.
16418 (get_negative_load_store_type): New function.
16419 (get_load_store_type): Call it. Add an ncopies argument.
16420 (vectorizable_mask_load_store): Update call accordingly and
16421 remove tests for negative steps.
16422 (vectorizable_store, vectorizable_load): Likewise. Handle new
16423 memory_access_types.
16424
16425 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
16426
16427 * tree-vectorizer.h (vect_memory_access_type): New enum.
16428 (_stmt_vec_info): Add a memory_access_type field.
16429 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
16430 (vect_model_store_cost): Take an access type instead of a boolean.
16431 (vect_model_load_cost): Likewise.
16432 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
16433 vect_model_store_cost and vect_model_load_cost.
16434 * tree-vect-stmts.c (vec_load_store_type): New enum.
16435 (vect_model_store_cost): Take an access type instead of a
16436 store_lanes_p boolean. Simplify tests.
16437 (vect_model_load_cost): Likewise, but for load_lanes_p.
16438 (get_group_load_store_type, get_load_store_type): New functions.
16439 (vectorizable_store): Use get_load_store_type. Record the access
16440 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
16441 (vectorizable_load): Likewise.
16442 (vectorizable_mask_load_store): Likewise. Replace is_store
16443 variable with vls_type.
16444
16445 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
16446
16447 * tree-vectorizer.h (vect_grouped_load_supported): Add a
16448 single_element_p parameter.
16449 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
16450 Check the PR65518 case here rather than in vectorizable_load.
16451 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
16452 * tree-vect-stmts.c (vectorizable_load): Likewise.
16453
16454 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
16455
16456 * tree-vectorizer.h (gather_scatter_info): New structure.
16457 (vect_check_gather_scatter): Return a bool rather than a decl.
16458 Replace return-by-pointer arguments with a single
16459 gather_scatter_info *.
16460 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
16461 (vect_analyze_data_refs): Update call accordingly.
16462 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
16463 (vectorizable_mask_load_store): Likewise. Also record the
16464 offset dt and vectype in the gather_scatter_info.
16465 (vectorizable_store): Likewise.
16466 (vectorizable_load): Likewise.
16467
16468 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
16469
16470 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
16471 strided groups, use the cost of N scalar accesses instead
16472 of ncopies vector accesses.
16473 (vect_model_load_cost): Likewise.
16474
16475 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
16476
16477 * tree-vect-stmts.c (vect_cost_group_size): Delete.
16478 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
16479 variable to indicate when once-per-group costs are being used.
16480 (vect_model_load_cost): Likewise. Fix comment and misindented code.
16481
16482 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
16483
16484 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
16485 peeling-for-gaps condition.
16486
16487 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16488
16489 * config/s390/s390.c (s390_expand_vec_init): Force initializer
16490 element to register if it doesn't match general_operand.
16491
16492 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
16493 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16494
16495 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
16496 prototype.
16497 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
16498 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
16499 (SIGNBIT): New mode iterator.
16500 (Fsignbit): New mode attribute.
16501 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
16502 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
16503 when direct moves are available.
16504 (signbit<mode>2_dm): New define_insn_and_split).
16505 (signbit<mode>2_dm2): New define_insn.
16506
16507 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16508
16509 PR rtl-optimization/71594
16510 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
16511 into subregs of appropriate mode before trying to emit a conditional
16512 move.
16513
16514 2016-07-05 Jan Hubicka <jh@suse.cz>
16515
16516 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
16517 (simple_iv): Use it.
16518
16519 2016-07-05 Jan Hubicka <jh@suse.cz>
16520
16521 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
16522
16523 2016-07-05 Jiong Wang <jiong.wang@arm.com>
16524
16525 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
16526 "offmemok".
16527
16528 2016-07-05 Jan Hubicka <jh@suse.cz>
16529
16530 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
16531 IV can overflow.
16532
16533 2016-07-05 Richard Biener <rguenther@suse.de>
16534
16535 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
16536 Handle empty else block.
16537 (is_feasible_trace): Likewise.
16538 (split_paths): Likewise.
16539
16540 2016-07-05 Richard Biener <rguenther@suse.de>
16541
16542 * tree-loop-distribution.c (distribute_loop): Fix issue with
16543 the cost model loop.
16544
16545 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
16546
16547 * config/arm/neon-testgen.ml: Delete.
16548 * config/arm/neon.ml: Delete.
16549
16550 2016-07-04 Jakub Jelinek <jakub@redhat.com>
16551
16552 PR c++/71739
16553 * tree.c (attribute_value_equal): Use get_attribute_name instead of
16554 directly using TREE_PURPOSE.
16555
16556 2016-07-04 Jiong Wang <jiong.wang@arm.com>
16557
16558 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
16559 * config/aarch64/aarch64_neon.h: Likewise.
16560 * config/aarch64/arm_neon.h: Likewise.
16561 * config/aarch64/atomics.md: Likewise.
16562 * config/aarch64/aarch64-simd-builtins.def: Likewise.
16563 * doc/invoke.texi: Likewise.
16564
16565 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
16566
16567 * config/s390/s390.md: Add "z13" cpu_facility.
16568 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
16569 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
16570 condition" type instructions.
16571
16572 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
16573 Jeff Law <law@redhat.com>
16574
16575 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
16576 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
16577
16578 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
16579
16580 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
16581 permutation for TARGET_AVX512F.
16582 (ix86_expand_vec_one_operand_perm_avx512): New function.
16583 (expand_vec_perm_1): Invoke introduced function.
16584 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
16585 it may be not valid after vectorization.
16586
16587 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16588
16589 PR target/63874
16590 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
16591 typo in comment. Only force to memory if it is a weak
16592 external reference.
16593
16594 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
16595 Jiong Wang <jiong.wang@arm.com>
16596
16597 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
16598 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
16599 (AARCH64_FL_F16): New.
16600 (AARCH64_FL_FOR_ARCH8_2): New.
16601 (AARCH64_ISA_8_2): New.
16602 (AARCH64_ISA_F16): New.
16603 (TARGET_FP_F16INST): New.
16604 (TARGET_SIMD_F16INST): New.
16605 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
16606 ("fp"): Disabling "fp" also disables "fp16".
16607 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
16608 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
16609 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
16610 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
16611
16612 2016-07-04 Jan Beulich <jbeulich@suse.com>
16613
16614 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
16615
16616 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16617
16618 PR target/71720
16619 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
16620 the insns, use an insn form that does not adjust the offset on
16621 little endian systems.
16622
16623 2016-07-01 Jan Beulich <jbeulich@suse.com>
16624
16625 * varasm.c (get_variable_section): Validate initializer in
16626 named .bss-like sections.
16627
16628 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
16629
16630 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
16631 Exchange the order of the second and third operands in the vpermr
16632 instruction tmeplate.
16633
16634 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
16635
16636 PR target/71698
16637 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
16638 Disallow TDmode values.
16639
16640 2016-07-01 Alan Modra <amodra@gmail.com>
16641
16642 PR rtl-optimization/71709
16643 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
16644 being set, not referenced.
16645
16646 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
16647
16648 PR tree-optimization/70729
16649 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
16650 of loop since it can be not valid after transformation.
16651
16652 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16653
16654 * config/arm/arm.c (thumb_reload_in_hi): Delete.
16655 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
16656
16657 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
16658
16659 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
16660 for NULL decl.
16661
16662 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
16663
16664 PR target/71677
16665 * config/rs6000/constraints.md (wY constraint): New constraint to
16666 match the requirements for the LXSD and STXSD instructions.
16667 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
16668 predicate to match the requirements for the LXSD and STXSD
16669 instructions.
16670 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
16671 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
16672 to make sure that the bottom 2 bits of offset are 0, the address
16673 form is offsettable, and no updating is done in the address mode.
16674 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
16675 (movdi_internal32): Likewise
16676 (movdi_internal64): Likewise.
16677
16678 2016-06-30 Jakub Jelinek <jakub@redhat.com>
16679
16680 PR tree-optimization/71707
16681 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
16682 strinfo even for ADDR_EXPR ptr.
16683
16684 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
16685
16686 * config/rs6000/altivec.md (darn_32): Change the condition to
16687 TARGET_P9_MISC instead of TARGET_MODULO.
16688 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
16689 condition expression.
16690 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
16691 condition expression.
16692 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
16693 (DFP_TEST): New code iterator.
16694 (dfptstsfi_<code>_mode>): New define_expand.
16695 (*dfp_sgnfcnc_<mode>): New define_insn.
16696 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
16697 definition next to BU_P9_MISC_1 definition and change the MASK
16698 value to RS6000_BTM_P9_MISC.
16699 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
16700 (BU_P9_64BIT_MISC_0): Likewise.
16701 (BU_P9_DFP_MISC_0): New macro definition.
16702 (BU_P9_DFP_MISC_1): New macro definition.
16703 (BU_P9_DFP_MISC_2): New macro definition.
16704 (BU_P9_DFP_OVERLOAD_1): New macro definition.
16705 (BU_P9_DFP_OVERLOAD_2): New macro definition.
16706 (BU_P9_DFP_OVERLOAD_3): New macro definition.
16707 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
16708 (TSTSFI_LT_TD): Likewise.
16709 (TSTSFI_EQ_DD): Likewise.
16710 (TSTSFI_EQ_TD): Likewise.
16711 (TSTSFI_GT_DD): Likewise.
16712 (TSTSFI_GT_TD): Likewise.
16713 (TSTSFI_OV_DD): Likewise.
16714 (TSTSFI_OV_TD): Likewise.
16715 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
16716 (TSTSFI_LT_DD): Likewise.
16717 (TSTSFI_LT_TD): Likewise.
16718 (TSTSFI_EQ): Likewise.
16719 (TSTSFI_EQ_DD): Likewise.
16720 (TSTSFI_EQ_TD): Likewise.
16721 (TSTSFI_GT): Likewise.
16722 (TSTSFI_GT_DD): Likewise.
16723 (TSTSFI_GT_TD): Likewise.
16724 (TSTSFI_OV): Likewise.
16725 (TSTSFI_OV_DD): Likewise.
16726 (TSTSFI_OV_TD): Likewise.
16727 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16728 overloaded test significance functions.
16729 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
16730 OPTION_MASK_P9_MISC into the representation of this mask.
16731 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
16732 of this mask.
16733 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
16734 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
16735 non-zero.
16736 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
16737 argument is a 6-bit unsigned literal value if the icode argument
16738 represents a DFP test significance built-in call.
16739 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
16740 flag used independently and in combination with the
16741 RS6000_BTM_64BIT flag.
16742 (rs6000_opt_masks): Add entry for power9-misc command-line option.
16743 (rs6000_builtin_mask_names): Add entry for power9-misc
16744 command-line option.
16745 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
16746 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
16747 RS6000_BTM_P9_MISC macros.
16748 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
16749 option and change the description of the -mpower9-vector option to
16750 enable only vector instructions, removing its erroneously claimed
16751 support for scalar instructions.
16752 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
16753 the ISA 3.0 digital floating point test significance built-in
16754 functions.
16755
16756 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
16757
16758 * config/aarch64/aarch64.c (cortexa35_tunings):
16759 Enable AES fusion. Use cortexa57_branch_cost.
16760 (cortexa53_tunings): Use cortexa57_branch_cost.
16761 (cortexa72_tunings): Use cortexa57_branch_cost.
16762 Use AUTOPREFETCHER_WEAK.
16763 (cortexa73_tunings): Use cortexa57_branch_cost.
16764
16765 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16766 James Greenhalgh <james.greenhalgh@arm.com>
16767
16768 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
16769 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
16770 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
16771 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
16772 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
16773 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
16774 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
16775 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
16776 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
16777 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
16778 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
16779 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
16780 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
16781 New intrinsics.
16782
16783 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
16784 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16785
16786 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
16787 New define_insn.
16788 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
16789
16790 2016-06-30 David Malcolm <dmalcolm@redhat.com>
16791
16792 PR driver/71651
16793 * gcc.c (driver::build_option_suggestions): Pass "option" to
16794 add_misspelling_candidates.
16795 * opts-common.c (add_misspelling_candidates): Add "option" param;
16796 use it to avoid adding negated forms for options marked with
16797 RejectNegative.
16798 * opts.h (add_misspelling_candidates): Add "option" param.
16799
16800 2016-06-30 Jakub Jelinek <jakub@redhat.com>
16801
16802 PR middle-end/71693
16803 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
16804 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
16805 first when permuting bitwise operation with rotate. Cast
16806 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
16807
16808 2016-06-29 David Malcolm <dmalcolm@redhat.com>
16809
16810 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
16811 for misspelled param names.
16812 * params.c: Include spellcheck.h.
16813 (find_param_fuzzy): New function.
16814 * params.h (find_param_fuzzy): New prototype.
16815 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
16816 * spellcheck.h (struct edit_distance_traits<const char *>):
16817 ...here.
16818
16819 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
16820
16821 * config/rs6000/predicates.md (const_0_to_7_operand): New
16822 predicate, recognize 0..7.
16823 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16824 support for doing extracts from V16QImode, V8HImode, V4SImode
16825 under ISA 3.0.
16826 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
16827 vector extract support.
16828 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
16829 for ISA 3.0 vector extract.
16830 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
16831 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
16832 extracts of a constant element number from small integer vectors
16833 on 64-bit ISA 3.0 systems.
16834 (vsx_extract_<mode>_di): Likewise.
16835 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
16836 say when we can do ISA 3.0 vector extracts.
16837 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
16838 registers, using the stxsiwx instruction.
16839
16840 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
16841
16842 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
16843 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
16844 qdf24xx_regmove_cost, qdf24xx_tunings): New.
16845 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
16846 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
16847 * config/arm/arm.c (arm_qdf24xx_tune): New.
16848
16849 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
16850
16851 * config/aarch64/aarch64.c (cortexa53_tunings):
16852 Increase loop alignment to 8. Set function alignment to 16.
16853 (cortexa35_tunings): Likewise.
16854 (cortexa57_tunings): Increase loop alignment to 8.
16855 (cortexa72_tunings): Likewise.
16856 (cortexa73_tunings): Likewise.
16857
16858 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
16859
16860 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
16861 for arm_fp16_ok and arm_fp16_hw.
16862 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
16863 arm_fp16_alternative.
16864
16865 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
16866
16867 PR tree-optimization/71655
16868 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
16869 types when swapping operands.
16870
16871 2016-06-29 Martin Liska <mliska@suse.cz>
16872
16873 PR middle-end/71585
16874 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
16875 * ipa-inline-transform.c (inline_call): Remove unnecessary call
16876 of build_optimization_node.
16877
16878 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
16879
16880 PR tree-optimization/70729
16881 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
16882 independent in loops having positive safelen value.
16883 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
16884 it may be not valid after vectorization.
16885
16886 2016-06-29 Jakub Jelinek <jakub@redhat.com>
16887
16888 PR tree-optimization/71625
16889 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
16890 is sorted by ascending list->offset. If PTR is non-NULL and there is
16891 previous strinfo, call get_stridx_plus_constant.
16892 (get_stridx): Pass exp as second argument to get_addr_stridx.
16893 (addr_stridxptr): Add missing list = list->next, so that there can be
16894 more than one entries in the list. Bump limit from 16 to 32. Ensure
16895 the list is sorted by ascending list->offset.
16896 (get_stridx_plus_constant): Adjust so that it can be also called with
16897 ADDR_EXPR instead of SSA_NAME as PTR.
16898 (handle_char_store): Pass NULL_TREE as second argument to
16899 get_addr_stridx.
16900
16901 2016-06-29 Richard Biener <rguenther@suse.de>
16902
16903 PR rtl-optimization/68961
16904 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
16905
16906 2016-06-29 Richard Biener <rguenther@suse.de>
16907
16908 PR middle-end/71002
16909 * alias.c (component_uses_parent_alias_set_from): Handle
16910 type punning through union accesses by using the union alias set.
16911 * gimple.c (gimple_get_alias_set): Remove union type punning case.
16912
16913 2016-07-29 Richard Biener <rguenther@suse.de>
16914
16915 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
16916 precision not matching mode precision.
16917
16918 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
16919
16920 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
16921 pa_output_arg_descriptor.
16922 (call_val_symref_64bit_post_reload): Likewise.
16923 (call_val_powf_64bit_post_reload): Likewise.
16924 (sibcall_internal_symref_64bit): Likewise.
16925 (sibcall_value_internal_symref_64bit): Likewise.
16926
16927 2016-06-28 Jakub Jelinek <jakub@redhat.com>
16928
16929 PR middle-end/71626
16930 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
16931 a constant, force its SUBREG_REG into memory or register instead
16932 of whole op1.
16933
16934 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16935
16936 PR target/58655
16937 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
16938 * doc/invoke.texi (AVR Options): Document it.
16939
16940 2016-06-28 Walter Lee <walt@tilera.com>
16941
16942 * config/tilegx/linux.h: Do not include arch/icache.h
16943 (CLEAR_INSN_CACHE): Provide inlined definition directly.
16944 * config/tilepro/linux.h: Do not include arch/icache.h
16945 (CLEAR_INSN_CACHE): Provide inlined definition directly.
16946
16947 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
16948
16949 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
16950 for big-endian BIT_FIELD_REF.
16951
16952 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
16953
16954 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
16955 ('size' attribute): Add '128'.
16956 Include power9.md.
16957 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
16958 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
16959 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
16960 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
16961 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
16962 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
16963 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
16964 *trunc<mode>df2_odd): Set size attribute to '128'.
16965 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
16966 * config/rs6000/power6.md (power6-fp): Include dfp type.
16967 * config/rs6000/power7.md (power7-fp): Likewise.
16968 * config/rs6000/power8.md (power8-fp): Likewise.
16969 * config/rs6000/power9.md: New file.
16970 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
16971 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
16972 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
16973 htmsimple.
16974 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
16975 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
16976 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
16977 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
16978 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
16979 dfp_dscri_<mode>): Change type attribute to dfp.
16980 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
16981 attribute to vecsimple.
16982 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
16983 and prefetch streams.
16984 (rs6000_option_override_internal): Remove temporary code setting
16985 tuning to power8. Don't set rs6000_sched_groups for power9.
16986 (last_scheduled_insn): Change to rtx_insn *.
16987 (divide_cnt, vec_load_pendulum): New variables.
16988 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
16989 (rs6000_issue_rate): Set issue rate for Power9.
16990 (is_power9_pairable_vec_type): New.
16991 (power9_sched_reorder2): New.
16992 (rs6000_sched_reorder2): Call new function for Power9 specific
16993 reordering.
16994 (insn_must_be_first_in_group): Remove Power9.
16995 (insn_must_be_last_in_group): Likewise.
16996 (force_new_group): Likewise.
16997 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
16998 Initialize divide_cnt/vec_load_pendulum.
16999 (_rs6000_sched_context, rs6000_init_sched_context,
17000 rs6000_set_sched_context): Handle context save/restore of new
17001 variables.
17002
17003 2016-06-28 Richard Biener <rguenther@suse.de>
17004
17005 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17006 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
17007 COMPONENT_REF operand.
17008 (nonoverlapping_component_refs_p): Likewise.
17009 * stor-layout.c (start_bitfield_representative): Mark
17010 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
17011
17012 2016-06-28 Jakub Jelinek <jakub@redhat.com>
17013
17014 * Makefile.in: Don't cat ../stage_current if it does not exist.
17015
17016 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
17017 last argument is a bit-field.
17018
17019 PR rtl-optimization/71673
17020 * internal-fn.c (expand_arith_overflow_result_store): Use
17021 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
17022 expand_simple_binop.
17023
17024 PR middle-end/66867
17025 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
17026 expand_ifn_atomic_compare_exchange): New functions.
17027 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
17028 * tree.h (build_call_expr_internal_loc): Rename to ...
17029 (build_call_expr_internal_loc_array): ... this. Fix up type of
17030 last argument.
17031 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
17032 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
17033 ATOMIC_COMPARE_EXCHANGE result.
17034 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
17035 * gimple-fold.h (optimize_atomic_compare_exchange_p,
17036 fold_builtin_atomic_compare_exchange): New prototypes.
17037 * gimple-fold.c (optimize_atomic_compare_exchange_p,
17038 fold_builtin_atomic_compare_exchange): New functions..
17039 * tree-ssa.c (execute_update_addresses_taken): If
17040 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
17041 of call when finding addressable vars, and if such var becomes
17042 non-addressable, call fold_builtin_atomic_compare_exchange.
17043
17044 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
17045
17046 PR target/71670
17047 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
17048 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
17049
17050 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
17051
17052 * config/rs6000/rs6000.md ('type' attribute): Add
17053 veclogical,veccmpfx,vecexts,vecmove insn types.
17054 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
17055 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
17056 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
17057 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
17058 *nabs<mode>2_hw): Change type to vecmove.
17059 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
17060 *boolcc<mode>3_internal, *eqv<mode>3_internal,
17061 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
17062 *ieee_128bit_vsx_abs<mode>2_internal,
17063 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
17064 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
17065 *ieee128_mtvsrd_32bit): Change type to veclogical.
17066 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17067 *movdi_internal32, *movdi_internal64): Update insn types.
17068 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
17069 vsx_extract_<mode>): Change type to veclogical.
17070 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
17071 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
17072 *vsx_sign_extend_si_v2di): Change type to vecexts.
17073 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
17074 type to veclogical.
17075 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
17076 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
17077 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
17078 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
17079 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
17080 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
17081 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
17082 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
17083 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
17084 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
17085 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
17086 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
17087 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
17088 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
17089 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
17090 (ppc7450-vecsimple): Add veclogical, vecmove.
17091 (ppc7450-veccmp): Add veccmpfx.
17092 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
17093 vecmove.
17094 (ppc8540_vector_compare): Add veccmpfx.
17095 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
17096 * config/rs6000/cell.md (cell-fp): Add fpsimple.
17097 (cell-vecsimple): Add veclogical, vecmove.
17098 (cell-veccmp): Add veccmpfx.
17099 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
17100 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
17101 veccmpfx.
17102 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
17103 * config/rs6000/power4.md (power4-fp): Add fpsimple.
17104 (power4-vecsimple): Add veclogical, vecmove.
17105 (power4-veccmp): Add veccmpfx.
17106 * config/rs6000/power5.md (power5-fp): Add fpsimple.
17107 * config/rs6000/power6.md (power6-fp): Add fpsimple.
17108 (power6-vecsimple): Add veclogical, vecmove.
17109 (power6-veccmp): Add veccmpfx.
17110 * config/rs6000/power7.md (power7-fp): Add fpsimple.
17111 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
17112 * config/rs6000/power8.md (power8-fp): Add fpsimple.
17113 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
17114 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
17115 * config/rs6000/titan.md (titan_fp): Add fpsimple.
17116 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
17117 fpsimple.
17118 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
17119
17120 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
17121
17122 PR target/71656
17123 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17124 OPTION_MASK_P9_DFORM_VECTOR.
17125 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
17126 disable -mpower9-dform-vector when using reload.
17127 (quad_address_p): Remove 'gpr_p' argument and all associated code.
17128 New 'strict' argument. Update all callers. Add strict addressing
17129 support.
17130 (rs6000_legitimate_offset_address_p): Remove call to
17131 virtual_stack_registers_memory_p.
17132 (rs6000_legitimize_reload_address): Add quad address support.
17133 (rs6000_legitimate_address_p): Move call to quad_address_p above
17134 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
17135 to account for new strict usage.
17136 (rs6000_output_move_128bit): Adjust quad_address_p args to account
17137 for new strict usage.
17138 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
17139
17140 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
17141
17142 PR target/70902
17143 PR target/71453
17144 PR target/71555
17145 PR target/71596
17146 PR target/71657
17147 * config/i386/i386.c (ix86_spill_class): Disable condition to
17148 always return NO_REGS.
17149
17150 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
17151
17152 * predict.c: Include gimple-pretty-print.h
17153 (predicted_by_loop_heuristics_p): Check also
17154 PRED_LOOP_EXIT_WITH_RECURSION
17155 (predict_loops): Find self recursive calls and use special purpose
17156 predictors for them; dump log about decisions.
17157 (pass_profile::execute): Dump info about #of iterations.
17158 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
17159 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
17160
17161 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
17162
17163 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
17164 output_asm_insn calls and shorten long lines. Output .CALL
17165 argument descriptor using pa_output_arg_descriptor. Add various
17166 inline $$dyncall and other optimizations.
17167 (pa_attr_length_indirect_call): Adjust ordering and lengths.
17168
17169 2016-06-25 Jakub Jelinek <jakub@redhat.com>
17170
17171 PR tree-optimization/71643
17172 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
17173 EH preds.
17174
17175 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
17176 leak a bitmap if dep_bb is NULL.
17177
17178 PR tree-optimization/71631
17179 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
17180 to rewrite_expr_tree even if negate_result, move new_lhs var
17181 declaration and initialization earlier, for powi_result set afterwards
17182 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
17183 if new_lhs != lhs, and don't shadow gsi var.
17184
17185 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
17186
17187 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
17188 Add in_loop parameter.
17189 (predict_loops): Add loop guard heuristics.
17190 * predict.def (PRED_LOOP_GUARD): New heuristics.
17191
17192 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
17193
17194 * predict.c: Include ipa-utils.h
17195 (tree_bb_level_prediction): Predict recursive calls.
17196 (tree_estimate_probability_bb): Skip inexpensive calls for call
17197 predictor.
17198 * predict.def (PRED_RECURSIVE_CALL): New.
17199
17200 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17201
17202 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
17203 (BU_FLOAT128_1): Likewise.
17204 (FABSQ): Likewise.
17205 (COPYSIGNQ): Likewise.
17206 (RS6000_BUILTIN_NANQ): Likewise.
17207 (RS6000_BUILTIN_NANSQ): Likewise.
17208 (RS6000_BUILTIN_INFQ): Likewise.
17209 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
17210 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
17211 (TARGET_FOLD_BUILTIN): New #define.
17212 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
17213 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
17214 (rs6000_fold_builtin): New target hook implementation, handling
17215 folding of 128-bit NaNs and infinities.
17216 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
17217 entries are filled in to avoid problems during bootstrap
17218 self-test; define builtins for 128-bit NaNs and infinities.
17219 (rs6000_opt_mask): Add entry for float128.
17220 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
17221 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
17222 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
17223 (const_str_type_node): New #define.
17224 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
17225 to a define_expand that dispatches to either copysign<mode>3_soft
17226 or copysign<mode>3_hard.
17227 (copysign<mode>3_hard): Rename from copysign<mode>3.
17228 (copysign<mode>3_soft): New define_insn.
17229 * doc/extend.texi: Document new builtins.
17230
17231 2016-06-24 Jakub Jelinek <jakub@redhat.com>
17232
17233 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
17234 PRIu64 instead of lu.
17235
17236 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
17237
17238 PR debug/71642
17239 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
17240 copy the type name.
17241
17242 2016-06-24 Jakub Jelinek <jakub@redhat.com>
17243
17244 PR tree-optimization/71647
17245 * omp-low.c (lower_rec_input_clauses): Convert
17246 omp_clause_aligned_alignment (c) to size_type_node for the
17247 last argument of __builtin_assume_aligned.
17248
17249 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
17250
17251 * configure.ac (calling ___tls_get_addr via GOT): New
17252 assembler/linker check.
17253 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
17254 assembler and linker supports calling ___tls_get_addr via GOT.
17255 Otherise, defined to 0.
17256 * config.in: Regenerated.
17257 * configure: Likewise.
17258 * config/i386/constraints.md (Yb): New constraint.
17259 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
17260 (REG_CLASS_NAMES): Likewise.
17261 (REG_CLASS_CONTENTS): Likewise.
17262 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
17263 the b constraint with the Yb constraint. Call ___tls_get_addr
17264 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
17265 is 1.
17266 (*tls_local_dynamic_base_32_gnu): Likewise.
17267 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
17268 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
17269 (*tls_local_dynamic_base_64_<mode>): Likewise.
17270
17271 2016-06-24 Martin Liska <mliska@suse.cz>
17272
17273 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
17274 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
17275 few functions.
17276 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
17277 argument to true if the expected number of iterations is
17278 loop-based.
17279
17280 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
17281
17282 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
17283 assemble for 32bit target.
17284 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
17285 and $ld_ix86_gld_32_opt to link for 32bit target.
17286 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
17287 * configure: Regenerate.
17288
17289 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17290
17291 * config/arm/arm.c (int_log2): Delete definition and prototype.
17292 (shift_op): Use exact_log2 instead of int_log2.
17293 (vfp3_const_double_for_fract_bits): Likewise.
17294
17295 2016-06-24 Jakub Jelinek <jakub@redhat.com>
17296
17297 * internal-fn.c (expand_arith_set_overflow): New function.
17298 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
17299 Use it.
17300 (expand_arith_overflow_result_store): Likewise. Handle precision
17301 smaller than mode precision.
17302 * tree-vrp.c (extract_range_basic): For imag part, handle
17303 properly signed 1-bit precision result.
17304 * doc/extend.texi (__builtin_add_overflow): Document that last
17305 argument can't be pointer to enumerated or boolean type.
17306 (__builtin_add_overflow_p): Document that last argument can't
17307 have enumerated or boolean type.
17308
17309 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
17310 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17311
17312 * config/rs6000/predicates.md (splat_input_operand): Rework.
17313 Don't allow constants, since the insns that use this predicate
17314 don't support constants. Constants are handled by other insns
17315 that are created via combine. During and after register
17316 allocation, only allow indexed or indirect addresses, and not
17317 general addresses. Only allow modes supported by the hardware.
17318 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
17319 comment. Move check for using VSPLTIS<x> to a common location,
17320 instead of doing it in two different places.
17321
17322 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
17323
17324 * config/i386/driver-i386.c (host_detect_local_cpu): Set
17325 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
17326 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
17327 signature_CENTAUR_ebx.
17328
17329 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
17330
17331 PR target/66232
17332 PR target/67400
17333 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
17334 (as_ix86_gas_32_opt): This.
17335 (ld_ix86_tls_ldm_opt): Renamed to ...
17336 (ld_ix86_gld_32_opt): This.
17337 (R_386_TLS_LDM reloc): Updated.
17338 (R_386_GOT32X reloc): New assembler/linker check.
17339 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
17340 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
17341 defined to 0.
17342 * config.in: Regenerated.
17343 * configure: Likewise.
17344 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
17345 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
17346 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
17347 if ix86_force_load_from_GOT_p returns true.
17348 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
17349 ix86_force_load_from_GOT_p returns true.
17350 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
17351 the external function address via the GOT slot.
17352 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
17353 HAVE_AS_IX86_GOT32X before returning false.
17354 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
17355 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
17356
17357 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
17358
17359 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
17360
17361 2016-06-23 Andi Kleen <ak@linux.intel.com>
17362
17363 * Makefile.in: Regenerate.
17364 * doc/install.texi: Document autoprofiledbootstrap.
17365
17366 2016-06-23 Andi Kleen <ak@linux.intel.com>
17367
17368 * config/i386/gcc-auto-profile: New file.
17369
17370 2016-06-23 Martin Liska <mliska@suse.cz>
17371
17372 PR middle-end/71619
17373 * predict.c (predict_loops): Revert the hunk that was removed
17374 in r237103.
17375
17376 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
17377
17378 * config.gcc: Add support for arm*-*-phoenix* targets.
17379 * config/arm/t-phoenix: New.
17380 * config/phoenix.h: New.
17381
17382 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
17383 H.J. Lu <hongjiu.lu@intel.com>
17384
17385 PR target/67400
17386 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
17387 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
17388 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
17389 ix86_force_load_from_GOT_p returns true.
17390 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
17391 ix86_force_load_from_GOT_p returns true.
17392 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
17393 ix86_force_load_from_GOT_p returns true.
17394 (ix86_expand_move): Load the external function address via the
17395 GOT slot if ix86_force_load_from_GOT_p returns true.
17396 * config/i386/predicates.md (x86_64_immediate_operand): Return
17397 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
17398 (x86_64_zext_immediate_operand): Ditto.
17399
17400 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
17401
17402 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
17403
17404 2016-06-22 David Malcolm <dmalcolm@redhat.com>
17405
17406 PR c/70339
17407 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
17408 * diagnostic.c (pedwarn_at_rich_loc): New function.
17409 * spellcheck.h (best_match::best_match): Add a
17410 "best_distance_so_far" optional parameter.
17411 (best_match::set_best_so_far): New method.
17412 (best_match::get_best_distance): New accessor.
17413 (best_match::get_best_candidate_length): New accessor.
17414
17415 2016-06-22 Nick Clifton <nickc@redhat.com>
17416
17417 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
17418 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
17419 modes are accepted as well.
17420 (ucompare_loc_descriptor): Likewise.
17421 (minmax_loc_descriptor): Likewise.
17422 (clz_loc_descriptor): Likewise.
17423 (popcount_loc_descriptor): Likewise.
17424 (bswap_loc_descriptor): Likewise.
17425 (rotate_loc_descriptor): Likewise.
17426 (mem_loc_descriptor): Likewise.
17427 (loc_descriptor): Likewise.
17428
17429 2016-06-22 David Malcolm <dmalcolm@redhat.com>
17430
17431 * common.opt (fdiagnostics-parseable-fixits): New option.
17432 * diagnostic.c: Include "selftest.h".
17433 (print_escaped_string): New function.
17434 (print_parseable_fixits): New function.
17435 (diagnostic_report_diagnostic): Call print_parseable_fixits.
17436 (selftest::assert_print_escaped_string): New function.
17437 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
17438 (selftest::test_print_escaped_string): New function.
17439 (selftest::test_print_parseable_fixits_none): New function.
17440 (selftest::test_print_parseable_fixits_insert): New function.
17441 (selftest::test_print_parseable_fixits_remove): New function.
17442 (selftest::test_print_parseable_fixits_replace): New function.
17443 (selftest::diagnostic_c_tests): New function.
17444 * diagnostic.h (struct diagnostic_context): Add field
17445 "parseable_fixits_p".
17446 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
17447 -fdiagnostics-parseable-fixits.
17448 (-fdiagnostics-parseable-fixits): New option.
17449 * opts.c (common_handle_option): Handle
17450 -fdiagnostics-parseable-fixits.
17451 * selftest-run-tests.c (selftest::run_tests): Call
17452 selftest::diagnostic_c_tests.
17453 * selftest.h (selftest::diagnostic_c_tests): New prototype.
17454
17455 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
17456
17457 PR tree-optimization/71488
17458 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
17459 comparison of boolean vectors.
17460 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
17461 of boolean vectors using bitwise operations.
17462
17463 2016-06-22 Andreas Schwab <schwab@suse.de>
17464
17465 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
17466 Remove declaration.
17467
17468 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
17469
17470 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
17471
17472 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
17473
17474 * config/i386/i386.c (print_reg): Emit an error message on attempt to
17475 print FLAGS_REG.
17476
17477 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17478
17479 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
17480 * config/arm/arm-cores.def (cortex-a73): New entry.
17481 (cortex-a73.cortex-a35): Likewise.
17482 (cortex-a73.cortex-a53): Likewise.
17483 * config/arm/arm-tables.opt: Regenerate.
17484 * config/arm/arm-tune.md: Likewise.
17485 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
17486 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
17487 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
17488 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
17489 * doc/invoke.texi (ARM Options): Document cortex-a73,
17490 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
17491
17492 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17493
17494 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
17495 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
17496 (cortex-a73.cortex-a35): Likewise.
17497 (cortex-a73.cortex-a53): Likewise.
17498 * config/aarch64/aarch64-tune.md: Regenerate.
17499 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
17500 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
17501 -mcpu and -mtune.
17502
17503 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17504
17505 * configure.ac (gcc_cv_as_compress_debug): Remove
17506 --compress-debug-sections as extra as switch.
17507 Handle gas --compress-debug-sections=type.
17508 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
17509 Handle gld --compress-debug-sections=type.
17510 * configure: Regenerate.
17511
17512 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
17513
17514 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
17515
17516 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
17517
17518 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
17519 (do_rewrite): likewise.
17520
17521 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17522
17523 * common/config/mep/mep-common.c: Remove.
17524 * config.gcc: Remove mep-* support.
17525 * config/mep/constraints.md: Remove.
17526 * config/mep/default.h: Remove.
17527 * config/mep/intrinsics.h: Remove.
17528 * config/mep/intrinsics.md: Remove.
17529 * config/mep/ivc2-template.h: Remove.
17530 * config/mep/mep-c5.cpu: Remove.
17531 * config/mep/mep-core.cpu: Remove.
17532 * config/mep/mep-default.cpu: Remove.
17533 * config/mep/mep-ext-cop.cpu: Remove.
17534 * config/mep/mep-intrin.h: Remove.
17535 * config/mep/mep-ivc2.cpu: Remove.
17536 * config/mep/mep-pragma.c: Remove.
17537 * config/mep/mep-protos.h: Remove.
17538 * config/mep/mep.c: Remove.
17539 * config/mep/mep.cpu: Remove.
17540 * config/mep/mep.h: Remove.
17541 * config/mep/mep.md: Remove.
17542 * config/mep/mep.opt: Remove.
17543 * config/mep/predicates.md: Remove.
17544 * config/mep/t-mep: Remove.
17545 * doc/install.texi: Remove mep-* documentation.
17546 * doc/md.texi: Likewise.
17547
17548 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17549
17550 * config.gcc: Remove support for avr-rtems.
17551 * config/avr/gen-avr-mmcu-specs.c: Likewise.
17552 * config/avr/rtems.h: Remove.
17553 * config/avr/t-rtems: Remove.
17554
17555 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17556
17557 * config.gcc: Remove m32r-rtems support.
17558 * config/m32r/rtems.h: Remove.
17559
17560 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17561
17562 * config.gcc: Remove h8300-rtems support.
17563 * config/h8300/rtems.h: Remove.
17564 * config/h8300/t-rtems: Remove.
17565
17566 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17567
17568 * config.gcc: Remove support for knetbsd.
17569 * configure.ac: Likewise.
17570 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
17571 * config/knetbsd-gnu.h: Remove.
17572 * configure: Regenerate.
17573
17574 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17575
17576 * config.gcc: Remove support for openbsd 2 and 3.
17577 * config/openbsd-oldgas.h: Remove.
17578
17579 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17580
17581 * config.gcc: Remove interix support.
17582 * config/i386/i386-interix.h: Remove.
17583 * config/i386/interix.opt: Remove.
17584 * config/i386/t-interix: Remove.
17585 * configure: Regenerate.
17586 * configure.ac: Remove interix support.
17587 * doc/install.texi: Remove interix documentation.
17588
17589 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
17590
17591 * config/rs6000/rs6000.h: Add conditional preprocessing directives
17592 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
17593 not defined.
17594
17595 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
17596
17597 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
17598 they are both PLACEHOLDER_EXPRs.
17599
17600 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17601
17602 * stor-layout.c (layout_type): Move setting complex MODE to
17603 layout_type, instead of setting it ahead of time by the caller.
17604 * tree.c (build_complex_type): Likewise.
17605
17606 2016-06-21 Martin Liska <mliska@suse.cz>
17607
17608 * predict.c (force_edge_cold): Replace imposisble with
17609 impossible.
17610
17611 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
17612
17613 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
17614 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
17615
17616 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
17617
17618 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
17619
17620 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
17621 Ilya Enkovich <ilya.enkovich@intel.com>
17622
17623 PR target/71549
17624 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
17625 New member function to convert V1TImode register to SUBREG
17626 TImode in debug insn.
17627 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
17628 after changing register mode to V1TImode.
17629
17630 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
17631
17632 * config/aarch64/aarch64-cores.def (vulcan): New core.
17633 * config/aarch64/aarch64-tune.md: Regenerate.
17634 * doc/invoke.texi: Document vulcan as an available option.
17635
17636 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
17637
17638 * cse.c (canon_asm_operands): New function extracted from...
17639 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
17640 either standalone or member of a PARALLEL.
17641
17642 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
17643
17644 PR target/30417
17645 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
17646 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
17647 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
17648
17649 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
17650
17651 PR target/71103
17652 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
17653 constant addresses if can_create_pseudo_p.
17654
17655 2016-06-21 Jakub Jelinek <jakub@redhat.com>
17656
17657 PR tree-optimization/71588
17658 * tree-ssa-strlen.c (valid_builtin_call): New function.
17659 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
17660 it.
17661
17662 2016-06-20 Jakub Jelinek <jakub@redhat.com>
17663
17664 PR middle-end/71581
17665 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
17666 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
17667 for conversion of scalar user var to complex type and use the
17668 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
17669 punt.
17670
17671 PR rtl-optimization/71591
17672 * toplev.c (toplev::run_self_tests): If no_backend, complain and
17673 don't run any tests.
17674
17675 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
17676
17677 PR target/71571
17678 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
17679 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
17680 space for PIC with non-v32 and the common non-PIC "jump".
17681
17682 2016-06-20 Jakub Jelinek <jakub@redhat.com>
17683
17684 PR target/71559
17685 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
17686 returned values and add UN*/LTGT/*ORDERED cases with values matching
17687 D operand modifier on vcmp for AVX.
17688
17689 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
17690
17691 * config/aarch64/aarch64.opt
17692 (mpc-relative-literal-loads): Rename internal option name.
17693 * config/aarch64/aarch64.c
17694 (aarch64_nopcrelative_literal_loads): Rename to
17695 aarch64_pcrelative_literal_loads.
17696 (aarch64_expand_mov_immediate): Likewise.
17697 (aarch64_secondary_reload): Likewise.
17698 (aarch64_can_use_per_function_literal_pools_p): Likewise.
17699 (aarch64_override_options_after_change_1): Rename and simplify logic.
17700 (aarch64_classify_symbol): Merge large model checks into switch,
17701 remove pc-relative load check.
17702
17703 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
17704
17705 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
17706 costs relative to the cost of a register move.
17707
17708 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
17709
17710 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
17711 (vcvt_n_f64_u64): Likewise.
17712 (vcvt_n_s64_f64): Likewise.
17713 (vcvt_n_u64_f64): Likewise.
17714 (vcvt_f64_s64): Likewise.
17715 (vrecpe_f64): Likewise.
17716 (vcvt_f64_u64): Likewise.
17717 (vrecps_f64): Likewise.
17718
17719 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
17720
17721 * config/aarch64/aarch64.md
17722 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
17723 iterators.
17724 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
17725 attributes.
17726 * config/aarch64/aarch64-builtins.c
17727 (aarch64_types_binop_uss_qualifiers): Delete.
17728 (TYPES_BINOP_USS): Likewise.
17729 (aarch64_types_binop_sus_qualifiers): Likewise.
17730 (TYPES_BINOP_SUS): Likewise.
17731 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
17732 (TYPES_FCVTIMM_SUS): Likewise.
17733 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
17734 rather than BINOP.
17735 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
17736 (fcvtzs): Use SHIFTIMM rather than BINOP.
17737 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
17738
17739 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
17740
17741 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
17742 costs relative to the cost of a register move.
17743
17744 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
17745
17746 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
17747 Allow scalar/single vector modes to be tieable.
17748
17749 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
17750
17751 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
17752
17753 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17754
17755 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
17756 "alignement".
17757 * tree.h (TYPE_ALIGN): Likewise.
17758
17759 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
17760
17761 PR target/71103
17762 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
17763
17764 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
17765
17766 * config/avr/avr.c (avr_print_operand): Fix "format not a string
17767 literal" build warnings.
17768 (avr_print_operand_address): Dito.
17769
17770 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
17771
17772 PR target/71375
17773 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
17774 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
17775
17776 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
17777
17778 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
17779
17780 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
17781
17782 PR bootstrap/71435
17783 * reload1.c (reload): Pass 0 to finish_spills when called because
17784 update_eliminables_and_spill returns true and remove did_spill.
17785 (finish_spills): Adjust comment and document GLOBAL parameter.
17786
17787 2016-06-17 DJ Delorie <dj@redhat.com>
17788
17789 PR target/71338
17790 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
17791 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
17792 (umulqihi3_virt): Likewise.
17793 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
17794 (umulqihi3_real): Likewise.
17795
17796 2016-06-17 Martin Liska <mliska@suse.cz>
17797
17798 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
17799
17800 2016-06-17 Martin Liska <mliska@suse.cz>
17801
17802 * predict.def: PRED_LOOP_EXIT from 92 to 85.
17803
17804 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
17805
17806 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
17807 __FAST_MATH__.
17808 (vaddq_f32): Likewise.
17809 (vmul_f32): Likewise.
17810 (vmulq_f32): Likewise.
17811 (vsub_f32): Likewise.
17812 (vsubq_f32): Likewise.
17813
17814 2016-06-17 Bin Cheng <bin.cheng@arm.com>
17815
17816 PR tree-optimization/71347
17817 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
17818 cost for all uses in group.
17819
17820 2016-06-17 Bin Cheng <bin.cheng@arm.com>
17821
17822 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
17823 insert gimple seq if it's not empty.
17824
17825 2016-06-17 Bin Cheng <bin.cheng@arm.com>
17826
17827 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
17828 member OFFSET.
17829 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
17830 rather than OFFSET.
17831 (comp_dr_with_seg_len_pair): Ditto.
17832 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
17833 struct dr_with_seg_len_pair against DR_OFFSET.
17834 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
17835 DR_OFFSET directly.
17836
17837 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
17838
17839 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
17840
17841 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
17842
17843 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
17844 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
17845 (pa_output_millicode_call): Likewise.
17846 (pa_output_call): Likewise.
17847 (pa_output_indirect_call): Likewise.
17848 (pa_asm_output_mi_thunk): Likewise.
17849
17850 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17851
17852 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
17853
17854 2016-06-16 Martin Liska <mliska@suse.cz>
17855
17856 * predict.c (combine_predictions_for_insn): When we find a first
17857 match predictor, we should consider just predictors with
17858 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
17859 DS theory predictor.
17860 (combine_predictions_for_bb): Likewise.
17861
17862 2016-06-16 Jakub Jelinek <jakub@redhat.com>
17863
17864 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
17865 with base of reference to struct.
17866
17867 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
17868
17869 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
17870
17871 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17872
17873 PR target/71151
17874 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
17875 progmem_swtable_section.
17876 (progmem_swtable_section): Remove.
17877 (avr_asm_function_rodata_section): Remove.
17878 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
17879 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
17880
17881 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
17882
17883 * config/i386/driver-i386.c (host_detect_local_cpu): Set
17884 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
17885 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
17886 signature_CENTAUR_ebx.
17887 * config/i386/i386.c (ix86_option_override_internal): Add
17888 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
17889 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
17890 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
17891
17892 2016-06-16 Martin Liska <mliska@suse.cz>
17893
17894 * predict.def: Add fortran loop preheader predictor.
17895 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
17896 fold IFN_BUILTIN_EXPECT with a known constant argument.
17897
17898 2016-06-16 Martin Liska <mliska@suse.cz>
17899
17900 * predict.def: Add 'Fortran' to display text of all
17901 PRED_FORTRAN_* predictors.
17902
17903 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
17904
17905 PR target/71242
17906 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
17907 [IA64_BUILTIN_NANSQ]: Ditto.
17908 (ia64_fold_builtin): New function.
17909 (TARGET_FOLD_BUILTIN): New define.
17910 (ia64_init_builtins) Declare const_string_type node.
17911 Add __builtin_nanq and __builtin_nansq builtin functions.
17912 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
17913
17914 2016-06-16 Nick Clifton <nickc@redhat.com>
17915
17916 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
17917 MSP430_HWMULT_ prefix to enum values.
17918 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
17919 * config/msp430/msp430.c: Update use of enum values.
17920 * config/msp430/msp430.md: Likewise.
17921 * config/msp430/msp430.opt: Likewise.
17922
17923 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
17924
17925 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
17926 of comparsions in the last iteration.
17927
17928 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
17929 Joern Rennecke <joern.rennecke@embecosm.com>
17930
17931 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
17932 addresses.
17933 (arc_needs_pcl_p): Add GOTOFFPC.
17934 (arc_legitimate_pic_addr_p): Likewise.
17935 (arc_output_pic_addr_const): Likewise.
17936 (arc_legitimize_pic_address): Generate a pc-relative address using
17937 GOTOFFPC.
17938 (arc_output_libcall): Use @pcl syntax.
17939 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
17940 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
17941 (*movsi_insn): Use @pcl syntax.
17942 (doloop_begin_i): Likewise.
17943
17944 2016-06-16 Martin Liska <mliska@suse.cz>
17945
17946 * predict.def: Define a new predictor.
17947
17948 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
17949
17950 * config/arc/arc.opt (mtp-regno): Update text.
17951
17952 2016-06-16 Renlin Li <renlin.li@arm.com>
17953
17954 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
17955
17956 2016-06-16 Jakub Jelinek <jakub@redhat.com>
17957
17958 PR target/71554
17959 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
17960 (setcc + and peephole2): Likewise.
17961
17962 PR rtl-optimization/71532
17963 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
17964 memory slots.
17965
17966 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
17967
17968 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
17969 DImode constants with XXSPLTIB in vector registers.
17970 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
17971 vsx_extract_<mode>_internal{1,2} into a single insn that handles
17972 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
17973 extraction of the element at the top of the register as a scalar
17974 value.
17975 (vsx_extract_<mode>_internal1): Likewise.
17976 (vsx_extract_<mode>_internal2): Likewise.
17977 * config/rs6000/constraints.md (wi constraint): Remove a comment
17978 about DImode not being allowed in Altivec registers.
17979 (wB constraint): New constraint for constants that can be
17980 generated in Altivec registers with VSPLTISW/VUPKHSW.
17981 * config/rs6000/predicates.md (xxspltib_constant_split): Update
17982 comments.
17983 (xxspltib_constant_nosplit): Likewise.
17984 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
17985 support for -mupper-regs-di to enable DImode to go into Altivec
17986 registers.
17987 (POWERPC_MASKS): Likewise.
17988 (power7 cpu): Likewise.
17989 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
17990 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17991 for DImode being allowed in Altivec registers. Update wi/wj
17992 constraints. Set scalar_in_vmx_p flag.
17993 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
17994 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
17995 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
17996 (rs6000_opt_masks): Add -mupper-regs-di.
17997 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
17998 direct move to use wi and not wj.
17999 (lfiwzx): Likewise.
18000 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
18001 alternative.
18002 (floatunssi<mode>2_lfiwzx_mem): Likewise.
18003 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
18004 any VSX register, instead of just Altivec registers, to allow
18005 either operand to be an Altivec register or both.
18006 (fixuns_trunc<mode>di2_fctiduz): Likewise.
18007 (movdi_internal32): Add support for -mupper-regs-di. Add support
18008 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
18009 the alternatives and attributes to be lined up to be easier to
18010 read.
18011 (movdi_internal64): Likewise.
18012 (64-bit DImode splitters): Change predicates to only split loading
18013 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
18014 load constants in ISA 3.0 or ISA 2.07 respectively.
18015 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18016 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
18017 mention -mcpu=power9 sets these options.
18018 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
18019 wB constraint.
18020
18021 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18022
18023 PR target/67353
18024 * config/avr/avr.c (avr_set_current_function): Warn misspelled
18025 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
18026 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
18027 by default to warn misspelled interrupt/ signal handler.
18028 * doc/invoke.texi (AVR Options): Document it. Update description
18029 for -nodevicelib option.
18030
18031 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18032
18033 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
18034 up parentheses. Use GET_MODE_UNIT_BITSIZE.
18035 (aarch64_<sur>shll2_n<mode>): Likewise.
18036
18037 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
18038
18039 PR middle-end/71529
18040 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
18041 DECL_CONTEXT for copied arguments.
18042
18043 2016-06-15 Alan Hayward <alan.hayward@arm.com>
18044
18045 PR tree-optimization/71483
18046 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
18047 for slp
18048
18049 2016-06-15 Martin Liska <mliska@suse.cz>
18050
18051 * predict.c (tree_predict_by_opcode): Call predict_edge_def
18052 instead of predict_edge w/o a probability.
18053
18054 2016-06-15 Alan Hayward <alan.hayward@arm.com>
18055
18056 PR tree-optimization/71439
18057 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
18058 live PHIs.
18059
18060 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18061
18062 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
18063 register subregs in SET_SRC.
18064
18065 2016-06-15 Richard Biener <rguenther@suse.de>
18066
18067 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
18068 store restrictions.
18069
18070 2016-06-15 Richard Biener <rguenther@suse.de>
18071
18072 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
18073 not consider dependences between accesses that belong to the
18074 same group.
18075 (vect_analyze_data_ref_dependences): Do not analyze read-read
18076 or self-dependences.
18077
18078 2016-06-14 David Malcolm <dmalcolm@redhat.com>
18079
18080 * spellcheck-tree.c: Include spellcheck-tree.h rather than
18081 spellcheck.h.
18082 (find_closest_identifier): Reimplement in terms of
18083 best_match<tree,tree>.
18084 * spellcheck-tree.h: New file.
18085 * spellcheck.c (struct edit_distance_traits<const char *>): New
18086 struct.
18087 (find_closest_string): Reimplement in terms of
18088 best_match<const char *, const char *>.
18089 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
18090 overload to spellcheck-tree.h.
18091 (find_closest_identifier): Likewise.
18092 (struct edit_distance_traits<T>): New template.
18093 (class best_match): New class.
18094
18095 2016-06-14 David Malcolm <dmalcolm@redhat.com>
18096
18097 * selftest-run-tests.c (selftest::run_tests): Call
18098 selftest::spellcheck_tree_c_tests.
18099 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
18100 * spellcheck-tree.c: Include selftest.h and stringpool.h.
18101 (selftest::test_find_closest_identifier): New function.
18102 (selftest::spellcheck_tree_c_tests): New function.
18103 * spellcheck.c (selftest::test_find_closest_string): Verify that
18104 the order of the vec does not affect the results for this case.
18105 (selftest::test_data): New array.
18106 (selftest::test_metric_conditions): New function.
18107 (selftest::spellcheck_c_tests): Add a test of case-comparison.
18108 Call selftest::test_metric_conditions.
18109
18110 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18111
18112 * config/rs6000/rs6000-builtin.def (commentary): Typo.
18113 (BU_P9_MISC_1): Likewise.
18114 (BU_P9_64BIT_MISC_0): Likewise.
18115 (BU_P9_MISC_0): Likewise.
18116
18117 2016-06-14 David Malcolm <dmalcolm@redhat.com>
18118
18119 * gcc-rich-location.c
18120 (gcc_rich_location::add_fixit_misspelled_id): New method.
18121 * gcc-rich-location.h
18122 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
18123
18124 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
18125
18126 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
18127 FreeBSD 11 and above.
18128
18129 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
18130
18131 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
18132
18133 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18134
18135 * expmed.h: Close parenthesis in "at your option" in copyright
18136 boilerplate.
18137 * lower-subreg.h: Likewise.
18138
18139 2016-06-14 Richard Biener <rguenther@suse.de>
18140
18141 PR middle-end/71526
18142 * genmatch.c (expr::gen_transform): Use in_type for comparisons
18143 if available.
18144
18145 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18146
18147 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
18148 New function.
18149 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
18150 mask+shift version.
18151 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
18152 New prototype.
18153 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
18154 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
18155
18156 2016-06-14 Richard Biener <rguenther@suse.de>
18157
18158 PR tree-optimization/71522
18159 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
18160 copying into float copying.
18161
18162 2016-06-14 Jakub Jelinek <jakub@redhat.com>
18163
18164 PR tree-optimization/71520
18165 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
18166 (replace_block_by): Move user labels from bb1 to bb2.
18167
18168 2016-06-14 Richard Biener <rguenther@suse.de>
18169
18170 PR middle-end/71310
18171 PR bootstrap/71510
18172 * expr.h (get_bit_range): Declare.
18173 * expr.c (get_bit_range): Export.
18174 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
18175 word_mode again to constrain the bitfield access.
18176
18177 2016-06-14 Richard Biener <rguenther@suse.de>
18178
18179 PR tree-optimization/71521
18180 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
18181 division int_const_binop against zero divisor.
18182
18183 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
18184
18185 * config/i386/i386.md (signbittf2): New expander.
18186 * config/i386/sse.md (ptesttf2): New insn pattern.
18187
18188 2016-06-13 David Malcolm <dmalcolm@redhat.com>
18189
18190 PR bootstrap/71481
18191 * input.c (selftest::test_reading_source_line): Avoid reading from
18192 __FILE__ by creating a tempfile with known content and reading
18193 from that instead.
18194
18195 2016-06-13 David Malcolm <dmalcolm@redhat.com>
18196
18197 * pretty-print.c (assert_pp_format_colored): Skip the test if
18198 GCC_COLORS is set.
18199 (test_pp_format): Remove comment about GCC_COLORS.
18200
18201 2016-06-13 David Malcolm <dmalcolm@redhat.com>
18202
18203 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
18204 * pretty-print.c (assert_pp_format_va): Add location param and use
18205 it with ASSERT_STREQ_AT.
18206 (assert_pp_format): Add location param and pass it to
18207 assert_pp_format_va.
18208 (assert_pp_format_colored): Likewise.
18209 (ASSERT_PP_FORMAT_1): New.
18210 (ASSERT_PP_FORMAT_2): New.
18211 (ASSERT_PP_FORMAT_3): New.
18212 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
18213 explicitly, or implicitly via the above macros.
18214 * selftest.c (selftest::pass): Use a selftest::location rather
18215 than file and line.
18216 (selftest::fail): Likewise. Print the function name.
18217 (selftest::fail_formatted): Likewise.
18218 (selftest::assert_streq): Use a selftest::location rather than
18219 file and line.
18220 * selftest.h (selftest::location): New struct.
18221 (SELFTEST_LOCATION): New macro.
18222 (selftest::pass): Accept a const location & rather than file
18223 and line.
18224 (selftest::fail): Likewise.
18225 (selftest::fail_formatted): Likewise.
18226 (selftest::assert_streq): Likewise.
18227 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
18228 (ASSERT_FALSE): Likewise.
18229 (ASSERT_EQ): Likewise.
18230 (ASSERT_NE): Likewise.
18231 (ASSERT_STREQ): Likewise.
18232 (ASSERT_PRED1): Likewise.
18233 (ASSERT_STREQ_AT): New macro.
18234
18235 2016-06-13 David Malcolm <dmalcolm@redhat.com>
18236
18237 * selftest.c (selftest::fail_formatted): New function.
18238 (selftest::assert_streq): New function.
18239 * selftest.h (selftests::fail_formatted): New decl.
18240 (selftest::assert_streq): New decl.
18241 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
18242
18243 2016-06-13 Jeff Law <law@redhat.com>
18244
18245 PR tree-optimization/71403
18246 * tree-ssa-threadbackward.c
18247 (convert_and_register_jump_thread_path): No longer accept reference
18248 to path. Do not pop items off the path anymore.
18249 (fsm_find_control_statement_thread_paths): Do not allow threading
18250 to a deeper loop nest. Pop the last item off the path here rather
18251 than in convert_and_register_jump_thread_path.
18252
18253 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
18254 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
18255
18256 [AArch64] Emit division using the Newton series
18257
18258 * config/aarch64/aarch64-protos.h
18259 (cpu_approx_modes): Add new member "division".
18260 (aarch64_emit_approx_div): Declare new function.
18261 * config/aarch64/aarch64.c
18262 (generic_approx_modes): New member "division".
18263 (exynosm1_approx_modes): Likewise.
18264 (xgene1_approx_modes): Likewise.
18265 (aarch64_emit_approx_div): Define new function.
18266 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
18267 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
18268 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
18269 * doc/invoke.texi (-mlow-precision-div): Describe new option.
18270
18271 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
18272 Wilco Dijkstra <wilco.dijkstra@arm.com>
18273
18274 [AArch64] Emit square root using the Newton series
18275
18276 * config/aarch64/aarch64-protos.h
18277 (aarch64_emit_approx_rsqrt): Replace with new function
18278 "aarch64_emit_approx_sqrt".
18279 (cpu_approx_modes): New member "sqrt".
18280 * config/aarch64/aarch64.c
18281 (generic_approx_modes): New member "sqrt".
18282 (exynosm1_approx_modes): Likewise.
18283 (xgene1_approx_modes): Likewise.
18284 (aarch64_emit_approx_rsqrt): Replace with new function
18285 "aarch64_emit_approx_sqrt".
18286 (aarch64_override_options_after_change_1): Handle new option.
18287 * config/aarch64/aarch64-simd.md
18288 (rsqrt<mode>2): Use new function instead.
18289 (sqrt<mode>2): New expansion and insn definitions.
18290 * config/aarch64/aarch64.md: Likewise.
18291 * config/aarch64/aarch64.opt
18292 (mlow-precision-sqrt): Add new option description.
18293 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
18294
18295 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
18296
18297 [AArch64] Add more choices for the reciprocal square root approximation
18298
18299 Allow a target to prefer such operation depending on the operation mode.
18300
18301 * config/aarch64/aarch64-protos.h
18302 (AARCH64_APPROX_MODE): New macro.
18303 (AARCH64_APPROX_{NONE,ALL}): Likewise.
18304 (cpu_approx_modes): New structure.
18305 (tune_params): New member "approx_modes".
18306 * config/aarch64/aarch64-tuning-flags.def
18307 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
18308 * config/aarch64/aarch64.c
18309 (generic_approx_modes): New core "cpu_approx_modes" structure.
18310 (exynosm1_approx_modes): Likewise.
18311 (xgene1_approx_modes): Likewise.
18312 (generic_tunings): New member "approx_modes".
18313 (cortexa35_tunings): Likewise.
18314 (cortexa53_tunings): Likewise.
18315 (cortexa57_tunings): Likewise.
18316 (cortexa72_tunings): Likewise.
18317 (exynosm1_tunings): Likewise.
18318 (thunderx_tunings): Likewise.
18319 (xgene1_tunings): Likewise.
18320 (use_rsqrt_p): New argument for the mode and use new member from
18321 "tune_params".
18322 (aarch64_builtin_reciprocal): Devise mode from builtin.
18323 (aarch64_optab_supported_p): New argument for the mode.
18324 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
18325
18326 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
18327
18328 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
18329 RS6000_BTM_MODULO flag into the set of flags that are considered
18330 to be part of the common configuration.
18331
18332 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
18333
18334 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
18335 difference unsigned.
18336 (vec_absdb): New macro for vector absolute difference unsigned
18337 byte.
18338 (vec_absdh): New macro for vector absolute difference unsigned
18339 half-word.
18340 (vec_absdw): New macro for vector absolute difference unsigned word.
18341 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
18342 (vadu<mode>3): New insn.
18343 (*p9_vadu<mode>3): New insn.
18344 * config/rs6000/rs6000-builtin.def (vadub): New built-in
18345 definition.
18346 (vaduh): New built-in definition.
18347 (vaduw): New built-in definition.
18348 (vadu): New overloaded built-in definition.
18349 (vadub): New overloaded built-in definition.
18350 (vaduh): New overloaded built-in definition.
18351 (vaduw): New overloaded built-in definition.
18352 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18353 overloaded vector absolute difference unsigned functions.
18354 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18355 the ISA 3.0 vector absolute difference unsigned built-in functions.
18356
18357 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
18358
18359 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
18360 update shared_lookup_references only once after changing operands.
18361
18362 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
18363
18364 PR middle-end/71373
18365 * tree-nested.c (convert_nonlocal_omp_clauses)
18366 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
18367
18368 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
18369 * tree.def (CASE_LABEL_EXPR): Likewise.
18370
18371 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
18372
18373 PR bootstrap/71481
18374 * input.c (test_builtins): Fix an assertion.
18375
18376 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
18377
18378 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
18379 (paritysi2): Ditto.
18380 (isinfxf2): Ditto.
18381 (isinf<mode>2): Ditto.
18382
18383 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
18384
18385 * ggc-tests.c (test_finalization): Only test need_finalization_p
18386 for GCC_VERSION >= 4003.
18387
18388 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18389
18390 * config/s390/vecintrin.h: Fix file description in comment.
18391
18392 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18393
18394 * config/s390/s390-builtin-types.def: Change builtin type naming
18395 scheme to match builtin-types.def.
18396
18397 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
18398
18399 * fold-const.c (optimize_minmax_comparison): Remove.
18400 (fold_comparison): Remove call to the above.
18401 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
18402 New transformations.
18403
18404 2016-06-13 Alan Hayward <alan.hayward@arm.com>
18405
18406 PR tree-optimization/71416
18407 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
18408 multiple entries
18409
18410 2016-06-13 Martin Liska <mliska@suse.cz>
18411
18412 * predict.c (enum predictor_reason): Prefix enum with REASON_.
18413 (combine_predictions_for_insn): Likewise.
18414 (prune_predictions_for_bb): Likewise.
18415 (combine_predictions_for_bb): Likewise.
18416
18417 2016-06-13 Richard Biener <rguenther@suse.de>
18418
18419 PR tree-optimization/71505
18420 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
18421 assert match comment.
18422
18423 2016-06-13 Marek Polacek <polacek@redhat.com>
18424
18425 PR middle-end/71476
18426 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
18427 gimplify_switch_expr.
18428 (warn_switch_unreachable_r): New function.
18429
18430 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18431
18432 PR target/71379
18433 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
18434 one.
18435
18436 2016-06-13 Richard Biener <rguenther@suse.de>
18437
18438 PR middle-end/64516
18439 * fold-const.c (fold_unary_loc): Preserve alignment when
18440 folding a VIEW_CONVERT_EXPR into a MEM_REF.
18441
18442 2016-06-13 Martin Liska <mliska@suse.cz>
18443
18444 PR sanitizer/71458
18445 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
18446 w/ -fsanitize=bounds.
18447
18448 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
18449
18450 * config/i386/i386.c (ix86_init_builtins): Calculate
18451 FLOAT128_FTYPE_CONST_STRING function type only once.
18452 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
18453 built-in functions are available for x86-32 and x86-64 targets.
18454
18455 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
18456
18457 PR target/71241
18458 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
18459 New primitive type.
18460 (FLOAT128_FTYPE_CONST_STRING): New function type.
18461 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
18462 [IX86_BUILTIN_NANSQ]: Ditto.
18463 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
18464 (ix86_init_builtin_types): Declare const_string_type_node.
18465 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
18466 builtin functions.
18467 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
18468 * doc/extend.texi (x86 Built-in Functions): Document
18469 __builtin_nanq and __builtin_nansq.
18470
18471 2016-06-11 Jiong Wang <jiong.wang@arm.com>
18472
18473 PR target/71061
18474 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
18475 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
18476 length for pop patterns.
18477 (arm_attr_length_push_multi): Update comments.
18478 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
18479 attribute.
18480 (*pop_multiple_with_writeback_and_return): Likewise.
18481 (*pop_multiple_with_return): Likewise.
18482
18483 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
18484
18485 PR middle-end/71310
18486 * fold-const.c (optimize_bit_field_compare): Don't try to use
18487 word_mode unconditionally for reading the bit field, look at
18488 DECL_BIT_FIELD_REPRESENTATIVE instead.
18489
18490 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
18491
18492 PR middle-end/71478
18493 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
18494 vector integer type.
18495
18496 2016-06-10 Jakub Jelinek <jakub@redhat.com>
18497
18498 PR middle-end/71494
18499 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
18500 without LABEL_DECL, set *handled_ops_p to false instead of true.
18501
18502 2016-06-10 Martin Sebor <msebor@redhat.com>
18503
18504 PR c/71392
18505 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
18506 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
18507 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
18508 them.
18509 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
18510 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
18511 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
18512 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
18513 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
18514 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
18515 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
18516 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
18517
18518 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18519
18520 * config/arm/arm.h (pool_vector_label,
18521 return_used_this_function): Remove.
18522
18523 2016-06-10 Jeff Law <law@redhat.com>
18524
18525 PR tree-optimization/71335
18526 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
18527 zero length paths here.
18528 (convert_and_register_jump_thread_path): Remove hacks related to
18529 duplicated blocks in the jump thread path.
18530 (fsm_find_control_statement_thread_paths): Avoid putting the same
18531 block on the thread path twice, but ensure the thread path is
18532 unchanged from the caller's point of view.
18533
18534 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
18535
18536 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
18537 * predict.def (PRED_LOOP_BRANCH): Remove.
18538
18539 2016-06-10 David Malcolm <dmalcolm@redhat.com>
18540
18541 * Makefile.in (OBJS): Add ggc-tests.o.
18542 (GTFILES): Add ggc-tests.c.
18543 * ggc-tests.c: New file.
18544 * selftest-run-tests.c (selftest::run_tests): Call
18545 selftest::ggc_tests_c_tests.
18546 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
18547
18548 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
18549
18550 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
18551
18552 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
18553
18554 PR sanitizer/71480
18555 * varasm.c (place_block_symbol): Adjust alignment for asan protected
18556 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
18557
18558 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
18559
18560 * profile.c: Include cfgloop.h.
18561 (branch_prob): Compute estimated number of iterations.
18562 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
18563 recompute estimate number of iterations from profile.
18564
18565 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18566
18567 PR inline-asm/68843
18568 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
18569 must be grouped on top of stack. Don't force early clobber
18570 on ordinary reg outputs.
18571
18572 2016-06-10 Richard Biener <rguenther@suse.de>
18573
18574 * targhooks.c (default_builtin_vectorization_cost): Adjust
18575 vec_construct cost.
18576
18577 2016-06-10 Richard Biener <rguenther@suse.de>
18578
18579 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
18580 to fold the RHS to a constant if possible.
18581
18582 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
18583
18584 PR middle-end/71373
18585 * tree-nested.c (convert_nonlocal_omp_clauses)
18586 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
18587 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
18588 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
18589
18590 * gimplify.c (gimplify_adjust_omp_clauses): Discard
18591 OMP_CLAUSE_TILE.
18592 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
18593
18594 * omp-low.c (scan_sharing_clauses): Don't expect
18595 OMP_CLAUSE__CACHE_.
18596
18597 2016-06-10 Alan Hayward <alan.hayward@arm.com>
18598
18599 PR tree-optimization/71407
18600 PR tree-optimization/71416
18601 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
18602 BIT_FIELD_REF type.
18603
18604 2016-06-10 Richard Biener <rguenther@suse.de>
18605
18606 PR middle-end/71477
18607 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
18608
18609 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
18610
18611 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
18612
18613 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
18614 Jiong Wang <jiong.wang@arm.com>
18615
18616 PR rtl-optimization/70751
18617 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
18618 spilled into memory.
18619
18620 2016-06-09 Jonathan Yong <10walls@gmail.com>
18621
18622 Revert:
18623 2015-09-21 Jonathan Yong <10walls@gmail.com>
18624
18625 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
18626 sysroot/usr/lib/32api for additional win32 libraries,
18627 fixes failing Cygwin bootstrapping.
18628
18629 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
18630
18631 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
18632 Delete.
18633
18634 2016-06-09 David Malcolm <dmalcolm@redhat.com>
18635
18636 PR bootstrap/71471
18637 * pretty-print.c (pp_indent): Specify that %p is printed in a
18638 host-dependent manner.
18639 (test_pp_format): Remove the test for %p.
18640
18641 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
18642
18643 * config/mips/mips.c (mips_output_jump): Fix formatting.
18644
18645 2016-06-09 Richard Biener <rguenther@suse.de>
18646
18647 PR tree-optimization/71462
18648 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
18649 removed blocks.
18650
18651 2016-06-09 Martin Liska <mliska@suse.cz>
18652
18653 * predict.c (dump_prediction): Add new argument.
18654 (enum predictor_reason): New enum.
18655 (struct predictor_hash): New struct.
18656 (predictor_hash::hash): New function.
18657 (predictor_hash::equal): Likewise.
18658 (not_removed_prediction_p): New function.
18659 (prune_predictions_for_bb): Likewise.
18660 (combine_predictions_for_bb): Prune predictions.
18661
18662 2016-06-09 Martin Liska <mliska@suse.cz>
18663
18664 * predict.c (filter_predictions): New function.
18665 (remove_predictions_associated_with_edge): Use the filter
18666 function.
18667 (equal_edge_p): New function.
18668
18669 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
18670
18671 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
18672 Correct usage of @samp vs @option, add @samp where appropriate.
18673 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
18674 Add armv6s-m and document it, as it is no official ARM name.
18675
18676 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18677
18678 * ifcvt.c (struct noce_if_info): Add transform_name field.
18679 (noce_try_move): Set if_info->transform_name to the function name.
18680 (noce_try_ifelse_collapse): Likewise.
18681 (noce_try_store_flag): Likewise.
18682 (noce_try_inverse_constants): Likewise.
18683 (noce_try_store_flag_constants): Likewise.
18684 (noce_try_addcc): Likewise.
18685 (noce_try_store_flag_mask): Likewise.
18686 (noce_try_cmove): Likewise.
18687 (noce_try_cmove_arith): Likewise.
18688 (noce_try_minmax): Likewise.
18689 (noce_try_abs): Likewise.
18690 (noce_try_sign_mask): Likewise.
18691 (noce_try_bitop): Likewise.
18692 (noce_convert_multiple_sets): Likewise.
18693 (noce_process_if_block): Print if_info->transform_name to
18694 dump_file if transformation succeeded.
18695
18696 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18697
18698 * config/arm/cortex-a57.md (cortex_a57_alu):
18699 Handle csel type.
18700
18701 2016-06-08 Martin Sebor <msebor@redhat.com>
18702 Jakub Jelinek <jakub@redhat.com>
18703
18704 PR c++/70507
18705 PR c/68120
18706 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
18707 BUILT_IN_MUL_OVERFLOW_P): New builtins.
18708 * builtins.c: Include gimple-fold.h.
18709 (fold_builtin_arith_overflow): Handle
18710 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
18711 (fold_builtin_3): Likewise.
18712 * doc/extend.texi (Integer Overflow Builtins): Document
18713 __builtin_{add,sub,mul}_overflow_p.
18714
18715 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
18716
18717 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
18718 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
18719
18720 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
18721
18722 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
18723 Rewrite, looking one level down for records and arrays.
18724
18725 2016-06-08 David Malcolm <dmalcolm@redhat.com>
18726
18727 * pretty-print.c: Include "selftest.h".
18728 (pp_format): Fix comment.
18729 (identifier_to_locale): Likewise.
18730 (selftest::test_basic_printing): New function.
18731 (selftest::assert_pp_format): New function.
18732 (selftest::test_pp_format): New function.
18733 (selftest::pretty_print_c_tests): New function.
18734 * selftest-run-tests.c (selftest::run_tests): Call
18735 selftest::pretty_print_c_tests.
18736 * selftest.h (pretty_print_c_tests): New declaration.
18737
18738 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
18739
18740 * invoke.texi (max-loop-headers-insns): Document.
18741 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
18742 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
18743 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
18744
18745 2016-06-08 Richard Biener <rguenther@suse.de>
18746
18747 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
18748 on strided SLP loads and fall back to scalar loads in case
18749 we can't chunk them.
18750
18751 2016-06-08 Richard Biener <rguenther@suse.de>
18752
18753 PR tree-optimization/71452
18754 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
18755 type used for the SSA rewrite has enough precision to cover
18756 the dynamic type of the location.
18757
18758 2016-06-08 Jakub Jelinek <jakub@redhat.com>
18759 Richard Biener <rguenther@suse.de>
18760
18761 PR c++/71448
18762 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
18763 the same as DECL_P (base0) for indirect_base0. Use equality_code
18764 in one further place.
18765
18766 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
18767
18768 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
18769 to one word if the field is known to overlap other words.
18770 (extract_bit_field_1): Likewise.
18771 (store_split_bit_field): Remove compensating code.
18772 (extract_split_bit_field): Likewise.
18773
18774 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
18775
18776 PR debug/71432
18777 PR ada/71413
18778 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
18779
18780 2016-06-08 Jiong Wang <jiong.wang@arm.com>
18781
18782 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
18783 VDQF.
18784 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
18785 (arch64_addpv4sf): Delete.
18786 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
18787 "gen_aarch64_addpv4sf".
18788 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
18789 builtin.
18790 (vpadds_f32): Likewise.
18791 (vpaddq_f32): Likewise.
18792 (vpaddq_f64): Likewise.
18793
18794 2016-06-08 Jiong Wang <jiong.wang@arm.com>
18795
18796 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
18797 VALLF.
18798 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
18799 to VALLF. Rename to "fabd<mode>3".
18800 "*fabd_scalar<mode>3): Delete.
18801 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
18802 Use builtin.
18803 (vabdd_f64): Likewise.
18804 (vabd_f32): Likewise.
18805 (vabd_f64): Likewise.
18806 (vabdq_f32): Likewise.
18807 (vabdq_f64): Likewise.
18808
18809 2016-06-08 Jiong Wang <jiong.wang@arm.com>
18810
18811 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
18812 VALLF.
18813 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
18814 "aarch64_rsqrts<mode>".
18815 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
18816 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
18817 builtin.
18818 (vrsqrtsd_f64): Likewise.
18819 (vrsqrts_f32): Likewise.
18820 (vrsqrts_f64): Likewise.
18821 (vrsqrtsq_f32): Likewise.
18822 (vrsqrtsq_f64): Likewise.
18823
18824 2016-06-08 Jiong Wang <jiong.wang@arm.com>
18825
18826 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
18827 VALLF.
18828 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
18829 "aarch64_rsqrte<mode>".
18830 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
18831 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
18832 builtin.
18833 (vrsqrted_f64): Likewise.
18834 (vrsqrte_f32): Likewise.
18835 (vrsqrte_f64): Likewise.
18836 (vrsqrteq_f32): Likewise.
18837 (vrsqrteq_f64): Likewise.
18838
18839 2016-06-08 Jiong Wang <jiong.wang@arm.com>
18840
18841 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
18842 (ucvtf): Likewise.
18843 (fcvtzs): Likewise.
18844 (fcvtzu): Likewise.
18845 * config/aarch64/aarch64-simd.md
18846 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
18847 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
18848 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
18849 Use builtin.
18850 (vcvt_n_f32_u32): Likewise.
18851 (vcvt_n_s32_f32): Likewise.
18852 (vcvt_n_u32_f32): Likewise.
18853 (vcvtq_n_f32_s32): Likewise.
18854 (vcvtq_n_f32_u32): Likewise.
18855 (vcvtq_n_f64_s64): Likewise.
18856 (vcvtq_n_f64_u64): Likewise.
18857 (vcvtq_n_s32_f32): Likewise.
18858 (vcvtq_n_s64_f64): Likewise.
18859 (vcvtq_n_u32_f32): Likewise.
18860 (vcvtq_n_u64_f64): Likewise.
18861 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
18862 (VSDQ_SDI): Likewise.
18863 (fcvt_target): Support V4DI, V4SI and V2SI.
18864 (FCVT_TARGET): Likewise.
18865
18866 2016-06-08 Jiong Wang <jiong.wang@arm.com>
18867
18868 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
18869 (TYPES_BINOP_SUS): Likewise.
18870 (aarch64_simd_builtin_data): Update include file name.
18871 (aarch64_builtins): Likewise.
18872 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
18873 for conversion between scalar float-point and fixed-point.
18874 (ucvtf): Likewise.
18875 (fcvtzs): Likewise.
18876 (fcvtzu): Likewise.
18877 * config/aarch64/aarch64.md
18878 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
18879 pattern for conversion between scalar float to fixed-pointer.
18880 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
18881 (UNSPEC_FCVTZS): New UNSPEC enumeration.
18882 (UNSPEC_FCVTZU): Likewise.
18883 (UNSPEC_SCVTF): Likewise.
18884 (UNSPEC_UCVTF): Likewise.
18885 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
18886 Use builtin.
18887 (vcvtd_n_f64_u64): Likewise.
18888 (vcvtd_n_s64_f64): Likewise.
18889 (vcvtd_n_u64_f64): Likewise.
18890 (vcvtd_n_f32_s32): Likewise.
18891 (vcvts_n_f32_u32): Likewise.
18892 (vcvtd_n_s32_f32): Likewise.
18893 (vcvts_n_u32_f32): Likewise.
18894 * config/aarch64/iterators.md (fcvt_target): Support integer to float
18895 mapping.
18896 (FCVT_TARGET): Likewise.
18897 (FCVT_FIXED2F): New iterator.
18898 (FCVT_F2FIXED): Likewise.
18899 (fcvt_fixed_insn): New define_int_attr.
18900
18901 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
18902
18903 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
18904 some statements was removed.
18905
18906 2016-06-08 Alan Hayward <alan.hayward@arm.com>
18907
18908 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
18909 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
18910 (vect_can_advance_ivs_p): likewise.
18911 (vect_update_ivs_after_vectorizer): likewise.
18912 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
18913 (vect_analyze_scalar_cycles_1): likewise.
18914 (vect_analyze_loop_operations): likewise.
18915 (report_vect_op): likewise.
18916 (vect_is_slp_reduction): likewise.
18917 (vect_is_simple_reduction): likewise.
18918 (get_initial_def_for_induction): likewise.
18919 (vect_transform_loop): likewise.
18920 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
18921 (vect_recog_sad_pattern): likewise.
18922 (vect_recog_widen_sum_pattern): likewise.
18923 (vect_recog_widening_pattern): likewise.
18924 (vect_recog_divmod_pattern): likewise.
18925 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
18926 (vect_analyze_slp_instance): likewise.
18927 (vect_transform_slp_perm_load): likewise.
18928 (vect_schedule_slp_instance): likewise.
18929
18930 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
18931
18932 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
18933 (return_prediction): PRED_CONST_RETURN predict return as not taken.
18934 * predict.def (PRED_CONTINUE): Change hitrate 50->67
18935 (PRED_LOOP_BRANCH): Document predictor as broken.
18936 (PRED_LOOP_EXIT): Change hitrate 91->92.
18937 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
18938 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
18939 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
18940 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
18941 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
18942 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
18943 (PRED_CALL): Chane hitrate 71->67.
18944 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
18945 (PRED_GOTO): Document as unused right now.
18946 (PRED_CONST_RETURN): Change hitrate 67->69
18947 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
18948 (PRED_NULL_RETURN): Change hitrate 91->90.
18949 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
18950 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
18951 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
18952
18953 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
18954
18955 * config/rs6000/altivec.h: Add __builtin_vec_mul.
18956 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
18957 special case Altivec builtin.
18958 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
18959 VSX_BUILTIN_VEC_MUL (replaced with special case code).
18960 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18961 code for ALTIVEC_BUILTIN_VEC_MUL.
18962 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
18963 for __builtin_vec_mul.
18964
18965 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
18966
18967 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
18968 -mno-htm.
18969
18970 2016-06-07 David Malcolm <dmalcolm@redhat.com>
18971
18972 * spellcheck.c (selftest::test_find_closest_string): New function.
18973 (spellcheck_c_tests): Call the above.
18974
18975 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18976
18977 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
18978
18979 2016-06-07 Jakub Jelinek <jakub@redhat.com>
18980
18981 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
18982 Yv=Yv,C alternatives.
18983
18984 2016-06-07 Richard Biener <rguenther@suse.de>
18985
18986 PR c/61564
18987 * common.opt (ffast-math): Make Optimization.
18988
18989 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
18990 Prachi Godbole <prachi.godbole@imgtec.com>
18991
18992 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
18993 `fabs' and `fneg' type attributes.
18994 (p5600_fpu_fabs): Add `fmove' to the comment.
18995
18996 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
18997
18998 * gimple.c: Include builtins.h
18999 (gimple_inexpensive_call_p): New function.
19000 * gimple.h (gimple_inexpensive_call_p): Declare.
19001 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
19002 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
19003 fix formatting.
19004
19005 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
19006
19007 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
19008 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
19009 warning_at_rich_loc, warning_n, pedwarn, permerror,
19010 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
19011 sorry, fatal_error, internal_error, internal_error_no_backtrace):
19012 Use the above.
19013
19014 2016-06-07 Richard Biener <rguenther@suse.de>
19015
19016 PR tree-optimization/71428
19017 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
19018 BIT_FIELD_REF op vs. load.
19019
19020 2016-06-07 Richard Biener <rguenther@suse.de>
19021
19022 PR middle-end/71423
19023 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
19024 for signed ops.
19025
19026 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
19027
19028 * config/pa/pa.md (call): Generate indirect long calls to non-local
19029 functions on TARGET_64BIT.
19030 (call_value): Likewise.
19031
19032 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
19033
19034 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
19035 pattern and subsequent splitters.
19036 (call_val_reg_64bit_post_reload): Likewise.
19037
19038 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
19039
19040 PR middle-end/71408
19041 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
19042 propagate_op_to_single_use.
19043
19044 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
19045
19046 PR middle-end/71281
19047 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
19048
19049 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
19050
19051 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
19052 (enum x86_dirflag_state): New enum.
19053 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
19054 (machine_function): Remove needs_cld.
19055 (ix86_current_function_needs_cld): Remove.
19056 * config/i386/i386.c (ix86_set_func_type): Set
19057 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
19058 (ix86_expand_prologue): Do not emit CLD here.
19059 (ix86_dirflag_mode_needed): New function.
19060 (ix86_dirflag_mode_entry): Ditto.
19061 (ix86_mode_needed): Handle X86_DIRFLAG entity.
19062 (ix86_mode_after): Ditto.
19063 (ix86_mode_entry): Ditto.
19064 (ix86_mode_exit): Ditto.
19065 (ix86_emit_mode_set): Ditto.
19066 * config/i386/i386.md (strmov_singleop): Set
19067 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
19068 Do not set ix86_current_function_needs_cld.
19069 (rep_mov): Ditto.
19070 (strset_singleop): Ditto.
19071 (rep_stos): Ditto.
19072 (cmpstrnqi_nz_1): Ditto.
19073 (cmpstrnqi_1): Ditto.
19074 (strlenqi_1): Ditto.
19075
19076 2016-06-06 Jakub Jelinek <jakub@redhat.com>
19077
19078 PR tree-optimization/71259
19079 * tree-vect-slp.c (vect_get_constant_vectors): For
19080 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
19081 one for constant op, and use COND_EXPR for non-constant.
19082
19083 2016-06-06 David Malcolm <dmalcolm@redhat.com>
19084
19085 * Makefile.in (OBJS): Add function-tests.o,
19086 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
19087 selftest-run-tests.o.
19088 (OBJS-libcommon): Add selftest.o.
19089 (OBJS-libcommon-target): Add selftest.o.
19090 (all.internal): Add "selftest".
19091 (all.cross): Likewise.
19092 (selftest): New phony target.
19093 (s-selftest): New target.
19094 (selftest-gdb): New phony target.
19095 (COLLECT2_OBJS): Add selftest.o.
19096 * bitmap.c: Include "selftest.h".
19097 (selftest::test_gc_alloc): New function.
19098 (selftest::test_set_range): New function.
19099 (selftest::test_clear_bit_in_middle): New function.
19100 (selftest::test_copying): New function.
19101 (selftest::test_bitmap_single_bit_set_p): New function.
19102 (selftest::bitmap_c_tests): New function.
19103 * common.opt (fself-test): New.
19104 * diagnostic-show-locus.c: Include "selftest.h".
19105 (make_range): New function.
19106 (test_range_contains_point_for_single_point): New function.
19107 (test_range_contains_point_for_single_line): New function.
19108 (test_range_contains_point_for_multiple_lines): New function.
19109 (assert_eq): New function.
19110 (test_get_line_width_without_trailing_whitespace): New function.
19111 (selftest::diagnostic_show_locus_c_tests): New function.
19112 * et-forest.c: Include "selftest.h".
19113 (selftest::test_single_node): New function.
19114 (selftest::test_simple_tree): New function.
19115 (selftest::test_disconnected_nodes): New function.
19116 (selftest::et_forest_c_tests): New function.
19117 * fold-const.c: Include "selftest.h".
19118 (selftest::assert_binop_folds_to_const): New function.
19119 (selftest::assert_binop_folds_to_nonlvalue): New function.
19120 (selftest::test_arithmetic_folding): New function.
19121 (selftest::fold_const_c_tests): New function.
19122 * function-tests.c: New file.
19123 * gimple.c: Include "selftest.h".
19124 Include "gimple-pretty-print.h".
19125 (selftest::verify_gimple_pp): New function.
19126 (selftest::test_assign_single): New function.
19127 (selftest::test_assign_binop): New function.
19128 (selftest::test_nop_stmt): New function.
19129 (selftest::test_return_stmt): New function.
19130 (selftest::test_return_without_value): New function.
19131 (selftest::gimple_c_tests): New function.
19132 * hash-map-tests.c: New file.
19133 * hash-set-tests.c: New file.
19134 * input.c: Include "selftest.h".
19135 (selftest::assert_loceq): New function.
19136 (selftest::test_accessing_ordinary_linemaps): New function.
19137 (selftest::test_unknown_location): New function.
19138 (selftest::test_builtins): New function.
19139 (selftest::test_reading_source_line): New function.
19140 (selftest::input_c_tests): New function.
19141 * rtl-tests.c: New file.
19142 * selftest-run-tests.c: New file.
19143 * selftest.c: New file.
19144 * selftest.h: New file.
19145 * spellcheck.c: Include "selftest.h".
19146 (selftest::levenshtein_distance_unit_test_oneway): New function,
19147 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
19148 (selftest::levenshtein_distance_unit_test): Likewise.
19149 (selftest::spellcheck_c_tests): Likewise.
19150 * toplev.c: Include selftest.h.
19151 (toplev::run_self_tests): New.
19152 (toplev::main): Handle -fself-test.
19153 * toplev.h (toplev::run_self_tests): New.
19154 * tree.c: Include "selftest.h".
19155 (selftest::test_integer_constants): New function.
19156 (selftest::test_identifiers): New function.
19157 (selftest::test_labels): New function.
19158 (selftest::tree_c_tests): New function.
19159 * tree-cfg.c: Include "selftest.h".
19160 (selftest::push_fndecl): New function.
19161 (selftest::test_linear_chain): New function.
19162 (selftest::test_diamond): New function.
19163 (selftest::test_fully_connected): New function.
19164 (selftest::tree_cfg_c_tests): New function.
19165 * vec.c: Include "selftest.h".
19166 (selftest::safe_push_range): New function.
19167 (selftest::test_quick_push): New function.
19168 (selftest::test_safe_push): New function.
19169 (selftest::test_truncate): New function.
19170 (selftest::test_safe_grow_cleared): New function.
19171 (selftest::test_pop): New function.
19172 (selftest::test_safe_insert): New function.
19173 (selftest::test_ordered_remove): New function.
19174 (selftest::test_unordered_remove): New function.
19175 (selftest::test_block_remove): New function.
19176 (selftest::reverse_cmp): New function.
19177 (selftest::test_qsort): New function.
19178 (selftest::vec_c_tests): New function.c.
19179 * wide-int.cc: Include selftest.h and wide-int-print.h.
19180 (selftest::from_int <wide_int>): New function.
19181 (selftest::from_int <offset_int>): New function.
19182 (selftest::from_int <widest_int>): New function.
19183 (selftest::assert_deceq): New function.
19184 (selftest::assert_hexeq): New function.
19185 (selftest::test_printing <VALUE_TYPE>): New function template.
19186 (selftest::test_ops <VALUE_TYPE>): New function template.
19187 (selftest::test_comparisons <VALUE_TYPE>): New function template.
19188 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
19189 template.
19190 (selftest::wide_int_cc_tests): New function.
19191
19192 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19193
19194 PR middle-end/37780
19195 * ifcvt.c (noce_try_ifelse_collapse): New function.
19196 Declare prototype.
19197 (noce_process_if_block): Call noce_try_ifelse_collapse.
19198 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
19199 (simplify_ternary_operation): Use the above to simplify
19200 conditional CLZ/CTZ expressions.
19201
19202 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19203
19204 PR middle-end/37780
19205 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
19206 define_insn_and_split.
19207
19208 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19209
19210 PR middle-end/37780
19211 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
19212
19213 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
19214
19215 PR c/24414
19216 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
19217 Implicitly clobber memory for basic asm with non-empty assembler
19218 string. Use targetm.md_asm_adjust also here.
19219 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
19220 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
19221 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
19222 non-empty assembler string.
19223 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
19224 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
19225 (decode_asm_operands): Handle basic asm in PARALLEL block.
19226 (extract_insn): Handle basic asm in PARALLEL block.
19227 * doc/extend.texi: Mention new behavior of basic asm.
19228 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
19229 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
19230 branch_needs_nop_p): Use asm_noperands.
19231
19232 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
19233
19234 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
19235 Include the M7 SPARC DFA scheduler.
19236 New attribute v3pipe.
19237 Annotate insns with v3pipe where appropriate.
19238 Define cpu_feature vis4.
19239 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
19240 Add (V8QI "8") to vbits.
19241 Add insns {add,sub}v8qi3
19242 Add insns ss{add,sub}v8qi3
19243 Add insns us{add,sub}{v8qi,v4hi}3
19244 Add insns {min,max}{v8qi,v4hi,v2si}3
19245 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
19246 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
19247 * config/sparc/niagara4.md: Add a comment explaining the
19248 discrepancy between the documented latenty numbers and the
19249 implemented ones.
19250 * config/sparc/niagara7.md: New file.
19251 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
19252 supports SPARC5 and VIS 4.0 instructions.
19253 * configure: Regenerate.
19254 * config.in: Likewise.
19255 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
19256 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
19257 TARGET_CPU_niagara7.
19258 (ASM_CPU64_DEFAULT_SPEC): Likewise.
19259 (CPP_CPU_SPEC): Handle niagara7.
19260 (ASM_CPU_SPEC): Likewise.
19261 * config/sparc/sparc-opts.h (processor_type): Add
19262 PROCESSOR_NIAGARA7.
19263 (mvis4): New option.
19264 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
19265 (AS_NIAGARA7_FLAG): Define.
19266 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
19267 (CPP_CPU64_DEFAULT_SPEC): Likewise.
19268 (CPP_CPU_SPEC): Handle niagara7.
19269 (ASM_CPU_SPEC): Likewise.
19270 * config/sparc/sparc.c (niagara7_costs): Define.
19271 (sparc_option_override): Handle niagara7 and adjust cache-related
19272 parameters with better values for niagara cpus. Also support VIS4.
19273 (sparc32_initialize_trampoline): Likewise.
19274 (sparc_use_sched_lookahead): Likewise.
19275 (sparc_issue_rate): Likewise.
19276 (sparc_register_move_cost): Likewise.
19277 (dump_target_flag_bits): Support VIS4.
19278 (sparc_vis_init_builtins): Likewise.
19279 (sparc_builtins): Likewise.
19280 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
19281 VIS4 4.0.
19282 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
19283 UltraSparc M7.
19284 * config/sparc/sparc.opt (sparc_processor_type): New value
19285 niagara7.
19286 * config/sparc/visintrin.h (__attribute__): Prototypes for the
19287 VIS4 builtins.
19288 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
19289 -mvis4.
19290 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
19291 VIS4 builtins.
19292
19293 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
19294
19295 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
19296
19297 2016-06-06 Richard Biener <rguenther@suse.de>
19298
19299 PR tree-optimization/71398
19300 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
19301 remove edges.
19302
19303 2016-06-05 James Bowman <james.bowman@ftdichip.com>
19304
19305 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
19306 ft32_expand_prolog, ft32_expand_epilogue):
19307 Handle pretend_args.
19308 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
19309 * config/ft32/ft32.md: Add pretend_returner.
19310
19311 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
19312
19313 PR target/71389
19314 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
19315 Copy op1 RTX to avoid invalid sharing.
19316 (ix86_expand_vector_move_misalign): Ditto.
19317
19318 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
19319
19320 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
19321 ATTRIBUTE_UNUSED.
19322
19323 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
19324
19325 * predict.c (predicted_by_loop_heuristics_p): New function.
19326 (predict_iv_comparison): Use it.
19327 (predict_loops): Walk from innermost loops; do not predict edges
19328 leaving multiple loops multiple times; implement
19329 PRED_LOOP_ITERATIONS_MAX heuristics.
19330 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
19331
19332 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
19333
19334 * cfg.c (check_bb_profile): Do not report mismatched profiles when
19335 only edges out of BB are EH edges.
19336
19337 2016-06-04 Martin Sebor <msebor@redhat.com>
19338 Marcin Baczyński <marbacz@gmail.com>
19339
19340 PR c/48116
19341 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
19342 a void expression in a void function.
19343
19344 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
19345
19346 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
19347 aux; dump reasons of decisions.
19348 (should_duplicate_loop_header_p): Likewise.
19349 (do_while_loop_p): Likewise.
19350 (ch_base::copy_headers): Dump asi num insns duplicated.
19351
19352 2016-06-04 Jakub Jelinek <jakub@redhat.com>
19353
19354 PR tree-optimization/71405
19355 * tree-ssa.c (execute_update_addresses_taken): For clobber with
19356 incompatible type, build a new clobber with the right type instead
19357 of building a VIEW_CONVERT_EXPR around it.
19358
19359 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
19360
19361 PR tree-optimization/52171
19362 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
19363 by_pieces_ninsns instead of move_by_pieces_ninsns.
19364
19365 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
19366
19367 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
19368 for reg+reg addressing mode.
19369
19370 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19371
19372 * rs6000-c.c (c/c-tree.h): Add #include.
19373 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
19374 in C++ when found in the base position of vec_ld or vec_st.
19375
19376 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
19377
19378 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
19379 use of profile unless profile status is PROFILE_READ.
19380 * profile.c (compute_branch_probabilities): Set profile status
19381 only after reporting predictor hitrates.
19382
19383 2016-06-03 Joseph Myers <joseph@codesourcery.com>
19384
19385 PR target/71276
19386 PR target/71277
19387 * common.opt (ffp-int-builtin-inexact): New option.
19388 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
19389 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
19390 (ceil@var{m}2): Document dependence on this option.
19391 * ipa-inline-transform.c (inline_call): Handle
19392 flag_fp_int_builtin_inexact.
19393 * ipa-inline.c (can_inline_edge_p): Likewise.
19394 * config/i386/i386.md (rintxf2): Do not test
19395 flag_unsafe_math_optimizations.
19396 (rint<mode>2_frndint): New define_insn.
19397 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
19398 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
19399 for 387 instead of extending and truncating.
19400 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
19401 !flag_trapping_math instead of flag_unsafe_math_optimizations.
19402 Change to frndint<mode>2_<rounding>.
19403 (frndintxf2_<rounding>_i387): Likewise. Change to
19404 frndint<mode>2_<rounding>_i387.
19405 (<rounding_insn>xf2): Likewise.
19406 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
19407 !flag_trapping_math instead of flag_unsafe_math_optimizations for
19408 x87. Test TARGET_ROUND || !flag_trapping_math ||
19409 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
19410 SSE. Use ROUND_NO_EXC in constant operand of
19411 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
19412 for 387 instead of extending and truncating.
19413
19414 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
19415 Julia Koval <julia.koval@intel.com>
19416
19417 PR target/66960
19418 PR target/67630
19419 PR target/67634
19420 PR target/67841
19421 PR target/68037
19422 PR target/68618
19423 PR target/68661
19424 PR target/69575
19425 PR target/69596
19426 PR target/69734
19427 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
19428 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
19429 all registers, except for function return registers if there are
19430 no caller-saved registers.
19431 (ix86_set_func_type): New function.
19432 (ix86_set_current_function): Call ix86_set_func_type to set
19433 no_caller_saved_registers and func_type. Call reinit_regs if
19434 caller-saved registers are changed. Don't allow MPX, SSE, MMX
19435 nor x87 instructions in interrupt handler nor function with
19436 no_caller_saved_registers attribute.
19437 (ix86_function_ok_for_sibcall): Return false if there are no
19438 caller-saved registers.
19439 (type_natural_mode): Don't warn ABI change for MMX in interrupt
19440 handler.
19441 (ix86_function_arg_advance): Skip for callee in interrupt handler.
19442 (ix86_function_arg): Return special arguments in interrupt handler.
19443 (ix86_promote_function_mode): Promote pointer to word_mode only
19444 for normal functions.
19445 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
19446 interrupt handler.
19447 (ix86_epilogue_uses): New function.
19448 (ix86_hard_regno_scratch_ok): Likewise.
19449 (ix86_save_reg): Preserve all registers in interrupt handler
19450 after reload. Preserve all registers, except for function return
19451 registers, if there are no caller-saved registers after reload.
19452 (find_drap_reg): Always use callee-saved register if there are
19453 no caller-saved registers.
19454 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
19455 for interrupt handler.
19456 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
19457 Emit cld instruction if stringops are used in interrupt handler
19458 or interrupt handler isn't a leaf function.
19459 (ix86_expand_epilogue): Generate interrupt return for interrupt
19460 handler and pop the 'ERROR_CODE' off the stack before interrupt
19461 return in exception handler.
19462 (ix86_expand_call): Disallow calling interrupt handler directly.
19463 If there are no caller-saved registers, mark all registers that
19464 are clobbered by the call which returns as clobbered.
19465 (ix86_handle_no_caller_saved_registers_attribute): New function.
19466 (ix86_handle_interrupt_attribute): Likewise.
19467 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
19468 attributes.
19469 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
19470 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
19471 accumulation in interrupt function if stack may be realigned to
19472 avoid DRAP.
19473 (EPILOGUE_USES): New.
19474 (function_type): New enum.
19475 (machine_function): Add func_type and no_caller_saved_registers.
19476 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
19477 (interrupt_return): New pattern.
19478 * doc/extend.texi: Document x86 interrupt and
19479 no_caller_saved_registers attributes.
19480
19481 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
19482
19483 PR tree-optimization/52171
19484 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
19485 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
19486 Look for constant strings. Move some code to emit_block_cmp_hints
19487 and use it.
19488 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
19489 * defaults.h (COMPARE_MAX_PIECES): New macro.
19490 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
19491 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
19492 (clear_by_pieces_1): Don't declare. Move definition before use.
19493 (can_do_by_pieces): New static function.
19494 (can_move_by_pieces): Use it. Return bool.
19495 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
19496 OP. All callers changed. Handle COMPARE_BY_PIECES.
19497 (class pieces_addr); New.
19498 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
19499 pieces_addr::adjust, pieces_addr::increment_address,
19500 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
19501 functions for it.
19502 (class op_by_pieces_d): New.
19503 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
19504 functions for it.
19505 (class move_by_pieces_d, class compare_by_pieces_d,
19506 class store_by_pieces_d): New subclasses of op_by_pieces_d.
19507 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
19508 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
19509 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
19510 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
19511 compare_by_pieces_d::finish_mode): New member functions.
19512 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
19513 functions.
19514 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
19515 (emit_block_cmp_hints): New function.
19516 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
19517 use the newly defined classes.
19518 * expr.h (by_pieces_constfn): New typedef.
19519 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
19520 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
19521 (move_by_pieces_ninsns): Don't declare.
19522 (can_move_by_pieces): Change return value to bool.
19523 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
19524 (compare_by_pieces_branch_ratio): New hook.
19525 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
19526 (by_pieces_ninsns): Declare.
19527 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
19528 COMPARE_BY_PIECES.
19529 (default_compare_by_pieces_branch_ratio): New function.
19530 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
19531 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
19532 * doc/tm.texi: Regenerate.
19533 * tree-ssa-strlen.c: Include "builtins.h".
19534 (handle_builtin_memcmp): New static function.
19535 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
19536 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
19537
19538 2016-06-03 Alan Hayward <alan.hayward@arm.com>
19539
19540 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
19541 relevant stmts which are simple and invariant.
19542 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
19543 instead of simple and invariant
19544
19545 2016-06-03 Alan Hayward <alan.hayward@arm.com>
19546
19547 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
19548 (vectorizable_reduction): Check for new relevant state.
19549 (vectorizable_live_operation): vectorize live stmts using
19550 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
19551 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
19552 (vect_stmt_relevant_p): Check for stmts which are only used live.
19553 (process_use): Use of a stmt does not inherit it's live value.
19554 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
19555 (vect_analyze_stmt): Check for new relevant state.
19556 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
19557 outside the loop, but not inside it.
19558
19559 2016-06-03 Alan Hayward <alan.hayward@arm.com>
19560
19561 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
19562 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
19563 (vect_get_vec_def_for_operand): Split out code.
19564
19565 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
19566
19567 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
19568
19569 2016-06-03 Alan Hayward <alan.hayward@arm.com>
19570
19571 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
19572
19573 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19574
19575 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
19576
19577 2016-06-03 Jakub Jelinek <jakub@redhat.com>
19578
19579 PR middle-end/71387
19580 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
19581 to noreturn e->callee->decl that has void return type and void
19582 arguments, adjust gimple_call_fntype and remove lhs even if it had
19583 previously addressable type.
19584
19585 2016-06-02 Jeff Law <law@redhat.com>
19586
19587 PR tree-optimization/71328
19588 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
19589 error when checking for a jump back onto the copied path.
19590
19591 2016-06-02 David Malcolm <dmalcolm@redhat.com>
19592
19593 * config/microblaze/microblaze.c (get_branch_target): Add return
19594 NULL_RTX for the non-CALL_P case.
19595 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
19596 (insert_wic): Remove unused local "j".
19597
19598 2016-06-02 Martin Liska <mliska@suse.cz>
19599
19600 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
19601
19602 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
19603 Julia Koval <julia.koval@intel.com>
19604
19605 * function.c (assign_parm_setup_stack): Force source into a
19606 register if needed.
19607 * target.def (function_incoming_arg): Update documentation to
19608 allow arbitrary address computation based on hard register.
19609 * doc/tm.texi: Regenerated.
19610
19611 2016-06-02 Martin Liska <mliska@suse.cz>
19612
19613 * predict.c (combine_predictions_for_bb): Fix first match in
19614 cases where a first predictor contains more than one occurence
19615 in list of predictors. Take the best value in such case.
19616
19617 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19618
19619 PR rtl-optimization/71295
19620 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
19621 offset would go over the size of the inner mode reject it.
19622
19623 2016-06-02 Jakub Jelinek <jakub@redhat.com>
19624
19625 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
19626 x=x,x and v=v,m instead of x=x,m.
19627
19628 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
19629 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
19630 alternative to v=rm,C.
19631
19632 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
19633 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
19634 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
19635 instead of vex for the last two above mentioned alternatives.
19636
19637 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19638
19639 PR target/70830
19640 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
19641
19642 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
19643
19644 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
19645
19646 2016-06-01 David Malcolm <dmalcolm@redhat.com>
19647
19648 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
19649 from int to unsigned.
19650
19651 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
19652
19653 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
19654 alternatives, eliminating preferred register class. Add support
19655 for the MTVSRDD instruction in ISA 3.0.
19656 (vsx_splat_v4si_internal): Use splat_input_operand instead of
19657 reg_or_indexed_operand.
19658 (vsx_splat_v4sf_internal): Likewise.
19659
19660 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
19661
19662 PR target/71186
19663 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
19664 for loading up all 0's or all 1's.
19665
19666 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
19667
19668 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
19669
19670 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
19671
19672 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
19673 extension.
19674 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
19675 * gcc.c (set_source_date_epoch_envvar): New function, sets
19676 the SOURCE_DATE_EPOCH environment variable to the current time.
19677
19678 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
19679
19680 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
19681 the factor for live Phi nodes.
19682
19683 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
19684
19685 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
19686 * tree-parloops.c (parallelize_loops): likewise.
19687 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
19688 tree_unswitch_outer_loop): likewise.
19689
19690 2016-06-01 Jakub Jelinek <jakub@redhat.com>
19691
19692 PR middle-end/71371
19693 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
19694 around creation of the temporary.
19695
19696 2016-06-01 Richard Biener <rguenther@suse.de>
19697
19698 PR tree-optimization/71366
19699 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
19700 (unloop_loops): Move removing edges here ...
19701 (try_unroll_loop_completely): ... from here.
19702 (try_peel_loop): ... and here.
19703 (tree_unroll_loops_completely_1): Track parent loops via
19704 bitmap of header BBs.
19705 (tree_unroll_loops_completely): Adjust for that.
19706
19707 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
19708
19709 * config/rs6000/altivec.h (vec_slv): New macro.
19710 (vec_srv): New macro.
19711 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
19712 (UNSPEC_VSRV): New value.
19713 (vslv): New insn.
19714 (vsrv): New insn.
19715 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
19716 (vsrv): New builtin definition.
19717 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
19718 define argument types for new builtin.
19719 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
19720 new builtin.
19721 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
19722 functions.
19723
19724 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
19725 Jocelyn Mayer <l_indien@magic.fr>
19726
19727 PR target/67310
19728 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
19729 detect processor family for signature_CENTAUR_ebx.
19730 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
19731 signature_CENTAUR_ebx.
19732 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
19733 <default>: Pass x86-64 for has_longmode.
19734
19735 2016-06-01 Nathan Sidwell <nathan@acm.org>
19736
19737 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
19738 undefined weak.
19739
19740 2016-06-01 Richard Biener <rguenther@suse.de>
19741
19742 PR tree-optimization/71261
19743 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
19744 of stmts successfully put in the bool pattern. Remove
19745 single-use restriction.
19746 (adjust_bool_pattern_cast): Add cast at the use site via the
19747 pattern def sequence.
19748 (adjust_bool_pattern): Remove recursion, maintain a hash-map
19749 of patterned defs. Use the pattern def seqence instead of
19750 multiple independent patterns.
19751 (sort_after_uid): New qsort compare function.
19752 (adjust_bool_stmts): New function to process stmts in the bool
19753 pattern in IL order.
19754 (vect_recog_bool_pattern): Adjust.
19755 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
19756 (ifcvt_walk_pattern_tree): Likewise.
19757 (stmt_is_root_of_bool_pattern): Likewise.
19758 (ifcvt_repair_bool_pattern): Likewise.
19759 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
19760
19761 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
19762
19763 * loop-unroll.c (decide_unroll_constant_iterations,
19764 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
19765 likely upper bounds.
19766 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
19767
19768 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
19769
19770 * tree-core.h (enum omp_clause_code): Remove
19771 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
19772
19773 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19774
19775 * config/arm/sync.md (arm_store_exclusive<mode>):
19776 Use 'H' output modifier on operands[2] rather than creating a new
19777 entry in out-of-bounds memory of the operands array.
19778 (arm_store_release_exclusivedi): Likewise.
19779
19780 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19781
19782 * config/arm/arm.c (arm_fusion_enabled_p): New function.
19783 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
19784 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
19785 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
19786
19787 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
19788
19789 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
19790 into account live statements for mask producers.
19791
19792 2016-06-01 Richard Biener <rguenther@suse.de>
19793
19794 PR tree-optimization/71311
19795 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
19796 restrict to non-INTEGER_CST @0.
19797
19798 2016-06-01 Richard Biener <rguenther@suse.de>
19799
19800 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
19801 (relational patterns): Use :c to avoid pattern duplications.
19802
19803 2016-06-01 Richard Biener <rguenther@suse.de>
19804
19805 * genmatch.c (comparison_code_p): New predicate.
19806 (swap_tree_comparison): New function.
19807 (commutate): Add for_vec parameter to append new for entries.
19808 Support commutating relational operators by swapping it alongside
19809 operands.
19810 (lower_commutative): Adjust.
19811 (dt_simplify::gen): Do not pass artificial operators to gen
19812 functions.
19813 (decision_tree::gen): Do not add artificial operators as parameters.
19814 (parser::parse_expr): Verify operator commutativity when :c is
19815 applied. Allow :C to override this.
19816 * match.pd: Adjust patterns to use :C instead of :c where required.
19817
19818 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
19819
19820 PR tree-optimization/71077
19821 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
19822 the combining step, use boolean_false_node and boolean_true_node
19823 as the designated false/true return values.
19824
19825 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
19826
19827 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
19828 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
19829 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
19830 PRED_LOOP_EXIT.
19831
19832 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
19833
19834 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
19835 of flags impliying the register renaming.
19836 * toplev.c (process_options): Do not imply flag_rename_registers with
19837 loop peeling.
19838
19839 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
19840
19841 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
19842 default implementation.
19843
19844 2016-05-31 Nathan Sidwell <nathan@acm.org>
19845
19846 * dwarf2out.c (cur_line_info_table): Add GTY marker.
19847
19848 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
19849
19850 * config/sh/constraints.md (b): Remove constraint.
19851 * config/sh/predicates.md (arith_reg_operand): Remove
19852 TARGET_REGISTER_P.
19853 * config/sh/sh-modes.def (PDI): Remove.
19854 * config/sh/sh.c (sh_target_reg_class,
19855 sh_optimize_target_register_callee_saved): Remove functions.
19856 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
19857 (sh_expand_epilogue): Update comment.
19858 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
19859 sh_secondary_reload): Remove TARGET_REGS related code.
19860 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
19861 TARGET_REGISTER_P): Remove macros.
19862 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
19863 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
19864 TR1_REG, TR2_REG): Remove constants.
19865 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
19866
19867 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
19868
19869 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
19870 define_expand patterns.
19871 (adddi3_compact): Rename to adddi3.
19872 (subdi3_compact): Rename to subdi3.
19873 (*negdi2): Rename to negdi2.
19874 (*abs<mode>2): Rename to abs<mode>2.
19875
19876 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
19877
19878 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
19879 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
19880 (atomic_sub_fetchsi): ... this new pattern.
19881 (mvtc): Add CC_REG clobber.
19882
19883 2016-05-31 Marek Polacek <polacek@redhat.com>
19884
19885 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
19886
19887 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19888
19889 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
19890 aarch64_fusion_enabled_p to check for fusion capabilities.
19891
19892 2016-05-31 Richard Biener <rguenther@suse.de>
19893
19894 PR tree-optimization/71352
19895 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
19896 minus one and a negate.
19897
19898 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19899
19900 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
19901 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
19902 Delete prototype.
19903 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
19904 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
19905 Remove use of aarch64_simd_attr_length_move, set length attribute
19906 directly.
19907 (*aarch64_be_movoi): Likewise.
19908 (*aarch64_be_movci): Likewise.
19909 (*aarch64_be_movxi): Likewise.
19910
19911 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
19912
19913 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
19914 It no longer does that.
19915 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
19916
19917 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
19918
19919 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
19920 attribute __unused__.
19921
19922 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
19923
19924 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
19925 * config/arm/arm.c (arm_arch_thumb1): Define.
19926 (arm_option_override): Initialize arm_arch_thumb1.
19927 * config/arm/arm.h (arm_arch_thumb1): Declare.
19928 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
19929 support Thumb-1 ISA.
19930
19931 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
19932
19933 PR target/71346
19934 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
19935 `Yv' for scalar operand.
19936
19937 2016-05-31 Tom de Vries <tom@codesourcery.com>
19938
19939 PR tree-optimization/69068
19940 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
19941 phis with more than two args.
19942
19943 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
19944
19945 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
19946 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
19947 target.
19948
19949 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
19950
19951 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
19952 tune_64.
19953 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
19954 support on SPARC.
19955 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
19956 cpu_32, cpu_64, tune_32 and tune_64.
19957 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
19958
19959 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
19960
19961 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
19962
19963 2016-05-30 Andi Kleen <ak@linux.intel.com>
19964
19965 * auto-profile.c (read_profile): Replace asserts with errors
19966 when file does not exist.
19967 * gcov-io.c (gcov_read_words): Dito.
19968
19969 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
19970
19971 * tree-cfg.c (print_loop): Print likely upper bounds.
19972
19973 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
19974
19975 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
19976 * opts.c (default_options): Enable peel loops at -O3.
19977 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
19978 (try_peel_loop): Do not re-peel already peeled loops;
19979 use likely upper bounds; fix profile updating.
19980 (pass_complete_unroll::execute): Initialize peeled_loops.
19981
19982 2016-05-30 Martin Liska <mliska@suse.cz>
19983
19984 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
19985 computed costs by frequency of BB they belong to.
19986 (get_scaled_computation_cost_at): New function.
19987
19988 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
19989 Marc Glisse <marc.glisse@inria.fr>
19990
19991 PR tree-optimization/71289
19992 * match.pd (-1 / B < A, A > -1 / B): New transformations.
19993
19994 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
19995
19996 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
19997
19998 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
19999
20000 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
20001 for peeled copies; avoid underflow when updating estimates; correctly
20002 scale loop profile.
20003
20004 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
20005
20006 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
20007 r236875. Corrected oe3 to oe2 as obvious.
20008
20009 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
20010
20011 PR middle-end/71269
20012 PR middle-end/71252
20013 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
20014 that inserted stmt will not dominate stmts that defines its operand.
20015 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
20016 (rewrite_expr_tree_parallel): Likewise.
20017
20018 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
20019
20020 PR middle-end/71252
20021 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
20022 all fields including stmt_to_insert are swapped.
20023
20024 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20025
20026 * predict.h (force_edge_cold): Declare.
20027 * predict.c (force_edge_cold): New function.
20028 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
20029 updating.
20030 (canonicalize_loop_induction_variables): Fix formating.
20031
20032 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
20033
20034 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
20035 (visium_expand_copysign): Use gen_int_mode directly.
20036 (visium_compute_frame_size): Minor tweaks.
20037
20038 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20039
20040 * tree-vect-loop.c (vect_analyze_loop_2): Use
20041 likely_max_stmt_executions_int.
20042
20043 2016-05-30 Tom de Vries <tom@codesourcery.com>
20044
20045 PR tree-optimization/69067
20046 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
20047
20048 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
20049
20050 PR target/71245
20051 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
20052 New peepholes to remove unneeded fild/fistp pairs.
20053 (define_peephole2 atomic_loaddi_fpu): Ditto.
20054
20055 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20056
20057 * predict.c (maybe_hot_frequency_p): Avoid division.
20058
20059 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
20060
20061 * doc/install.texi: Use https for shop.fsf.org.
20062
20063 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20064
20065 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
20066 likely_max_stmt_executions_int.
20067
20068 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20069
20070 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
20071 likely_max_stmt_executions_int.
20072
20073 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20074
20075 * profile.c (compute_branch_probabilities): Do not report hitrates
20076 here.
20077 (branch_prob): Report hitrates here.
20078 * predict.c (gimple_predict_edge): Do not assert profile status;
20079 fix formatting issues.
20080
20081 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20082
20083 * predict.c (edge_predicted_by_p): New function.
20084 (predict_paths_for_bb): Do not put multiple predictions of the same type
20085 on one edge.
20086
20087 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20088
20089 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
20090 commit.
20091
20092 2016-05-28 Alan Modra <amodra@gmail.com>
20093
20094 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
20095
20096 2016-05-28 Alan Modra <amodra@gmail.com>
20097
20098 PR rtl-optimization/71275
20099 * ira.c (ira): Free dominance info.
20100
20101 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
20102
20103 * doc/sourcebuild.texi: New address for upstream Go repository.
20104
20105 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
20106
20107 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
20108 (TARGET_ARM_V7M): Likewise.
20109
20110 2016-05-26 Jeff Law <law@redhat.com>
20111
20112 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
20113 (thread_across_edge): Remove calls to find_jump_threads_backwards.
20114 * passes.def: Add jump threading passes before DOM/VRP.
20115 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
20116 argument to a basic block from an edge. Remove tests which are
20117 handled elsewhere.
20118 (pass_data_thread_jumps, class pass_thread_jumps): New.
20119 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
20120 (make_pass_thread_jumps): Likewise.
20121 * tree-pass.h (make_pass_thread_jumps): Declare.
20122
20123 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
20124
20125 * config/visium/visium-protos.h (split_double_move): Rename into...
20126 (visium_split_double_move): ...this.
20127 (visium_split_double_add): Declare.
20128 * config/visium/visium.c (split_double_move): Rename into...
20129 (visium_split_double_move): ...this.
20130 (visium_split_double_add): New function.
20131 (visium_expand_copysign): Renumber operands for consistency.
20132 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
20133 (DFmode move splitter): Likewise.
20134 (*addi3_insn): Split by means of visium_split_double_add.
20135 (*adddi3_insn_flags): Delete.
20136 (*plus_plus_sltu<subst_arith>): New insn.
20137 (*subdi3_insn): Split by means of visium_split_double_add.
20138 (subdi3_insn_flags): Delete.
20139 (*minus_minus_sltu<subst_arith>): New insn.
20140 (*negdi2_insn): Split by means of visium_split_double_add.
20141 (*negdi2_insn_flags): Delete.
20142
20143 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
20144
20145 * configure.ac: Treat a --with-headers option without argument
20146 the same as the default (i.e. consult sys-include directory).
20147 * configure: Regenerate.
20148
20149 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20150
20151 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
20152 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
20153 prototype.
20154 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
20155 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
20156
20157 2016-05-27 Jiong Wang <jiong.wang@arm.com>
20158
20159 PR target/63596
20160 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
20161 tree-stdarg analysis results.
20162 (aarch64_setup_incoming_varargs): Likewise.
20163
20164 2016-05-27 Jiong Wang <jiong.wang@arm.com>
20165
20166 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
20167 va_list_gpr_counter_field and va_list_fpr_counter_field.
20168
20169 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
20170
20171 PR67609
20172 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
20173 * config/aarch64/aarch64.c
20174 (aarch64_cannot_change_mode_class): Remove function.
20175 * config/aarch64/aarch64-protos.h
20176 (aarch64_cannot_change_mode_class): Remove.
20177
20178 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20179
20180 * cfgloop.c (record_niter_bound): Record likely upper bounds.
20181 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
20182 get_likely_max_loop_iterations_int): New.
20183 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
20184 any_likely_upper_bound.
20185 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
20186 Declare.
20187 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
20188 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
20189 upper bound.
20190 (unroll_loop_constant_iterations): Likewise.
20191 (unroll_loop_runtime_iterations): Likewise.
20192 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
20193 * lto-streamer-out.c (output_cfg): Likewise.
20194 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
20195 bounds.
20196 (canonicalize_loop_induction_variables): Dump likely upper bounds.
20197 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
20198 (likely_max_loop_iterations): New.
20199 (likely_max_loop_iterations_int): New.
20200 (likely_max_stmt_executions): New.
20201 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
20202 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
20203 likely_max_stmt_executions): Declare.
20204
20205 2016-05-27 Marek Polacek <polacek@redhat.com>
20206
20207 PR middle-end/71308
20208 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
20209
20210 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20211
20212 * config/s390/s390.md (2x risbg splitters): Use
20213 reg_overlap_mentioned_p instead of rtx_equal_p.
20214
20215 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
20216
20217 * combine.c (make_compound_operation): Take known zero bits into
20218 account when checking for possible zero_extend.
20219
20220 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20221
20222 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
20223 Use const_int_operand for operand 2 predicate. Simplify expand code
20224 as a result.
20225
20226 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
20227
20228 PR middle-end/71279
20229 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
20230 into comparison.
20231
20232 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20233
20234 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
20235 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
20236 that returns CC_SESWPmode and CC_ZESWPmode.
20237 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
20238 and CC_SESWPmode.
20239 (aarch64_rtx_costs): Likewise.
20240
20241 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
20242
20243 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
20244 for ISA 3.0 min/max support.
20245 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
20246 conditional move support.
20247 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
20248 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
20249 available.
20250 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
20251 conditional moves where the comparison type is different from move
20252 type.
20253 (fp_minmax): New code iterator for smin/smax.
20254 (minmax): New code attributes for min/max.
20255 (SMINMAX): Likewise.
20256 (smax<mode>3): Combine min, max insns into one insn using the
20257 fp_minmax code iterator. Add support for ISA 3.0 min/max
20258 instructions that don't need -ffast-math.
20259 (s<minmax><mode>3): Likewise.
20260 (smax<mode>3_vsx): Likewise.
20261 (smin<mode>3): Likewise.
20262 (s<minmax><mode>3_vsx): Likewise.
20263 (smin<mode>3_vsx): Likewise.
20264 (pre-VSX min/max splitters): Likewise.
20265 (s<minmax><mode>3_fpr): Likewise.
20266 (movsfcc): Rewrite floating point conditional moves to combine
20267 SFmode/DFmode into a single insn.
20268 (mov<mode>cc): Likewise.
20269 (movdfcc): Likewise.
20270 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
20271 SFDF2 iterators to handle all combinations.
20272 (fseldfsf4): Likewise.
20273 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
20274 (fseldfdf4): Likewise.
20275 (fselsfdf4): Likewise.
20276 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
20277 comparison instructions that set a 0/-1 mask, and use it for
20278 floating point conditional move via XXSEL.
20279 (fpmask<mode>): Likewise.
20280 (xxsel<mode>): Likewise.
20281 * config/rs6000/predicates.md (min_max_operator): Delete, no
20282 longer used.
20283 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
20284 instructions that generate a 0/-1 mask for use with XXSEL.
20285 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
20286 say whether floating point min/max is available, either through
20287 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
20288 (TARGET_MINMAX_DF): Likewise.
20289
20290 2016-05-27 Alan Modra <amodra@gmail.com>
20291
20292 PR rtl-optimization/71275
20293 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
20294 for update_equiv_regs and combine_and_move_insns.
20295
20296 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
20297
20298 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
20299 if_then_else or cond RTXes to calculate attribute value.
20300 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
20301 <attr "length_immediate>: Ditto.
20302 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
20303 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
20304 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
20305 <attr "type">: Ditto.
20306 <attr "prefix_data16">: Ditto.
20307 <attr "prefix_extra">: Ditto.
20308 <attr "length_immediate">: Ditto.
20309 <attr "prefix">: Ditto.
20310 (vec_set<mode>_0) <attr "isa">: Ditto.
20311 <attr "prefix_extra">: Ditto.
20312 <attr "length_immediate">: Ditto.
20313 <attr "prefix">: Ditto.
20314 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
20315 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
20316 (sse2_storelpd) <attr "prefix_data16">: Ditto.
20317 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
20318 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
20319 <attr "length_immediate">: Ditto.
20320 <attr "prefix">: Ditto.
20321 (sse2_movsd) <attr "length_immediate">: Ditto.
20322 <attr "prefix">: Ditto.
20323 (vec_concatv2df) <attr "isa">: Ditto.
20324 <attr "prefix">: Ditto.
20325 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
20326 (*vec_extractv2di_1) <attr "isa">: Ditto.
20327 <attr "type">: Ditto.
20328 <attr "length_immediate">: Ditto.
20329 <attr "prefix_rex">: Ditto.
20330 <attr "prefix_extra">: Ditto.
20331 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
20332 <attr "prefix_extra">: Ditto.
20333 <attr "length_immediate">: Ditto.
20334 (vec_concatv2di) <attr "isa">: Ditto.
20335 <attr "prefix_extra">: Ditto.
20336 <attr "length_immediate">: Ditto.
20337 <attr "prefix">: Ditto.
20338
20339 2016-05-26 Martin Liska <mliska@suse.cz>
20340
20341 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
20342 function.
20343 (operator+): Likewise.
20344 (operator-): Likewise.
20345 (comp_cost::operator+=): Likewise.
20346 (comp_cost::operator-=): Likewise.
20347 (comp_cost::operator/=): Likewise.
20348 (comp_cost::operator*=): Likewise.
20349 (operator<): Likewise.
20350 (operator==): Likewise.
20351 (operator<=): Likewise.
20352 (new_cost): Remove.
20353 (infinite_cost_p): Likewise.
20354 (add_costs): Likewise.
20355 (sub_costs): Likewise.
20356 (compare_costs): Likewise.
20357 (set_group_iv_cost): Use the newly introduced functions.
20358 (get_address_cost): Likewise.
20359 (get_shiftadd_cost): Likewise.
20360 (force_expr_to_var_cost): Likewise.
20361 (split_address_cost): Likewise.
20362 (ptr_difference_cost): Likewise.
20363 (difference_cost): Likewise.
20364 (get_computation_cost_at): Likewise.
20365 (determine_group_iv_cost_generic): Likewise.
20366 (determine_group_iv_cost_address): Likewise.
20367 (determine_group_iv_cost_cond): Likewise.
20368 (autoinc_possible_for_pair): Likewise.
20369 (determine_group_iv_costs): Likewise.
20370 (cheaper_cost_pair): Likewise.
20371 (iv_ca_recount_cost): Likewise.
20372 (iv_ca_set_no_cp): Likewise.
20373 (iv_ca_set_cp): Likewise.
20374 (iv_ca_cost): Likewise.
20375 (iv_ca_new): Likewise.
20376 (iv_ca_dump): Likewise.
20377 (iv_ca_narrow): Likewise.
20378 (iv_ca_prune): Likewise.
20379 (iv_ca_replace): Likewise.
20380 (try_add_cand_for): Likewise.
20381 (try_improve_iv_set): Likewise.
20382 (find_optimal_iv_set): Likewise.
20383
20384 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
20385
20386 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
20387 that internal functions will clobber all caller-saved registers.
20388
20389 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
20390
20391 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
20392 Return a better case_values_threshold when optimizing.
20393
20394 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
20395
20396 * config/aarch64/aarch64-simd.md (aarch64_combinez):
20397 Add ? to integer variant.
20398 (aarch64_combinez_be): Likewise.
20399
20400 2016-05-26 Jakub Jelinek <jakub@redhat.com>
20401
20402 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
20403 instead of x constraint.
20404 (vcvtps2ph256<mask_name>): Likewise.
20405
20406 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
20407 alternative. Formatting fix.
20408
20409 * config/i386/sse.md
20410 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
20411 to ...
20412 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
20413 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
20414 maybe_evex prefix instead of vex.
20415 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
20416 EXT_REX_SSE_REG_P (op0) case in the splitter.
20417
20418 2016-05-25 Jeff Law <law@redhat.com>
20419
20420 PR tree-optimization/71272
20421 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
20422 Update comments. Add test for empty path.
20423
20424 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
20425
20426 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
20427 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
20428 special case builtin.
20429 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
20430 code for ALTIVEC_BUILTIN_VEC_CMPNE.
20431 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
20432 for __builtin_vec_cmpne.
20433
20434 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
20435
20436 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
20437 redundant test and bail out if the type of the new operand is not
20438 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
20439
20440 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
20441
20442 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
20443 (x_ix86_target_flags_explicit): Remove.
20444 * config/i386/i386.c (ix86_function_specific_save): Do not copy
20445 x_ix86_target_flags_explicit.
20446 (ix86_function_specific_restore): Ditto.
20447
20448 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
20449 H.J. Lu <hongjiu.lu@intel.com>
20450
20451 PR target/70738
20452 * common/config/i386/i386-common.c
20453 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
20454 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
20455 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
20456 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
20457 (-mgeneral-regs-only): Add new option.
20458 * config/i386/i386.c (ix86_option_override_internal): Don't enable
20459 x87 instructions if only general registers are allowed.
20460 (ix86_target_string): Add ix86_flags argument. Handle additional
20461 flags options through ix86_flags argument. Update all callers.
20462 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
20463
20464 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20465
20466 PR rtl-optimization/66940
20467 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
20468 decrementing desired_val will not overflow before performing these
20469 operations.
20470
20471 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
20472
20473 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
20474 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
20475 * config/i386/i386.c (enum ix86_builtins): Add
20476 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
20477 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
20478 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
20479 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
20480 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
20481 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
20482 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
20483 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
20484 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
20485 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
20486 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
20487 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
20488 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
20489 __builtin_ia32_cvtps2dq512_mask.
20490 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
20491 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
20492 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
20493 * config/i386/sse.md
20494 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
20495 Rename to ...
20496 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
20497 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
20498 to ...
20499 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
20500 (avx512f_vec_pack_sfix_v8df): New define_expand.
20501 (avx512f_roundpd512): Rename to ...
20502 (avx512f_round<castmode>512): ... this. Change iterator.
20503 (avx512f_roundps512_sfix): New define_expand.
20504 (round<mode>2_sfix): Change iterator.
20505
20506 2016-05-25 Nick Clifton <nickc@redhat.com>
20507
20508 * config/msp430/msp430.c (msp430_attr): Produce an error if a
20509 static interrupt handler is detected.
20510 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
20511 default linker script.
20512 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
20513 the low part of a symbolic pointer.
20514
20515 2016-05-25 Richard Biener <rguenther@suse.de>
20516
20517 PR tree-optimization/71261
20518 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
20519 interesting stmt instead of immediate uses when looking
20520 for the use operand to replace.
20521
20522 2016-05-25 Martin Liska <mliska@suse.cz>
20523
20524 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
20525
20526 2016-05-25 Richard Biener <rguenther@suse.de>
20527
20528 PR tree-optimization/71264
20529 * tree-vect-stmts.c (vect_init_vector): Properly deal with
20530 vector type val.
20531
20532 2016-05-25 Martin Liska <mliska@suse.cz>
20533
20534 PR tree-optimization/71239
20535 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
20536 if DECL_SIZE is NULL.
20537
20538 2016-05-25 Richard Biener <rguenther@suse.de>
20539
20540 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
20541 * tree-if-conv.c (pass_data_if_conversion): Use it.
20542
20543 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
20544
20545 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
20546 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
20547 * varpool.c (varpool_node::get_availability): Likewise.
20548
20549 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20550
20551 * config/rs6000/altivec.md (VNEG iterator): New iterator for
20552 VNEGW/VNEGD instructions.
20553 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
20554 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
20555 support for ISA 3.0 VNEGW/VNEGD instructions.
20556
20557 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
20558
20559 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
20560 pointers inside OACC_DATA regions.
20561 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
20562 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
20563 (gimplify_adjust_omp_clauses): Fix typo in comment.
20564
20565 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20566
20567 * config/rs6000/altivec.md (VParity): New mode iterator for vector
20568 parity built-in functions.
20569 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
20570 zeros.
20571 (p9v_parity<mode>2): Likewise.
20572 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
20573 parity.
20574 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
20575 (parity<mode>2): ISA 3.0 expander for vector parity.
20576 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
20577 power9 built-ins.
20578 (BU_P9_64BIT_MISC_0): Likewise.
20579 (BU_P9_MISC_0): Likewise.
20580 (BU_P9V_AV_1): Likewise.
20581 (BU_P9V_AV_2): Likewise.
20582 (BU_P9V_AV_3): Likewise.
20583 (BU_P9V_AV_P): Likewise.
20584 (BU_P9V_VSX_1): Likewise.
20585 (BU_P9V_OVERLOAD_1): Likewise.
20586 (BU_P9V_OVERLOAD_2): Likewise.
20587 (BU_P9V_OVERLOAD_3): Likewise.
20588 (VCTZB): Add vector count trailing zeros support.
20589 (VCTZH): Likewise.
20590 (VCTZW): Likewise.
20591 (VCTZD): Likewise.
20592 (VPRTYBD): Add vector parity support.
20593 (VPRTYBQ): Likewise.
20594 (VPRTYBW): Likewise.
20595 (VCTZ): Add overloaded vector count trailing zeros support.
20596 (VPRTYB): Add overloaded vector parity support.
20597 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20598 overloaded vector count trailing zeros and parity instructions.
20599 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
20600 vector parity support.
20601 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
20602 trailing zeros support.
20603 (vec_cntlz): Likewise.
20604 (vec_vctzb): Likewise.
20605 (vec_vctzd): Likewise.
20606 (vec_vctzh): Likewise.
20607 (vec_vctzw): Likewise.
20608 (vec_vprtyb): Add ISA 3.0 vector parity support.
20609 (vec_vprtybd): Likewise.
20610 (vec_vprtybw): Likewise.
20611 (vec_vprtybq): Likewise.
20612 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
20613 the ISA 3.0 vector count trailing zeros and vector parity built-in
20614 functions.
20615
20616 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
20617
20618 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
20619 when there is stmt_to_insert.
20620
20621 2016-05-24 Martin Sebor <msebor@redhat.com>
20622
20623 PR c++/71147
20624 * tree.h (complete_or_array_type_p): New inline function.
20625
20626 2016-05-24 Jakub Jelinek <jakub@redhat.com>
20627
20628 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
20629 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
20630 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
20631
20632 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
20633 Limit 1st alternative to noavx isa, split 2nd alternative into one
20634 noavx and one avx alternative, use *x and Bm in the former and
20635 x and m in the latter.
20636
20637 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
20638 of sse4 for the first alternative, drop %v from the template
20639 and d operand modifier. Split second alternative into one sse4_noavx
20640 and one avx alternative, use *x instead of *v in the former and v
20641 instead of *v in the latter.
20642 (*sse4_1_extractps): Use noavx isa instead of * for the first
20643 alternative, drop %v from the template. Split second alternative into
20644 one noavx and one avx alternative, use *x instead of *v in the
20645 former and v instead of *v in the latter.
20646 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
20647 with noavx and the last one with avx.
20648 (sse4_1_phminposuw): Guard first alternative with noavx isa,
20649 split the second one into one noavx and one avx alternative,
20650 use *x and Bm in the former and x and m in the latter one.
20651 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
20652 alternatives.
20653
20654 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
20655 first two alternatives to noavx, use *x instead of *v in the second
20656 one, add avx alternative without *.
20657 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
20658 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
20659 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
20660
20661 2016-05-24 Jeff Law <law@redhat.com>
20662
20663 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
20664 New function, extracted from...
20665 (fsm_find_control_statement_thread_paths): Here. Use the new function.
20666 Allow simple copies and constant initializations in the SSA chain.
20667
20668 2016-05-24 Marek Polacek <polacek@redhat.com>
20669
20670 PR c/71249
20671 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
20672 scope.
20673
20674 2016-05-24 Jakub Jelinek <jakub@redhat.com>
20675
20676 PR c++/71257
20677 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
20678 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
20679 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
20680 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
20681 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
20682
20683 2016-05-24 Richard Biener <rguenther@suse.de>
20684
20685 PR tree-optimization/71240
20686 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
20687 has integral type.
20688
20689 2016-05-24 Richard Biener <rguenther@suse.de>
20690
20691 PR tree-optimization/71230
20692 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
20693
20694 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
20695
20696 * tree-vectorizer.h (vectorizable_comparison): Delete.
20697 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
20698 PURE_SLP_STMT check.
20699 * tree-vect-stmts.c (vectorizable_call): Likewise.
20700 (vectorizable_simd_clone_call): Likewise.
20701 (vectorizable_conversion): Likewise.
20702 (vectorizable_assignment): Likewise.
20703 (vectorizable_shift): Likewise.
20704 (vectorizable_operation): Likewise.
20705 (vectorizable_load): Likewise.
20706 (vectorizable_condition): Likewise.
20707 (vectorizable_store): Likewise. Assert that we don't have
20708 hybrid SLP.
20709 (vectorizable_comparison): Make static. Remove redundant
20710 PURE_SLP_STMT check.
20711 (vect_transform_stmt): Assert that we always have an slp_node
20712 if PURE_SLP_STMT.
20713
20714 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20715
20716 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
20717 operands[2] against 1 with comparison against CONST1_RTX.
20718 (<shift>di3_neon): Likewise.
20719 * config/arm/predicates.md (const0_operand): Replace with comparison
20720 against CONST0_RTX.
20721
20722 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20723
20724 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
20725 operands[2] against 1 with comparison against CONST1_RTX.
20726 (ashrdi3): Likewise.
20727 (lshrdi3): Likewise.
20728 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
20729 UINTVAL.
20730 (ashrsi3): Likewise.
20731 (lshrsi3): Likewise.
20732 (rotrsi3): Likewise.
20733 (define_split above *compareqi_eq0): Likewise.
20734 (define_split above "prologue"): Likewise.
20735 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
20736 * config/arm/predicates.md (shift_operator): Likewise.
20737 (shift_nomul_operator): Likewise.
20738 (sat_shift_operator): Likewise.
20739 (thumb1_cmp_operand): Likewise.
20740 (const_neon_scalar_shift_amount_operand): Replace manual range
20741 check with IN_RANGE.
20742 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
20743 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
20744
20745 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20746
20747 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
20748 with HOST_WIDE_INT_1.
20749 (insv): Likewise.
20750 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
20751 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
20752 (arm_canonicalize_comparison): Likewise.
20753 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
20754 HOST_WIDE_INT_1.
20755 (thumb1_size_rtx_costs): Likewise.
20756 (vfp_const_double_index): Replace cast of 1 to unsigned
20757 HOST_WIDE_INT with HOST_WIDE_INT_1U.
20758 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
20759 HOST_WIDE_INT_1.
20760 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
20761 HOST_WIDE_INT with HOST_WIDE_INT_1U.
20762 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
20763 HOST_WIDE_INT with HOST_WIDE_INT_1.
20764
20765 2016-05-24 Marek Polacek <polacek@redhat.com>
20766
20767 * tree-cfg.h (should_remove_lhs_p): New predicate.
20768 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
20769 * gimplify.c (gimplify_modify_expr): Likewise.
20770 * tree-cfg.c (verify_gimple_call): Likewise.
20771 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
20772 * gimple-fold.c: Include "tree-cfg.h".
20773 (gimple_fold_call): Use should_remove_lhs_p.
20774
20775 2016-05-24 Richard Biener <rguenther@suse.de>
20776
20777 PR tree-optimization/71253
20778 * cfganal.h (control_dependences): Make robust against edge
20779 and BB removal.
20780 (control_dependences::control_dependences): Remove edge_list argument.
20781 (control_dependences::get_edge): Remove.
20782 (control_dependences::get_edge_src): Add.
20783 (control_dependences::get_edge_dest): Likewise.
20784 (control_dependences::m_el): Make a vector of edge src/dest index.
20785 * cfganal.c (control_dependences::find_control_dependence): Adjust.
20786 (control_dependences::control_dependences): Likewise.
20787 (control_dependences::~control_dependence): Likewise.
20788 (control_dependences::get_edge): Remove.
20789 (control_dependences::get_edge_src): Add.
20790 (control_dependences::get_edge_dest): Likewise.
20791 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
20792 get_edge_src.
20793 (perform_tree_ssa_dce): Adjust.
20794 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
20795 get_edge_src.
20796 (pass_loop_distribution::execute): Adjust. Do loop destroying
20797 conditional on changed.
20798
20799 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20800
20801 PR target/69857
20802 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
20803 return. Reindent transformation comment and mention the ARM state
20804 behavior.
20805
20806 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
20807
20808 PR middle-end/71252
20809 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
20810 after build_and_add_sum creates new use stmt.
20811
20812 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
20813
20814 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
20815 load_lanes/grouped_load classification comes first. Don't check
20816 whether the vectorization factor is a multiple of the group size
20817 for load_lanes.
20818
20819 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
20820
20821 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
20822 GROUP_GAP for single-element interleaving.
20823 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
20824 variable.
20825
20826 2016-05-24 Richard Biener <rguenther@suse.de>
20827
20828 PR middle-end/70434
20829 PR c/69504
20830 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
20831 bases which are accessed with non-invariant indices.
20832 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
20833 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
20834
20835 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
20836
20837 PR middle-end/71170
20838 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
20839 (add_to_ops_vec): Add stmt_to_insert.
20840 (add_repeat_to_ops_vec): Init stmt_to_insert.
20841 (insert_stmt_before_use): New.
20842 (transform_add_to_multiply): Remove mult_stmt insertion and add it
20843 to ops vector.
20844 (get_ops): Init stmt_to_insert.
20845 (maybe_optimize_range_tests): Likewise.
20846 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
20847 (rewrite_expr_tree_parallel): Likewise.
20848 (reassociate_bb): Likewise.
20849
20850 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20851
20852 PR target/71201
20853 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
20854 ISA 3.0 xxperm fusion alternative.
20855 (altivec_vperm_v8hiv16qi): Likewise.
20856 (altivec_vperm_<mode>_uns_internal): Likewise.
20857 (vperm_v8hiv4si): Likewise.
20858 (vperm_v16qiv8hi): Likewise.
20859
20860 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20861 Kelvin Nilsen <kelvin@gcc.gnu.org>
20862
20863 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
20864 vpermr/xxpermr on ISA 3.0.
20865 (altivec_expand_vec_perm_le): Likewise.
20866 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
20867 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
20868 ISA 3.0.
20869
20870 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
20871
20872 * config/i386/i386.h (IS_STACK_MODE): Enable for
20873 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
20874 SSE_FLOAT_MODE_P macros.
20875 * config/i386/i386.c (ix86_preferred_reload_class): Use
20876 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
20877 Cleanup regclass processing for CONST_DOUBLE_P.
20878 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
20879 (ix86_rtx_costs): Remove redundant TARGET_80387 check
20880 with IS_STACK_MODE macro.
20881 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
20882 with TARGET_SSE2.
20883 (*movdf_internal): Use IS_STACK_MODE macro.
20884 (*movsf_internal): Ditto.
20885
20886 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
20887
20888 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
20889 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
20890
20891 2016-05-23 Jeff Law <law@redhat.com>
20892
20893 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
20894 extracted from ...
20895 (fsm_find_control_statement_thread_paths): Call it.
20896
20897 2016-05-23 Martin Jambor <mjambor@suse.cz>
20898
20899 PR ipa/71234
20900 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
20901 from_global_constant if t is not NULL.
20902
20903 2016-05-23 Marek Polacek <polacek@redhat.com>
20904
20905 PR c/49859
20906 * common.opt (Wswitch-unreachable): New option.
20907 * doc/invoke.texi: Document -Wswitch-unreachable.
20908 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
20909 warning.
20910
20911 2016-05-23 Bin Cheng <bin.cheng@arm.com>
20912
20913 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
20914 TMR_INDEX is non-NULL.
20915
20916 2016-05-23 Richard Biener <rguenther@suse.de>
20917
20918 PR tree-optimization/71230
20919 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
20920 (try_special_add_to_ops): ... here. Always test for single-use.
20921
20922 2016-05-23 Martin Jambor <mjambor@suse.cz>
20923
20924 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
20925 default block if a PHI node in the original one would be resized.
20926
20927 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20928
20929 PR tree-optimization/58135
20930 * tree-vect-slp.c: When group size is not multiple
20931 of vector size, allow splitting of store group at
20932 vector boundary.
20933
20934 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
20935
20936 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
20937
20938 2016-05-22 Jakub Jelinek <jakub@redhat.com>
20939
20940 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
20941 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
20942 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
20943 of 64x2.
20944
20945 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
20946 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
20947 v constraint instead of x and vinserti32x4 insn.
20948
20949 * config/i386/sse.md (i128vldq): New mode iterator.
20950 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
20951 avx512dq and avx512vl alternatives.
20952
20953 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
20954 constraint, use maybe_evex prefix instead of vex.
20955 (vec_dupv4sf): Use v constraint instead of x for output
20956 operand except for noavx alternative, use Yv constraint
20957 instead of x for input. Use maybe_evex prefix instead of vex.
20958 (*vec_dupv4si): Likewise.
20959 (*vec_dupv2di): Likewise.
20960
20961 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
20962
20963 PR middle-end/40921
20964 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
20965 (linearize_expr_tree): Call try_special_add_to_ops.
20966 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
20967
20968 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20969
20970 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
20971 to computed stack_usage.
20972
20973 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20974
20975 PR target/71103
20976 * config/avr/avr.md (define_expand "mov<mode>"): If the source
20977 operand is subreg (symbol_ref) then move the symbol ref to register.
20978
20979 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
20980
20981 * tree.c (array_at_struct_end_p): Look through MEM_REF.
20982
20983 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
20984
20985 PR middle-end/71179
20986 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
20987 VECTOR type.
20988
20989 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
20990
20991 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
20992 ranges by calling get_single_symbol and tidy up. Look more closely
20993 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
20994
20995 2016-05-20 Jeff Law <law@redhat.com>
20996
20997 * bitmap.c (bitmap_find_bit): Remove useless test.
20998
20999 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
21000
21001 * function.c (thread_prologue_and_epilogue_insns): Commit the
21002 insertion of the epilogue.
21003
21004 2016-05-20 Martin Jambor <mjambor@suse.cz>
21005
21006 PR tree-optimization/70884
21007 * tree-sra.c (initialize_constant_pool_replacements): Do not check
21008 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
21009 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
21010 of constant pool data as a reason for scalarization.
21011
21012 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
21013
21014 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
21015 for naked functions.
21016 (thumb1_expand_prologue): Likewise.
21017
21018 2016-05-20 Nathan Sidwell <nathan@acm.org>
21019
21020 * config/nvptx/nptx.c (nvptx_option_override): Only set
21021 flag_toplevel_reorder, if not explicitly specified. Set
21022 flag_no_common, unless explicitly specified.
21023
21024 2016-05-20 David Malcolm <dmalcolm@redhat.com>
21025
21026 * calls.c (can_implement_as_sibling_call_p): Mark param
21027 reg_parm_stack_space with ATTRIBUTE_UNUSED.
21028
21029 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
21030
21031 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
21032 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
21033 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
21034 constants.
21035 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
21036 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
21037 and CASE_CONST_ANY.
21038
21039 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
21040
21041 * config/nvptx/nvptx.md (sincossf3): New pattern.
21042
21043 2016-05-20 David Malcolm <dmalcolm@redhat.com>
21044
21045 * calls.c (maybe_complain_about_tail_call): New function.
21046 (initialize_argument_information): Call
21047 maybe_complain_about_tail_call when clearing *may_tailcall.
21048 (can_implement_as_sibling_call_p): Call
21049 maybe_complain_about_tail_call when returning false.
21050 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
21051 ensure try_tail_call is set. Call maybe_complain_about_tail_call
21052 if tail-call optimization fails.
21053 * cfgexpand.c (expand_call_stmt): Initialize
21054 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
21055 * gimple-pretty-print.c (dump_gimple_call): Dump
21056 gimple_call_must_tail_p.
21057 * gimple.c (gimple_build_call_from_tree): Call
21058 gimple_call_set_must_tail with the value of
21059 CALL_EXPR_MUST_TAIL_CALL.
21060 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
21061 (gimple_call_set_must_tail): New function.
21062 (gimple_call_must_tail_p): New function.
21063 * print-tree.c (print_node): Update printing of TREE_STATIC
21064 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
21065 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
21066 trailing comment listing applicable flags.
21067 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
21068
21069 2016-05-20 David Malcolm <dmalcolm@redhat.com>
21070
21071 * calls.c (expand_call): Move "Rest of purposes for tail call
21072 optimizations to fail" to...
21073 (can_implement_as_sibling_call_p): ...this new function, and
21074 split into multiple "if" statements.
21075
21076 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
21077
21078 * cfgloop.h (expected_loop_iterations_unbounded,
21079 expected_loop_iterations): Unconstify.
21080 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
21081 profile with known upper bound; return 3 when profile is absent.
21082 (expected_loop_iterations): Update.
21083
21084 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
21085
21086 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
21087 and get_max_loop_iterations_int.
21088
21089 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
21090
21091 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
21092 realistic upper bounds here.
21093
21094 2016-05-20 Jakub Jelinek <jakub@redhat.com>
21095
21096 PR c++/71210
21097 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
21098 calls if the LHS is variable length or has addressable type.
21099 If targets[0]->decl is a noreturn call with void return type and
21100 zero arguments, adjust fntype and remove lhs in that case.
21101
21102 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
21103
21104 PR tree-optimization/71079
21105 PR tree-optimization/71206
21106 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
21107
21108 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21109
21110 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
21111 (get_vec_alignment_for_array_decl): Likewise.
21112 (get_vec_alignment_for_record_decl): Likewise.
21113 (increase_alignment::execute): Move code to find alignment to
21114 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
21115 (type_align_map): New hash_map.
21116
21117 2016-05-20 Richard Guenther <rguenther@suse.de>
21118
21119 PR tree-optimization/29756
21120 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
21121 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
21122 * fold-const.c (operand_equal_p): Likewise.
21123 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
21124 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
21125 * tree-inline.c (estimate_operator_cost): Likewise.
21126 * tree-pretty-print.c (dump_generic_node): Likewise.
21127 * tree-ssa-operands.c (get_expr_operands): Likewise.
21128 * cfgexpand.c (expand_debug_expr): Likewise.
21129 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
21130 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
21131 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
21132 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
21133 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
21134 (execute_update_addresses_taken): Do it.
21135
21136 2016-05-20 Richard Biener <rguenther@suse.de>
21137
21138 PR tree-optimization/71185
21139 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
21140 register operations.
21141
21142 2016-05-20 Richard Biener <rguenther@suse.de>
21143
21144 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
21145 gimple_seq_add_seq_without_update.
21146 (release_bb_predicate): Assert we have no operands to free.
21147 (if_convertible_loop_p_1): Calculate post dominators later.
21148 Do not free BB predicates here.
21149 (combine_blocks): Do not recompute BB predicates.
21150 (version_loop_for_if_conversion): Save BB predicates around
21151 loop versioning.
21152
21153 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
21154
21155 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
21156 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
21157 code. Ignore sibcalls on EDGE_IGNORE edges.
21158 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
21159 on edges for sibcalls that run without prologue. The rest of the
21160 function is combined from...
21161 (fix_fake_fallthrough_edge): ... this, and ...
21162 (try_shrink_wrapping): ... a part of this. Remove the bb_with
21163 function argument, make it a local variable.
21164
21165 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
21166
21167 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
21168 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
21169 for 32-bit mode and SEH for 64-bit.
21170 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
21171 TARGET_64BIT_DEFAULT.
21172
21173 2016-05-19 Ryan Burn <contact@rnburn.com>
21174
21175 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
21176 * gengtype.c (open_base_files): Add cilk.h to ifiles.
21177
21178 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
21179
21180 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
21181 force pending loads from memory.
21182
21183 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
21184
21185 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
21186 (UNSPEC_DARN_32): New unspec constant.
21187 (UNSPEC_DARN_RAW): New unspec constant.
21188 (darn_32): New instruction.
21189 (darn_raw): New instruction.
21190 (darn): New instruction.
21191 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
21192 support and documentation for this macro.
21193 (BU_P9_MISC_1): New macro definition.
21194 (BU_P9_64BIT_MISC_0): New macro definition.
21195 (BU_P9_MISC_0): New macro definition.
21196 (darn_32): New builtin definition.
21197 (darn_raw): New builtin definition.
21198 (darn): New builtin definition.
21199 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
21200 RS6000_BUILTIN_0 directives to surround each occurrence of
21201 #include "rs6000-builtin.def".
21202 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
21203 RS6000_BTM_64BIT flags to the returned mask, depending on
21204 configuration.
21205 (def_builtin): Correct an error in the assignments made to the
21206 debugging variable attr_string.
21207 (rs6000_expand_builtin): Add support for no-operand built-in
21208 functions.
21209 (builtin_function_type): Remove fatal_error assertion that is no
21210 longer valid.
21211 (rs6000_common_init_builtins): Add support for no-operand built-in
21212 functions.
21213 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
21214 definition.
21215 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
21216 definition.
21217 (RS6000_BTM_64BIT): New macro definition.
21218 * doc/extend.texi: Document __builtin_darn (void),
21219 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
21220 functions.
21221
21222 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
21223
21224 * tree-vect-loop.c (vect_analyze_loop_2): Use also
21225 max_loop_iterations_int.
21226
21227 2016-05-19 Marek Polacek <polacek@redhat.com>
21228
21229 PR tree-optimization/71031
21230 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
21231 condition and adjust the code a bit.
21232
21233 2016-05-19 Martin Liska <mliska@suse.cz>
21234
21235 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
21236 auto_vec instead of vec.
21237
21238 2016-05-19 Martin Liska <mliska@suse.cz>
21239
21240 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
21241
21242 2016-05-19 Martin Liska <mliska@suse.cz>
21243
21244 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
21245
21246 2016-05-19 Martin Liska <mliska@suse.cz>
21247
21248 * ipa-pure-const.c (set_function_state): Remove an existing
21249 funct_state.
21250 (remove_node_data): Do not free it as it's released
21251 in set_function_state.
21252
21253 2016-05-19 Martin Liska <mliska@suse.cz>
21254
21255 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
21256 bitmap.
21257
21258 2016-05-19 Martin Liska <mliska@suse.cz>
21259
21260 * omp-simd-clone.c (simd_clone_adjust): Release vector.
21261
21262 2016-05-19 Martin Liska <mliska@suse.cz>
21263
21264 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
21265 an auto_vec instead of re-creating it.
21266
21267 2016-05-19 Martin Liska <mliska@suse.cz>
21268
21269 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
21270 auto_vec instead of vec.
21271
21272 2016-05-19 Martin Liska <mliska@suse.cz>
21273
21274 * lto-section-in.c (lto_get_section_data): Call
21275 lto_check_version with additional argument.
21276 * lto-streamer.c (lto_check_version): Add new argument.
21277 * lto-streamer.h (lto_check_version): Likewise.
21278
21279 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21280
21281 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
21282 Don't add cost of inner memory when handling sign-extended loads.
21283
21284 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
21285
21286 PR rtl-optimization/71148
21287 * cse.c (cse_main): Free dominance info.
21288 (rest_of_handle_cse): Don't free dominance info.
21289 (rest_of_handle_cse2): Likewise.
21290 (rest_of_handle_cse_after_global_opts): Likewise.
21291
21292 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21293
21294 PR target/71056
21295 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
21296 NULL_TREE early if NEON is not available. Remove now redundant check
21297 in ARM_CHECK_BUILTIN_MODE.
21298
21299 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
21300
21301 PR sanitizer/64354
21302 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
21303 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
21304 * doc/cpp.texi: Document new macros.
21305
21306 2016-05-19 Bin Cheng <bin.cheng@arm.com>
21307
21308 PR tree-optimization/69848
21309 * tree-vect-loop.c (vectorizable_reduction): Don't factor
21310 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
21311
21312 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
21313
21314 * function.c (thread_prologue_and_epilogue_insn): Move the
21315 "goto epilogue_done" one block later.
21316
21317 2016-05-19 Richard Biener <rguenther@suse.de>
21318
21319 PR tree-optimization/70729
21320 * passes.def: Move LIM pass before PRE. Remove no longer
21321 required copyprop and move first DCE out of the loop pipeline.
21322
21323 2016-05-18 David Malcolm <dmalcolm@redhat.com>
21324
21325 PR driver/69265
21326 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
21327 (OBJS-libcommon-target): ...here.
21328 * opts-common.c: Include spellcheck.h.
21329 (cmdline_handle_error): Build a vec of valid options and use it
21330 to suggest provide hints for misspelled arguments.
21331
21332 2016-05-18 Jakub Jelinek <jakub@redhat.com>
21333
21334 PR c++/71100
21335 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
21336 lhs if it has TREE_ADDRESSABLE type.
21337
21338 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
21339
21340 PR target/71145
21341 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
21342 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
21343
21344 2016-05-18 Martin Jambor <mjambor@suse.cz>
21345
21346 PR ipa/69708
21347 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
21348 input for NOP_EXPR pass-through functions.
21349 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
21350 aggregate global constant VAR_DECLs in constant jump functions.
21351
21352 2016-05-18 Martin Jambor <mjambor@suse.cz>
21353
21354 PR ipa/69708
21355 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
21356 from TREE_READONLY parameters.
21357
21358 2016-05-18 Martin Jambor <mjambor@suse.cz>
21359
21360 PR ipa/69708
21361 * cgraph.h (cgraph_indirect_call_info): New field
21362 guaranteed_unmodified.
21363 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
21364 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
21365 appropriate.
21366 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
21367 pass the parameter value to ipa_find_agg_cst_for_param.
21368 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
21369 guaranteed_unmodified, store AA results there instead of bailing out
21370 if present.
21371 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
21372 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
21373 (find_constructor_constant_at_offset): New function.
21374 (ipa_find_agg_cst_from_init): Likewise.
21375 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
21376 static initializers of contants, report back through a new paameter
21377 from_global_constant if that was the case.
21378 (try_make_edge_direct_simple_call): Also pass parameter value to
21379 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
21380 appropriate.
21381 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
21382 (ipa_read_indirect_edge_info): Likewise.
21383 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
21384 (ipa_load_from_parm_agg): Likewise.
21385
21386 2016-05-18 Jiong Wang <jiong.wang@arm.com>
21387
21388 PR rtl-optimization/71150
21389 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
21390 check.
21391
21392 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
21393
21394 PR target/70915
21395 * config/rs6000/constraints.md (wE constraint): New constraint
21396 for a vector constant that can be loaded with XXSPLTIB.
21397 (wM constraint): New constraint for a vector constant of a 1's.
21398 (wS constraint): New constraint for a vector constant that can be
21399 loaded with XXSPLTIB and a vector sign extend instruction.
21400 * config/rs6000/predicates.md (xxspltib_constant_split): New
21401 predicates for wE/wS constraints.
21402 (xxspltib_constant_nosplit): Likewise.
21403 (easy_vector_constant): Add support for constants that can be
21404 loaded via XXSPLTIB.
21405 (all_ones_constant): New predicate for vector constant with all
21406 1's set.
21407 (splat_input_operand): Add support for ISA 3.0 word splat operations.
21408 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
21409 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
21410 instruction and possibly with a sign extension.
21411 (output_vec_const_move): Add support for XXSPLTIB. If we are
21412 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
21413 instead of XXLXOR/XXLORC.
21414 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
21415 operations.
21416 (rs6000_legitimize_reload_address): Likewise.
21417 (rs6000_output_move_128bit): Use output_vec_const_move to emit
21418 constants.
21419 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
21420 combine VSX_M and VSX_M2 into one iterator.
21421 (VSX_M2): Likewise.
21422 (VSINT_84): New iterators for loading constants with XXSPLTIB.
21423 (VSINT_842): Likewise.
21424 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
21425 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
21426 XXSPLTIB instruction.
21427 (xxspltib_<mode>_nosplit): Likewise.
21428 (xxspltib_<mode>_split): New insn to load up constants with
21429 XXSPLTIB and a sign extend instruction.
21430 (vsx_mov<mode>): Replace single move that handled all vector types
21431 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
21432 moves (when -mvsx-timode is in effect) into the main vector
21433 moves. Eliminate separate moves for <VSr> <VSa>, where the
21434 preferred register class (<VSr>) is listed first, and the
21435 secondary register class (<VSa>) is listed second with a '?' to
21436 discourage use. Prefer loading 0/-1 in any VSX register for ISA
21437 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
21438 that if the register was involved in a slow operation, the
21439 clear/set operation does not wait for the slow operation to
21440 finish. Adjust the length attributes for 32-bit mode. Use
21441 rs6000_output_move_128bit and drop the use of the string
21442 instructions for 32-bit movti when -mvsx-timode is in effect. Use
21443 spacing so that the alternatives and attributes don't generate
21444 long lines, and put things in columns, so that it is easier to
21445 match up the operands and attributes with the insn alternatives.
21446 (vsx_mov<mode>_64bit): Likewise.
21447 (vsx_mov<mode>_32bit): Likewise.
21448 (vsx_movti_64bit): Fold movti into normal vector moves.
21449 (vsx_movti_32bit): Likewise.
21450 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
21451 splat instructions.
21452 (vsx_splat_v4si_internal): Likewise.
21453 (vsx_splat_v4sf_internal): Likewise.
21454 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
21455 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
21456 extend vector elements.
21457 (vsx_sign_extend_hi_<mode>): Likewise.
21458 (vsx_sign_extend_si_v2di): Likewise.
21459 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
21460 declaration.
21461 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
21462 constraints. Add trailing period to wL documentation.
21463
21464 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
21465
21466 PR middle-end/71020
21467 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
21468 * tree-dfa.c (replace_abnormal_ssa_names): New function.
21469 * tree-call-cdce.c: Include tree-dfa.h.
21470 (can_guard_call_p): New function, extracted from...
21471 (can_use_internal_fn): ...here.
21472 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
21473 and return void.
21474 (shrink_wrap_one_built_in_call): Likewise.
21475 (use_internal_fn): Likewise.
21476 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
21477 and return void. Call replace_abnormal_ssa_names.
21478 (pass_call_cdce::execute): Check can_guard_call_p during the
21479 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
21480 will always change something.
21481
21482 2016-05-18 Martin Jambor <mjambor@suse.cz>
21483
21484 PR ipa/70646
21485 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
21486 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
21487
21488 2016-05-18 Martin Jambor <mjambor@suse.cz>
21489
21490 PR ipa/70646
21491 * ipa-inline.h (condition): New field size.
21492 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
21493 for comaprison and store it into the new condition.
21494 (evaluate_conditions_for_known_args): Use condition size to check
21495 access sizes for all but CHANGED conditions.
21496 (unmodified_parm_1): New parameter size_p, store access size into it.
21497 (unmodified_parm): Likewise.
21498 (unmodified_parm_or_parm_agg_item): Likewise.
21499 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
21500 (set_cond_stmt_execution_predicate): Extract access sizes and store
21501 them to conditions.
21502 (set_switch_stmt_execution_predicate): Likewise.
21503 (will_be_nonconstant_expr_predicate): Likewise.
21504 (will_be_nonconstant_predicate): Likewise.
21505 (inline_read_section): Stream condition size.
21506 (inline_write_summary): Likewise.
21507
21508 2016-05-18 Richard Biener <rguenther@suse.de>
21509
21510 * tree-ssa-loop-im.c (determine_max_movement): Properly add
21511 condition cost to PHI cost instead of total_cost.
21512
21513 2016-05-18 Martin Liska <mliska@suse.cz>
21514
21515 PR fortran/70856
21516 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
21517 merged variables.
21518
21519 2016-05-18 Richard Biener <rguenther@suse.de>
21520
21521 * lto-streamer.h (LTO_major_version): Bump to 6.
21522
21523 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
21524
21525 * function.c (make_split_prologue_seq, make_prologue_seq,
21526 make_epilogue_seq): New functions, factored out from...
21527 (thread_prologue_and_epilogue_insns): Here.
21528
21529 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
21530
21531 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
21532 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
21533 of before. Add a comment.
21534
21535 2016-05-18 Bin Cheng <bin.cheng@arm.com>
21536
21537 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
21538 expression pointer, not pointer to the pointer.
21539
21540 2016-05-18 Jakub Jelinek <jakub@redhat.com>
21541
21542 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
21543 (avx2_pbroadcast<mode>): Add another alternative with v instead
21544 of x constraints in it, using <pbroadcast_evex_isa> isa.
21545 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
21546
21547 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
21548 constraint x instead of v in second alternative, add avx512bw
21549 alternative.
21550
21551 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
21552 constraint x instead of v in second alternative, add avx512bw
21553 alternative.
21554
21555 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
21556 constraint x instead of v in second alternative, add avx512bw
21557 alternative.
21558
21559 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
21560 avx512bw alternative.
21561
21562 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
21563
21564 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
21565 array to 128 chars.
21566 (define_insn "*andnottf3"): Ditto.
21567 (define_insn "*<code><mode>3"/any_logic): Ditto.
21568 (define_insn "*<code>tf3"/any_logic): Ditto.
21569 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
21570 operand to block AVX-512VL insn variant emit when it is not enabled.
21571
21572 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
21573
21574 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
21575 constraint fot SF mode.
21576
21577 2016-05-18 Petr Murzin <petr.murzin@intel.com>
21578 Kirill Yukhin <kirill.yukhin@intel.com>
21579
21580 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
21581 modifiers.
21582 (define_insn "rsqrt14<mode>"): Ditto.
21583 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
21584 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
21585 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
21586 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
21587 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
21588 Ditto.
21589 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
21590 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
21591 * config/i386/i386.c (ix86_print_operand): Expand check for size
21592 override codes for Intel syntax.
21593
21594 2016-05-18 Richard Biener <rguenther@suse.de>
21595
21596 PR tree-optimization/71168
21597 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
21598 initialization earlier.
21599
21600 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
21601
21602 * config/aarch64/aarch64-simd.md
21603 (aarch64_reduc_plus_internal<mode>): Rename to...
21604 (reduc_plus_scal): ...This, and remove previous implementation.
21605
21606 2016-05-18 Richard Biener <rguenther@suse.de>
21607
21608 * passes.def: Put late dse and cd_dce in canonical order.
21609
21610 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
21611
21612 * ipa-inline-transform.c (preserve_function_body_p): Look for
21613 first non-thunk clone.
21614 (save_function_body): Save into first non-thunk.
21615 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
21616 up call stmt id.
21617 (lto_output_node): Inline thunks don't need body in every
21618 partition.
21619 * lto-streamer-in.c: Do not fixup thunk clones.
21620 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
21621 thunks.
21622 * tree-inline.c (copy_bb): Be prepared for target node to be new after
21623 folding suceeds.
21624
21625 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
21626
21627 PR middle-end/63586
21628 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
21629 (reassociate_bb): Call transform_add_to_multiply.
21630
21631 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
21632
21633 * config/aarch64/aarch64.c (all_extensions): Removed unused
21634 static variable.
21635
21636 2016-05-17 Nathan Sidwell <nathan@acm.org>
21637
21638 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
21639 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
21640
21641 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
21642
21643 PR tree-optimization/54579
21644 PR middle-end/55299
21645 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
21646
21647 2016-05-17 Marek Polacek <polacek@redhat.com>
21648
21649 PR ipa/71146
21650 * tree-inline.c (expand_call_inline): Call
21651 maybe_remove_unused_call_args.
21652
21653 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
21654
21655 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
21656 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
21657 * doc/md.texi (fmin@var{m}3): Likewise.
21658
21659 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
21660
21661 * match.pd (X & C): New transformation.
21662
21663 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
21664
21665 * match.pd (~X & Y): New transformation.
21666
21667 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
21668
21669 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
21670 information for new SSA_NAME.
21671 (simplify_conversion_using_ranges): Get range through get_range_info
21672 instead of get_value_range.
21673
21674 2016-05-17 Jiong Wang <jiong.wang@arm.com>
21675
21676 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
21677 Remove inline assembly.
21678 (vmvn_s16): Likewise.
21679 (vmvn_s32): Likewise.
21680 (vmvn_u8): Likewise.
21681 (vmvn_u16): Likewise.
21682 (vmvn_u32): Likewise.
21683 (vmvnq_s8): Likewise.
21684 (vmvnq_s16): Likewise.
21685 (vmvnq_s32): Likewise.
21686 (vmvnq_u8): Likewise.
21687 (vmvnq_u16): Likewise.
21688 (vmvnq_u32): Likewise.
21689 (vmvn_p8): Likewise.
21690 (vmvnq_p16): Likewise.
21691
21692 2016-05-17 Jiong Wang <jiong.wang@arm.com>
21693
21694 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
21695 Use builtin.
21696 (vmul_n_s16): Likewise.
21697 (vmul_n_s32): Likewise.
21698 (vmul_n_u16): Likewise.
21699 (vmul_n_u32): Likewise.
21700 (vmulq_n_f32): Likewise.
21701 (vmulq_n_f64): Likewise.
21702 (vmulq_n_s16): Likewise.
21703 (vmulq_n_s32): Likewise.
21704 (vmulq_n_u16): Likewise.
21705 (vmulq_n_u32): Likewise.
21706
21707 2016-05-17 Jiong Wang <jiong.wang@arm.com>
21708
21709 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
21710 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
21711
21712 2016-05-17 Jiong Wang <jiong.wang@arm.com>
21713
21714 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
21715 to *aarch64_fma4_elt_from_dup<mode>.
21716 (*aarch64_fnma4_elt_to_128df): Rename to
21717 *aarch64_fnma4_elt_from_dup<mode>.
21718 * config/aarch64/arm_neon.h (vfma_n_f64): New.
21719 (vfms_n_f32): Likewise.
21720 (vfms_n_f64): Likewise.
21721 (vfmsq_n_f32): Likewise.
21722 (vfmsq_n_f64): Likewise.
21723
21724 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
21725
21726 * wide-int.h: Change fixed_wide_int_storage from class to struct.
21727
21728 2016-05-17 Richard Biener <rguenther@suse.de>
21729
21730 PR tree-optimization/71132
21731 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
21732 Only add control dependences for blocks in the loop.
21733 (build_rdg): Adjust.
21734 (generate_code_for_partition): Return whether loop should
21735 be destroyed and delay that.
21736 (distribute_loop): Likewise.
21737 (pass_loop_distribution::execute): Record loops to be destroyed
21738 and perform delayed destroying of loops.
21739
21740 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21741
21742 PR target/70809
21743 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
21744
21745 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
21746
21747 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
21748
21749 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
21750
21751 PR target/71114
21752 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
21753 insertion point for instructions generated by validize_mem.
21754
21755 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
21756
21757 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
21758 in brackets.
21759
21760 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
21761
21762 * config/aarch64/aarch64.c
21763 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
21764 rather than a macro.
21765
21766 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
21767
21768 * doc/invoke.texi (AArch64 Options): Various updates.
21769
21770 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
21771
21772 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
21773 into instrumentation thunks.
21774 * cif-code.def (CIF_CHKP): New.
21775
21776 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
21777
21778 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
21779
21780 2016-05-16 Martin Jambor <mjambor@suse.cz>
21781
21782 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
21783 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
21784
21785 2016-05-16 Marek Polacek <polacek@redhat.com>
21786
21787 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
21788 commentary.
21789
21790 2016-05-16 Martin Jambor <mjambor@suse.cz>
21791
21792 PR hsa/70857
21793 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
21794 the outlined kernel function.
21795
21796 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
21797
21798 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
21799 (ISA_HAS_DLSA): Ditto.
21800
21801 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
21802
21803 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
21804
21805 2016-05-16 Nathan Sidwell <nathan@acm.org>
21806
21807 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
21808 (nvptx_name_replacement): Restore. Add comment.
21809 (write_fn_proto, write_fn_proto_from_insn,
21810 nvptx_output_call_insn): Restore
21811 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
21812
21813 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
21814
21815 * config/aarch64/aarch64.md
21816 (add<mode>3_compareC_cconly_imm): Remove use of %w.
21817 (add<mode>3_compareC_imm): Likewise.
21818 (<optab>si3_uxtw): Split into register and immediate variants.
21819 (andsi3_compare0_uxtw): Likewise.
21820 (and<mode>3_compare0): Likewise.
21821 (and<mode>3nr_compare0): Likewise.
21822 (stack_protect_test_<mode>): Don't use %x for memory operands.
21823
21824 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
21825
21826 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
21827
21828 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
21829
21830 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
21831 Split integer shifts into shift_reg and bfm.
21832 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
21833 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
21834 (ror<mode>3_insn): Likewise.
21835 (<optab>si3_insn_uxtw): Likewise.
21836 (<optab><mode>3_insn): Change to rotate_imm.
21837 (extr<mode>5_insn_alt): Likewise.
21838 (extrsi5_insn_uxtw): Likewise.
21839 (extrsi5_insn_uxtw_alt): Likewise.
21840
21841 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
21842
21843 * doc/tm.texi: Regenerate.
21844 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
21845 (TARGET_INVALID_RETURN_TYPE): Remove.
21846 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
21847 TARGET_INVALID_RETURN_TYPE.
21848 * target.def (invalid_parameter_type): Remove.
21849 (invalid_return_type): Remove.
21850
21851 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
21852
21853 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
21854 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
21855 calls from thunk.
21856 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
21857 gimple body.
21858 (preserve_function_body_p): No need to preserve function body
21859 * cif-codes.def (CIF_THUNK): Remove.
21860 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
21861
21862 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
21863
21864 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
21865
21866 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
21867
21868 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
21869 for thunks.
21870
21871 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
21872
21873 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
21874 (inline_small_functions): Do not look for function symbol when
21875 resetting caches.
21876
21877 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
21878
21879 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
21880 of inline thunks
21881
21882 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
21883 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21884 Jiong Wang <jiong.wang@arm.com>
21885
21886 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
21887 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
21888 Define __ARM_FP16_ARGS when appropriate.
21889 * config/arm/arm.c (arm_invalid_parameter_type): Remove
21890 declaration.
21891 (arm_invalid_return_type): Likewise.
21892 (TARGET_INVALID_PARAMETER_TYPE): Remove.
21893 (TARGET_INVALID_RETURN_TYPE): Remove.
21894 (aapcs_vfp_sub_candidate): Allow HFmode.
21895 (aapcs_vfp_allocate): Add comment. Support HFmode.
21896 (aapcs_vfp_allocate_return_reg): Likewise.
21897 (struct aapcs_cp_arg_layout): Slightly reword comments for
21898 is_return_candidate and allocate_return_reg.
21899 (output_mov_vfp): Update assert.
21900 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
21901 condition.
21902 (arm_invalid_parameter_type): Remove.
21903 (amr_invalid_return_type): Remove.
21904 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
21905 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
21906 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
21907
21908 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
21909
21910 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21911 * config/aarch64/arch64-protos.h
21912 (aarch64_legitimize_reload_address): Remove.
21913 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
21914 Remove.
21915
21916 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
21917
21918 * configure.ac: Add ACX_NONCANONICAL_HOST.
21919 * configure: Regenerate.
21920 * Makefile.in: Set host_noncanonical.
21921
21922 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
21923
21924 PR target/71097
21925 * config/i386/i386.md (*movtf_internal): Before register allocation,
21926 do not allow FP constants for CM_MEDIUM memory model, allow only
21927 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
21928 (*movxf_internal): Ditto.
21929 (*movdf_internal): Ditto.
21930 (*movsf_internal): Ditto.
21931
21932 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
21933
21934 PR rtl-optimization/67483
21935 * combine.c (make_compound_operation): Don't call extract_left_shift
21936 with negative shift amounts.
21937
21938 2016-05-13 Jakub Jelinek <jakub@redhat.com>
21939
21940 PR bootstrap/71071
21941 * fold-const.c (fold_checksum_tree): Allow modification
21942 of TYPE_ALIAS_SET during folding.
21943
21944 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
21945 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
21946 (ix86_split_to_parts): Likewise. Fix up formatting.
21947
21948 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
21949
21950 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
21951 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
21952 printf format.
21953
21954 2016-05-13 Nathan Sidwell <nathan@acm.org>
21955
21956 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
21957 (nvptx_name_replacement): Delete.
21958 (write_fn_proto, write_fn_proto_from_insn,
21959 nvptx_output_call_insn): Remove nvptx_name_replacement call.
21960 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
21961 * langhooks.c (add_builtin_funcction_common): Call
21962 targetm.mangle_decl_assembler_name.
21963
21964 * config/nvptx/nvptx.c (write_fn_proto): Handle
21965 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
21966
21967 2016-05-13 Martin Liska <mliska@suse.cz>
21968
21969 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
21970 and PRIu64 in printf format.
21971
21972 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21973
21974 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
21975 comment.
21976
21977 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21978
21979 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
21980 Change --param max-completely-peeled-times to
21981 --param max-completely-peel-times in dump file printing.
21982
21983 2016-05-13 Richard Biener <rguenther@suse.de>
21984
21985 PR tree-optimization/42587
21986 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
21987 (find_bswap_or_nop_1): Likewise.
21988 (bswap_replace): Likewise.
21989
21990 2016-05-13 Martin Liska <mliska@suse.cz>
21991
21992 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
21993 Initialize a variable with default value.
21994
21995 2016-05-13 Martin Liska <mliska@suse.cz>
21996
21997 * doc/invoke.texi: Enhance explanation of error recovery
21998 of sanitizers.
21999
22000 2016-05-13 Martin Liska <mliska@suse.cz>
22001
22002 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
22003 (struct cost_pair): Change inv_expr_id (int) to inv_expr
22004 (iv_inv_expr_ent *).
22005 (struct iv_inv_expr_ent): Comment struct fields.
22006 (sort_iv_inv_expr_ent): New function.
22007 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
22008 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
22009 a hash_map between iv_inv_expr_ent and number of usages.
22010 (niter_for_exit): Fix coding style.
22011 (tree_ssa_iv_optimize_init): Use renamed variable.
22012 (determine_base_object): Fix coding style.
22013 (alloc_iv): Likewise.
22014 (find_interesting_uses_outside): Likewise.
22015 (add_candidate_1): Likewise.
22016 (add_standard_iv_candidates): Likewise.
22017 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
22018 (prepare_decl_rtl): Fix coding style.
22019 (get_address_cost): Likewise.
22020 (get_shiftadd_cost): Likewise.
22021 (force_expr_to_var_cost): Likewise.
22022 (compare_aff_trees): Likewise.
22023 (get_expr_id): Restructure the function.
22024 (get_loop_invariant_expr_id): Renamed to
22025 get_loop_invariant_expr.
22026 (get_computation_cost_at): Replace usage of inv_expr_id with
22027 inv_expr.
22028 (get_computation_cost): Likewise.
22029 (determine_group_iv_cost_generic): Likewise.
22030 (determine_group_iv_cost_address): Likewise.
22031 (iv_period): Fix coding style.
22032 (iv_elimination_compare_lt): Likewise.
22033 (may_eliminate_iv): Likewise.
22034 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
22035 inv_expr.
22036 (determine_group_iv_costs): Dump invariant expressions.
22037 (iv_ca_recount_cost): Use the newly added hash_map.
22038 (iv_ca_set_remove_invariants): Fix coding style.
22039 (iv_ca_set_add_invariants): Fix coding style.
22040 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
22041 invariants.
22042 (iv_ca_set_cp): Likewise.
22043 (iv_ca_new): Initialize the newly added hash_map and remove
22044 initialization of fields.
22045 (iv_ca_free): Delete the hash_map.
22046 (iv_ca_dump): Dump invariant expressions.
22047 (iv_ca_extend): Fix coding style.
22048 (try_add_cand_for): Likewise.
22049 (create_new_ivs): Dump information about # of avg iterations and
22050 # of used invariant expressions.
22051 (rewrite_use_compare): Fix coding style.
22052 (free_loop_data): Set default value for max_inv_expr_id.
22053
22054 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22055
22056 * cse.c (rest_of_handle_cse): Use cleanup_cfg
22057 returned value cse_cfg_altered computation.
22058 (rest_of_handle_cse2): Likewise.
22059 (rest_of_handle_cse_after_global_opts): Likewise.
22060
22061 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22062
22063 PR target/53440
22064 * config/arm/arm.c (arm32_output_mi_thunk): New.
22065 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
22066 to split Thumb1 vs TARGET_32BIT functionality.
22067 (arm_thumb1_mi_thunk): New.
22068
22069 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22070
22071 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
22072 to true.
22073
22074 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22075
22076 PR target/71080
22077 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
22078
22079 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
22080
22081 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
22082 (expand_builtin_trap): Emit a regular call.
22083 (set_builtin_user_assembler_name): Remove obsolete cases.
22084 * dse.c (scan_insn): Adjust.
22085 * except.c: Include calls.h.
22086 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
22087 emit a regular call to setjmp.
22088 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
22089 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
22090 (emit_block_move_via_libcall): Delete.
22091 (block_move_fn): Delete.
22092 (init_block_move_fn): Likewise.
22093 (emit_block_move_libcall_fn): Likewise.
22094 (emit_block_op_via_libcall): New function.
22095 (set_storage_via_libcall): Tidy up and use memset builtin.
22096 (block_clear_fn): Delete.
22097 (init_block_clear_fn): Likewise.
22098 (clear_storage_libcall_fn): Likewise.
22099 (expand_assignment): Call emit_block_move_via_libcall.
22100 Do not include gt-expr.h.
22101 * expr.h (emit_block_op_via_libcall): Declare.
22102 (emit_block_copy_via_libcall): New inline function.
22103 (emit_block_move_via_libcall): Likewise.
22104 (emit_block_comp_via_libcall): Likewise.
22105 (block_clear_fn): Delete.
22106 (init_block_move_fn): Likewise.
22107 (init_block_clear_fn): Likewise.
22108 (emit_block_move_via_libcall): Likewise.
22109 (set_storage_via_libcall): Add default parameter value.
22110 * libfuncs.h (enum libfunc_index): Remove obsolete values.
22111 (abort_libfunc): Delete.
22112 (memcpy_libfunc): Likewise.
22113 (memmove_libfunc): Likewise.
22114 (memcmp_libfunc): Likewise.
22115 (memset_libfunc): Likewise.
22116 (setbits_libfunc): Likewise.
22117 (setjmp_libfunc): Likewise.
22118 (longjmp_libfunc): Likewise.
22119 (profile_function_entry_libfunc): Likewise.
22120 (profile_function_exit_libfunc): Likewise.
22121 (gcov_flush_libfunc): Likewise.
22122 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
22123 and DECL_VISIBILITY on the declaration.
22124 (init_optabs): Do not initialize obsolete libfuncs.
22125 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
22126 * tree-core.h (ECF_RET1): Define.
22127 (ECF_TM_PURE): Adjust.
22128 (ECF_TM_BUILTIN): Likewise.
22129 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
22130 (build_common_builtin_nodes): Initialize abort builtin.
22131 Add ECF_RET1 on memcpy, memmove and memset builtins.
22132 Pass final flags for alloca and alloca_with_align builtins.
22133 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
22134 obsolete builtins.
22135 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
22136 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
22137 set_storage_via_libcall and call emit_block_copy_via_libcall.
22138
22139 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
22140
22141 * config/i386/i386.md (*call_got_x32): Change operand 0 to
22142 DImode before it is passed to ix86_output_call_operand.
22143 (*call_value_got_x32): Ditto for operand 1.
22144
22145 2016-05-12 Jiong Wang <jiong.wang@arm.com>
22146
22147 PR rtl-optimization/70904
22148 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
22149 reload for wide mode.
22150
22151 2016-05-12 Marek Polacek <polacek@redhat.com>
22152
22153 PR c/70756
22154 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
22155 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
22156 * langhooks.h (incomplete_type_error): Likewise.
22157 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
22158 parameter, pass it down to incomplete_type_error.
22159 * tree.h (size_in_bytes): New inline overload.
22160 (size_in_bytes_loc): Renamed from size_in_bytes.
22161
22162 2016-05-12 Richard Biener <rguenther@suse.de>
22163
22164 PR tree-optimization/71059
22165 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
22166 nary before looking up or entering the expression into the VN
22167 hashes.
22168 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
22169 Make sure to re-use NARYs without result as inserted by
22170 phi-translation.
22171
22172 2016-05-12 Richard Biener <rguenther@suse.de>
22173
22174 PR tree-optimization/71062
22175 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
22176 field.
22177 * tree-ssa-structalias.c (set_uids_in_ptset): Set
22178 vars_contains_restrict if the var is a restrict tag.
22179 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
22180 do not disambiguate pointers against it.
22181 (dump_points_to_solution): Re-structure and adjust for new
22182 vars_contains_restrict flag.
22183 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
22184
22185 2016-05-12 Martin Liska <mliska@suse.cz>
22186
22187 * doc/invoke.texi: Explain connection between
22188 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
22189
22190 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
22191
22192 PR tree-optimization/71006
22193 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
22194 consider COND_EXPR as a mask producer.
22195
22196 2016-05-12 Marek Polacek <polacek@redhat.com>
22197
22198 PR driver/71063
22199 * opts.c (common_handle_option): Detect missing argument for --help^.
22200
22201 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22202
22203 PR target/70830
22204 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
22205 when popping the PC and within an interrupt handler routine.
22206 Add missing tab to output of "ldmfd".
22207 (output_return_instruction): Output LDMFD with SP update rather
22208 than POP when returning from interrupt handler.
22209
22210 2016-05-12 Jakub Jelinek <jakub@redhat.com>
22211
22212 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
22213 TARGET_64BIT && TARGET_AVX512DQ.
22214 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
22215 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
22216 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
22217 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
22218 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
22219 (*vec_extractv4si_zext): Add avx512dq alternative.
22220 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
22221 use v instead of x constraint in other alternatives where possible.
22222
22223 * config/i386/sse.md (sse2_loadld): Use v instead of x
22224 constraint in alternatives 0,1,4.
22225
22226 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
22227 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
22228 v constraints instead of x and <pinsr_evex_isa> isa attribute.
22229
22230 PR target/71019
22231 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
22232 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
22233 is not emitted unless TARGET_AVX512BW.
22234 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
22235 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
22236 for the result operand.
22237
22238 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
22239 constraint instead of x in avx alternatives. Use maybe_evex instead
22240 of vex prefix.
22241
22242 * config/i386/constraints.md (Yv): New constraint.
22243 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
22244 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
22245 * config/i386/i386.md (avx512fvecmode): New mode attr.
22246 (*pushtf): Use v constraint instead of x.
22247 (*movtf_internal): Likewise. For TARGET_AVX512VL and
22248 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
22249 (*absneg<mode>2): Use Yv constraint instead of x constraint.
22250 (*absnegtf2_sse): Likewise.
22251 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
22252 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
22253 avx512f alternatives.
22254 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
22255
22256 2016-05-12 Richard Biener <rguenther@suse.de>
22257
22258 PR tree-optimization/71060
22259 * tree-data-ref.c (initialize_data_dependence_relation): Do not
22260 require exact match of DR_BASE_OBJECT but only matching address and
22261 type.
22262
22263 2016-05-12 Richard Biener <rguenther@suse.de>
22264
22265 PR tree-optimization/70986
22266 * cfganal.c: Include cfgloop.h.
22267 (dfs_find_deadend): Prefer to take edges exiting loops.
22268
22269 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22270
22271 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
22272 compile and run time.
22273
22274 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
22275
22276 PR c/43651
22277 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
22278
22279 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
22280
22281 * config/i386/i386.c (legitimize_pic_address): Use
22282 copy_to_suggested_reg instead of gen_movsi.
22283
22284 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22285
22286 * config/rs6000/predicates.md (quad_memory_operand): Move most of
22287 the code into quad_address_p and call it to share code with
22288 vsx_quad_dform_memory_operand.
22289 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
22290 d-form support.
22291 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
22292 bit instead of being a separate word. Split -mpower9-dform into
22293 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
22294 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
22295 for the register class supporting 128-bit quad word memory offsets.
22296 (mode_supports_vsx_dform_quad): Helper function to return if the
22297 register class uses quad word memory offsets.
22298 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
22299 (rs6000_debug_reg_global): Always print if we are using LRA or not.
22300 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
22301 instructions are enabled, set up the appropriate addr_masks for
22302 128-bit types.
22303 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
22304 -mpower9-dform-scalar, instead of -mpower9-dform.
22305 (rs6000_option_override_internal): Split -mpower9-dform into two
22306 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
22307 -mpower9-dform switch sets or clears both. If we are not using
22308 the LRA register allocator, do not enable -mpower9-dform-vector by
22309 default. If we are using LRA, enable -mpower9-dform-vector and
22310 -mvsx-timode if it is appropriate. Issue a warning if either
22311 -mpower9-dform-vector or -mvsx-timode are explicitly used without
22312 enabling LRA.
22313 (quad_address_offset_p): New helper function to return if the
22314 offset is legal for quad word memory instructions.
22315 (quad_address_p): New function to determin if GPR or vector
22316 register quad word memory addresses are legal.
22317 (mem_operand_gpr): Validate quad word address offsets.
22318 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
22319 d-form (register + offset) instructions.
22320 (offsettable_ok_by_alignment): Likewise.
22321 (rs6000_legitimate_offset_address_p): Likewise.
22322 (legitimate_lo_sum_address_p): Likewise.
22323 (rs6000_legitimize_address): Likewise.
22324 (rs6000_legitimize_reload_address): Add more debug statements for
22325 -mdebug=addr.
22326 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
22327 d-form instructions.
22328 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
22329 d-form instructions. Distinguish different cases in debug
22330 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
22331 d-form instructions.
22332 (rs6000_preferred_reload_class): Likewise.
22333 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
22334 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
22335 of the ISA 2.06 indexed memory instructions.
22336 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
22337 use them to save/restore the saved vector registers instead of
22338 using Altivec instructions.
22339 (rs6000_emit_epilogue): Likewise.
22340 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
22341 (rs6000_opt_masks): Split -mpower9-dform into
22342 -mpower9-dform-scalar and -mpower9-dform-vector.
22343 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
22344 was not selected.
22345 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
22346 ISA 3.0 vector indexed memory instructions, and fold the code into
22347 the normal mov<mode> patterns.
22348 (p9_vecstore_<mode>): Likewise.
22349 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
22350 instructions.
22351 (vsx_movti_64bit): Likewise.
22352 (vsx_movti_32bit): Likewise.
22353 * config/rs6000/constraints.md (wO constraint): New constraint for
22354 ISA 3.0 vector d-form support.
22355 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
22356 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
22357 include -mpower9-dform-vector until we switch over to LRA.
22358 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
22359 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
22360 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
22361 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
22362 for -mpower9-dform and -mlra.
22363 * doc/md.texi (wO constraint): Document wO constraint.
22364
22365 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
22366
22367 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
22368 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
22369 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
22370 Move handling of non-insn arguments inline into the sole user:
22371 (output_trans_func): ...here.
22372 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
22373 in emitted function prototype.
22374 (output_internal_insn_latency_func): Ditto. Simplify.
22375 (output_internal_maximal_insn_latency_func): Ditto. Delete
22376 always-unused argument.
22377 (output_insn_latency_func): Ditto.
22378 (output_maximal_insn_latency_func): Ditto.
22379
22380 2016-05-11 Richard Biener <rguenther@suse.de>
22381
22382 PR tree-optimization/71055
22383 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
22384 sth with precision not equal to access size verify we don't chop
22385 off bits.
22386
22387 2016-05-11 Richard Biener <rguenther@suse.de>
22388
22389 PR debug/71057
22390 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
22391 (dwarf2out_finish): Move retry_incomplete_types call ...
22392 (dwarf2out_early_finish): ... here.
22393
22394 2016-05-11 Richard Biener <rguenther@suse.de>
22395
22396 PR middle-end/71002
22397 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
22398 if the langhook insists on it.
22399 * fold-const.c (make_bit_field_ref): Add arg for the original
22400 reference and preserve its alias-set.
22401 (decode_field_reference): Take exp by reference and adjust it
22402 to the original memory reference.
22403 (optimize_bit_field_compare): Adjust callers.
22404 (fold_truth_andor_1): Likewise.
22405 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
22406
22407 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
22408
22409 PR middle-end/70807
22410 * cfgrtl.h (delete_insn_and_edges): Now return bool.
22411 * cfgrtl.c (delete_insn_and_edges): Likewise.
22412 * config/i386/i386.c (convert_scalars_to_vector): Remove
22413 redundant code.
22414 * cse.c (cse_insn): Compute cse_cfg_altered.
22415 (delete_trivially_dead_insns): Likewise.
22416 (cse_cc_succs): Likewise.
22417 (rest_of_handle_cse): Free dominance info if required.
22418 (rest_of_handle_cse2): Likewise.
22419 (rest_of_handle_cse_after_global_opts): Likewise.
22420
22421 2016-05-11 Alan Modra <amodra@gmail.com>
22422
22423 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
22424 abi_v4_pass_in_fpr): New functions.
22425 (rs6000_function_arg_boundary): Exclude complex IBM long double
22426 from 64-bit alignment when ABI_V4.
22427 (rs6000_function_arg, rs6000_function_arg_advance_1,
22428 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
22429
22430 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
22431
22432 PR rtl-optimization/71028
22433 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
22434 jump with just a return in the fallthrough block if the branch
22435 block contains just a return as well.
22436
22437 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
22438
22439 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
22440 * match.pd ((X & Y) ^ Y): ... this.
22441 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
22442 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
22443
22444 2016-05-10 David Malcolm <dmalcolm@redhat.com>
22445
22446 * read-md.c (require_char_ws): New function.
22447 (read_string): Simplify using require_char_ws.
22448 (handle_constants): Likewise.
22449 (handle_enum): Likewise.
22450 (handle_file): Likewise.
22451 * read-md.h (require_char_ws): New declaration.
22452 * read-rtl.c (read_conditions): Simplify using require_char_ws.
22453 (read_mapping): Likewise.
22454 (read_rtx_code): Likewise.
22455 (read_nested_rtx): Likewise.
22456
22457 2016-05-10 James Norris <jnorris@codesourcery.com>
22458
22459 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
22460 if offloading is enabled and -fopenacc or -fopenmp is specified.
22461 (CRTOFFLOADEND): Likewise.
22462 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
22463 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
22464
22465 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
22466
22467 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
22468 gotoff_operand code paths. Use copy_to_suggested_regs and
22469 expand_simple_binop where appropriate. Cleanup.
22470
22471 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
22472
22473 PR target/70799
22474 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
22475 integer constants.
22476 (dimode_scalar_chain::vector_const_cost): New.
22477 (dimode_scalar_chain::compute_convert_gain): Handle constants.
22478 (dimode_scalar_chain::convert_op): Likewise.
22479 (dimode_scalar_chain::convert_insn): Likewise.
22480
22481 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
22482
22483 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
22484 unary operation, not a binary one.
22485
22486 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
22487
22488 PR middle-end/70877
22489 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
22490 calls with type casted fndecl.
22491
22492 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
22493
22494 PR tree-optimization/70786
22495 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
22496 * calls.c (initialize_argument_information): Bind bounds
22497 with corresponding args passed by reference.
22498
22499 2016-05-10 Jakub Jelinek <jakub@redhat.com>
22500
22501 PR target/70927
22502 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
22503 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
22504 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
22505 accordingly.
22506
22507 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22508
22509 PR target/70963
22510 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
22511 code for a zero scale factor.
22512 (vsx_xvcvdpuxds_scale): Likewise.
22513
22514 2016-05-10 David Malcolm <dmalcolm@redhat.com>
22515
22516 * diagnostic-show-locus.c (layout::layout): Call show_ruler
22517 if show_ruler_p was set on the context.
22518 (layout::show_ruler): New method.
22519 * diagnostic.h (struct diagnostic_context): Add field
22520 "show_ruler_p".
22521
22522 2016-05-10 Richard Biener <rguenther@suse.de>
22523
22524 PR tree-optimization/71039
22525 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
22526 (chk_uses): New function.
22527 (propagate_with_phi): Verify we can safely replicate the lhs of an
22528 aggregate assignment on all incoming edges.
22529
22530 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
22531
22532 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
22533 Forward declare.
22534 (rx_atomic_sequence): New class.
22535 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
22536 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
22537 non-inline.
22538 (rx_atomic_sequence::rx_atomic_sequence,
22539 rx_atomic_sequence::~rx_atomic_sequence): New functions.
22540 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
22541 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
22542 CTRLREG_INTB): New constants.
22543 (FETCHOP): New code iterator.
22544 (fethcop_name, fetchop_name2): New iterator code attributes.
22545 (QIHI): New mode iterator.
22546 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
22547 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
22548 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
22549
22550 2016-05-10 Martin Liska <mliska@suse.cz>
22551
22552 * tree-inline.c (remap_dependence_clique): Do not remap
22553 debugging statements.
22554
22555 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22556
22557 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
22558 ("*fixuns_truncdfdi2_z13")
22559 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
22560 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
22561 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
22562
22563 2016-05-10 Richard Biener <rguenther@suse.de>
22564
22565 PR tree-optimization/70497
22566 PR tree-optimization/28367
22567 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
22568 split out from ...
22569 (visit_reference_op_load): ... here.
22570 (vn_reference_lookup_3): Use it to handle subreg-like accesses
22571 with simplified BIT_FIELD_REFs.
22572 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
22573 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
22574 correctly.
22575
22576 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
22577
22578 * dwarf2out.c (add_abstract_origin_attribute): Adjust
22579 documentation comment. For BLOCK nodes, add a
22580 DW_AT_abstract_origin attribute that points to the DIE generated
22581 for the origin BLOCK.
22582 (gen_lexical_block_die): Call add_abstract_origin_attribute for
22583 blocks from inlined functions.
22584
22585 2016-05-10 Alan Modra <amodra@gmail.com>
22586
22587 PR target/70947
22588 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
22589 regrename modifying insns saving lr before __morestack call.
22590 * config/rs6000/rs6000.md (split_stack_return): Similarly for
22591 insns restoring lr after __morestack call.
22592
22593 2016-05-09 Jakub Jelinek <jakub@redhat.com>
22594
22595 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
22596 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
22597 expanders.
22598 * config/i386/sse.md (vec_interleave_high<mode>,
22599 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
22600 <avx512>_vpermt2var<mode>3_maskz): Likewise.
22601
22602 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
22603
22604 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
22605 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
22606 parallel reassociation for power8 and forward.
22607
22608 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
22609
22610 * config/i386/i386.md (absneg splitters with general regs): Use
22611 general_reg_operand predicate.
22612 (btsq peephole2): Use x86_64_immediate_operand to check if new
22613 value is suitable for immediate operand. Generate emitted insn
22614 using RTL expressions.
22615 (btcq peephole2): Ditto.
22616 (btrq peephole2): Ditto. Generate correct immediate operand
22617 for AND masking.
22618
22619 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
22620
22621 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
22622 bitpos.
22623
22624 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
22625
22626 * tree-affine.c (wide_int_constant_multiple_p): Add missing
22627 pointer dereference.
22628
22629 2016-05-09 Richard Biener <rguenther@suse.de>
22630
22631 PR tree-optimization/70985
22632 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
22633 op0 isn't a gimple register.
22634
22635 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
22636
22637 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
22638 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
22639 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
22640 (i6400_fpu_mult): New cpu units.
22641 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
22642 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
22643 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
22644 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
22645 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
22646 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
22647 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
22648 (i6400_msa_long_float4, i6400_msa_long_float5)
22649 (i6400_msa_long_float8, i6400_msa_fdiv_df)
22650 (i6400_msa_fdiv_sf): New reservations.
22651 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
22652 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
22653 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
22654 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
22655 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
22656 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
22657 (msa_short_cmp, msa_short_float2, msa_short_logic3)
22658 (msa_short_store4, msa_long_load, msa_short_store)
22659 (msa_long_logic, msa_long_float2, msa_long_float4)
22660 (msa_long_float5, msa_long_float8, msa_long_mult)
22661 (msa_long_fdiv, msa_long_div): New reservations.
22662
22663 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
22664 Sameera Deshpande <sameera.deshpande@imgtec.com>
22665 Matthew Fortune <matthew.fortune@imgtec.com>
22666 Graham Stott <graham.stott@imgtec.com>
22667 Chao-ying Fu <chao-ying.fu@imgtec.com>
22668
22669 * config.gcc: Add MSA header file for mips*-*-* target.
22670 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
22671 (Ubv8i, Urv8): New constraints.
22672 * config/mips/mips-ftypes.def: Add function types for MSA
22673 builtins.
22674 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
22675 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
22676 * config/mips/mips-msa.md: New file.
22677 * config/mips/mips-protos.h
22678 (mips_split_128bit_const_insns): New prototype.
22679 (mips_msa_idiv_insns): Likewise.
22680 (mips_split_128bit_move): Likewise.
22681 (mips_split_128bit_move_p): Likewise.
22682 (mips_split_msa_copy_d): Likewise.
22683 (mips_split_msa_insert_d): Likewise.
22684 (mips_split_msa_fill_d): Likewise.
22685 (mips_expand_msa_branch): Likewise.
22686 (mips_const_vector_same_val_p): Likewise.
22687 (mips_const_vector_same_bytes_p): Likewise.
22688 (mips_const_vector_same_int_p): Likewise.
22689 (mips_const_vector_shuffle_set_p): Likewise.
22690 (mips_const_vector_bitimm_set_p): Likewise.
22691 (mips_const_vector_bitimm_clr_p): Likewise.
22692 (mips_msa_vec_parallel_const_half): Likewise.
22693 (mips_msa_output_division): Likewise.
22694 (mips_ldst_scaled_shift): Likewise.
22695 (mips_expand_vec_cond_expr): Likewise.
22696 * config/mips/mips.c (enum mips_builtin_type): Add
22697 MIPS_BUILTIN_MSA_TEST_BRANCH.
22698 (mips_gen_const_int_vector_shuffle): New prototype.
22699 (mips_const_vector_bitimm_set_p): New function.
22700 (mips_const_vector_bitimm_clr_p): Likewise.
22701 (mips_const_vector_same_val_p): Likewise.
22702 (mips_const_vector_same_bytes_p): Likewise.
22703 (mips_const_vector_same_int_p): Likewise.
22704 (mips_const_vector_shuffle_set_p): Likewise.
22705 (mips_symbol_insns): Forbid loading symbols via immediate for
22706 MSA.
22707 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
22708 stores.
22709 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
22710 MSA.
22711 (mips_lx_address_p): Add support load indexed address for MSA.
22712 (mips_address_insns): Add calculation of instructions needed for
22713 stores and loads for MSA.
22714 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
22715 CONST_VECTOR for MSA and let it fall through.
22716 (mips_ldst_scaled_shift): New function.
22717 (mips_subword_at_byte): Likewise.
22718 (mips_msa_idiv_insns): Likewise.
22719 (mips_legitimize_move): Validate MSA moves.
22720 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
22721 calculation of costs for MSA division.
22722 (mips_split_move_p): Check if MSA moves need splitting.
22723 (mips_split_move): Split MSA moves if necessary.
22724 (mips_split_128bit_move_p): New function.
22725 (mips_split_128bit_move): Likewise.
22726 (mips_split_msa_copy_d): Likewise.
22727 (mips_split_msa_insert_d): Likewise.
22728 (mips_split_msa_fill_d): Likewise.
22729 (mips_output_move): Handle MSA moves.
22730 (mips_expand_msa_branch): New function.
22731 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
22732 Reinstate 'y' modifier.
22733 (mips_file_start): Add MSA .gnu_attribute.
22734 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
22735 FPRs.
22736 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
22737 (mips_class_max_nregs): Add register size for MSA supported mode.
22738 (mips_cannot_change_mode_class): Allow conversion between MSA
22739 vector modes and TImode.
22740 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
22741 instruction.
22742 (mips_secondary_reload_class): Force MSA loads/stores via memory.
22743 (mips_preferred_simd_mode): Add preffered modes for MSA.
22744 (mips_vector_mode_supported_p): Add MSA supported modes.
22745 (mips_autovectorize_vector_sizes): New function.
22746 (mips_msa_output_division): Likewise.
22747 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
22748 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
22749 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
22750 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
22751 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
22752 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
22753 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
22754 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
22755 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
22756 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
22757 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
22758 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
22759 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
22760 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
22761 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
22762 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
22763 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
22764 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
22765 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
22766 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
22767 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
22768 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
22769 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
22770 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
22771 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
22772 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
22773 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
22774 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
22775 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
22776 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
22777 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
22778 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
22779 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
22780 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
22781 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
22782 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
22783 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
22784 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
22785 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
22786 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
22787 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
22788 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
22789 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
22790 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
22791 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
22792 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
22793 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
22794 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
22795 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
22796 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
22797 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
22798 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
22799 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
22800 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
22801 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
22802 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
22803 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
22804 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
22805 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
22806 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
22807 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
22808 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
22809 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
22810 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
22811 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
22812 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
22813 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
22814 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
22815 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
22816 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
22817 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
22818 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
22819 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
22820 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
22821 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
22822 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
22823 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
22824 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
22825 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
22826 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
22827 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
22828 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
22829 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
22830 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
22831 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
22832 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
22833 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
22834 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
22835 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
22836 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
22837 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
22838 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
22839 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
22840 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
22841 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
22842 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
22843 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
22844 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
22845 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
22846 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
22847 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
22848 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
22849 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
22850 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
22851 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
22852 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
22853 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
22854 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
22855 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
22856 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
22857 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
22858 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
22859 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
22860 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
22861 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
22862 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
22863 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
22864 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
22865 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
22866 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
22867 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
22868 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
22869 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
22870 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
22871 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
22872 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
22873 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
22874 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
22875 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
22876 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
22877 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
22878 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
22879 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
22880 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
22881 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
22882 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
22883 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
22884 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
22885 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
22886 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
22887 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
22888 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
22889 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
22890 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
22891 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
22892 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
22893 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
22894 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
22895 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
22896 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
22897 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
22898 move_v builtins.
22899 (mips_get_builtin_decl_index): New array.
22900 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
22901 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
22902 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
22903 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
22904 (mips_init_builtins): Initialize mips_get_builtin_decl_index
22905 array.
22906 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
22907 hook.
22908 (mips_expand_builtin_insn): Prepare operands for
22909 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
22910 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
22911 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
22912 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
22913 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
22914 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
22915 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
22916 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
22917 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
22918 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
22919 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
22920 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
22921 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
22922 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
22923 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
22924 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
22925 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
22926 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
22927 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
22928 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
22929 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
22930 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
22931 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
22932 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
22933 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
22934 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
22935 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
22936 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
22937 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
22938 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
22939 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
22940 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
22941 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
22942 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
22943 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
22944 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
22945 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
22946 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
22947 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
22948 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
22949 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
22950 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
22951 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
22952 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
22953 These are set implicitly and an error is reported if overridden.
22954 (mips_expand_builtin_msa_test_branch): New function.
22955 (mips_expand_msa_shuffle): Likewise.
22956 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
22957 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
22958 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
22959 (mips_expand_vec_unpack): Add support for MSA.
22960 (mips_expand_vector_init): Likewise.
22961 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
22962 instead of const0_rtx.
22963 (mips_msa_vec_parallel_const_half): New function.
22964 (mips_gen_const_int_vector): Likewise.
22965 (mips_gen_const_int_vector_shuffle): Likewise.
22966 (mips_expand_msa_cmp): Likewise.
22967 (mips_expand_vec_cond_expr): Likewise.
22968 * config/mips/mips.h
22969 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
22970 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
22971 specified.
22972 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
22973 (ISA_HAS_MSA): New macro.
22974 (UNITS_PER_MSA_REG): Likewise.
22975 (BITS_PER_MSA_REG): Likewise.
22976 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
22977 (MSA_REG_FIRST): New macro.
22978 (MSA_REG_LAST): Likewise.
22979 (MSA_REG_NUM): Likewise.
22980 (MSA_REG_P): Likewise.
22981 (MSA_REG_RTX_P): Likewise.
22982 (MSA_SUPPORTED_MODE_P): Likewise.
22983 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
22984 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
22985 * config/mips/mips.md: Include mips-msa.md.
22986 (alu_type): Add simd_add.
22987 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
22988 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
22989 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
22990 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
22991 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
22992 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
22993 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
22994 simd_move, simd_load, simd_store. Choose "multi" for moves
22995 for "qword_mode".
22996 (qword_mode): New attribute.
22997 (insn_count): Add instruction count for quad moves.
22998 Increase the count for MIPS SIMD division.
22999 (UNITMODE): Add UNITMODEs for vector types.
23000 (addsub): New code iterator.
23001 * config/mips/mips.opt (mmsa): New option.
23002 * config/mips/msa.h: New file.
23003 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
23004 specified.
23005 * config/mips/mti-linux.h: Likewise.
23006 * config/mips/predicates.md
23007 (const_msa_branch_operand): New constraint.
23008 (const_uimm3_operand): Likewise.
23009 (const_uimm4_operand): Likewise.
23010 (const_uimm5_operand): Likewise.
23011 (const_uimm8_operand): Likewise.
23012 (const_imm5_operand): Likewise.
23013 (aq10b_operand): Likewise.
23014 (aq10h_operand): Likewise.
23015 (aq10w_operand): Likewise.
23016 (aq10d_operand): Likewise.
23017 (const_m1_operand): Likewise.
23018 (reg_or_m1_operand): Likewise.
23019 (const_exp_2_operand): Likewise.
23020 (const_exp_4_operand): Likewise.
23021 (const_exp_8_operand): Likewise.
23022 (const_exp_16_operand): Likewise.
23023 (const_vector_same_val_operand): Likewise.
23024 (const_vector_same_simm5_operand): Likewise.
23025 (const_vector_same_uimm5_operand): Likewise.
23026 (const_vector_same_uimm6_operand): Likewise.
23027 (const_vector_same_uimm8_operand): Likewise.
23028 (par_const_vector_shf_set_operand): Likewise.
23029 (reg_or_vector_same_val_operand): Likewise.
23030 (reg_or_vector_same_simm5_operand): Likewise.
23031 (reg_or_vector_same_uimm6_operand): Likewise.
23032 * doc/extend.texi (MIPS SIMD Architecture Functions): New
23033 section.
23034 * doc/invoke.texi (-mmsa): Document new option.
23035
23036 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23037
23038 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
23039 * configure: Regenerate.
23040 * config.in: Regenerate.
23041 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
23042 on -fvtable-verify.
23043 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
23044 (ENDFILE_VTV_SPEC): Define.
23045
23046 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
23047
23048 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
23049 registers in all interrupt handlers if necessary.
23050 (rl78_option_override): Add warning.
23051 (MUST_SAVE_MDUC_REGISTERS): New macro.
23052 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
23053 * config/rl78/rl78.c (check_mduc_usage): New function.
23054 (mduc_regs): New structure to hold MDUC register data.
23055 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
23056 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
23057 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
23058 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
23059 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
23060 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
23061
23062 2016-05-09 Bin Cheng <bin.cheng@arm.com>
23063
23064 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
23065 (tree-ssa-loop-niter.h): Ditto.
23066 (idx_within_array_bound, ref_within_array_bound): New functions.
23067 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
23068 Factor out check on writable base object to ...
23069 (base_object_writable): ... here.
23070
23071 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23072
23073 * config/arm/arm.md (probe_stack): Add modes to set source
23074 and destination.
23075
23076 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
23077
23078 * regrename.c (base_reg_class_for_rename): New static function.
23079 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
23080
23081 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
23082
23083 * cgraph.c (thunk_adjust): Export.
23084 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
23085 * cgraphunit.c (thunk_adjust): Export.
23086 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
23087 thunks.
23088 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
23089 inlinable.
23090 * tree-inline.c (expand_call_inline): Expand thunks inline.
23091
23092 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
23093
23094 PR target/70998
23095 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
23096 (*sse2_vd_cvtss2sd): Ditto.
23097 * config/i386/i386.md
23098 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
23099 Generate *sse2_vd_cvtsd2ss pattern.
23100 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
23101 Generate *sse2_vd_cvtss2sd pattern.
23102
23103 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
23104
23105 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
23106 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
23107 users.
23108
23109 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
23110
23111 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
23112 * config/sh/sh.c: Define and declare variables on first use throughout
23113 the file.
23114 (current_function_interrupt): Change to bool type.
23115 (frame_insn): Rename to emit_frame_insn and update users.
23116 (push_regs): Use bool for 'interrupt_handler' argument.
23117 (save_schedule_s): Remove.
23118 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
23119 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
23120 targetm.asm_out.unaligned_op.di.
23121 (gen_far_branch): Remove redundant forward declaration.
23122 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
23123 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
23124 (sh_set_return_address, sh_function_ok_for_sibcall,
23125 scavenge_reg): Update comments.
23126 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
23127 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
23128 (sh_attr_renesas_p): Remove unnecessary parentheses.
23129 (branch_dest): Simplify.
23130 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
23131 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
23132 (CUMULATIVE_ARGS): Change macro to typedef.
23133 (current_function_interrupt): Change to bool type.
23134 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
23135 Surround with __cplusplus ifdef.
23136 (sh_compare_op0, sh_compare_op1): Remove.
23137 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
23138
23139 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
23140
23141 * config/arm/arm.md (arch): Add neon.
23142 (arch_enabled): Return yes for arch neon when TARGET_NEON.
23143 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
23144 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
23145 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
23146 attributes for alt renumbering. Mark alt 3 as non-predicable.
23147 (thumb2_movdf_vfp): Likewise.
23148
23149 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
23150
23151 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
23152 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
23153 (*andqi_1): Add preferred_for_speed attribute to disparage
23154 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
23155 (*<code>qi_1): Ditto.
23156 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
23157 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
23158 (*ashlqi3_1): Ditto.
23159 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
23160 Add preferred_for_size attribute to disparage alternative 0 and
23161 preferred_for_speed attribute to disparage alternative 1 for
23162 TARGET_PARTIAL_REG_STALL targets.
23163
23164 2016-05-07 Tom de Vries <tom@codesourcery.com>
23165
23166 PR tree-optimization/70956
23167 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
23168 def.
23169
23170 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
23171
23172 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
23173 * config/sh/sh.c (sh_cbranch_distance): Implement it.
23174 * config/sh/sh.md (branch_zero): Remove define_attr.
23175 (define_delay): Disable delay slot if branch distance is one insn.
23176
23177 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
23178
23179 * config/i386/i386.md (LEAMODE): New mode attribute.
23180 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
23181 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
23182 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
23183 operand 2 predicate.
23184 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
23185 (*lea<mode>_general_3): Ditto.
23186 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
23187
23188 2016-05-06 Jakub Jelinek <jakub@redhat.com>
23189
23190 * genmddump.c (main): Convert argv from char ** to const char **.
23191
23192 2016-05-06 David Malcolm <dmalcolm@redhat.com>
23193
23194 * coretypes.h (OVERRIDE): New macro.
23195 (FINAL): New macro.
23196
23197 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
23198
23199 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
23200 allow coalescing if the types are compatible.
23201
23202 2016-05-06 David Malcolm <dmalcolm@redhat.com>
23203
23204 * pass_manager.h (pass_manager::register_pass_name): New method.
23205 (pass_manager::get_pass_by_name): New method.
23206 (pass_manager::create_pass_tab): New method.
23207 (pass_manager::m_name_to_pass_map): New field.
23208 * passes.c (name_to_pass_map): Delete global in favor of field
23209 "m_name_to_pass_map" of pass_manager.
23210 (register_pass_name): Rename from a function to...
23211 (pass_manager::register_pass_name): ...this method, updating
23212 for renaming of global "name_to_pass_map" to field
23213 "m_name_to_pass_map".
23214 (create_pass_tab): Rename from a function to...
23215 (pass_manager::create_pass_tab): ...this method, updating
23216 for renaming of global "name_to_pass_map" to field.
23217 (get_pass_by_name): Rename from a function to...
23218 (pass_manager::get_pass_by_name): ...this method.
23219 (enable_disable_pass): Convert use of get_pass_by_name to
23220 a method call, locating the pass_manager singleton.
23221
23222 2016-05-06 David Malcolm <dmalcolm@redhat.com>
23223
23224 * genattr-common.c (main): Convert argv from char ** to const char **.
23225 * genattr.c (main): Likewise.
23226 * genattrtab.c (main): Likewise.
23227 * genautomata.c (initiate_automaton_gen): Likewise.
23228 (main): Likewise.
23229 * gencodes.c (main): Likewise.
23230 * genconditions.c (main): Likewise.
23231 * genconfig.c (main): Likewise.
23232 * genconstants.c (main): Likewise.
23233 * genemit.c (main): Likewise.
23234 * genenums.c (main): Likewise.
23235 * genextract.c (main): Likewise.
23236 * genflags.c (main): Likewise.
23237 * genmddeps.c (main): Likewise.
23238 * genopinit.c (main): Likewise.
23239 * genoutput.c (main): Likewise.
23240 * genpeep.c (main): Likewise.
23241 * genpreds.c (main): Likewise.
23242 * genrecog.c (main): Likewise.
23243 * gensupport.c (init_rtx_reader_args_cb): Likewise.
23244 (init_rtx_reader_args): Likewise.
23245 * gensupport.h (init_rtx_reader_args_cb): Likewise.
23246 (init_rtx_reader_args): Likewise.
23247 * gentarget-def.c (main): Likewise.
23248 * read-md.c (read_md_files): Likewise.
23249 * read-md.h (read_md_files): Likewise.
23250
23251 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
23252
23253 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
23254 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
23255 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
23256 Remove unused predicate.
23257 (register_and_not_fp_reg_operand): Ditto.
23258
23259 2016-05-06 Martin Liska <mliska@suse.cz>
23260
23261 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
23262 instead of vec as the vector is local to the function.
23263
23264 2016-05-06 Jakub Jelinek <jakub@redhat.com>
23265
23266 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
23267 avx512bw alternative.
23268
23269 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
23270 before the ashr<mode>3 pattern.
23271
23272 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
23273 v instead of x in vex or maybe_vex alternatives, use
23274 maybe_evex instead of vex in prefix.
23275
23276 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
23277 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
23278 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
23279 in vex or maybe_vex alternatives, use maybe_evex instead of vex
23280 in prefix.
23281
23282 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
23283 v instead of x in vex or maybe_vex alternatives, use
23284 maybe_evex instead of vex in prefix.
23285
23286 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
23287 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
23288 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
23289 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
23290 alternatives, use maybe_evex instead of vex in prefix.
23291
23292 * config/i386/sse.md (vec_interleave_lowv4sf,
23293 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
23294 v instead of x in vex or maybe_vex alternatives, use
23295 maybe_evex instead of vex in prefix.
23296
23297 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
23298 v instead of x in vex or maybe_vex alternatives, use
23299 maybe_evex instead of vex in prefix.
23300
23301 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
23302 v constraint instead of x.
23303
23304 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
23305
23306 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
23307 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
23308 equality first.
23309
23310 2016-05-06 Richard Biener <rguenther@suse.de>
23311
23312 PR tree-optimization/70948
23313 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23314 Properly clobber all fields of va_list for __builtin_va_start.
23315
23316 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
23317
23318 PR debug/70935
23319 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
23320 loop latch destination.
23321
23322 2016-05-06 Martin Liska <mliska@suse.cz>
23323
23324 * tree-ssa-uninit.c: Apply manual changes
23325 to the GNU coding style.
23326 (prune_uninit_phi_opnds): Rename from
23327 prune_uninit_phi_opnds_in_unrealizable_paths.
23328
23329 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
23330
23331 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
23332 mspace): Remove deprecated options.
23333 * doc/invoke.texi (SH options): Remove -mspace.
23334
23335 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
23336
23337 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
23338
23339 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
23340
23341 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
23342 corresponding combine split pattern.
23343
23344 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
23345
23346 PR target/58219
23347 * config/sh/predicates.md (long_displacement_mem_operand): New.
23348 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
23349 Add movi20, movi20s alternatives. Adjust length attribute for
23350 alternatives.
23351 (movsi_ie): Allow for any FPU. Adjust length attribute for
23352 alternatives.
23353 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
23354 attribute for alternatives.
23355 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
23356 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
23357 length attribute for alternatives.
23358
23359 2016-05-06 Richard Biener <rguenther@suse.de>
23360
23361 PR tree-optimization/70960
23362 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
23363
23364 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
23365
23366 PR target/52933
23367 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
23368 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
23369
23370 2016-05-06 Marek Polacek <polacek@redhat.com>
23371
23372 PR sanitizer/70875
23373 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
23374
23375 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
23376
23377 PR target/54089
23378 * config/sh/sh.md (*rotcr): Add another variant.
23379
23380 2016-05-06 Richard Biener <rguenther@suse.de>
23381
23382 PR middle-end/70931
23383 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
23384
23385 2016-05-06 Richard Biener <rguenther@suse.de>
23386
23387 PR middle-end/70941
23388 * fold-const.c (split_tree): Always convert to the original type
23389 before negating.
23390
23391 2016-05-06 Richard Biener <rguenther@suse.de>
23392
23393 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
23394 (fwprop_addr): Likewise.
23395
23396 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
23397
23398 PR target/70873
23399 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
23400 New prototype.
23401 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
23402 * config/i386/i386.md (push mem splitter): Use find_constant_src in
23403 the splitter condition.
23404 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
23405 the splitter condition.
23406 (FP float_extend load splitter): Ditto.
23407
23408 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
23409
23410 * config/i386/i386.md (peehole2 patterns): Change true_regnum
23411 to REGNO in all peephole2 patterns.
23412 (post-reload splitters): Change true_regnum to REGNO in
23413 post-reload splitters.
23414 (zero_extend splitters): Use general_reg_operand and
23415 nonimmediate_gr_operand predicates.
23416
23417 2016-05-05 Jakub Jelinek <jakub@redhat.com>
23418
23419 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
23420 v constraint instead of x.
23421
23422 2016-05-05 Alan Modra <amodra@gmail.com>
23423
23424 PR target/68662
23425 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
23426 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
23427 TARGET_NO_FP_IN_TOC for -mrelocatable.
23428 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
23429 TARGET_RELOCATABLE test.
23430 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
23431 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
23432 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
23433 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
23434 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
23435 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
23436 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
23437 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
23438 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
23439 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
23440 Likewise.
23441 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
23442 (rs6000_stack_info): Likewise.
23443 (rs6000_elf_asm_out_constructor): Likewise.
23444 (rs6000_elf_asm_out_destructor): Likewise.
23445 (rs6000_elf_declare_function_name): Likewise.
23446 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
23447 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
23448 Don't define.
23449
23450 2016-05-05 Alan Modra <amodra@gmail.com>
23451
23452 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
23453
23454 2016-05-05 Alan Modra <amodra@gmail.com>
23455
23456 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
23457 out-of-line gpr restore for one or two regs if that would add
23458 a save of lr.
23459
23460 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
23461
23462 PR target/70873
23463 * config/i386/i386.md
23464 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
23465 Change to post-epilogue_completed late splitter. Use sse_reg_operand
23466 as operand 0 predicate.
23467 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
23468 Ditto.
23469 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
23470 Ditto. Emit the pattern using RTX.
23471
23472 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
23473 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
23474 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
23475 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
23476 Ditto.
23477 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
23478 sse_reg_operand as operand 0 predicate.
23479
23480 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
23481 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
23482 instead of gen_rtx_REG.
23483 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
23484 Ditto.
23485
23486 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
23487
23488 * function.c (emit_use_return_register_into_block): Delete.
23489 (gen_return_pattern): Delete.
23490 (emit_return_into_block): Delete.
23491 (active_insn_between): Delete.
23492 (convert_jumps_to_returns): Delete.
23493 (emit_return_for_exit): Delete.
23494 (thread_prologue_and_epilogue_insns): Delete all code dealing with
23495 simple_return for shrink-wrapped blocks.
23496 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
23497 end of blocks that need one.
23498 (get_unconverted_simple_return): Delete.
23499 (convert_to_simple_return): Delete.
23500 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
23501 (convert_to_simple_return): Ditto.
23502
23503 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
23504
23505 * cfgcleanup.c (bb_is_just_return): New function.
23506 (try_optimize_cfg): Simplify jumps to return, branches to return,
23507 and branches around return.
23508
23509 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
23510
23511 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
23512 branch to a return.
23513
23514 2016-05-04 Jakub Jelinek <jakub@redhat.com>
23515
23516 PR c++/70906
23517 PR c++/70933
23518 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
23519 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
23520 assert flags & OEP_HASH_CHECK, instead of asserting it
23521 never happens. Handle TARGET_EXPR.
23522 * fold-const.c (operand_equal_p): For hash verification,
23523 or in OEP_HASH_CHECK into flags.
23524
23525 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
23526
23527 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
23528 comment.
23529 (compute_samebase_partition_bases): Fix typo.
23530
23531 2016-05-04 Jakub Jelinek <jakub@redhat.com>
23532
23533 * config/i386/sse.md (vec_interleave_highv8sf,
23534 vec_interleave_lowv8sf, vec_interleave_highv4df,
23535 vec_interleave_lowv4df): Remove constraints from expanders.
23536
23537 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
23538
23539 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
23540
23541 * tree-inline.c (expand_call_inline): Fix path dealing with
23542 making lhs of call statement undefined.
23543
23544 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
23545
23546 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23547 Check availability on NODE, too.
23548 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
23549 (cgraph_node::call_for_symbol_and_aliases): Likewise.
23550 (varpool_node::call_for_symbol_and_aliase): Likewise.
23551 * ipa-pure-const.c (add_new_function): Analyze all bodies.
23552 (propagate_pure_const): Propagate across interposable functions, too.
23553 (skip_function_for_local_pure_const): Do not skip interposable bodies
23554 with aliases.
23555 (pass_local_pure_const::execute): Update.
23556
23557 2016-05-04 Marek Polacek <polacek@redhat.com>
23558
23559 * doc/invoke.texi: Document -Wdangling-else.
23560
23561 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
23562
23563 * config.gcc: Error out when conflicting multilib is detected. Do not
23564 loop over multilibs since no combination is legal.
23565
23566 2016-05-04 Alan Modra <amodra@gmail.com>
23567
23568 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
23569 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
23570 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
23571 Align .toc.
23572
23573 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
23574
23575 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
23576 Clean up p5600 comments.
23577
23578 2016-05-04 Richard Biener <rguenther@suse.de>
23579
23580 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
23581 constructor simplifications.
23582 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
23583
23584 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
23585
23586 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
23587 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
23588 result.set_rtx is null instead of aborting.
23589 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
23590 Always enable.
23591 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
23592 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
23593 *mov<mode>_store_postinc): New patterns.
23594
23595 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
23596
23597 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
23598 as commutative. Check both conversions are NOP.
23599 ((A & B) OP (C & B)): Remove.
23600
23601 2016-05-04 Alan Modra <amodra@gmail.com>
23602
23603 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
23604
23605 2016-05-04 Alan Modra <amodra@gmail.com>
23606
23607 PR target/70866
23608 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
23609 when cr2,3,4 are all fixed regs.
23610
23611 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
23612
23613 PR rtl-optimization/57193
23614 * opts.c (default_options_table): Revert OPT_frename_registers change.
23615 * doc/invoke.texi (-frename-registers, -O2): Likewise.
23616
23617 2016-05-03 Martin Sebor <msebor@redhat.com>
23618
23619 PR c++/66561
23620 * builtins.c (fold_builtin_FILE): New function.
23621 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
23622 (fold_builtin_0): Call them.
23623 * gimplify.c (gimplify_call_expr): Remove the handling of
23624 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
23625
23626 PR c++/66561
23627 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
23628 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
23629 constants.
23630
23631 PR c++/66639
23632 * doc/extend.texi (Function Names as Strings): Update __func__,
23633 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
23634 constants.
23635
23636 2016-05-03 Jakub Jelinek <jakub@redhat.com>
23637 Richard Biener <rguenther@suse.de>
23638
23639 PR tree-optimization/70916
23640 * tree-if-conv.c: Include cfganal.h.
23641 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
23642 and remove_fake_exit_edges around the optimization pass.
23643
23644 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
23645
23646 * cgraph.c (symbol_table::create_edge): Set inline_failed.
23647 (cgraph_edge::make_direct): Likewise.
23648 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
23649 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
23650 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
23651 (CIF_THUNK): New code.
23652 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
23653 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
23654 (compute_inline_parameters): Set inline_failed for thunks.
23655 (inline_analyze_function): Cleanup.
23656 * ipa-inline.c (can_inline_edge_p): Do not deal with
23657 call_stmt_cannot_inline_p.
23658 (can_early_inline_edge_p): Likewise.
23659 (early_inliner): Initialize inline_failed.
23660 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
23661
23662 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
23663
23664 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
23665 from nonimm_ssenomem_operand.
23666 (nonimm_ssenomem_operand): New predicate.
23667 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
23668 as operand 0 predicate.
23669 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
23670 Disable unsupported alternatives using "enabled" attribute.
23671 Use register_ssemem_operand as operand 0 predicate.
23672 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
23673
23674 2016-05-03 Marek Polacek <polacek@redhat.com>
23675
23676 PR c/70859
23677 * input.c (expansion_point_location): New function.
23678 * input.h (expansion_point_location): Declare.
23679
23680 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
23681
23682 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
23683 occurence with frame_offset_ ones.
23684
23685 2016-05-03 Alan Modra <amodra@gmail.com>
23686
23687 PR rtl-optimization/70890
23688 * ira.c (combine_and_move_insns): When moving def_insn, remove
23689 equivs on use_insn.
23690
23691 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
23692
23693 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
23694 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
23695 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
23696 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
23697
23698 2016-05-03 Alan Modra <amodra@gmail.com>
23699
23700 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
23701 for SAVE_MULTIPLE/STORE_MULTIPLE.
23702
23703 2016-05-03 Jakub Jelinek <jakub@redhat.com>
23704
23705 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
23706 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
23707
23708 2016-05-03 Richard Biener <rguenther@suse.de>
23709
23710 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
23711 default true.
23712 (gimplify_arg): Likewise.
23713 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
23714 re-writing the result to a decl if required.
23715 (internal_get_tmp_var): Add allow_ssa parameter
23716 and override into_ssa with it.
23717 (get_formal_tmp_var): Adjust.
23718 (get_initialized_tmp_var): Add allow_ssa parameter.
23719 (gimplify_arg): Add allow_ssa parameter and avoid generating
23720 SSA names for the result false.
23721 (gimplify_call_expr): If the call may return twice do not
23722 gimplify parameters into SSA.
23723 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
23724 (gimplify_modify_expr): Adjust assert. For noreturn calls
23725 with a SSA name LHS adjust its def.
23726 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
23727 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
23728 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
23729 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
23730 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
23731 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
23732 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
23733 (optimize_target_teams): Do not allow SSA names for clause operands.
23734 (gimplify_expr): Likewise for where we mark the result addressable.
23735 * passes.def (pass_init_datastructures): Remove.
23736 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
23737 (rewrite_stmt): Likewise.
23738 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
23739 (replace_locals_op): Replace SSA names.
23740 (copy_gimple_seq_and_replace_locals): Init src_cfun.
23741 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
23742 * cgraph.c (release_function_body): Free CFG annotations only
23743 when we have a CFG. Simplify.
23744 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
23745 force_gimple_operand instead of get_initialized_tmp_var.
23746 * tree-pass.h (make_pass_init_datastructures): Remove.
23747 * tree-ssa.c (execute_init_datastructures): Remove.
23748 (pass_data_init_datastructures): Likewise.
23749 (class pass_init_datastructures): Likewise.
23750 (make_pass_init_datastructures): Likewise.
23751 * omp-low.c (create_omp_child_function): Init SSA data structures.
23752 (grid_expand_target_grid_body): Likewise.
23753 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
23754 name before adding it to names_to_release.
23755 (remove_bb): Always release SSA defs.
23756 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
23757 before dereferencing it.
23758 * cgraphunit.c (init_lowered_empty_function): Always
23759 int SSA data structures.
23760 * tree-ssanames.c (release_defs): Remove assert that we are in
23761 SSA form.
23762 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
23763
23764 2016-05-03 Jakub Jelinek <jakub@redhat.com>
23765 Uros Bizjak <ubizjak@gmail.com>
23766
23767 PR rtl-optimization/70467
23768 * config/i386/predicates.md (x86_64_hilo_int_operand,
23769 x86_64_hilo_general_operand): New predicates.
23770 * config/i386/constraints.md (Wd): New constraint.
23771 * config/i386/i386.md (mode attr di): Use Wd instead of e.
23772 (general_hilo_operand): New mode attr.
23773 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
23774 instead of <general_operand>.
23775 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
23776 x86_64_hilo_general_operand instead of <general_operand>.
23777
23778 2016-05-03 Jakub Jelinek <jakub@redhat.com>
23779
23780 PR tree-optimization/70916
23781 * tree-if-conv.c (constant_or_ssa_name): Removed.
23782 (fold_build_cond_expr): Use is_gimple_val instead of
23783 constant_or_ssa_name.
23784
23785 PR tree-optimization/70916
23786 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
23787 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
23788
23789 PR target/49244
23790 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
23791 (optimize_atomic_bit_test_and): New function.
23792 (pass_fold_builtins::execute): Use it.
23793 * optabs.def (atomic_bit_test_and_set_optab,
23794 atomic_bit_test_and_complement_optab,
23795 atomic_bit_test_and_reset_optab): New optabs.
23796 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
23797 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
23798 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
23799 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
23800 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
23801 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
23802 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
23803 * doc/md.texi (atomic_bit_test_and_set@var{mode},
23804 atomic_bit_test_and_complement@var{mode},
23805 atomic_bit_test_and_reset@var{mode}): Document.
23806 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
23807 atomic_bit_test_and_complement<mode>,
23808 atomic_bit_test_and_reset<mode>): New expanders.
23809 (atomic_bit_test_and_set<mode>_1,
23810 atomic_bit_test_and_complement<mode>_1,
23811 atomic_bit_test_and_reset<mode>_1): New insns.
23812
23813 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
23814
23815 PR rtl-optimization/70687
23816 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
23817 instead of unsigned HOST_WIDE_INT.
23818
23819 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
23820
23821 PR rtl-optimization/44281
23822 * hard-reg-set.h (struct target_hard_regs): New field
23823 x_fixed_nonglobal_reg_set.
23824 (fixed_nonglobal_reg_set): New macro.
23825 * reginfo.c (init_reg_sets_1): Initialize it.
23826 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
23827 of fixed_reg_set.
23828 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
23829
23830 2016-05-03 Bin Cheng <bin.cheng@arm.com>
23831
23832 PR tree-optimization/56541
23833 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
23834 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
23835 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
23836 (any_complicated_phi): new static variable.
23837 (aggressive_if_conv): delete.
23838 (if_convertible_phi_p): support phis with more than two arguments.
23839 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
23840 critical pred edges.
23841 (ifcvt_split_critical_edges): support phis with more than two
23842 arguments by checking new parameter. only split critical edges
23843 if needed.
23844 (tree_if_conversion): handle simd pragma marked loop using new
23845 local variable aggressive_if_conv. check any_complicated_phi.
23846
23847 2016-05-03 Bin Cheng <bin.cheng@arm.com>
23848
23849 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
23850 before using it.
23851
23852 2016-05-03 Bin Cheng <bin.cheng@arm.com>
23853
23854 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
23855 cbase.
23856
23857 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
23858
23859 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
23860 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
23861 define_insn_and_split.
23862 (mulsi3_i): New define_insn_and_split.
23863 (mulsi3_call): Convert to define_insn.
23864 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
23865 Remove constraints.
23866
23867 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23868
23869 * machmode.h (mode_complex): Add support to give the complex mode
23870 for a given mode.
23871 (GET_MODE_COMPLEX_MODE): Likewise.
23872 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
23873 stored by build_complex_type and gfc_build_complex_type instead of
23874 trying to figure out the appropriate mode based on the size. Raise
23875 an assertion error, if the type was not set.
23876 * genmodes.c (struct mode_data): Add field for the complex type of
23877 the given type.
23878 (blank_mode): Likewise.
23879 (make_complex_modes): Remember the complex mode created in the
23880 base type.
23881 (emit_mode_complex): Write out the mode_complex array to map a
23882 type mode to the complex version.
23883 (emit_insn_modes_c): Likewise.
23884 * tree.c (build_complex_type): Set the complex type to use before
23885 calling layout_type.
23886 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
23887 support for __float128 complex datatypes.
23888 (rs6000_hard_regno_mode_ok): Likewise.
23889 (rs6000_setup_reg_addr_masks): Likewise.
23890 (rs6000_complex_function_value): Likewise.
23891 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
23892 __float128 and __ibm128 complex.
23893 (FLOAT128_IBM_P): Likewise.
23894 (ALTIVEC_ARG_MAX_RETURN): Likewise.
23895 * doc/extend.texi (Additional Floating Types): Document that
23896 -mfloat128 must be used to enable __float128. Document complex
23897 __float128 and __ibm128 support.
23898
23899 2016-05-02 Jakub Jelinek <jakub@redhat.com>
23900
23901 PR target/49244
23902 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
23903 char/short arguments promoted to int because of promote_prototypes.
23904
23905 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
23906
23907 * config/i386/predicates.md (register_ssemem_operand): New predicate.
23908 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
23909 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
23910 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
23911 alternatives using "enabled" attribute. Use register_ssemem_operand
23912 as operand 1 predicate.
23913 (*cmpi<unord>xf_i387): Split XFmode pattern from
23914 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
23915 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
23916 *absneg<mode>2_i387. Disable unsupported alternatives using
23917 "enabled" attribute.
23918 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
23919
23920 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
23921
23922 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
23923 marker.
23924 (oacc_loop_process): Check mask for loop termination.
23925
23926 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
23927
23928 * cif-code.def (CIF_THUNK): Add.
23929 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
23930 accidental change.
23931
23932 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
23933
23934 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
23935 (dump_inline_summary): Dump it.
23936 (fp_expression_p): New predicate.
23937 (estimate_function_body_sizes): Use it.
23938 (inline_merge_summary): Merge fp_expressions.
23939 (inline_read_section): Read fp_expressions.
23940 (inline_write_summary): Write fp_expressions.
23941 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
23942 codegen boundary if either caller or callee is !fp_expressions.
23943 * ipa-inline.h (inline_summary): Add fp_expressions.
23944 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
23945 to fp_expressions be sure the fp generation flags are updated.
23946
23947 2016-05-02 Jakub Jelinek <jakub@redhat.com>
23948
23949 PR rtl-optimization/70467
23950 * cse.c (cse_insn): Handle no-op MEM moves after folding.
23951
23952 PR rtl-optimization/70467
23953 * ipa-pure-const.c (check_call): Handle internal calls even in
23954 ipa mode like in local mode.
23955
23956 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
23957
23958 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
23959
23960 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
23961
23962 * match.pd (X u< X, X u> X): New transformations.
23963
23964 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
23965
23966 * flag-types.h (enum warn_strict_overflow_code): Move ...
23967 * coretypes.h: ... here.
23968 * fold-const.h (fold_overflow_warning): Declare.
23969 * fold-const.c (fold_overflow_warning): Make non-static.
23970 (fold_comparison): Move the transformation of X +- C1 CMP C2
23971 into X CMP C2 -+ C1 ...
23972 * match.pd: ... here.
23973 * gimple-fold.c (fold_stmt_1): Protect with
23974 fold_defer_overflow_warnings.
23975
23976 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
23977
23978 * omp-low.c (struct oacc_loop): Add 'inner' field.
23979 (new_oacc_loop_raw): Initialize it to zero.
23980 (oacc_loop_fixed_partitions): Initialize it.
23981 (oacc_loop_auto_partitions): Partition outermost loop to outermost
23982 available partitioning.
23983
23984 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
23985
23986 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
23987 register_operand.
23988 (umulsidi3): Likewise.
23989 (indirect_jump): Fix jump instruction assembly patterns.
23990
23991 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
23992
23993 PR target/70860
23994 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
23995 (nvptx_function_value): Assert non-NULL cfun.
23996
23997 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
23998
23999 PR rtl-optimization/70886
24000 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
24001
24002 * cselib.h (rtx_equal_for_cselib_1): Declare.
24003 (rtx_equal_for_cselib_p: New inline function.
24004 * cselib.c (rtx_equal_for_cselib_p): Delete.
24005 (rtx_equal_for_cselib_1): Make public.
24006
24007 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
24008
24009 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
24010 (register_mixssei387nonimm_operand): Remove predicate.
24011 * config/i386/i386.md (*fop_<mode>_comm): Merge from
24012 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
24013 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
24014 for TARGET_MIX_SSE_I387 alternatives.
24015 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
24016 Disable unsupported alternatives using "enabled" attribute. Use
24017 nonimm_ssenomem_operand as operand 1 predicate. Also check
24018 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
24019
24020 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24021
24022 * tree.c (cst_and_fits_in_hwi): Simplify.
24023
24024 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24025
24026 * tree.h (wi::to_wide): New function.
24027 * expr.c (expand_expr_real_1): Use wi::to_wide.
24028 * fold-const.c (int_const_binop_1): Likewise.
24029 (extract_muldiv_1): Likewise.
24030
24031 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24032
24033 * wide-int.h: Update offset_int and widest_int documentation.
24034 (WI_SIGNED_SHIFT_RESULT): New macro.
24035 (wi::binary_shift): Define signed_shift_result_type for
24036 shifts on offset_int- and widest_int-like types.
24037 (generic_wide_int): Support <<= and >>= if << and >> are supported.
24038 * tree.h (int_bit_position): Use shift operators instead of wi::
24039 shifts.
24040 * alias.c (adjust_offset_for_component_ref): Likewise.
24041 * expr.c (get_inner_reference): Likewise.
24042 * fold-const.c (fold_comparison): Likewise.
24043 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
24044 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
24045 * tree-dfa.c (get_ref_base_and_extent): Likewise.
24046 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
24047 (stmt_kills_ref_p): Likewise.
24048 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
24049 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
24050 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
24051 (ao_ref_init_from_vn_reference): Likewise.
24052
24053 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24054
24055 * wide-int.h: Update offset_int and widest_int documentation.
24056 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
24057 (wi::binary_traits): Allow ordered comparisons between offset_int and
24058 offset_int, between widest_int and widest_int, and between either
24059 of these types and basic C types.
24060 (operator <, <=, >, >=): Define for the same combinations.
24061 * tree.h (tree_int_cst_lt): Use comparison operators instead
24062 of wi:: comparisons.
24063 (tree_int_cst_le): Likewise.
24064 * gimple-fold.c (fold_array_ctor_reference): Likewise.
24065 (fold_nonarray_ctor_reference): Likewise.
24066 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
24067 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
24068 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
24069 * tree-sra.c (completely_scalarize): Likewise.
24070 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
24071 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
24072 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
24073 (check_for_binary_op_overflow): Likewise.
24074 (search_for_addr_array): Likewise.
24075 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
24076
24077 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
24078
24079 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
24080 (arc_save_restore): Likewise.
24081 (arc_dwarf_register_span): Likewise.
24082 (arc_output_pic_addr_const): Initialize suffix variable.
24083
24084 2016-05-02 Martin Liska <mliska@suse.cz>
24085
24086 * symbol-summary.h (function_summary::function_summary):
24087 Remove checking assert for all cgraph nodes.
24088 (function_summary::get): Check summary_uid.
24089 (symtab_insertion): Check summary_uid.
24090
24091 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
24092
24093 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
24094 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
24095 bmaskn instruction.
24096 (arc_dwarf_register_span): Remove enum keyword.
24097 (compact_memory_operand_p): New function.
24098 * config/arc/arc.h (reg_class): Add code density register classes.
24099 (REG_CLASS_NAMES): Likewise.
24100 (REG_CLASS_CONTENTS): Likewise.
24101 * config/arc/arc.md (*movqi_insn): Add code density instructions.
24102 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
24103 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
24104 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
24105 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
24106 constraints.
24107 (h, Rcd, Rsd, Rzd): New register constraints.
24108 (T): Use compact_memory_operand_p function.
24109 * config/arc/predicates.md (compact_load_memory_operand): Remove.
24110
24111 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
24112
24113 * config/sh/sh.md (*negnegt, *movtt): Remove.
24114
24115 2016-05-02 Marek Polacek <polacek@redhat.com>
24116 Tom de Vries <tom@codesourcery.com>
24117
24118 PR tree-optimization/70700
24119 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
24120 bigger than FIRST_REF_NODE.
24121
24122 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
24123
24124 PR target/52898
24125 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
24126 TARGET_CMPEQDI_T.
24127 (prepare_cbranch_operands): Don't use scratch register. Assume that
24128 function is used when pseudos can be created.
24129 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
24130 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
24131 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
24132 define_expand. Allow it only when pseudos can be created.
24133 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
24134
24135 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
24136
24137 * config/i386/constraints.md (BC): Only allow -1 operands.
24138 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
24139 Add "enabled" attribute. Update XI mode attribute calculation.
24140 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
24141 (*movoi_internal_avx): Update XI mode attribute calculation.
24142 (*movti_internal): Ditto.
24143
24144 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
24145
24146 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
24147 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
24148
24149 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
24150
24151 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
24152 statement on instruction code. Remove trailing spaces.
24153 (altivec_expand_stv_builtin): Likewise.
24154
24155 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
24156
24157 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
24158 (TARGET_FPU_DOUBLE): Simplify.
24159 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
24160 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
24161 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
24162 with 'TARGET_FPU_DOUBLE'.
24163 * config/sh/sh.md: Likewise.
24164
24165 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
24166
24167 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
24168 SH_DIV_STR_FOR_SIZE): Remove.
24169 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
24170 SH_DIV_STR_FOR_SIZE): Remove.
24171
24172 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
24173
24174 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
24175 logical_reg_operand): Delete.
24176 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
24177 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
24178 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
24179 match_operand and match_test.
24180 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
24181 variables on their first use. Return bool values.
24182 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
24183 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
24184 arith_reg_operand for input operand. Remove empty constraints.
24185 (xorsi3): Delete.
24186 (*xorsi3_compact): Rename to xorsi3.
24187 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
24188 (*zero_extend<mode>si2_disp_mem): Update comment.
24189 (mov_nop): Delete.
24190
24191 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
24192
24193 * config/sh/t-sh: Remove SH5 support.
24194 * config.gcc: Likewise.
24195 * configure: Likewise.
24196
24197 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24198
24199 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
24200
24201 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
24202
24203 * config/sh/sh.c (register_sh_passes, sh_option_override,
24204 sh_print_operand, prepare_move_operands,
24205 sh_can_follow_jump): Remove TARGET_SH1 checks.
24206 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
24207 PROMOTE_MODE): Likewise.
24208 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
24209 movdi): Likewise.
24210
24211 2016-04-30 Alan Modra <amodra@gmail.com>
24212
24213 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
24214 restoring when fixed_reg_p, but allow out-of-line or stmw save.
24215 Check for user regs later to avoid unnecessary looping over regs.
24216 Merge user reg check with non-saved reg check. Don't force
24217 inline VR restore when static chain used.
24218 (rs6000_frame_related): Omit eh_frame info for user regs when
24219 saving.
24220 (fixed_regs_p): Delete.
24221
24222 2016-04-30 Alan Modra <amodra@gmail.com>
24223
24224 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
24225 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
24226 Update all uses.
24227
24228 2016-04-30 Alan Modra <amodra@gmail.com>
24229
24230 PR target/69645
24231 * config/rs6000/rs6000.c (fixed_reg_p): New function.
24232 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
24233 Update all uses.
24234
24235 2016-04-30 Alan Modra <amodra@gmail.com>
24236
24237 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
24238 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
24239 flag_pic test for Darwin.
24240
24241 2016-04-30 Alan Modra <amodra@gmail.com>
24242
24243 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
24244 throw_calls_crossed.
24245 (REG_FREQ_CALLS_CROSSED): Delete.
24246 (REG_N_THROWING_CALLS_CROSSED): Delete.
24247 * regstat.c (regstat_bb_compute_ri): Don't calculate
24248 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
24249 (dump_reg_info): Don't print call cross frequency.
24250 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
24251 and REG_N_THROWING_CALLS_CROSSED.
24252
24253 2016-04-30 Alan Modra <amodra@gmail.com>
24254
24255 * regs.h (struct reg_info_t): Delete live_length.
24256 (REG_LIVE_LENGTH): Delete macro.
24257 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
24258 local_live, local_processed and local_live_last_luid params.
24259 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
24260 Formatting fixes.
24261 (regstat_compute_ri): Adjust for above. Don't set
24262 REG_LIVE_LENGTH.
24263 (dump_reg_info): Don't print live length.
24264 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
24265 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
24266 Localize loop_depth var.
24267
24268 2016-04-30 Alan Modra <amodra@gmail.com>
24269
24270 * ira.c (enum valid_equiv): New.
24271 (validate_equiv_mem): Return enum.
24272 (update_equiv_mem): Create replacement in more cases.
24273 (add_store_equivs): Update validate_equiv_mem call.
24274
24275 2016-04-30 Alan Modra <amodra@gmail.com>
24276
24277 * ira.c (combine_and_move_insns): Rather than scanning insns,
24278 use DF infrastucture to find use and def insns.
24279
24280 2016-04-30 Alan Modra <amodra@gmail.com>
24281
24282 ira.c (combine_and_move_insns): Move invariant conditions..
24283 (ira.c): ..to here. Call combine_and_move_insns before
24284 add_store_equivs. Call grow_reg_equivs later. Allocate
24285 req_equiv later using max_reg_num() rather than global max_regno.
24286 (contains_replace_regs): Delete.
24287 (add_store_equivs): Remove contains_replace_regs test.
24288
24289 2016-04-30 Alan Modra <amodra@gmail.com>
24290
24291 * ira.c (struct equiv_mem_data): New.
24292 (equiv_mem, equiv_mem_modified): Delete static vars.
24293 (validate_equiv_mem_from_store): Use "data" param to communicate..
24294 (validate_equiv_mem): ..from here.
24295
24296 2016-04-30 Alan Modra <amodra@gmail.com>
24297
24298 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
24299 split out from..
24300 (update_reg_equivs): ..here. Move allocation and freeing of
24301 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
24302 end_alias_analysis to..
24303 (ira): ..here.
24304
24305 2016-04-30 Alan Modra <amodra@gmail.com>
24306
24307 * ira.c (pdx_subregs): Delete.
24308 (struct equivalence): Add pdx_subregs field.
24309 (set_paradoxical_subreg): Remove pdx_subregs param. Update
24310 pdx_subregs access.
24311 (update_equiv_regs): Don't create or free pdx_subregs. Update
24312 pdx_subregs access.
24313
24314 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24315
24316 * config/rs6000/altivec.h: Change definitions of vec_xl and
24317 vec_xst.
24318 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
24319 (LD_ELEMREV_V2DI): New.
24320 (LD_ELEMREV_V4SF): New.
24321 (LD_ELEMREV_V4SI): New.
24322 (LD_ELEMREV_V8HI): New.
24323 (LD_ELEMREV_V16QI): New.
24324 (ST_ELEMREV_V2DF): New.
24325 (ST_ELEMREV_V2DI): New.
24326 (ST_ELEMREV_V4SF): New.
24327 (ST_ELEMREV_V4SI): New.
24328 (ST_ELEMREV_V8HI): New.
24329 (ST_ELEMREV_V16QI): New.
24330 (XL): New.
24331 (XST): New.
24332 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24333 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
24334 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
24335 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
24336 (altivec_expand_builtin): Add handling for
24337 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
24338 (rs6000_invalid_builtin): Add error-checking for
24339 RS6000_BTM_P9_VECTOR.
24340 (altivec_init_builtins): Define builtins used to implement vec_xl
24341 and vec_xst.
24342 (rs6000_builtin_mask_names): Define power9-vector.
24343 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
24344 (RS6000_BTM_P9_VECTOR): Define.
24345 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
24346 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
24347 (vsx_ld_elemrev_v2df): Likewise.
24348 (vsx_ld_elemrev_v4sf): Likewise.
24349 (vsx_ld_elemrev_v4si): Likewise.
24350 (vsx_ld_elemrev_v8hi): Likewise.
24351 (vsx_ld_elemrev_v16qi): Likewise.
24352 (vsx_st_elemrev_v2df): Likewise.
24353 (vsx_st_elemrev_v2di): Likewise.
24354 (vsx_st_elemrev_v4sf): Likewise.
24355 (vsx_st_elemrev_v4si): Likewise.
24356 (vsx_st_elemrev_v8hi): Likewise.
24357 (vsx_st_elemrev_v16qi): Likewise.
24358 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
24359 grammar.
24360
24361 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
24362
24363 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
24364 out into ...
24365 (simplify_control_stmt_condition_1): ... here. Recurse into
24366 BIT_AND_EXPRs and BIT_IOR_EXPRs.
24367
24368 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
24369
24370 PR target/69810
24371 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
24372 (zero_extendqi<mode>2_dot): Revert earlier conversion from
24373 define_insn_and_split to define_insn.
24374 (zero_extendqi<mode>2_dot2): Same.
24375 (extendqi<mode>2_dot): Same.
24376 (extendqi<mode>2_dot2): Same.
24377
24378 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
24379
24380 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
24381 (probe_stack): New expander.
24382 (probe_stack_<mode>): New insn pattern.
24383
24384 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
24385
24386 * config/i386/i386.md
24387 (operations with memory inputs setting flags peephole2):
24388 Remove uneeded REG_P checks. Cleanup pattern generation.
24389
24390 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
24391
24392 * tree-vect-loop.c (vect_transform_loop): Fix
24393 nb_iterations_upper_bound computation for vectorized loop.
24394
24395 2016-04-29 Marek Polacek <polacek@redhat.com>
24396 Jakub Jelinek <jakub@redhat.com>
24397
24398 PR sanitizer/70342
24399 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
24400 TARGET_EXPR_SLOT as a base.
24401
24402 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
24403
24404 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
24405 with 'rCm2' constraints to limit possible immediate size.
24406 (*load_zeroextendqisi_update): Likewise.
24407 (*load_signextendqisi_update): Likewise.
24408 (*loadhi_update): Likewise.
24409 (*load_zeroextendhisi_update): Likewise.
24410 (*load_signextendhisi_update): Likewise.
24411 (*loadsi_update): Likewise.
24412 (*loadsf_update): Likewise.
24413
24414 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
24415
24416 * config/i386/predicates.md (constm1_operand): Fix comparison.
24417
24418 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
24419
24420 * testsuite/gcc.target/arc/ieee_eq.c: New test.
24421
24422 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
24423
24424 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
24425 remaining SH5 related settings.
24426 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
24427 shmedia_prepare_call_address): Delete.
24428 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
24429 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
24430 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
24431 UNSUPPORTED_SH2A): Remove m5 checks.
24432 (sh_divide_strategy_e): Remove SH5 division strategies.
24433 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
24434 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
24435
24436 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24437
24438 * config/s390/s390.c (s390_rtx_costs): Update documentation.
24439
24440 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24441
24442 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
24443 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
24444 Change lder to ldr.
24445 * config/s390/vector.md ("mov<mode>"): Likewise.
24446
24447 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
24448
24449 * config/s390/constraints.md ("U", "W"): Invoke
24450 s390_mem_constraint with "ZR" and "ZT".
24451 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
24452 addresses when using LRA. Accept also short displacements for S
24453 and T constraints. Do not check for long displacement target for
24454 S and T constraints.
24455 (s390_mem_constraint): Remove handling of U and W constraints.
24456 * config/s390/s390.md (various patterns): Remove the short
24457 displacement constraints (Q and R) if a long displacement
24458 constraint is present. Add longdisp as required CPU capability.
24459 * config/s390/vector.md: Likewise.
24460 * config/s390/vx-builtins.md: Likewise.
24461
24462 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
24463
24464 PR target/60040
24465 * reload1.c (reload): Call finish_spills before
24466 restarting reload loop. Skip select_reload_regs
24467 if update_eliminables_and_spill returns true.
24468
24469 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
24470
24471 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
24472 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
24473 (umulhisi3_imm): Update predicates and constraint letters.
24474 (umulhisi3_reg): Declare instruction as commutative.
24475 * config/arc/constraints.md (J12, J16): New constraints.
24476 * config/arc/predicates.md (short_unsigned_const_operand): New
24477 predicate.
24478 (arc_short_operand): Likewise.
24479 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
24480
24481 2016-04-29 Richard Biener <rguenther@suse.de>
24482
24483 PR tree-optimization/13962
24484 PR tree-optimization/65686
24485 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
24486 * tree-ssa-alias.c (ptrs_compare_unequal): New function
24487 using PTA to compare pointers.
24488 * match.pd: Add pattern for pointer equality compare simplification
24489 using ptrs_compare_unequal.
24490
24491 2016-04-29 Richard Biener <rguenther@suse.de>
24492
24493 * stor-layout.c (layout_type): Do not build a pointer-to-element
24494 type for arrays.
24495
24496 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
24497
24498 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
24499 Use SWI mode iterator. Use general_reg_operand predicate.
24500 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
24501 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
24502 predicates.
24503
24504 2016-04-29 Jakub Jelinek <jakub@redhat.com>
24505
24506 PR middle-end/70843
24507 * fold-const.c (operand_equal_p): Don't verify hash value equality
24508 if arg0 == arg1.
24509 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
24510 and OMP_CLAUSE.
24511
24512 2016-04-28 Jakub Jelinek <jakub@redhat.com>
24513
24514 PR target/70858
24515 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
24516 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
24517 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
24518 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
24519 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
24520
24521 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
24522
24523 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
24524 to info. Don't initialize separate fields to 0. Clean up
24525 formatting a bit.
24526
24527 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
24528
24529 * config/i386/i386.md (peephole2s for operations with memory inputs):
24530 Use SWI mode iterator.
24531 (peephole2s for operations with memory outputs): Ditto.
24532 Do not check for stack checking probe.
24533
24534 (probe_stack): Remove expander.
24535
24536 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
24537 Andrew Burgess <andrew.burgess@embecosm.com>
24538
24539 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
24540 operands as 32-bits.
24541
24542 2016-04-28 Jason Merrill <jason@redhat.com>
24543
24544 * gdbinit.in: Skip line-map.h.
24545
24546 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
24547 Andrew Burgess <andrew.burgess@embecosm.com>
24548
24549 * config/arc/arc.c (arc_conditional_register_usage): Take
24550 TARGET_RRQ_CLASS into account.
24551 (arc_print_operand): Support printing 'p' and 's' operands.
24552 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
24553 as 0.
24554 (TARGET_RRQ_CLASS): Define.
24555 (IS_POWEROF2_OR_0_P): Define.
24556 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
24557 alternatives.
24558 (*tst_movb): New define_insn.
24559 (*tst): Avoid recognition if it could prevent '*tst_movb'
24560 combination; replace c/CnL with c/Chs alternative.
24561 (*tst_bitfield_tst): New define_insn.
24562 (*tst_bitfield_asr): New define_insn.
24563 (*tst_bitfield): New define_insn.
24564 (andsi3_i): Add Rrq variant.
24565 (extzv): New define_expand.
24566 (insv): New define_expand.
24567 (*insv_i): New define_insn.
24568 (*movb): New define_insn.
24569 (*movb_signed): New define_insn.
24570 (*movb_high): New define_insn.
24571 (*movb_high_signed): New define_insn.
24572 (*movb_high_signed + 1): New define_split pattern.
24573 (*mrgb): New define_insn.
24574 (*mrgb + 1): New define_peephole2 pattern.
24575 (*mrgb + 2): New define_peephole2 pattern.
24576 * config/arc/arc.opt (mbitops): New option for nps400, uses
24577 TARGET_NPS_BITOPS_DEFAULT.
24578 * config/arc/constraints.md (q): Make register class conditional.
24579 (Rrq): New register constraint.
24580 (Chs): New constraint.
24581 (Clo): New constraint.
24582 (Chi): New constraint.
24583 (Cbf): New constraint.
24584 (Cbn): New constraint.
24585 (C18): New constraint.
24586 (Cbi): New constraint.
24587
24588 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
24589
24590 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
24591 dst->popcount.
24592 (bitmap_intersection_of_preds): Ditto.
24593 (bitmap_union_of_succs): Ditto.
24594 (bitmap_union_of_preds): Ditto.
24595 * sbitmap.c (do_popcount): Delete.
24596 (BITMAP_DEBUGGING): Delete.
24597 (sbitmap_verify_popcount): Delete.
24598 (sbitmap_alloc): Don't initialize the popcount field.
24599 (sbitmap_alloc_with_popcount): Delete.
24600 (sbitmap_resize): Don't resize the popcount array.
24601 (sbitmap_vector_alloc): Don't initialize the popcount field.
24602 (bitmap_copy): Don't copy the popcount array.
24603 (bitmap_clear): Don't clear the popcount array.
24604 (bitmap_clear): Delete the popcount array handling.
24605 (bitmap_ior_and_compl): Delete the popcount assert.
24606 (bitmap_not): Ditto.
24607 (bitmap_and_compl): Ditto.
24608 (bitmap_and): Delete the popcount array handling.
24609 (bitmap_xor): Ditto.
24610 (bitmap_ior): Ditto.
24611 (bitmap_or_and): Delete the popcount assert.
24612 (bitmap_and_or): Ditto.
24613 (popcount_table): Delete.
24614 (sbitmap_elt_popcount): Delete.
24615 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
24616 (bitmap_set_bit): Delete the popcount assert.
24617 (bitmap_clear_bit): Ditto.
24618 (sbitmap_free): Don't free the popcount array.
24619 (sbitmap_alloc_with_popcount): Delete declaration.
24620 (sbitmap_popcount): Ditto.
24621
24622 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
24623 Andrew Burgess <andrew.burgess@embecosm.com>
24624
24625 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
24626 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
24627 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
24628 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
24629 * config/arc/arc.opt (mcmem): New option.
24630 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
24631 supply length for r/m alternative.
24632 (*extendqisi2_ac): Likewise.
24633 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
24634 r/Uex alternative.
24635 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
24636 (movhi_insn): Likewise.
24637 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
24638 (*zero_extendqihi2_i): Add r/Ucm alternative.
24639 (*zero_extendqisi2_ac): Likewise.
24640 (*zero_extendhisi2_i): Likewise.
24641 * config/arc/constraints.md (Uex): New memory constraint.
24642 (Ucm): New define_constraint.
24643 * config/arc/predicates.md (long_immediate_loadstore_operand):
24644 Return 0 for MEM with cmem_address address.
24645 (cmem_address_0): New predicates.
24646 (cmem_address_1): Likewise.
24647 (cmem_address_2): Likewise.
24648 (cmem_address): Likewise.
24649
24650 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
24651
24652 * config/rs6000/rs6000.c (machine_function): Rename
24653 insn_chain_scanned_p to spe_insn_chain_scanned_p.
24654 (rs6000_stack_info): Adjust.
24655
24656 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
24657 Andrew Burgess <andrew.burgess@embecosm.com>
24658
24659 * config/arc/constraints.md (Usd): Convert to define_constraint.
24660 (Us<): Likewise.
24661 (Us>): Likewise.
24662
24663 2016-04-28 Jakub Jelinek <jakub@redhat.com>
24664
24665 PR target/70821
24666 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
24667 Add new peephole2 where the first insn is *mov<mode>_or instead of
24668 *mov<mode>_internal.
24669
24670 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
24671
24672 * tracer.c (bb_seen): Make static.
24673
24674 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
24675
24676 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
24677 support, setup defaults.
24678 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
24679 * config/arc/arc.c (arc_init): Add NPS400 support.
24680 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
24681 (TARGET_ARC700): NPS400 is also an ARC700.
24682 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
24683
24684 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
24685
24686 PR target/70668
24687 * config/nds32/nds32.md (casesi): Don't access the operands array
24688 out of bounds.
24689
24690 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
24691
24692 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
24693 (or $-1,reg peephole2): Ditto.
24694 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
24695
24696 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
24697
24698 * doc/extend.texi (Common Function Attributes) [optimize]:
24699 Discourage use of the optimize attribute.
24700
24701 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
24702
24703 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
24704 special case builtin.
24705 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
24706 ALTIVEC_BUILTIN_VEC_ADDE.
24707 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
24708 support for ALTIVEC_BUILTIN_VEC_ADDE.
24709 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
24710 for __builtin_vec_adde.
24711
24712 2016-04-28 Jakub Jelinek <jakub@redhat.com>
24713
24714 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
24715 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
24716
24717 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24718
24719 PR testsuite/70595
24720 * doc/sourcebuild.texi (Effective-Target Keywords, Other
24721 attributes): Document cilkplus_runtime.
24722
24723 2016-04-28 Martin Jambor <mjambor@suse.cz>
24724
24725 * tree-cfg.c (verify_expr): Verify that local declarations belong to
24726 this function. Call verify_expr on MEM_REFs and bases of other
24727 handled_components.
24728
24729 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24730
24731 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
24732 for WORD_REGISTER_OPERATIONS to runtime check.
24733
24734 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
24735
24736 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
24737
24738 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
24739
24740 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
24741 big-endian compilation.
24742 * config/arc/arc.md (addf3): Likewise.
24743 (subdf3): Likewise.
24744 (muldf3): Likewise.
24745
24746 2016-04-28 Richard Biener <rguenther@suse.de>
24747
24748 PR tree-optimization/70840
24749 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
24750 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
24751 Mark x * pow(x,c) -> pow(x,c+1) commutative.
24752 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
24753
24754 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24755
24756 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
24757 and explain why in a comment.
24758
24759 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
24760
24761 * config/arc/arc.md (cpu_facility): Add fpx variant.
24762 (subdf3): Prohibit use reverse sub when assist operations option
24763 is enabled.
24764 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
24765 instructions only when FPX is enabled.
24766 * testsuite/gcc.target/arc/trsub.c: New test.
24767
24768 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
24769
24770 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
24771 mult_operator when calculating "type" attribute.
24772 (*fop_<mode>_1_i387): Ditto.
24773 (*fop_xf_1_i387): Ditto.
24774 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
24775 Use std::swap to swap operands. Use RTL expressions to generate
24776 converted pattern.
24777
24778 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
24779 Joern Rennecke <joern.rennecke@embecosm.com>
24780
24781 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
24782 declaration.
24783 (emit_pic_move): Remove.
24784 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
24785 * config/arc/arc.c (emit_pic_move): Removed.
24786 (TARGET_HAVE_TLS): Define.
24787 (arc_conditional_register_usage): Test for arc_tp_regno.
24788 (arc_print_operand, arc_print_operand_address): Handle TLS
24789 unspecs.
24790 (arc_needs_pcl_p): New function.
24791 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
24792 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
24793 (arc_raw_symbolic_reference_mentioned_p): Likewise.
24794 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
24795 (arc_legitimize_tls_address): Likewise.
24796 (DTPOFF_ZERO_SYM): Define.
24797 (arc_legitimize_pic_address): Make it static, handle TLS cases.
24798 (arc_output_pic_addr_const): Print TLS unspecs.
24799 (prepare_pic_move): New function, replaces emit_pic_move.
24800 (arc_legitimate_constant_p): Handle TLS unspecs.
24801 (arc_legitimate_address_p): Likewise.
24802 (arc_rewrite_small_data_p): Use assert for TLS constants.
24803 (prepare_move_operands): Use prepare_pic_move.
24804 (arc_legitimize_address): Legitimize tls addresses.
24805 (arc_epilogue_uses): Check for arc_tp_regno.
24806 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
24807 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
24808 Define.
24809 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
24810 Likewise.
24811 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
24812 %(arc_tls_extra_start_spec).
24813 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
24814 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
24815 (EH_USES): Define.
24816 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
24817 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
24818 (UNSPEC_TLS_OFF): Add.
24819 (R10_REG): Define.
24820 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
24821 (get_thread_pointersi): New patterns.
24822 * config/arc/arc.opt (mtp-regno): New option.
24823 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
24824 (move_dest_operand): Likewise.
24825 * configure: Regenerate.
24826 * configure.ac: Add arc*-*-* case to test for tls.
24827 * doc/invoke.texi (ARC options): Document mtp-regno.
24828
24829 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
24830
24831 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
24832 the new ARC HS SIMD instructions.
24833 (arc_preferred_simd_mode): New function.
24834 (arc_autovectorize_vector_sizes): Likewise.
24835 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
24836 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
24837 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
24838 (arc_init_builtins): Add new SIMD builtin types.
24839 (arc_split_move): Handle 64 bit vector moves.
24840 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
24841 (TARGET_PLUS_QMACW): Define.
24842 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
24843 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
24844 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
24845 (VSUBADD4H): New builtins.
24846 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
24847 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
24848
24849 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
24850 Matthias Klose <doko@debian.org>
24851
24852 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
24853
24854 2016-04-28 Richard Biener <rguenther@suse.de>
24855
24856 PR middle-end/70777
24857 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
24858 canonicalization.
24859
24860 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
24861
24862 * common/config/sh/sh-common.c: Remove SH5 support.
24863 * config/sh/constraints.md: Likewise.
24864 * config/sh/config/sh/elf.h: Likewise.
24865 * config/sh/linux.h: Likewise.
24866 * config/sh/netbsd-elf.h: Likewise.
24867 * config/sh/predicates.md: Likewise.
24868 * config/sh/sh-c.c: Likewise.
24869 * config/sh/sh-protos.h: Likewise.
24870 * config/sh/sh.c: Likewise.
24871 * config/sh/sh.h: Likewise.
24872 * config/sh/sh.md: Likewise.
24873 * config/sh/sh.opt: Likewise.
24874 * config/sh/sync.md: Likewise.
24875 * config/sh/sh64.h: Delete.
24876 * config/sh/shmedia.h: Likewise.
24877 * config/sh/shmedia.md: Likewise.
24878 * config/sh/sshmedia.h: Likewise.
24879 * config/sh/t-netbsd-sh5-64: Likewise.
24880 * config/sh/t-sh64: Likewise.
24881 * config/sh/ushmedia.h: Likewise.
24882
24883 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
24884
24885 * config/i386/i386.md (sign_extend to memory peephole2s): Use
24886 general_reg_operand instead of register_operand predicate.
24887
24888 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24889
24890 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
24891
24892 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
24893
24894 * match.pd (A - B > A, A + B < A): New transformations.
24895
24896 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
24897
24898 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
24899 which defaults to true. Emit an outer pair of parentheses only if
24900 EMIT_PARENS. When continuing a chain of && or || (or & or |),
24901 don't emit parentheses for the right-hand operand.
24902
24903 2016-04-27 Jeff Law <law@redhat.com>
24904
24905 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
24906
24907 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24908
24909 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
24910 (altivec_lvx_<mode>_internal): Document.
24911 (altivec_lvx_<mode>_2op): New define_insn.
24912 (altivec_lvx_<mode>_1op): Likewise.
24913 (altivec_lvx_<mode>_2op_si): Likewise.
24914 (altivec_lvx_<mode>_1op_si): Likewise.
24915 (altivec_stvx_<mode>): Remove.
24916 (altivec_stvx_<mode>_internal): Document.
24917 (altivec_stvx_<mode>_2op): New define_insn.
24918 (altivec_stvx_<mode>_1op): Likewise.
24919 (altivec_stvx_<mode>_2op_si): Likewise.
24920 (altivec_stvx_<mode>_1op_si): Likewise.
24921 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24922 Expand vec_ld and vec_st during parsing.
24923 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
24924 changes.
24925 (altivec_expand_stvx_be): Likewise.
24926 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
24927 address-masking behavior in RTL.
24928 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
24929 address-masking behavior in RTL.
24930 (altivec_expand_builtin): Change builtin code arguments for calls
24931 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
24932 (insn_is_swappable_p): Avoid incorrect swap optimization in the
24933 presence of lvx/stvx patterns.
24934 (alignment_with_canonical_addr): New function.
24935 (alignment_mask): Likewise.
24936 (find_alignment_op): Likewise.
24937 (recombine_lvx_pattern): Likewise.
24938 (recombine_stvx_pattern): Likewise.
24939 (recombine_lvx_stvx_patterns): Likewise.
24940 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
24941 stvx patterns from expand.
24942 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
24943 expansions.
24944 (vector_altivec_store_<mode>): Likewise.
24945
24946 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
24947
24948 * config/aarch64/aarch64.md
24949 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
24950 remove the "fp" attributes.
24951 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
24952 add the "simd" attributes.
24953 (*movdf_aarch64): Likewise.
24954 (*movtf_aarch64): Remove the "fp" attributes.
24955 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
24956 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
24957
24958 2016-04-27 David Malcolm <dmalcolm@redhat.com>
24959
24960 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
24961 rtx to rtx_code_label *.
24962 * rtl.h (maybe_set_first_label_num): Likewise.
24963
24964 2016-04-27 David Malcolm <dmalcolm@redhat.com>
24965
24966 * df-core.c (df_add_problem): Make the problem param be const.
24967 (df_remove_problem): Make local "problem" be const.
24968 * df-problems.c (problem_RD): Make const.
24969 (problem_LR): Likewise.
24970 (problem_LIVE): Likewise.
24971 (problem_MIR): Likewise.
24972 (problem_CHAIN): Likewise.
24973 (problem_WORD_LR): Likewise.
24974 (problem_NOTE): Likewise.
24975 (problem_MD): Likewise.
24976 * df-scan.c (problem_SCAN): Likewise.
24977 * df.h (struct df_problem): Make field "dependent_problem" be
24978 const.
24979 (struct dataflow): Likewise for field "problem".
24980 (df_add_problem): Make param const.
24981
24982 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
24983
24984 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
24985 inter-unit moves to/from vector registers are enabled. Do not disable
24986 for TARGET_MMX.
24987
24988 2016-04-27 David Malcolm <dmalcolm@redhat.com>
24989
24990 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
24991 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
24992 #define to...
24993 (enum df_problem_id): ...this new enum.
24994 (struct df_problem): Convert field "id" from "int" to
24995 enum df_problem_id.
24996
24997 2016-04-27 David Malcolm <dmalcolm@redhat.com>
24998
24999 * rtl.def: Update comment for "things in the instruction chain" to
25000 reflect the removal of the leading "i" field for INSN_UID in
25001 r210360. Fix bogus apostrophe.
25002
25003 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
25004
25005 * config/i386/i386.md
25006 (lea arith with mem operand + setcc peephole2): Set operator mode.
25007
25008 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
25009
25010 PR target/70155
25011 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
25012 (dimode_scalar_to_vector_candidate_p): This.
25013 (timode_scalar_to_vector_candidate_p): New function.
25014 (scalar_to_vector_candidate_p): Likewise.
25015 (timode_check_non_convertible_regs): Likewise.
25016 (timode_remove_non_convertible_regs): Likewise.
25017 (remove_non_convertible_regs): Likewise.
25018 (remove_non_convertible_regs): Renamed to ...
25019 (dimode_remove_non_convertible_regs): This.
25020 (scalar_chain::~scalar_chain): Make it virtual.
25021 (scalar_chain::compute_convert_gain): Make it pure virtual.
25022 (scalar_chain::mark_dual_mode_def): Likewise.
25023 (scalar_chain::convert_insn): Likewise.
25024 (scalar_chain::convert_registers): Likewise.
25025 (scalar_chain::add_to_queue): Make it protected.
25026 (scalar_chain::emit_conversion_insns): Likewise.
25027 (scalar_chain::replace_with_subreg): Likewise.
25028 (scalar_chain::replace_with_subreg_in_insn): Likewise.
25029 (scalar_chain::convert_op): Likewise.
25030 (scalar_chain::convert_reg): Likewise.
25031 (scalar_chain::make_vector_copies): Likewise.
25032 (scalar_chain::convert_registers): New pure virtual function.
25033 (class dimode_scalar_chain): New class.
25034 (class timode_scalar_chain): Likewise.
25035 (scalar_chain::mark_dual_mode_def): Renamed to ...
25036 (dimode_scalar_chain::mark_dual_mode_def): This.
25037 (timode_scalar_chain::mark_dual_mode_def): New function.
25038 (timode_scalar_chain::convert_insn): Likewise.
25039 (dimode_scalar_chain::convert_registers): Likewise.
25040 (scalar_chain::compute_convert_gain): Renamed to ...
25041 (dimode_scalar_chain::compute_convert_gain): This.
25042 (scalar_chain::replace_with_subreg): Renamed to ...
25043 (dimode_scalar_chain::replace_with_subreg): This.
25044 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
25045 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
25046 (scalar_chain::make_vector_copies): Renamed to ...
25047 (dimode_scalar_chain::make_vector_copies): This.
25048 (scalar_chain::convert_reg): Renamed to ...
25049 (dimode_scalar_chain::convert_reg ): This.
25050 (scalar_chain::convert_op): Renamed to ...
25051 (dimode_scalar_chain::convert_op): This.
25052 (scalar_chain::convert_insn): Renamed to ...
25053 (dimode_scalar_chain::convert_insn): This.
25054 (scalar_chain::convert): Call convert_registers.
25055 (convert_scalars_to_vector): Change to scalar_chain pointer to
25056 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
25057 in 32-bit mode. Delete scalar_chain pointer. Call
25058 free_dominance_info in 64-bit mode.
25059 (pass_stv::gate): Remove TARGET_64BIT check.
25060 (ix86_option_override): Put the 64-bit STV pass before the CSE
25061 pass.
25062
25063 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
25064
25065 * dwarf2out.h (struct dw_loc_descr_node): Remove the
25066 dw_loc_frame_offset field.
25067 * dwarf2out.c (new_loc_descr): Likewise.
25068 (resolve_args_picking_1): Turn the VISITED hash set into a
25069 FRAME_OFFSET hash map. Use it to associate a frame offset to
25070 visited nodes. Remove uses of the CHECKING_P macro.
25071 (resolve_args_picking): Update call to resolve_args_picking_1.
25072
25073 2016-04-27 Martin Liska <mliska@suse.cz>
25074
25075 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
25076 (free_loop_data): Release vuses of groups.
25077
25078 2016-04-27 Bin Cheng <bin.cheng@arm.com>
25079
25080 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
25081 instead of redundant use_id and boolean have_use_for.
25082 (struct iv_use): Change sub_id into group_id. Remove field next.
25083 Move fields: related_cands, n_map_members, cost_map and selected
25084 to ...
25085 (struct iv_group): ... here. New structure.
25086 (struct iv_common_cand): Use structure declaration directly.
25087 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
25088 (MAX_CONSIDERED_USES): Rename macro to ...
25089 (MAX_CONSIDERED_GROUPS): ... here.
25090 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
25091 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
25092 (dump_uses): Rename to ...
25093 (dump_groups): ... here. Update all uses.
25094 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
25095 (find_induction_variables): Refactor format of dump information.
25096 (record_sub_use): Delete.
25097 (record_use): Update all uses.
25098 (record_group): New function.
25099 (record_group_use, find_interesting_uses_op): Call above functions.
25100 Update all uses.
25101 (find_interesting_uses_cond): Ditto.
25102 (group_compare_offset): New function.
25103 (split_all_small_groups): Rename to ...
25104 (split_small_address_groups_p): ... here. Update all uses.
25105 (split_address_groups): Update all uses.
25106 (find_interesting_uses): Refactor format of dump information.
25107 (add_candidate_1): Update all uses. Remove redundant check on iv,
25108 base and step.
25109 (add_candidate, record_common_cand): Remove redundant assert.
25110 (add_iv_candidate_for_biv): Update use.
25111 (add_iv_candidate_derived_from_uses): Update all uses.
25112 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
25113 (alloc_use_cost_map): Ditto.
25114 (set_use_iv_cost, get_use_iv_cost): Rename to ...
25115 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
25116 (determine_use_iv_cost_generic): Ditto.
25117 (determine_group_iv_cost_generic): Ditto.
25118 (determine_use_iv_cost_address): Ditto.
25119 (determine_group_iv_cost_address): Ditto.
25120 (determine_use_iv_cost_condition): Ditto.
25121 (determine_group_iv_cost_cond): Ditto.
25122 (determine_use_iv_cost): Ditto.
25123 (determine_group_iv_cost): Ditto.
25124 (set_autoinc_for_original_candidates): Update all uses.
25125 (find_iv_candidates): Update all uses. Refactor dump information.
25126 (determine_use_iv_costs): Ditto.
25127 (determine_iv_costs): Ditto.
25128 (iv_ca_cand_for_use): Rename to ...
25129 (iv_ca_cand_for_group): ... here. Update all uses.
25130 (iv_ca_add_use, iv_ca_add_group): Ditto.
25131 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
25132 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
25133 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
25134 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
25135 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
25136 (create_new_iv, adjust_iv_update_pos): Ditto.
25137 (rewrite_use_address): Delete.
25138 (rewrite_use_address_1): Rename to ...
25139 (rewrite_use_address): ... here.
25140 (rewrite_use_compare): Update all uses.
25141 (rewrite_use): Delete.
25142 (rewrite_uses): Rename to ...
25143 (rewrite_groups): ... here. Update all uses.
25144 (remove_unused_ivs, free_loop_data): Update all uses.
25145 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
25146
25147 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25148
25149 * rtlanal.c (nonzero_bits1): Convert preprocessor check
25150 for WORD_REGISTER_OPERATIONS to runtime check.
25151
25152 2016-04-27 Richard Biener <rguenther@suse.de>
25153
25154 PR ipa/70760
25155 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
25156 aggregate_value_p to determine if a function result is
25157 returned by reference.
25158 (ipa_pta_execute): Functions having their address taken are
25159 not automatically nonlocal.
25160
25161 2016-04-27 Jakub Jelinek <jakub@redhat.com>
25162
25163 PR sanitizer/70683
25164 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
25165 * fold-const.c (operand_equal_p): If flag_checking and
25166 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
25167 and if it returns non-zero, assert iterative_hash_expr on both
25168 args is the same.
25169
25170 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
25171
25172 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
25173
25174 2016-04-27 Nick Clifton <nickc@redhat.com>
25175
25176 PR middle-end/49889
25177 * varasm.c (merge_weak): Generate an error if an attempt is made
25178 to convert a non-weak static function into a weak, public function.
25179
25180 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25181
25182 * params.def (MAX_PARTITION_SIZE): New param.
25183 * doc/invoke.texi: Document lto-max-partition.
25184
25185 2016-04-27 Richard Biener <rguenther@suse.de>
25186
25187 PR ipa/70785
25188 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
25189 function cummulating used_from_other_partition, externally_visible
25190 and force_output from aliases.
25191 (refered_from_nonlocal_var): Likewise.
25192 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
25193 node flags properly.
25194
25195 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
25196
25197 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
25198 (-Wmemset-elt-size): New item.
25199
25200 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
25201
25202 PR ada/70759
25203 * stor-layout.h (internal_reference_types): Delete.
25204 * stor-layout.c (reference_types_internal): Likewise.
25205 (internal_reference_types): Likewise.
25206 (layout_type) <REFERENCE_TYPE>: Adjust.
25207
25208 2016-04-27 Jakub Jelinek <jakub@redhat.com>
25209
25210 PR sanitizer/70683
25211 * tree.h (inchash::add_expr): Add FLAGS argument.
25212 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
25213 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
25214 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
25215 Formatting fix. Adjust recursive calls. For tcc_comparison,
25216 if swap_tree_comparison (code) is smaller than code, hash that
25217 and arguments in the other order. Hash CONVERT_EXPR the same
25218 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
25219 of ADDR_EXPR of decl as the decl itself. Add or remove
25220 OEP_ADDRESS_OF from recursive flags as needed. For
25221 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
25222 operands commutatively and only the third one normally.
25223 For internal CALL_EXPR hash in CALL_EXPR_IFN.
25224
25225 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
25226
25227 * config/rtems.h (LIB_SPEC): Add -latomic.
25228
25229 2016-04-27 Joel Sherrill <joel@rtems.org>
25230
25231 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
25232 xilink.ld and flags not relevant to RTEMS.
25233
25234 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25235
25236 * toplev.c (backend_init_target): Avoid calling init_reload when using
25237 LRA.
25238
25239 2016-04-26 Jakub Jelinek <jakub@redhat.com>
25240
25241 * reorg.c (try_merge_delay_insns): Declare i and j inside the
25242 for loops rather than one for the whole function.
25243
25244 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
25245
25246 * match.pd (X + CST CMP X): New transformation.
25247
25248 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
25249
25250 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
25251 * fold-const.c (fold_binary_loc): Remove 2 transformations
25252 superseded by match.pd.
25253 * match.pd (x+x -> x*2): Generalize to integers.
25254
25255 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
25256
25257 * config/i386/i386.md (operation on memory peephole): Duplicate an
25258 existing peephole and adapt it to match lea rather than an operation
25259 that clobbers CC.
25260
25261 PR rtl-optimization/57193
25262 * opts.c (default_options_table): Add OPT_frename_registers at -O2
25263 and above.
25264 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
25265
25266 2016-04-26 Bin Cheng <bin.cheng@arm.com>
25267
25268 * tree-if-conv.c (any_pred_load_store): New static variable.
25269 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
25270 any_pred_load_store instead of and_mask_load_store.
25271 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
25272 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
25273 (combine_blocks, tree_if_conversion): Ditto.
25274
25275 2016-04-26 Bin Cheng <bin.cheng@arm.com>
25276
25277 PR tree-optimization/70771
25278 PR tree-optimization/70775
25279 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
25280 virtual PHI nodes. Delete parameter.
25281 (if_convertible_loop_p_1): Delete argument to above function.
25282 (predicate_all_scalar_phis): Delete code handling single-argument
25283 PHIs.
25284 (tree_if_conversion): Mark and update virtual SSA.
25285
25286 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25287
25288 PR target/61821
25289 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
25290 (x86_elf_aligned_common): Rename to ...
25291 (x86_elf_aligned_decl_common): ... this.
25292 Add decl arg. Switch to .lbss for largecomm object. Use
25293 LARGECOMM_SECTION_ASM_OP.
25294 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
25295 renaming.
25296 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
25297 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
25298 Pass new decl arg.
25299 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
25300 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
25301
25302 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25303
25304 PR target/59407
25305 * config/i386/i386.c (SECTION_LARGE): Define.
25306 (x86_64_elf_select_section): Set it for large data/bss sections.
25307 Only clear SECTION_WRITE for .lrodata.
25308 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
25309 data/bss sections.
25310 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
25311 * varasm.c (default_elf_asm_named_section): Grow flagchars.
25312 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
25313 SECTION_MACH_DEP.
25314 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
25315 * doc/tm.texi: Regenerate.
25316
25317 2016-04-26 Jakub Jelinek <jakub@redhat.com>
25318
25319 PR bootstrap/70704
25320 * configure.ac (--enable-checking): Document extra flag, for
25321 non-release builds default to --enable-checking=yes,extra.
25322 If misc checking and extra checking, define CHECKING_P to 2 instead
25323 of 1.
25324 * common.opt (fchecking=): Add.
25325 * doc/invoke.texi (-fchecking=): Document.
25326 * doc/install.texi: Document --enable-checking changes.
25327 * configure: Regenerated.
25328 * config.in: Regenerated.
25329
25330 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
25331
25332 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
25333 attribute instead of which_alternative.
25334 * config/i386/sse.md (*mov<mode>_internal): Ditto.
25335 Use EXT_REX_SSE_REG_P where appropriate.
25336
25337 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
25338
25339 * config/i386/predicates.md (const0_operand): Do not match
25340 const_wide_int code.
25341 (const1_operand): Ditto.
25342
25343 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
25344
25345 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
25346 for SSE constm1 operands and TARGET_AVX512VL.
25347 (*movti_internal): Ditto.
25348 (*mov<mode>_or): Use constm1_operand predicate.
25349 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
25350 for SSE vector_all_ones operands and TARGET_AVX512VL.
25351 * config/i386/predicates.md (constm1_operand): New predicate.
25352 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
25353 emission of constant -1 load.
25354
25355 2016-04-25 Jason Merrill <jason@redhat.com>
25356
25357 * gdbinit.in: Skip is-a.h.
25358
25359 * attribs.c (register_scoped_attributes): Fix logic.
25360 * attribs.h: Declare register_scoped_attributes.
25361
25362 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25363
25364 * config/rs6000/rs6000-builtin.def: Correct pasto error for
25365 stxvd2x and stxvw4x built-in functions.
25366
25367 2016-04-25 DJ Delorie <dj@redhat.com>
25368
25369 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
25370 (ashrhi3): Likewise.
25371 (lshrhi3): Likewise.
25372
25373 2016-04-25 Richard Biener <rguenther@suse.de>
25374
25375 PR tree-optimization/70780
25376 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
25377 wasn't visited yet.
25378 (compute_antic): Mark blocks with abnormal preds as visited as
25379 they have a final empty antic-in solution already.
25380
25381 2016-04-25 Michael Collison <michael.collison@linaro.org>
25382
25383 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
25384
25385 2016-04-25 Michael Collison <michael.collison@linaro.org>
25386
25387 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
25388 mode is VQI to improve mixed mode vectorization.
25389 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
25390 define_insn to match low half of signed vaddw.
25391 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
25392 define_insn to match high half of signed vaddw.
25393 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
25394 define_insn to match low half of unsigned vaddw.
25395 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
25396 define_insn to match high half of unsigned vaddw.
25397 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
25398 (arm_simd_check_vect_par_cnst_half_p): Likewise.
25399 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
25400 for new function.
25401 (arm_simd_check_vect_par_cnst_half_p): Likewise.
25402 * config/arm/predicates.md (vect_par_constant_high): Support
25403 big endian and simplify by calling
25404 arm_simd_check_vect_par_cnst_half
25405 (vect_par_constant_low): Likewise.
25406
25407 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
25408
25409 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
25410 predicate for operand 2.
25411
25412 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
25413 H.J. Lu <hongjiu.lu@intel.com>
25414
25415 * config/i386/i386-protos.h (standard_sse_constant_p): Add
25416 machine_mode argument.
25417 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
25418 constm1_rtx operands. For VOIDmode constants, get mode from
25419 pred_mode. Check mode size if the mode is supported by ABI.
25420 (standard_sse_constant_opcode): Do not use standard_constant_p.
25421 Strictly check ABI support for all-ones operands.
25422 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
25423 immediates. Update calls to standard_sse_constant_p.
25424 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
25425 (ix86_rtx_costs): Ditto.
25426 * config/i386/i386.md (*movxi_internal_avx512f): Use
25427 nonimmediate_or_sse_const_operand instead of vector_move_operand.
25428 Use (v,BC) alternative instead of (v,C). Use register_operand
25429 checks instead of MEM_P.
25430 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
25431 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
25432 isa attribute. Use register_operand checks instead of MEM_P.
25433 (*movti_internal): Use nonimmediate_or_sse_const_operand for
25434 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
25435 alternative and corresponding sse2 isa attribute.
25436 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
25437 to standard_sse_constant_p.
25438 (FP constant splitters): Ditto.
25439 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
25440 (C): Ditto.
25441 * config/i386/predicates.md (constm1_operand): Remove.
25442 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
25443 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
25444 vector_all_ones_operand instead of constm1_operand.
25445
25446 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25447
25448 * print-rtl.c (print_rtx_insn_vec): New function.
25449 * print-rtl.h: New prototype.
25450 * store-motion.c (struct st_expr): Make avail_stores a vector.
25451 (st_expr_entry): Adjust.
25452 (free_st_expr_entry): Likewise.
25453 (print_store_motion_mems): Likewise.
25454 (find_moveable_store): Likewise.
25455 (compute_store_table): Likewise.
25456 (delete_store): Likewise.
25457 (build_store_vectors): Likewise.
25458
25459 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25460
25461 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
25462
25463 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25464
25465 * vec.h (vec_safe_contains): New function.
25466 (vec::contains): Likewise.
25467 (vec::begin): Likewise.
25468 (vec::end): Likewise.
25469
25470 2016-04-23 Jakub Jelinek <jakub@redhat.com>
25471
25472 PR sanitizer/70712
25473 * cfgexpand.c (expand_stack_vars): Fix typo.
25474
25475 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
25476
25477 * system.h (list, map, set, vector): Include conditionally.
25478 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
25479 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
25480 * ipa-icf.c (INCLUDE_LIST): Define.
25481 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
25482 * config/sh/sh.c (INCLUDE_VECTOR): Define.
25483 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
25484 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
25485 * cp/logic.cc (INCLUDE_LIST): Define.
25486 * fortran/trans-common.c (INCLUDE_MAP): Define.
25487
25488 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
25489
25490 * auto-profile.c: Remove <string.h> include.
25491 * ipa-icf-gimple.c: Remove <list> include.
25492 * diagnostic.c: Remove <new> include.
25493 * genmatch.c: Likewise.
25494 * pretty-print.c: Likewise.
25495 * toplev.c: Likewise
25496 * c/c-objc-common.c: Likewise.
25497 * cp/error.c: Likewise.
25498 * fortran/error.c: Likewise.
25499
25500 2016-04-22 Richard Biener <rguenther@suse.de>
25501
25502 * lto-streamer-in.c (input_ssa_names): Do not allocate
25503 GIMPLE_NOP for all SSA names.
25504 * lto-streamer-out.c (output_ssa_names): Do not output
25505 SSA names that should have been released.
25506
25507 2016-04-22 Richard Biener <rguenther@suse.de>
25508
25509 PR tree-optimization/70740
25510 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
25511 VDEF.
25512
25513 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
25514
25515 PR target/70750
25516 * config/i386/predicates.md (call_insn_operand): Replace
25517 sibcall_memory_operand with memory_operand.
25518
25519 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
25520
25521 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
25522 has_single_use() tests.
25523 (register_edge_assert_for_1): Likewise.
25524 (find_assert_locations_1): Check the liveness bitmap instead of
25525 checking has_single_use().
25526
25527 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
25528
25529 PR target/70728
25530 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
25531 Extract AVX-512BW constraint from AVX.
25532
25533 2016-04-21 Richard Biener <rguenther@suse.de>
25534
25535 PR tree-optimization/70725
25536 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
25537 for phi_convertible_by_degenerating_args.
25538 (predicate_all_scalar_phis): Handle single-argument PHIs.
25539
25540 2016-04-21 Richard Biener <rguenther@suse.de>
25541
25542 PR middle-end/70747
25543 * fold-const.c (fold_comparison): Return properly typed
25544 constant boolean.
25545
25546 2016-04-21 Bin Cheng <bin.cheng@arm.com>
25547
25548 PR tree-optimization/70715
25549 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
25550 after expanding BASE using expand_simple_operations.
25551
25552 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
25553
25554 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
25555 New transformations.
25556
25557 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
25558
25559 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
25560
25561 2016-04-20 Jan Hubicka <jh@suse.cz>
25562
25563 * ipa-inline.c (can_inline_edge_p): Pass caller info to
25564 ultiimate_alias_target.
25565 (update_callee_keys): Likewise.
25566 (lookup_recursive_calls): Likewise.
25567 (speculation_useful_p): Likewise.
25568
25569 2016-04-20 Jan Hubicka <jh@suse.cz>
25570
25571 PR ipa/70018
25572 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
25573 (set_nothrow_flag_1): ... this; handle interposition correctly;
25574 recurse on aliases and thunks.
25575 (cgraph_node::set_nothrow_flag): New.
25576 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
25577 functions compiled with non-call exceptions that binds to current
25578 def.
25579 (propagate_nothrow): Be safe WRT interposition.
25580 * cgraph.h (set_nothrow_flag): Update prototype.
25581
25582 2016-04-18 Jan Hubicka <jh@suse.cz>
25583
25584 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25585 max_loop_iterations_int.
25586 (tree_unswitch_outer_loop): Likewise.
25587
25588 2016-04-20 Bin Cheng <bin.cheng@arm.com>
25589
25590 PR tree-optimization/69489
25591 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
25592 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
25593 Revise dump message.
25594 (if_convertible_bb_p): Remove check on edge count of basic block's
25595 predecessors.
25596
25597 2016-04-20 Bin Cheng <bin.cheng@arm.com>
25598
25599 PR tree-optimization/56625
25600 PR tree-optimization/69489
25601 * tree-data-ref.h (DR_INNERMOST): New macro.
25602 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
25603 hashing struct innermost_loop_behavior.
25604 (ref_DR_map): Remove.
25605 (innermost_DR_map): New map.
25606 (baseref_DR_map): Revise comment.
25607 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
25608 to innermost_DR_map accroding to its innermost loop behavior.
25609 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
25610 to its innermost loop behavior.
25611 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
25612 Add initialization for innermost_DR_map. Record memory reference
25613 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
25614 have innermost loop behavior.
25615 (if_convertible_loop_p): Remove release for ref_DR_map. Release
25616 innermost_DR_map.
25617
25618 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
25619
25620 * config/i386/i386.md (*lea<mode>_general_1): Rename from
25621 *lea_general_1. Use explicit SWI12 mode interator.
25622 (*lea<mode>_general_2): Rename from *lea_general_2.
25623 Use explicit SWI12 mode interator.
25624 (*lea<mode>_general_3): Rename from *lea_general_3.
25625 Use explicit SWI12 mode interator.
25626 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
25627 Use explicit SWI12 mode interator.
25628 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
25629 Use explicit SWI48 mode interator.
25630
25631 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
25632
25633 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
25634 Short-cut unaligned load and store cases. Handle all integer
25635 vector modes.
25636 (ix86_expand_vector_move_misalign): Short-cut unaligned load
25637 and store cases. Call ix86_avx256_split_vector_move_misalign
25638 directly without checking mode class.
25639
25640 2016-04-20 Andrew Pinski <apinski@cavium.com>
25641 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25642
25643 PR target/64971
25644 * config/aarch64/aarch64.md (sibcall): Force call
25645 address to be DImode for ILP32.
25646 (sibcall_value): Likewise.
25647
25648 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
25649
25650 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
25651
25652 2016-04-20 Richard Biener <rguenther@suse.de>
25653
25654 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
25655 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
25656 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
25657 (maybe_push_res_to_seq): Adjust.
25658 * gimple-fold.c (maybe_build_generic_op): Likewise.
25659
25660 2016-04-20 Marek Polacek <polacek@redhat.com>
25661
25662 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
25663 rather than true.
25664
25665 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
25666
25667 * config/i386/sse.md (vec_unpacks_lo_hi): Always
25668 use kmovw to support AVX512F target.
25669
25670 2016-04-20 Bin Cheng <bin.cheng@arm.com>
25671
25672 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
25673
25674 2016-04-20 Marek Polacek <polacek@redhat.com>
25675
25676 PR tree-optimization/70725
25677 * tree-if-conv.c (is_false_predicate): New function.
25678 (predicate_mem_writes): Use it.
25679
25680 2016-04-20 Richard Biener <rguenther@suse.de>
25681
25682 PR tree-optimization/70726
25683 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
25684 shift amounts from a pattern stmt operand.
25685
25686 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25687
25688 PR target/70674
25689 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
25690 stack_restore_from_fpr pattern when restoring r15.
25691 (s390_optimize_prologue): Strip away the memory barrier in the
25692 parallel when trying to get rid of restore insns.
25693 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
25694 definition for loading the stack pointer from an FPR. Compared to
25695 the normal move insn this pattern includes a full memory barrier.
25696
25697 2016-04-19 Jakub Jelinek <jakub@redhat.com>
25698
25699 PR middle-end/70680
25700 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
25701 implicitly linear or lastprivate iterator on the outer context.
25702
25703 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
25704
25705 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
25706 alignment check.
25707 * config/i386/i386.md (ssememalign): Removed.
25708 * config/i386/sse.md: Remove ssememalign attribute from patterns.
25709
25710 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
25711
25712 PR target/69201
25713 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
25714 const short * to __builtin_ia32_loaddquhi512_mask.
25715 (_mm512_maskz_loadu_epi16): Likewise.
25716 (_mm512_mask_storeu_epi16): Pass short * to
25717 __builtin_ia32_storedquhi512_mask.
25718 (_mm512_mask_loadu_epi8): Pass const char * to
25719 __builtin_ia32_loaddquqi512_mask.
25720 (_mm512_maskz_loadu_epi8): Likewise.
25721 (_mm512_mask_storeu_epi8): Pass char * to
25722 __builtin_ia32_storedquqi512_mask.
25723 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
25724 const double * to __builtin_ia32_loadupd512_mask.
25725 (_mm512_mask_loadu_pd): Likewise.
25726 (_mm512_maskz_loadu_pd): Likewise.
25727 (_mm512_storeu_pd): Pass double * to
25728 __builtin_ia32_storeupd512_mask.
25729 (_mm512_mask_storeu_pd): Likewise.
25730 (_mm512_loadu_ps): Pass const float * to
25731 __builtin_ia32_loadups512_mask.
25732 (_mm512_mask_loadu_ps): Likewise.
25733 (_mm512_maskz_loadu_ps): Likewise.
25734 (_mm512_storeu_ps): Pass float * to
25735 __builtin_ia32_storeups512_mask.
25736 (_mm512_mask_storeu_ps): Likewise.
25737 (_mm512_mask_loadu_epi64): Pass const long long * to
25738 __builtin_ia32_loaddqudi512_mask.
25739 (_mm512_maskz_loadu_epi64): Likewise.
25740 (_mm512_mask_storeu_epi64): Pass long long *
25741 to __builtin_ia32_storedqudi512_mask.
25742 (_mm512_loadu_si512): Pass const int * to
25743 __builtin_ia32_loaddqusi512_mask.
25744 (_mm512_mask_loadu_epi32): Likewise.
25745 (_mm512_maskz_loadu_epi32): Likewise.
25746 (_mm512_storeu_si512): Pass int * to
25747 __builtin_ia32_storedqusi512_mask.
25748 (_mm512_mask_storeu_epi32): Likewise.
25749 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
25750 char * to __builtin_ia32_storedquqi256_mask.
25751 (_mm_mask_storeu_epi8): Likewise.
25752 (_mm256_mask_loadu_epi16): Pass const short * to
25753 __builtin_ia32_loaddquhi256_mask.
25754 (_mm256_maskz_loadu_epi16): Likewise.
25755 (_mm_mask_loadu_epi16): Pass const short * to
25756 __builtin_ia32_loaddquhi128_mask.
25757 (_mm_maskz_loadu_epi16): Likewise.
25758 (_mm256_mask_loadu_epi8): Pass const char * to
25759 __builtin_ia32_loaddquqi256_mask.
25760 (_mm256_maskz_loadu_epi8): Likewise.
25761 (_mm_mask_loadu_epi8): Pass const char * to
25762 __builtin_ia32_loaddquqi128_mask.
25763 (_mm_maskz_loadu_epi8): Likewise.
25764 (_mm256_mask_storeu_epi16): Pass short * to.
25765 __builtin_ia32_storedquhi256_mask.
25766 (_mm_mask_storeu_epi16): Pass short * to.
25767 __builtin_ia32_storedquhi128_mask.
25768 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
25769 const double * to __builtin_ia32_loadupd256_mask.
25770 (_mm256_maskz_loadu_pd): Likewise.
25771 (_mm_mask_loadu_pd): Pass onst double * to
25772 __builtin_ia32_loadupd128_mask.
25773 (_mm_maskz_loadu_pd): Likewise.
25774 (_mm256_mask_storeu_pd): Pass double * to
25775 __builtin_ia32_storeupd256_mask.
25776 (_mm_mask_storeu_pd): Pass double * to
25777 __builtin_ia32_storeupd128_mask.
25778 (_mm256_mask_loadu_ps): Pass const float * to
25779 __builtin_ia32_loadups256_mask.
25780 (_mm256_maskz_loadu_ps): Likewise.
25781 (_mm_mask_loadu_ps): Pass const float * to
25782 __builtin_ia32_loadups128_mask.
25783 (_mm_maskz_loadu_ps): Likewise.
25784 (_mm256_mask_storeu_ps): Pass float * to
25785 __builtin_ia32_storeups256_mask.
25786 (_mm_mask_storeu_ps): ass float * to
25787 __builtin_ia32_storeups128_mask.
25788 (_mm256_mask_loadu_epi64): Pass const long long * to
25789 __builtin_ia32_loaddqudi256_mask.
25790 (_mm256_maskz_loadu_epi64): Likewise.
25791 (_mm_mask_loadu_epi64): Pass const long long * to
25792 __builtin_ia32_loaddqudi128_mask.
25793 (_mm_maskz_loadu_epi64): Likewise.
25794 (_mm256_mask_storeu_epi64): Pass long long * to
25795 __builtin_ia32_storedqudi256_mask.
25796 (_mm_mask_storeu_epi64): Pass long long * to
25797 __builtin_ia32_storedqudi128_mask.
25798 (_mm256_mask_loadu_epi32): Pass const int * to
25799 __builtin_ia32_loaddqusi256_mask.
25800 (_mm256_maskz_loadu_epi32): Likewise.
25801 (_mm_mask_loadu_epi32): Pass const int * to
25802 __builtin_ia32_loaddqusi128_mask.
25803 (_mm_maskz_loadu_epi32): Likewise.
25804 (_mm256_mask_storeu_epi32): Pass int * to
25805 __builtin_ia32_storedqusi256_mask.
25806 (_mm_mask_storeu_epi32): Pass int * to
25807 __builtin_ia32_storedqusi128_mask.
25808 * config/i386/i386-builtin-types.def (PCSHORT): New.
25809 (PINT64): Likewise.
25810 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
25811 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
25812 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
25813 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
25814 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
25815 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
25816 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
25817 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
25818 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
25819 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
25820 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
25821 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
25822 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
25823 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
25824 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
25825 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
25826 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
25827 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
25828 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
25829 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
25830 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
25831 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
25832 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
25833 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
25834 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
25835 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
25836 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
25837 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
25838 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
25839 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
25840 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
25841 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
25842 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
25843 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
25844 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
25845 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
25846 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
25847 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
25848 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
25849 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
25850 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
25851 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
25852 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
25853 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
25854 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
25855 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
25856 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
25857 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
25858 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
25859 use UNSPEC_STOREU.
25860 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
25861 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
25862 load nor store.
25863 (ix86_expand_vector_move_misalign): Likewise.
25864 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
25865 to scalar function prototype for unaligned load/store builtins.
25866 (ix86_expand_special_args_builtin): Updated.
25867 * config/i386/sse.md (UNSPEC_LOADU): Removed.
25868 (UNSPEC_STOREU): Likewise.
25869 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
25870 (VI_ULOADSTORE_F_AVX512VL): Likewise.
25871 (ssescalarsize): Handle V4TI, V2TI and V1TI.
25872 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
25873 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
25874 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
25875 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
25876 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
25877 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
25878 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
25879 (<avx512>_storedqu<mode>_mask): Likewise.
25880 (*sse4_2_pcmpestr_unaligned): Likewise.
25881 (*sse4_2_pcmpistr_unaligned): Likewise.
25882 (*mov<mode>_internal): Renamed to ...
25883 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
25884 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
25885 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
25886 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
25887
25888 2016-04-19 Richard Biener <rguenther@suse.de>
25889
25890 PR tree-optimization/70171
25891 * tree-ssa-phiprop.c: Include stor-layout.h.
25892 (phiprop_insert_phi): Handle the aggregate copy case.
25893 (propagate_with_phi): Likewise.
25894
25895 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
25896
25897 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
25898 instead of simplify_gen_subreg (... , 0).
25899 (ix86_delegitimize_address): Ditto.
25900 (ix86_split_divmod): Ditto.
25901 (ix86_split_copysign_const): Ditto.
25902 (ix86_split_copysign_var): Ditto.
25903 (ix86_expand_args_builtin): Ditto.
25904 (ix86_expand_round_builtin): Ditto.
25905 (ix86_expand_special_args_builtin): Ditto.
25906 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
25907 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
25908 (udivmodqi4): Ditto.
25909 (absneg splitters): Ditto.
25910 (*jcc_bt<mode>_1): Ditto.
25911
25912 2016-04-19 Richard Biener <rguenther@suse.de>
25913
25914 PR tree-optimization/70724
25915 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
25916 restoring out from ...
25917 (free_scc_vn): ... here.
25918 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
25919 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
25920 tail merging.
25921 (pass_fre::execute): Restore SSA info.
25922
25923 2016-04-19 Richard Biener <rguenther@suse.de>
25924
25925 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
25926 * gimple-walk.c (walk_gimple_op): Initialize it.
25927 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
25928 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
25929 remapping SSA names of defs.
25930 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
25931 adjustment.
25932
25933 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
25934
25935 PR middle-end/70689
25936 * lra-constraints.c (equiv_substition_p): New.
25937 (process_alt_operands): Use it.
25938 (swap_operands): Swap it.
25939 (curr_insn_transform): Update it.
25940
25941 2016-04-18 Michael Matz <matz@suse.de>
25942
25943 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
25944 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
25945 * tree-core.h (tree_type_common.align): Use bit-field.
25946 (tree_type_common.spare): New.
25947 (tree_decl_common.off_align): Make smaller.
25948 (tree_decl_common.align): Use bit-field.
25949
25950 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
25951 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
25952 (scan_sharing_clauses): Ditto.
25953 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
25954 (omp_finish_file): Ditto.
25955 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
25956 (layout_decl): Ditto.
25957 (relayout_decl): Ditto.
25958 (finalize_record_size): Use SET_TYPE_ALIGN.
25959 (finalize_type_size): Ditto.
25960 (finish_builtin_struct): Ditto.
25961 (layout_type): Ditto.
25962 (initialize_sizetypes): Ditto.
25963 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
25964 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
25965 (lookup_field_for_decl): Use SET_DECL_ALIGN.
25966 (get_chain_field): Ditto.
25967 (get_trampoline_type): Ditto.
25968 (get_nl_goto_field): Ditto.
25969 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
25970 SET_DECL_ALIGN.
25971 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
25972 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
25973 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
25974 (build_qualified_type): Use SET_TYPE_ALIGN.
25975 (build_aligned_type, build_range_type_1): Ditto.
25976 (build_atomic_base): Ditto.
25977 (build_common_tree_nodes): Ditto.
25978 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
25979 (expand_one_stack_var_at): Ditto.
25980 * coverage.c (build_var): Use SET_DECL_ALIGN.
25981 * except.c (init_eh): Ditto.
25982 * function.c (assign_parm_setup_block): Ditto.
25983 * symtab.c (increase_alignment_1): Ditto.
25984 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
25985 * tree-vect-stmts.c (ensure_base_align): Ditto.
25986 * varasm.c (align_variable): Ditto.
25987 (assemble_variable): Ditto.
25988 (build_constant_desc): Ditto.
25989 (output_constant_def_contents): Ditto.
25990
25991 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
25992 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
25993 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
25994 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
25995 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
25996
25997 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
25998
25999 PR target/70708
26000 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
26001 replace %vmovsd with "%vmovq".
26002 (vec_concatv2df): Likewise.
26003
26004 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
26005
26006 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
26007 (*vec_extractv2si_0): Ditto.
26008 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
26009 (zero_extended_scalar_load_operand splitters): Ditto.
26010 (vec_extract splitters): Ditto.
26011 (*vec_extractv4si_0_zext): Ditto.
26012 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
26013 and lowpart_subreg.
26014 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
26015 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
26016 (*sse4_1_extractps): Use lowpart_subreg.
26017 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
26018
26019 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26020
26021 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
26022 gld requirements.
26023 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
26024 Mention Solaris 11 packaging changes.
26025 Update gas and gld requirements.
26026 Remove reference to pre-Solaris 10 bug.
26027 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
26028 systems and bugs.
26029 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
26030 with cc.
26031
26032 2016-04-17 Jan Hubicka <jh@suse.cz>
26033
26034 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
26035 max_loop_iterations_int.
26036
26037 2016-04-18 Richard Biener <rguenther@suse.de>
26038
26039 PR tree-optimization/43434
26040 * tree-ssa-structalias.c (struct vls_data): New.
26041 (visit_loadstore): Handle all pointer-based accesses.
26042 (compute_dependence_clique): Compute a bitmap of restrict tags
26043 assigned bases and pass it to visit_loadstore.
26044
26045 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
26046
26047 PR target/70711
26048 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
26049 armv8.1-a and armv8.1-a+crc.
26050
26051 2016-04-18 Richard Biener <rguenther@suse.de>
26052
26053 PR tree-optimization/70701
26054 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
26055 references after translating through a memcpy.
26056
26057 2016-04-18 Richard Biener <rguenther@suse.de>
26058
26059 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
26060 (compute_antic): ... here. For partial antic use regular
26061 postorder and scrap iteration.
26062 (compute_partial_antic_aux): Remove unused return value.
26063 (init_pre): Do not allocate postorder.
26064 (fini_pre): Do not free postorder.
26065
26066 2016-04-18 Richard Biener <rguenther@suse.de>
26067
26068 PR middle-end/37870
26069 * expmed.c (extract_bit_field_1): Remove broken case
26070 using a wider MODE_INT mode.
26071
26072 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
26073
26074 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
26075 unless compiling with at least GCC-4.8.
26076
26077 2016-04-17 Jan Hubicka <jh@suse.cz>
26078
26079 PR bootstrap/70706
26080 * graphite.c (graphite_finalize): Update call to
26081 tree_estimate_probability.
26082 * predict.h (tree_estimate_probability): Update prototype.
26083
26084 2016-04-17 Jan Hubicka <jh@suse.cz>
26085
26086 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
26087 (tree_estimate_probability): Likewise.
26088 (pass_profile::execute): Update.
26089 (report_predictor_hitrates): New function.
26090 * profile.c (compute_branch_probabilities): Use it.
26091 * predict.h (report_predictor_hitrates): Declare.
26092
26093 2016-04-17 Jan Hubicka <jh@suse.cz>
26094
26095 PR ipa/70018
26096 * cgraph.h (cgraph_node::set_const_flag,
26097 cgraph_node::set_pure_flag): Update prototype to return bool;
26098 update comment.
26099 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
26100 of interposable symbol are interposable, too.
26101 (cgraph_set_const_flag_1): Rename to ...
26102 (set_const_flag_1): ... this one; change to self recursive function
26103 instead of call_for_symbol_thunks_and_aliases. Handle correctly
26104 clearnig the flag in all variants and also virtual thunks of const
26105 functions are pure; track if any change was done.
26106 (cgraph_node::set_const_flag): Update.
26107 (struct set_pure_flag_info): New struct.
26108 (cgraph_set_pure_flag_1): Rename to ...
26109 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
26110 rather than pointer encoded flags; track if any changes was done;
26111 handle correctly clearning flag and setting flag of aliases already
26112 declared const.
26113 (cgraph_node::set_pure_flag): Update.
26114 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
26115
26116 2016-04-17 Tom de Vries <tom@codesourcery.com>
26117
26118 PR other/70433
26119 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
26120 backslash in label.
26121
26122 2016-04-17 Tom de Vries <tom@codesourcery.com>
26123
26124 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
26125 '{}<> ' as escape-for-record.
26126
26127 2016-04-17 Tom de Vries <tom@codesourcery.com>
26128
26129 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
26130 structure.
26131
26132 2016-04-17 Tom de Vries <tom@codesourcery.com>
26133
26134 PR other/70185
26135 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
26136 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
26137 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
26138 * passes.c (finish_optimization_passes): Only call
26139 finish_graph_dump_file if dfi->graph_dump_initialized.
26140 (execute_function_dump, pass_init_dump_file): Use
26141 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
26142
26143 2016-04-17 Tom de Vries <tom@codesourcery.com>
26144
26145 PR tree-optimization/70256
26146 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
26147 (debug_varmap): New function.
26148
26149 2016-04-17 Tom de Vries <tom@codesourcery.com>
26150
26151 PR other/70183
26152 * passes.c (pass_manager::register_pass): Propagate pflags.
26153
26154 2016-04-17 Tom de Vries <tom@codesourcery.com>
26155
26156 PR other/68875
26157 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
26158 * passes.c (pass_manager::pass_manager): Declare and init p_start in
26159 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
26160 check if it's equal to p_start.
26161 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
26162
26163 2016-04-15 Jan Hubicka <jh@suse.cz>
26164
26165 PR ipa/70018
26166 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
26167 function does not bind to current def.
26168 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
26169 handle conservatively calls to functions that does not need to bind
26170 to current def.
26171 (check_call): Update call of worse_state.
26172 (ignore_edge_for_nothrow): Update.
26173 (ignore_edge_for_pure_const): Likewise.
26174 (propagate_pure_const): Update calls to worse_state.
26175 (skip_function_for_local_pure_const): Reformat comments.
26176
26177 2016-04-15 Jan Hubicka <jh@suse.cz>
26178
26179 PR ipa/70018
26180 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
26181 (cgraph_node::function_symbol): Likewise.
26182 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
26183 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
26184 (symtab_node::ultimate_alias_target): Add REF parameter.
26185 (symtab_node::binds_to_current_def_p): Declare.
26186 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
26187 (cgraph_node::function_symbol): Likewise.
26188 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
26189 (cgraph_node::get_availability): Likewise.
26190 (cgraph_edge::binds_to_current_def_p): New inline function.
26191 (varpool_node::get_availability): Add REF parameter.
26192 (varpool_node::ultimate_alias_target): Likewise.
26193 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
26194 (symtab_node::binds_to_current_def_p): Likewise.
26195 * varpool.c (varpool_node::get_availability): Likewise.
26196
26197 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
26198
26199 PR target/70662
26200 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
26201 Fix mode size check.
26202
26203 2016-04-15 Jakub Jelinek <jakub@redhat.com>
26204
26205 * BASE-VER: Set to 7.0.0.
26206
26207 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
26208
26209 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
26210
26211 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26212
26213 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
26214 architecture revisions.
26215
26216 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
26217
26218 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
26219 * config/i386/i386.c (ix86_using_red_zone): No longer static.
26220 * config/i386/i386.md (stack decrement to push peepholes): Guard
26221 with !x86_using_red_zone ().
26222
26223 2016-04-15 Jakub Jelinek <jakub@redhat.com>
26224
26225 PR c++/70675
26226 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
26227 to dump_generic_node.
26228 (NIY): Pass also flags to do_niy.
26229
26230 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
26231
26232 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
26233 (simd_clone_vector_of_formal_parm_types)
26234 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
26235 (simd_clone_mangle, simd_clone_create)
26236 (simd_clone_adjust_return_type, create_tmp_simd_array)
26237 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
26238 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
26239 (ipa_simd_modify_function_body, simd_clone_linear_addend)
26240 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
26241 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
26242 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
26243 * omp-simd-clone.c: ... this new file.
26244 (simd_clone_vector_of_formal_parm_types): Make it static.
26245 * Makefile.in (OBJS): Add omp-simd-clone.o.
26246
26247 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
26248
26249 PR target/70662
26250 * config/i386/sse.md: Use proper memory operand modifiers.
26251
26252
26253 2016-04-15 Richard Biener <rguenther@suse.de>
26254 Alan Modra <amodra@gmail.com>
26255
26256 PR tree-optimization/70130
26257 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
26258 when alignment stays not the same and no not use the realign
26259 scheme then.
26260
26261 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26262
26263 PR target/70669
26264 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
26265 direct move handlers for KFmode. Change TFmode handlers test from
26266 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
26267
26268 2016-04-14 Jakub Jelinek <jakub@redhat.com>
26269
26270 PR c++/70594
26271 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
26272 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
26273 (inlined_polymorphic_ctor_dtor_block_p): Use it.
26274 * tree-ssa-live.c (remove_unused_scope_block_p): When
26275 in_ctor_dtor_block, avoid discarding not just BLOCKs with
26276 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
26277 block_ultimate_origin is FUNCTION_DECL.
26278 (remove_unused_locals): If current_function_decl is
26279 polymorphic_ctor_dtor_p, pass initial true to
26280 remove_unused_scope_block_p' is_ctor_dtor_block.
26281
26282 2016-04-14 Martin Sebor <msebor@redhat.com>
26283
26284 PR c++/69517
26285 PR c++/70019
26286 PR c++/70588
26287 * doc/extend.texi (Variable Length): Revert.
26288
26289 2016-04-14 Marek Polacek <polacek@redhat.com>
26290 Jan Hubicka <hubicka@ucw.cz>
26291
26292 PR c++/70029
26293 * tree.c (verify_type): Disable the canonical type of main variant
26294 check.
26295
26296 2016-04-14 Jason Merrill <jason@redhat.com>
26297
26298 * cfgexpand.c, expr.c: Revert previous change.
26299
26300 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
26301
26302 PR middle-end/70643
26303 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
26304 when building a mem ref for the incoming reduction variable.
26305
26306 2016-04-14 Richard Biener <rguenther@suse.de>
26307
26308 PR tree-optimization/70614
26309 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
26310 loop if the evolution dropped to chrec_dont_know.
26311 (interpret_condition_phi): Likewise.
26312
26313 2016-04-14 Richard Biener <rguenther@suse.de>
26314
26315 PR tree-optimization/70623
26316 * tree-ssa-pre.c (changed_blocks): Make global ...
26317 (compute_antic): ... local here. Move and fix worklist
26318 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
26319 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
26320 worklist handling, dump when ANTIC_IN changed.
26321 (compute_partial_antic_aux): Remove worklist handling.
26322 (init_pre): Do not compute post dominators. Add a comment about
26323 the CFG order chosen.
26324 (fini_pre): Do not free post dominators.
26325
26326 2016-04-13 Martin Sebor <msebor@redhat.com>
26327
26328 PR c++/69517
26329 PR c++/70019
26330 PR c++/70588
26331 * doc/extend.texi (Variable Length): Document C++ specifics.
26332
26333 2016-04-13 Jakub Jelinek <jakub@redhat.com>
26334
26335 PR c++/70641
26336 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
26337 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
26338 eh edges have been purged.
26339
26340 PR c++/70594
26341 * tree-sra.c (create_access_replacement,
26342 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
26343 gets fancy name.
26344 * tree-pretty-print.c (dump_fancy_name): New function.
26345 (dump_decl_name, dump_generic_node): Use it.
26346
26347 2016-04-13 Jason Merrill <jason@redhat.com>
26348
26349 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
26350 * expr.c (expand_expr_real_1): Likewise.
26351
26352 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
26353
26354 * config/i386/i386.md (kunpckhi): Swap operands.
26355 (kunpcksi): Likewise.
26356 (kunpckdi): Likewise.
26357 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
26358 (vec_pack_trunc_<mode>): Likewise.
26359
26360 2016-04-13 Jakub Jelinek <jakub@redhat.com>
26361
26362 PR debug/70628
26363 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
26364
26365 PR middle-end/70633
26366 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
26367 gimplification turns some element into non-constant.
26368
26369 PR debug/70628
26370 * rtl.h (convert_memory_address_addr_space_1): New prototype.
26371 * explow.c (convert_memory_address_addr_space_1): No longer static,
26372 add NO_EMIT argument and don't call convert_modes if true, pass
26373 it down recursively, remove break after return.
26374 (convert_memory_address_addr_space): Adjust caller.
26375 * simplify-rtx.c (simplify_unary_operation_1): Call
26376 convert_memory_address_addr_space_1 instead of convert_memory_address,
26377 if it returns NULL, don't simplify.
26378
26379 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
26380
26381 PR target/70630
26382 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
26383
26384 2016-04-12 Jakub Jelinek <jakub@redhat.com>
26385
26386 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
26387 Bump the upper SIMDLEN limits, so that if the return type or
26388 characteristic type if the return type is void can be passed in
26389 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
26390 allowed.
26391
26392 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26393
26394 PR target/70640
26395 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
26396 Do not use "=" constraint on an input constraint.
26397 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
26398 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
26399 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
26400 generates (neg (abs ...)) instead of (abs ...).
26401
26402 2016-04-12 Jakub Jelinek <jakub@redhat.com>
26403
26404 PR rtl-optimization/70596
26405 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
26406 just invalidate LRA data and reset them. Adjust dump wording.
26407
26408 2016-04-12 Martin Liska <mliska@suse.cz>
26409
26410 Revert
26411 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
26412
26413 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
26414 estimates here.
26415 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
26416 max_loop_iterations_int.
26417 (tree_unswitch_outer_loop): Likewise.
26418 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
26419 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
26420
26421 2016-04-12 Tom de Vries <tom@codesourcery.com>
26422
26423 PR tree-optimization/68756
26424 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
26425 instead of new_name.
26426
26427 2016-04-12 Jakub Jelinek <jakub@redhat.com>
26428
26429 PR tree-optimization/70602
26430 * tree-sra.c (generate_subtree_copies): Don't write anything into
26431 constant pool decls.
26432
26433 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
26434 regardless whether there are depend clauses or not.
26435
26436 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26437
26438 PR target/70381
26439 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
26440 target attribute and pragma from changing the -mfloat128
26441 and -mfloat128-hardware options.
26442
26443 * doc/extend.texi (Additional Floating Types): Document PowerPC
26444 __float128 restrictions.
26445
26446 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
26447
26448 PR target/70133
26449 * config/aarch64/driver-aarch64.c
26450 (aarch64_get_extension_string_for_isa_flags): New.
26451 (arch_extension): Rename to...
26452 (aarch64_arch_extension): ...This.
26453 (ext_to_feat_string): Rename to...
26454 (aarch64_extensions): ...This.
26455 (aarch64_core_data): Keep track of architecture extension flags.
26456 (cpu_data): Rename to...
26457 (aarch64_cpu_data): ...This.
26458 (aarch64_arch_driver_info): Keep track of architecture extension
26459 flags.
26460 (get_arch_name_from_id): Rename to...
26461 (get_arch_from_id): ...This, change return type.
26462 (host_detect_local_cpu): Update and reformat for renames, handle
26463 extensions through common infrastructure.
26464
26465 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
26466
26467 PR target/70133
26468 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
26469 track of a canonical flag name.
26470 (all_extensions): Likewise.
26471 (arch_to_arch_name): Also track extension flags enabled by the arch.
26472 (all_architectures): Likewise.
26473 (aarch64_parse_extension): Move to here.
26474 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
26475 rework.
26476 (aarch64_rewrite_selected_cpu): Update for above change.
26477 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
26478 are handled, such that the single explicit value enabled by an
26479 extension is kept seperate from the implicit values it also enables.
26480 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
26481 to here.
26482 (aarch64_parse_extension): New.
26483 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
26484 here to config/aarch64/aarch64-protos.h.
26485 (aarch64_parse_extension): Move from here to
26486 common/config/aarch64/aarch64-common.c.
26487 (aarch64_option_print): Update.
26488 (aarch64_declare_function_name): Likewise.
26489 (aarch64_start_file): Likewise.
26490 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
26491 the canonical flag for extensions.
26492 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
26493 flags.
26494
26495 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
26496
26497 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
26498 AARCH64_FL_CRC.
26499
26500 2016-04-09 Tom de Vries <tom@codesourcery.com>
26501
26502 PR tree-optimization/68953
26503 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
26504 first to last subscript.
26505
26506 2016-04-09 Jakub Jelinek <jakub@redhat.com>
26507
26508 PR tree-optimization/70586
26509 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
26510 for any calls.
26511
26512 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
26513
26514 PR lto/70289
26515 PR ipa/70348
26516 PR tree-optimization/70373
26517 PR middle-end/70533
26518 PR middle-end/70534
26519 PR middle-end/70535
26520 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
26521 clauses for acc parallel reductions as necessary. Error on those
26522 that are private.
26523 * omp-low.c (scan_sharing_clauses): Don't install variables which
26524 are used in acc parallel reductions.
26525 (lower_rec_input_clauses): Remove dead code.
26526 (lower_oacc_reductions): Add support for reference reductions.
26527 (lower_reduction_clauses): Remove dead code.
26528 (lower_omp_target): Don't remap variables appearing in acc parallel
26529 reductions.
26530 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
26531
26532 2016-04-08 Jakub Jelinek <jakub@redhat.com>
26533
26534 PR middle-end/70593
26535 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
26536 with multiple SSA_NAME defs, force the outputs other than first
26537 to be live before calling live_track_process_def on each output.
26538
26539 PR rtl-optimization/70574
26540 * fwprop.c (forward_propagate_and_simplify): Don't add
26541 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
26542 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
26543 paradoxical subregs within *loc.
26544
26545 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
26546
26547 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
26548 -ftree-parallelize-loops={0,1}.
26549 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
26550 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
26551 * config/ia64/hpux.h (LIB_SPEC): Likewise.
26552 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26553 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
26554
26555 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
26556
26557 PR sanitizer/70541
26558 * asan.c (instrument_derefs): If we get unknown location, extract it
26559 with EXPR_LOCATION.
26560 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
26561
26562 2016-04-08 Tom de Vries <tom@codesourcery.com>
26563
26564 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
26565 implicit firstprivate clause.
26566
26567 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26568
26569 PR target/70566
26570 * config/arm/thumb2.md (tst + branch-> lsls + branch
26571 peephole below *orsi_not_shiftsi_si): Require that condition
26572 register is dead after the peephole.
26573 (second peephole after the above): Likewise.
26574
26575 2016-04-08 Alan Modra <amodra@gmail.com>
26576
26577 PR target/70117
26578 * builtins.c (fold_builtin_classify): For IBM extended precision,
26579 look at just the high-order double to test for NaN.
26580 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
26581 test just the high double for Inf but both doubles for subnormal
26582 limit.
26583
26584 2016-04-07 Jakub Jelinek <jakub@redhat.com>
26585
26586 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
26587 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
26588 node->simdclone->mask_mode != VOIDmode masks.
26589 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
26590 earlier, use it instead of node->simdclone.
26591 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
26592 Set clonei->mask_mode.
26593
26594 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
26595
26596 PR c/70436
26597 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
26598 Pass it through to cp_parser_already_scoped_statement.
26599 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
26600 it through to cp_parser_statement.
26601 (cp_parser_statement): Pass IF_P through to
26602 cp_parser_iteration_statement.
26603 (cp_parser_pragma): Adjust call to
26604 cp_parser_iteration_statement.
26605
26606 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
26607
26608 PR c/70436
26609 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
26610 resolve a future -Wparentheses warning.
26611 * omp-low.c (scan_sharing_clauses): Likewise.
26612 * tree-parloops.c (eliminate_local_variables): Likewise.
26613
26614 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
26615
26616 PR rtl-optimization/70398
26617 * lra-constraints.c (process_address_1): Check zero scale and code
26618 for reloading with zero scale.
26619
26620 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
26621
26622 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
26623 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
26624
26625 2016-04-06 Jakub Jelinek <jakub@redhat.com>
26626
26627 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
26628 Add support for AVX512F clones, include them by default for
26629 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
26630 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
26631 up to 128.
26632
26633 PR middle-end/70550
26634 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
26635 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
26636 firstprivate clauses.
26637 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
26638 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
26639 (lower_omp_target): Set TREE_NO_WARNING for
26640 non-addressable possibly uninitialized vars which are copied into
26641 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
26642
26643 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
26644
26645 * config/pa/predicates.md (integer_store_memory_operand): Accept
26646 REG+D operands with a large offset when reload_in_progress is true.
26647 (floating_point_store_memory_operand): Likewise.
26648
26649 2016-04-05 Jakub Jelinek <jakub@redhat.com>
26650
26651 PR c++/70336
26652 * match.pd (nested int casts): Limit to GIMPLE.
26653
26654 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
26655
26656 PR ipa/66223
26657 * ipa-devirt.c (maybe_record_node): Fix comment; use
26658 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
26659
26660 2016-04-05 Jakub Jelinek <jakub@redhat.com>
26661
26662 PR rtl-optimization/70542
26663 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
26664 if there are any uses other than insn or debug insns.
26665
26666 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
26667 Jakub Jelinek <jakub@redhat.com>
26668
26669 PR tree-optimization/70509
26670 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
26671 Shift HOST_WIDE_INT_1U instead of 1.
26672
26673 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
26674
26675 PR tree-optimization/70509
26676 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
26677 of the vector base type for index.
26678
26679 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
26680
26681 PR target/70510
26682 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
26683
26684 2016-04-05 Richard Biener <rguenther@suse.de>
26685
26686 PR tree-optimization/70526
26687 * tree-sra.c (build_ref_for_offset): Use prev_base to
26688 extract the alias pointer type.
26689
26690 2016-04-05 Richard Biener <rguenther@suse.de>
26691
26692 * dse.c (struct store_info): Remove alias_set member.
26693 (struct read_info_type): Likewise.
26694 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
26695 spill_deleted, clear_alias_set_lookup): Remove.
26696 (get_group_info): Remove dead base == NULL_RTX case.
26697 (dse_step0): Remove initialization of removed variables.
26698 (delete_dead_store_insn): Reomve alias set dumping.
26699 (free_read_records): Remove alias_set handling.
26700 (canon_address): Remove alias_set_out parameter.
26701 (record_store): Remove spill_alias_set, it's always zero.
26702 (check_mem_read_rtx): Likewise.
26703 (dse_step2): Rename from ...
26704 (dse_step2_nospill): ... this. Adjust.
26705 (scan_stores): Rename from ...
26706 (scan_stores_nospill): ... this.
26707 (scan_reads): Rename from ...
26708 (scan_reads_nospill): ... this.
26709 (scan_stores_spill, scan_reads_spill): Remove.
26710 (dse_step3_scan): Remove for_spills argument which is always false.
26711 (dse_step3): Likewise.
26712 (dse_step5): Rename from ...
26713 (dse_step5_nospill): ... this. Remove alias_set handling.
26714 (rest_of_handle_dse): Adjust.
26715
26716 2016-04-05 Jakub Jelinek <jakub@redhat.com>
26717
26718 PR target/70525
26719 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
26720 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
26721 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
26722 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
26723
26724 2016-04-05 Richard Biener <rguenther@suse.de>
26725
26726 PR middle-end/70499
26727 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
26728 non-register type temporaries into SSA.
26729
26730 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
26731
26732 PR ipa/66223
26733 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
26734 calls when sanitizing.
26735 (possible_polymorphic_call_target_p): Fix formatting.
26736
26737 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26738 Jakub Jelinek <jakub@redhat.com>
26739
26740 PR middle-end/70457
26741 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
26742 to ensure a call statement is compatible with a built-in's
26743 prototype.
26744 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
26745 Likewise.
26746
26747 2016-04-04 Richard Biener <rguenther@suse.de>
26748
26749 PR rtl-optimization/70484
26750 * rtl.h (canon_output_dependence): Declare.
26751 * alias.c (canon_output_dependence): New function.
26752 * dse.c (record_store): Use canon_output_dependence rather
26753 than canon_true_dependence.
26754
26755 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
26756
26757 PR ipa/68881
26758 * cgraph.h (symtab_node::copy_visibility_from): New function.
26759 * symtab.c (symtab_node::copy_visibility_from): New function.
26760 * ipa-visibility.c (optimize_weakref): New function.
26761 (function_and_variable_visibility): Use it.
26762
26763 2016-04-04 Martin Liska <mliska@suse.cz>
26764
26765 PR hsa/70402
26766 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
26767 value that is really in range handled by SBR instruction.
26768 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
26769 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
26770 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
26771
26772 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
26773
26774 PR target/70416
26775 PR target/67391
26776 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
26777 set, but not for SP_REG operands.
26778
26779 2016-04-02 Martin Sebor <msebor@redhat.com>
26780
26781 PR c++/67376
26782 * fold-const.c (maybe_nonzero_address): New function.
26783 (fold_comparison): Call it. Fold equality and relational
26784 expressions involving null pointers.
26785 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
26786
26787 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
26788
26789 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
26790 the "Y" constraint (scalar FP 0.0 immediate).
26791
26792 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
26793 Add the "const_double" to the list of operand constraints.
26794
26795 2016-04-01 Jakub Jelinek <jakub@redhat.com>
26796
26797 PR rtl-optimization/70467
26798 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
26799 If low word of the last operand is 0, just emit addition/subtraction
26800 for the high word.
26801
26802 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26803
26804 PR target/70404
26805 * config/s390/s390.c (s390_expand_insv): Check for everything
26806 constant instead of just VOIDmode stuff.
26807
26808 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26809
26810 PR target/70496
26811 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
26812
26813 2016-04-01 Nathan Sidwell <nathan@acm.org>
26814
26815 * tree.def (TRY_CATCH_EXPR): Correct documentation.
26816
26817 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
26818
26819 PR rtl-optimization/70461
26820 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
26821 is necessary.
26822
26823 2016-03-31 Martin Liska <mliska@suse.cz>
26824
26825 PR hsa/70399
26826 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
26827 a tree value or an immediate integer value to a buffer
26828 that is eventually copied to a BRIG section.
26829 (emit_immediate_operand): Call the function here.
26830 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
26831 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
26832 of class' fields that are removed.
26833 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
26834 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
26835 m_brig_repr_size fields.
26836
26837 2016-03-31 Martin Liska <mliska@suse.cz>
26838
26839 PR hsa/70391
26840 * hsa-gen.c (hsa_function_representation::update_dominance): New
26841 function.
26842 (convert_addr_to_flat_segment): Likewise.
26843 (gen_hsa_memory_set): New alignment argument.
26844 (gen_hsa_ctor_assignment): Likewise.
26845 (gen_hsa_insns_for_single_assignment): Provide alignment
26846 to gen_hsa_ctor_assignment.
26847 (gen_hsa_insns_for_direct_call): Add new argument.
26848 (expand_lhs_of_string_op): New function.
26849 (expand_string_operation_builtin): Likewise.
26850 (expand_memory_copy): New function.
26851 (expand_memory_set): New function.
26852 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
26853 (convert_switch_statements): Change signature.
26854 (generate_hsa): Use a return value of the function.
26855 (pass_gen_hsail::execute): Do not call
26856 convert_switch_statements here.
26857 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
26858 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
26859 (hsa_function_representation::update_dominance): New function.
26860
26861 2016-03-31 Martin Liska <mliska@suse.cz>
26862
26863 PR hsa/70391
26864 * hsa-brig.c (emit_directive_variable): Emit alignment
26865 according to hsa_symbol::m_align.
26866 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
26867 (dump_hsa_symbol): Dump alignment of HSA symbols.
26868 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
26869 (gen_hsa_addr_with_align): New function.
26870 (hsa_bitmemref_alignment): Use newly added function.
26871 (gen_hsa_insns_for_load): Likewise.
26872 (gen_hsa_insns_for_store): Likewise.
26873 (gen_hsa_memory_copy): New argument added.
26874 (gen_hsa_insns_for_single_assignment): Respect
26875 alignment for assignments processed via gen_hsa_memory_copy.
26876 (gen_hsa_insns_for_direct_call): Likewise.
26877 (gen_hsa_insns_for_return): Likewise.
26878 (gen_function_def_parameters): Set default alignment.
26879 * hsa.c (hsa_object_alignment): New function.
26880 (hsa_byte_alignment): Pasted function.
26881 * hsa.h (hsa_symbol::m_align): New field.
26882
26883 2016-03-31 Bin Cheng <bin.cheng@arm.com>
26884
26885 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
26886 scratch field for goto case.
26887
26888 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
26889
26890 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
26891
26892 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
26893
26894 PR target/70442
26895 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
26896 (scalar_chain::convert_insn): Call convert_op for reg
26897 moves to handle undefined registers.
26898
26899 2016-03-31 Nathan Sidwell <nathan@acm.org>
26900
26901 PR c++/70393
26902 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
26903 Assert we don't want to move backwards.
26904
26905 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
26906
26907 PR target/70453
26908 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
26909
26910 2016-03-31 Jakub Jelinek <jakub@redhat.com>
26911
26912 PR rtl-optimization/70460
26913 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
26914 with operand from REG_LABEL_OPERAND, instead substitute
26915 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
26916 Don't do anything for REG_NON_LOCAL_GOTO jumps.
26917
26918 2016-03-31 Martin Liska <mliska@suse.cz>
26919
26920 * passes.c (execute_one_pass): Do not call
26921 todo_after for a discarded function.
26922
26923 2016-03-31 Bin Cheng <bin.cheng@arm.com>
26924
26925 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
26926 (no_cost, infinite_cost): Initialize the new field.
26927 (get_computation_cost_at): Record setup cost.
26928 (determine_use_iv_cost_address): Skip cost computation for sub
26929 uses if we can estimate it without losing accuracy.
26930
26931 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
26932
26933 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
26934 estimates here.
26935 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
26936 max_loop_iterations_int.
26937 (tree_unswitch_outer_loop): Likewise.
26938 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
26939 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
26940
26941 2016-03-30 Richard Biener <rguenther@suse.de>
26942
26943 PR middle-end/70450
26944 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
26945
26946 2016-03-30 Jakub Jelinek <jakub@redhat.com>
26947
26948 PR target/70421
26949 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
26950 in gen_blendm expander.
26951
26952 2016-03-30 Nick Clifton <nickc@redhat.com>
26953
26954 PR target/62254
26955 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
26956 case where we are already provided with an SImode SUBREG.
26957
26958 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
26959
26960 PR target/70439
26961 * config/i386/i386.c (ix86_expand_epilogue): Properly check
26962 conflict between DRAP register and __builtin_eh_return.
26963
26964 2016-03-30 Michael Matz <matz@suse.de>
26965 Richard Biener <rguenther@suse.de>
26966
26967 PR ipa/12392
26968 * ipa-polymorphic-call.c (struct type_change_info): Change
26969 speculative to an unsigned allowing to limit the work we do.
26970 (csftc_abort_walking_p): New inline function..
26971 (check_stmt_for_type_change): Limit the number of may-defs
26972 skipped for speculative devirtualization to
26973 max-speculative-devirt-maydefs.
26974 * params.def (max-speculative-devirt-maydefs): New param.
26975 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
26976
26977 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
26978
26979 PR target/63890
26980 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
26981 and TARGET_MACHO.
26982
26983 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
26984
26985 PR tree-optimization/59124
26986 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
26987 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
26988
26989 2016-03-29 Jeff Law <law@redhat.com>
26990
26991 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
26992
26993 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26994
26995 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
26996 to HOST_WIDE_INT.
26997
26998 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
26999
27000 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
27001 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
27002 gcrt0.o if linking dynamically.
27003
27004 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
27005
27006 PR ipa/70283
27007 * ipa-devirt.c (methods_equal_p): New function.
27008 (compare_virtual_tables): Use it.
27009 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
27010 * cgraphclones.c (clone_function_name_1): Use
27011 symbol_table::symbol_suffix_separator.
27012 * coverage.c (build_var): Likewise.
27013 * symtab.c (symbol_table::symbol_suffix_separator): New.
27014
27015 2016-03-29 Jakub Jelinek <jakub@redhat.com>
27016
27017 PR rtl-optimization/70429
27018 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
27019 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
27020 mode != result_mode.
27021
27022 PR c++/70353
27023 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
27024
27025 PR tree-optimization/70405
27026 * ssa-iterators.h (num_imm_uses): Add missing braces.
27027
27028 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
27029
27030 PR rtl-optimization/68695
27031 * ira-color.c (allocno_copy_cost_saving): New.
27032 (improve_allocation): Use it.
27033
27034 2016-03-29 Richard Henderson <rth@redhat.com>
27035
27036 PR middle-end/70355
27037 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
27038
27039 2016-03-29 Richard Biener <rguenther@suse.de>
27040
27041 PR middle-end/70424
27042 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
27043 use alignment returned by get_pointer_alignment_1 if it is
27044 bigger than BITS_PER_UNIT.
27045 * builtins.c (get_pointer_alignment_1): Do not return true
27046 for alignment extracted from SSA info.
27047
27048 2016-03-28 James Bowman <james.bowman@ftdichip.com>
27049
27050 * config/ft32/ft32.opt (mnodiv): New.
27051 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
27052 * doc/invoke.texi (FT32 Options -mnodiv): New.
27053
27054 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
27055
27056 PR target/70406
27057 * config/i386/i386.md (define_split, andn): Fix modes.
27058
27059 2016-03-26 Richard Biener <rguenther@suse.de>
27060 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27061
27062 PR ipa/70366
27063 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
27064 instead of
27065 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
27066 as 2nd argument to cl_optimization_restore().
27067
27068 2016-03-25 Richard Henderson <rth@redhat.com>
27069
27070 PR target/70120
27071 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
27072 * config/aarch64/aarch64-protos.h: Declare it.
27073 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
27074
27075 2016-03-25 Alan Modra <amodra@gmail.com>
27076
27077 PR target/70052
27078 * config/rs6000/constraints.md (j): Simplify.
27079 * config/rs6000/predicates.md (easy_fp_constant): Exclude
27080 decimal float 0.D.
27081 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
27082 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
27083 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
27084 in all constraint alternatives.
27085 (movtd_64bit_nodm): Delete "j" constraint alternative.
27086
27087 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
27088
27089 * tree-ssa-propagate.c: Enhance docs for
27090 SSA_PROP_NOT_INTERESTING.
27091
27092 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
27093
27094 * doc/extend.texi: Fix typo in documentation to pure attribute.
27095
27096 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
27097
27098 PR target/70319
27099 * config/pa/pa.md (bswapdi2): Use a scratch register.
27100
27101 2016-03-24 Richard Henderson <rth@redhat.com>
27102
27103 PR middle-end/69845
27104 * fold-const.c (extract_muldiv_1): Correct test for multiplication
27105 overflow.
27106
27107 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
27108
27109 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
27110 using ix86_expand_binary_operator instead of gen_andsi3.
27111
27112 2016-03-24 Richard Biener <rguenther@suse.de>
27113
27114 PR tree-optimization/70396
27115 * tree-vect-stmts.c (vectorizable_comparison): Use
27116 get_vectype_for_scalar_type.
27117
27118 2016-03-24 Richard Biener <rguenther@suse.de>
27119
27120 PR middle-end/70370
27121 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
27122 with register bases.
27123
27124 2016-03-24 Richard Biener <rguenther@suse.de>
27125
27126 PR tree-optimization/70372
27127 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
27128 build_all_ones_cst to also handle vector types correctly.
27129
27130 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
27131
27132 PR target/70381
27133 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
27134 -mfloat128 here.
27135
27136 2016-03-23 Marek Polacek <polacek@redhat.com>
27137
27138 PR c++/69884
27139 * doc/invoke.texi: Document -Wignored-attributes.
27140
27141 2016-03-23 Bin Cheng <bin.cheng@arm.com>
27142
27143 PR tree-optimization/69042
27144 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
27145 parameter from 30 to 40.
27146
27147 2016-03-23 Bin Cheng <bin.cheng@arm.com>
27148
27149 PR tree-optimization/69042
27150 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
27151 for use with constant offset stripped in base.
27152
27153 2016-03-23 Richard Biener <rguenther@suse.de>
27154
27155 PR middle-end/70251
27156 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
27157 mode compatibility check.
27158 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
27159
27160 2016-03-23 Jeff Law <law@redhat.com>
27161
27162 PR tree-optimization/64058
27163 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
27164 CONFLICT_COUNT.
27165 (struct ssa_conflicts): Move up earlier in the file.
27166 (conflicts_, var_map_): New static variables.
27167 (initialize_conflict_count): New function to initialize the
27168 CONFLICT_COUNT field for each conflict pair.
27169 (compare_pairs): Lazily initialize the conflict count and use it
27170 as the first tie-breaker.
27171 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
27172 and wipe conflicts_ and map_ around the call to qsort. Remove
27173 special case for 2 coalesce pairs.
27174 * bitmap.c (bitmap_count_unique_bits): New function.
27175 (bitmap_count_bits_in_word): New function, extracted from
27176 bitmap_count_bits.
27177 (bitmap_count_bits): Use bitmap_count_bits_in_word.
27178 * bitmap.h (bitmap_count_unique_bits): Declare it.
27179
27180 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
27181
27182 PR target/69917
27183 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
27184 transparent alias chain for decl assembler name.
27185 * config/sol2.c (solaris_assemble_visibility): Likewise.
27186
27187 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27188
27189 * config/arm/arm1020e.md (1020call_op): Reduce reservation
27190 duration.
27191 (v10_fdivs): Likewise.
27192 (v10_fdivd): Likewise.
27193
27194 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27195
27196 PR driver/70132
27197 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
27198 to not call fclose twice on file.
27199
27200 2016-03-23 Jakub Jelinek <jakub@redhat.com>
27201
27202 PR tree-optimization/70354
27203 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
27204 oprnd0 is wider than oprnd1 and there is a cast from the wider
27205 type to oprnd1, mask it with the mask of the narrower type.
27206
27207 PR target/70321
27208 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
27209 Optimize TARGET_STV splitters, if high or low word of last argument
27210 is 0 or -1.
27211
27212 2016-03-22 Jeff Law <law@redhat.com>
27213
27214 PR target/70232
27215 tree-ssa-threadbackward.c
27216 (fsm_find_control_statement_thread_paths): Correctly distinguish
27217 between old style jump threads vs FSM jump threads.
27218
27219 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
27220
27221 PR target/70302
27222 * config/i386/i386.c (scalar_chain::convert_op): Support
27223 uninitialized register usage case.
27224
27225 2016-03-22 Richard Biener <rguenther@suse.de>
27226
27227 PR middle-end/70251
27228 * genmatch.c (gen_transform): Adjust last parameter to a three-state
27229 int...
27230 (capture::gen_transform): ... to change behavior when substituting
27231 a condition into cond or not-cond expr context.
27232 (dt_simplify::gen_1): Adjust.
27233 * gimple-match-head.c: Include gimplify.h for unshare_expr.
27234 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
27235 last change and instead change to
27236 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
27237 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
27238
27239 2016-03-22 Anthony Green <green@moxielogic.com>
27240
27241 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
27242 issue for moxiebox targets.
27243 (CC1PLUS_SPEC): Ditto.
27244
27245 2016-03-22 Richard Biener <rguenther@suse.de>
27246
27247 PR middle-end/70333
27248 * fold-const.c (extract_muldiv_1): Properly perform multiplication
27249 in the wide type.
27250
27251 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
27252
27253 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
27254
27255 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
27256
27257 PR target/70325
27258 * config/i386/i386.c (def_builtin): Handle
27259 OPTION_MASK_ISA_AVX512VL to be and-ed with other
27260 bits.
27261 (const struct builtin_description bdesc_special_args[]):
27262 Remove duplicate ISA bits.
27263
27264 2016-03-22 Jakub Jelinek <jakub@redhat.com>
27265
27266 PR target/70329
27267 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
27268 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
27269 in a way that works also for AVX512BW.
27270
27271 PR target/70300
27272 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
27273 instead of source if operands[1] is xmm16 and above and
27274 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
27275 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
27276
27277 PR c++/70295
27278 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
27279 on assign if (*from_p) is a comparison, set it to
27280 TREE_NO_WARNING (*from_p).
27281
27282 2016-03-21 Jakub Jelinek <jakub@redhat.com>
27283
27284 PR middle-end/70326
27285 * lra.c (restore_scratches): Ignore deleted insns.
27286
27287 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
27288 Jakub Jelinek <jakub@redhat.com>
27289
27290 PR tree-optimization/70317
27291 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
27292 to HONOR_NANS.
27293
27294 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
27295
27296 PR target/70327
27297 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
27298 of ix86_expand_move.
27299 (movoi): Ditto.
27300 (movti): Use general_operand for operand 1 predicate.
27301
27302 2016-03-21 Martin Liska <mliska@suse.cz>
27303
27304 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
27305 insns.
27306 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
27307
27308 2016-03-21 Martin Liska <mliska@suse.cz>
27309
27310 PR ipa/70306
27311 * ipa-icf.c (sem_function::parse): Skip static
27312 constructors and destructors.
27313
27314 2016-03-21 Jakub Jelinek <jakub@redhat.com>
27315
27316 PR target/70296
27317 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
27318 function-like macro, peek following token(s) if it is followed
27319 by CPP_OPEN_PAREN token with optional padding in between, and
27320 if not, don't treat it like a macro.
27321
27322 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
27323 Alexander Monakov <amonakov@ispras.ru>
27324
27325 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
27326 for the stabs debug format.
27327
27328 2016-03-21 Richard Biener <rguenther@suse.de>
27329
27330 PR tree-optimization/70310
27331 * tree-vect-generic.c (expand_vector_condition): Fold the built
27332 condition.
27333
27334 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
27335
27336 PR target/70293
27337 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
27338 Block third alternative for AVX-512VL target,
27339
27340 2016-03-21 Martin Liska <mliska@suse.cz>
27341
27342 PR hsa/70234
27343 * hsa-brig.c (emit_function_directives): Mark unemitted
27344 global variables for emission.
27345 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
27346 (get_symbol_for_decl): Likewise.
27347 * hsa.h (struct hsa_symbol): New flag.
27348
27349 2016-03-21 Richard Biener <rguenther@suse.de>
27350
27351 PR tree-optimization/70288
27352 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
27353 we do not estimate unsimplified all-constant conditionals or
27354 switches as optimized away.
27355
27356 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
27357
27358 PR rtl-optimization/69102
27359 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
27360 when we have a readonly dependency context.
27361
27362 2016-03-18 Jeff Law <law@redhat.com>
27363
27364 PR rtl-optimization/70263
27365 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
27366 (update_equiv_regs): When trying to move a store to after the insn
27367 that sets the source of the store, make sure the store occurs after
27368 the insn that sets the source of the store. When successful note
27369 the REG_EQUIV note created in the dump file.
27370
27371 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
27372 Bernd Schmidt <bschmidt@redhat.com>
27373
27374 * doc/extend.texi: Document more potential problems with basic asms.
27375
27376 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
27377
27378 PR rtl-optimization/70278
27379 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
27380 VOIDmode.
27381
27382 2016-03-18 Jason Merrill <jason@redhat.com>
27383
27384 * calls.c (load_register_parameters): Fix zero size sibcall logic.
27385
27386 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
27387
27388 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
27389 values to 128b regs.
27390
27391 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
27392
27393 PR tree-optimization/70252
27394 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
27395 boolean vector has a proper number of elements.
27396 (supportable_narrowing_operation): Likewise.
27397
27398 2016-03-18 Tom de Vries <tom@codesourcery.com>
27399
27400 PR ipa/70269
27401 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
27402
27403 2016-03-18 Jakub Jelinek <jakub@redhat.com>
27404
27405 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
27406 instead of replace_rtx for DEBUG_INSNs.
27407
27408 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27409
27410 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
27411 load type reservations.
27412
27413 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
27414
27415 PR target/70188
27416 * config/pa/constraints.md: Revert 2015-02-13 change. Use
27417 define_constraint for "Q" and "T" constraints.
27418
27419 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
27420
27421 Tweak the pipeline model for Exynos M1
27422
27423 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
27424 model.
27425
27426 2016-03-17 David Malcolm <dmalcolm@redhat.com>
27427
27428 PR c/70264
27429 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
27430 where one or both locations aren't within a line_map.
27431
27432 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
27433
27434 PR driver/70192
27435 * opts.c (finish_options): Don't set flag_pie to the default if
27436 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
27437 if it is -1.
27438
27439 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
27440
27441 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
27442 true as ALL_REGS argument to replace_rtx.
27443
27444 2016-03-17 Richard Biener <rguenther@suse.de>
27445
27446 PR debug/70271
27447 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
27448 last.
27449
27450 2016-03-17 Jakub Jelinek <jakub@redhat.com>
27451
27452 PR target/70245
27453 * rtl.h (replace_rtx): Add ALL_REGS argument.
27454 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
27455 equality and assert mode is the same, instead of just rtx pointer
27456 equality.
27457 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
27458 true as ALL_REGS argument to replace_rtx.
27459
27460 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
27461
27462 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
27463 for boolean vector with vector mode only.
27464 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
27465
27466 2016-03-17 Nick Clifton <nickc@redhat.com>
27467
27468 PR target/70162
27469 * config/rx/rx.c (rx_print_integer): Print negative constants in
27470 decimal.
27471
27472 2016-03-17 Jakub Jelinek <jakub@redhat.com>
27473
27474 PR target/70261
27475 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
27476
27477 2016-03-16 Richard Henderson <rth@redhat.com>
27478 Richard Biener <rguenth@suse.de>
27479
27480 PR middle-end/70240
27481 PR middle-end/68215
27482 PR tree-opt/68714
27483 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
27484 first operand as is_gimple_condexpr.
27485
27486 PR middle-end/70240
27487 PR middle-end/68215
27488 Revert r231575
27489 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
27490 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
27491 Do not gimplify the result.
27492 (do_unop): Adjust call to tree_vec_extract.
27493 (do_binop): Likewise.
27494 (do_compare): Likewise.
27495 (do_plus_minus): Likewise.
27496 (do_negate): Likewise.
27497 (expand_vector_condition): Likewise.
27498 (do_cond): Likewise.
27499
27500 2016-03-16 Richard Henderson <rth@redhat.com>
27501
27502 PR target/70048
27503 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
27504 (aarch64_classify_address): Use it.
27505 (aarch64_legitimize_address): Force all subexpressions of PLUS
27506 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
27507
27508 2016-03-16 Jakub Jelinek <jakub@redhat.com>
27509 Richard Biener <rguenth@suse.de>
27510
27511 PR target/70245
27512 * rtlanal.c (replace_rtx): For REG, if from is a REG,
27513 return to even if only REGNO is equal, and assert
27514 mode is the same.
27515
27516 2016-03-11 Jeff Law <law@redhat.com>
27517
27518 PR rtl-optimization/70224
27519 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
27520
27521 2016-03-16 Richard Henderson <rth@redhat.com>
27522
27523 PR middle-end/70199
27524 * function.h (struct function): Add has_forced_label_in_static.
27525 * gimplify.c (force_labels_r): Set it.
27526 * lto-streamer-in.c (input_struct_function_base): Read it.
27527 * lto-streamer-out.c (output_struct_function_base): Write it.
27528 * tree-inline.c (has_label_address_in_static_1): Remove.
27529 (copy_forbidden): Remove fndecl parameter; test
27530 has_forced_label_in_static.
27531 (inline_forbidden_p): Update call to copy_forbidden.
27532 (tree_versionable_function_p): Likewise.
27533 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
27534 (chkp_versioning): Likewise.
27535 * tree-inline.h (copy_forbidden): Update decl.
27536
27537 2016-03-16 Marek Polacek <polacek@redhat.com>
27538
27539 PR c/70093
27540 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
27541 function being thunked if the result type doesn't have fixed size.
27542 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
27543 doesn't have fixed size.
27544
27545 2016-03-16 Bin Cheng <bin.cheng@arm.com>
27546
27547 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
27548 reporting malformed loop nest.
27549
27550 2016-03-16 Tom de Vries <tom@codesourcery.com>
27551
27552 PR lto/70187
27553 * ipa-devirt.c (possible_polymorphic_call_targets): Move
27554 nodes.length () == 1 test to before first nodes[0] access.
27555
27556 2016-03-16 Tom de Vries <tom@codesourcery.com>
27557
27558 PR tree-optimization/68715
27559 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
27560 single_pred_p test.
27561
27562 2016-03-16 Tom de Vries <tom@codesourcery.com>
27563
27564 PR tree-optimization/68809
27565 * graphite-scop-detection.c (same_close_phi_node): Test if result types
27566 are the same.
27567
27568 2016-03-16 Carlos O'Donell <carlos@redhat.com>
27569 Sandra Loosemore <sandra@codesourcery.com>
27570
27571 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
27572 on leaf attribute. Mention ELF interposition problems.
27573
27574 2016-03-16 Alan Modra <amodra@gmail.com>
27575
27576 PR rtl-optimization/69195
27577 PR rtl-optimization/47992
27578 * ira.c (indirect_jump_optimize): Ignore artificial defs.
27579 Add comments.
27580
27581 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
27582
27583 PR bootstrap/69513
27584 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
27585
27586 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27587
27588 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
27589
27590 2016-03-15 Jakub Jelinek <jakub@redhat.com>
27591
27592 PR rtl-optimization/70222
27593 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
27594 optimization if mode is different from result_mode, queue up masking
27595 of the result in outer_op. Formatting fix.
27596
27597 PR middle-end/70239
27598 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
27599 of safe_grow.
27600
27601 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
27602
27603 PR rtl-optimization/69032
27604 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
27605 looping backwards over basic block insns.
27606
27607 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
27608
27609 PR target/66660
27610 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
27611 to non-speculative when propagating trap bits.
27612
27613 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
27614
27615 PR rtl-optimization/63384
27616 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
27617 DEBUG_INSN_P insns.
27618
27619 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
27620
27621 PR target/64411
27622 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
27623 factored out from ...
27624 (sched_analyze_insn): ... here.
27625 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
27626 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
27627 get_implicit_reg_pending_clobbers in it.
27628 (setup_id_reg_sets): Use setup_id_implicit_regs.
27629 (deps_init_id): Ditto.
27630
27631 2016-03-15 Tom de Vries <tom@codesourcery.com>
27632
27633 PR ipa/70161
27634 * cgraph.c (cgraph_node::get_body): Save, reset and restore
27635 dump_file_name.
27636 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
27637 execute_function_dump.
27638 (execute_one_pass): Don't dump function if it will be dumped after ipa
27639 transform.
27640
27641 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
27642
27643 * genrecog.c (match_pattern_2): If pred is NULL don't call
27644 safe_predicate_mode on it.
27645
27646 2016-03-14 Jakub Jelinek <jakub@redhat.com>
27647
27648 PR middle-end/70219
27649 * lra-constraints.c (delete_move_and_clobber): Change assertion
27650 to also allow dregno == 0.
27651
27652 2016-03-14 Richard Henderson <rth@redhat.com>
27653
27654 PR tree-opt/68714
27655 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
27656 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
27657 (reassociate_bb): Use optimize_vec_cond_expr; avoid
27658 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
27659 on vectors.
27660
27661 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
27662
27663 PR target/70083
27664 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
27665 regs.
27666 (lra_create_live_ranges_1): initialize hard register biggest_mode to
27667 VOIDmode.
27668 * lra-constraints.c (split_reg): For hard regs, try to find the
27669 biggest single-register mode used in the function.
27670
27671 2016-03-14 Richard Biener <rguenther@suse.de>
27672
27673 PR tree-optimization/56365
27674 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
27675 constants to compare against.
27676
27677 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
27678
27679 PR target/70098
27680 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
27681 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
27682 (define_split for the GPR case): Use int_reg_operand instead of
27683 gpc_reg_operand for the output.
27684
27685 2016-03-14 Tom de Vries <tom@codesourcery.com>
27686
27687 PR tree-optimization/70045
27688 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
27689 create_empty_if_region_on_edge argument.
27690
27691 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
27692
27693 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
27694 (STACK_CHECK_PROTECT): Likewise.
27695 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
27696 (STACK_CHECK_PROTECT): Likewise.
27697 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
27698 (STACK_CHECK_PROTECT): Likewise.
27699 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
27700 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
27701 (STACK_CHECK_PROTECT): Likewise.
27702
27703 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
27704
27705 PR rtl-optimization/69307
27706 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
27707 registers in modes that span more than one register.
27708
27709 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
27710
27711 PR target/69614
27712 * lra-constraints.c (delete_move_and_clobber): New.
27713 (remove_inheritance_pseudos): Use it.
27714
27715 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
27716
27717 PR ada/70017
27718 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
27719 the libcall is LCT_THROW.
27720 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
27721 for the checking routine.
27722
27723 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27724
27725 PR target/70131
27726 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
27727 optimization if we have direct move.
27728 (roundu32<mode>2_fprs): Likewise.
27729
27730 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
27731
27732 PR target/70123
27733 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
27734 be rematerialized.
27735 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
27736 Arguments swapped. All callers changed. Take reg_renumber into
27737 account, and Calculate and compare register ranges for hard regs.
27738
27739 2016-03-11 Jeff Law <law@redhat.com>
27740
27741 PR tree-optimization/70190
27742 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27743 Handle cases where we can not extract the taken edge, even though we
27744 found a constant value.
27745
27746 PR tree-optimization/64058
27747 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
27748 (num_coalesce_pairs): Move up earlier in file.
27749 (find_coalesce_pair): Initialize the INDEX field for each pair
27750 discovered.
27751 (compare_pairs): No longer sort on the elements in each pair.
27752 Instead break ties with the index of the coalesce pair.
27753
27754 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27755
27756 PR target/70002
27757 * config/aarch64/aarch64-protos.h
27758 (aarch64_save_restore_target_globals): New prototype.
27759 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
27760 Call the above when popping pragma.
27761 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
27762 New function.
27763 (aarch64_set_current_function): Rewrite using the above.
27764
27765 2016-03-11 Jakub Jelinek <jakub@redhat.com>
27766
27767 PR tree-optimization/70177
27768 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
27769 (extract_ops_from_tree): ... this. In the 2 argument
27770 overload remove _1 suffix.
27771 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
27772 (extract_ops_from_tree): ... this.
27773 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
27774 Adjust callers.
27775 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
27776 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
27777 extract_ops_from_tree instead of 2 operand one.
27778
27779 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
27780
27781 PR tree-optimization/70013
27782 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
27783 for constant-pool entries.
27784
27785 2016-03-11 Jakub Jelinek <jakub@redhat.com>
27786
27787 PR rtl-optimization/70174
27788 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
27789 followed by gen_lowpart on force_reg instead of just gen_lowpart.
27790
27791 PR tree-optimization/70169
27792 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
27793 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
27794 for unknown codes.
27795
27796 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
27797 Jakub Jelinek <jakub@redhat.com>
27798
27799 PR target/70160
27800 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
27801 of uninitialized values.
27802
27803 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27804
27805 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
27806 define_expand.
27807 ("*trunctddd2"): New pattern definition.
27808 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
27809 TD->DD truncation.
27810
27811 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27812
27813 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
27814 definitions for BFP and DFP rounding modes.
27815 ("fixuns_truncdddi2", "fixuns_trunctddi2")
27816 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
27817 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
27818 ("fix_trunctf<mode>2"): Use the new constants instead of magic
27819 numbers.
27820
27821 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27822
27823 * config/s390/constraints.md: Adjust comment.
27824 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
27825 s390_decompose_addrstyle_without_index.
27826 * config/s390/predicates.md (shift_count_or_setmem_operand):
27827 Rename to setmem_operand.
27828 * config/s390/s390-protos.h
27829 (s390_decompose_shift_count): Rename to
27830 s390_decompose_addrstyle_without_index.
27831 * config/s390/s390.c (s390_decompose_shift_count)
27832 (s390_mem_constraint, print_shift_count_operand)
27833 (print_operand_address, print_operand): Rename
27834 s390_decompose_shift_count to
27835 s390_decompose_addrstyle_without_index and rename
27836 print_shift_count_operand to print_addrstyle_operand troughout the
27837 file.
27838 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
27839 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
27840 Rename shift_count_or_setmem_operand to setmem_operand.
27841 * config/s390/vx-builtins.md ("vec_insert<mode>")
27842 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
27843 nonmemory_operand.
27844
27845 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27846
27847 PR target/70168
27848 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
27849 Handle overlapping retval and newval.
27850
27851 2016-03-10 Nick Clifton <nickc@redhat.com>
27852
27853 PR target/7044
27854 * config/aarch64/aarch64.c
27855 (aarch64_override_options_after_change_1): When forcing
27856 flag_omit_frame_pointer to be true, use a special value that can
27857 be detected if this function is called again, thus preventing
27858 flag_omit_leaf_frame_pointer from being forced to be false.
27859
27860 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27861
27862 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
27863 Set x_flag_omit_leaf_frame_pointer when handling
27864 -momit-leaf-frame-pointer.
27865
27866 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
27867
27868 PR lto/69589
27869 * cgraph.c (cgraph_node::dump): Dump split_part and
27870 indirect_call_target.
27871 * cgraph.h (cgraph_node): Add indirect_call_target flag.
27872 * ipa.c (has_addr_references_p): Cleanup.
27873 (is_indirect_call_target_p): New.
27874 (walk_polymorphic_call_targets): Do not mark virtuals that may be
27875 called indirectly as local.
27876 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
27877
27878 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
27879
27880 PR ipa/69630
27881 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
27882 on cxa_pure_virtual.
27883
27884 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
27885
27886 PR lto/69589
27887 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
27888
27889 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
27890
27891 PR lto/69589
27892 * tree.c (need_assembler_name_p): Only record main variant type names.
27893
27894 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
27895
27896 PR target/70113.
27897 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
27898 Always define to 0 or 1.
27899 (TARGET_FIX_ERR_A53_843419): New macro.
27900 * config/aarch64/aarch64-elf-raw.h
27901 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
27902 * config/aarch64/aarch64-linux.h: Likewise.
27903 * config/aarch64/aarch64.c
27904 (aarch64_override_options_after_change_1): Do not default
27905 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
27906 843419 is on.
27907 (aarch64_attributes): Handle fix-cortex-a53-843419.
27908 (aarch64_can_inline_p): Likewise.
27909 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
27910
27911 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
27912 Jakub Jelinek <jakub@redhat.com>
27913
27914 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
27915 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
27916 DECL_COMMONS if flag_unconstrained_commons is set.
27917 * tree-dfa.c (get_ref_base_and_extent): Likewise.
27918 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
27919 (funconstrained-commons): Document.
27920
27921 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
27922
27923 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
27924 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
27925
27926 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
27927
27928 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
27929 has a proper number of elements.
27930
27931 2016-03-10 Alan Modra <amodra@gmail.com>
27932
27933 PR rtl-optimization/69195
27934 PR rtl-optimization/47992
27935 * ira.c (recorded_label_ref): Delete.
27936 (update_equiv_regs): Return void.
27937 (indirect_jump_optimize): New function.
27938 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
27939 before regstat_compute_ri. Don't rebuild_jump_labels here.
27940 Delete update_regstat.
27941
27942 2016-03-10 Richard Biener <rguenther@suse.de>
27943
27944 PR tree-optimization/70128
27945 * tree-ssa-structalias.c (set_uids_in_ptset): Set
27946 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
27947
27948 2016-03-09 Jakub Jelinek <jakub@redhat.com>
27949
27950 PR tree-optimization/70152
27951 * tree-sra.c (replace_removed_params_ssa_names): Copy over
27952 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
27953
27954 PR target/70086
27955 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
27956 instead of gen_sse2_loadlpd.
27957 * config/i386/sse.md (*vec_concatv2df): Rename to...
27958 (vec_concatv2df): ... this.
27959
27960 PR tree-optimization/70127
27961 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
27962
27963 2016-03-09 David Malcolm <dmalcolm@redhat.com>
27964
27965 PR c/68473
27966 PR c++/70105
27967 * diagnostic-show-locus.c (compatible_locations_p): New function.
27968 (layout::layout): Sanitize ranges using compatible_locations_p.
27969
27970 2016-03-09 David Malcolm <dmalcolm@redhat.com>
27971
27972 PR c/68473
27973 PR c++/70105
27974 * diagnostic-show-locus.c (layout_range::layout_range): Replace
27975 location_range param with three const expanded_locations * and a
27976 bool.
27977 (layout::layout): Replace call to
27978 rich_location::lazily_expand_location with get_expanded_location.
27979 Extract the range and perform location expansion here, passing
27980 the results to the layout_range ctor.
27981 * diagnostic.c (source_range::debug): Delete.
27982 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
27983 of rich_location::get_expanded_location.
27984 * gcc-rich-location.c (get_range_for_expr): Delete.
27985 (gcc_rich_location::add_expr): Reimplement to avoid the
27986 rich_location::add_range overload that took a location_range,
27987 passing a location_t instead.
27988
27989 2016-03-09 Richard Biener <rguenther@suse.de>
27990 Jakub Jelinek <jakub@redhat.com>
27991
27992 PR tree-optimization/70138
27993 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
27994 Also skip vect_double_reduction_def.
27995
27996 2016-03-09 Jakub Jelinek <jakub@redhat.com>
27997
27998 PR target/70049
27999 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
28000 if the operand is "m".
28001
28002 2016-03-09 Nathan Sidwell <nathan@acm.org>
28003
28004 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
28005
28006 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28007
28008 * config/i386/i386.c (processor_target_table): Fix cost table
28009 intialization order for znver1.
28010
28011 2016-03-08 Jakub Jelinek <jakub@redhat.com>
28012
28013 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
28014 - becuase -> because.
28015 * ipa-reference.c (ignore_module_statics): Likewise.
28016 * cgraph.c (cgraph_node::get_body): Likewise.
28017 * ipa-inline.c (early_inliner): Likewise.
28018 * ipa-devirt.c (types_same_for_odr): Likewise.
28019 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
28020 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
28021
28022 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28023
28024 * tree-ssa-math-opts.c: Fix typo in comment.
28025
28026 2016-03-08 Jakub Jelinek <jakub@redhat.com>
28027
28028 PR target/70110
28029 * config/i386/i386.c (scalar_chain::make_vector_copies,
28030 scalar_chain::convert_reg): Call end_sequence in between
28031 get_insns and emit_conversion_insns rather than after both
28032 calls.
28033
28034 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
28035
28036 PR target/70064
28037 * config/i386/i386.h (machine_function): Add
28038 pc_thunk_call_expanded flag.
28039 (ix86_pc_thunk_call_expanded): New define.
28040 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
28041 (*set_got): Rename insn pattern from set_got.
28042 (*set_got_labelled): Rename inst pattern from set_got_labelled.
28043 * config/i386/i386.c (ix86_compute_frame_layout): Use
28044 ix86_pc_thunk_call_expanded to prevent red-zone.
28045
28046 2016-03-07 Martin Jambor <mjambor@suse.cz>
28047
28048 * hsa.h (hsa_get_ctor_statements): Declare.
28049 (hsa_get_dtor_statements): Likewise.
28050 (hsa_get_kernel_dispatch_type): Likewise.
28051 * hsa.c (hsa_get_ctor_statements): New function.
28052 (hsa_get_dtor_statements): Likewise.
28053 (hsa_get_kernel_dispatch_type): Likewise.
28054 * hsa-brig.c (hsa_cdtor_statements): Removed.
28055 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
28056 hsa_get_dtor_statements.
28057 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
28058 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
28059
28060 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
28061
28062 * config/arm/arm-cores.def (cortex-r8): New.
28063 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
28064 * config/arm/arm-tune.md: Likewise.
28065 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
28066
28067 2016-03-07 Martin Sebor <msebor@redhat.com>
28068
28069 PR rtl-optimization/19705
28070 * doc/invoke.texi (Options That Control Optimization): Clarify
28071 -fno-branch-count-reg.
28072
28073 2016-02-26 Richard Biener <rguenther@suse.de>
28074 Jeff Law <law@redhat.com>
28075
28076 PR tree-optimization/69740
28077 * cfghooks.c (remove_edge): Request loop fixups if we delete
28078 an edge that might turn an irreducible loop into a natural
28079 loop.
28080 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
28081 Move after definition of loops_state_clear.
28082
28083 2016-03-07 Bin Cheng <bin.cheng@arm.com>
28084
28085 PR rtl-optimization/69052
28086 * rtlanal.c (commutative_operand_precedence): Set higher precedence
28087 to CONST_WIDE_INT.
28088
28089 2016-03-07 Tom de Vries <tom@codesourcery.com>
28090
28091 PR tree-optimization/70116
28092 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
28093 is_tm_ending stmts and ubsan/asan internal functions.
28094 (find_duplicate): Use it. Don't test is_tm_ending here.
28095
28096 2016-03-07 Richard Biener <rguenther@suse.de>
28097
28098 PR tree-optimization/70115
28099 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
28100 (propagate_constants_for_unrolling): Use replace_uses_by.
28101
28102 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
28103
28104 PR middle-end/69916
28105 * omp-low.c (struct oacc_loop): Add ifns.
28106 (new_oacc_loop_raw): Initialize it.
28107 (finish_oacc_loop): Clear mask & flags if no ifns.
28108 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
28109 (oacc_loop_xform_loop): Add ifns arg & adjust.
28110 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
28111
28112 2016-03-07 Richard Henderson <rth@redhat.com>
28113
28114 PR rtl-opt/70061
28115 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
28116 (insert_value_copy_on_edge): Likewise.
28117
28118 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28119
28120 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
28121
28122 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28123
28124 PR target/62281
28125 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
28126
28127 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
28128
28129 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
28130
28131 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
28132
28133 Fix sseimul type attribute.
28134 * config/i386/znver1.md
28135 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
28136 znver1_sseimul_avx256_load) : Fix the type attribute.
28137 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
28138 pipe usage and latency.
28139
28140 2016-03-05 Jakub Jelinek <jakub@redhat.com>
28141
28142 PR c++/70084
28143 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
28144 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
28145 to the right type.
28146
28147 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
28148
28149 PR c/69973
28150 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
28151
28152 PR rtl-optimization/69941
28153 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
28154 the reg share its mode.
28155
28156 2016-03-04 Jeff Law <law@redhat.com>
28157
28158 PR tree-optimization/69196
28159 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28160 If the both SSA_NAMEs are anonymous, then consider them unassociated
28161 and include the PHI in the statement count.
28162
28163 2016-03-05 Tom de Vries <tom@codesourcery.com>
28164
28165 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
28166 construct in oacc routine. Check for oacc region in oacc routine.
28167
28168 2016-03-04 Jakub Jelinek <jakub@redhat.com>
28169
28170 PR target/70062
28171 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
28172 2016-02-22 changes, instead don't recurse if RECUR is already true.
28173 Don't change *dynamic_check if RECUR. Adjust recursive caller
28174 to pass true to the new argument.
28175 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
28176
28177 PR target/70059
28178 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
28179 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
28180 fixes.
28181 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
28182
28183 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
28184
28185 PR rtl-optimization/57676
28186 * lra-assigns.c (lra_assign): Guard test for maximum iterations
28187 with flag_checking.
28188
28189 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
28190
28191 * tree-vect-patterns.c (search_type_for_mask): Handle
28192 comparison of booleans.
28193
28194 2016-03-04 Jakub Jelinek <jakub@redhat.com>
28195
28196 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
28197 Fix @xref usage.
28198
28199 PR debug/69947
28200 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
28201 all other ops that have dw_val_class_die_ref operands,
28202 and DW_OP_GNU_entry_value.
28203
28204 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28205
28206 PR rtl-optimization/69904
28207 * config/arm/arm.c (arm_cannot_copy_insn_p):
28208 Return true for load-exclusive instructions.
28209
28210 2016-03-03 Jakub Jelinek <jakub@redhat.com>
28211
28212 PR target/70021
28213 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
28214 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
28215 the pattern no matter if it is used just by non-pattern, pattern
28216 or mix thereof.
28217 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
28218 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
28219 oprnd1 def_stmt is in pattern, don't look through it.
28220
28221 2016-03-03 Marek Polacek <polacek@redhat.com>
28222
28223 PR middle-end/70050
28224 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
28225
28226 2016-03-03 Martin Liska <mliska@suse.cz>
28227
28228 PR tree-optimization/70043
28229 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
28230 previous statement if we see a debug statement.
28231
28232 2016-03-03 Richard Biener <rguenther@suse.de>
28233
28234 PR tree-optimization/55936
28235 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
28236 parameter and guard unsafe equivalence use.
28237 (vrp_evaluate_conditional_warnv_with_ops): Always use
28238 safe equivalences but not via the quadratic compare_names
28239 helper.
28240
28241 2016-03-03 Michael Collison <michael.collison@linaro.org>
28242
28243 PR target/70014
28244 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
28245 for operand 1 to s_register_operand. Change predicate for operand
28246 2 to arm_not_immediate_operand.
28247
28248 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
28249
28250 * doc/tm.texi: Regenerated.
28251
28252 2016-03-02 Richard Henderson <rth@redhat.com>
28253
28254 PR rtl-opt/67145
28255 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
28256 simplification when all args are positive non-fixed registers.
28257
28258 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
28259
28260 * target.def (lra_p): Specify that new ports should use LRA.
28261
28262 2016-03-02 Jakub Jelinek <jakub@redhat.com>
28263
28264 PR libgomp/69555
28265 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
28266 gimplify_type_sizes the type they refer to.
28267 (omp_notice_variable): Handle reference vars to VLAs.
28268 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
28269 reference to VLA decls in the second pass instead of first pass.
28270
28271 2016-03-02 Tom de Vries <tom@codesourcery.com>
28272
28273 PR tree-optimization/68659
28274 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
28275 new_expr == NULL_TREE.
28276 (get_new_name): Handle ADDR_EXPR.
28277
28278 2016-03-02 Bin Cheng <bin.cheng@arm.com>
28279
28280 PR rtl-optimization/69052
28281 * loop-invariant.c (canonicalize_address): New function.
28282 (inv_can_prop_to_addr_use): Check validity of address expression
28283 which is canonicalized by above function.
28284
28285 2016-03-02 Alan Modra <amodra@gmail.com>
28286
28287 PR ipa/69990
28288 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
28289 larger alignment.
28290
28291 2016-03-02 Jakub Jelinek <jakub@redhat.com>
28292
28293 PR target/70028
28294 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
28295 (*movhi_internal): Put mask moves from and to memory separately
28296 from moves from/to GPRs.
28297
28298 2016-03-02 Richard Biener <rguenther@suse.de>
28299
28300 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
28301 GENERIC expressions in GIMPLE.
28302
28303 2016-03-02 Richard Biener <rguenther@suse.de>
28304
28305 * config/i386/i386.c (type_natural_mode): Fix typo.
28306
28307 2016-03-02 Nick Clifton <nickc@redhat.com>
28308
28309 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
28310
28311 2016-03-02 Richard Biener <rguenther@suse.de>
28312 Uros Bizjak <ubizjak@gmail.com>
28313
28314 PR target/67278
28315 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
28316
28317 2016-03-02 Richard Biener <rguenther@suse.de>
28318
28319 PR middle-end/67278
28320 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
28321
28322 2016-03-02 Marek Polacek <polacek@redhat.com>
28323
28324 PR c/67854
28325 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
28326 "is promoted to" warning.
28327
28328 2016-03-01 DJ Delorie <dj@redhat.com>
28329
28330 * config.gcc: Deprecate mep-*.
28331
28332 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
28333
28334 PR middle-end/70025
28335 * lra-constraints.c (regno_val_use_in): New.
28336 (match_reload): Use it instead of regno_use_in.
28337
28338 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
28339
28340 PR rtl-optimization/70007
28341 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
28342 references present in REG_EQUAL notes attached to non-SET patterns.
28343
28344 2016-03-01 Jeff Law <law@redhat.com>
28345
28346 PR tree-optimization/69196
28347 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28348 Appropriately clamp the number of statements to copy when the
28349 thread path does not traverse a loop backedge.
28350
28351 PR tree-optimization/69196
28352 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28353 Do count some PHIs in the thread path against the insn count. Decrease
28354 final statement count by one as the control statement in the last
28355 block will get removed. Remove special cased code for handling PHIs
28356 in the last block.
28357
28358 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
28359
28360 PR target/70027
28361 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
28362 asm dialect alternatives to explicit GOTPCREL calls.
28363
28364 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
28365
28366 PR ada/70017
28367 * ira.c (do_reload): Issue warning for generic stack checking here...
28368 * reload1.c (reload): ...instead of here and streamline it.
28369
28370 2016-03-01 Nick Clifton <nickc@redhat.com>
28371
28372 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
28373
28374 2016-03-01 Richard Biener <rguenther@suse.de>
28375
28376 PR tree-optimization/69983
28377 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
28378 types and fall back to operand_equal_p.
28379
28380 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28381
28382 Revert
28383 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28384
28385 * config/s390/constraints.md ("jm8"): New constraint.
28386 * config/s390/predicates.md ("const_int_8bitset_operand"): New
28387 predicate.
28388 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
28389 into ...
28390 ("*setmem_long<setmem_and>"): New pattern.
28391 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
28392 into ...
28393 ("*setmem_long_31z<setmem_and>"): New pattern.
28394 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
28395 New substitution rules with the required attributes.
28396
28397
28398 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28399
28400 Revert
28401 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28402
28403 * gensupport.c (process_substs_on_one_elem): Split loop to
28404 complete mark_operands_used_in_match_dup on all expressions in the
28405 vector first.
28406 (adjust_operands_numbers): Inline into process_substs_on_one_elem
28407 and remove function.
28408
28409 2016-03-01 Richard Biener <rguenther@suse.de>
28410
28411 PR middle-end/70022
28412 * fold-const.c (fold_indirect_ref_1): Fix range checking for
28413 vector BIT_FIELD_REF extract.
28414
28415 2016-03-01 Richard Biener <rguenther@suse.de>
28416
28417 PR tree-optimization/69994
28418 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
28419
28420 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
28421
28422 PR tree-optimization/69956
28423 * tree-vect-stmts.c (supportable_widening_operation): Support
28424 multi-step conversion of boolean vectors.
28425 (supportable_narrowing_operation): Likewise.
28426
28427 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28428
28429 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
28430 anymore.
28431
28432 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28433
28434 * config/s390/subst.md (DSI_VI): New mode iterator.
28435 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
28436 * config/s390/vector.md ("vec_set<mode>"): Move expander before
28437 the insn definition.
28438 ("*vec_set<mode>"): Change predicate and add alternative to
28439 support only either register or const_int operands as element
28440 selector.
28441 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
28442 operands.
28443 ("vec_extract<mode>"): New expander.
28444 ("*vec_extract<mode>"): New insn definition supporting reg and
28445 const_int element selectors.
28446 ("*vec_extract<mode>_plus"): New insn definition supporting
28447 reg+const_int element selectors.
28448 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
28449 following expander+insn definition.
28450 ("<vec_shifts_name><mode>3"): New expander.
28451 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
28452
28453 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28454
28455 * config/s390/s390.md ("*tabort_1"): Change predicate to
28456 nonmemory_operand. Add a second alternative to cover
28457 register as well as const int operands.
28458 ("*tabort_1_plus"): New pattern definition.
28459
28460 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28461
28462 * config/s390/s390.md ("*ashrdi3_cc_31")
28463 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
28464 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
28465 Merge insn definitions into ...
28466 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
28467 New pattern definition.
28468 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
28469 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
28470 ("*ashr<mode>3_and"): Merge insn definitions into ...
28471 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
28472 New pattern definition.
28473 * config/s390/subst.md ("addr_style_op_cc_subst")
28474 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
28475 substitutions patterns plus attributes.
28476 Add ashiftrt to SUBST iterator.
28477
28478 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28479
28480 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
28481 op2 to nonmemory_operand.
28482 ("*<shift>di3_31", "*<shift>di3_31_and"):
28483 Merge into single pattern definition ...
28484 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
28485 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
28486 pattern definition ...
28487 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
28488 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
28489 iterator.
28490
28491 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28492
28493 * config/s390/predicates.md (const_int_6bitset_operand): New
28494 predicate.
28495 * config/s390/s390.md: Include subst.md.
28496 ("rotl<mode>3"): New expander.
28497 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
28498 ...
28499 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
28500 * config/s390/subst.md: New file.
28501
28502 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28503
28504 * config/s390/s390.md ("op_type", "atype", "length" attributes):
28505 Remove RRR type. It doesn't really exist.
28506 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
28507 attributes.
28508 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
28509 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
28510 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
28511 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
28512 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
28513 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
28514 `enabled' attribute.
28515
28516 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28517
28518 * gensupport.c (process_substs_on_one_elem): Split loop to
28519 complete mark_operands_used_in_match_dup on all expressions in the
28520 vector first.
28521 (adjust_operands_numbers): Inline into process_substs_on_one_elem
28522 and remove function.
28523
28524 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
28525
28526 PR target/69706
28527 * config/sparc/sparc.c (NWORDS_UP): Rename to...
28528 (CEIL_NWORDS): ...this. Use CEIL macro.
28529 (compute_fp_layout): Adjust to above renaming.
28530 (function_arg_union_value): Likewise.
28531 (sparc_arg_partial_bytes): Likewise.
28532 (sparc_function_arg_advance): Likewise.
28533
28534 2016-02-29 Jeff Law <law@redhat.com>
28535
28536 PR tree-optimization/70005
28537 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
28538 where an object with a boolean range is compared against a value
28539 outside [0..1].
28540
28541 PR tree-optimization/69999
28542 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
28543 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
28544 loop cleanups.
28545
28546 2016-02-29 Richard Biener <rguenther@suse.de>
28547
28548 PR tree-optimization/69994
28549 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
28550 (get_unary_op): Look through nop conversions.
28551 (ops_equal_values_p): New function, look for equality diregarding
28552 nop conversions.
28553 (eliminate_plus_minus_pair): Use ops_equal_values_p
28554 (repropagate_negates): Do not use get_unary_op here.
28555
28556 2016-02-29 Martin Liska <mliska@suse.cz>
28557
28558 * system.h: Poison ENABLE_CHECKING macro.
28559
28560 2016-02-29 Martin Liska <mliska@suse.cz>
28561
28562 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
28563 is presented in dump flags.
28564 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
28565 (hsa_regalloc): Likewise.
28566
28567 2016-02-19 Richard Biener <rguenther@suse.de>
28568
28569 PR tree-optimization/69980
28570 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
28571 permutation of those we need to keep.
28572
28573 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
28574
28575 PR target/69706
28576 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
28577 (NWORDS_UP): ...this
28578 (init_cumulative_args): Minor tweaks.
28579 (sparc_promote_function_mode): Likewise.
28580 (scan_record_type): Delete.
28581 (traverse_record_type): New function template.
28582 (classify_data_t): New structure type.
28583 (classify_registers): New inline function.
28584 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
28585 exhausted. Instantiate traverse_record_type on classify_registers and
28586 deal with the case of a structure passed in slot #15 with no FP field
28587 in the first word.
28588 (assign_data_t): New structure type.
28589 (compute_int_layout): New static function.
28590 (compute_fp_layout): Likewise.
28591 (count_registers): New inline function.
28592 (assign_int_registers): New static function.
28593 (assign_fp_registers): Likewise.
28594 (assign_registers): New inline function.
28595 (function_arg_record_value_1): Delete.
28596 (function_arg_record_value_2): Likewise.
28597 (function_arg_record_value_3): Likewise.
28598 (function_arg_record_value): Adjust to above changes. Instantiate
28599 traverse_record_type on count_registers to first count the number of
28600 registers to be used and then on assign_registers to assign them.
28601 (function_arg_union_value): Adjust to above renaming.
28602 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
28603 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
28604 case of a structure passed in slot #15
28605 (sparc_function_arg_advance): Likewise.
28606 (function_arg_padding): Minor tweak.
28607
28608 2016-02-29 Richard Biener <rguenther@suse.de>
28609
28610 PR tree-optimization/69720
28611 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
28612 the adjustment_def path for possibly vectorized defs.
28613 (vect_create_epilog_for_reduction): Handle vectorized initial
28614 defs properly.
28615
28616 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
28617
28618 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
28619
28620 2016-02-27 Jeff Law <law@redhat.com>
28621
28622 Revert
28623 2016-02-26 Richard Biener <rguenther@suse.de>
28624 Jeff Law <law@redhat.com>
28625
28626 PR tree-optimization/69740
28627 * cfghooks.c (remove_edge): Request loop fixups if we delete
28628 an edge that might turn an irreducible loop into a natural
28629 loop.
28630
28631 2016-02-27 Jakub Jelinek <jakub@redhat.com>
28632
28633 PR rtl-optimization/69896
28634 * tree-vect-generic.c (get_compute_type): Avoid single element
28635 vector types.
28636
28637 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
28638
28639 Rename the AArch64 tuning option and related functions to enable the
28640 Newton series for the reciprocal square root to reflect its
28641 approximative characteristic.
28642
28643 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
28644 function to "aarch64_emit_approx_rsqrt".
28645 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
28646 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
28647 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
28648 (xgene1_tunings): Likewise.
28649 (use_rsqrt_p): Likewise.
28650 (aarch64_emit_swrsqrt): Use new function name.
28651 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
28652 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
28653 text explaining this option.
28654 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
28655
28656 2016-02-26 Jakub Jelinek <jakub@redhat.com>
28657
28658 PR target/69969
28659 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28660 complain about -mallow-movmisalign without -mvsx if
28661 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
28662
28663 2016-02-26 Joel Sherrill <joel@rtems.org>
28664
28665 * config.gcc: Add x86_64-*-rtems*.
28666 * config/i386/rtems-64.h: New file.
28667
28668 2016-02-26 Joel Sherrill <joel@rtems.org>
28669
28670 * config.gcc: Add aarch64-*-rtems*.
28671 * config/aarch64/rtems.h: New file.
28672
28673 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
28674
28675 PR target/69946
28676 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
28677 shift amount using %h. Add comment.
28678
28679 2016-02-26 Richard Biener <rguenther@suse.de>
28680 Jeff Law <law@redhat.com>
28681
28682 PR tree-optimization/69740
28683 * cfghooks.c (remove_edge): Request loop fixups if we delete
28684 an edge that might turn an irreducible loop into a natural
28685 loop.
28686
28687 2016-02-26 Martin Jambor <mjambor@suse.cz>
28688
28689 PR middle-end/69920
28690 * tree-sra.c (sra_modify_assign): Do not remove loads of
28691 uninitialized aggregates to SSA_NAMEs.
28692
28693 2016-02-26 Richard Henderson <rth@redhat.com>
28694
28695 PR target/69709
28696 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
28697 pseudo in case the target rtx matches the source of the left
28698 shift.
28699
28700 2016-02-26 Martin Jambor <mjambor@suse.cz>
28701
28702 PR hsa/69568
28703 * hsa.h (hsa_type_packed_p): Declare.
28704 * hsa.c (hsa_type_packed_p): New function.
28705 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
28706 loads.
28707 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
28708 * hsa-brig.c (emit_basic_insn): Likewise.
28709
28710 2016-02-26 Martin Jambor <mjambor@suse.cz>
28711
28712 pr hsa/69674
28713 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
28714 pointers.
28715 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
28716
28717 2016-02-26 Martin Jambor <mjambor@suse.cz>
28718
28719 * hsa.h (is_a_helper): New overload for hsa_op_immed for
28720 hsa_op_with_type operands.
28721 (hsa_unsigned_type_for_type): Declare.
28722 * hsa.c (hsa_unsigned_type_for_type): New function.
28723 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
28724 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
28725 the finalizer. Do not emit extra move.
28726
28727 2016-02-26 Martin Jambor <mjambor@suse.cz>
28728
28729 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
28730 atomic operations in private segment.
28731
28732 2016-02-26 Martin Jambor <mjambor@suse.cz>
28733
28734 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
28735 statements to wi->info. Also disallow omp simd constructs.
28736 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
28737 for not gridifying. Dump special string for omp_for.
28738
28739 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28740
28741 PR target/69245
28742 * config/aarch64/aarch64.c (aarch64_set_current_function):
28743 Save/restore target globals when switching to
28744 target_option_default_node.
28745
28746 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28747
28748 PR target/69613
28749 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
28750 Return 0 if !SHIFT_COUNT_TRUNCATED.
28751
28752 2016-02-26 Jakub Jelinek <jakub@redhat.com>
28753 Eric Botcazou <ebotcazou@adacore.com>
28754
28755 PR rtl-optimization/69891
28756 * dse.c (scan_insn): If we can't figure out memset arguments
28757 or they are non-constant, call clear_rhs_from_active_local_stores.
28758
28759 2016-02-26 Martin Liska <mliska@suse.cz>
28760
28761 * doc/extend.texi: Mention clog10, clog10f an clog10l
28762 in Builtins section.
28763
28764 2016-02-26 Martin Liska <mliska@suse.cz>
28765
28766 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
28767 CHECKING_P.
28768 (resolve_args_picking_1): Likewise.
28769 * dwarf2out.h (struct GTY): Likewise.
28770
28771 2016-02-26 Martin Liska <mliska@suse.cz>
28772
28773 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
28774 with flag_checking.
28775 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
28776
28777 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
28778 Martin Liska <mliska@suse.cz>
28779
28780 * doc/install.texi: Mention --enable-valgrind-annotations.
28781
28782 2016-02-26 Richard Biener <rguenther@suse.de>
28783
28784 PR tree-optimization/69551
28785 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
28786 looking through aliases adjust DECL_PT_UID to refer to the
28787 ultimate alias target.
28788
28789 2016-02-25 Martin Liska <mliska@suse.cz>
28790
28791 PR middle-end/69919
28792 * alloc-pool.c (after_memory_report): New variable.
28793 * alloc-pool.h (base_pool_allocator ::release): Do not use
28794 the infrastructure if after_memory_report.
28795 * toplev.c (toplev::main): Mark after memory report.
28796
28797 2016-02-25 Richard Biener <rguenther@suse.de>
28798
28799 PR tree-optimization/48795
28800 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
28801
28802 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
28803
28804 PR driver/68463
28805 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
28806 offloading is enabled and -fopenacc or -fopenmp is specified.
28807 (CRTOFFLOADEND): Likewise.
28808 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
28809 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
28810 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
28811 (offload_objects_file_name): New static var.
28812 (tool_cleanup): Remove offload_objects_file_name file.
28813 (find_offloadbeginend): Replace with ...
28814 (find_crtoffloadtable): ... this.
28815 (run_gcc): Remove offload_argc and offload_argv.
28816 Get offload_objects_file_name from -foffload-objects=... option.
28817 Read names of object files with offload from this file, pass them to
28818 compile_images_for_offload_targets. Don't call find_offloadbeginend and
28819 don't pass offloadbegin and offloadend to the linker. Don't pass
28820 offload non-LTO files to the linker, because now they're not claimed.
28821
28822 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
28823
28824 PR ipa/69630
28825 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
28826 on builtin_unreachable.
28827
28828 2016-02-25 Jakub Jelinek <jakub@redhat.com>
28829
28830 PR rtl-optimization/69896
28831 * regcprop.c: Include cfgrtl.h.
28832 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
28833 than remembered mode, either delete it (if noop_move_p), or
28834 treat like copy_p but not noop_p instruction.
28835
28836 2016-02-24 Jakub Jelinek <jakub@redhat.com>
28837
28838 PR debug/69705
28839 * dwarf2out.c (gen_variable_die): Work around buggy LTO
28840 - allow NULL decl for Fortran DW_TAG_common_block variables.
28841
28842 2016-02-24 Jason Merrill <jason@redhat.com>
28843
28844 * common.opt (flifetime-dse): Add -flifetime-dse=1.
28845
28846 2016-02-24 Richard Biener <rguenther@suse.de>
28847 Jakub Jelinek <jakub@redhat.com>
28848
28849 PR middle-end/69760
28850 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
28851 conditionally executed ops to well-defined overflow behavior.
28852
28853 2016-02-24 Jakub Jelinek <jakub@redhat.com>
28854
28855 PR middle-end/69915
28856 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
28857 elements.
28858
28859 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28860
28861 PR rtl-optimization/69886
28862 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
28863 argument. Use it when checking validity of set instructions.
28864 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
28865 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
28866 callsite.
28867 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
28868 * store-motion.c (find_moveable_store): Update
28869 can_assign_to_reg_without_clobbers_p callsite.
28870
28871 2016-02-24 Richard Biener <rguenther@suse.de>
28872
28873 PR middle-end/68963
28874 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
28875 bogus check.
28876 (record_nonwrapping_iv): Do not fall back to the low/high bound
28877 for non-constant IV bases if the stmt is not always executed.
28878
28879 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28880
28881 * config/arm/arm-cores.def (cortex-a32): New entry.
28882 * config/arm/arm-tables.opt: Regenerate.
28883 * config/arm/arm-tune.md: Regenerate.
28884 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
28885 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
28886 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
28887 for -mcpu and -mtune.
28888
28889 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28890
28891 PR target/69875
28892 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
28893 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
28894 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
28895 (atomic_loaddi_1): Delete.
28896 (atomic_loaddi): Rewrite expander using the above changes.
28897
28898 2016-02-24 Jakub Jelinek <jakub@redhat.com>
28899
28900 PR c/69918
28901 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
28902 2 to 3.
28903
28904 2016-02-24 Jakub Jelinek <jakub@redhat.com>
28905 Richard Biener <rguenth@suse.de>
28906
28907 PR middle-end/69909
28908 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
28909 set_mem_attributes if tem is SSA_NAME which got expanded
28910 as a MEM.
28911
28912 2016-02-24 Richard Biener <rguenther@suse.de>
28913
28914 PR tree-optimization/69907
28915 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
28916 end of permutations for BB vectorization.
28917
28918 2016-02-24 Christian Bruel <christian.bruel@st.com>
28919
28920 * config/arm/arm-c.c (arm_option_override): Initialize
28921 target_option_current_node.
28922 * config/arm/arm.c (arm_pragma_target_parse): Replace
28923 build_target_option_node call by target_option_current_node.
28924 Set target_option_current_node.
28925 Fix comments.
28926
28927 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
28928
28929 PR target/69810
28930 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
28931 define_insn_and_split to define_insn.
28932 (zero_extendqi<mode>2_dot2): Same.
28933 (extendqi<mode>2_dot): Same.
28934 (extendqi<mode>2_dot2): Same.
28935
28936 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
28937
28938 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
28939 and add bypass for AES{D,E} and AESMC pairs.
28940 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
28941 and AESMC pairs.
28942
28943 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
28944
28945 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
28946 series for reciprocal square root in Exynos M1.
28947
28948 2016-02-23 Martin Sebor <msebor@redhat.com>
28949
28950 PR c/69759
28951 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
28952 __builtin_alloca_with_align.
28953
28954 2016-02-23 Richard Henderson <rth@redhat.com>
28955
28956 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
28957 (ix86_register_pragmas): Remove __seg_tls.
28958 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
28959 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
28960 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
28961 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
28962 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
28963 * doc/extend.texi (__seg_tls): Remove item.
28964
28965 2016-02-23 Richard Biener <rguenther@suse.de>
28966
28967 * alloc-pool.h (struct allocation_object): Make id member
28968 conditional on CHECKING_P again.
28969 (get_instance): Adjust.
28970 (base_pool_allocator): Likewise.
28971
28972 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
28973
28974 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
28975 (parallelize_loops): In OpenACC kernels mode, set n_threads to
28976 zero.
28977 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
28978 flag_openacc.
28979 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
28980
28981 2016-02-23 Richard Biener <rguenther@suse.de>
28982
28983 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
28984 * bitmap.h (struct bitmap_usage): Likewise.
28985 (bitmap_move): Declare.
28986 * bitmap.c (register_overhead): Take size_t argument.
28987 (bitmap_move): New function.
28988 * df-problems.c (df_rd_transfer_function): Use bitmap_move
28989 to properly account overhead.
28990 * tree.c (free_node): Use tree_size.
28991
28992 2016-02-23 Jakub Jelinek <jakub@redhat.com>
28993
28994 PR c++/69902
28995 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
28996 when inverting comparison.
28997
28998 PR c/69900
28999 * common.opt (Wunreachable-code): Add Warning flag.
29000
29001 2016-02-23 Mark Wielaard <mjw@redhat.com>
29002 Jakub Jelinek <jakub@redhat.com>
29003
29004 PR c/69911
29005 * cgraphunit.c (check_global_declaration): Check main_input_filename
29006 and DECL_SOURCE_FILE are not NULL.
29007
29008 2016-02-23 Martin Jambor <mjambor@suse.cz>
29009
29010 PR tree-optimization/69666
29011 * tree-sra.c (sra_modify_assign): Do not attempt to create
29012 default_def replacements for unscalarizable regions.
29013
29014 2016-02-20 Mark Wielaard <mjw@redhat.com>
29015
29016 PR c/28901
29017 * cgraphunit.c (check_global_declaration): Check level of
29018 warn_unused_const_variable and main_input_filename.
29019 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
29020 (-Wunused-variable): For C implies -Wunused-const-variable=1.
29021 (-Wunused-const-variable): Explain levels 1 and 2.
29022
29023 2016-02-22 Jakub Jelinek <jakub@redhat.com>
29024
29025 PR target/69888
29026 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
29027 identical arguments. Formatting and spelling fixes.
29028
29029 PR target/69885
29030 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
29031 be specified.
29032
29033 PR target/69894
29034 PR target/69895
29035 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
29036 and m68k-devices.def.
29037 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
29038 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
29039
29040 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
29041
29042 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
29043 and HImode registers.
29044
29045 2016-02-22 Richard Biener <rguenther@suse.de>
29046
29047 PR tree-optimization/69882
29048 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
29049 preserve permutations present because of gaps.
29050 (vect_supported_load_permutation_p): Always continue checking
29051 permutations after vect_attempt_slp_rearrange_stmts.
29052
29053 2016-02-22 Bin Cheng <bin.cheng@arm.com>
29054
29055 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
29056 min_profitable_estimate, rather than min_profitable_iters.
29057
29058 2016-02-22 Jakub Jelinek <jakub@redhat.com>
29059
29060 PR target/69885
29061 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
29062 SImode for last match_operand.
29063
29064 2016-02-22 Martin Liska <mliska@suse.cz>
29065
29066 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
29067 return bitsize - 1 as the return value.
29068
29069 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
29070
29071 PR target/69806
29072 PR target/54089
29073 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
29074 Handle negative shift counts.
29075 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
29076 force_reg on the shift constant.
29077 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
29078 (lshrsi3_d): Handle negative shift counts.
29079
29080 2016-02-22 Richard Biener <rguenther@suse.de>
29081 Tom de Vries <tom@codesourcery.com>
29082
29083 * graph.c: Include dumpfile.h.
29084 (print_graph_cfg): Split into three overloads.
29085 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
29086
29087 2016-02-22 Tom de Vries <tom@codesourcery.com>
29088
29089 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
29090 dump-fn.
29091
29092 2016-02-22 Richard Biener <rguenther@suse.de>
29093
29094 PR ipa/37448
29095 * ipa-inline-transform.c (inline_call): When not updating
29096 overall summaries adjust self size by the growth estimate.
29097 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
29098 hash-set, do not update overall summaries here. Renamed from ...
29099 (inline_to_all_callers): ... this which is now wrapping the
29100 above and performing delayed overall summary update.
29101 (early_inline_small_functions): Delay updating of the overall
29102 summary.
29103
29104 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
29105
29106 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
29107 variable.
29108
29109 2016-02-19 Jakub Jelinek <jakub@redhat.com>
29110
29111 PR driver/69805
29112 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
29113 :%* in %:gt() argument.
29114 (greater_than_spec_func): Adjust for expecting only numbers,
29115 if there are more than two numbers, compare the last two.
29116
29117 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
29118
29119 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
29120 -Wnarrowing with -std.
29121
29122 2016-02-19 Jakub Jelinek <jakub@redhat.com>
29123
29124 PR c++/69851
29125 * expr.c (store_field): Don't use bit-field path if exp is
29126 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
29127 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
29128 and the assignment can be performed by bitwise copy. Formatting
29129 fix.
29130
29131 PR middle-end/69838
29132 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
29133 call copy_reg_eh_region_note_forward on before and/or after sequences
29134 and remove note from insn if it no longer can throw.
29135
29136 PR target/69820
29137 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
29138 if TARGET_AVX512BW.
29139
29140 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29141
29142 * config/s390/vector.md: Add missing commutative operand markers
29143 to the patterns which qualify for one.
29144 * config/s390/vx-builtins.md: Likewise.
29145
29146 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29147
29148 * config/s390/vector.md (VI, VI_QHS): Add single element vector
29149 types to mode iterators.
29150 (vec_double): ... and mode attribute.
29151 * config/s390/vx-builtins.md (non_vec_int): Likewise.
29152
29153 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29154
29155 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
29156 Change the predicate of op2 from nonimmediate to general and let
29157 reload fix it if necessary.
29158
29159 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29160
29161 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
29162
29163 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29164
29165 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
29166 mode.
29167
29168 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29169
29170 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
29171 * config/s390/s390.c (s390_expand_vec_movstr): New function.
29172 * config/s390/s390.md ("movstr<P:mode>"): Call
29173 s390_expand_vec_movstr.
29174
29175 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29176
29177 * config/s390/s390.md: Add missing output modifier for operand 1
29178 to print it as address properly.
29179
29180 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29181
29182 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
29183 * config/s390/2964.md: New file.
29184 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
29185 of insn grouping attributes depending on the CPU level.
29186 (s390_get_unit_mask): New function.
29187 (s390_sched_score): Remove the OOO from the scheduling macros.
29188 Add loop to calculate a score for the instruction mix.
29189 (s390_sched_reorder): Likewise plus improve debug output.
29190 (s390_sched_variable_issue): Rename macros as above. Calculate
29191 the unit distances after actually scheduling an insn. Improve
29192 debug output.
29193 (s390_sched_init): Clear last_scheduled_unit_distance array.
29194 * config/s390/s390.md: Include 2964.md.
29195
29196 2016-02-18 Jakub Jelinek <jakub@redhat.com>
29197
29198 PR target/69671
29199 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
29200 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
29201 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
29202 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
29203 *avx512f_<code>v8div16qi2_mask_1): New insns.
29204
29205 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
29206
29207 PR target/68404
29208 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
29209 2016-02-09 change.
29210
29211 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
29212 earlyclobber from target. Use wF constraint for fused memory
29213 address.
29214 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
29215
29216 2016-02-18 Jakub Jelinek <jakub@redhat.com>
29217 Martin Liska <mliska@suse.cz>
29218
29219 PR sanitizer/69863
29220 * cfgexpand.c (asan_sanitize_stack_p): New function.
29221 (partition_stack_vars): Use the function.
29222 (expand_stack_vars): Likewise.
29223 (defer_stack_allocation): Likewise.
29224 (expand_used_vars): Likewise.
29225
29226 2016-02-18 Richard Biener <rguenther@suse.de>
29227
29228 PR middle-end/69553
29229 * fold-const.c (operand_equal_p): Properly compare offsets for
29230 IMAGPART_EXPR and ARRAY_REF.
29231
29232 2016-02-18 Nick Clifton <nickc@redhat.com>
29233
29234 PR target/62254
29235 PR target/69610
29236 * config/arm/arm.c (arm_option_override_internal): Disable
29237 interworking if the target does not support thumb instructions.
29238 (arm_reload_in_hi): Handle the case where a register to register
29239 move needs reloading because there is no simple pattern to handle
29240 it.
29241 (arm_reload_out_hi): Likewise.
29242
29243 2016-02-18 Richard Biener <rguenther@suse.de>
29244
29245 PR middle-end/69854
29246 * match.pd: Don't use fold_binary or fold_unary for folding
29247 constants.
29248
29249 2016-02-17 Jakub Jelinek <jakub@redhat.com>
29250
29251 PR c++/69850
29252 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
29253 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
29254 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
29255 warn on gimple_no_warning_p statements.
29256
29257 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
29258
29259 * doc/extend.texi (C++ Attributes): Correct description of
29260 warn_unused type attribute.
29261
29262 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29263
29264 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
29265 correct instruction.
29266
29267 2016-02-17 Richard Biener <rguenther@suse.de>
29268
29269 PR rtl-optimization/69609
29270 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
29271 (find_traces_1_round): When ending a trace update cached priority
29272 of successors.
29273 (bb_to_key): Use cached priority when available.
29274 (copy_bb): Initialize cached priority.
29275 (reorder_basic_blocks_software_trace_cache): Likewise.
29276
29277 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29278
29279 PR target/69161
29280 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
29281 New predicate.
29282 (aarch64_comparison_operator): Break overly long line into two.
29283 (aarch64_comparison_operation): Likewise.
29284 * config/aarch64/aarch64.md (cstorecc4): Use
29285 aarch64_comparison_operator_mode instead of
29286 aarch64_comparison_operator.
29287 (cstore<mode>4): Likewise.
29288 (aarch64_cstore<mode>): Likewise.
29289 (*cstoresi_insn_uxtw): Likewise.
29290 (cstore<mode>_neg): Likewise.
29291 (*cstoresi_neg_uxtw): Likewise.
29292
29293 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29294
29295 PR target/69161
29296 * config/arm/predicates.md (arm_comparison_operator_mode):
29297 New predicate.
29298 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
29299 instead of arm_comparison_operator.
29300 (*mov_negscc): Likewise.
29301 (*mov_notscc): Likewise.
29302 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
29303 (*thumb2_mov_negscc): Likewise.
29304 (*thumb2_mov_negscc_strict_it): Likewise.
29305 (*thumb2_mov_notscc): Likewise.
29306 (*thumb2_mov_notscc_strict_it): Likewise.
29307
29308 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
29309
29310 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
29311 Add missing return.
29312
29313 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
29314
29315 * config/visium/visium.c (machine_libfunc_index): New enum.
29316 (machine_libfuncs): New structure.
29317 (visium_libfuncs): New static variable.
29318 (TARGET_INIT_LIBFUNCS): Define to...
29319 (visium_init_libfuncs): ...this. New function.
29320 (expand_block_move_4): Use the appropriate libfunc.
29321 (expand_block_move_2): Likewise.
29322 (expand_block_move_1): Likewise.
29323 (expand_block_set_4): Likewise.
29324 (expand_block_set_2): Likewise.
29325 (expand_block_set_1): Likewise.
29326 (visium_trampoline_init): Likewise.
29327
29328 2016-02-17 Nick Clifton <nickc@redhat.com>
29329
29330 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
29331 TI's devices.csv file as of March 2016.
29332
29333 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
29334
29335 PR Target/48344
29336 * opts-global.c (handle_common_deferred_options): Introduce and
29337 initialize two global variables to remember command-line options
29338 specifying a stack-limiting register.
29339 * opts.h: Add extern declarations of the two new global variables.
29340 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
29341 variable based on the values of the two new global variables.
29342
29343 2016-02-16 Jakub Jelinek <jakub@redhat.com>
29344
29345 PR c/69835
29346 * common.opt (Wnonnull-compare): New warning.
29347 * doc/invoke.texi (-Wnonnull): Remove text about comparison
29348 of arguments against NULL.
29349 (-Wnonnull-compare): Document.
29350 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
29351 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
29352 * passes.def (pass_warn_nonnull_compare): Add.
29353 * gimple-ssa-nonnull-compare.c: New file.
29354
29355 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
29356
29357 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
29358 AARCH64_EXTRA_TUNE_RECIP_SQRT.
29359
29360 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
29361
29362 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
29363 reciprocal sqrt for -mlow-precision-recip-sqrt.
29364
29365 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
29366 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29367
29368 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
29369 always use lane loads to construct non-constant vectors.
29370
29371 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
29372
29373 * config/aarch64/aarch64.md
29374 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
29375 constraints for operand 3.
29376 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
29377
29378 2016-02-16 Jakub Jelinek <jakub@redhat.com>
29379 Richard Biener <rguenther@suse.de>
29380
29381 PR tree-optimization/69820
29382 * tree-vect-patterns.c (type_conversion_p): Return false if
29383 *orig_type is unsigned single precision or boolean.
29384 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
29385 Formatting fix.
29386
29387 2016-02-16 Jakub Jelinek <jakub@redhat.com>
29388
29389 PR rtl-optimization/69764
29390 PR rtl-optimization/69771
29391 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
29392 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
29393
29394 2016-02-16 Richard Biener <rguenther@suse.de>
29395
29396 PR tree-optimization/69776
29397 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
29398 sets from caller.
29399 (indirect_refs_may_alias_p): Likewise.
29400 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
29401 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
29402 according to tbaa_p.
29403 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
29404 (optimize_stmt): For redundant store discovery do not allow tbaa.
29405
29406 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
29407
29408 PR tree-optimization/69714
29409 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
29410 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
29411
29412 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
29413
29414 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
29415 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
29416 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
29417 * config/arc/arc.c (arc_init): Check FPU options.
29418 (get_arc_condition_code): Handle new CC_FPU* modes.
29419 (arc_select_cc_mode): Likewise.
29420 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
29421 register pair only. Allow access for ARCv2 accumulator.
29422 (gen_compare_reg): Whenever we have FPU support use FPU compare
29423 instructions.
29424 (arc_reorg): Don't generate brcc insns when FPU compare
29425 instructions are involved.
29426 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
29427 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
29428 floating point emulation.
29429 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
29430 (REVERSE_CONDITION): Add new CC_FPU* modes.
29431 (TARGET_FP_SP_BASE): Define.
29432 (TARGET_FP_DP_BASE): Likewise.
29433 (TARGET_FP_SP_FUSED): Likewise.
29434 (TARGET_FP_DP_FUSED): Likewise.
29435 (TARGET_FP_SP_CONV): Likewise.
29436 (TARGET_FP_DP_CONV): Likewise.
29437 (TARGET_FP_SP_SQRT): Likewise.
29438 (TARGET_FP_DP_SQRT): Likewise.
29439 (TARGET_FP_DP_AX): Likewise.
29440 * config/arc/arc.md (ARCV2_ACC): New constant.
29441 (type): New fpu type attribute.
29442 (SDF): Conditional iterator.
29443 (cstore<mode>, cbranch<mode>): Change expand condition.
29444 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
29445 handles FPU/FPX cases as well.
29446 * config/arc/arc.opt (mfpu): New option.
29447 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
29448 Renamed.
29449 (adddf3, muldf3, subdf3): Removed.
29450 * config/arc/predicates.md (proper_comparison_operator): Recognize
29451 CC_FPU* modes.
29452 * config/arc/fpu.md: New file.
29453 * doc/invoke.texi (ARC Options): Document mfpu option.
29454
29455 2016-02-16 Richard Biener <rguenther@suse.de>
29456
29457 PR rtl-optimization/69291
29458 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
29459 noce_operand_ok check.
29460
29461 2016-02-16 Tom de Vries <tom@codesourcery.com>
29462
29463 PR lto/67709
29464 * omp-low.c (simd_clone_create): Remove call to
29465 symtab->call_cgraph_insertion_hooks.
29466
29467 2016-02-16 Jakub Jelinek <jakub@redhat.com>
29468
29469 PR tree-optimization/69802
29470 * tree-ssa-reassoc.c (update_range_test): If op is
29471 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
29472 op == 1 test of precision 1 integral op, otherwise handle
29473 that case as op itself. Fix up formatting.
29474 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
29475 up formatting.
29476
29477 2016-02-16 Richard Biener <rguenther@suse.de>
29478
29479 PR tree-optimization/69586
29480 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
29481 types for conversion sources.
29482
29483 2016-02-16 Richard Biener <rguenther@suse.de>
29484
29485 PR middle-end/69801
29486 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
29487 mask OEP_ADDRESS_OF.
29488
29489 2016-02-16 Alan Modra <amodra@gmail.com>
29490
29491 PR target/68973
29492 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
29493 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
29494 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
29495 (p8_mtvsrwz): New.
29496 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
29497 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
29498 (p8_fmrgow_<mode>): Likewise.
29499 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
29500 changes.
29501 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
29502 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
29503 to use movdi_internal64. Remove op0_di.
29504 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
29505
29506 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
29507
29508 Add support for the FCCMP insn types
29509
29510 * config/aarch64/aarch64.md (fccmp): Change insn type.
29511 (fccmpe): Likewise.
29512 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
29513 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
29514 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
29515 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
29516 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
29517 * config/arm/types.md (fccmps): Add new insn type.
29518 (fccmpd): Likewise.
29519
29520 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
29521
29522 * alias.c (get_alias_set): Fix a typo in comment.
29523
29524 2016-02-15 Richard Biener <rguenther@suse.de>
29525
29526 PR tree-optimization/69595
29527 * match.pd: Complete range test simplification to true.
29528
29529 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
29530
29531 PR rtl-optimization/69648
29532 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
29533 pic_offset_table_rtx.
29534
29535 PR rtl-optimization/69752
29536 * ira.c (update_equiv_regs): When looking for more than a single SET,
29537 also take other side effects into account.
29538
29539 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
29540
29541 * config/s390/s390.c (s390_function_profiler): Add a new sequence
29542 for z900+ CPUs in 31-bit mode.
29543
29544 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
29545
29546 * common/config/s390/s390-common.c (s390_supports_split_stack):
29547 New function.
29548 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
29549 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
29550 * config/s390/s390.c (struct machine_function): New field
29551 split_stack_varargs_pointer.
29552 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
29553 in s390_emit_prologue.
29554 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
29555 vararg pointer.
29556 (morestack_ref): New global.
29557 (SPLIT_STACK_AVAILABLE): New macro.
29558 (s390_expand_split_stack_prologue): New function.
29559 (s390_live_on_entry): New function.
29560 (s390_va_start): Use split-stack vararg pointer if appropriate.
29561 (s390_asm_file_end): Emit the split-stack note sections.
29562 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
29563 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
29564 (UNSPECV_SPLIT_STACK_CALL): New unspec.
29565 (UNSPECV_SPLIT_STACK_DATA): New unspec.
29566 (split_stack_prologue): New expand.
29567 (split_stack_space_check): New expand.
29568 (split_stack_data): New insn.
29569 (split_stack_call): New expand.
29570 (split_stack_call_*): New insn.
29571 (split_stack_cond_call): New expand.
29572 (split_stack_cond_call_*): New insn.
29573
29574 2016-02-15 Richard Biener <rguenther@suse.de>
29575
29576 PR tree-optimization/69783
29577 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
29578 Add trivially correct cases.
29579
29580 2016-02-15 Tom de Vries <tom@codesourcery.com>
29581
29582 PR lto/69655
29583 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
29584 do_force_output.
29585 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
29586
29587 2016-02-15 Richard Biener <rguenther@suse.de>
29588
29589 PR tree-optimization/69776
29590 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
29591 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
29592 indicate whether we can use TBAA to disambiguate against stores.
29593 Use alias-set zero if not.
29594 (visit_reference_op_store): Do not use TBAA when looking up
29595 redundant stores.
29596 * tree-ssa-pre.c (compute_avail): Use TBAA here.
29597 (eliminate_dom_walker::before_dom_children): But not when looking
29598 up redundant stores.
29599
29600 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
29601
29602 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
29603
29604 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29605
29606 * config/i386/znver1.md
29607 (znver1_pop, znver1_pop_mem,
29608 znver1_load_imov_double_store,
29609 znver1_load_imov_direct_store,
29610 znver1_load_imov_direct_load,
29611 znver1_load_imov_double_load): Add new.
29612 (znver1_insn, znver1_insn_load): Add icmov type.
29613 (znver1_sseavx_fma,
29614 znver1_sseavx_fma_load,
29615 znver1_avx256_fma,
29616 znver1_avx256_fma_load): Fix pipe usage.
29617
29618 2016-02-14 Alan Modra <amodra@gmail.com>
29619
29620 PR target/68973
29621 * reload.c (find_reloads_address_1): For pre/post-inc/dec
29622 with an invalid hard reg, reload just the reg not the entire
29623 pre/post-inc/dec address expression.
29624
29625 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
29626
29627 PR target/67260
29628 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
29629 fixed R1_REG scratch reg.
29630 (sibcall_value_pcrel_fdpic): Likewise.
29631
29632 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
29633
29634 PR target/67636
29635 PR target/64345
29636 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
29637
29638 2016-02-12 Walter Lee <walt@tilera.com>
29639
29640 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
29641 * config/tilegx/t-tilegx: Likewise.
29642
29643 2016-02-12 David Malcolm <dmalcolm@redhat.com>
29644
29645 PR other/69554
29646 * diagnostic-show-locus.c (struct line_span): New struct.
29647 (layout::get_first_line): Delete.
29648 (layout::get_last_line): Delete.
29649 (layout::get_num_line_spans): New member function.
29650 (layout::get_line_span): Likewise.
29651 (layout::print_heading_for_line_span_index_p): Likewise.
29652 (layout::get_expanded_location): Likewise.
29653 (layout::calculate_line_spans): Likewise.
29654 (layout::m_first_line): Delete.
29655 (layout::m_last_line): Delete.
29656 (layout::m_line_spans): New field.
29657 (layout::layout): Update comment. Replace m_first_line and
29658 m_last_line with m_line_spans, replacing their initialization
29659 with a call to calculate_line_spans.
29660 (diagnostic_show_locus): When printing source lines and
29661 annotations, rather than looping over a single span
29662 of lines, instead loop over each line_span within
29663 the layout, with an inner loop over the lines within them.
29664 Call the context's start_span callback when changing line spans.
29665 * diagnostic.c (diagnostic_initialize): Initialize start_span.
29666 (diagnostic_build_prefix): Break out the building of the location
29667 part of the string into...
29668 (diagnostic_get_location_text): ...this new function, rewriting
29669 it from nested ternary expressions to a sequence of "if"
29670 statements.
29671 (default_diagnostic_start_span_fn): New function.
29672 * diagnostic.h (diagnostic_start_span_fn): New typedef.
29673 (diagnostic_context::start_span): New field.
29674 (default_diagnostic_start_span_fn): New prototype.
29675
29676 2016-02-12 David Malcolm <dmalcolm@redhat.com>
29677
29678 PR driver/69779
29679 * gcc.c (driver::finalize): Fix cleanup of "specs".
29680
29681 2016-02-12 David Malcolm <dmalcolm@redhat.com>
29682
29683 PR driver/69265
29684 PR driver/69453
29685 * gcc.c (driver::driver): Initialize m_option_suggestions.
29686 (driver::~driver): Clean up m_option_suggestions.
29687 (suggest_option): Convert to...
29688 (driver::suggest_option): ...this, and split out into
29689 driver::build_option_suggestions and find_closest_string.
29690 (driver::build_option_suggestions): New function, from
29691 first half of suggest_option. Special-case
29692 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
29693 the sanitizer_opts array. For options of enum types, add the
29694 various enum values to the candidate strings.
29695 (driver::handle_unrecognized_options): Remove "const".
29696 * gcc.h (driver::handle_unrecognized_options): Likewise.
29697 (driver::build_option_suggestions): New decl.
29698 (driver::suggest_option): New decl.
29699 (driver::m_option_suggestions): New field.
29700 * opts-common.c (add_misspelling_candidates): New function.
29701 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
29702 and make non-static.
29703 * opts.h (sanitizer_opts): New array decl.
29704 (add_misspelling_candidates): New function decl.
29705 * spellcheck.c (find_closest_string): New function.
29706 * spellcheck.h (find_closest_string): New function decl.
29707
29708 2016-02-12 Jakub Jelinek <jakub@redhat.com>
29709
29710 PR rtl-optimization/69764
29711 PR rtl-optimization/69771
29712 * optabs.c (expand_binop_directly): For shift_optab_p, force
29713 convert_modes with VOIDmode if xop1 has VOIDmode.
29714
29715 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
29716
29717 PR target/69729
29718 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
29719 to correctly determine instrumentation thunks.
29720
29721 2016-02-12 Jakub Jelinek <jakub@redhat.com>
29722
29723 PR ipa/69241
29724 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
29725 type by reference, force lhs on the call.
29726
29727 PR ipa/68672
29728 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
29729 Compute retval and retbnd early in all cases if split_part_return_p
29730 and return_bb is not EXIT. Remove all clobber stmts and reset
29731 all debug stmts that refer to SSA_NAMEs defined in split part,
29732 except if it is retval, in that case replace the old retval with the
29733 lhs of the call to the split part.
29734
29735 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
29736
29737 revert:
29738 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
29739
29740 PR middle-end/66726
29741 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
29742 whose result is used in PHI.
29743 (maybe_optimize_range_tests): Likewise.
29744 (final_range_test_p): Likweise.
29745
29746 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
29747
29748 PR middle-end/66726
29749 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
29750 whose result is used in PHI.
29751 (maybe_optimize_range_tests): Likewise.
29752 (final_range_test_p): Likweise.
29753
29754 2016-02-12 Jakub Jelinek <jakub@redhat.com>
29755
29756 * cgraph.c: Spelling fixes - behaviour -> behavior and
29757 neighbour -> neighbor.
29758 * target.def: Likewise.
29759 * sel-sched.c: Likewise.
29760 * config/mips/mips.c: Likewise.
29761 * config/arc/arc.md: Likewise.
29762 * config/arm/cortex-a57.md: Likewise.
29763 * config/arm/arm.c: Likewise.
29764 * config/arm/neon.md: Likewise.
29765 * config/arm/arm-c.c: Likewise.
29766 * config/vms/vms-c.c: Likewise.
29767 * config/s390/s390.c: Likewise.
29768 * config/i386/znver1.md: Likewise.
29769 * config/i386/i386.c: Likewise.
29770 * config/ia64/hpux-unix2003.h: Likewise.
29771 * config/msp430/msp430.md: Likewise.
29772 * config/rx/rx.c: Likewise.
29773 * config/rx/rx.md: Likewise.
29774 * config/aarch64/aarch64-simd.md: Likewise.
29775 * config/aarch64/aarch64.c: Likewise.
29776 * config/nvptx/nvptx.c: Likewise.
29777 * config/bfin/bfin.c: Likewise.
29778 * config/cris/cris.opt: Likewise.
29779 * config/rs6000/rs6000.c: Likewise.
29780 * target.h: Likewise.
29781 * spellcheck.c: Likewise.
29782 * ira-build.c: Likewise.
29783 * tree-inline.c: Likewise.
29784 * builtins.c: Likewise.
29785 * lra-constraints.c: Likewise.
29786 * explow.c: Likewise.
29787 * hwint.h: Likewise.
29788 * targhooks.c: Likewise.
29789 * tree-vect-data-refs.c: Likewise.
29790 * expr.c: Likewise.
29791 * doc/tm.texi: Likewise.
29792 * doc/extend.texi: Likewise.
29793 * doc/install.texi: Likewise.
29794 * doc/md.texi: Likewise.
29795 * tree-ssa-tail-merge.c: Likewise.
29796 * sched-int.h: Likewise.
29797 * match.pd: Likewise.
29798 * sched-ebb.c: Likewise.
29799 * target.def (omit_struct_return_reg): Likewise.
29800 * gimple-ssa-isolate-paths.c: Likewise.
29801 (find_implicit_erroneous_behaviour): Renamed to...
29802 (find_implicit_erroneous_behavior): ... this.
29803 (find_explicit_erroneous_behaviour): Renamed to...
29804 (find_explicit_erroneous_behavior): ... this.
29805 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
29806
29807 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
29808
29809 PR rtl-optimization/64682
29810 PR rtl-optimization/69567
29811 PR rtl-optimization/69737
29812 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
29813 in I2 as well, just lose it.
29814
29815 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29816
29817 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
29818 New variable.
29819 (aarch64_last_printed_tune_string): Likewise.
29820 (aarch64_declare_function_name): Only output .arch assembler
29821 directive if it will be different from the previously output
29822 directive. Same for .tune comment but only if -dA is set.
29823 (aarch64_start_file): New function.
29824 (TARGET_ASM_FILE_START): Define.
29825
29826 2016-02-11 David Malcolm <dmalcolm@redhat.com>
29827
29828 PR plugins/69758
29829 * Makefile.in (PLUGIN_HEADERS): Add params.list.
29830
29831 2016-02-11 Jakub Jelinek <jakub@redhat.com>
29832
29833 PR target/65313
29834 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
29835 -Wmaybe-uninitialized warning.
29836
29837 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
29838
29839 PR target/69713
29840 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
29841
29842 2016-02-11 Richard Biener <rguenther@suse.de>
29843
29844 PR rtl-optimization/69291
29845 * ifcvt.c (noce_try_store_flag_constants): Do not allow
29846 subexpressions affected by changing the result.
29847
29848 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
29849
29850 PR target/69148
29851 * lra-constraints.c (curr_insn_transform): Find in/out operands
29852 for secondary memory moves. Update dups.
29853
29854 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
29855
29856 PR tree-optimization/69652
29857 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
29858 to nested loop, did source re-formatting, skip debug statements,
29859 add check on statement with volatile operand, remove dead scalar
29860 statements.
29861
29862 2016-02-10 Jakub Jelinek <jakub@redhat.com>
29863 Patrick Palka <ppalka@gcc.gnu.org>
29864
29865 PR ipa/69241
29866 PR c++/69649
29867 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
29868 calls if the return type is TREE_ADDRESSABLE.
29869 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
29870 * ipa-split.c (split_function): Fix doubled "we" in comment.
29871 Use void return type for the split part even if
29872 !split_point->split_part_set_retval.
29873
29874 2016-02-10 Bin Cheng <bin.cheng@arm.com>
29875
29876 PR tree-optimization/68021
29877 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
29878 when computing the value of biv cand by itself.
29879
29880 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
29881
29882 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
29883 (cortexa57_tunings): Likewise.
29884 (cortexa72_tunings): Likewise.
29885 (arch_macro_fusion_pair_p): Add support for AES fusion.
29886 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
29887 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
29888 Allow virtual registers before reload so early scheduling works.
29889 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
29890 correct latency and pipeline.
29891 (cortex_a57_crypto_complex): Likewise.
29892 (cortex_a57_crypto_xor): Likewise.
29893 (define_bypass): Add AES bypass.
29894
29895 2016-02-10 Richard Biener <rguenther@suse.de>
29896
29897 PR tree-optimization/69726
29898 * passes.def: Add DCE pass before late uninit.
29899 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
29900 really fixup if-conversions job.
29901
29902 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
29903
29904 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
29905 (arm_cortex_a57_tune): Likewise.
29906 (aarch_macro_fusion_pair_p): Add support for AES fusion.
29907 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
29908
29909 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
29910
29911 * timevar.def (TV_PHASE_DBGINFO): Delete.
29912 (TV_PHASE_CHECK_DBGINFO): Likewise.
29913 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
29914
29915 2016-02-10 Richard Biener <rguenther@suse.de>
29916
29917 PR tree-optimization/69719
29918 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
29919 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
29920
29921 2016-02-09 Andrew Pinski <apinski@cavium.com>
29922
29923 PR tree-opt/69282
29924 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
29925 get_vcond_mask_icode returns false.
29926
29927 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
29928
29929 PR target/68404
29930 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
29931 an ADDIS that adds a pointer to a large constant that sets the
29932 upper16 bits with a load operation.
29933
29934 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
29935
29936 PR target/68532
29937 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
29938 order.
29939 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
29940 endian.
29941 (vzipq_s16): Likewise.
29942 (vzipq_s32): Likewise.
29943 (vzipq_f32): Likewise.
29944 (vzipq_u8): Likewise.
29945 (vzipq_u16): Likewise.
29946 (vzipq_u32): Likewise.
29947 (vzipq_p8): Likewise.
29948 (vzipq_p16): Likewise.
29949
29950 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
29951
29952 PR target/68532
29953 * config/arm/arm.c (neon_endian_lane_map): New function.
29954 (neon_vector_pair_endian_lane_map): New function.
29955 (arm_evpc_neon_vuzp): Allow for big endian lane order.
29956 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
29957 endian.
29958 (vuzpq_s16): Likewise.
29959 (vuzpq_s32): Likewise.
29960 (vuzpq_f32): Likewise.
29961 (vuzpq_u8): Likewise.
29962 (vuzpq_u16): Likewise.
29963 (vuzpq_u32): Likewise.
29964 (vuzpq_p8): Likewise.
29965 (vuzpq_p16): Likewise.
29966
29967 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
29968
29969 PR target/69634
29970 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
29971 debug insns.
29972
29973 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
29974
29975 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
29976 truncate const_int operand 1 to QImode.
29977
29978 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
29979
29980 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
29981 corresponding to an abnormal edge.
29982
29983 2016-02-09 Tom de Vries <tom@codesourcery.com>
29984
29985 PR tree-optimization/69599
29986 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
29987 function.
29988 (find_func_aliases_for_builtin_call, find_func_clobbers)
29989 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
29990 partition.
29991
29992 2016-02-09 Richard Biener <rguenther@suse.de>
29993
29994 PR tree-optimization/69715
29995 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
29996 LHS on calls as non-rewritable.
29997
29998 2016-02-09 Tom de Vries <tom@codesourcery.com>
29999
30000 PR lto/69707
30001 * lto-wrapper.c (append_diag_options): New function.
30002 (compile_offload_image): Call append_diag_options.
30003
30004 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
30005
30006 PR other/69722
30007 * doc/extend.texi (Flag Output Operands): Correct sectioning.
30008 Minor copy-edit to fix verb tenses.
30009
30010 2016-02-08 Jakub Jelinek <jakub@redhat.com>
30011
30012 PR tree-optimization/69209
30013 * ipa-split.c (split_function): If split part is not
30014 returning retval, retval has gimple type but is not
30015 gimple value, force it into a SSA_NAME first.
30016
30017 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
30018
30019 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
30020 outdated section.
30021
30022 2016-02-08 Jason Merrill <jason@redhat.com>
30023
30024 PR c++/69631
30025 * convert.c (convert_to_integer_1): Check dofold on truncation
30026 distribution.
30027 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
30028 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
30029 Rename from *_nofold.
30030 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
30031 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
30032
30033 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
30034
30035 PR target/60410
30036 * tree.c (build_common_tree_nodes): Remove short_double argument.
30037 All callers changed.
30038 * tree.h (build_common_tree_nodes): Adjust declaration.
30039 * doc/invoke.texi (-fshort-double): Remove documentation.
30040 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
30041 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
30042 * lto-wrapper.c (merge_and_complain, append_compiler_options)
30043 (append_linker_options): Don't handle OPT_fshort_double.
30044
30045 PR rtl-optimization/68730
30046 * lra-remat.c (insn_to_cand_activation): New static variable.
30047 (lra_remat): Allocate and free it.
30048 (create_cand): New arg activation. Initialize a field in
30049 insn_to_cand_activation if it is nonnull.
30050 (create_cands): Pass the activation insn to create_cand when making
30051 a candidate involving an output reload. Reorganize code a little.
30052 (do_remat): Keep track of active status of candidates in a separate
30053 bitmap.
30054
30055 2016-02-08 Richard Biener <rguenther@suse.de>
30056
30057 PR tree-optimization/69719
30058 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30059 Properly use absolute of the difference of the two offsets to
30060 compare or adjust the segment length.
30061
30062 2016-02-08 Richard Biener <rguenther@suse.de>
30063 Jeff Law <law@redhat.com>
30064
30065 PR target/68273
30066 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
30067 types for anonymous SSA names.
30068
30069 2016-02-08 Richard Biener <rguenther@suse.de>
30070
30071 PR rtl-optimization/69274
30072 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
30073
30074 2016-02-08 Jeff Law <law@redhat.com>
30075
30076 PR tree-optimization/65917
30077 * tree-ssa-dom.c (record_temporary_equivalences): Record both
30078 equivalences from if (x == y) style conditionals.
30079 (loop_depth_of_name): Remove.
30080 (record_equality): Remove loop depth check.
30081 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
30082 (const_and_copies::record_const_or_copy_raw): New member function.
30083 * tree-ssa-scopedtables.c
30084 (const_and_copies::record_const_or_copy_raw): New, factored out of
30085 (const_and_copies::record_const_or_copy): Call new member function.
30086
30087 2016-02-05 Jeff Law <law@redhat.com>
30088
30089 PR tree-optimization/68541
30090 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
30091 (count_stmts_in_block): New function.
30092 (poor_ifcvt_candidate_code): Likewise.
30093 (is_feasible_trace): Add some heuristics to determine when path
30094 splitting is profitable.
30095 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
30096 is a diamond with a single exit.
30097
30098 2016-02-05 Martin Sebor <msebor@redhat.com>
30099
30100 PR c++/69662
30101 * doc/invoke.texi: Update -Wplacement-new to take an optional
30102 argument.
30103
30104 2016-02-06 Richard Henderson <rth@redhat.com>
30105
30106 PR c/69643
30107 * tree.c (tree_nop_conversion_p): Do not strip casts into or
30108 out of non-standard address spaces.
30109
30110 2016-02-05 Jakub Jelinek <jakub@redhat.com>
30111
30112 PR rtl-optimization/69691
30113 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
30114
30115 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
30116
30117 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
30118 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
30119 (*ieee128_mfvsrd_64bit): Likewise.
30120 (*ieee128_mfvsrd_32bit): Likewise.
30121
30122 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
30123
30124 PR target/69369
30125 Revert r232560:
30126 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30127
30128 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
30129 instrumented_version.
30130
30131 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
30132
30133 * doc/invoke.texi (Optimize Options): In table of --param options
30134 rename second occurrence of tracer-min-branch-ratio to
30135 tracer-min-branch-probability, rename
30136 tracer-min-branch-ratio-feedback to
30137 tracer-min-branch-probability-feedback and clarify description,
30138 rename sched-spec-state-edge-prob-cutoff to
30139 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
30140 to selsched-insns-to-rename, rename lto-minpartition to
30141 lto-min-partition, delete reorder-blocks-duplicate and
30142 reorder-blocks-duplicate-feedback.
30143
30144 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30145
30146 * config/s390/s390.c (s390_register_info_set_ranges): Remove
30147 superfluous loops.
30148
30149 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
30150
30151 * doc/extend.texi: S/390: Correct some typos.
30152
30153 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30154
30155 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
30156
30157 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30158
30159 PR target/69625
30160 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
30161 (s390_register_info_gprtofpr): Use new macros above.
30162 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
30163 its name.
30164 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
30165 its name. Adjust restore and save gpr ranges.
30166 (s390_register_info_set_ranges): New function.
30167 (s390_register_info): Use new macros above. Call
30168 s390_register_info_set_ranges.
30169 (s390_optimize_register_info): Likewise.
30170 (s390_hard_regno_rename_ok): Use new macros.
30171 (s390_hard_regno_scratch_ok): Likewise.
30172 (s390_emit_epilogue): Likewise.
30173 (s390_can_use_return_insn): Likewise.
30174 (s390_optimize_prologue): Likewise.
30175 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
30176
30177 2016-02-05 Jakub Jelinek <jakub@redhat.com>
30178
30179 PR bootstrap/69677
30180 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
30181 alignment fixes.
30182 (ix86_option_override_internal): Disable TARGET_STV even for
30183 -m{incoming,preferred}-stack-boundary=3.
30184
30185 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30186
30187 * config.gcc: Mark deprecated rtems targets as obsolete.
30188
30189 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
30190
30191 PR rtl-optimization/64682
30192 PR rtl-optimization/69567
30193 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
30194 before I2 only if the register is both used and set in I2.
30195
30196 2016-02-04 DJ Delorie <dj@redhat.com>
30197
30198 * config/msp430/msp430.c (msp430_start_function): Add function type.
30199
30200 2016-02-04 Jakub Jelinek <jakub@redhat.com>
30201
30202 PR fortran/69368
30203 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
30204
30205 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
30206
30207 PR rtl-optimization/69577
30208 Revert:
30209 2015-10-29 Richard Henderson <rth@redhat.com>
30210
30211 PR target/68124
30212 PR rtl-opt/67609
30213 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
30214 sse check to the exact conditions of PR 67609.
30215
30216 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
30217
30218 PR target/69667
30219 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
30220 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
30221 not allowed into the traditional Altivec registers.
30222 (movtd_64bit_nodm): Likewise.
30223 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
30224
30225 2016-02-04 David Malcolm <dmalcolm@redhat.com>
30226
30227 * config/aarch64/cortex-a57-fma-steering.c
30228 (aarch64_register_fma_steering): Remove "static" from arguments
30229 to register_pass.
30230
30231 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
30232
30233 PR target/69619
30234 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
30235 twice when complex.
30236
30237 2016-02-04 Mike Frysinger <vapier@gentoo.org>
30238
30239 * doc/invoke.texi: Delete -mno-fma4.
30240
30241 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
30242
30243 PR rtl-optimization/69577
30244 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
30245 (find_subregs_of_mode): Update accordingly. Iterate over partial
30246 definitions.
30247
30248 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
30249
30250 * config/arm/arm-protos.h (neon_reinterpret): Remove.
30251 * config/arm/arm.c (neon_reinterpret): Remove.
30252 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
30253 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
30254 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
30255 vreinterpretti): Remove.
30256 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
30257 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
30258 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
30259 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
30260 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
30261 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
30262 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
30263 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
30264 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
30265 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
30266 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
30267 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
30268 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
30269 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
30270 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
30271 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
30272 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
30273 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
30274 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
30275 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
30276 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
30277 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
30278 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
30279 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
30280 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
30281 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
30282 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
30283 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
30284 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
30285 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
30286 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
30287 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
30288 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
30289 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
30290 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
30291 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
30292 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
30293 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
30294 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
30295 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
30296 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
30297 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
30298 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
30299 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
30300 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
30301 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
30302 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
30303 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
30304 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
30305 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
30306 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
30307 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
30308 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
30309 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
30310 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
30311 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
30312 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
30313 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
30314 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
30315 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
30316 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
30317 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
30318 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
30319 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
30320 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
30321 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
30322 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
30323 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
30324 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
30325 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
30326 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
30327 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
30328 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
30329 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
30330 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
30331 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
30332 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
30333 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
30334 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
30335 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
30336 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
30337 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
30338 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
30339 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
30340 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
30341 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
30342 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
30343 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
30344 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
30345 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
30346 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
30347 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
30348 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
30349 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
30350 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
30351 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
30352 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
30353 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
30354 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
30355 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
30356 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
30357 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
30358 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
30359
30360 2016-02-04 Martin Liska <mliska@suse.cz>
30361
30362 PR sanitizer/69276
30363 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
30364 that are gimple_store_p.
30365 (maybe_instrument_call): Likewise.
30366
30367 2016-02-04 Bin Cheng <bin.cheng@arm.com>
30368
30369 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
30370 register scaling out of memory reference and comment why.
30371
30372 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30373
30374 PR target/65932
30375 PR target/67714
30376 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
30377 folding the source of a SET.
30378
30379 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30380
30381 PR target/65932
30382 PR target/67714
30383 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
30384 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
30385
30386 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
30387
30388 PR target/65932
30389 PR target/67714
30390 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
30391 HImode.
30392
30393 2016-02-04 Christian Bruel <christian.bruel@st.com>
30394
30395 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
30396 * config/arm/arm.c (arm_set_current_function): Likewise.
30397
30398 2016-02-04 Jakub Jelinek <jakub@redhat.com>
30399 Ilya Enkovich <enkovich.gnu@gmail.com>
30400 H.J. Lu <hongjiu.lu@intel.com>
30401
30402 PR target/69454
30403 * config/i386/i386.c (convert_scalars_to_vector): Remove
30404 stack alignment fixes.
30405 (ix86_option_override_internal): Disable TARGET_STV if stack
30406 might not be aligned enough.
30407 (ix86_minimum_alignment): Assert that TARGET_STV is false.
30408
30409 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
30410
30411 * config/i386/x86-tune.def: Disable default prefetching
30412 for -march=znver1.
30413
30414 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
30415 Vladimir Makarov <vmakarov@redhat.com>
30416
30417 PR target/69461
30418 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
30419 in validating fused toc addresses.
30420
30421 2016-02-03 Jakub Jelinek <jakub@redhat.com>
30422
30423 PR c/69627
30424 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
30425 range->m_caret fields if range->m_show_caret_p is false.
30426
30427 PR target/69644
30428 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
30429 Force oldval into register if it does not satisfy reg_or_short_operand
30430 predicate. Fix up formatting.
30431
30432 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
30433 Alexandre Oliva <aoliva@redhat.com>
30434
30435 PR target/69461
30436 * lra-constraints.c (simplify_operand_subreg): Check additionally
30437 address validity after potential reloading.
30438 (process_address_1): Check insns validity. In case of failure do
30439 nothing.
30440
30441 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
30442
30443 PR target/69118
30444 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
30445 Fix target.
30446
30447 2016-02-02 Jakub Jelinek <jakub@redhat.com>
30448
30449 * wide-int.cc (canonize_uhwi): New function.
30450 (wi::divmod_internal): Use it.
30451
30452 2016-02-02 James Norris <jnorris@codesourcery.com>
30453
30454 * gimplify.c (omp_notice_variable): Add usage check.
30455
30456 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
30457
30458 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
30459 like LE, GE, LT, GT when emitting relational operator.
30460
30461 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
30462
30463 * ira-costs.c (find_costs_and_classes): Add extra argument.
30464 * target.def (ira_change_pseudo_allocno_class): Add parameter.
30465 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
30466 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
30467 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
30468 Add best_class parameter, and return it if not ALL_REGS.
30469 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
30470 Add parameter.
30471 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
30472 Update target hook.
30473
30474 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
30475
30476 * config/aarch64/aarch64.c
30477 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
30478 (aarch64_ira_change_pseudo_allocno_class): New function.
30479
30480 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
30481
30482 PR target/67032
30483 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
30484
30485 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30486
30487 * config/avr/avr.c (avr_option_override): Set
30488 PARAM_ALLOW_STORE_DATA_RACES to 1.
30489
30490 2016-02-02 Richard Biener <rguenther@suse.de>
30491
30492 PR tree-optimization/69595
30493 * match.pd: Add range test simplifications to true/false.
30494
30495 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
30496
30497 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
30498 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
30499 instead.
30500
30501 2016-02-02 Richard Biener <rguenther@suse.de>
30502
30503 PR tree-optimization/69606
30504 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
30505 info on the result before moving a stmt.
30506
30507 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
30508
30509 PR middle-end/68542
30510 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
30511 branch with vector comparison.
30512 * config/i386/sse.md (VI48_AVX): New mode iterator.
30513 (define_expand "cbranch<mode>4): Add support for conditional branch
30514 with vector comparison.
30515 * tree-vect-loop.c (optimize_mask_stores): New function.
30516 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
30517 has_mask_store field of vect_info.
30518 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
30519 vectorized loops having masked stores after vec_info destroy.
30520 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
30521 correspondent macros.
30522 (optimize_mask_stores): Add prototype.
30523
30524 2016-02-02 Alan Modra <amodra@gmail.com>
30525
30526 PR target/69548
30527 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
30528 allow subregs.
30529
30530 2016-02-02 Alan Modra <amodra@gmail.com>
30531
30532 PR target/68662
30533 * config/rs6000/rs6000.c (need_toc_init): New var, set it
30534 whenever toc_label_name used.
30535 (rs6000_file_start): Don't set up toc section here,
30536 (rs6000_output_function_epilogue): do so here instead,
30537 (rs6000_xcoff_file_start): and here.
30538 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
30539 (load_toc_aix_di): Likewise.
30540
30541 2016-02-01 Jakub Jelinek <jakub@redhat.com>
30542
30543 PR rtl-optimization/69592
30544 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
30545 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
30546 (num_sign_bit_copies_binary_arith_p): New inline function.
30547 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
30548
30549 2016-02-01 Jeff Law <law@redhat.com>
30550
30551 PR tree-optimization/69580
30552 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
30553 * tree-ssa-threadbackward.c
30554 (fsm_find_control_statement_thread_paths): Do not try to walk
30555 through large PHI nodes.
30556
30557 2016-02-01 Jakub Jelinek <jakub@redhat.com>
30558
30559 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
30560 when count is incremented above limit, don't analyze further
30561 insns afterwards.
30562
30563 * omp-low.c (oacc_parse_default_dims): Avoid
30564 -Wsign-compare warning, make sure value fits into int
30565 rather than just unsigned int.
30566
30567 2016-02-01 Bin Cheng <bin.cheng@arm.com>
30568
30569 PR tree-optimization/67921
30570 * fold-const.c (split_tree): New parameters. Convert pointer
30571 type variable part to proper type before negating.
30572 (fold_binary_loc): Pass new arguments to split_tree.
30573
30574 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
30575
30576 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
30577 (nvptx_goacc_validate_dims): Extend to handle global defaults.
30578 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
30579 * doc/tm.texti: Rebuilt.
30580 * doc/invoke.texi (fopenacc-dim): Document.
30581 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
30582 (append_compiler_options): Likewise.
30583 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
30584 (oacc_parse_default_dims): New.
30585 (oacc_validate_dims): Add USED arg. Select non-unity default when
30586 possible.
30587 (oacc_loop_fixed_partitions): Return mask of used partitions.
30588 (oacc_loop_auto_partitions): Emit dump info.
30589 (oacc_loop_partition): Return mask of used partitions.
30590 (execute_oacc_device_lower): Parse default dimension arg. Adjust
30591 loop partitioning and validation calls.
30592
30593 2016-02-01 Richard Biener <rguenther@suse.de>
30594
30595 PR middle-end/69556
30596 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
30597
30598 2016-02-01 Richard Biener <rguenther@suse.de>
30599
30600 PR tree-optimization/69574
30601 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
30602 of asserting return chrec_dont_know.
30603
30604 2016-02-01 Martin Liska <mliska@suse.cz>
30605
30606 * mem-stats-traits.h: Add copyright header.
30607 * mem-stats.h: Likewise.
30608
30609 2016-02-01 Richard Biener <rguenther@suse.de>
30610
30611 PR tree-optimization/69579
30612 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
30613 Do not propagate through abnormal PHI results.
30614
30615 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
30616
30617 * postreload.c (reload_cse_simplify): Remove dead code.
30618
30619 2016-02-01 Jakub Jelinek <jakub@redhat.com>
30620
30621 PR rtl-optimization/69570
30622 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
30623 if there is more than one set, not if there is a single set.
30624
30625 2016-02-01 Richard Henderson <rth@redhat.com>
30626
30627 PR rtl-opt/69535
30628 * combine.c (make_compound_operation): When looking through a
30629 subreg, make sure to re-extend to the width of the outer mode.
30630
30631 2016-01-30 Jakub Jelinek <jakub@redhat.com>
30632
30633 PR tree-optimization/69546
30634 * wide-int.cc (wi::divmod_internal): For unsigned division
30635 where both operands fit into uhwi, if o1 is 1 and o0 has
30636 msb set, if divident_prec is larger than bits per hwi,
30637 clear another quotient word and return 2 instead of 1.
30638 Similarly for remainder with msb in HWI set, if dividend_prec
30639 is larger than bits per hwi.
30640
30641 2016-01-29 Martin Jambor <mjambor@suse.cz>
30642
30643 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
30644 Use short lowercase names.
30645 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
30646 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
30647 acq_rel one. Protect warning agains segfaults if
30648 get_memory_order_name returns NULL.
30649 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
30650 with release semantics. Do not warn if get_memory_order already did.
30651 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
30652 semantics. Fix check for relaxed or acquire semantics. Do not warn
30653 if get_memory_order already did.
30654
30655 2016-01-29 Sebastian Pop <s.pop@samsung.com>
30656
30657 * doc/install.texi: Document that isl-0.16 is supported.
30658
30659 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
30660
30661 PR target/69299
30662 * config/i386/constraints.md (Bm): Describe as special memory
30663 constraint.
30664 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
30665 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
30666 * genpreds.c (struct constraint_data): Add is_special_memory.
30667 (have_special_memory_constraints, special_memory_start): New
30668 static vars.
30669 (special_memory_end): Ditto.
30670 (add_constraint): Add new arg is_special_memory. Add code to
30671 process its true value. Update have_special_memory_constraints.
30672 (process_define_constraint): Pass the new arg.
30673 (process_define_register_constraint): Ditto.
30674 (choose_enum_order): Process special memory.
30675 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
30676 function insn_extra_special_memory_constraint.
30677 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
30678 * gensupport.c (process_rtx): Process
30679 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
30680 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
30681 * ira-lives.c (single_reg_class): Use
30682 insn_extra_special_memory_constraint.
30683 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
30684 * lra-constraints.c (process_alt_operands): Ditto.
30685 (curr_insn_transform): Use insn_extra_special_memory_constraint.
30686 * recog.c (asm_operand_ok, preprocess_constraints): Process
30687 CT_SPECIAL_MEMORY.
30688 * reload.c (find_reloads): Ditto.
30689 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
30690 * stmt.c (parse_input_constraint): Use
30691 insn_extra_special_memory_constraint.
30692
30693 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
30694
30695 PR target/69530
30696 * lra-splill.c (lra_final_code_change): Revert r229087 by
30697 removing all sub-registers.
30698
30699 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
30700
30701 PR target/65604
30702 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
30703
30704 2016-01-29 Jakub Jelinek <jakub@redhat.com>
30705
30706 PR target/69551
30707 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
30708 SSE1, copy target into the temporary reg first before recursing
30709 on it.
30710
30711 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
30712
30713 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
30714 with vm.
30715
30716 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
30717
30718 * ginclude/stdarg.h: Test __cplusplus instead of
30719 __GXX_EXPERIMENTAL_CXX0X__.
30720
30721 2016-01-29 Richard Biener <rguenther@suse.de>
30722
30723 PR tree-optimization/69547
30724 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
30725 Do not mark clobbers necessary.
30726 (mark_all_reaching_defs_necessary_1): Likewise.
30727
30728 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
30729
30730 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
30731 declaration name with %qs and print it in both error messages.
30732 Also fix indentation.
30733
30734 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
30735
30736 PR other/69006
30737 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
30738 trailing blank line from error message.
30739
30740 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
30741
30742 PR c++/69462
30743 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
30744 for C++-11.
30745
30746 2016-01-29 Richard Biener <rguenther@suse.de>
30747
30748 PR middle-end/69537
30749 * match.pd: Allow all integral types when simplifying a
30750 widening or sign-changing conversion.
30751
30752 2016-01-28 Sebastian Pop <s.pop@samsung.com>
30753
30754 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
30755 back to setting codegen_error to fail codegen.
30756
30757 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
30758
30759 PR target/69459
30760 * config/i386/constraints.md (C): Only accept constant zero operand.
30761 (BC): New constraint.
30762 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
30763 instead of C constraint.
30764 * doc/md.texi (Machine Constraints): Update description
30765 of C constraint.
30766
30767 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
30768
30769 PR target/68400
30770 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
30771
30772 2016-01-28 Jakub Jelinek <jakub@redhat.com>
30773
30774 PR middle-end/69542
30775 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
30776 non-debug insns.
30777
30778 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
30779
30780 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
30781 branches if using guessed profile.
30782
30783 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
30784
30785 * graphite-optimize-isl.c (optimize_isl): Fix dump.
30786
30787 2016-01-28 Richard Henderson <rth@redhat.com>
30788
30789 PR target/69305
30790 * config/aarch64/aarch64-modes.def (CC_Cmode): New
30791 * config/aarch64/aarch64-protos.h: Update.
30792 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
30793 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
30794 (aarch64_get_condition_code_1): Handle CC_Cmode.
30795 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
30796 (*add<mode>3_compareC_cconly_imm): New.
30797 (*add<mode>3_compareC_cconly): New.
30798 (*add<mode>3_compareC_imm): New.
30799 (add<mode>3_compareC): New.
30800 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
30801 to be first. Use aarch64_carry_operation.
30802 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
30803 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
30804 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
30805 (subti3): Use subdi3_compare1.
30806 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
30807 (sub<mode>3_compare1): New.
30808 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
30809 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
30810 (*subsi3_carryin_uxtw): Likewise.
30811 (*ngc<mode>, *ngcsi_uxtw): Likewise.
30812 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
30813 * config/aarch64/iterators.md (DWI): New.
30814 * config/aarch64/predicates.md (aarch64_carry_operation): New.
30815 (aarch64_borrow_operation): New.
30816
30817 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
30818
30819 * graphite-optimize-isl.c (optimize_isl): Print a different debug
30820 message when isl does not return a valid schedule.
30821
30822 2016-01-28 Sebastian Pop <s.pop@samsung.com>
30823
30824 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
30825 Remove comments from class declarations: they are already in the code
30826 close by the defs.
30827
30828 2016-01-28 Sebastian Pop <s.pop@samsung.com>
30829
30830 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
30831 codegen_error_p.
30832 (ternary_op_to_tree): Same.
30833 (unary_op_to_tree): Same.
30834 (nary_op_to_tree): Same.
30835 (gcc_expression_from_isl_expr_op): Same.
30836 (gcc_expression_from_isl_expression): Same.
30837 (graphite_create_new_loop): Same.
30838 (graphite_create_new_loop_guard): Same.
30839 (build_iv_mapping): Same.
30840 (graphite_create_new_guard): Same.
30841 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
30842 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
30843
30844 2016-01-28 Sebastian Pop <s.pop@samsung.com>
30845
30846 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
30847 instead of setting codegen_error to fail codegen.
30848
30849 2016-01-28 Jason Merrill <jason@redhat.com>
30850
30851 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
30852
30853 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
30854
30855 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
30856 Remove CONST_INT_P check in CCMP cost calculation.
30857
30858 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
30859
30860 * config/aarch64/aarch64.c (generic_vector_cost):
30861 Set vec_permute_cost.
30862 (cortexa57_vector_cost): Likewise.
30863 (exynosm1_vector_cost): Likewise.
30864 (xgene1_vector_cost): Likewise.
30865 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
30866 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
30867 Add vec_permute_cost entry.
30868
30869 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
30870
30871 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
30872 immediate as %1.
30873 (add<mode>3_compare0): Likewise.
30874 (addsi3_compare0_uxtw): Likewise.
30875 (add<mode>3nr_compare0): Likewise.
30876 (compare_neg<mode>): Likewise.
30877 (<optab><mode>3): Likewise.
30878
30879 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
30880
30881 * tree-vect-stmts.c (vectorizable_comparison): Add
30882 NULL check for vectype.
30883
30884 2016-01-28 Richard Biener <rguenther@suse.de>
30885
30886 PR tree-optimization/69466
30887 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
30888 Account for PHIs we couldn't duplicate.
30889
30890 2016-01-28 Martin Liska <mliska@suse.cz>
30891
30892 PR pch/68758
30893 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
30894 instead of ENABLE_VALGRIND_CHECKING.
30895
30896 2016-01-27 Richard Henderson <rth@redhat.com>
30897
30898 PR rtl-opt/69447
30899 * lra-remat.c (subreg_regs): New.
30900 (dump_candidates_and_remat_bb_data): Dump it.
30901 (operand_to_remat): Reject if operand in subreg_regs.
30902 (set_bb_regs): Collect subreg_regs.
30903 (lra_remat): Init and free subreg_regs. Compute
30904 calculate_local_reg_remat_bb_data before create_cands.
30905
30906 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
30907
30908 PR target/68986
30909 * config/i386/i386.c (ix86_update_stack_boundary): Don't
30910 change stack_alignment_needed for __tls_get_addr call.
30911
30912 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
30913
30914 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
30915
30916 2016-01-27 Jeff Law <law@redhat.com>
30917
30918 PR tree-optimization/68398
30919 PR tree-optimization/69196
30920 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
30921 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
30922 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30923 Only count PHIs in the last block in the path. The others will
30924 const/copy propagate away. Add heuristic to allow more irreducible
30925 subloops to be created when it is likely profitable to do so.
30926
30927 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30928 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
30929 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
30930
30931 2016-01-27 Jakub Jelinek <jakub@redhat.com>
30932
30933 PR lto/69254
30934 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
30935 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
30936 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
30937 * tree-streamer-in.c: Include asan.h.
30938 (streamer_get_builtin_tree): For builtins in sanitizer
30939 range call initialize_sanitizer_builtins and retry.
30940
30941 2016-01-27 Ian Lance Taylor <iant@google.com>
30942
30943 * common.opt (fkeep-gc-roots-live): New undocumented option.
30944 * tree-ssa-loop-ivopts.c (add_candidate_1): If
30945 -fkeep-gc-roots-live, skip pointers.
30946 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
30947 NULL.
30948
30949 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
30950
30951 PR target/69512
30952 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
30953 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
30954
30955 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
30956
30957 PR target/68380
30958 * configure.ac: NetBSD provides SSP in its C library.
30959 * configure: Updated.
30960
30961 2016-01-27 Richard Biener <rguenther@suse.de>
30962
30963 PR tree-optimization/69166
30964 * tree-vect-loop.c (vect_is_simple_reduction): Always check
30965 reduction code for commutativity / associativity.
30966
30967 2016-01-27 Martin Jambor <mjambor@suse.cz>
30968
30969 PR tree-optimization/69355
30970 * tree-sra.c (analyze_access_subtree): Correct hole detection when
30971 total_scalarization fails.
30972
30973 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
30974
30975 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
30976 power9.
30977
30978 2016-01-27 Christian Bruel <christian.bruel@st.com>
30979
30980 PR target/69245
30981 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
30982 Move arm_reset_previous_fndecl and set_target_option_current_node in
30983 the conditional part. Call save_restore_target_globals.
30984 * config/arm/arm.c (arm_set_current_function):
30985 Refactor to better support #pragma target and attribute mix.
30986 Call save_restore_target_globals.
30987 * config/arm/arm-protos.h (save_restore_target_globals): New function.
30988
30989 2016-01-27 Martin Liska <mliska@suse.cz>
30990
30991 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
30992 reference for an HSA kernel and its host function.
30993
30994 2016-01-27 Jakub Jelinek <jakub@redhat.com>
30995
30996 PR tree-optimization/69399
30997 * wide-int.h (wi::lrshift): For larger precisions, only
30998 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
30999
31000 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
31001
31002 * config/arc/predicates.md (proper_comparison_operator): Reject
31003 constant-constant comparison.
31004
31005 2016-01-26 Tom de Vries <tom@codesourcery.com>
31006
31007 PR tree-optimization/69110
31008 * tree-data-ref.c (initialize_data_dependence_relation): Handle
31009 DR_NUM_DIMENSIONS == 0.
31010
31011 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
31012 Sebastian Pop <s.pop@samsung.com>
31013
31014 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
31015 isl_ast_op_cond and isl_ast_op_select.
31016 (gcc_expression_from_isl_expr_op): Same.
31017
31018 2016-01-26 Jason Merrill <jason@redhat.com>
31019
31020 PR c++/68782
31021 * tree.c (recompute_constructor_flags): Split out from
31022 build_constructor.
31023 (verify_constructor_flags): New.
31024 * tree.h: Declare them.
31025
31026 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
31027
31028 PR rtl-optimization/69217
31029 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
31030 are no TYPE_FIELDS set for the record type.
31031
31032 2016-01-26 Jakub Jelinek <jakub@redhat.com>
31033
31034 PR target/68662
31035 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
31036 toc_label_name unconditionally.
31037 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
31038 SYMBOL_REF string. Use toc_label_name instead of constructing
31039 LCTOC1.
31040 (rs6000_elf_declare_function_name): Use toc_label_name instead of
31041 constructing LCTOC1.
31042
31043 2016-01-26 Martin Sebor <msebor@redhat.com>
31044
31045 PR other/69477
31046 * doc/extend.texi (Common Type Attributes): Move text that talks about
31047 attribute packed from attribute aligned to the section discussing
31048 the former attribute for clarity.
31049
31050 2016-01-26 Richard Henderson <rth@redhat.com>
31051
31052 PR middle-end/60908
31053 * trans-mem.c (tm_region_init): Mark entry block as visited.
31054
31055 2016-01-26 David Malcolm <dmalcolm@redhat.com>
31056
31057 PR other/69006
31058 * diagnostic-show-locus.c (layout::print_source_line): Replace
31059 call to pp_newline with call to layout::print_newline.
31060 (layout::print_annotation_line): Likewise.
31061 (layout::move_to_column): Likewise.
31062 (layout::print_any_fixits): After printing any fixits, print a
31063 trailing newline, if necessary.
31064 (layout::print_newline): New method, resetting any colorization
31065 before a newline.
31066 (diagnostic_show_locus): Move the pp_newline to before the
31067 early bailout. Remove dummy block enclosing the layout instance.
31068 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
31069 of pp_newline_and_flush with pp_flush.
31070 (diagnostic_append_note): Delete use of pp_newline.
31071 (diagnostic_append_note_at_rich_loc): Delete.
31072 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
31073 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
31074 when newline characters are added to the buffer.
31075
31076 2016-01-26 Michael Matz <matz@suse.de>
31077
31078 * configure.ac (ac_cv_std_swap_in_utility): New test.
31079 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
31080 * configure: Regenerate.
31081 * config.in: Regenerate.
31082
31083 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
31084
31085 * config/arc/arc.md (cstoresi4): Force operand into register.
31086 (arcset<code>): Fix predicate.
31087 (arcsetltu): Likewise.
31088 (arcsetgeu): Likewise.
31089 (arcsethi): Likewise.
31090 (arcsetls): Likewise.
31091
31092 2016-01-26 Jakub Jelinek <jakub@redhat.com>
31093
31094 PR tree-optimization/69483
31095 * gimple-fold.c (canonicalize_constructor_val): Return NULL
31096 if base has error_mark_node type.
31097
31098 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
31099
31100 PR target/68620
31101 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
31102 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
31103 New helper macros.
31104 (vget_lane_f16): Handle big-endian.
31105 (vgetq_lane_f16): Likewise.
31106 (vset_lane_f16): Likewise.
31107 (vsetq_lane_f16): Likewise.
31108 * config/arm/iterators.md (VQXMOV): Add V8HF.
31109 (VDQ): Add V4HF and V8HF.
31110 (V_reg): Handle V4HF and V8HF.
31111 (Is_float_mode): Likewise.
31112 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
31113 neon_vdup_nv8hf): New patterns.
31114 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
31115 Use VD_LANE iterator.
31116 (neon_vld1_dup<mode>): Use VQ2 iterator.
31117
31118 2016-01-26 Nathan Sidwell <nathan@acm.org>
31119
31120 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
31121 (set_oacc_fn_attrib): Add IS_KERNEL arg.
31122 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
31123 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
31124 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
31125 (oacc_validate_dims): Add LEVEL arg, don't return level.
31126 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
31127 oacc_validate_dims.
31128 (execute_oacc_device_lower): Adjust, add more dump output.
31129 * tree-ssa-loop.c (gate_oacc_kernels): Use
31130 oacc_fn_attrib_kernels_p.
31131 * tree-parloops.c (create_parallel_loop): Adjust
31132 set_oacc_fn_attrib call.
31133
31134 2016-01-26 Jakub Jelinek <jakub@redhat.com>
31135
31136 PR lto/69254
31137 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
31138 (append_compiler_options): Handle -fcilkplus.
31139 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
31140
31141 2016-01-26 Nick Clifton <nickc@redhat.com>
31142
31143 PR target/66655
31144 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
31145 been marked as DECL_ONE_ONLY but we do not the means to make it
31146 so, then do not allow it to bind locally.
31147
31148 2016-01-26 Jakub Jelinek <jakub@redhat.com>
31149
31150 PR lto/69254
31151 * opts.h (parse_sanitizer_options): New prototype.
31152 * opts.c (sanitizer_opts): New array.
31153 (parse_sanitizer_options): New function.
31154 (common_handle_option): Use parse_sanitizer_options.
31155
31156 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
31157
31158 PR target/68986
31159 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
31160 alignment adjustment to ...
31161 (ix86_update_stack_boundary): Here. Don't over-align stack for
31162 __tls_get_addr.
31163 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
31164 if __tls_get_addr is called.
31165
31166 2016-01-26 Christian Bruel <christian.bruel@st.com>
31167
31168 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
31169
31170 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
31171
31172 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
31173
31174 2016-01-26 Richard Biener <rguenther@suse.de>
31175
31176 PR middle-end/69467
31177 * match.pd: Guard X * CST CMP 0 pattern with single_use.
31178
31179 2016-01-26 Richard Biener <rguenther@suse.de>
31180
31181 PR tree-optimization/69452
31182 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
31183 (move_computations_dom_walker::before_dom_children): Rename
31184 to ...
31185 (move_computations_worker): This.
31186 (move_computations): Perform an RPO rather than a DOM walk.
31187
31188 2016-01-26 Jakub Jelinek <jakub@redhat.com>
31189
31190 PR target/69442
31191 * combine.c (combine_instructions): For REG_EQUAL note with
31192 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
31193 to the underlying register.
31194 * doc/rtl.texi (REG_EQUAL): Document the behavior of
31195 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
31196
31197 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
31198
31199 PR target/67896
31200 * config/aarch64/aarch64-builtins.c
31201 (aarch64_init_simd_builtin_types): Do not set structural
31202 equality to __Poly{8,16,64,128}_t types.
31203
31204 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
31205
31206 PR tree-optimization/69400
31207 * wide-int.cc (wi_pack): Take the precision as argument and
31208 perform canonicalization here rather than in the callers.
31209 Use the main loop to handle all full-width HWIs. Add a
31210 zero HWI if in_len isn't a full result.
31211 (wi::divmod_internal): Update accordingly.
31212 (wi::mul_internal): Likewise. Simplify.
31213
31214 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
31215 Sebastian Pop <s.pop@samsung.com>
31216
31217 * graphite-poly.c (apply_poly_transforms): Simplify.
31218 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
31219 (print_isl_map): Same.
31220 (print_isl_union_map): Same.
31221 (print_isl_schedule): New.
31222 (debug_isl_schedule): New.
31223 * graphite-dependences.c (scop_get_reads): Do not call
31224 isl_union_map_add_map that is undocumented isl functionality.
31225 (scop_get_must_writes): Same.
31226 (scop_get_may_writes): Same.
31227 (scop_get_original_schedule): Remove.
31228 (scop_get_dependences): Do not call isl_union_map_compute_flow that
31229 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
31230 (compute_deps): Remove.
31231 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
31232 (debug_schedule_ast): New.
31233 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
31234 set_separate_option.
31235 (graphite_regenerate_ast_isl): Add dump.
31236 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
31237 from scop->transformed_schedule.
31238 (graphite_regenerate_ast_isl): Add more dump.
31239 * graphite-optimize-isl.c (optimize_isl): Set
31240 scop->transformed_schedule. Check whether schedules are equal.
31241 (apply_poly_transforms): Move here.
31242 * graphite-poly.c (apply_poly_transforms): ... from here.
31243 (free_poly_bb): Static.
31244 (free_scop): Static.
31245 (pbb_number_of_iterations_at_time): Remove.
31246 (print_isl_ast): New.
31247 (debug_isl_ast): New.
31248 (debug_scop_pbb): New.
31249 * graphite-scop-detection.c (print_edge): Move.
31250 (print_sese): Move.
31251 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
31252 (build_scop_scattering): Remove.
31253 (create_pw_aff_from_tree): Assert instead of bailing out.
31254 (add_condition_to_pbb): Remove unused code, do not fail.
31255 (add_conditions_to_domain): Same.
31256 (add_conditions_to_constraints): Remove.
31257 (build_scop_context): New.
31258 (add_iter_domain_dimension): New.
31259 (build_iteration_domains): Initialize pbb->iterators.
31260 Call add_conditions_to_domain.
31261 (nested_in): New.
31262 (loop_at): New.
31263 (index_outermost_in_loop): New.
31264 (index_pbb_in_loop): New.
31265 (outermost_pbb_in): New.
31266 (add_in_sequence): New.
31267 (add_outer_projection): New.
31268 (outer_projection_mupa): New.
31269 (add_loop_schedule): New.
31270 (build_schedule_pbb): New.
31271 (build_schedule_loop): New.
31272 (embed_in_surrounding_loops): New.
31273 (build_schedule_loop_nest): New.
31274 (build_original_schedule): New.
31275 (build_poly_scop): Call build_original_schedule.
31276 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
31277 (free_poly_dr): Remove.
31278 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
31279 (free_poly_bb): Remove.
31280 (debug_loop_vec): Remove.
31281 (print_isl_ast): Declare.
31282 (debug_isl_ast): Declare.
31283 (scop_do_interchange): Remove.
31284 (scop_do_strip_mine): Remove.
31285 (scop_do_block): Remove.
31286 (flatten_all_loops): Remove.
31287 (optimize_isl): Remove.
31288 (pbb_number_of_iterations_at_time): Remove.
31289 (debug_scop_pbb): Declare.
31290 (print_schedule_ast): Declare.
31291 (debug_schedule_ast): Declare.
31292 (struct scop): Remove schedule. Add original_schedule,
31293 transformed_schedule.
31294 (free_gimple_poly_bb): Remove.
31295 (print_generated_program): Remove.
31296 (debug_generated_program): Remove.
31297 (unify_scattering_dimensions): Remove.
31298 * sese.c (print_edge): ... here.
31299 (print_sese): ... here.
31300 (debug_edge): ... here.
31301 (debug_sese): ... here.
31302 * sese.h (print_edge): Declare.
31303 (print_sese): Declare.
31304 (dump_edge): Declare.
31305 (dump_sese): Declare.
31306
31307 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
31308 Sebastian Pop <s.pop@samsung.com>
31309
31310 * Makefile.in: Set ISLVER in site.exp.
31311
31312 2016-01-25 Jakub Jelinek <jakub@redhat.com>
31313
31314 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
31315 DECL_VALUE_EXPR of new_var even for the non-array case. Look
31316 through DECL_VALUE_EXPR for expansion.
31317
31318 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
31319
31320 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
31321 the frame info after reload completed.
31322
31323 2016-01-25 Jeff Law <law@redhat.com>
31324
31325 PR tree-optimization/69196
31326 PR tree-optimization/68398
31327 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
31328 tree-ssa-threadupdate.c.
31329 (determine_bb_domination_status): Prototype
31330 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
31331 (determine_bb_domination_status): No longer static.
31332 (valid_jump_thread_path): Remove code to detect characteristics
31333 of the jump thread path not associated with correctness.
31334 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
31335 Correct test for thread path length. Count PHIs for real operands as
31336 statements that need to be copied. Do not count ASSERT_EXPRs.
31337 Look at all the blocks in the thread path. Compute and selectively
31338 filter thread paths based on threading through the latch, threading
31339 a multiway branch or crossing a multiway branch.
31340
31341 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31342
31343 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
31344 decl with __attribute__ ((unused)) annotation.
31345
31346 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
31347
31348 PR target/69421
31349 * tree-vect-stmts.c (vectorizable_condition): Check vectype
31350 of operands is compatible with a statement vectype.
31351
31352 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
31353
31354 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
31355 improve wording for mixed storage order support.
31356
31357 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
31358
31359 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
31360 (vcvt_u64_f64): Likewise.
31361 (vcvta_s64_f64): Likewise.
31362 (vcvta_u64_f64): Likewise.
31363 (vcvtm_s64_f64): Likewise.
31364 (vcvtm_u64_f64): Likewise.
31365 (vcvtn_s64_f64): Likewise.
31366 (vcvtn_u64_f64): Likewise.
31367 (vcvtp_s64_f64): Likewise.
31368 (vcvtp_u64_f64): Likewise.
31369
31370 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
31371
31372 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
31373 (arc_init): Check validity mll64 option.
31374 (arc_save_restore): Use double load/store instruction.
31375 (arc_expand_movmem): Likewise.
31376 (arc_split_move): Don't split if we have double load/store
31377 instructions. Returns a boolean.
31378 (arc_process_double_reg_moves): Change function to return boolean
31379 instead of a sequence of instructions.
31380 (arc_dwarf_register_span): New function.
31381 * config/arc/arc-protos.h (arc_split_move): Change prototype.
31382 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
31383 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
31384 (*movdf_insn): Likewise.
31385 * config/arc/arc.opt (mll64): New option.
31386 * config/arc/predicates.md (even_register_operand): New predicate.
31387 * doc/invoke.texi (ARC Options): Add mll64 documentation.
31388
31389 2016-01-25 Richard Biener <rguenther@suse.de>
31390
31391 PR lto/69393
31392 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
31393 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
31394 DECL_NAMELESS.
31395 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
31396
31397 2016-01-25 Richard Biener <rguenther@suse.de>
31398
31399 PR tree-optimization/69376
31400 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
31401 flag.
31402 (VN_INFO_ANTI_RANGE_P): New inline.
31403 (VN_INFO_RANGE_TYPE): Likewise.
31404 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
31405 SSA_NAME_ANTI_RANGE_P.
31406 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
31407 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
31408 Properly query VN_INFO_RANGE_TYPE.
31409
31410 2016-01-25 Nick Clifton <nickc@redhat.com>
31411
31412 PR target/66655
31413 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
31414
31415 2016-01-23 Tom de Vries <tom@codesourcery.com>
31416
31417 PR tree-optimization/69426
31418 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
31419 removed clobber.
31420
31421 2016-01-23 Jakub Jelinek <jakub@redhat.com>
31422
31423 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
31424 "the the" with "the" in the comments.
31425 * ipa-devirt.c (build_type_inheritance_graph,
31426 update_type_inheritance_graph): Likewise.
31427 * tree.c (build_function_type_list_1): Likewise.
31428 * cfgloopmanip.c (scale_loop_profile): Likewise.
31429 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
31430 * gimple-ssa-split-paths.c
31431 (find_block_to_duplicate_for_splitting_paths): Likewise.
31432 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
31433 * expr.c (convert_move): Likewise.
31434 * var-tracking.c (vt_stack_adjustments): Likewise.
31435 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
31436 * tree-vrp.c (test_for_singularity): Likewise.
31437
31438 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
31439 directly instead of building a temporary tree.
31440
31441 PR bootstrap/69434
31442 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
31443 remove <algorithm> include.
31444
31445 2016-01-22 Jakub Jelinek <jakub@redhat.com>
31446
31447 PR target/69432
31448 * config/i386/i386.c: Include dojump.h.
31449 (expand_small_movmem_or_setmem,
31450 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
31451 fixes.
31452 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
31453 if dynamic_check != -1.
31454
31455 2016-01-21 Jeff Law <law@redhat.com>
31456
31457 PR middle-end/69347
31458 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
31459 record_temporary_equivalences. Rewritten to avoid unnecessary calls
31460 into dominated_by_p.
31461 (cprop_into_successor_phis): Avoid unnecessary tests.
31462
31463 2016-01-22 Richard Henderson <rth@redhat.com>
31464
31465 PR target/69416
31466 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
31467 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
31468
31469 2016-01-22 Michael Matz <matz@suse.de>
31470
31471 * system.h (string, algorithm): Include only conditionally.
31472 (new): Include always under C++.
31473 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
31474 * final.c (toplevel): Ditto.
31475 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
31476 * genconditions.c (write_header): Make gencondmd.c define
31477 INCLUDE_STRING.
31478 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
31479
31480 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
31481 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
31482
31483 2016-01-22 Christian Bruel <christian.bruel@st.com>
31484
31485 PR target/68674
31486 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
31487
31488 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31489
31490 PR target/69403
31491 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
31492 define_insn_and_split. Ensure operands[1] and operands[0] do not
31493 get assigned the same register.
31494
31495 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
31496
31497 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
31498
31499 2016-01-22 Christian Bruel <christian.bruel@st.com>
31500
31501 * config/arm/arm-c.c (arm_pragma_target_parse):
31502 Remove warn_builtin_macro_redefined overwrite.
31503
31504 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
31505
31506 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
31507 flag_non_call_exceptions compatibility.
31508
31509 2016-01-22 Jakub Jelinek <jakub@redhat.com>
31510
31511 PR debug/66668
31512 * dwarf2out.c (add_child_die_after): New function.
31513 (dwarf_qual_info_t): New type.
31514 (dwarf_qual_info): New variable.
31515 (qualified_die_p): New function.
31516 (modified_type_die): For -fdebug-types-section, ensure
31517 canonical order of qualifiers. Put qualified DIEs adjacent
31518 to the corresponding non-qualified type DIE and search there
31519 for existing qualified DIEs.
31520
31521 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
31522
31523 * doc/extend.texi (scalar_storage_order type attribute): Document
31524 restriction on type punning and aliasing, and remove future tense.
31525
31526 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
31527
31528 PR target/69252
31529 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
31530 first stage.
31531
31532 2016-01-21 Jeff Law <law@redhat.com>
31533
31534 PR middle-end/69347
31535 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
31536 useless call to record_temporary_equivalences.
31537 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
31538 allocate 10 slots in the bb_path vector and let it grow as needed.
31539 (fsm_find_control_statement_thread_paths): Similarly for the next_path
31540 vector.
31541
31542 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
31543
31544 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
31545 Detangle.
31546 * configure: Regenerate.
31547
31548 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
31549
31550 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
31551 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
31552
31553 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
31554
31555 PR middle-end/66178
31556 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
31557 drop EXPAND_INITIALIZER.
31558 * rtl.h (contains_symbolic_reference_p): Declare.
31559 * rtlanal.c (contains_symbolic_reference_p): New function.
31560 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
31561 a subtraction into a NOT if symbolic constants are involved.
31562
31563 2016-01-21 Anton Blanchard <anton@samba.org>
31564 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31565
31566 PR target/63354
31567 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
31568 #define.
31569 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
31570 function.
31571
31572 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
31573
31574 * config/microblaze/microblaze.c
31575 (get_branch_target): New.
31576 (insert_wic_for_ilb_runout): New.
31577 (insert_wic): New.
31578 (microblaze_machine_dependent_reorg): New.
31579 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
31580 * config/microblaze/microblaze.md
31581 (UNSPEC_IPREFETCH): Define.
31582 (iprefetch): New pattern
31583 * config/microblaze/microblaze.opt
31584 (mxl-prefetch): New flag.
31585
31586 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
31587
31588 * config/microblaze/microblaze.h
31589 (FIXED_REGISTERS): Update in macro.
31590 (CALL_USED_REGISTERS): Update in macro.
31591
31592 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
31593
31594 PR rtl-optimization/68920
31595 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
31596 moves.
31597
31598 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
31599
31600 PR rtl-optimization/68990
31601 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
31602 pseudo instead of inheritance ones.
31603
31604 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
31605 Nick Clifton <nickc@redhat.com>
31606
31607 PR target/69129
31608 PR target/69012
31609 * config/mips/mips.c (mips_compute_frame_info): Initialise
31610 args_size and hard_frame_pointer_offset fields of the frame
31611 structure before calling mips_global_pointer.
31612
31613 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
31614
31615 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
31616 label reference.
31617 * configure: Regenerate.
31618
31619 2016-01-21 Richard Biener <rguenther@suse.de>
31620
31621 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
31622
31623 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
31624
31625 * config/s390/s390.c (s390_asm_declare_function_size): Add code
31626 to actually emit the .size directive.
31627
31628 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
31629 Jakub Jelinek <jakub@redhat.com>
31630
31631 PR target/69187
31632 PR target/65624
31633 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
31634 args array size by one to avoid buffer overflow.
31635
31636 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
31637
31638 * config/s390/s390.md (pool_section_start): Use switch_to_section
31639 to select proper read-only data section instead of hardcoding
31640 .rodata.
31641 (pool_section_end): Use switch_to_section to match the above.
31642
31643 2016-01-21 Richard Biener <rguenther@suse.de>
31644
31645 PR tree-optimization/69378
31646 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
31647 (set_ssa_val_to): Use it for dominance checks taking into
31648 account not executable edges.
31649
31650 2016-01-21 Jakub Jelinek <jakub@redhat.com>
31651
31652 PR c++/69355
31653 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
31654 for bitsize instead of GET_MODE_PRECISION (mode).
31655
31656 2016-01-20 Martin Sebor <msebor@redhat.com>
31657
31658 PR c/52291
31659 * extend.texi (__sync Builtins): Clarify the semantics of
31660 __sync_fetch_and_OP built-ins on pointers.
31661 (__atomic Builtins): Same.
31662
31663 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
31664 Sebastian Pop <s.pop@samsung.com>
31665
31666 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
31667 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
31668 (is_valid_rename): Same.
31669 (translate_isl_ast_to_gimple::get_rename): Same.
31670 (translate_isl_ast_to_gimple::rename_all_uses): Same.
31671 (translate_isl_ast_to_gimple::rename_uses): Same.
31672 (get_new_name): Check for close_phi nodes.
31673 (copy_loop_phi_args): Use phi_node_kind.
31674 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
31675 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
31676
31677 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
31678 Sebastian Pop <s.pop@samsung.com>
31679
31680 Revert commit r229783.
31681 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
31682 Remove use of parameter_rename_map.
31683 (copy_def): Remove.
31684 (copy_internal_parameters): Remove.
31685 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
31686 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
31687 (free_sese_info): Do not free parameter_rename_map.
31688 (set_rename): Do not use parameter_rename_map.
31689 (rename_uses): Update call to set_rename.
31690 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
31691 * sese.h (parameter_rename_map_t): Remove.
31692 (struct sese_info_t): Remove field parameter_rename_map.
31693
31694 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
31695 Sebastian Pop <s.pop@samsung.com>
31696
31697 * graphite-isl-ast-to-gimple.c: Fix comment.
31698 * graphite-scop-detection.c (defined_in_loop_p): New.
31699 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
31700 names defined in loop.
31701
31702 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
31703 Sebastian Pop <s.pop@samsung.com>
31704
31705 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
31706 Discard unstructured if-then-else regions.
31707
31708 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
31709 Sebastian Pop <s.pop@samsung.com>
31710
31711 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
31712 (cleanup_loop_iter_dom): Remove.
31713 (build_loop_iteration_domains): Remove.
31714 (build_scop_context): Remove.
31715 (build_scop_iteration_domain): Remove.
31716 (add_loop_constraints): New.
31717 (build_iteration_domains): New.
31718 (build_poly_scop): Call build_iteration_domains.
31719
31720 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
31721 Sebastian Pop <s.pop@samsung.com>
31722
31723 * graphite-scop-detection.c
31724 (scop_detection::harmful_loop_in_region): Free dom and loops.
31725 (scop_detection::loop_body_is_valid_scop): Free bbs.
31726
31727 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
31728 Sebastian Pop <s.pop@samsung.com>
31729
31730 * graphite-scop-detection.c (record_loop_in_sese): New.
31731 (gather_bbs::before_dom_children): Call record_loop_in_sese.
31732 (build_scops): Remove call to build_sese_loop_nests.
31733 * sese.c (sese_record_loop): Remove.
31734 (build_sese_loop_nests): Remove.
31735 (new_sese_info): Remove region->loops.
31736 (free_sese_info): Same.
31737 * sese.h (sese_contains_loop): Same.
31738 (build_sese_loop_nests): Remove.
31739 (sese_contains_loop): Remove.
31740
31741 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
31742 Sebastian Pop <s.pop@samsung.com>
31743
31744 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
31745 loop_is_valid_in_scop.
31746 (scop_detection::harmful_stmt_in_region): Renamed
31747 harmful_loop_in_region.
31748 Call loop_is_valid_in_scop.
31749
31750 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
31751 Sebastian Pop <s.pop@samsung.com>
31752
31753 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
31754 isl_ast_node_mark.
31755
31756 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
31757 Sebastian Pop <s.pop@samsung.com>
31758
31759 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
31760 * graphite.h (struct poly_bb): Remove field is_reduction.
31761 (PBB_IS_REDUCTION): Remove.
31762
31763 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
31764 Sebastian Pop <s.pop@samsung.com>
31765
31766 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
31767 (add_pdr_constraints): Same.
31768 (scop_get_reads): Same.
31769 (scop_get_must_writes): Same.
31770 (scop_get_may_writes): Same.
31771 (scop_get_original_schedule): Same.
31772 (extend_schedule): Same.
31773 (apply_schedule_on_deps): Same.
31774 (carries_deps): Same.
31775 (compute_deps): Same.
31776 (scop_get_dependences): Same.
31777 * graphite-isl-ast-to-gimple.c
31778 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
31779 * graphite-optimize-isl.c (get_schedule_for_band): Same.
31780 (get_schedule_for_band_list): Same.
31781 (get_schedule_map): Same.
31782 (apply_schedule_map_to_scop): Same.
31783 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
31784 (build_loop_iteration_domains): Same.
31785 (add_condition_to_pbb): Same.
31786 (add_param_constraints): Same.
31787 (pdr_add_memory_accesses): Same.
31788 (pdr_add_data_dimensions): Same.
31789
31790 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
31791
31792 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
31793 requirements.
31794
31795 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
31796
31797 * common.opt (feliminate-dwarf2-dups): Replace references to
31798 "DWARF 2" with just "DWARF".
31799 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
31800 * doc/extend.texi: Likewise.
31801 * doc/cpp.texi: Likewise.
31802 * doc/invoke.texi: Likewise.
31803 (Option Summary): Add -gdwarf to list of Debugging Options.
31804 (Debugging Options): Document -gdwarf.
31805 * doc/contrib.texi: Spell "DWARF" like that.
31806
31807 2016-01-21 Jakub Jelinek <jakub@redhat.com>
31808
31809 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
31810 warning. Fix up formatting.
31811
31812 PR middle-end/67653
31813 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
31814 attempt to mark memory input operand addressable and
31815 call prepare_gimple_addressable in that case. Don't adjust
31816 input_location for diagnostics, use error_at instead.
31817
31818 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
31819
31820 * config/rs6000/ppc-auxv.h: New file.
31821 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
31822 (cpu_is): Likewise.
31823 (cpu_supports): Likewise.
31824 * config/rs6000/rs6000.c: include "ppc-auxv.h".
31825 (cpu_is_info): New variable.
31826 (cpu_supports_info): Likewise.
31827 (tcb_verification_symbol): Likewise.
31828 (cpu_builtin_p): Likewise.
31829 (cpu_expand_builtin): New function.
31830 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
31831 (rs6000_init_builtins): Likewise.
31832 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
31833 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
31834 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
31835 * configure: Regenerate.
31836 * config.in: Likewise.
31837 * doc/extend.texi (PowerPC Built-in Functions): Document
31838 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
31839
31840 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
31841
31842 PR target/68609
31843 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
31844 domain check.
31845 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
31846 for V4SFmode.
31847
31848 2016-01-20 Richard Henderson <rth@redhat.com>
31849
31850 PR bootstrap/69343
31851 PR bootstrap/69339
31852 PR tree-opt/68964
31853 Revert:
31854 * tree.c (tm_define_builtin): New.
31855 (find_tm_vector_type): New.
31856 (build_tm_vector_builtins): New.
31857 (build_common_builtin_nodes): Call it.
31858
31859 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
31860
31861 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
31862 (arm_fp_ok): Likewise.
31863 (arm_fp): Likewise.
31864 (arm_crypto): Likewise.
31865
31866 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
31867 Richard Biener <rguenther@suse.de>
31868
31869 PR tree-optimization/69328
31870 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
31871 vectors have same number of elements.
31872 (vectorizable_condition): Fix masked version recognition.
31873
31874 2016-01-20 Richard Biener <rguenther@suse.de>
31875
31876 PR tree-optimization/69345
31877 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
31878 (VN_INFO_PTR_INFO): Likewise.
31879 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
31880 info when it is equal between non-dominating SSA names.
31881 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
31882 Make sure to look at original SSA infos.
31883
31884 2016-01-20 Jeff Law <law@redhat.com>
31885
31886 PR target/25114
31887 * config/m68k/predicates.md (pow2_m1_operand): New predicate
31888 extracted from ...
31889 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
31890 (pc_or_label_operand): New predicate.
31891 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
31892 tests for small integers that are 2^n - 1.
31893
31894 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
31895
31896 * doc/invoke.texi (Options Summary): Add '.' after @xref.
31897
31898 2016-01-19 Jeff Law <law@redhat.com>
31899
31900 PR middle-end/69347
31901 * tree-ssa-threadbackwards.c
31902 (fsm_find_control_statement_thread_paths): Do not try to lookup
31903 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
31904
31905 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
31906
31907 * doc/lto.texi: Remove text that says only Gold has linker plugin
31908 support.
31909
31910 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
31911
31912 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
31913 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
31914 the DIE accordingly.
31915 (modified_type_die): Add REVERSE parameter and pass it recursively,
31916 as well as to base_type_die. Adjust presence check accordingly.
31917 (base_type_for_mode): Adjust call to modified_type_die.
31918 (add_type_attribute): Add REVERSE parameter and pass it to
31919 modified_type_die.
31920 (generic_parameter_die): Adjust call to add_type_attribute.
31921 (add_scalar_info): Likewise.
31922 (add_subscript_info): Likewise.
31923 (gen_array_type_die): Likewise.
31924 (gen_descr_array_type_die): Likewise.
31925 (gen_entry_point_die): Likewise.
31926 (gen_enumeration_type_die): Likewise.
31927 (gen_formal_parameter_die): Likewise.
31928 (gen_subprogram_die): Likewise.
31929 (gen_variable_die ): Likewise.
31930 (gen_const_die): Likewise.
31931 (gen_field_die): Likewise.
31932 (gen_pointer_type_die): Likewise.
31933 (gen_reference_type_die): Likewise.
31934 (gen_ptr_to_mbr_type_die): Likewise.
31935 (gen_inheritance_die): Likewise.
31936 (gen_subroutine_type_die): Likewise.
31937 (gen_typedef_die): Likewise.
31938 (force_type_die): Adjust call to modified_type_die.
31939
31940 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
31941
31942 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
31943 flow throughout the file. Fix broken link to Objective-C 2.0
31944 documentation.
31945 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
31946 errors.
31947
31948 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
31949
31950 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
31951
31952 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
31953
31954 PR ipa/66223
31955 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
31956 (maybe_record_node): Record cxa_pure_virtual as the only possible
31957 target if there are not ohter candidates.
31958 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
31959
31960 2016-01-19 Richard Biener <rguenther@suse.de>
31961
31962 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
31963 (get_memory_order): Likewise.
31964
31965 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
31966
31967 * tree-vect-stmts.c (vectorizable_store): Check
31968 rhs vectype.
31969
31970 2016-01-19 David Malcolm <dmalcolm@redhat.com>
31971
31972 PR jit/68446
31973 * gcc.c (driver::decode_argv): Add call to
31974 init_opts_obstack before init_options_struct.
31975 * opts.c (init_opts_obstack): Remove idempotency.
31976 (init_options_struct): Replace call to init_opts_obstack
31977 with a gcc_assert to verify that it has already been called.
31978 * toplev.c (toplev::main): Add call to init_opts_obstack before
31979 calls to init_options_struct.
31980 (toplev::finalize): Move cleanup of opts_obstack next to
31981 cleanup of save_decoded_options, clearing the latter, and
31982 save_decoded_options_count.
31983
31984 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31985
31986 PR target/69135
31987 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
31988 attribute to unconditional. Remove %? from output template.
31989
31990 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
31991 Jiong Wang <jiong.wang@arm.com>
31992
31993 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
31994 generated from different expand order.
31995
31996 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
31997
31998 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
31999 Add support for CCMP costing.
32000
32001 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32002
32003 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
32004 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
32005 (fccmpe<mode>): Likewise.
32006 (fcmp): Rename to fcmp and globalize pattern.
32007 (fcmpe): Likewise.
32008 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
32009 (aarch64_gen_ccmp_next): Add FP support.
32010
32011 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32012
32013 * target.def (gen_ccmp_first): Update documentation.
32014 (gen_ccmp_next): Likewise.
32015 * doc/tm.texi (gen_ccmp_first): Update documentation.
32016 (gen_ccmp_next): Likewise.
32017 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
32018 expand_ccmp_expr_1. Improve comments.
32019 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
32020 (ccmp_ior<mode>): Remove pattern.
32021 (cmp<mode>): Remove expand.
32022 (cmp): Globalize pattern.
32023 (cstorecc4): Use cc_register.
32024 (mov<mode>cc): Remove ccmp_cc_register check.
32025 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
32026 Simplify after removal of CC_DNE/* modes.
32027 (aarch64_ccmp_mode_to_code): Remove.
32028 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
32029 In 'k' case use integer as condition.
32030 (aarch64_nzcv_codes): Remove inverted cases.
32031 (aarch64_code_to_ccmode): Remove.
32032 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
32033 comparison with CC register to be used in folowing CCMP/branch/CSEL.
32034 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
32035 pattern. Return the comparison with CC register. Invert conditions
32036 when bitcode is OR.
32037 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
32038 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
32039
32040 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32041
32042 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
32043 instrumented_version.
32044
32045 2016-01-19 Richard Biener <rguenther@suse.de>
32046
32047 PR tree-optimization/69336
32048 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
32049 handled components with get_ref_base_and_extent.
32050 (equal_mem_array_ref_p): Adjust.
32051
32052 2016-01-19 Jakub Jelinek <jakub@redhat.com>
32053
32054 PR debug/65779
32055 * shrink-wrap.c: Include valtrack.h.
32056 (move_insn_for_shrink_wrap): Add DEBUG argument. If
32057 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
32058 in between insn and where it will be moved to. Call
32059 dead_debug_insert_temp.
32060 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
32061 first and dead_debug_local_finish at the end.
32062 For uses and defs bitmap, handle all regs in between REGNO and
32063 END_REGNO, not just the first one.
32064
32065 2016-01-19 Richard Biener <rguenther@suse.de>
32066
32067 PR tree-optimization/69352
32068 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
32069 (equal_mem_array_ref_p): Constrain size and max size properly.
32070 Compare the reverse flag.
32071
32072 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
32073
32074 * ira.c (ira): Update regstat data if we deleted insns.
32075
32076 2016-01-19 Jakub Jelinek <jakub@redhat.com>
32077
32078 PR rtl-optimization/68955
32079 PR rtl-optimization/64557
32080 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
32081 here. Fix up formatting.
32082 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
32083
32084 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32085
32086 PR lto/69133
32087 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
32088 assume that the node has body.
32089 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
32090 check.
32091
32092 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32093
32094 * lto-streamer-out.c (lto_output): Do not stream instrumentation
32095 thunks.
32096
32097 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32098
32099 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
32100 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
32101
32102 2016-01-19 Martin Jambor <mjambor@suse.cz>
32103 Martin Liska <mliska@suse.cz>
32104 Michael Matz <matz@suse.de>
32105
32106 * Makefile.in (OBJS): Add new source files.
32107 (GTFILES): Add hsa.c.
32108 * common.opt (disable_hsa): New variable.
32109 (-Whsa): New warning.
32110 * config.in (ENABLE_HSA): New.
32111 * configure.ac: Treat hsa differently from other accelerators.
32112 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
32113 $enable_offloading.
32114 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
32115 * doc/install.texi (Configuration): Document --with-hsa-runtime,
32116 --with-hsa-runtime-include, --with-hsa-runtime-lib and
32117 --with-hsa-kmt-lib.
32118 * doc/invoke.texi (-Whsa): Document.
32119 (hsa-gen-debug-stores): Likewise.
32120 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
32121 to invoke offload compiler for hsa acclerator.
32122 * opts.c (common_handle_option): Determine whether HSA offloading
32123 should be performed.
32124 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
32125 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
32126 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
32127 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
32128 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
32129 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
32130 GF_OMP_FOR_KIND_GRID_LOOP.
32131 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
32132 (pp_gimple_stmt_1): Likewise.
32133 * gimple-walk.c (walk_gimple_stmt): Likewise.
32134 * gimple.c (gimple_build_omp_grid_body): New function.
32135 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
32136 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
32137 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
32138 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
32139 GF_OMP_TEAMS_GRID_PHONY.
32140 (gimple_statement_omp_single_layout): Updated comments.
32141 (gimple_build_omp_grid_body): New function.
32142 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
32143 (gimple_omp_for_grid_phony): New function.
32144 (gimple_omp_for_set_grid_phony): Likewise.
32145 (gimple_omp_parallel_grid_phony): Likewise.
32146 (gimple_omp_parallel_set_grid_phony): Likewise.
32147 (gimple_omp_teams_grid_phony): Likewise.
32148 (gimple_omp_teams_set_grid_phony): Likewise.
32149 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
32150 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
32151 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
32152 (BUILT_IN_GOMP_TARGET): Updated type.
32153 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
32154 (adjust_for_condition): New function.
32155 (get_omp_for_step_from_incr): Likewise.
32156 (extract_omp_for_data): Moved parts to adjust_for_condition and
32157 get_omp_for_step_from_incr.
32158 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
32159 (fixup_child_record_type): Bail out if receiver_decl is NULL.
32160 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
32161 (scan_omp_parallel): Do not create child functions for phony
32162 constructs.
32163 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
32164 (scan_omp_1_op): Checking assert we are not remapping to
32165 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
32166 (parallel_needs_hsa_kernel_p): New function.
32167 (expand_parallel_call): Register apprpriate parallel child
32168 functions as HSA kernels.
32169 (grid_launch_attributes_trees): New type.
32170 (grid_attr_trees): New variable.
32171 (grid_create_kernel_launch_attr_types): New function.
32172 (grid_insert_store_range_dim): Likewise.
32173 (grid_get_kernel_launch_attributes): Likewise.
32174 (get_target_argument_identifier_1): Likewise.
32175 (get_target_argument_identifier): Likewise.
32176 (get_target_argument_value): Likewise.
32177 (push_target_argument_according_to_value): Likewise.
32178 (get_target_arguments): Likewise.
32179 (expand_omp_target): Call get_target_arguments instead of looking
32180 up for teams and thread limit.
32181 (grid_expand_omp_for_loop): New function.
32182 (grid_arg_decl_map): New type.
32183 (grid_remap_kernel_arg_accesses): New function.
32184 (grid_expand_target_kernel_body): New function.
32185 (expand_omp): Call it.
32186 (lower_omp_for): Do not emit phony constructs.
32187 (lower_omp_taskreg): Do not emit phony constructs but create for them
32188 a temporary variable receiver_decl.
32189 (lower_omp_taskreg): Do not emit phony constructs.
32190 (lower_omp_teams): Likewise.
32191 (lower_omp_grid_body): New function.
32192 (lower_omp_1): Call it.
32193 (grid_reg_assignment_to_local_var_p): New function.
32194 (grid_seq_only_contains_local_assignments): Likewise.
32195 (grid_find_single_omp_among_assignments_1): Likewise.
32196 (grid_find_single_omp_among_assignments): Likewise.
32197 (grid_find_ungridifiable_statement): Likewise.
32198 (grid_target_follows_gridifiable_pattern): Likewise.
32199 (grid_remap_prebody_decls): Likewise.
32200 (grid_copy_leading_local_assignments): Likewise.
32201 (grid_process_kernel_body_copy): Likewise.
32202 (grid_attempt_target_gridification): Likewise.
32203 (grid_gridify_all_targets_stmt): Likewise.
32204 (grid_gridify_all_targets): Likewise.
32205 (execute_lower_omp): Call grid_gridify_all_targets.
32206 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
32207 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
32208 (tree_omp_clause): Added union field dimension.
32209 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
32210 * tree.c (omp_clause_num_ops): Added number of arguments of
32211 OMP_CLAUSE__GRIDDIM_.
32212 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
32213 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
32214 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
32215 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
32216 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
32217 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
32218 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
32219 * tree-pass.h (make_pass_gen_hsail): Declare.
32220 (make_pass_ipa_hsa): Likewise.
32221 * ipa-hsa.c: New file.
32222 * lto-section-in.c (lto_section_name): Add hsa section name.
32223 * lto-streamer.h (lto_section_type): Add hsa section.
32224 * timevar.def (TV_IPA_HSA): New.
32225 * hsa-brig-format.h: New file.
32226 * hsa-brig.c: New file.
32227 * hsa-dump.c: Likewise.
32228 * hsa-gen.c: Likewise.
32229 * hsa.c: Likewise.
32230 * hsa.h: Likewise.
32231 * toplev.c (compile_file): Call hsa_output_brig.
32232 * hsa-regalloc.c: New file.
32233
32234 2016-01-18 Jeff Law <law@redhat.com>
32235
32236 PR tree-optimization/69320
32237 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
32238 ranged object, do nothing if the RHS constant is not [0..1].
32239 (optimize_stmt): Comparing a boolean ranged object against a
32240 constant outside [0..1] results in a compile-time constant.
32241
32242 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
32243 test.
32244
32245 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
32246
32247 * doc/invoke.texi (Invoking GCC): Add new section to menu.
32248 (Option Summary): Update to reflect new section and moved options.
32249 (C++ Dialect Options): Move -fstats to new section.
32250 (Debugging Options): Move all dump, statistics, and other GCC
32251 developer options to new section. Rewrite section introduction
32252 and re-order remaining options to put the more basic ones first.
32253 (Optimization Options): Move -fira-verbose and -flto-report* to
32254 new section.
32255 (Developer Options): New section incorporating moved options.
32256 * doc/cppopts.texi (-dM): Update cross-reference.
32257
32258 2016-01-18 Richard Henderson <rth@redhat.com>
32259
32260 PR target/69176
32261 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
32262 operands to pseudo only if CSE is expected. Split long immediate
32263 operands only after reload, and for the stack pointer.
32264 (*add<GPI>3_pluslong): Remove.
32265 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
32266 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
32267 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
32268 (*add<GPI>3 peepholes): New.
32269 (*add<GPI>3 splitters): New.
32270 * config/aarch64/constraints.md (Upl): New.
32271 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
32272
32273 2016-01-18 Richard Biener <rguenther@suse.de>
32274
32275 PR tree-optimization/69297
32276 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
32277 stmt at most once.
32278 (vect_bb_vectorization_profitable_p): Clear visited flag again.
32279
32280 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
32281
32282 PR middle-end/68542
32283 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
32284 of mixind vector and scalar types.
32285 (fold_relational_const): Add handling of vector
32286 comparison with boolean result.
32287 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
32288 comparison of vector operands with boolean result for EQ/NE only.
32289 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
32290 (verify_gimple_cond): Likewise.
32291 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
32292 valid type of VAL.
32293
32294 2016-01-18 Joseph Myers <joseph@codesourcery.com>
32295
32296 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
32297 !TARGET_OCTEON.
32298
32299 2016-01-18 Richard Biener <rguenther@suse.de>
32300
32301 PR middle-end/69308
32302 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
32303
32304 2016-01-18 Tom de Vries <tom@codesourcery.com>
32305
32306 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
32307
32308 2016-01-18 Tom de Vries <tom@codesourcery.com>
32309
32310 * omp-low.c (set_oacc_fn_attrib): Make extern.
32311 * omp-low.h (set_oacc_fn_attrib): Declare.
32312 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
32313 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
32314 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
32315 Add and handle function parameter oacc_kernels_p.
32316 (find_reduc_addr, get_omp_data_i_param): New function.
32317 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
32318 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
32319 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
32320 Calculate dominance info. Skip loops that are not in a kernels region
32321 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
32322 (pass_parallelize_loops::execute): Call parallelize_loops with
32323 oacc_kernels_p argument.
32324 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
32325 New member function.
32326 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
32327 * passes.def: Add argument to pass_parallelize_loops instantation.
32328
32329 2016-01-18 Tom de Vries <tom@codesourcery.com>
32330
32331 * tree-parloops.c (pass_parallelize_loops::execute): Allow
32332 pass_parallelize_loops to be run outside the loop pipeline.
32333
32334 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
32335
32336 * tree-scalar-evolution.c (follow_copies_to_constant): New.
32337 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
32338
32339 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
32340
32341 PR target/63679
32342 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
32343 using get_ref_base_and_extent.
32344 (equal_mem_array_ref_p): New.
32345 (hashable_expr_equal_p): Add call to previous.
32346
32347 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
32348
32349 PR target/63679
32350 * tree-sra.c (disqualified_constants, constant_decl_p): New.
32351 (sra_initialize): Allocate disqualified_constants.
32352 (sra_deinitialize): Free disqualified_constants.
32353 (disqualify_candidate): Update disqualified_constants when appropriate.
32354 (create_access): Scan for constant-pool entries as we go along.
32355 (scalarizable_type_p): Add check against type_contains_placeholder_p.
32356 (maybe_add_sra_candidate): Allow constant-pool entries.
32357 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
32358 (initialize_constant_pool_replacements): New.
32359 (sra_modify_assign): Avoid mangling assignments created by previous,
32360 and don't generate writes into constant pool.
32361 (sra_modify_function_body): Call initialize_constant_pool_replacements.
32362
32363 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
32364
32365 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
32366 andnot instruction.
32367 (scalar_chain::convert_op): Likewise.
32368 * config/i386/i386.md (*andndi3_doubleword): New.
32369
32370 2016-01-18 Richard Biener <rguenther@suse.de>
32371
32372 PR tree-optimization/69170
32373 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
32374 building a vector from scalar results of a pattern stmt.
32375
32376 2016-01-18 Jakub Jelinek <jakub@redhat.com>
32377
32378 * haifa-sched.c (autopref_multipass_init): Work around
32379 -Wmaybe-uninitialized warning.
32380
32381 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
32382
32383 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
32384 against the constant 0.
32385
32386 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32387
32388 PR tree-optimization/68799
32389 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
32390 look up phi candidates in the statement-candidate map.
32391 (phi_add_costs): Likewise.
32392 (record_phi_increments): Likewise.
32393 (phi_incr_cost): Likewise.
32394 (ncd_with_phi): Likewise.
32395 (all_phi_incrs_profitable): Likewise.
32396
32397 2016-01-17 Jakub Jelinek <jakub@redhat.com>
32398
32399 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
32400 -Wmaybe-uninitialized warning.
32401
32402 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
32403
32404 * doc/invoke.texi (Invoking GCC): Add new section to menu.
32405 (Option Summary): Update to reflect new section and moved options.
32406 (C++ Dialect Options): Move -fvtable-verify and related options.
32407 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
32408 and profiling-related options.
32409 (Optimization Options): Move profile generation options and
32410 -fstack-protector and related options.
32411 (Instrumentation Options): New section incorporating moved options.
32412 (Code Generation Options): Move -finstrument-functions and
32413 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
32414
32415 2016-01-16 Tom de Vries <tom@codesourcery.com>
32416
32417 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
32418
32419 2016-01-16 Tom de Vries <tom@codesourcery.com>
32420
32421 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
32422
32423 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
32424
32425 * hash-table.h (hash_table::empty): Turn into an inline wrapper
32426 that checks whether the table is already empty. Rename the
32427 original implementation to...
32428 (hash_table::empty_slot): ...this new private function.
32429
32430 2016-01-15 David Malcolm <dmalcolm@redhat.com>
32431
32432 PR diagnostic/68899
32433 * diagnostic-show-locus.c (layout::print_source_line): Move x
32434 offset of line until after call to
32435 get_line_width_without_trailing_whitespace.
32436
32437 2016-01-15 Jeff Law <law@redhat.com>
32438
32439 PR tree-optimization/69270
32440 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
32441 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
32442 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
32443 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
32444 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
32445 ssa_name_has_boolean_range and constant_boolean_node.
32446
32447 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
32448
32449 PR rtl-optimization/69030
32450 * lra-spills.c (remove_pseudos): Check nrefs and make the function
32451 returning bool.
32452 (spill_pseudos): Delete debug insn for dead pseudo.
32453 (lra_spill): Initiate spill_hard_reg and slots memory separately.
32454
32455 2016-01-15 Jiong Wang <jiong.wang@arm.com>
32456
32457 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
32458 New.
32459 (TYPES_UNOPUS): Likewise.
32460 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
32461 builtin type, from UNOP to UNOPUS.
32462 (lbtruncuv4sf): Likewise.
32463 (lbtruncuv2df): Likewise.
32464 (lrounduv2sf): Likewise.
32465 (lrounduv4sf): Likewise.
32466 (lrounduv2df): Likewise.
32467 (lroundusf): Likewise.
32468 (lroundusf): Likewise.
32469 (lceiluv2sf): Likewise.
32470 (lceiluv4sf): Likewise.
32471 (lceiluv2df): Likewise.
32472 (lceilusf): Likewise.
32473 (lceiludf): Likewise.
32474 (lflooruv2sf): Likewise.
32475 (lflooruv4sf): Likewise.
32476 (lflooruv2df): Likewise.
32477 (lfloorusf): Likewise.
32478 (lfloorudf): Likewise.
32479 (lfrintnuv2sf): Likewise.
32480 (lfrintnuv4sf): Likewise.
32481 (lfrintnuv2df): Likewise.
32482 (lfrintnusf): Likewise.
32483 (lfrintnudf): Likewise.
32484 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
32485 conversion.
32486 (vcvtq_u32_f32): Likewise.
32487 (vcvtq_u64_f64): Likewise.
32488 (vcvta_u32_f32): Likewise.
32489 (vcvtaq_u32_f32): Likewise.
32490 (vcvtaq_u64_f64): Likewise.
32491 (vcvtm_u32_f32): Likewise.
32492 (vcvtmq_u32_f32): Likewise.
32493 (vcvtmq_u64_f64): Likewise.
32494 (vcvtn_u32_f32): Likwise.
32495 (vcvtnq_u32_f32): Likewise.
32496 (vcvtnq_u64_f64): Likewise.
32497 (vcvtp_u32_f32): Likewise.
32498 (vcvtpq_u32_f32): Likewise.
32499 (vcvtpq_u64_f64): Likewise.
32500 (vcvtmd_u64_f64): Likewise.
32501 (vcvtms_u32_f32): Likewise.
32502 (vcvtad_u64_f64): Likewise.
32503 (vcvtas_u32_f32): Likewise.
32504 (vcvtnd_u64_f64): Likewise.
32505 (vcvtns_u32_f32): Likewise.
32506 (vcvtpd_u64_f64): Likewise.
32507 (vcvtps_u32_f32): Likewise.
32508
32509 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32510
32511 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
32512 CSEL of zero_extended registers.
32513
32514 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32515
32516 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
32517 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
32518
32519 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32520
32521 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
32522 false when argument string is not found in the attributes table
32523 at all.
32524
32525 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
32526
32527 PR target/68609
32528 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
32529 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
32530 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
32531 precision estimate.
32532
32533 2016-01-15 Richard Biener <rguenther@suse.de>
32534
32535 PR tree-optimization/66856
32536 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
32537 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
32538 (vect_create_new_slp_node): Increment stmt reference count.
32539 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
32540 an SLP tree before swapping operands.
32541 (vect_build_slp_tree): Likewise.
32542 (destroy_bb_vec_info): Free stmt info after SLP instances.
32543 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
32544 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
32545 (STMT_VINFO_NUM_SLP_USES): New macro.
32546
32547 2016-01-15 Richard Biener <rguenther@suse.de>
32548
32549 PR debug/69137
32550 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
32551 (add_linkage_name): ... here.
32552 (gen_typedef_die): Use add_linkage_name_raw instead of
32553 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
32554 if necessary.
32555
32556 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
32557
32558 * gimplify.c (oacc_default_clause): Decode reference and pointer
32559 types for both kernels and parallel regions.
32560
32561 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
32562
32563 PR middle-end/69246
32564 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
32565
32566 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
32567
32568 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
32569 (convert_scalars_to_vector): Likewise.
32570
32571 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
32572
32573 * doc/extend.texi (Type Traits): Fix grammar.
32574
32575 2016-01-15 Martin Jambor <mjambor@suse.cz>
32576
32577 * tree-inline.c (remap_decl): Use existing dclarations if
32578 remapping a type and prevent_decl_creation_for_types.
32579 (replace_locals_stmt): Do an initial remapping of non-VLA typed
32580 decls first. Do real remapping with
32581 prevent_decl_creation_for_types set.
32582 * tree-inline.h (copy_body_data): New field
32583 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
32584 padding.
32585
32586 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
32587
32588 * config/s390/s390.opt (mmvcle): More verbose help text.
32589
32590 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
32591
32592 * config/s390/s390.opt: Add period to -mzvector option text.
32593
32594 2016-01-15 Richard Biener <rguenther@suse.de>
32595
32596 PR tree-optimization/68961
32597 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
32598 of invariants in stores again.
32599
32600 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
32601
32602 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
32603
32604 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
32605
32606 * config/i386/i386.c (ix86_expand_branch): Don't split
32607 DI mode xor instruction to SI mode.
32608
32609 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
32610
32611 PR ipa/68148
32612 * ipa-icf.c (sem_function::merge): Virtual functions may become
32613 reachable even if they address is not taken and there are no
32614 idrect calls.
32615
32616 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
32617
32618 * lto-streamer-out.c (subtract_estimated_size): New function.
32619 (get_symbol_initial_value): Use it.
32620
32621 2016-01-15 Christian Bruel <christian.bruel@st.com>
32622
32623 PR target/65837
32624 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
32625 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
32626 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
32627 use add_builtin_function_ext_scope instead of add_builtin_function.
32628 (neon_set_p, neon_crypto_set_p): Remove.
32629 (arm_init_builtins): Always call arm_init_neon_builtins and
32630 arm_init_crypto_builtins.
32631 (arm_expand_builtin): Check that builtins are allowed for the arch.
32632 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
32633 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
32634 arm_init_neon_builtins call.
32635
32636 2016-01-15 Richard Biener <rguenther@suse.de>
32637
32638 PR tree-optimization/69117
32639 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
32640 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
32641 of the leader conservatively.
32642 (free_scc_vn): Restore original SSA name infos.
32643
32644 2016-01-14 Jeff Law <law@redhat.com>
32645
32646 PR tree-optimization/69270
32647 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
32648 single bit of precision, verify it's also unsigned.
32649 (record_edge_info): Use constant_boolean_node rather than fold_convert
32650 to convert boolean_true/boolean_false to the right type.
32651
32652 2016-01-14 Richard Henderson <rth@redhat.com>
32653
32654 PR rtl-opt/69014
32655 * loop-doloop.c (record_reg_sets): New.
32656 (doloop_optimize): Reject the transform if the sequence
32657 clobbers registers live at the end of the loop block.
32658 (doloop_optimize_loops): Enable df_live if needed.
32659
32660 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
32661
32662 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
32663 * config/rs6000/rs6000.c: Likewise.
32664 * config/rs6000/rs6000.h: Likewise.
32665 * config/rs6000/rs6000.md: Likewise.
32666 * doc/extend.texi: Likewsie.
32667
32668 2016-01-14 Jeff Law <law@redhat.com>
32669
32670 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
32671 typo.
32672
32673 2016-01-14 Richard Henderson <rth@redhat.com>
32674
32675 PR c/69272
32676 PR tree-opt/68964
32677 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
32678 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
32679 instead of builtin_decl_declared_p to test for declaration.
32680
32681 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
32682
32683 * doc/loop.texi (Loop Analysis and Representation): Document
32684 loop_depth function.
32685
32686 2016-01-14 Tom de Vries <tom@codesourcery.com>
32687
32688 PR tree-optimization/68773
32689 * omp-low.c (expand_omp_target): Don't set force_output.
32690 * varpool.c (varpool_node::get_create): Same.
32691 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
32692 offload_funcs with force_output.
32693
32694 2016-01-14 Jakub Jelinek <jakub@redhat.com>
32695
32696 PR debug/69244
32697 * lra-eliminations.c (move_plus_up): Don't change anything if either
32698 the outer or inner subreg mode is not MODE_INT.
32699 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
32700 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
32701
32702 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
32703
32704 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
32705 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
32706 reduc_uplus_@var{m}): Remove.
32707 * expr.c (expand_expr_real_2): Remove expansion path for
32708 reduc_[us](min|max|plus) optabs.
32709 * optabs-tree.c (scalar_reduc_to_vector): Remove.
32710 * optabs-tree.h (scalar_reduc_to_vector): Remove.
32711 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
32712 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
32713 * tree-vect-loop.c (vectorizable_reduction): Remove test for
32714 reduc_[us](min|max|plus) optabs.
32715
32716 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
32717
32718 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
32719 (reduc_plus_scal_v2sf): New.
32720 (reduc_smax_v2sf): Rename to...
32721 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
32722 (reduc_smin_v2sf): Rename to...
32723 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
32724
32725 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
32726
32727 * alias.c (compare_base_symbol_refs): New function.
32728 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
32729 it.
32730
32731 2016-01-14 Jakub Jelinek <jakub@redhat.com>
32732
32733 PR middle-end/68146
32734 PR tree-optimization/69155
32735 * tree-complex.c: Include cfganal.h.
32736 (phis_to_revisit): New variable.
32737 (extract_component): Add phiarg_p argument. Assert that returned
32738 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
32739 (update_phi_components): Partly rewrite to use loop over real/imag
32740 components instead of code duplication. If extract_component returns
32741 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
32742 create_tmp_reg into the PHI node instead, and mention the phi triplet
32743 in phis_to_revisit.
32744 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
32745 in phis_to_revisit at the end.
32746
32747 2016-01-14 Richard Biener <rguenther@suse.de>
32748
32749 PR tree-optimization/68060
32750 * tree-vect-loop.c (vect_is_simple_reduction): Check the
32751 outer loop reduction is only used in the inner loop before
32752 detecting a double reduction.
32753
32754 2016-01-14 Jakub Jelinek <jakub@redhat.com>
32755
32756 PR target/68269
32757 * combine.c (expand_field_assignment): Punt if compute_mode is
32758 unsupported scalar mode.
32759
32760 2016-01-14 Richard Biener <rguenther@suse.de>
32761
32762 PR tree-optimization/66856
32763 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
32764 SLP node only if it built successfully.
32765 (vect_analyze_slp_instance): Adjust.
32766
32767 2016-01-14 Jeff Law <law@redhat.com>
32768
32769 PR tree-optimization/69270
32770 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
32771 (record_edge_info): Use it. Convert boolean_{true,false}_node
32772 to the type of op0.
32773
32774 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
32775
32776 PR ipa/66487
32777 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
32778 use block_ultimate_origin
32779 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
32780
32781 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
32782
32783 * doc/invoke.texi (Submodel Options): Rename section to
32784 "Machine-Dependent Options" to better reflect its content.
32785 Rewrite introductory text to remove archaic CPU names.
32786 Update references.
32787
32788 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
32789
32790 * doc/invoke.texi (Code Gen Options): Move section up in file,
32791 before target-specific options. Update menu and option summary
32792 to reflect the new section ordering.
32793
32794 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
32795
32796 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
32797 (C++ Dialect Options): Add cross-reference to -std option.
32798 * doc/standards.texi (C++ Language): Document C++14 support.
32799
32800 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
32801
32802 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
32803 for pack/unpack functions for __ibm128.
32804 (PACK_IF): Likewise.
32805 (UNPACK_IF): Likewise.
32806
32807 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
32808 support for __ibm128 pack/unpack functions.
32809 (rs6000_invalid_builtin): Likewise.
32810 (rs6000_init_builtins): Likewise.
32811 (rs6000_opt_masks): Likewise.
32812
32813 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
32814 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
32815 functions
32816 (RS6000_BTM_COMMON): Likewise.
32817
32818 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
32819 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
32820 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
32821 128-bit floating point. Add support for the double values to be
32822 in Altivec registers for TF/IF packing and unpacking, but restrict
32823 TD packing sub-fields to be FPR registers. Don't allow overlapped
32824 register support for packing. Allow pack inputs to be memory
32825 locations. Don't build generator functions for unpack<mode>_dm
32826 and unpack<mode>_nodm.
32827 (unpack<mode>_dm): Likewise.
32828 (unpack<mode>_nodm): Likewise.
32829 (pack<mode>): Likewise.
32830
32831 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
32832 built-in functions to pack/unpack explicit __ibm128 values.
32833 (__builtin_unpack_ibm128): Likewise.
32834
32835 * doc/extend.texi (PowerPC Built-in Functions): Document
32836 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
32837
32838 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
32839
32840 PR c/66208
32841 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
32842 Add new arg loc and pass it down as context.
32843 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
32844 to the location to use for the warning.
32845 (check_function_arguments): New arg loc. All callers changed. Pass
32846 it to check_function_nonnull.
32847 * c-common.h (check_function_arguments): Adjust declaration.
32848
32849 2016-01-13 Jakub Jelinek <jakub@redhat.com>
32850
32851 PR tree-optimization/69156
32852 * gimple.c (validate_type): Removed.
32853 (gimple_builtin_call_types_compatible_p): Use
32854 useless_type_conversion_p instead of validate_type.
32855 * value-prof.c (gimple_stringop_fixed_value): Fold
32856 icall_size to correct type.
32857
32858 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
32859
32860 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
32861 effects.
32862
32863 2016-01-13 Richard Henderson <rth@redhat.com>
32864
32865 PR tree-opt/68964
32866 * target.def (builtin_tm_load, builtin_tm_store): Remove.
32867 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
32868 (ix86_builtin_tm_store): Remove.
32869 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
32870 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
32871 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
32872 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
32873 * doc/tm.texi: Rebuild.
32874
32875 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
32876 (BUILT_IN_TM_MEMCPY_RTWN): New.
32877 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
32878 fallback from vector to integer helpers.
32879 (build_tm_load): Handle vector types directly, instead of
32880 via target hook.
32881 (build_tm_store): Likewise.
32882 (expand_assign_tm): Prepare for register types not handled by
32883 the above. Copy them to memory and use memcpy.
32884 * tree.c (tm_define_builtin): New.
32885 (find_tm_vector_type): New.
32886 (build_tm_vector_builtins): New.
32887 (build_common_builtin_nodes): Call it.
32888
32889 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
32890
32891 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
32892 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
32893
32894 2016-01-13 Tom de Vries <tom@codesourcery.com>
32895
32896 PR tree-optimization/69169
32897 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
32898 handled_struct_type param.
32899 (create_variable_info_for, intra_create_variable_infos): Call
32900 create_variable_info_for_1 with extra arg.
32901
32902 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
32903
32904 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
32905 and "armv8.1-a+crc" entries.
32906
32907 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
32908
32909 PR target/69228
32910 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
32911 Change first operand predicate from register_or_constm1_operand
32912 to register_operand.
32913 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
32914 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
32915 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
32916 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
32917 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
32918 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
32919 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
32920 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
32921 comparison with constm1_rtx from vec_prefetch_gen part.
32922
32923 2016-01-13 Richard Biener <rguenther@suse.de>
32924
32925 PR tree-optimization/69013
32926 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
32927 Exchange assert for a test.
32928
32929 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32930
32931 PR target/69247
32932 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
32933
32934 2016-01-13 Richard Biener <rguenther@suse.de>
32935
32936 PR tree-optimization/69242
32937 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
32938 assert with a check.
32939
32940 2016-01-13 Richard Biener <rguenther@suse.de>
32941
32942 PR tree-optimization/69186
32943 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32944 Properly guard vect_update_misalignment_for_peel call.
32945
32946 2016-01-12 Jeff Law <law@redhat.com>
32947
32948 PR tree-optimization/pr67755
32949 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
32950 "need_profile_correction".
32951 (thread_block_1): Initialize new field to false by default. If we
32952 have multiple thread paths through a common joiner to different
32953 final targets, then set new field to true.
32954 (compute_path_counts): Only do count adjustment when it's really
32955 needed.
32956
32957 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
32958
32959 * doc/invoke.texi (Spec Files): Move section down in file, past
32960 all command-line option descriptions.
32961
32962 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32963
32964 PR middle-end/54809
32965 * doc/gty.texi: Remove documentation of mark_hook.
32966 * gengtype.c (struct write_types_data): Remove code to support
32967 mark_hook attribute.
32968 (walk_type): Likewise.
32969 (write_func_for_structure): Likewise.
32970
32971 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
32972
32973 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
32974 Directory Options, and -specs= to Overall Options.
32975 (Overall Options): Adjust similarly. Reorder to group related
32976 options together. Make -specs= cross-reference the spec file details.
32977 (Directory Options): Adjust similarly.
32978
32979 2016-01-12 Jeff Law <law@redhat.com>
32980
32981 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
32982
32983 2016-01-12 Olivier Hainque <hainque@adacore.com>
32984
32985 * gcc.c (spec_undefvar_allowed): New global.
32986 (process_command): Set to true when running for --version or --help,
32987 alone or together.
32988 (getenv_spec_function): When the variable is not defined, use the
32989 variable name as the variable value if we're allowed not to issue
32990 a fatal error.
32991
32992 2016-01-12 Bin Cheng <bin.cheng@arm.com>
32993
32994 PR tree-optimization/68911
32995 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
32996 information computed for expression "init + nit * step".
32997
32998 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
32999
33000 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
33001 about name of GCC executable. Remove deleted node from menu.
33002 (Directory Options) <-B>: Remove cross-reference to deleted node.
33003 (Target Options): Delete section.
33004
33005 2016-01-12 Christian Bruel <christian.bruel@st.com>
33006
33007 PR target/69180
33008 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
33009 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
33010
33011 2016-01-12 Jakub Jelinek <jakub@redhat.com>
33012
33013 PR target/69198
33014 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
33015 aligned_mem is properly set for AVX512-VL floating point masked
33016 stores.
33017
33018 PR target/69175
33019 * ifcvt.c (cond_exec_process_if_block): When removing the last
33020 insn from then_bb, remove also any possible barriers that follow it.
33021
33022 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
33023
33024 PR target/68456
33025 PR target/69226
33026 * config/i386/iamcu.h (SIZE_TYPE): New macro.
33027 (PTRDIFF_TYPE): Likewise.
33028 (WCHAR_TYPE): Likewise.
33029 (WCHAR_TYPE_SIZE): Likewise.
33030 (STDINT_LONG32): Likewise.
33031
33032 2016-01-12 Richard Biener <rguenther@suse.de>
33033
33034 PR tree-optimization/69053
33035 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
33036 convert initial value for cond reductions.
33037
33038 2016-01-12 Richard Biener <rguenther@suse.de>
33039
33040 PR tree-optimization/69007
33041 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
33042 widen_sum after dot_prod and sad.
33043
33044 2016-01-12 Richard Biener <rguenther@suse.de>
33045
33046 PR tree-optimization/69168
33047 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
33048 pattern stmt SLP type.
33049 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
33050 end up unused so cope with that case.
33051
33052 2016-01-12 Richard Biener <rguenther@suse.de>
33053
33054 PR tree-optimization/69157
33055 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
33056 stmts def type only during analyze phase.
33057 (vectorizable_call): Likewise.
33058 (vectorizable_simd_clone_call): Likewise.
33059 (vectorizable_conversion): Likewise.
33060 (vectorizable_assignment): Likewise.
33061 (vectorizable_shift): Likewise.
33062 (vectorizable_operation): Likewise.
33063 (vectorizable_store): Likewise.
33064 (vectorizable_load): Likewise.
33065
33066 2016-01-12 Richard Biener <rguenther@suse.de>
33067
33068 PR tree-optimization/69174
33069 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
33070 space.
33071 (vectorizable_load): Properly compute the number of loads needed
33072 for permuted strided SLP loads and do not spuriously assign
33073 to SLP_TREE_VEC_STMTS.
33074
33075 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
33076
33077 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
33078 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
33079 (MD_EXEC_PREFIX): Remove.
33080 (MD_STARTFILE_PREFIX) Removee.
33081 (FILE_NAME_ABSOLUTE_P): Remove.
33082 (CPP_SPEC): Do not read macros from sys/version.h.
33083 (LINK_COMMAND_SPEC): Remove.
33084 (LOCAL_INCLUDE_DIR): Remove.
33085 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
33086 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
33087 (POST_LINK_SPEC): Define to invoke stubify after linker
33088 (LIBSTDCXX): Remove define
33089 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
33090 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
33091 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
33092 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
33093 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
33094 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
33095 (i386_djgpp_asm_named_section): Add propotype of new procedure
33096
33097 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
33098 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
33099 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
33100 in config/i386/djgpp.h).
33101 (STANDARD_STARTFILE_PREFIX_2): Define identical to
33102 STANDARD_STARTFILE_PREFIX_1.
33103 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
33104 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
33105 installation errors.
33106 (MAX_OFILE_ALIGNMENT): Define to 128.
33107 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
33108
33109 * config/i386/djgpp.c: New file. Add implementation of
33110 i386_djgpp_asm_named_section.
33111
33112 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
33113
33114 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
33115 Add rule for building djgpp.o.
33116
33117 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33118
33119 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
33120 (rtx_is_swappable_p): Reductions are swappable.
33121 (insn_is_swappable_p): V2DF reductions are swappable.
33122
33123 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
33124
33125 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
33126 reloads for other unsupported memory operands.
33127
33128 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
33129 Jim Wilson <jim.wilson@linaro.org>
33130
33131 PR target/69194
33132 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
33133 copy_to_mode_reg instead of force_reg.
33134
33135 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
33136
33137 PR target/69225
33138 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
33139 TARGET_80387 is true.
33140
33141 2016-01-11 Jakub Jelinek <jakub@redhat.com>
33142
33143 PR target/69071
33144 * lra-eliminations.c (move_plus_up): Only move plus up
33145 if subreg of the constant can be simplified into constant
33146 and use the simplified subreg of the constant instead of
33147 the original constant.
33148
33149 * fold-const.c (fold_convertible_p): Don't return true
33150 for conversion of VECTOR_TYPE to same sized integral type.
33151 (fold_convert_loc): Fix up formatting. Fold conversion of
33152 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
33153 instead of NOP_EXPR.
33154
33155 PR tree-optimization/69214
33156 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
33157 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
33158 Formatting fix.
33159
33160 PR tree-optimization/69207
33161 * tree-vect-slp.c (vect_get_constant_vectors): For
33162 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
33163 fold_convertible_p to vector_type's element type, and always
33164 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
33165
33166 2016-01-11 Richard Biener <rguenther@suse.de>
33167
33168 PR tree-optimization/69173
33169 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
33170 fixup the cycle if all stmts are in a pattern.
33171
33172 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
33173
33174 PR middle-end/68999
33175 * alias.c (base_alias_check): Move check for addresses with
33176 alignment ANDs before the call for compare_base_decls.
33177 (memrefs_conflict_p): Return -1 for different decls
33178 that went through alignment adjustments.
33179
33180 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33181
33182 PR rtl-optimization/68796
33183 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
33184 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
33185 and QImode comparisons against zero with CC_NZmode.
33186 * config/aarch64/iterators.md (short_mask): New mode_attr.
33187
33188 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
33189
33190 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
33191 (<avx512>_store<mode>_mask): Likewise.
33192
33193 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
33194 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33195
33196 PR rtl-optimization/68841
33197 * ifcvt.c (struct noce_if_info): Add orig_x field.
33198 (bbs_ok_for_cmove_arith): Add to_rename parameter.
33199 Don't record conflicts on to_rename if it's present.
33200 Allow memory destinations in sets.
33201 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
33202 blocks, passing orig_x to the checks.
33203 (noce_process_if_block): Set if_info->orig_x appropriately.
33204
33205 2016-01-11 Tom de Vries <tom@codesourcery.com>
33206
33207 PR tree-optimization/69069
33208 * tree-parloops.c (create_parallel_loop): Add missing phi args.
33209
33210 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
33211
33212 PR rtl-optimization/68920
33213 * config/i386/i386.c (ix86_option_override_internal): Restrict number
33214 of conditional moves for RTL if-conversion to 1 for
33215 TARGET_ONE_IF_CONV_INSN.
33216 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
33217 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
33218 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
33219 parameter to restirct number of conditional moves for
33220 RTL if-conversion.
33221 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
33222 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
33223 conditionl moves.
33224
33225 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
33226
33227 PR bootstrap/69123
33228 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
33229 onepart vars. Fix typo in comment. Fix reversed condition in
33230 unshare test.
33231 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
33232
33233 PR bootstrap/69123
33234 * var-tracking.c (dump_onepart_variable_differences): New.
33235 (dataflow_set_different): If a detailed dump is requested,
33236 delay early returns and dump differences between onepart
33237 variables present before and after, and added variables.
33238
33239 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
33240
33241 PR target/69010
33242 * expr.c (expand_expr_real_1): For boolean vector constants
33243 with a scalar mode use const_scalar_mask_from_tree.
33244 (const_scalar_mask_from_tree): New.
33245 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
33246 assigned to a mask type to handle constants.
33247
33248 2016-01-11 Martin Jambor <mjambor@suse.cz>
33249
33250 PR ipa/69044
33251 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
33252 useless parameters if we cannot change function signature.
33253
33254 2016-01-11 Martin Jambor <mjambor@suse.cz>
33255
33256 PR ipa/66616
33257 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
33258 flag.
33259
33260 2016-01-11 Tom de Vries <tom@codesourcery.com>
33261
33262 PR tree-optimization/69109
33263 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
33264 latch with phi.
33265
33266 2016-01-11 Tom de Vries <tom@codesourcery.com>
33267
33268 PR tree-optimization/69108
33269 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
33270 res is not used in a phi.
33271
33272 2016-01-11 Yury Gribov <y.gribov@samsung.com>
33273
33274 PR 67425
33275 * common.opt (frandom-seed): Fix parameter name.
33276 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
33277
33278 2016-01-11 Tom de Vries <tom@codesourcery.com>
33279
33280 PR tree-optimization/69058
33281 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
33282 not supported.
33283
33284 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
33285
33286 * config/arc/arc.opt (mdiv-rem): Add period to the end.
33287 (mcode-density): Likewise.
33288
33289 2016-01-10 Tom de Vries <tom@codesourcery.com>
33290
33291 PR tree-optimization/69062
33292 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
33293 (parallelize_loops): Don't paralelize loop that has phi with address
33294 arg.
33295
33296 2016-01-10 Tom de Vries <tom@codesourcery.com>
33297
33298 PR tree-optimization/69039
33299 * tree-parloops.c (try_create_reduction_list): Only allow single exit
33300 phi for reduction.
33301
33302 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
33303
33304 PR middle-end/68743
33305 * match.pd: Require target has function_c99_misc before doing
33306 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
33307
33308 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
33309
33310 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
33311 use GMPINC.
33312 * configure: Regenerate.
33313
33314 2016-01-09 Jakub Jelinek <jakub@redhat.com>
33315
33316 PR middle-end/50865
33317 PR tree-optimization/69097
33318 * fold-const.h (expr_not_equal_to): New prototype.
33319 * fold-const.c: Include stringpool.h and tree-ssanames.h.
33320 (expr_not_equal_to): New function.
33321 * match.pd (X % -Y is the same as X % Y): Don't optimize
33322 unless X is known not to be equal to minimum or Y is known
33323 not to be equal to -1.
33324 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
33325 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
33326 (simplify_stmt_using_ranges): Adjust caller.
33327 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
33328 substitute_and_fold.
33329
33330 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
33331
33332 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
33333 w/o DECL_NAME.
33334
33335 2016-01-08 Jakub Jelinek <jakub@redhat.com>
33336
33337 PR tree-optimization/69167
33338 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
33339 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
33340 ops[0] comparison.
33341 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
33342
33343 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
33344 Richard Biener <rguenther@suse.de>
33345
33346 PR tree-optimization/68707
33347 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
33348 instances that can be handled via vect_load_lanes.
33349
33350 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
33351
33352 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
33353 if we can't determine address equivalence.
33354 * alias.c (compare_base_decl): Update for changed return value of
33355 symtab_node::equal_address_to.
33356
33357 2016-01-08 Jason Merrill <jason@redhat.com>
33358
33359 PR c++/68983
33360 PR c++/67557
33361 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
33362 * expr.c (store_field): Not here.
33363 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
33364 call with TREE_ADDRESSABLE type.
33365 * tree-cfg.c (verify_gimple_call): Adjust.
33366
33367 2016-01-08 Olivier Hainque <hainque@adacore.com>
33368
33369 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
33370 libc_internal.
33371
33372 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
33373
33374 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
33375 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
33376 (reduc_smin_v2sf): Rename to...
33377 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
33378 (reduc_splus_v2sf): Rename to...
33379 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
33380
33381 2016-01-08 Jakub Jelinek <jakub@redhat.com>
33382
33383 PR tree-optimization/69162
33384 * gimplify.c (gimplify_va_arg_expr): Encode original type of
33385 valist argument in another argument.
33386 (gimplify_modify_expr): Adjust for the above change. Cleanup.
33387 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
33388 to determine the va_list type, build a MEM_REF instead of
33389 build_fold_indirect_ref.
33390
33391 PR tree-optimization/69172
33392 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
33393 gimple_build.
33394
33395 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
33396
33397 PR tree-optimization/67781
33398 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
33399 and cmpnop in two steps: first the ones not accessed in original
33400 gimple expression in a endian independent way and then the ones not
33401 accessed in the final result in an endian-specific way.
33402
33403 2016-01-08 Jakub Jelinek <jakub@redhat.com>
33404
33405 PR tree-optimization/69083
33406 * tree-vect-slp.c (vect_get_constant_vectors): For
33407 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
33408 element type. If op is fold_convertible_p to vector_type's element
33409 type, use NOP_EXPR instead of VCE.
33410
33411 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
33412
33413 PR rtl-optimization/67778
33414 PR rtl-optimization/68634
33415 PR rtl-optimization/68909
33416 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
33417 block from the stack until done with it. Remove a superfluous
33418 bitmap set. Remove a superfluous bitmap test.
33419
33420 2016-01-07 Martin Sebor <msebor@redhat.com>
33421
33422 PR c/68966
33423 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
33424 constraint on the type of arguments.
33425
33426 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
33427
33428 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
33429 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
33430 unaligned_access on the gcc_options set.
33431 * config/arm/arm.c (arm_option_override_internal): Use
33432 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
33433
33434 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
33435
33436 PR target/69140
33437 * config/i386/i386.c (ix86_frame_pointer_required): Enable
33438 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
33439
33440 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
33441
33442 Revert
33443 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
33444
33445 PR target/69140
33446 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
33447 depending on frame_pointer_needed before remaining integer and SSE
33448 registers are saved.
33449
33450 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
33451
33452 PR 1078
33453 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
33454
33455 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
33456
33457 PR target/69171
33458 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
33459 Use the "xBm" constraint.
33460 (float<sseintvecmodelower><mode>2<mask_name><round_name):
33461 Likewise.
33462 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
33463 (sse_cvtsi2ssq<round_name>): Likewise.
33464 (sse_cvtss2si<round_name>): Likewise.
33465 (sse_cvtss2siq<round_name>): Likewise.
33466 (sse2_cvtsi2sdq<round_name>): Likewise.
33467 (sse2_cvtsd2si<round_name>): Likewise.
33468 (sse2_cvtsd2siq<round_name>): Likewise.
33469 * config/i386/subst.md (round_nimm_scalar_predicate): New
33470 predicate.
33471
33472 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
33473
33474 PR middle-end/67639
33475 * varasm.c (make_decl_rtl): Mark invalid register vars as
33476 DECL_EXTERNAL.
33477
33478 PR rtl-optimization/66206
33479 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
33480 All callers changed.
33481
33482 2016-01-07 Jakub Jelinek <jakub@redhat.com>
33483
33484 PR tree-optimization/69141
33485 * tree-ssa-pre.c: Include langhooks.h.
33486 (eliminate_dom_walker::before_dom_children): Use
33487 lang_hooks.decl_printable_name instead of
33488 cgraph_node::get ()->name ().
33489
33490 PR middle-end/68960
33491 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
33492 it and DECL_ALIGN too.
33493
33494 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
33495
33496 * config/mips/mips-ftypes.def: Sort to lexicographical order.
33497
33498 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
33499
33500 PR target/69140
33501 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
33502 depending on frame_pointer_needed before remaining integer and SSE
33503 registers are saved.
33504
33505 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33506
33507 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
33508 mode iterator with VSX_M2.
33509 (*p9_vecstore_<mode>): Likewise.
33510 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
33511 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
33512 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
33513 (define_split for VSX_LE128 stores): Likewise.
33514 (define_peephole2 for TImode LE swaps): Likewise.
33515 (define_split for VSX_LE128 post-reload stores): Likewise.
33516
33517 2016-01-06 Marek Polacek <polacek@redhat.com>
33518
33519 PR sanitizer/69099
33520 * convert.c (convert_to_integer_1): Adjust call to
33521 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
33522 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
33523 EXPR instead of ARG.
33524 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
33525
33526 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
33527
33528 PR 1078
33529 * doc/extend.texi (RL78 Variable Attributes): New section.
33530
33531 2016-01-05 Marek Polacek <polacek@redhat.com>
33532
33533 PR c/69104
33534 * builtins.c (get_memmodel): Use expansion point location rather than
33535 the input location. Call warning_at rather than warning.
33536 (expand_builtin_atomic_compare_exchange): Likewise.
33537 (expand_builtin_atomic_load): Likewise.
33538 (expand_builtin_atomic_store): Likewise.
33539 (expand_builtin_atomic_clear): Likewise.
33540
33541 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
33542
33543 PR target/68991
33544 * config/i386/i386.c (ix86_expand_vector_logical_operator):
33545 Replace nonimmediate_operand with vector_operand.
33546 * config/i386/predicates.md (vector_operand): New predicate.
33547 (general_vector_operand): Replace nonimmediate_operand with
33548 vector_operand.
33549 * config/i386/sse.md: Replace nonimmediate_operand with
33550 vector_operand and m constraint with Bm constraint on SSE
33551 patterns with 16-byte memory operand.
33552 * config/i386/subst.md (round_nimm_predicate): Replace
33553 nonimmediate_operand with vector_operand.
33554 (round_saeonly_nimm_predicate): Likewise.
33555 (round_saeonly_nimm_scalar_predicate): New.
33556
33557 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
33558
33559 PR target/68991
33560 * config/i386/constraints.md (Bm): New constraint.
33561 * config/i386/predicates.md (vector_memory_operand): New
33562 predicate.
33563 * config/i386/sse.md: Replace xm with xBm in plusminus and
33564 any_logic patterns.
33565
33566 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
33567
33568 PR 1078
33569 * doc/extend.texi (V850 Function Attributes): New section.
33570 (V850 Variable Attributes): New section.
33571
33572 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
33573
33574 PR 1078
33575 * doc/extend.texi (MicroBlaze Function Attributes): Document
33576 interrupt_handler and fast_interrupt attributes.
33577
33578 2016-01-05 Sergei Trofimovich <siarheit@google.com>
33579
33580 PR other/60465
33581 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
33582 for local symbolic operands.
33583 * config/ia64/predicates.md (local_symbolic_operand64): New
33584 predicate.
33585
33586 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33587
33588 PR rtl-optimization/68651
33589 * combine.c (combine_simplify_rtx): Canonicalize x + x into
33590 x << 1.
33591
33592 2016-01-05 Nathan Sidwell <nathan@acm.org>
33593
33594 * alias.c (compare_base_decls): Use symtab_node::get.
33595
33596 2016-01-05 Nick Clifton <nickc@redhat.com>
33597
33598 PR target/68770
33599 * ira-costs.c (copy_cost): Initialise the t_icode field of the
33600 secondary_reload_info structure.
33601
33602 PR target/66655
33603 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
33604 decls if weak support is available.
33605
33606 2016-01-04 Martin Sebor <msebor@redhat.com>
33607
33608 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
33609
33610 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
33611
33612 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
33613 OPTION_MASK_P9_DFORM.
33614
33615 * config/rs6000/constraints.md (wo constraint): New constraint for
33616 ISA 3.0 (power9).
33617
33618 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
33619 for wo constraint.
33620 (rs6000_init_hard_regno_mode_ok): Likewise.
33621
33622 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
33623 wo constraint.
33624
33625 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
33626 expanders not to have constraints. Add support for ISA 3.0 xxperm
33627 instruction. Add support for fusing xxlor with xxperm.
33628 (altivec_vperm_<mode>_internal): Likewise.
33629 (altivec_vperm_v8hiv16qi): Likewise.
33630 (altivec_vperm_<mode>v16q): Likewise.
33631 (altivec_vperm_<mode>_uns): Likewise.
33632 (vperm_v8hiv4si): Likewise.
33633 (vperm_v16qiv8hi): Likewise.
33634
33635 * doc/md.texi (RS/6000 constraints): Document wo constraint.
33636
33637 2016-01-04 Jakub Jelinek <jakub@redhat.com>
33638
33639 Update copyright years.
33640
33641 * gcc.c (process_command): Update copyright notice dates.
33642 * gcov-dump.c (print_version): Ditto.
33643 * gcov.c (print_version): Ditto.
33644 * gcov-tool.c (print_version): Ditto.
33645 * gengtype.c (create_file): Ditto.
33646 * doc/cpp.texi: Bump @copying's copyright year.
33647 * doc/cppinternals.texi: Ditto.
33648 * doc/gcc.texi: Ditto.
33649 * doc/gccint.texi: Ditto.
33650 * doc/gcov.texi: Ditto.
33651 * doc/install.texi: Ditto.
33652 * doc/invoke.texi: Ditto.
33653
33654 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
33655
33656 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
33657 modes larger than TImode as TImode if NEON is not enabled.
33658
33659 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
33660
33661 PR target/69100
33662 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
33663 mode for %f0-%f31 only if TARGET_FPU.
33664
33665 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
33666
33667 PR target/69072
33668 * config/sparc/sparc.c (scan_record_type): Take into account subfields
33669 to compute the PACKED_P predicate.
33670 (function_arg_record_value): Minor tweaks.
33671
33672 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
33673
33674 * doc/install.texi (--with-multilib-list): Describe the meaning of the
33675 option for arm*-*-* targets.
33676
33677 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
33678
33679 * doc/extend.texi (Common Function Attributes): Move docs for
33680 MSP430-specific attributes to....
33681 (MSP430 Function Attributes): ...here. Delete the redundant
33682 entries and copy-edit the remaining text.
33683 (MSP430 Variable Attributes): Use uniform format for index
33684 entries and add a cross-reference to the corresponding function
33685 attribute docs.
33686
33687 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
33688
33689 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
33690 -finite-math typo.
33691 (x86 Options): Likewise.
33692
33693 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
33694
33695 PR 1078
33696
33697 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
33698 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
33699 to corresponding attribute.
33700
33701 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
33702
33703 * doc/extend.texi (Common Function Attributes) <noplt>: Move
33704 to correct alphabetization of table. Copy-edit and correct
33705 markup.
33706 <stack_protect>: Likewise.
33707 <target_clones>: Likewise.
33708 <simd>: Likewise.
33709 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
33710 Correct punctuation.
33711 (Code Gen Options) <-fno-plt>: Copy-edit.
33712
33713 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
33714
33715 PR target/68917
33716 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
33717 SI values. Explicitly convert SI to DI and vice-versa.
33718
33719 2016-01-01 Jakub Jelinek <jakub@redhat.com>
33720
33721 PR tree-optimization/69070
33722 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
33723 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
33724
33725 PR sanitizer/69055
33726 * ubsan.c (ubsan_instrument_float_cast): Call
33727 initialize_sanitizer_builtins.
33728
33729 PR target/69015
33730 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
33731 \f
33732 Copyright (C) 2016 Free Software Foundation, Inc.
33733
33734 Copying and distribution of this file, with or without modification,
33735 are permitted in any medium without royalty provided the copyright
33736 notice and this notice are preserved.