1 2016-12-17 Andrew Senkevich <andrew.senkevich@intel.com>
3 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
4 * config/i386/avx512dqintrin.h: Ditto.
5 * config/i386/avx512fintrin.h: Ditto.
6 * config/i386/i386-builtin.def (__builtin_ia32_kaddqi,
7 __builtin_ia32_kaddhi, __builtin_ia32_kaddsi,
8 __builtin_ia32_kadddi): New.
9 * config/i386/sse.md (kadd<mode>): New.
11 2016-12-17 Uros Bizjak <ubizjak@gmail.com>
13 * config/i386/i386.md (*tzcnt<mode>_1): Merge *tzcnt<mode>_1_falsedep_1
14 and *tzcnt<mode>_1 to define_insn_and_split pattern. Adjust split
15 condition to split after epilogue_completed.
16 (ctz<mode>2): Remove expander.
17 (ctz<mode>2): Merge *ctz<mode>2_falsedep_1 and *ctz<mode>2 to
18 define_insn_and_split pattern. Adjust split condition to split
19 after epilogue_completed.
20 (clz<mode>2_lznct): Remove expander.
21 (clz<mode>2_lzcnt): Merge *clz<mode>2_lzcnt_falsedep_1 and
22 *clz<mode>2 to define_insn_and_split pattern. Adjust split
23 condition to split after epilogue_completed.
24 (<lt_zcnt>_<mode>): Remove expander.
25 (<lt_zcnt>_<mode>): Merge *<lt_zcnt>_<mode>_falsedep_1 and
26 *<lt_zcnt>_<mode> to define_insn_and_split pattern. Adjust split
27 condition to split after epilogue_completed.
28 (<lt_zcnt>_hi): New insn pattern.
29 (popcount<mode>2): Remove expander.
30 (popcount<mode>2): Merge *popcount<mode>2_falsedep_1 and
31 *popcount<mode>2 to define_insn_and_split pattern. Adjust split
32 condition to split after epilogue_completed.
33 (popcounthi2): New insn pattern.
35 2016-12-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
37 * config/rs6000/altivec.md (UNSPEC_CMPRB): New unspec value.
38 (UNSPEC_CMPRB2): New unspec value.
39 (UNSPEC_CMPEQB): New unspec value.
40 (cmprb): New expansion.
41 (*cmprb_internal): New insn.
42 (*setb_internal): New insn.
43 (cmprb2): New expansion.
44 (*cmprb2_internal): New insn.
45 (cmpeqb): New expansion.
46 (*cmpeqb_internal): New insn.
47 * config/rs6000/rs6000-builtin.def (BU_P9_2): New macro.
48 (BU_P9_64BIT_2): Likewise.
49 (BU_P9_OVERLOAD_2): Likewise.
50 (CMPRB): Add byte-in-range built-in function.
51 (CMBRB2): Add byte-in-either-range built-in function.
52 (CMPEQB): Add byte-in-set built-in function.
53 (CMPRB): Add overload support for byte-in-range function.
54 (CMPRB2): Add overload support for byte-in-either-range function.
55 (CMPEQB): Add overload support for byte-in-set built-in function.
56 * config/rs6000/rs6000-c.c (P9_BUILTIN_CMPRB): Macro expansion to
57 define argument types for new builtin.
58 (P9_BUILTIN_CMPRB2): Likewise.
59 (P9_BUILTIN_CMPEQB): Likewise.
60 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Rearrange
61 the order of presentation for certain built-in functions
62 (scalar_extract_exp, scalar_extract_sig, scalar_insert_exp)
63 (scalar_cmp_exp_gt, scalar_cmp_exp_lt, scalar_cmp_exp_eq)
64 (scalar_cmp_exp_unordered, scalar_test_data_class)
65 (scalar_test_neg) to improve locality and flow. Document
66 the new __builtin_scalar_byte_in_set,
67 __builtin_scalar_byte_in_range, and
68 __builtin_scalar_byte_in_either_range functions.
70 2016-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
72 * config/aarch64/aarch64.md: New define_split above bswap<mode>2.
74 2016-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
76 * config/aarch64/aarch64.md: New define_split above insv<mode>.
78 2016-12-16 Jakub Jelinek <jakub@redhat.com>
81 * tree-ssa-ccp.c: Include tree-dfa.h.
82 (optimize_memcpy): New function.
83 (pass_fold_builtins::execute): Use it. Remove useless conditional
84 break after BUILT_IN_VA_*.
86 2016-12-16 Marek Polacek <polacek@redhat.com>
88 PR tree-optimization/78819
89 * tree-vrp.c (find_switch_asserts): Return if the insertion limit is 0.
90 Don't register an assertion if the default case shares a label with
93 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
95 * config/arm/arm.md (subsi3_carryin): Add Thumb-2 RSC #0.
96 (arm_negdi2) Rename to negdi2_insn, allow on Thumb-2.
97 * config/arm/thumb2.md (thumb2_negdi2): Remove pattern.
99 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
101 * config/arm/arm.c (thumb_core_reg_alloc_order): Swap R12 and R14.
103 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
105 * config/arc/arc.md (call_prof): Remove.
106 (call_value_prof): Likewise.
107 (sibcall_prof): Likewise.
108 (sibcall_value_prof): Likewise.
110 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
112 * config/arc/arc.h (LINK_SPEC): Tidy up.
113 (ENDFILE_SPEC): Likewise.
114 (LIB_SPEC): Likewise.
115 (STARTFILE_SPEC): Include gcrt0 when profiling.
116 (FUNCTION_PROFILER): Use __mcount.
117 * config/arc/arc.opt (mucb-mcount): Remove.
118 * doc/invoke.texi (ARC): Remove mucb-mcount doc.
119 * arc/arc-protos.h (arc_profile_call): Remove.
120 * config/arc/arc.c (write_profile_sections): Likewise.
121 (arc_profile_call): Likewise.
122 (unspec_prof_hash): Likewise.
123 (unspec_prof_htab_eq): Likewise.
124 (arc_legitimate_constant_p): Remove UNSPEC_PROF.
125 (arc_reorg): Remove call to write_profile_sections.
126 * config/arc/arc.md (call): Remove call to arc_profile_call.
127 (call_value): Likewise.
129 (sibcall_value): Likewise.
130 (define_constants): Remove UNSPEC_PROF.
132 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
134 * config/arc/arc.md (mulsidi_600): Change to insn_and_split,
135 generate new mul64 insn for core multiplication work.
136 (umulsidi_600): Likewise, but use mulu64 insn.
137 (mul64): New pattern, content taken from old mulsidi_600 insn
139 (mulu64): Likewise, but using umulsidi_600.
140 (mulsidi3): Remove move to destination, this is now handled by
141 mulsidi_600 insn_and_split.
142 (umulsidi3): Likewise, but using umulsidi_600.
144 2016-12-16 Richard Biener <rguenther@suse.de>
147 * langhooks-def.h (lhd_unit_size_without_reusable_padding): Declare.
148 (LANG_HOOKS_UNIT_SIZE_WITHOUT_REUSABLE_PADDING): Define.
149 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Adjust.
150 * langhooks.h (struct lang_hooks_for_types): Add
151 unit_size_without_reusable_padding.
152 * langhooks.c (lhd_unit_size_without_reusable_padding): New.
153 * stor-layout.c (finish_bitfield_representative): Use
154 unit_size_without_reusable_padding langhook to decide on the
155 last representatives size.
157 2016-12-16 Richard Biener <rguenther@suse.de>
160 * expr.c (expand_cond_expr_using_cmove): Bail out early if
161 we end up recursing via TER.
163 2016-12-15 Martin Sebor <msebor@redhat.com>
166 * vec.h (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Assert
167 a pointer is non-null.
169 2016-12-15 Andrew Senkevich <andrew.senkevich@intel.com>
171 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
172 * config/i386/avx512dqintrin.h: Ditto.
173 * config/i386/avx512fintrin.h: Ditto.
174 * config/i386/i386-builtin.def (__builtin_ia32_kmovb,
175 __builtin_ia32_kmovd, __builtin_ia32_kmovq): New.
176 (__builtin_ia32_kmov16): Rename to __builtin_ia32_kmovw.
177 * config/i386/sse.md (kmov<mskmodesuffix>): New.
179 2016-12-15 Uros Bizjak <ubizjak@gmail.com>
181 * config/i386/i386.md (ffs<mode>2): Generate CCCmode flags register
183 (ffssi2_no_cmove): Ditto.
184 (*tzcnt<mode>_1_falsedep_1): New insn_and_split pattern.
185 (*tzcnt<mode>_1_falsedep): New insn pattern.
187 (LT_ZCNT): New mode iterator.
188 (lt_zcnt): New mode attribute.
189 (lt_zcnt_type): New mode attribute.
190 (<lt_zcnt>_<mode>): Macroize expander from bmi_tzcnt_<mode> and
191 lzcnt_<mode> using LT_ZCNT mode iterator.
192 (*<lt_zcnt>_<mode>_falsedep_1): Macroize insn from
193 *bmi_tzcnt_<mode>_falsedep_1 and *lzcnt_<mode>_falsedep_1
194 using LT_ZCNT mode iterator.
195 (*<lt_zcnt>_<mode>_falsedep): Macroize insn from
196 *bmi_tzcnt_<mode>_falsedep and *lzcnt_<mode>_falsedep
197 using LT_ZCNT mode iterator.
198 (*<lt_zcnt>_<mode>): Macroize insn from *bmi_tzcnt_<mode>
199 and *lzcnt_<mode> using LT_ZCNT mode iterator.
200 * config/i386/i386-builtin.def (__builtin_ia32_tzcnt_u16)
201 (__builtin_ia32_tzcnt_u32, __builtin_ia32_tzcnt_u64, __builtin_ctzs):
204 2016-12-15 Jakub Jelinek <jakub@redhat.com>
206 * ipa-cp.c (class ipcp_bits_lattice): Formatting fixes.
207 (print_ipcp_constant_value): Likewise.
208 (ipcp_cloning_candidate_p): Likewise.
209 (ipcp_bits_lattice::get_value_and_mask): Likewise.
210 (ipcp_bits_lattice::meet_with_1): Likewise.
211 (ipcp_bits_lattice::meet_with): Likewise.
212 (initialize_node_lattices): Likewise.
213 (ipcp_lattice::add_value): Likewise.
214 (propagate_vals_accross_pass_through): Renamed to ...
215 (propagate_vals_across_pass_through): ... this function.
216 (propagate_vals_accross_ancestor): Renamed to ...
217 (propagate_vals_across_ancestor): ... this.
218 (propagate_scalar_accross_jump_function): Renamed to ...
219 (propagate_scalar_across_jump_function): ... this.
220 Adjust calls to above functions.
221 (propagate_context_accross_jump_function): Renamed to ...
222 (propagate_context_across_jump_function): ... this.
223 (propagate_bits_accross_jump_function): Renamed to ...
224 (propagate_bits_accross_jump_function): ... this. Formatting fixes.
225 (propagate_vr_accross_jump_function): Renamed to ...
226 (propagate_vr_across_jump_function): ... this.
227 (merge_agg_lats_step): Formatting fixes.
228 (propagate_constants_accross_call): Renamed to ...
229 (propagate_constants_across_call): ... this. Adjust calls to above
231 (ipa_get_indirect_edge_target_1): Formatting fixes.
232 (gather_context_independent_values): Likewise.
233 (estimate_local_effects): Likewise.
234 (add_all_node_vals_to_toposort): Likewise.
235 (propagate_constants_topo): Adjust calls to above functions.
236 (get_replacement_map): Formatting fixes.
237 (dump_profile_updates): Likewise.
238 (update_profiling_info): Likewise.
239 (update_specialized_profile): Likewise.
240 (create_specialized_node): Likewise.
241 (find_more_contexts_for_caller_subset): Likewise.
242 (decide_whether_version_node): Likewise.
243 (identify_dead_nodes): Likewise.
244 (ipcp_decision_stage): Likewise.
245 (ipcp_store_bits_results): Likewise.
246 (ipcp_store_vr_results): Likewise.
247 (ipcp_driver): Likewise.
249 2016-12-15 David Malcolm <dmalcolm@redhat.com>
251 PR preprocessor/78680
252 PR preprocessor/78811
253 * input.c (struct selftest::lexer_test): Add field
254 m_implicitly_expect_EOF.
255 (selftest::lexer_error_sink): New class.
256 (selftest::lexer_error_sink::s_singleton): New global.
257 (selftest::lexer_test::lexer_test): Initialize new field
258 "m_implicitly_expect_EOF".
259 (selftest::lexer_test::~lexer_test): Conditionalize the
260 check for the EOF token on the new field.
261 (selftest::test_lexer_string_locations_raw_string_unterminated):
263 (selftest::input_c_tests): Call the new test.
265 2016-12-15 Wilco Dijkstra <wdijkstr@arm.com>
267 * config/arm/arm.h (TARGET_BACKTRACE): Use crtl->is_leaf.
268 * config/arm/arm.c (arm_option_check_internal): Improve comment.
269 (thumb_force_lr_save): Use crtl->is_leaf.
270 (arm_get_frame_offsets): Remove comment. Use crtl->is_leaf.
271 (thumb_far_jump_used_p): Remove comment.
272 (arm_frame_pointer_required): Use crtl->is_leaf.
274 2016-12-15 Jakub Jelinek <jakub@redhat.com>
276 * doc/extend.texi: Clean up @xref{...} uses.
277 * doc/invoke.texi: Likewise.
279 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
281 * arm-fpus.def: Add CNAME field to all FPU definitions.
282 * genopt.sh: Use explicit enumeration tags for FPU entries.
283 * arm-tables.opt: Regenerated.
284 * arm.opt (mfpu): Provide initial value.
285 * arm-opts.h (enum fpu_type): Build the enumeration from the list of
286 available FPUs. Add 'auto' entry on the end.
287 * arm.c (arm_configure_build_target): Only do explicit configuration
288 of the FPU features if the selected FPU is not 'auto'.
289 (arm_option_override): Adjust initialization of arm_fpu_index.
290 Emit an error if we have a hard float ABI request, but the processor
291 does not support floating-point.
292 (arm_option_print): Handle -mfpu=auto.
293 (arm_valid_target_attribute_rec): Don't permit fpu=auto in pragmas
294 or function attributes.
295 (arm_identify_fpu_from_isa): Handle effective soft-float when
296 the FPU is automatically detected.
297 * arm-cores.def (arm1136jf-s): Add feature ISA_FP_DBL.
298 (arm1176jzf-s): Likewise.
300 (arm1156t2f-s): Likewise.
302 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
304 * arm-fpus.def (ARM_FPU): Remove features field from all definitions.
305 * arm.h (arm_fpu_feature_set): Delete typedef.
306 (FPU_FL_NONE): Delete.
307 (FPU_FL_NEON): Delete.
308 (FPU_FL_FP16): Delete.
309 (FPU_FL_CRYPTO): Delete.
310 (FPU_FL_DBL): Delete.
311 (FPU_FL_D32): Delete.
312 (FPU_FL_VFPv2): Delete.
313 (FPU_FL_VFPv3): Delete.
314 (FPU_FL_VFPv4): Delete.
315 (FPU_FL_VFPv5): Delete.
316 (FPU_FL_AMRv8): Delete.
325 (FPU_CRYPTO): Delete.
327 (arm_fpu_desc): Delete features field.
328 * arm.c (all_fpus): Don't initialize feature field.
330 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
332 * arm.c (arm_can_inline_p): Use ISA features for determining
335 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
337 * arm-protos.h (arm_configure_build_target): Change second argument
338 to cl_target_options.
339 * arm.c (arm_configure_build_target): Likewise.
340 (arm_option_restore): Update accordingly.
341 (arm_option_override): Create the target_option_default_node before
342 calling arm_configure_build_target. Use it in call of latter.
343 Resynchronize after all other overrides have been calculated.
344 (arm_valid_target_attribute_tree): Use the target options for
345 reconfiguration. Resynchronize after performing override checks.
346 * arm-c.c (arm_pragma_target_parse): Use target optiosn from cur_tree
347 to reconfigure the build target.
349 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
351 * arm.h (TARGET_VFPD32): Use arm_active_target.
352 (TARGET_VFP3): Likewise.
353 (TARGET_VFP5): Likewise.
354 (TARGET_VFP_SINGLE): Likewise.
355 (TARGET_VFP_DOUBLE): Likewise.
356 (TARGET_NEON_FP16): Likewise.
357 (TARGET_FP16): Likewise.
358 (TARGET_FMA): Likewise.
359 (TARGET_FPU_ARMV8): Likewise.
360 (TARGET_CRYPTO): Likewise.
361 (TARGET_NEON): Likewise.
362 (TARGET_FPU_FEATURES): Delete.
363 * arm.c (arm_option_check_internal): Check for iwmmxt conflict with
364 Neon using arm_active_target.
366 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
368 * arm.h (TARGET_FPU_NAME): Delete.
369 * arm.c (arm_identify_fpu_from_isa): New function.
370 (arm_declare_function_name): Use it to get the name for the FPU.
372 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
374 * arm-protos.h: Include sbitmap.h
375 (arm_configure_build_target): Make public.
376 * arm.c (arm_configure_build_target): Now not static.
377 (arm_valid_target_attribute_rec): Move internal option check to...
378 (arm_valid_target_attribute_tree0: ... here. Also reconfingure the
380 (arm_override_options_after_change): Call arm_configure_build_target.
381 (isa_all_fpubits): Renamed from isa_fpubits.
382 (arm_option_restore): New function.
383 (TARGET_OPTION_RESTORE): Register it.
384 (arm_configure_build_target): Initialize the FPU capability bits in
386 (arm_option_override): Move the code that forces the setting of the
387 FPU option before the call to arm_configure_build_target.
388 * arm.opt (march): Mark as Save.
389 (mcpu, mtune): Likewise.
390 * arm-c.c (arm_pragma_target_parse): Reconfigure the build target
391 after pragmas change the target options.
393 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
395 * arm-isa.h (isa_feature): Add bits for VFPv4, FPv5, fp16conv,
396 fP_dbl, fp_d32 and fp_crypto.
397 (ISA_ALL_FPU): Add all the new bits.
398 (ISA_VFPv2, ISA_VFPv3, ISA_VFPv4, ISA_FPv5): New macros.
399 (ISA_FP_ARMv8, ISA_FP_DBL, ISA_FP_D32, ISA_NEON, ISA_CRYPTO): Likewise.
400 * arm-fpus.def: Add ISA features to all FPUs.
401 * arm.h: (arm_fpu_desc): Add new field for ISA bits.
402 * arm.c (all_fpus): Initialize it.
403 * arm-tables.opt: Regenerated.
405 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
407 * arm.h (FPU_FL_VFPv2) New feature bit.
408 (FPU_FL_VFPv3, FPU_FL_VFPv4, FPU_FL_VFPv5, FPU_FL_ARMv8): Likewise.
409 (FPU_VFPv2, FPU_VFPv3, FPU_VFPv4, FPU_VFPv5, FPU_ARMv8): New helper
411 (FPU_DBL, FPU_D32, FPU_NEON, FPU_CRYPTO, FPU_FP16): Likewise.
412 (TARGET_FPU_REV): Delete.
413 (TARGET_VFP3): Use feature bits.
414 (TARGET_VFP5): Likewise.
415 (TARGET_FMA): Likewise.
416 (TARGET_FPU_ARMV8): Likewise.
417 (struct arm_fpu_desc): Delete rev field.
418 * arm-fpus.def: Delete REV entry, use new feature bits and macros.
419 * arm.c (all_fpus): Delete rev field.
421 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
423 * arm.h (vfp_reg_type): Delete.
424 (TARGET_FPU_REGS): Delete.
425 (arm_fpu_desc): Delete regs field.
426 (FPU_FL_NONE, FPU_FL_NEON, FPU_FL_FP16, FPU_FL_CRYPTO): Use unsigned
428 (FPU_FL_DBL, FPU_FL_D32): Define.
429 (TARGET_VFPD32): Use feature test.
430 (TARGET_VFP_SINGLE): Likewise.
431 (TARGET_VFP_DOUBLE): Likewise.
432 * arm-fpus.def: Update all entries for new feature bits.
433 * arm.c (all_fpus): Update initializer macro.
434 (arm_can_inline_p): Remove test on fpu regs.
436 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
438 * arm.h (arm_fp_model): Delete.
440 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
442 * arm-cores.def: Remove FLAGS field from all core definitions.
443 * arm-arches.def: Likewise.
444 * arm-opts.h (enum processor_type): Remove FLAGS parameter from
446 (arm_arch_core_flags): Likewise, plus ARM_ARCH macro.
447 * arm-protos.h (FL_*): Delete.
448 (arm_feature_set): Delete.
449 (ARM_FSET_*): Delete.
450 * arm.c (struct processors): Delete flags field.
451 (all_cores): Delete FLAGS parameter from macro, don't initialize flags.
452 (all architectures): Likewise.
454 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
456 * arm-opts.h (struct arm_arch_core_flag): Add new field ISA.
458 (arm_arch_core_flag): Delete flags field.
459 (arm_arch_core_flags): Don't initialize flags field.
460 * common/config/arm/arm-common.c (check_isa_bits_for): New function.
461 (arm_target_thumb_only): Use new isa bits arrays.
463 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
465 * arm-protos.h (insn_flags): Delete declaration.
466 (arm_arch7ve): Declare.
467 * arm.c (insn_flags): Delete.
468 (arm_arch7ve): New variable.
469 (arm_selected_cpu): Delete.
470 (arm_option_check_internal): Use new ISA bitmap.
471 (arm_option_override_internal): Likewise.
472 (arm_configure_build_target): Declare arm_selected_cpu locally.
473 (arm_option_override): Use new ISA bitmap. Initialize arm_arch7ve.
474 Rearrange variable intialization by general function.
475 * arm.h (TARGET_HAVE_LPAE): Use arm_arch7ve.
477 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
479 * arm-builtins.c: Include sbitmap.h.
480 (def_mbuiltin): Change first parameter to a flag bit. Use it to test
481 available features in the current target.
482 (struct builtin_description): Change type of feature field.
483 (IWMMXT_BUILTIN): Use the isa_features types.
484 (IWMMXT2_BUILTIN): Likewise.
485 (IWMMXT_BUILTIN2): Likewise.
486 (IWMMXT2_BUILTIN2): Likewise.
487 (CRC32_BUILTIN): Likewise.
488 (CRYPTO_BUILTIN): Likewise.
489 (iwmmx_builtin): Likewise.
490 (iwmmx2_builtin): Likewise.
491 (arm_iwmmxt_builtin): Check for specific feature bits.
493 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
495 * arm-isa.h (enum isa_feature): Add isa_quirk_cm3_ldrd.
496 (ISA_ALL_QUIRKS): New macro.
497 * arm-cores.def (cortex-m3): Add isa_quirk_cm3_ldrd to isa feature list.
498 * arm.c (isa_quirkbits): New feature-list bitmap.
499 (arm_configure_build_target): Ignore quirk bits when comparing an
500 architecture feature list with a CPU feature list.
501 (arm_option_override): Initialize_isa_quirkbits. If the user has
502 not specified -m[no-]fix-cortex-m3-ldrd, automatically enable the
503 feature if isa_quirk_cm3_ldrd appears in the isa feature list.
505 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
507 * arm.c (arm_option_override): Use arm_active_target as source of
508 information for arm_base_arch and arm_arch_name.
509 * (arm_file_start): Use arm_active_target for core name.
511 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
513 * arm.c (arm_selected_tune): Delete static variable.
514 (arm_selected_arch): Likewise.
515 (arm_configure_build_target): Declare local versions of arm_selected
516 target and arm_selected_arch. Initialize more fields in target
518 (arm_option_override): Use arm_active_target instead of
519 arm_selected_tune and arm_selected_arch.
520 (asm_file_start): Use arm_active_target.
522 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
524 * arm-protos.h (arm_build_target): New structure.
525 (arm_active_target): Declare it.
526 * arm.c (arm_active_target): New variable.
527 (bitmap_popcount): New function.
528 (feature_count): Delete.
529 (arm_initialize_isa): New function.
530 isa_fpubits): New variable.
531 (arm_configure_build_target): New function.
532 (arm_option_override): Initialize isa_fpubits and arm_active_target.isa.
533 Use arm_configure_build_target.
535 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
537 * arm-isa.h: New file.
538 * arm-protos.h: Include it.
539 * arm-arches.def: Add new ISA field to all entries. Drop bogus
540 armv8.1-a+crc architecture.
541 * arm-cores.def: Similarly. Group ARMv8 cores by profile.
542 * arm-opts.h (enum processor_type): Adjust for new field.
543 * arm.c (struct processors): New field 'isa_bits'.
544 (all_cores, all_architectures): Initialize new field.
545 * arm-tables.opt: Regenerated.
546 * arm-tune.md: Regenerated.
548 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
550 * arm-arches.def (ARM_ARCH): Add extra field TUNE_FLAGS, move
551 tuning properties from architectural FLAGS field.
552 * arm-cores.def (ARM_CORE): Likewise.
553 * arm-protos.h (TF_LDSCHED, TF_WBUF, TF_CO_PROC): New macros.
554 (TF_SMALLMUL, TF_STRONG, TF_SCALE, TF_NOMODE32): New macros.
555 (FL_LDSCHED, FL_STRONG, FL_WBUF, FL_SMALLMUL): Delete.
556 (FL_TUNE): Remove deleted elements.
557 (tune_flags): Convert type to unsigned int.
558 * arm.c (struct processors): Add new field tune_flags.
559 (all_cores, all_arches): Initialize it.
560 (arm_option_override): Adapt uses of tune_flags. Use tune_flags
561 for deciding when we should have slow multiply operations.
563 2016-12-14 Martin Sebor <msebor@redhat.com>
566 * gimple-ssa-sprintf.c (format_string): Handle null pointers.
567 (format_directive): Diagnose null pointer arguments.
568 (pass_sprintf_length::handle_gimple_call): Diagnose null destination
569 pointers. Correct location of null format string in diagnostics.
571 2016-12-14 David Malcolm <dmalcolm@redhat.com>
573 * Makefile.in (SELFTEST_FLAGS): Add path argument to -fself-test.
574 (s-selftest): Add dependency on the selftests data directory.
575 * common.opt (fself-test): Rename to...
576 (fself-test=): ...this, documenting the meaning of the argument.
577 * selftest-run-tests.c (along): Likewise.
578 * selftest-run-tests.c: Include "options.h".
579 (selftest::run_tests): Initialize selftest::path_to_selftest_files
581 * selftest.c (selftest::path_to_selftest_files): New global.
582 (selftest::locate_file): New function.
583 (selftest::test_locate_file): New function.
584 (selftest_c_tests): Likewise.
585 (selftest::selftest_c_tests): Call test_locate_file.
586 * selftest.h (selftest::locate_file): New decl.
587 (selftest::path_to_selftest_files): New decl.
589 2016-12-14 Andrew Pinski <apinski@cavium.com>
591 * config/aarch64/aarch64-cores.def: Add -1 as the variant to all
593 (thunderx): Update to include LSE by default.
594 (thunderxt88p1): New core.
595 (thunderxt88): New core.
596 (thunderxt81): New core.
597 (thunderxt83): New core.
598 * config/aarch64/driver-aarch64.c (struct aarch64_core_data):
600 (ALL_VARIANTS): New define.
601 (AARCH64_CORE): Support VARIANT operand.
602 (cpu_data): Likewise.
603 (host_detect_local_cpu): Parse variant field of /proc/cpuinfo.
604 Combine the arch and single core case and support variant searching.
605 * common/config/aarch64/aarch64-common.c (AARCH64_CORE):
607 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Likewise.
608 * config/aarch64/aarch64.c (AARCH64_CORE): Likewise.
609 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
610 * config/aarch64/aarch64-tune.md: Regenerate.
611 * doc/invoke.texi (AARCH64/mtune): Document thunderxt88,
612 thunderxt88p1, thunderxt81, thunderxt83 as available options.
614 2016-12-14 Martin Jambor <mjambor@suse.cz>
616 * omp-offload.c: Fix coding style.
617 * omp-expand.c: Likewise.
618 * omp-general.c: Likewise.
619 * omp-grid.c: Likewise.
620 * omp-low.c: Fix coding style of parts touched by the
621 previous splitting patch.
623 2016-12-14 Martin Jambor <mjambor@suse.cz>
625 * omp-general.h: New file.
626 * omp-general.c: New file.
627 * omp-expand.h: Likewise.
628 * omp-expand.c: Likewise.
629 * omp-offload.h: Likewise.
630 * omp-offload.c: Likewise.
631 * omp-grid.c: Likewise.
632 * omp-grid.c: Likewise.
633 * omp-low.h: Include omp-general.h and omp-grid.h. Removed includes
634 of params.h, symbol-summary.h, lto-section-names.h, cilk.h, tree-eh.h,
635 ipa-prop.h, tree-cfgcleanup.h, cfgloop.h, except.h, expr.h, stmt.h,
636 varasm.h, calls.h, explow.h, dojump.h, flags.h, tree-into-ssa.h,
637 tree-cfg.h, cfganal.h, alias.h, emit-rtl.h, optabs.h, expmed.h,
638 alloc-pool.h, cfghooks.h, rtl.h and memmodel.h.
639 (omp_find_combined_for): Declare.
640 (find_omp_clause): Renamed to omp_find_clause and moved to
642 (free_omp_regions): Renamed to omp_free_regions and moved to
644 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
646 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
648 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
649 moved to omp-general.h.
650 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
652 (oacc_fn_attrib_kernels_p): Moved to omp-general.h.
653 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
655 (omp_expand_local): Moved to omp-expand.h.
656 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
658 (omp_finish_file): Moved to omp-offload.h.
659 (default_goacc_validate_dims): Renamed to
660 oacc_default_goacc_validate_dims and moved to omp-offload.h.
661 (offload_funcs, offload_vars): Moved to omp-offload.h.
662 * omp-low.c: Include omp-general.h, omp-offload.h and omp-grid.h.
663 (omp_region): Moved to omp-expand.c.
664 (omp_for_data_loop): Moved to omp-general.h.
665 (omp_for_data): Likewise.
666 (oacc_loop): Moved to omp-offload.c.
667 (oacc_loop_flags): Moved to omp-general.h.
668 (offload_funcs, offload_vars): Moved to omp-offload.c.
669 (root_omp_region): Moved to omp-expand.c.
670 (omp_any_child_fn_dumped): Likewise.
671 (find_omp_clause): Renamed to omp_find_clause and moved to
673 (is_combined_parallel): Moved to omp-expand.c.
674 (is_reference): Renamed to omp_is_reference and and moved to
676 (adjust_for_condition): Renamed to omp_adjust_for_condition and moved
678 (get_omp_for_step_from_incr): Renamed to omp_get_for_step_from_incr
679 and moved to omp-general.c.
680 (extract_omp_for_data): Renamed to omp_extract_for_data and moved to
682 (workshare_safe_to_combine_p): Moved to omp-expand.c.
683 (omp_adjust_chunk_size): Likewise.
684 (get_ws_args_for): Likewise.
685 (get_base_type): Removed.
686 (dump_omp_region): Moved to omp-expand.c.
687 (debug_omp_region): Likewise.
688 (debug_all_omp_regions): Likewise.
689 (new_omp_region): Likewise.
690 (free_omp_region_1): Likewise.
691 (free_omp_regions): Renamed to omp_free_regions and moved to
693 (find_combined_for): Renamed to omp_find_combined_for, made global.
694 (build_omp_barrier): Renamed to omp_build_barrier and moved to
696 (omp_max_vf): Moved to omp-general.c.
697 (omp_max_simt_vf): Likewise.
698 (gimple_build_cond_empty): Moved to omp-expand.c.
699 (parallel_needs_hsa_kernel_p): Likewise.
700 (expand_omp_build_assign): Moved declaration to omp-expand.c.
701 (expand_parallel_call): Moved to omp-expand.c.
702 (expand_cilk_for_call): Likewise.
703 (expand_task_call): Likewise.
704 (vec2chain): Likewise.
705 (remove_exit_barrier): Likewise.
706 (remove_exit_barriers): Likewise.
707 (optimize_omp_library_calls): Likewise.
708 (expand_omp_regimplify_p): Likewise.
709 (expand_omp_build_assign): Likewise.
710 (expand_omp_taskreg): Likewise.
711 (oacc_collapse): Likewise.
712 (expand_oacc_collapse_init): Likewise.
713 (expand_oacc_collapse_vars): Likewise.
714 (expand_omp_for_init_counts): Likewise.
715 (expand_omp_for_init_vars): Likewise.
716 (extract_omp_for_update_vars): Likewise.
717 (expand_omp_ordered_source): Likewise.
718 (expand_omp_ordered_sink): Likewise.
719 (expand_omp_ordered_source_sink): Likewise.
720 (expand_omp_for_ordered_loops): Likewise.
721 (expand_omp_for_generic): Likewise.
722 (expand_omp_for_static_nochunk): Likewise.
723 (find_phi_with_arg_on_edge): Likewise.
724 (expand_omp_for_static_chunk): Likewise.
725 (expand_cilk_for): Likewise.
726 (expand_omp_simd): Likewise.
727 (expand_omp_taskloop_for_outer): Likewise.
728 (expand_omp_taskloop_for_inner): Likewise.
729 (expand_oacc_for): Likewise.
730 (expand_omp_for): Likewise.
731 (expand_omp_sections): Likewise.
732 (expand_omp_single): Likewise.
733 (expand_omp_synch): Likewise.
734 (expand_omp_atomic_load): Likewise.
735 (expand_omp_atomic_store): Likewise.
736 (expand_omp_atomic_fetch_op): Likewise.
737 (expand_omp_atomic_pipeline): Likewise.
738 (expand_omp_atomic_mutex): Likewise.
739 (expand_omp_atomic): Likewise.
740 (oacc_launch_pack): and moved to omp-general.c, made public.
741 (OACC_FN_ATTRIB): Likewise.
742 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
744 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
746 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
747 moved to omp-general.c.
748 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
750 (oacc_fn_attrib_kernels_p): Moved to omp-general.c.
751 (oacc_fn_attrib_level): Moved to omp-offload.c.
752 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
754 (get_oacc_ifn_dim_arg): Renamed to oacc_get_ifn_dim_arg and moved to
756 (mark_loops_in_oacc_kernels_region): Moved to omp-expand.c.
757 (grid_launch_attributes_trees): Likewise.
758 (grid_attr_trees): Likewise.
759 (grid_create_kernel_launch_attr_types): Likewise.
760 (grid_insert_store_range_dim): Likewise.
761 (grid_get_kernel_launch_attributes): Likewise.
762 (get_target_argument_identifier_1): Likewise.
763 (get_target_argument_identifier): Likewise.
764 (get_target_argument_value): Likewise.
765 (push_target_argument_according_to_value): Likewise.
766 (get_target_arguments): Likewise.
767 (expand_omp_target): Likewise.
768 (grid_expand_omp_for_loop): Moved to omp-grid.c.
769 (grid_arg_decl_map): Likewise.
770 (grid_remap_kernel_arg_accesses): Likewise.
771 (grid_expand_target_grid_body): Likewise.
772 (expand_omp): Renamed to omp_expand and moved to omp-expand.c.
773 (build_omp_regions_1): Moved to omp-expand.c.
774 (build_omp_regions_root): Likewise.
775 (omp_expand_local): Likewise.
776 (build_omp_regions): Likewise.
777 (execute_expand_omp): Likewise.
778 (pass_data_expand_omp): Likewise.
779 (pass_expand_omp): Likewise.
780 (make_pass_expand_omp): Likewise.
781 (pass_data_expand_omp_ssa): Likewise.
782 (pass_expand_omp_ssa): Likewise.
783 (make_pass_expand_omp_ssa): Likewise.
784 (grid_lastprivate_predicate): Renamed to
785 omp_grid_lastprivate_predicate and moved to omp-grid.c, made public.
786 (grid_prop): Moved to omp-grid.c.
787 (GRID_MISSED_MSG_PREFIX): Likewise.
788 (grid_safe_assignment_p): Likewise.
789 (grid_seq_only_contains_local_assignments): Likewise.
790 (grid_find_single_omp_among_assignments_1): Likewise.
791 (grid_find_single_omp_among_assignments): Likewise.
792 (grid_find_ungridifiable_statement): Likewise.
793 (grid_parallel_clauses_gridifiable): Likewise.
794 (grid_inner_loop_gridifiable_p): Likewise.
795 (grid_dist_follows_simple_pattern): Likewise.
796 (grid_gfor_follows_tiling_pattern): Likewise.
797 (grid_call_permissible_in_distribute_p): Likewise.
798 (grid_handle_call_in_distribute): Likewise.
799 (grid_dist_follows_tiling_pattern): Likewise.
800 (grid_target_follows_gridifiable_pattern): Likewise.
801 (grid_remap_prebody_decls): Likewise.
802 (grid_var_segment): Likewise.
803 (grid_mark_variable_segment): Likewise.
804 (grid_copy_leading_local_assignments): Likewise.
805 (grid_process_grid_body): Likewise.
806 (grid_eliminate_combined_simd_part): Likewise.
807 (grid_mark_tiling_loops): Likewise.
808 (grid_mark_tiling_parallels_and_loops): Likewise.
809 (grid_process_kernel_body_copy): Likewise.
810 (grid_attempt_target_gridification): Likewise.
811 (grid_gridify_all_targets_stmt): Likewise.
812 (grid_gridify_all_targets): Renamed to omp_grid_gridify_all_targets
813 and moved to omp-grid.c, made public.
814 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
816 (add_decls_addresses_to_decl_constructor): Moved to omp-offload.c.
817 (omp_finish_file): Likewise.
818 (oacc_thread_numbers): Likewise.
819 (oacc_xform_loop): Likewise.
820 (oacc_default_dims, oacc_min_dims): Likewise.
821 (oacc_parse_default_dims): Likewise.
822 (oacc_validate_dims): Likewise.
823 (new_oacc_loop_raw): Likewise.
824 (new_oacc_loop_outer): Likewise.
825 (new_oacc_loop): Likewise.
826 (new_oacc_loop_routine): Likewise.
827 (finish_oacc_loop): Likewise.
828 (free_oacc_loop): Likewise.
829 (dump_oacc_loop_part): Likewise.
830 (dump_oacc_loop): Likewise.
831 (debug_oacc_loop): Likewise.
832 (oacc_loop_discover_walk): Likewise.
833 (oacc_loop_sibling_nreverse): Likewise.
834 (oacc_loop_discovery): Likewise.
835 (oacc_loop_xform_head_tail): Likewise.
836 (oacc_loop_xform_loop): Likewise.
837 (oacc_loop_process): Likewise.
838 (oacc_loop_fixed_partitions): Likewise.
839 (oacc_loop_auto_partitions): Likewise.
840 (oacc_loop_partition): Likewise.
841 (default_goacc_fork_join): Likewise.
842 (default_goacc_reduction): Likewise.
843 (execute_oacc_device_lower): Likewise.
844 (default_goacc_validate_dims): Likewise.
845 (default_goacc_dim_limit): Likewise.
846 (pass_data_oacc_device_lower): Likewise.
847 (pass_oacc_device_lower): Likewise.
848 (make_pass_oacc_device_lower): Likewise.
849 (execute_omp_device_lower): Likewise.
850 (pass_data_omp_device_lower): Likewise.
851 (pass_omp_device_lower): Likewise.
852 (make_pass_omp_device_lower): Likewise.
853 (pass_data_omp_target_link): Likewise.
854 (pass_omp_target_link): Likewise.
855 (find_link_var_op): Likewise.
856 (pass_omp_target_link::execute): Likewise.
857 (make_pass_omp_target_link): Likewise.
858 * Makefile.in (OBJS): Added omp-offload.o, omp-expand.o, omp-general.o
860 (GTFILES): Added omp-offload.h, omp-offload.c and omp-expand.c, removed
862 * gimple-fold.c: Include omp-general.h instead of omp-low.h.
863 (fold_internal_goacc_dim): Adjusted calls to
864 get_oacc_ifn_dim_arg and get_oacc_fn_dim_size to use their new names.
865 * gimplify.c: Include omp-low.h.
866 (omp_notice_variable): Adjust the call to get_oacc_fn_attrib to use
868 (gimplify_omp_task): Adjusted calls to find_omp_clause to use its new
870 (gimplify_omp_for): Likewise.
871 * lto-cgraph.c: Include omp-offload.h instead of omp-low.h.
872 * toplev.c: Include omp-offload.h instead of omp-low.h.
873 * tree-cfg.c: Include omp-general.h instead of omp-low.h. Also
874 include omp-expand.h.
875 (make_edges_bb): Adjusted the call to make_gimple_omp_edges to use its
877 (make_edges): Adjust the call to free_omp_regions to use its new name.
878 * tree-parloops.c: Include omp-general.h.
879 (create_parallel_loop): Adjusted the call to set_oacc_fn_attrib to use
881 (parallelize_loops): Adjusted the call to get_oacc_fn_attrib to use
883 * tree-ssa-loop.c: Include omp-general.h instead of omp-low.h.
884 (gate_oacc_kernels): Adjusted the call to get_oacc_fn_attrib to use
886 * tree-vrp.c: Include omp-general.h instead of omp-low.h.
887 (extract_range_basic): Adjusted calls to get_oacc_ifn_dim_arg and
888 get_oacc_fn_dim_size to use their new names.
889 * varpool.c: Include omp-offload.h instead of omp-low.h.
890 * gengtype.c (open_base_files): Replace omp-low.h with omp-offload.h in
892 * config/nvptx/nvptx.c: Include omp-general.c.
893 (nvptx_expand_call): Adjusted the call to get_oacc_fn_attrib to use
895 (nvptx_reorg): Likewise.
896 (nvptx_record_offload_symbol): Likewise.
898 2016-12-14 Martin Sebor <msebor@redhat.com>
901 * gimple-ssa-sprintf.c (target_dir_max): New macro.
902 (get_mpfr_format_length): New function.
903 (format_integer): Use HOST_WIDE_INT instead of int.
904 (format_floating_max): Same.
905 (format_floating): Call get_mpfr_format_length.
906 (format_directive): Use target_dir_max.
908 2016-12-14 Jakub Jelinek <jakub@redhat.com>
911 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_STV_TEMP.
912 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies,
913 dimode_scalar_chain::convert_reg): Use SLOT_STV_TEMP instead of
916 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
919 * config/i386/i386-builtin.def: Add __builtin_clzs and __builtin_ctzs.
920 (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
921 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
924 2016-12-14 Jakub Jelinek <jakub@redhat.com>
927 * valtrack.c: Include rtl-iter.h.
928 (struct rtx_subst_pair): Add insn field.
929 (propagate_for_debug_subst): If pair->to contains at least 2
930 regs, create a DEBUG_INSN with a debug temp before pair->insn
931 and replace from with the debug temp instead of pair->to.
932 (propagate_for_debug): Initialize p.insn.
933 * combine.c (insn_uid_check): New inline function.
934 (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
935 (find_single_use, combine_instructions,
936 cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
939 2016-12-14 Martin Sebor <msebor@redhat.com>
942 * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
943 (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
944 (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
945 (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
946 (ATTR_NOTHROW_NONNULL_1_5): Same.
947 (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
948 (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
949 (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
950 (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
951 (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
952 (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
953 (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
954 * builtins.c (validate_arg): Add argument. Treat null pointers
955 passed to nonnull arguments as invalid.
956 (validate_arglist): Same.
957 * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
958 (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
959 (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
960 * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
961 (initialize_argument_information): Diagnose null pointers passed to
962 arguments declared nonnull.
963 * calls.h (get_nonnull_args): Declared.
965 2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
967 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
968 3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
970 * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
971 type constraint registers.
973 (FL_CONV): New mode iterator for binary floating types that have a
974 direct conversion from 64-bit integer to floating point.
975 (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
976 VEXTU{B,H,W}{L,R}X extract instructions.
977 (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
978 extract byte position into the GPR if we are using the
979 VEXTU{B,H,W}{L,R}X extract instructions.
980 (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
981 (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
982 we can use reg+offset address instructions.
983 (vsx_extract_<mode>_var): Support extracts to GPRs.
984 (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
985 insn to combine vector extracts with zero_extend.
986 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
987 extracting a small integer vector element and converting it to a
989 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
990 (UNSPEC_XXEXTRACTUW): New unspec.
991 (UNSPEC_XXINSERTW): Likewise.
992 (vextract4b): Add support for the vec_vextract4b built-in
994 (vextract4b_internal): Likewise.
995 (vinsert4b): Add support for the vec_insert4b built-in function.
996 Include both a version that inserts element 1 from a V4SI object
997 and one that inserts a DI object.
998 (vinsert4b_internal): Likewise.
999 (vinsert4b_di): Likewise.
1000 (vinsert4b_di_internal): Likewise.
1001 * config/rs6000/predicates.md (const_0_to_11_operand): New
1002 predicate, match 0..11.
1003 * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
1004 type to ternary, not binary.
1005 (BU_P9V_64BIT_VSX_3): Likewise.
1006 (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
1007 vec_extract4b non-overloaded built-in functions.
1008 (P9V_BUILTIN_VINSERT4B): Likewise.
1009 (P9V_BUILTIN_VINSERT4B_DI): Likewise.
1010 (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
1011 3.0 built-in functions.
1012 (P9V_BUILTIN_VEC_VEXTURX): Likewise.
1013 (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
1014 vec_insert4b and vec_extract4 built-in functions.
1015 (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
1016 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1017 overloaded support for vec_vinsert4b and vec_extract4b.
1018 * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
1019 the vec_insert4b and vec_extract4b byte number being a constant in
1021 * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
1022 and vec_extract4b built-in functions.
1023 * doc/extend.doc (PowerPC VSX built-in functions): Document
1024 vec_insert4b and vec_extract4b.
1026 2016-12-14 Martin Liska <mliska@suse.cz>
1028 * gimple-pretty-print.c (dump_probability): New function.
1029 (dump_edge_probability): Use the function.
1030 (dump_gimple_label): Likewise.
1031 (dump_gimple_bb_header): Likewise.
1033 2016-12-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1034 Jakub Jelinek <jakub@redhat.com>
1036 * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
1037 (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
1039 2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
1041 * lra-constraints.c (process_address_1): Do not attempt to decompose
1042 addresses for MEMs that satisfy fixed-form constraints.
1044 2016-12-14 Richard Biener <rguenther@suse.de>
1046 PR tree-optimization/78788
1047 * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
1048 (set_and_canonicalize_value_range): Do not drop the above to
1051 2016-12-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1053 * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
1054 Adjust unaligned load cost.
1056 2016-12-13 Uros Bizjak <ubizjak@gmail.com>
1059 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
1060 Calculate additional gain for andnot for targets without BMI.
1062 2016-12-13 Carl Love <cel@us.ibm.com>
1064 * config/rs6000/rs6000-c.c: Add built-in support for
1065 vector float vec_pack (vector double, vector double)
1066 vector double vec_sld (vector double, vector double)
1067 * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
1068 4-bit unsigned literal.
1069 * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
1070 * doc/extend.texi: Update the built-in documentation file for the
1071 new powerpc vec_pack and vec_sld built-ins.
1073 2016-12-13 Martin Liska <mliska@suse.cz>
1075 * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
1076 (sanopt_optimize): Add new argument.
1077 (sanitize_asan_mark_unpoison): New function.
1078 (maybe_contains_asan_check): Likewise.
1079 (sanitize_asan_mark_poison): Likewise.
1080 (pass_sanopt::execute): Call the new functions.
1082 2016-12-13 Martin Liska <mliska@suse.cz>
1084 PR tree-optimization/78428
1085 * expr.c (store_constructor_field): Add new arguments to the function.
1086 (store_constructor): Set up bitregion_end and add gcc_unreachable to
1087 fields that have either non-constant size or (and) offset.
1089 2016-12-13 Marek Polacek <polacek@redhat.com>
1091 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
1092 parameters' type from int to HOST_WIDE_INT.
1093 (compute_overlap_steps_for_affine_1_2): Change parameters' type from
1094 int to HOST_WIDE_INT.
1095 (build_classic_dist_vector_1): Likewise.
1096 (add_multivariate_self_dist): Likewise.
1098 2016-12-13 Michael Matz <matz@suse.de>
1100 PR tree-optimization/78725
1101 * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
1102 at correct use point.
1104 2016-12-13 Martin Liska <mliska@suse.cz>
1106 * asan.c (asan_expand_mark_ifn): Use renamed
1107 BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
1108 * sanitizer.def: Likewise.
1110 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1112 * doc/extend.texi (Half-Precision): Update to document current
1115 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1117 * doc/extend.texi (Floating Types): Document availability of
1118 _Float16 on ARM/AArch64.
1120 2016-12-13 Richard Biener <rguenther@suse.de>
1122 PR tree-optimization/78699
1123 * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
1126 2016-12-13 Richard Biener <rguenther@suse.de>
1129 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
1130 * tree-object-size.c (compute_builtin_object_size): Use
1132 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
1134 2016-12-13 Martin Liska <mliska@suse.cz>
1136 * asan.c (asan_mark_poison_p): Remove.
1137 (asan_mark_p): New function.
1138 (transform_statements): Use the function.
1139 (asan_expand_mark_ifn): Do not use masked enum.
1140 * asan.h (enum asan_mark_flags): Declare it via a macro.
1141 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
1142 argument of ASAN_MARK.
1143 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
1144 (asan_poison_variable): Likewise.
1146 2016-12-13 Jakub Jelinek <jakub@redhat.com>
1149 * ipa-pure-const.c (cdtor_p): Return true for
1150 DECL_STATIC_{CON,DE}STRUCTOR even when it is
1151 DECL_LOOPING_CONST_OR_PURE_P.
1153 2016-12-12 Jakub Jelinek <jakub@redhat.com>
1155 PR tree-optimization/78777
1156 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
1157 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
1160 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
1163 2016-12-12 Martin Sebor <msebor@redhat.com>
1167 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
1168 rather than res.bounded.
1169 (get_width_and_precision): Set precision to -1 when negative.
1170 (adjust_range_for_overflow): New function.
1171 (format_integer): Correct the handling of the space, plus, and pound
1172 flags, and the special case of zero precision.
1173 Always set res.bounded to true unless either precision or width
1174 is specified and unknown.
1175 Call adjust_range_for_overflow.
1176 Avoid use zero as the shortest value when precision is specified
1178 (format_directive): Remove vestigial quoting. Always inform of
1179 argument value or range when it's available.
1180 (add_bytes): Correct the computation of boundrange used to
1181 decide whether a warning is of a "maybe" or "defnitely" kind.
1183 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
1185 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
1187 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
1190 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
1191 flag_unsafe_math_optimizations.
1192 (X87_ENABLE_FLOAT): Ditto.
1194 2016-12-12 Marek Polacek <polacek@redhat.com>
1197 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
1198 Case 1; check POINTER_TYPE_P instead.
1200 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
1202 PR rtl-optimization/78669
1203 * ira.c (combine_and_move_insns): When deleting an insn, clear the
1204 replace flag for all used regs in that insn.
1206 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1208 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
1209 arm_arch_core_flags to ...
1210 * common/config/arm/arm-common.c: There.
1212 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
1214 * config/sparc/constraints.md (T): Use special memory constraint.
1216 (W): Add TARGET_ARCH64 test.
1217 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
1218 (*movdf_insn_sp32): Likewise.
1219 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
1220 conjunction with offsettable memory references.
1222 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
1224 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
1225 to avoid shared structure error.
1227 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1230 * config/rs6000/rs6000.c (find_alignment_op): Discard from
1231 consideration any artificial definition.
1233 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1235 * configure.ac (CROSS directory tests): Remove the assumption that
1236 Darwin hosts contain suitable target sysroots in "/".
1237 * configure: Regenerate.
1239 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1241 PR rtl-optimization/71496
1242 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
1243 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
1244 reload_macho_picbase_di): Likewise.
1246 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
1248 * config/pa/pa.c (pa_callee_copies): New function.
1249 * config/pa/pa.opt (mcaller-copies): New option.
1250 * doc/invoke.texi (mcaller-copies): Document option.
1252 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
1255 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
1256 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
1258 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
1259 constant shifts larger or equal than 32.
1261 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
1263 * config/i386/x86-64.h: Append --32 to the assembler options when
1264 -m16 is used on non-glibc systems as well.
1266 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
1269 * config/i386/mmintrin.h (__m64_u): New type
1270 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
1271 Make the allowed unaligned memory access explicit.
1273 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
1275 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
1276 Generally use cpu generic.
1278 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1279 Marc Glisse <marc.glisse@inria.fr>
1281 PR tree-optimization/78720
1282 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
1283 is negative, sign extend to @1's type and than AND with C.
1285 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1288 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
1289 non-zero low bound or non-standard element sizes.
1292 * lto-streamer-in.c (input_function): In addition to debug stmts
1293 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
1296 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1298 * config/rs6000/rs6000-passes.def: New file.
1299 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
1300 * config/rs6000/rs6000.c (rs6000_option_override): Remove
1301 registration of machine-specific passes.
1302 (pass_analyze_swaps::clone): New function.
1303 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
1305 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
1308 * ipa-cp.c (propagate_vr_accross_jump_function): Call
1309 drop_tree_overflow after fold_convert.
1311 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1314 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
1315 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
1318 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
1321 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
1322 GET_MODE_BITSIZE. Return 2.
1323 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
1324 TARGET_POPCNTD the same as TARGET_CTZ.
1325 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
1326 (ffs<mode>2): Reimplement.
1328 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
1330 PR rtl-optimization/78255
1331 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
1332 NO_FUNCTION_CSE is true.
1334 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
1337 * ipa-icf.c (sem_function::parse): Don't process functions with
1338 oacc decl attributes, as they may be OpenACC routines.
1340 2016-12-09 David Malcolm <dmalcolm@redhat.com>
1342 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
1345 2016-12-09 Nathan Sidwell <nathan@acm.org>
1348 * convert.c (convert_to_integer_1): Maybe fold conversions to
1349 integral types with fewer bits than its mode.
1351 2016-12-09 Martin Liska <mliska@suse.cz>
1353 * tree-pretty-print.c (pretty_print_string): Escape non-printable
1356 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1358 PR tree-optimization/78726
1359 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
1360 argument. For lhs uses in debug stmts, don't replace lhs with
1361 new_lhs, but with a debug temp set to new_lhs opcode op.
1362 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
1363 OP down to make_new_ssa_for_def.
1364 (zero_one_operation): Call make_new_ssa_for_all_defs even when
1365 stmts_to_fix is empty, if *def has not changed yet. Pass
1366 OPCODE to make_new_ssa_for_all_defs.
1368 2016-12-08 Martin Sebor <msebor@redhat.com>
1371 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1372 identifier tree nodes.
1373 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1374 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1375 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1376 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1377 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1378 * builtins.c (expand_builtin_alloca): Call
1379 maybe_warn_alloc_args_overflow.
1380 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1381 Add attribute alloc_size.
1382 (alloca): Add attribute alloc_size and returns_nonnull.
1383 * calls.h (maybe_warn_alloc_args_overflow): Declare.
1384 * calls.c (alloc_max_size, operand_signed_p): New functions.
1385 (maybe_warn_alloc_args_overflow): Define.
1386 (initialize_argument_information): Diagnose overflow in functions
1387 declared with attaribute alloc_size.
1388 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
1389 -Walloc-size-larger-than.
1391 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
1393 PR rtl-optimization/78671
1394 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
1397 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
1399 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
1400 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
1402 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
1405 * config/aarch64/aarch64.c (aarch64_classify_address):
1406 Set load_store_pair_p for TImode and TFmode.
1408 2016-12-08 David Malcolm <dmalcolm@redhat.com>
1410 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
1411 regno_reg_rtx resizing logic to...
1412 (emit_status::ensure_regno_capacity): ...this new method,
1413 and ensure that the buffers are large enough.
1414 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
1415 rather than ggc_vec_alloc.
1416 * function.h (emit_status::ensure_regno_capacity): New method.
1418 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
1420 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
1421 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
1422 * doc/invoke.texi (-fsanitize=kernel-address):
1423 Don't say that it enables -fsanitize-address-use-after-scope.
1425 2016-12-08 Bin Cheng <bin.cheng@arm.com>
1428 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
1429 sign bit for index step of data reference.
1431 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1433 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1434 Handle SYMBOL_SMALL_TLSGD for ILP32.
1435 * config/aarch64/aarch64.md : tlsgd_small modified into
1436 tlsgd_small_<mode> to support SImode and DImode.
1437 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
1440 2016-12-08 Andrew Pinski <apinski@cavium.com>
1442 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1443 Access the lower part of RTX appropriately.
1445 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1447 * genpreds.c (write_tm_constrs_h): Update for renaming of
1448 rtx_reader_ptr to md_reader_ptr.
1449 (write_tm_preds_h): Likewise.
1450 (write_insn_preds_c): Likewise.
1451 * read-md.c (rtx_reader_ptr): Rename to...
1452 (md_reader_ptr): ...this, and convert from an
1453 rtx_reader * to a md_reader *.
1454 (rtx_reader::set_md_ptr_loc): Rename to...
1455 (md_reader::set_md_ptr_loc): ...this.
1456 (rtx_reader::get_md_ptr_loc): Rename to...
1457 (md_reader::get_md_ptr_loc): ...this.
1458 (rtx_reader::copy_md_ptr_loc): Rename to...
1459 (md_reader::copy_md_ptr_loc): ...this.
1460 (rtx_reader::fprint_md_ptr_loc): Rename to...
1461 (md_reader::fprint_md_ptr_loc): ...this.
1462 (rtx_reader::print_md_ptr_loc): Rename to...
1463 (md_reader::print_md_ptr_loc): ...this.
1464 (rtx_reader::join_c_conditions): Rename to...
1465 (md_reader::join_c_conditions): ...this.
1466 (rtx_reader::fprint_c_condition): ...this.
1467 (rtx_reader::print_c_condition): Rename to...
1468 (md_reader::print_c_condition): ...this.
1469 (fatal_with_file_and_line): Update for renaming of
1470 rtx_reader_ptr to md_reader_ptr.
1471 (rtx_reader::require_char): Rename to...
1472 (md_reader::require_char): ...this.
1473 (rtx_reader::require_char_ws): Rename to...
1474 (md_reader::require_char_ws): ...this.
1475 (rtx_reader::require_word_ws): Rename to...
1476 (md_reader::require_word_ws): ...this.
1477 (rtx_reader::read_char): Rename to...
1478 (md_reader::read_char): ...this.
1479 (rtx_reader::unread_char): Rename to...
1480 (md_reader::unread_char): ...this.
1481 (rtx_reader::peek_char): Rename to...
1482 (md_reader::peek_char): ...this.
1483 (rtx_reader::read_name): Rename to...
1484 (md_reader::read_name): ...this.
1485 (rtx_reader::read_escape): Rename to...
1486 (md_reader::read_escape): ...this.
1487 (rtx_reader::read_quoted_string): Rename to...
1488 (md_reader::read_quoted_string): ...this.
1489 (rtx_reader::read_braced_string): Rename to...
1490 (md_reader::read_braced_string): ...this.
1491 (rtx_reader::read_string): Rename to...
1492 (md_reader::read_string): ...this.
1493 (rtx_reader::read_skip_construct): Rename to...
1494 (md_reader::read_skip_construct): ...this.
1495 (rtx_reader::handle_constants): Rename to...
1496 (md_reader::handle_constants): ...this.
1497 (rtx_reader::traverse_md_constants): Rename to...
1498 (md_reader::traverse_md_constants): ...this.
1499 (rtx_reader::handle_enum): Rename to...
1500 (md_reader::handle_enum): ...this.
1501 (rtx_reader::lookup_enum_type): Rename to...
1502 (md_reader::lookup_enum_type): ...this.
1503 (rtx_reader::traverse_enum_types): Rename to...
1504 (md_reader::traverse_enum_types): ...this.
1505 (rtx_reader::rtx_reader): Rename to...
1506 (md_reader::md_reader): ...this, and update for renaming of
1507 rtx_reader_ptr to md_reader_ptr.
1508 (rtx_reader::~rtx_reader): Rename to...
1509 (md_reader::~md_reader): ...this, and update for renaming of
1510 rtx_reader_ptr to md_reader_ptr.
1511 (rtx_reader::handle_include): Rename to...
1512 (md_reader::handle_include): ...this.
1513 (rtx_reader::handle_file): Rename to...
1514 (md_reader::handle_file): ...this.
1515 (rtx_reader::handle_toplevel_file): Rename to...
1516 (md_reader::handle_toplevel_file): ...this.
1517 (rtx_reader::get_current_location): Rename to...
1518 (md_reader::get_current_location): ...this.
1519 (rtx_reader::add_include_path): Rename to...
1520 (md_reader::add_include_path): ...this.
1521 (rtx_reader::read_md_files): Rename to...
1522 (md_reader::read_md_files): ...this.
1523 * read-md.h (class rtx_reader): Split into...
1524 (class md_reader): ...new class.
1525 (rtx_reader_ptr): Rename to...
1526 (md_reader_ptr): ...this, and convert to a md_reader *.
1527 (class noop_reader): Update base class to be md_reader.
1528 (class rtx_reader): Reintroduce as a subclass of md_reader.
1529 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
1530 (read_char): Update for renaming of rtx_reader_ptr to
1532 (unread_char): Likewise.
1533 * read-rtl.c (rtx_reader_ptr): New global.
1534 (rtx_reader::apply_iterator_to_string): Rename to...
1535 (md_reader::apply_iterator_to_string): ...this.
1536 (rtx_reader::copy_rtx_for_iterators): Rename to...
1537 (md_reader::copy_rtx_for_iterators): ...this.
1538 (rtx_reader::read_conditions): Rename to...
1539 (md_reader::read_conditions): ...this.
1540 (rtx_reader::record_potential_iterator_use): Rename to...
1541 (md_reader::record_potential_iterator_use): ...this.
1542 (rtx_reader::read_mapping): Rename to...
1543 (md_reader::read_mapping): ...this.
1544 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
1546 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
1547 than directly accessing m_string_obstack.
1548 (rtx_reader::rtx_reader): New ctor.
1549 (rtx_reader::~rtx_reader): New dtor.
1551 2016-12-07 Martin Sebor <msebor@redhat.com>
1557 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
1559 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
1560 (check_memop_sizes): Same.
1561 (expand_builtin_memcpy): Call check memop_sizes.
1562 (expand_builtin_mempcpy): Same.
1563 (expand_builtin_memset): Same,
1564 (expand_builtin_bzero): Same.
1565 (expand_builtin_memory_chk): Call check_sizes.
1566 (expand_builtin_strcpy): Same.
1567 (expand_builtin_strncpy): Same.
1568 (maybe_emit_sprintf_chk_warning): Same.
1569 (expand_builtin): Handle strcat and strncat.
1570 (fini_object_sizes): Reset pointers.
1571 (compute_object_size): New function.
1572 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1573 Avoid issuing warnings also issued during built-in expansion.
1574 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
1576 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1579 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
1580 V2DImode elements are SUBREG's convert the result into DImode
1581 rather than failing in emit_move_insn.
1583 2016-12-07 Jakub Jelinek <jakub@redhat.com>
1585 * builtins.c (fold_builtin_strstr): Removed.
1586 (fold_builtin_2): Don't call fold_builtin_strstr.
1587 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
1588 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
1589 (gimple_fold_builtin_strstr): New function.
1590 (gimple_fold_builtin): Call it.
1591 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
1594 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
1595 var to lhs of new_stmt right before noreturn handling rather than to
1596 lhs of e->call_stmt early.
1598 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1600 * read-md.c (rtx_reader::require_char): New method.
1601 (require_char_ws): Convert from function to...
1602 (rtx_reader::require_char_ws): ...method.
1603 (rtx_reader::require_word_ws): New method.
1604 * read-md.h (rtx_reader::require_char): New method decl.
1605 (require_char_ws): Remove global decl in favor of...
1606 (rtx_reader::require_char_ws): ...new method decl.
1607 (rtx_reader::require_word_ws): New method decl.
1608 (rtx_reader::peek_char): New method decl.
1610 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1612 PR rtl-optimization/78617
1613 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
1614 registers, also setting hard registers mapped to pseudo registers.
1616 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1618 * cfgexpand.c (pass_expand::execute): Move stack initializations
1619 to rtl_data::init_stack_alignment and call it.
1620 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
1621 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
1623 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1625 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
1626 (ira): Move initialization of crtl->is_leaf earlier.
1628 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1630 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
1631 (movtf_aarch64): Likewise.
1632 * config/aarch64/aarch64.c (aarch64_classify_address):
1633 Use correct intersection of offsets.
1634 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
1635 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
1636 Use 7-bit signed scaled mode for modes > 16 bytes.
1638 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
1640 PR rtl-optimization/78561
1641 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
1642 constant_pool_empty_p in place of get_pool_size_upper_bound.
1643 (rs6000_stack_info): Likewise.
1644 (rs6000_emit_prologue): Likewise.
1645 (rs6000_elf_declare_function_name): Likewise.
1646 (rs6000_set_up_by_prologue): Likewise.
1647 (rs6000_can_eliminate): Likewise.
1648 * output.h (get_pool_size_upper_bound): Delete.
1649 (constant_pool_empty_p): New.
1650 * varasm.c (get_pool_size_upper_bound): Delete
1651 (constant_pool_empty_p): New.
1653 2016-12-07 Bin Cheng <bin.cheng@arm.com>
1655 PR tree-optimization/78691
1656 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
1657 Require integral type for the outer expression.
1659 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1661 * config/aarch64/aarch64.c
1662 (aarch64_builtin_support_vector_misalignment): New.
1663 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
1665 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1668 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
1669 Conditionalize the string comparison on Pmode == DImode.
1671 2016-12-06 Tom de Vries <tom@codesourcery.com>
1673 PR tree-optimization/67955
1674 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
1675 (stmt_kills_ref_p): Use it.
1677 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1680 * calls.c (expand_call): Move back call to prepare_call_address.
1682 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1685 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
1686 ?* constraints for the ISA 3.0 patterns, so the register allocator
1687 is more likely to allocate QImode/HImode to vector registers for
1688 conversion to floating point unless a reload is needed.
1689 (zero_extendhi<mode>2): Likewise.
1690 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
1691 first alternative which is converting QImode/HImode to floating
1692 point and the QImode/HImode value is in a vector register, and
1693 does not allocate the second pseudo register. Remove zero
1694 extending into traditional floating point registers, since the
1695 instruction used only works on traditional altivec registers.
1696 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1698 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1700 * config/i386/i386.c: Include print-rtl.h.
1701 (selftest::ix86_test_dumping_memory_blockage): New function.
1702 (selftest::ix86_run_selftests): Call it.
1703 * print-rtl-function.c (print_rtx_function): Create an
1704 rtx_reuse_manager and use it.
1705 * print-rtl.c: Include "rtl-iter.h".
1706 (rtx_writer::rtx_writer): Add reuse_manager param.
1707 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
1708 (uses_rtx_reuse_p): New function.
1709 (rtx_reuse_manager::preprocess): New function.
1710 (rtx_reuse_manager::has_reuse_id): New function.
1711 (rtx_reuse_manager::seen_def_p): New function.
1712 (rtx_reuse_manager::set_seen_def): New function.
1713 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
1714 prefix the first time in_rtx is seen, and print reuse_rtx
1716 (print_inline_rtx): Supply NULL for new reuse_manager param.
1717 (debug_rtx): Likewise.
1718 (print_rtl): Likewise.
1719 (print_rtl_single): Likewise.
1720 (rtx_writer::print_rtl_single_with_indent): Likewise.
1721 * print-rtl.h: Include bitmap.h when building for host.
1722 (rtx_writer::rtx_writer): Add reuse_manager param.
1723 (rtx_writer::m_rtx_reuse_manager): New field.
1724 (class rtx_reuse_manager): New class.
1725 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
1726 param and use it when constructing rtx_writer.
1727 (selftest::test_dumping_rtx_reuse): New function.
1728 (selftest::rtl_tests_c_tests): Call it.
1729 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
1730 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
1731 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
1732 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
1734 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
1737 * lra-lives.c (process_bb_lives): Update biggest mode for
1738 implicitly used hard reg.
1740 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
1742 * config/i386/predicates.md (general_gr_operand): New predicate.
1743 * config/i386/i386.md (TImode and DImode push_operand splitter):
1744 Use general_gr_operand. Macroize using DWI mode macro.
1745 (TImode and DImode nonimmediate_operand splitter): Use
1746 nonimmediate_gr_operand and general_gr_operand. Macroize using
1748 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
1749 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
1750 and general_gr_operand.
1751 (XFmode nonimmediate_operand splitter): Ditto.
1752 (DFmode nonimmediate_operand splitter): Ditto.
1753 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
1755 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1757 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
1758 alphabetical order with respect to other ARMv8 processors.
1759 * config/arm/arm-tables.opt: Regenerate.
1760 * config/arm/arm-tune.md: Likewise.
1762 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
1764 * config/mips/mips.c (mips_expand_builtin_insn): Check input
1765 ranges of literal integer arguments.
1767 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1770 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
1771 destroy_predicate_vecs.
1772 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
1774 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1777 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
1778 argument type to a pred_chain.
1779 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
1781 (flatten_out_predicate_chains): Remove.
1782 (uninit_uses_cannot_happen): Rename from
1783 uninit_ops_invalidate_phi_use.
1784 Change logic so that we are checking that the PHI use will
1785 invalidate _ALL_ possibly uninitialized operands.
1786 (is_use_properly_guarded): Rename call to
1787 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
1789 2016-12-06 Tamar Christina <tamar.christina@arm.com>
1791 * gcc/config/aarch64/arm_neon.h
1792 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
1793 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
1794 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
1795 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
1796 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
1797 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
1798 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
1799 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
1800 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
1801 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
1802 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
1803 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
1804 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
1805 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
1807 2016-12-06 Jakub Jelinek <jakub@redhat.com>
1810 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
1811 plus offset is non-zero. For maybe_nonzero_address decl base0,
1812 require indirect_base0.
1815 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
1816 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
1817 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
1818 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
1819 and arguments have no side-effects, return 0.
1820 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
1823 * fold-const-call.c (fold_const_call): Handle
1824 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
1826 PR tree-optimization/78675
1827 * tree-vect-loop.c (vectorizable_live_operation): For
1828 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
1829 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
1831 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1834 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
1835 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
1836 (copy_insn_1) <CLOBBER>: Likewise.
1838 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1841 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
1842 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
1843 comparing signed to unsigned values.
1844 (FUNCTION_ARG_REGNO_P): Likewise.
1846 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1847 Stefan Freudenberger <stefan@reservoir.com>
1849 PR tree-optimization/78646
1850 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
1851 addition used for the memory base expression should have the type
1854 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
1857 * config.gcc (*-*-uclinux*): Enable posix threads.
1859 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
1861 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
1862 * config/i386/avx512dqintrin.h: Ditto.
1863 * config/i386/avx512fintrin.h: Ditto.
1864 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
1865 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
1866 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
1867 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
1868 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
1869 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
1871 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
1872 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
1873 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
1874 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
1875 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
1876 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
1877 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
1878 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
1879 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
1881 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
1883 * combine.c: Revert r243162.
1885 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
1887 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
1888 X tests a single bit.
1890 2016-12-05 Nathan Sidwell <nathan@acm.org>
1892 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
1893 (diagnostic_action_after_output): ... here.
1894 (diagnostic_report_diagnostic): Call it for non-notes.
1895 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
1896 (diagnostic_check_max_errors): Declare.
1898 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
1900 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
1901 (ENDFILE_SPEC): Likewise.
1903 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
1905 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
1906 * config/arc/arc.c (arc_unspec_offset): New function.
1907 (arc_finalize_pic): Change.
1908 (arc_emit_call_tls_get_addr): Likewise.
1909 (arc_legitimize_tls_address): Likewise.
1910 (arc_legitimize_pic_address): Likewise.
1911 (insn_is_tls_gd_dispatch): Remove.
1912 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
1913 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
1914 (tls_gd_dispatch): Likewise.
1916 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
1918 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
1921 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
1923 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
1924 (sparc_split_reg_mem_legitimate): ...this.
1925 (sparc_split_reg_mem): Declare.
1926 (sparc_split_mem_reg): Likewise.
1927 (sparc_split_regreg_legitimate): Rename to...
1928 (sparc_split_reg_reg_legitimate): ...this.
1929 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
1930 (sparc_split_reg_mem_legitimate): ...this.
1931 (sparc_split_reg_mem): New function.
1932 (sparc_split_mem_reg): Likewise.
1933 (sparc_split_regreg_legitimate): Rename to...
1934 (sparc_split_reg_reg_legitimate): ...this.
1935 (sparc_split_reg_reg): New function.
1936 * config/sparc/sparc.md (lra): Remove "none" value.
1937 (enabled): Adjust to above change.
1938 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
1939 (DImode splitters): Adjust to above renamings and use new functions.
1940 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
1941 (DFmode splitters): Adjust to above renamings and use new functions.
1942 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
1943 constraint in conjunction with e.
1944 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
1945 alternative and reorder others.
1946 (VM64:mode splitters): Adjust to above renamings and use new functions.
1948 2016-12-04 Martin Sebor <msebor@redhat.com>
1951 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1952 identifier tree nodes.
1953 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1954 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1955 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1956 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1957 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1958 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1959 Add attribute alloc_size.
1960 (alloca): Add attribute alloc_size and returns_nonnull.
1962 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
1965 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
1966 (dimode_scalar_chain::compute_convert_gain): Ditto.
1967 (dimode_scalar_chain::convert_insn): Ditto.
1969 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1971 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
1972 cases to build a lowpart SUBREG.
1974 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1975 David S. Miller <davem@davemloft.net>
1977 * config/sparc/constraints.md (U): Adjust comment.
1978 * config/sparc/sparc.md (lra): New attribute.
1979 (enabled): For base instructions, if the lra attribute is set,
1980 return 1 if it is in keeping with TARGET_LRA.
1981 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
1982 constraint and duplicate them with U replaced by r.
1983 (*movdf_insn_sp32): Likewise.
1984 (*mov<VM64:mode>_insn_sp32): Likewise.
1985 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
1987 2016-12-02 Jeff Law <law@redhat.com>
1989 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
1990 variable main_variant.
1992 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1994 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
1995 default on PowerPC linux systems.
1997 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
1999 PR rtl-optimization/78638
2000 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
2001 GET_MODE (op). Fix this.
2003 2016-12-02 David Malcolm <dmalcolm@redhat.com>
2006 * selftest.c (selftest::assert_strndup_eq): Rename to...
2007 (selftest::assert_xstrndup_eq): ...this, and remove call to
2009 (selftest::test_strndup): Rename to...
2010 (selftest::test_xstrndup): ...this, updating for above renaming.
2011 (selftest::test_libiberty): Update for renaming.
2013 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2016 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
2017 subversion id 242679 that causes the wrong store instruction to be
2018 generated if a DImode is in an Altivec register using REG+REG
2021 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
2024 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
2025 and corresponding post-reload splitter.
2027 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2029 * config/aarch64/aarch64.h (machine_function): Add
2030 reg_is_wrapped_separately field.
2031 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
2032 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
2034 (aarch64_save_callee_saves): Don't save registers that are wrapped
2036 (aarch64_restore_callee_saves): Don't restore registers that are
2038 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
2039 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
2040 (aarch64_get_separate_components): New function.
2041 (aarch64_get_next_set_bit): Likewise.
2042 (aarch64_components_for_bb): Likewise.
2043 (aarch64_disqualify_components): Likewise.
2044 (aarch64_emit_prologue_components): Likewise.
2045 (aarch64_emit_epilogue_components): Likewise.
2046 (aarch64_set_handled_components): Likewise.
2047 (aarch64_process_components): Likewise.
2048 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
2049 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
2050 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
2051 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
2052 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
2053 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
2055 2016-12-02 Martin Jambor <mjambor@suse.cz>
2057 * passes.def: Move pass_rebuild_cgraph_edges to the end of
2058 pass_build_ssa_passes.
2060 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
2062 * config/alpha/alpha.md (exception_receiver): Copy
2063 alpha_gp_ave_rtx return value.
2065 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
2067 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
2068 for several include directories that may be relative to sysroot.
2069 * config/i386/x-mingw32 (gplus_includedir): Define.
2070 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
2071 (native_system_includedir): Likewise.
2072 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
2073 override if TARGET_SYSTEM_ROOT is defined.
2074 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
2076 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2079 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
2080 (dimode_scalar_chain::compute_convert_gain): Likewise.
2081 (dimode_scalar_chain::convert_insn): Likewise.
2082 * config/i386/i386.md (*one_cmpldi2_doubleword): New
2083 define_insn_and_split.
2084 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
2087 * rtl.c (copy_rtx): Don't clear used flag here.
2088 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
2090 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
2091 'E' in format, copy all vectors.
2092 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
2093 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2094 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
2096 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2097 Thomas Preud'homme <thomas.preudhomme@arm.com>
2099 * config/arm/arm-builtins.c (arm_builtins): Define
2100 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
2101 (bdesc_2arg): Add line for cmse_nonsecure_caller.
2102 (arm_init_builtins): Handle cmse_nonsecure_caller.
2103 (arm_expand_builtin): Likewise.
2104 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
2106 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2107 Thomas Preud'homme <thomas.preudhomme@arm.com>
2109 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
2110 (cmse_nonsecure_call_clear_caller_saved): New.
2111 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
2112 (arm_function_ok_for_sibcall): Disable sibcalls for
2113 cmse_nonsecure_call.
2114 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
2115 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
2116 (call_value): Likewise.
2117 (nonsecure_call_internal): New.
2118 (nonsecure_call_value_internal): New.
2119 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
2120 (*nonsecure_call_value_reg_thumb1_v5): New.
2121 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
2122 (*nonsecure_call_value_reg_thumb2): New.
2123 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
2125 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2126 Thomas Preud'homme <thomas.preudhomme@arm.com>
2128 * config/arm/arm.c (gimplify.h): New include.
2129 (arm_handle_cmse_nonsecure_call): New.
2130 (arm_attribute_table): Added cmse_nonsecure_call.
2131 (arm_comp_type_attributes): Deny compatibility of function types
2132 with without the cmse_nonsecure_call attribute.
2133 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2135 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2136 Thomas Preud'homme <thomas.preudhomme@arm.com>
2138 * config/arm/arm.c (output_return_instruction): Clear
2140 (thumb2_expand_return): Likewise.
2141 (thumb1_expand_epilogue): Likewise.
2142 (thumb_exit): Likewise.
2143 (arm_expand_epilogue): Likewise.
2144 (cmse_nonsecure_entry_clear_before_return): New.
2145 (comp_not_to_clear_mask_str_un): New.
2146 (compute_not_to_clear_mask): New.
2147 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
2148 * config/arm/thumb2.md (*thumb2_return): Disable for
2149 cmse_nonsecure_entry functions.
2150 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
2151 cmse_nonsecure_entry functions.
2153 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2154 Thomas Preud'homme <thomas.preudhomme@arm.com>
2156 * config/arm/arm.c (use_return_insn): Change to return with bxns
2157 when cmse_nonsecure_entry.
2158 (output_return_instruction): Likewise.
2159 (arm_output_function_prologue): Likewise.
2160 (thumb_pop): Likewise.
2161 (thumb_exit): Likewise.
2162 (thumb2_expand_return): Assert that entry functions always have simple
2164 (arm_expand_epilogue): Handle entry functions.
2165 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
2166 (arm_asm_declare_function_name): New.
2167 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
2168 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
2169 use arm_asm_declare_function_name.
2171 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2172 Thomas Preud'homme <thomas.preudhomme@arm.com>
2174 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
2175 (arm_attribute_table): Added cmse_nonsecure_entry
2176 (arm_compute_func_type): Handle cmse_nonsecure_entry.
2177 (cmse_func_args_or_return_in_stack): New.
2178 (arm_handle_cmse_nonsecure_entry): New.
2179 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
2180 (IS_CMSE_ENTRY): Likewise.
2181 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2183 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2184 Thomas Preud'homme <thomas.preudhomme@arm.com>
2186 * config.gcc (extra_headers): Added arm_cmse.h.
2187 * config/arm/arm-arches.def (ARM_ARCH):
2188 (armv8-m): Add FL2_CMSE.
2189 (armv8-m.main): Likewise.
2190 (armv8-m.main+dsp): Likewise.
2191 * config/arm/arm-c.c
2192 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
2193 * config/arm/arm-flags.h: Define FL2_CMSE.
2194 * config/arm.c (arm_arch_cmse): New.
2195 (arm_option_override): New error for unsupported cmse target.
2196 * config/arm/arm.h (arm_arch_cmse): New.
2197 * config/arm/arm.opt (mcmse): New.
2198 * config/arm/arm_cmse.h: New file.
2199 * doc/invoke.texi (ARM Options): Add -mcmse.
2200 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
2201 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
2203 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2205 * config/avr/avr.c: Fix coding rule glitches.
2207 2016-12-02 Martin Jambor <mjambor@suse.cz>
2209 * hsa.c (hsa_callable_function_p): Return false for artificial
2212 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2214 PR rtl-optimization/78561
2215 * varasm.c (recompute_pool_offsets): New.
2216 (output_constant_pool): Call it.
2218 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2220 PR rtl-optimization/78561
2221 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
2222 get_pool_size to get_pool_size_upper_bound.
2223 (rs6000_stack_info): Likewise.
2224 (rs6000_emit_prologue): Likewise.
2225 (rs6000_elf_declare_function_name): Likewise.
2226 (rs6000_set_up_by_prologue): Likewise.
2227 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
2228 * output.h (get_pool_size): Rename to...
2229 (get_pool_size_upper_bound): ...This.
2230 * varasm.c (get_pool_size): Rename to...
2231 (get_pool_size_upper_bound): ...This.
2233 2016-12-02 Bin Cheng <bin.cheng@arm.com>
2235 * match.pd: Add new pattern:
2236 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
2238 2016-12-02 Nathan Sidwell <nathan@acm.org>
2240 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
2243 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
2246 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
2249 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2251 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
2254 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2256 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
2257 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
2258 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
2259 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
2260 avr_mcu_types.flash_size to compute default value.
2261 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
2262 mcu->flash_size to compute value for spec.
2264 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2266 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
2267 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
2268 about linker description to avoid progmem altogether.
2269 [absdata]: Point to -mabsdata option.
2271 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2273 PR rtl-optimization/78547
2274 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
2275 DECL_INCOMING_RTL is not shared.
2276 * config/i386/i386.c (convert_scalars_to_vectors): If any
2277 insns have been converted, adjust all parameter's DEC_RTL and
2278 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
2281 PR rtl-optimization/78575
2282 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
2283 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
2284 if not already wrapped in a subreg. Make sure df_insn_rescan does not
2285 affect further iterations.
2287 2016-12-02 Martin Liska <mliska@suse.cz>
2290 * sreal.c (sreal::to_int): Make absolute value before shifting.
2291 (sreal::operator/): Likewise.
2292 (sreal_verify_negative_division): New test.
2293 (void sreal_c_tests): Call the new test.
2294 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
2296 (sreal::normalize_down): Likewise.
2298 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2300 * combine.c (combine_simplify_rtx): Suppress replacement of
2301 "(and (reg) (const_int bit))" with "if_then_else".
2303 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2306 * config/s390/s390.md ("extzv")
2307 ("*extzv<mode><clobbercc_or_nocc>")
2308 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
2309 ("*<risbg_n>_ior_and_sr_ze")
2310 ("*extract1bitdi<clobbercc_or_nocc>")
2311 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
2312 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
2313 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
2314 to validate the arguments of zero_extract and sign_extract.
2316 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2319 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
2321 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2323 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
2325 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
2328 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2330 * config/s390/vector.md (vec_halfhalf): New mode iterator.
2331 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
2332 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
2333 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
2334 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
2335 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
2336 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
2337 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
2338 ("vec_unpacku_lo_v4si"): New pattern definitions.
2339 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
2342 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2344 * config/s390/s390-protos.h (s390_reverse_condition): New
2346 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
2348 (s390_reverse_condition): New function.
2349 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
2352 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2354 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
2355 (CCVHUANY): Remove modes.
2356 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
2358 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
2359 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
2361 (s390_branch_condition_mask): Adjust to use the new cc consumer
2362 modes. The new modes allow for proper reversal in the middle-end.
2363 (s390_expand_vec_compare_cc): Determine the proper cc producer and
2364 consumer modes for a comparison.
2365 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
2366 throughout the file.
2367 * config/s390/vx-builtins.md: Likewise.
2369 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
2371 * asan.c (asan_global_struct): Refactor.
2372 (create_odr_indicator): New function.
2373 (asan_needs_odr_indicator_p): Likewise.
2374 (is_odr_indicator): Likewise.
2375 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
2377 (asan_protect_global): Do not protect odr indicators.
2379 2016-12-01 Jeff Law <law@redhat.com>
2381 * tree-ssa-threadedge.c
2382 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
2383 propagation of operands if there are no operands.
2385 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2387 PR tree-optimization/78586
2388 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
2389 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
2390 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
2391 type is INTEGER_TYPE or POINTER_TYPE.
2393 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2396 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
2397 (vextuhrx): Likewise.
2398 (vextuwlx): Likewise.
2399 (vextuwrx): Likewise.
2401 2016-12-01 David Malcolm <dmalcolm@redhat.com>
2403 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
2404 early_dwarf_finished.
2406 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
2407 David S. Miller <davem@davemloft.net>
2409 * config/sparc/sparc.opt (mlra): New target option.
2410 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
2411 (sparc_lra_p): ...this. New function.
2412 (D_MODES, DF_MODES): Add missing cast.
2413 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2414 provide these insns when flag_pic.
2415 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
2416 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
2417 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
2418 embmedany_textulo, embmedany_textlo): Likewise.
2419 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
2421 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
2425 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
2427 2016-12-01 Richard Biener <rguenther@suse.de>
2428 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2430 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
2431 memset if len-oldlen != 0.
2432 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
2434 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
2436 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
2438 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2440 * config/avr/avr.c: Fix coding rule glitches.
2442 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2444 PR tree-optimization/78598
2445 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
2448 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2450 PR rtl-optimization/78596
2451 * combine.c (simplify_comparison): Cast to unsigned to avoid
2452 left shifting of negative value.
2454 2016-12-01 Matthias Klose <doko@ubuntu.com>
2456 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
2458 2016-12-01 Richard Biener <rguenther@suse.de>
2460 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
2461 treat arrays with same type as objects that cannot overlap.
2463 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2465 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
2466 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
2467 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
2469 2016-12-01 Jakub Jelinek <jakub@redhat.com>
2472 * dwarf2out.c (loc_descr_plus_const): For negative offset use
2473 uint_loc_descriptor instead of int_loc_descriptor and perform negation
2474 in unsigned HOST_WIDE_INT type.
2475 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
2478 * config/rs6000/rs6000.c (rs6000_frame_related): Call
2479 set_used_flags (pat) before any simplifications. Clear used flag on
2480 PARALLEL copy. Don't guard add_reg_note call. Call
2481 copy_rtx_if_shared on pat before storing it into
2482 REG_FRAME_RELATED_EXPR.
2484 2016-12-01 Alan Modra <amodra@gmail.com>
2486 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
2487 look inside UNSPEC_VSX_XXSPLTW vec.
2489 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2491 PR rtl-optimization/78607
2492 * combine.c (try_combine): Emit a barrier after a unconditional trap.
2494 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2497 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
2498 element is not a constant or in a register, force it to a
2502 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
2503 that will be set to a vector element to be in a register.
2504 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
2505 the wrong multiplier to convert the element number to a byte
2508 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
2510 PR tree-optimization/77856
2511 * lra-constraints.c (inherit_in_ebb): Check original regno for
2512 invalid invariant regs too. Set only clobbered hard regs for the
2513 invalid invariant regs.
2515 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
2517 Commit files forgotten in r242966.
2519 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
2520 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
2521 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
2522 prefix check to find wrap-around value, instead use MCU flash size.
2523 For 8k flash devices, update link_pmem_wrap spec string to
2524 add --pmem-wrap-around=8k.
2525 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
2527 (LINK_SPEC): ...to here.
2529 2016-11-30 David Malcolm <dmalcolm@redhat.com>
2532 * selftest.c (selftest::assert_strndup_eq): New function.
2533 (selftest::test_strndup): New function.
2534 (selftest::test_libiberty): New function.
2535 (selftest::selftest_c_tests): Call test_libiberty.
2537 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2539 PR rtl-optimization/78610
2540 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
2543 2016-11-30 Bin Cheng <bin.cheng@arm.com>
2545 PR tree-optimization/78574
2546 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
2547 header PHI that doesn't define biv.
2549 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2551 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
2554 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
2555 sharing the SUBREG rtx between move and following insn.
2557 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
2558 for REG_EQUIV argument.
2560 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
2562 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
2564 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2567 * real.c (real_hash): Add cast to avoid left
2568 shifting of negative values.
2570 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2573 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
2574 from a subreg in operands[1] and don't call REGNO on a non-reg
2575 expression when deciding to force operands[2] into a reg.
2577 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
2578 Andrew Burgess <andrew.burgess@embecosm.com>
2580 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
2581 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
2582 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
2583 * config/arc/arc700.md: Add define_bypass for store/load.
2585 2016-11-30 Martin Liska <mliska@suse.cz>
2587 * cgraph.c (symbol_table::initialize): Initialize
2588 ipa_clones_dump_file.
2589 (cgraph_node::remove): Report to ipa_clones_dump_file.
2590 * cgraph.h: Add new argument (suffix) to cloning methods.
2591 * cgraphclones.c (dump_callgraph_transformation): New function.
2592 (cgraph_node::create_clone): New argument.
2593 (cgraph_node::create_virtual_clone): Likewise.
2594 (cgraph_node::create_version_clone): Likewise.
2595 * dumpfile.c: Add .ipa-clones dump file.
2596 * dumpfile.h (enum tree_dump_index): Add TDI_clones
2597 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
2598 to dump_callgraph_transformation.
2600 2016-11-30 Martin Liska <mliska@suse.cz>
2603 * asan.c (asan_expand_mark_ifn): Properly
2604 select a VAR_DECL from FRAME.* component reference.
2606 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2608 PR rtl-optimization/78583
2609 * simplify-rtx.c (simplify_truncation): Add check missing from the
2612 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2614 PR rtl-optimization/78590
2615 * combine.c (change_zero_ext): Transform zero_extend of subregs only
2616 if the subreg_reg is a scalar integer mode.
2618 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2620 PR tree-optimization/78586
2621 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
2622 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
2623 Don't build_int_cst min/max twice. Formatting fix.
2625 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2627 PR rtl-optimization/78588
2628 * combine.c (if_then_else_cond): Also guard against BLKmode.
2629 * rtlanal.c (num_sign_bit_copies1): Add assert.
2631 2016-11-29 Jeff Law <law@redhat.com>
2633 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
2636 * lra-constraints.c (check_and_process_move): Constrain the
2637 range of DCLASS and SCLASS to avoid false positive out of bounds
2638 array index warning.
2640 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2642 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
2644 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2646 PR preprocessor/78569
2647 * input.c (get_substring_ranges_for_loc): Fail gracefully if
2648 line directives were present.
2650 2016-11-30 Matthias Klose <doko@ubuntu.com>
2652 * doc/install.texi: Document configure options --enable-objc-gc
2653 and --with-target-bdw-gc.
2655 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2658 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
2659 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
2660 residing in traditional altivec registers can be stored
2663 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
2666 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
2667 overhead loop start between a call and its CALL_ARG_LOCATION
2670 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
2672 * config/bfin/linux.h (CPP_SPEC): Define.
2674 2016-11-29 Martin Sebor <msebor@redhat.com>
2676 PR tree-optimization/78512
2677 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
2678 * config/rs6000/linux.h: Same.
2679 * config/rs6000/linux64.h: Same.
2680 * config/sol2.h: Same.
2681 * config/sol2.c (solaris_printf_pointer_format): Remove.
2682 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
2683 * doc/tm.texi: Regenerate.
2684 * gimple-ssa-sprintf.c (format_pointer): Rempove.
2685 (pass_sprintf_length::compute_format_length): Return bool.
2686 (pass_sprintf_length::handle_gimple_call): Adjust.
2687 * target.def (printf_pointer_format): Remove.
2688 * targhooks.c (default_printf_pointer_format): Remove.
2689 (linux_printf_pointer_format): Same.
2690 * targhooks.h (default_printf_pointer_format): Remove.
2691 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
2693 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
2695 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
2697 (SWI1248_AVX512BWDQ): Ditto.
2698 (SWI1248_AVX512BW): Ditto.
2699 (k<any_logic:code><mode>): Ditto.
2700 (kandn<mode>): Ditto.
2701 (kxnor<mode>): Ditto.
2702 (knot<mode>): Ditto.
2703 (*k<any_lshift:code><mode>): Ditto.
2704 (kortestzhi, kortestchi): Ditto.
2705 (kunpckhi, kunpcksi, kunpckdi): Ditto.
2707 2016-11-29 Andrew Pinski <apinski@cavium.com>
2709 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
2712 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
2715 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
2716 to stack before call mcount.
2717 (tilegx_can_use_return_insn_p): Clean up code.
2719 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2721 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
2723 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2729 * spellcheck.c (selftest::test_find_closest_string): Verify that
2730 we don't offer the goal string as a suggestion.
2731 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
2732 offer the goal string as a suggestion.
2735 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2737 * config/arc/arc.c (arc_override_options): Avoid selection of
2738 compact casesi for ARCv2.
2740 2016-11-29 Richard Biener <rguenther@suse.de>
2742 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
2743 PHIs after a regular stmt.
2744 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
2747 2016-11-29 Martin Liska <mliska@suse.cz>
2749 PR gcov-profile/78582
2750 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
2751 to prevent PHI argument clash.
2753 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2755 * config/arc/arc.opt (marclinux): Fix typo.
2756 (marclinux_prof): Likewise.
2758 2016-11-29 Jiong Wang <jiong.wang@arm.com>
2760 * target.def (stack_protect_runtime_enabled_p): New.
2761 * function.c (expand_function_end): Guard stack_protect_epilogue with
2762 targetm.stack_protect_runtime_enabled_p.
2763 * cfgexpand.c (pass_expand::execute): Likewise.
2764 * calls.c (expand_call): Likewise.
2765 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
2766 * doc/tm.texi: Regenerate.
2768 2016-11-29 Richard Biener <rguenther@suse.de>
2771 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
2773 2016-11-29 Janus Weil <janus@gcc.gnu.org>
2775 * doc/contrib.texi: Add a few missing gfortran contributors.
2777 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2779 * combine.c (change_zero_ext): Also handle extends from a subreg
2780 to a mode bigger than that of the operand of the subreg.
2782 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2785 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
2786 stack_restore_tie insn instead of stack_tie, for the SVR4 and
2788 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
2790 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2792 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
2793 head_components and tail_components.
2794 (spread_components): New algorithm.
2795 (emit_common_tails_for_components): Clear head_components and
2797 (insert_prologue_epilogue_for_components): Write extra output to the
2798 dump file for sibcalls and abnormal exits.
2800 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2802 PR rtl-optimization/78342
2803 * combine.c: Include "cfghooks.h".
2804 (try_combine): If we create an unconditional trap, break the basic
2805 block in two just after it, and remove the edge between; also, set
2806 the *new_direct_jump_p flag so that cleanup_cfg is run.
2808 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2810 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
2813 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2815 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
2816 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
2817 output template string.
2818 (*anddi_1): Use multi-line output template string.
2821 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2824 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
2825 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
2826 note has been removed.
2827 * postreload.c (reload_combine_recognize_pattern): If
2828 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
2830 2016-11-28 Martin Sebor <msebor@redhat.com>
2833 * gimple-ssa-sprintf.c (target_max_value): Remove.
2834 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
2835 (get_width_and_precision): New function.
2836 (format_integer, format_floating, get_string_length, format_string):
2837 Correct handling of width and precision with unknown value.
2838 (format_directive): Add warning.
2839 (pass_sprintf_length::compute_format_length): Allow for precision
2840 to consist of a sole period with no asterisk or digits after it.
2842 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2844 PR rtl-optimization/78546
2845 * simplify-rtx.c (neg_const_int): When negating most negative
2846 number in mode wider than HOST_BITS_PER_WIDE_INT, use
2847 simplify_const_unary_operation to produce CONST_DOUBLE or
2849 (simplify_plus_minus): Handle the case where neg_const_int
2850 doesn't return a CONST_INT.
2852 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
2855 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
2856 left shifting of negative values.
2858 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2861 * tree-nested.c (convert_local_reference_stmt): After adding
2862 shared (FRAME.NN) clause to omp parallel, task or target,
2863 add it also to all outer omp parallel, task or target constructs.
2865 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2867 * config/i386/i386.md (UNSPEC_KMASKOP): New.
2868 (UNSPEC_KMOV): Remove.
2869 (kmovw): Expand to plain HImode move.
2870 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
2871 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
2872 Remove corresponding clobber-removing splitter.
2873 (*anddi_1): Remove mask register alternatives.
2877 (*<any_or:code><mode>_1): Ditto.
2878 (*<any_or:code>qi_1): Ditto.
2879 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
2880 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
2881 Remove corresponding splitter to operation with general registers.
2882 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
2883 (*andn<SWI12:mode>): New pattern.
2884 (*kxnor<mode>): Remove general register alternatives. Tag pattern
2885 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
2886 with general registers.
2887 (knot<mode>): New insn pattern.
2888 (*one_cmpl<mode>2_1): Remove mask register alternatives.
2889 (one_cmplqi2_1): Ditto.
2890 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
2891 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
2892 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
2893 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
2894 to generate kmaskop shift.
2895 (vec_unpacks_hi_<mode>): Ditto.
2896 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
2897 Use CODE_FOR_kandhi.
2898 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
2899 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
2900 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
2902 2016-11-28 Richard Biener <rguenther@suse.de>
2904 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
2905 to SSA names via extract_range_from_ssa_name if allowed.
2907 2016-11-28 Richard Biener <rguenther@suse.de>
2909 PR tree-optimization/78542
2910 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
2913 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
2915 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
2916 isolates a single bit, even if the condition involves subregs.
2918 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2920 * config/aarch64/aarch64-simd-builtins.def
2921 (BSL_P): Added di and v2di mode.
2922 * config/aarch64/arm_neon.h
2923 (vsriq_n_p64, vsri_n_p64): Added poly type.
2924 (vextq_p64, vext_p64): Likewise.
2925 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
2927 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2929 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
2930 (TYPES_GETREGP): Likewise.
2931 (TYPES_SHIFTINSERTP): Likewise.
2932 (TYPES_COMBINEP): Likewise.
2933 (TYPES_STORE1P): Likewise.
2934 * config/aarch64/aarch64-simd-builtins.def
2935 (combine): Added poly generator.
2936 (get_dregoi): Likewise.
2937 (get_dregci): Likewise.
2938 (get_dregxi): Likewise.
2942 * config/aarch64/arm_neon.h
2943 (poly64x1x2_t, poly64x1x3_t): New.
2944 (poly64x1x4_t, poly64x2x2_t): Likewise.
2945 (poly64x2x3_t, poly64x2x4_t): Likewise.
2946 (poly64x1_t): Likewise.
2947 (vcreate_p64, vcombine_p64): Likewise.
2948 (vdup_n_p64, vdupq_n_p64): Likewise.
2949 (vld2_p64, vld2q_p64): Likewise.
2950 (vld3_p64, vld3q_p64): Likewise.
2951 (vld4_p64, vld4q_p64): Likewise.
2952 (vld2_dup_p64, vld3_dup_p64): Likewise.
2953 (vld4_dup_p64, vsli_n_p64): Likewise.
2954 (vsliq_n_p64, vst1_p64): Likewise.
2955 (vst1q_p64, vst2_p64): Likewise.
2956 (vst3_p64, vst4_p64): Likewise.
2957 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
2958 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
2959 (vget_lane_p64, vgetq_lane_p64): Likewise.
2960 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
2961 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
2962 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
2963 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
2964 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
2965 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
2966 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
2967 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
2968 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
2969 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
2970 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
2971 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
2972 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
2973 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
2974 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
2975 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
2976 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
2977 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
2978 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
2979 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
2980 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
2981 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
2982 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
2983 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
2984 (vset_lane_p64, vsetq_lane_p64): Likewise.
2985 (vget_low_p64, vget_high_p64): Likewise.
2986 (vcombine_p64, vst2_lane_p64): Likewise.
2987 (vst3_lane_p64, vst4_lane_p64): Likewise.
2988 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
2989 (vst4q_lane_p64, vget_lane_p64): Likewise.
2990 (vget_laneq_p64, vset_lane_p64): Likewise.
2991 (vset_laneq_p64, vcopy_lane_p64): Likewise.
2992 (vcopy_laneq_p64, vdup_n_p64): Likewise.
2993 (vdupq_n_p64, vdup_lane_p64): Likewise.
2994 (vdup_laneq_p64, vld1_p64): Likewise.
2995 (vld1q_p64, vld1_dup_p64): Likewise.
2996 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
2997 (vmov_n_p64, vmovq_n_p64): Likewise.
2998 (vst3q_p64, vst4q_p64): Likewise.
2999 (vld1_lane_p64, vld1q_lane_p64): Likewise.
3000 (vst1_lane_p64, vst1q_lane_p64): Likewise.
3001 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
3002 (vdupq_laneq_p64): Likewise.
3004 2016-11-28 Tamar Christina <tamar.christina@arm.com>
3006 * config/arm/arm_neon.h (vget_lane_p64): New.
3008 2016-11-28 Iain Sandoe <iain@codesourcery.com>
3011 * configure.ac (with_ld64): Use portable method to extract the
3012 major part of the version number.
3013 * configure: Regenerated.
3015 2016-11-28 Jakub Jelinek <jakub@redhat.com>
3017 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
3018 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
3019 intmax_t couldn't be determined.
3020 (format_integer): Make {,u}intmax_type_node no longer static,
3021 initialize them only when needed. For z and t use
3022 signed_or_unsigned_type_for instead of assuming size_t and
3023 ptrdiff_t have the same precision.
3026 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
3027 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
3028 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
3029 vector instead of traversing m_classes hash table. Release
3031 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
3033 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
3034 add it also to m_classes_vec vector.
3035 (sem_item_optimizer::remove_symtab_node,
3036 sem_item_optimizer::build_hash_based_classes,
3037 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
3038 (sem_item_optimizer::subdivide_classes_by_equality,
3039 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
3040 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
3041 instead of traversing m_classes hash table. Formatting fixes.
3042 (sem_item_optimizer::traverse_congruence_split,
3043 sem_item_optimizer::do_congruence_step_for_index,
3044 sem_item_optimizer::do_congruence_step): Formatting fixes.
3045 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
3046 vector instead of traversing m_classes hash table.
3047 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
3048 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
3049 instead of traversing m_classes hash table.
3051 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
3053 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
3054 X is not unused after.
3056 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
3058 PR rtl-optimization/78120
3059 * rtlanal.c (insn_rtx_cost): Revert previous change.
3061 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
3064 * config/avr/avr.md (SPLIT34): New mode iterator.
3065 (bitop): New code iterator.
3066 (*iorhi3.ashift8-*). New insn-and-split patterns.
3067 (*movhi): Post-reload split reg = 0.
3068 [!MOVW]: Post-reload split reg = reg.
3069 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
3070 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
3071 (iorhi3, iorpsi3, iorsi3): Same.
3072 (xorhi3, xorpsi3, xorsi3): Same.
3073 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
3074 costs to *iorhi3.ashift8-* patterns.
3076 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3077 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3080 * config.in: Regenerate
3081 * config/darwin-driver.c (darwin_driver_init): Emit a version string
3083 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
3084 * config/darwin.opt(asm_macosx_version_min): New.
3085 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
3086 * configure: Regenerate
3087 * configure.ac: Check for mmacosx-version-min handling.
3089 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3092 * config/i386/i386.c (ix86_code_end): Note that we emitted code
3093 where the function might otherwise appear empty for picbase thunks.
3094 (ix86_output_function_epilogue): If we find a zero-sized function
3095 assume that reaching it is UB and trap. If we find a trailing label
3097 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
3098 find a zero-sized function assume that reaching it is UB and trap.
3099 If we find a trailing label, append a nop.
3101 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3104 * config/darwin-sections.def (picbase_thunk_section): New.
3105 * config/darwin.c (darwin_init_sections): Set up picbase thunk
3106 section. (darwin_rodata_section, darwin_objc2_section,
3107 machopic_select_section, darwin_asm_declare_constant_name,
3108 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
3109 coalesced with newer linkers.
3110 (darwin_override_options): Decide on usage of coalesed sections
3111 on the basis of the target linker version.
3112 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
3113 * config/darwin.opt (mtarget-linker): New.
3114 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
3115 a coalesced section, instead use a thunks section.
3117 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3120 * configure.ac (with-ld64): New var, set for Darwin, set on
3121 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
3122 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
3123 * config/darwin10.h(DEF_LD64): Update for this target version.
3124 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
3125 (DEF_LD64): Update for this target version.
3126 * configure: Regenerated.
3127 * config.in: Regenerated.
3129 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3132 * config/darwin.c (imachopic_indirection_name): Make data
3133 section indirections linker-visible.
3134 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
3135 constant labels linker-visible.
3137 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3139 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
3140 (free_lang_data): Remove assignment to ptrdiff_type_node.
3142 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3144 PR rtl-optimization/78526
3145 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
3146 beyond val's precision.
3148 PR rtl-optimization/78527
3149 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
3150 out of bounds shift count.
3152 2016-11-25 Martin Liska <mliska@suse.cz>
3155 * doc/invoke.texi (-fprofile-use): Fix reference to a section
3156 where -fprofile-generate is documented.
3158 2016-11-25 Martin Liska <mliska@suse.cz>
3160 PR gcov-profile/78086
3161 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
3162 not supported by a target. Set priority to 100 if possible.
3163 (build_gcov_exit_decl): Likewise.
3165 2016-11-25 Richard Biener <rguenther@suse.de>
3168 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
3169 unary, binary and single RHSs.
3170 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
3172 2016-11-25 Bin Cheng <bin.cheng@arm.com>
3177 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
3178 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
3179 and set it to result code if transformation is valid. Use code EQ
3180 directly in last simplification case.
3182 2016-11-25 Richard Biener <rguenther@suse.de>
3184 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
3185 before valueizing return stmts.
3187 2016-11-24 Richard Biener <rguenther@suse.de>
3189 PR tree-optimization/78343
3190 * passes.def: Add CD-DCE pass after loop splitting.
3191 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
3192 SCEV init/finalize ...
3193 (perform_tree_ssa_dce): ... here. Deal with being
3194 executed inside the loop pipeline in aggressive mode.
3196 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3198 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
3200 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3202 PR tree-optimization/77673
3203 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
3204 (init_symbolic_number): Initialize src field from src parameter.
3205 (perform_symbolic_merge): Select most dominated statement as the
3206 source statement. Set src field of resulting n structure from the
3207 input src with the lowest address.
3208 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
3209 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
3210 of load from src field rather than insertion statement. Cancel
3211 optimization if statement analyzed is not dominated by the insertion
3213 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
3214 dominance information.
3216 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
3219 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3221 2016-11-25 Martin Jambor <mjambor@suse.cz>
3223 PR tree-optimization/70965
3224 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
3226 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
3229 * config/i386/i386.c (i386_excess_precision): Do not return
3230 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3231 EXCESS_PRECISION_TYPE_STANDARD.
3232 * target.def (excess_precision): Document that targets should
3233 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3234 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
3235 Fix typo in first sentence.
3236 * doc/tm.texi: Regenerate.
3238 2016-11-25 Richard Biener <rguenther@suse.de>
3240 PR tree-optimization/78396
3241 * tree-vectorizer.c (vectorize_loops): When the if-converted
3242 body contains masked loads or stores do not attempt to
3243 basic-block-vectorize it.
3245 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3246 Alan Hayward <alan.hayward@arm.com>
3247 David Sherwood <david.sherwood@arm.com>
3249 * function.h (spill_slot_alignment): Declare.
3250 * function.c (spill_slot_alignment): New function.
3251 * lra-spills.c (slot): Add align and size fields.
3252 (assign_mem_slot): Use them in the call to assign_stack_local.
3253 (add_pseudo_to_slot): Update the fields.
3254 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
3256 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3257 Alan Hayward <alan.hayward@arm.com>
3258 David Sherwood <david.sherwood@arm.com>
3260 * stor-layout.c (layout_type): Allow the caller to set the mode of
3261 a float type. Only choose one here if the mode is still VOIDmode.
3262 * tree.c (build_common_tree_nodes): Set the type mode of decimal
3263 floats before calling layout_type.
3264 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
3266 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3268 * tree-tailcall.c (find_tail_calls): Allow calls to reference
3269 local variables if all references are known to be direct.
3271 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3272 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3275 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
3276 non null and it's precision matches precision of lhs's type.
3278 2016-11-24 Martin Sebor <msebor@redhat.com>
3280 PR tree-optimization/78476
3281 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
3283 (handle_gimple_call): Adjust signature.
3284 (try_substitute_return_value): Remove calls to bounded functions
3285 with zero buffer size whose result is known.
3286 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
3288 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3290 * varasm.c (assemble_start_function): Wrap align_log definition in
3291 ASM_OUTPUT_MAX_SKIP_ALIGN.
3293 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
3295 * config/i386/i386.md (wide AND insn to QImode splitter): Use
3296 explicit mode macros.
3297 (wide OR insn to QImode splitter): Ditto.
3299 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
3301 PR rtl-optimization/77541
3302 * lra-constraints.c (struct input_reload): Add field match_p.
3303 (get_reload_reg): Check modes of input reloads to generate unique
3304 value reload pseudo.
3305 (match_reload): Add input reload pseudo for the current insn.
3307 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3309 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
3310 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
3311 architecture levels.
3312 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
3313 the aarch64_fp16_type_node, not all HFmode types.
3314 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
3315 (aarch64_scalar_mode_supported_p): Likewise.
3316 (aarch64_excess_precision): New.
3317 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3318 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
3319 (TARGET_C_EXCESS_PRECISION): Likewise.
3321 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3323 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
3324 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3326 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3328 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
3329 (<optab>dihf2): Likewise.
3330 (aarch64_fp16_<optab><mode>hf2): New.
3332 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
3335 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
3337 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3339 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
3340 Enable REE at -O2 and higher.
3341 * config/sparc/sparc.c (sparc_option_override): Disable it by default
3344 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3348 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
3349 (new_temp_expr_table): Initialise reg_vars_cnt.
3350 (free_temp_expr_table): Release reg_vars_cnt.
3351 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
3353 (find_replaceable_in_bb): Use the above to record register variable
3354 write occurrences and cancel replacement across them.
3356 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3358 PR rtl-optimization/78437
3359 * ree.c (get_uses): New function.
3360 (combine_reaching_defs): When a copy is needed, return false if any
3361 reaching use of the source register reads it in a mode larger than
3362 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
3364 2016-11-24 Martin Liska <mliska@suse.cz>
3366 * gimple-pretty-print.c (dump_edge_probability): New function.
3367 (dump_gimple_switch): Dump label edge probabilities.
3368 (dump_gimple_cond): Likewise.
3369 (dump_gimple_label): Dump
3370 (dump_gimple_bb_header): Dump basic block frequency.
3371 (pp_cfg_jump): Replace e->dest argument with e.
3372 (dump_implicit_edges): Likewise.
3373 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
3374 Use gimple_bb (at) instead of at->bb.
3376 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3378 * common.opt (flimit-function-alignment): New.
3379 * doc/invoke.texi (-flimit-function-alignment): Document.
3380 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
3381 * final.c (shorten_branches): Set it.
3382 * varasm.c (assemble_start_function): Limit alignment if
3385 2016-11-24 Richard Biener <rguenther@suse.de>
3387 PR tree-optimization/71595
3388 * cfgloopmanip.h (remove_path): Add irred_invalidated and
3389 loop_closed_ssa_invalidated parameters, defaulted to NULL.
3390 * cfgloopmanip.c (remove_path): Likewise, pass them along to
3391 called functions. Only fix irred flags if the caller didn't
3393 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
3394 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
3397 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3399 PR rtl-optimization/78120
3400 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
3401 cases, and additionally test against max_seq_cost for speed
3403 (noce_process_if_block): Compute an estimate for the original cost when
3404 optimizing for speed, using the minimum of then and else block costs.
3406 PR rtl-optimization/78120
3407 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
3409 PR rtl-optimization/78120
3410 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
3412 2016-11-24 Bin Cheng <bin.cheng@arm.com>
3414 * match.pd: Refine type conversion in result expr for below pattern:
3415 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3417 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3420 * tree.h (wi::fits_to_boolean_p): New predicate.
3421 (wi::fits_to_tree_p): Use it for boolean types.
3422 * tree.c (int_fits_type_p): Likewise.
3424 2016-11-24 Martin Liska <mliska@suse.cz>
3426 * print-tree.c (struct bucket): Remove.
3427 (print_node): Add new argument which drives whether a tree node
3428 is printed briefly or not.
3429 (debug_tree): Replace a custom hash table with hash_set<T>.
3430 * print-tree.h (print_node): Add the argument.
3432 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
3434 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
3436 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
3439 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
3440 if it is at least NREGS wide.
3442 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3444 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
3445 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
3446 TFmode, IFmode and KFmode.
3448 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3450 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
3453 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3455 * combine.c (change_zero_ext): Only change the mode of a hard register
3456 destination if can_change_dest_mode holds for that.
3458 2016-11-23 Jeff Law <law@redhat.com>
3460 * varasm.c (assemble_name): Increase buffer size for name.
3462 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
3464 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
3466 * doc/extend.texi: Constify first argument to __builtin_object_size.
3468 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3470 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
3471 to be used. Add brackets around macro argument.
3473 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3475 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
3477 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3480 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
3481 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
3483 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3486 * omp-low.c (build_outer_var_ref): Change lastprivate argument
3487 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
3488 on worksharing constructs, treat it like clauses on simd construct.
3490 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
3491 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
3492 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
3493 of true as last argument to build_outer_var_ref.
3495 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3497 * config/i386/i386.md (*movqi_internal): Calculate mode
3498 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
3499 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
3500 (*k<logic><mode>): Calculate mode attribute depending on
3501 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
3502 (*andqi_1): Calculate mode attribute of alternative 3 depending
3503 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
3504 (kandn<mode>): Calculate mode attribute of alternative 2 depending
3505 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
3506 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
3507 iterator. Calculate mode attribute of alternative 1 depending
3508 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
3509 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
3510 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
3512 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3515 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
3516 * tree-vrp.c (extract_range_basic): Handle case for
3517 CFN_BUILT_IN_STRLEN.
3519 2016-11-23 Jeff Law <law@redhat.com>
3521 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
3523 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
3524 in boolean context warning.
3526 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
3528 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3531 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
3532 (arm_fp16_type_node): ...This, make visibile.
3533 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
3535 (arm_init_simd_builtin_types): Likewise.
3536 (arm_init_fp16_builtins): Likewise.
3537 * config/arm/arm.c (arm_excess_precision): New.
3538 (arm_floatn_mode): Likewise.
3539 (TARGET_C_EXCESS_PRECISION): Likewise.
3540 (TARGET_FLOATN_MODE): Likewise.
3541 (arm_promoted_type): Only promote arm_fp16_type_node.
3542 * config/arm/arm.h (arm_fp16_type_node): Declare.
3544 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3546 * config/arm/arm.c (arm_convert_to_type): Delete.
3547 (TARGET_CONVERT_TO_TYPE): Delete.
3548 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
3549 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
3550 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
3551 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
3552 are in fast math mode, and have no single step hardware instruction.
3553 (extendhfdf2): Only expand through SFmode if we don't have a
3554 single-step hardware instruction.
3555 * config/arm/vfp.md (*truncdfhf2): New.
3556 (extendhfdf2): Likewise.
3558 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3560 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
3563 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3565 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
3566 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
3567 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
3568 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
3569 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
3570 * doc/tm.texi: Regenerate.
3571 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
3573 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3575 * toplev.c (init_excess_precision): Delete most logic.
3576 * tree.c (excess_precision_type): Rewrite to use
3577 TARGET_EXCESS_PRECISION.
3578 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
3579 more generic fashion.
3580 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
3581 __STDC_WANT_IEC_60559_TYPES_EXT__.
3583 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3585 * common.opt (fpermitted-flt-eval-methods): New.
3586 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
3587 * flag_types.h (permitted_flt_eval_methods): New.
3589 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3591 * config/m68k/m68k.c (m68k_excess_precision): New.
3592 (TARGET_C_EXCESS_PRECISION): Define.
3594 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3596 * config/s390/s390.c (s390_excess_precision): New.
3597 (TARGET_C_EXCESS_PRECISION): Define.
3599 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3601 * config/i386/i386.c (ix86_excess_precision): New.
3602 (TARGET_C_EXCESS_PRECISION): Define.
3604 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3606 * target.def (excess_precision): New hook.
3607 * target.h (flt_eval_method): New.
3608 (excess_precision_type): Likewise.
3609 * targhooks.c (default_excess_precision): New.
3610 * targhooks.h (default_excess_precision): New.
3611 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
3612 * doc/tm.texi: Regenerate.
3614 2016-11-23 Martin Sebor <msebor@redhat.com>
3617 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
3618 set the minimum number of bytes for an unknown string to zero.
3620 2016-11-23 Martin Jambor <mjambor@suse.cz>
3621 Martin Liska <mliska@suse.cz>
3623 * hsa-builtins.def: New file.
3624 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
3625 * builtins.def: Include hsa-builtins.def.
3626 (DEF_HSA_BUILTIN): New macro.
3627 * dumpfile.h (OPTGROUP_OPENMP): Define.
3628 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
3629 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
3630 GF_OMP_FOR_GRID_GROUP_ITER.
3631 (gimple_omp_for_grid_phony): Added checking assert.
3632 (gimple_omp_for_set_grid_phony): Likewise.
3633 (gimple_omp_for_grid_intra_group): New function.
3634 (gimple_omp_for_set_grid_intra_group): Likewise.
3635 (gimple_omp_for_grid_group_iter): Likewise.
3636 (gimple_omp_for_set_grid_group_iter): Likewise.
3637 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
3638 previosuly only distribute loop was permitted.
3639 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
3640 (grid_get_kernel_launch_attributes): Support multiple HSA grid
3642 (grid_expand_omp_for_loop): Likewise and also support standalone
3643 distribute constructs. New parameter INTRA_GROUP, updated both users.
3644 (grid_expand_target_grid_body): Support standalone distribute
3646 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
3647 (pass_data_expand_omp_ssa): Likewise.
3648 (pass_data_omp_device_lower): Likewsie.
3649 (pass_data_lower_omp): Likewise.
3650 (pass_data_diagnose_omp_blocks): Likewise.
3651 (pass_data_oacc_device_lower): Likewise.
3652 (pass_data_omp_target_link): Likewise.
3653 (grid_lastprivate_predicate): New function.
3654 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
3656 (lower_omp_for): Support standalone distribute constructs.
3657 (grid_prop): New type.
3658 (grid_safe_assignment_p): Check for assignments to group_sizes, new
3660 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
3662 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
3663 optimization info messages.
3664 (grid_find_single_omp_among_assignments): Likewise.
3665 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
3666 (grid_parallel_clauses_gridifiable): New function.
3667 (grid_inner_loop_gridifiable_p): Likewise.
3668 (grid_dist_follows_simple_pattern): Likewise.
3669 (grid_gfor_follows_tiling_pattern): Likewise.
3670 (grid_call_permissible_in_distribute_p): Likewise.
3671 (grid_handle_call_in_distribute): Likewise.
3672 (grid_dist_follows_tiling_pattern): Likewise.
3673 (grid_target_follows_gridifiable_pattern): Support standalone
3674 distribute constructs.
3675 (grid_var_segment): New enum.
3676 (grid_mark_variable_segment): New function.
3677 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
3678 if a new argument says so.
3679 (grid_process_grid_body): New function.
3680 (grid_eliminate_combined_simd_part): Likewise.
3681 (grid_mark_tiling_loops): Likewise.
3682 (grid_mark_tiling_parallels_and_loops): Likewise.
3683 (grid_process_kernel_body_copy): Support standalone distribute
3685 (grid_attempt_target_gridification): New grid variable holding overall
3686 gridification state. Support standalone distribute constructs and
3688 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
3689 * hsa.h (hsa_bb): Add method method append_phi.
3690 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
3691 occurences in all files too.
3692 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
3693 (is_a_helper <hsa_insn_br *>::test): New function.
3694 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
3695 branch instructions.
3696 (hsa_insn_signal): Make a direct descendant of
3697 hsa_insn_basic. Add memorder constructor parameter and
3698 m_memory_order and m_signalop member variables.
3699 (hsa_insn_queue): Changed constructor parameters to common form.
3700 Added m_segment and m_memory_order member variables.
3701 (hsa_summary_t): Add private member function
3702 process_gpu_implementation_attributes.
3703 (hsa_function_summary): Rename m_binded_function to
3705 (hsa_insn_basic_p): Remove typedef.
3706 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
3707 (hsa_op_reg_p): Remove typedef.
3708 (hsa_function_representation): Change hsa_op_reg_p into plain
3710 (hsa_insn_phi): Removed new and delete operators.
3711 (hsa_insn_br): Likewise.
3712 (hsa_insn_cbr): Likewise.
3713 (hsa_insn_sbr): Likewise.
3714 (hsa_insn_cmp): Likewise.
3715 (hsa_insn_mem): Likewise.
3716 (hsa_insn_atomic): Likewise.
3717 (hsa_insn_signal): Likewise.
3718 (hsa_insn_seg): Likewise.
3719 (hsa_insn_call): Likewise.
3720 (hsa_insn_arg_block): Likewise.
3721 (hsa_insn_comment): Likewise.
3722 (hsa_insn_srctype): Likewise.
3723 (hsa_insn_packed): Likewise.
3724 (hsa_insn_cvt): Likewise.
3725 (hsa_insn_alloca): Likewise.
3726 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
3727 (process_gpu_implementation_attributes): New function.
3728 (link_functions): Move some functionality into it. Adjust after
3729 renaming m_binded_functions to m_bound_functions.
3730 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
3731 to the list of instructions with no output registers.
3732 (get_in_type): Return this if it is a register of
3734 (hsa_get_declaration_name): Moved to...
3735 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
3736 temporary string on an obstack instead from ggc.
3737 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
3738 down to two overloads.
3739 (hsa_allocp_operand_address): Removed.
3740 (hsa_allocp_operand_immed): Likewise.
3741 (hsa_allocp_operand_reg): Likewise.
3742 (hsa_allocp_operand_code_list): Likewise.
3743 (hsa_allocp_operand_operand_list): Likewise.
3744 (hsa_allocp_inst_basic): Likewise.
3745 (hsa_allocp_inst_phi): Likewise.
3746 (hsa_allocp_inst_mem): Likewise.
3747 (hsa_allocp_inst_atomic): Likewise.
3748 (hsa_allocp_inst_signal): Likewise.
3749 (hsa_allocp_inst_seg): Likewise.
3750 (hsa_allocp_inst_cmp): Likewise.
3751 (hsa_allocp_inst_br): Likewise.
3752 (hsa_allocp_inst_sbr): Likewise.
3753 (hsa_allocp_inst_call): Likewise.
3754 (hsa_allocp_inst_arg_block): Likewise.
3755 (hsa_allocp_inst_comment): Likewise.
3756 (hsa_allocp_inst_queue): Likewise.
3757 (hsa_allocp_inst_srctype): Likewise.
3758 (hsa_allocp_inst_packed): Likewise.
3759 (hsa_allocp_inst_cvt): Likewise.
3760 (hsa_allocp_inst_alloca): Likewise.
3761 (hsa_allocp_bb): Likewise.
3763 (hsa_init_data_for_cfun): Initialize obstack.
3764 (hsa_deinit_data_for_cfun): Release memory of the obstack.
3765 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
3766 (hsa_op_reg::operator new): Likewise.
3767 (hsa_op_address::operator new): Likewise.
3768 (hsa_op_code_list::operator new): Likewise.
3769 (hsa_op_operand_list::operator new): Likewise.
3770 (hsa_insn_basic::operator new): Likewise.
3771 (hsa_insn_phi::operator new): Likewise.
3772 (hsa_insn_br::operator new): Likewise.
3773 (hsa_insn_sbr::operator new): Likewise.
3774 (hsa_insn_cmp::operator new): Likewise.
3775 (hsa_insn_mem::operator new): Likewise.
3776 (hsa_insn_atomic::operator new): Likewise.
3777 (hsa_insn_signal::operator new): Likewise.
3778 (hsa_insn_seg::operator new): Likewise.
3779 (hsa_insn_call::operator new): Likewise.
3780 (hsa_insn_arg_block::operator new): Likewise.
3781 (hsa_insn_comment::operator new): Likewise.
3782 (hsa_insn_srctype::operator new): Likewise.
3783 (hsa_insn_packed::operator new): Likewise.
3784 (hsa_insn_cvt::operator new): Likewise.
3785 (hsa_insn_alloca::operator new): Likewise.
3786 (hsa_init_new_bb): Likewise.
3787 (hsa_bb::append_phi): New function.
3788 (gen_hsa_phi_from_gimple_phi): Use it.
3789 (get_symbol_for_decl): Fix dinstinguishing between
3790 global and local functions. Put local variables into a segment
3791 according to their attribute or static flag, if there is one.
3792 (hsa_insn_br::hsa_insn_br): New.
3793 (hsa_insn_br::operator new): Likewise.
3794 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
3795 (query_hsa_grid_nodim): New function.
3796 (multiply_grid_dim_characteristics): Likewise.
3797 (gen_get_num_threads): Likewise.
3798 (gen_get_num_teams): Reimplemented.
3799 (gen_get_team_num): Likewise.
3800 (gen_hsa_insns_for_known_library_call): Updated calls to the above
3802 (get_memory_order_name): Removed.
3803 (get_memory_order): Likewise.
3804 (hsa_memorder_from_tree): New function.
3805 (gen_hsa_ternary_atomic_for_builtin): Renamed to
3806 gen_hsa_atomic_for_builtin, can also create signals.
3807 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
3808 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
3809 (hsa_insn_atomic): Fix function comment.
3810 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
3811 ancestor constructor and initialization of new member variables.
3812 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
3814 (hsa_get_host_function): Handle functions with no bound CPU
3815 implementation. Fix binded to bound.
3816 (get_brig_function_name): Likewise.
3817 (HSA_SORRY_ATV): Remove semicolon after macro.
3818 (HSA_SORRY_AT): Likewise.
3819 (omp_simple_builtin::generate): Add missing semicolons.
3820 (hsa_insn_phi::operator new): Removed.
3821 (hsa_insn_br::operator new): Likewise.
3822 (hsa_insn_cbr::operator new): Likewise.
3823 (hsa_insn_sbr::operator new): Likewise.
3824 (hsa_insn_cmp::operator new): Likewise.
3825 (hsa_insn_mem::operator new): Likewise.
3826 (hsa_insn_atomic::operator new): Likewise.
3827 (hsa_insn_signal::operator new): Likewise.
3828 (hsa_insn_seg::operator new): Likewise.
3829 (hsa_insn_call::operator new): Likewise.
3830 (hsa_insn_arg_block::operator new): Likewise.
3831 (hsa_insn_comment::operator new): Likewise.
3832 (hsa_insn_srctype::operator new): Likewise.
3833 (hsa_insn_packed::operator new): Likewise.
3834 (hsa_insn_cvt::operator new): Likewise.
3835 (hsa_insn_alloca::operator new): Likewise.
3836 (get_symbol_for_decl): Accept CONST_DECLs, put them to
3838 (gen_hsa_addr): Also process CONST_DECLs.
3839 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
3841 (gen_hsa_unary_operation): Make sure the function does
3842 not use bittype source type for firstbit and lastbit operations.
3843 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
3845 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
3847 (emit_branch_insn): Renamed to emit_cond_branch_insn.
3848 Emit the width stored in the class.
3849 (emit_generic_branch_insn): New function.
3850 (emit_insn): Call emit_generic_branch_insn.
3851 (emit_signal_insn): Remove obsolete comment. Update
3852 member variable name, pick a type according to profile.
3853 (emit_alloca_insn): Remove obsolete comment.
3854 (emit_atomic_insn): Likewise.
3855 (emit_queue_insn): Get segment and memory order from the IR object.
3856 (hsa_brig_section): Make allocate_new_chunk, chunks
3857 and cur_chunk provate, add a default NULL parameter to add method.
3858 (hsa_brig_section::add): Added a new parameter, store pointer to
3859 output data there if it is non-NULL.
3860 (emit_function_directives): Use this new parameter instead of
3861 calculating the pointer itself, fix function comment.
3862 (hsa_brig_emit_function): Add forgotten endian conversion.
3863 (hsa_output_kernels): Remove unnecessary building of
3864 kernel_dependencies_vector_type.
3865 (emit_immediate_operand): Declare.
3866 (emit_directive_variable): Also emit initializers of CONST_DECLs.
3867 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
3868 (verify_function_arguments): Properly detect variadic
3870 * hsa-dump.c (hsa_width_specifier_name): New function.
3871 (dump_hsa_insn_1): Dump generic branch instructions, update signal
3872 member variable name. Special dumping for queue objects.
3873 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
3874 m_binded_functions to m_bound_functions. Copy externally visible flag
3876 (ipa_hsa_write_summary): Likewise.
3877 (ipa_hsa_read_section): Likewise.
3879 2016-11-23 Richard Biener <rguenther@suse.de>
3881 PR tree-optimization/78396
3882 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
3883 vectorize try vectorizing an if-converted body using BB vectorization.
3885 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3886 Alan Hayward <alan.hayward@arm.com>
3887 David Sherwood <david.sherwood@arm.com>
3889 * rtlanal.c (subreg_get_info): Use more local variables.
3890 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
3891 occupies at least one register. Assume that full hard registers
3892 have consistent endianness. Share previously-duplicated if block.
3893 Rework the main handling so that it operates on independently-
3894 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
3895 to check lowpart offsets, without trying to find an equivalent
3896 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
3897 as a final register-endianness correction.
3899 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3905 * combine.c (make_compound_operation_int): Do not convert a subreg of
3906 a non-constant logical shift right to a zero_extract. Handle the case
3907 where some zero bits have been shifted into the range covered by that
3910 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3911 Alan Hayward <alan.hayward@arm.com>
3912 David Sherwood <david.sherwood@arm.com>
3914 * rtl.h (subreg_size_offset_from_lsb): Declare.
3915 (subreg_offset_from_lsb): New function.
3916 (subreg_size_lowpart_offset): Declare.
3917 (subreg_lowpart_offset): Turn into an inline function.
3918 (subreg_size_highpart_offset): Declare.
3919 (subreg_highpart_offset): Turn into an inline function.
3920 * emit-rtl.c (subreg_size_lowpart_offset): New function.
3921 (subreg_size_highpart_offset): Likewise
3922 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
3924 2016-11-23 Richard Biener <rguenther@suse.de>
3926 PR tree-optimization/78482
3927 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
3928 (remove_forwarder_block_with_phi): When merging with a loop
3929 header creates a new latch reset number of iteration information
3932 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
3934 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
3935 (*ashrsi3_extend0): ...this. Accept constant integers.
3936 (*ashrsi3_extend2): Rename to...
3937 (*ashrsi3_extend1): ...this.
3938 (*ashrsi3_extend2): New pattern.
3939 (*lshrsi3_extend1): Accept constant integers.
3940 (*lshrsi3_extend2): Fix condition on operand 2.
3942 2016-11-23 Martin Liska <mliska@suse.cz>
3944 * config/i386/i386.c: Initialize function pointer to NULL.
3946 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3948 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3949 for A == C1 ? A : C2 to below.
3950 * match.pd: Move from above to here:
3951 (cond (eq (convert1? x) c1) (convert2? x) c2)
3952 -> (cond (eq x c1) c1 c2).
3954 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3956 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3957 for A cmp C1 ? A : C2 to below, also simplify remaining code.
3958 * match.pd: Move and extend simplification from above to here:
3959 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3960 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
3961 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
3963 2016-11-23 Martin Liska <mliska@suse.cz>
3964 Martin Jambor <mjambor@suse.cz>
3966 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
3968 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
3971 * opts.c (finish_options): Set -fsyntax-only if running self tests.
3973 2016-11-23 Richard Biener <rguenther@suse.de>
3976 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
3977 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
3979 2016-11-23 Richard Biener <rguenther@suse.de>
3982 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
3985 2016-11-23 Richard Biener <rguenther@suse.de>
3986 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
3988 PR tree-optimization/78154
3989 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
3990 returns it's argument and the argument is nonnull.
3991 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
3992 ATT_RETNONNULL_NOTHROW_LEAF.
3993 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
3994 ATTR_RETNONNULL_NOTHROW_LEAF.
3995 (BUILT_IN_STPCPY): Likewise.
3996 (BUILT_IN_STPNCPY): Likewise.
3997 (BUILT_IN_MEMPCPY_CHK): Likewise.
3998 (BUILT_IN_STPCPY_CHK): Likewise.
3999 (BUILT_IN_STPNCPY_CHK): Likewise.
4000 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
4001 (BUILT_IN_STRNCAT): Likewise.
4002 (BUILT_IN_STRNCPY): Likewise.
4003 (BUILT_IN_MEMSET_CHK): Likewise.
4004 (BUILT_IN_STRCAT_CHK): Likewise.
4005 (BUILT_IN_STRCPY_CHK): Likewise.
4006 (BUILT_IN_STRNCAT_CHK): Likewise.
4007 (BUILT_IN_STRNCPY_CHK): Likewise.
4009 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4011 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
4012 * fold-const.h (tree_expr_nonzero_p) : Declare.
4013 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
4015 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
4017 * system.h (HAVE_DESIGNATED_INITIALIZERS,
4018 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
4019 "defined" in macros.
4020 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
4021 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
4022 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
4024 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
4027 * config/avr/constraints.md (Csp): Widen range to [-11..6].
4028 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
4029 of RCALLs in prologue to 3.
4031 2016-11-22 Michael Collison <michael.collison@arm.com>
4033 * config/aarch64/aarch64-protos.h
4034 (aarch64_and_split_imm1, aarch64_and_split_imm2)
4035 (aarch64_and_bitmask_imm): New prototypes
4036 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
4037 New overloaded function to create bit mask covering the
4038 lowest to highest bits set.
4039 (aarch64_and_split_imm2): New overloaded functions to create bit
4040 mask of zeros between first and last bit set.
4041 (aarch64_and_bitmask_imm): New function to determine if a integer
4042 is a valid two instruction "and" operation.
4043 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
4044 allowing wider range of constants with "and" operations.
4045 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
4046 "and" operator from matching restricted constant range used for
4047 ior and xor operators.
4048 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
4049 for constants in "and" operantions.
4050 (UsP constraint): New DImode constraint for constants
4051 in "and" operations.
4052 * config/aarch64/iterators.md (lconst2): New mode iterator.
4053 (LOGICAL2): New code iterator.
4054 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
4056 (aarch64_logical_and_operand): New predicate allowing extended
4057 constants for "and" operations.
4059 2016-11-22 Walter Lee <walt@tilera.com>
4061 * config/tilegx/tilegx.md (trap): New pattern.
4062 * config/tilepro/tilepro.md (trap): Likewise.
4064 2016-11-22 Walter Lee <walt@tilera.com>
4066 * config/tilegx/tilegx.md (*zero_extract): Use
4067 define_insn_and_split instead of define_insn; Handle pos + size >
4069 (*sign_extract): Likewise.
4071 2016-11-22 Marek Polacek <polacek@redhat.com>
4073 PR tree-optimization/78455
4074 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
4076 2016-11-22 Ian Lance Taylor <iant@golang.org>
4080 * godump.c (go_format_type): Always pass alignment as 1 when
4081 calling go_append_padding at end of struct/union.
4083 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4086 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
4087 _mm512_setzero_hi): Removed.
4088 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
4089 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
4090 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
4091 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
4092 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
4093 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
4094 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
4095 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
4096 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
4097 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
4098 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
4099 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
4100 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
4101 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
4102 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
4103 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
4104 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
4105 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
4106 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
4107 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
4108 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
4109 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
4110 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
4111 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
4112 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
4113 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
4114 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
4115 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
4116 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
4117 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
4118 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
4119 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
4120 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
4121 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
4122 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
4123 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
4124 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4125 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4126 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4127 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
4128 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
4129 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
4130 _mm512_setzero_qi or _mm512_setzero_hi.
4131 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
4132 _mm512_maskz_dbsad_epu8): Formatting fixes.
4133 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
4134 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4135 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4136 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4137 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
4138 _mm512_setzero_qi or _mm512_setzero_hi.
4140 2016-11-22 Nathan Sidwell <nathan@acm.org>
4142 * gcc-ar.c (main): Fix indentation.
4143 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
4144 * ggc-page.c (move_ptes_to_front): Fix formatting.
4145 * hsa-dump.c (dump_has_cfun): Fix indentation.
4146 * sel-sched-ir.h: Remove trailing blank lines.
4148 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4149 Alexander Monakov <amonakov@ispras.ru>
4151 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
4152 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
4153 (omp_clause_code_name): Add _simt_ name.
4154 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
4155 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
4156 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
4157 (scan_omp_simd): New function.
4158 (scan_omp_1_stmt): Use it in target regions if needed.
4159 (omp_max_vf): Don't max with omp_max_simt_vf.
4160 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
4161 OMP_CLAUSE__SIMT_ is present.
4162 (lower_rec_input_clauses): Compute maybe_simt from presence of
4164 (lower_lastprivate_clauses): Likewise.
4165 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
4166 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
4167 * internal-fn.def (GOMP_USE_SIMT): New internal function.
4168 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
4170 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
4172 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
4173 (expand_GOMP_SIMT_VF): New.
4174 (expand_GOMP_SIMT_LAST_LANE): New.
4175 (expand_GOMP_SIMT_ORDERED_PRED): New.
4176 (expand_GOMP_SIMT_VOTE_ANY): New.
4177 (expand_GOMP_SIMT_XCHG_BFLY): New.
4178 (expand_GOMP_SIMT_XCHG_IDX): New.
4179 * internal-fn.def (GOMP_SIMT_LANE): New.
4180 (GOMP_SIMT_VF): New.
4181 (GOMP_SIMT_LAST_LANE): New.
4182 (GOMP_SIMT_ORDERED_PRED): New.
4183 (GOMP_SIMT_VOTE_ANY): New.
4184 (GOMP_SIMT_XCHG_BFLY): New.
4185 (GOMP_SIMT_XCHG_IDX): New.
4186 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
4187 (create_omp_child_function): ...here. Set "omp target entrypoint"
4188 or "omp declare target" attribute based on is_gimple_omp_offloaded.
4189 (omp_max_simt_vf): New. Use it...
4190 (omp_max_vf): ...here.
4191 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
4192 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
4193 (lower_omp_ordered): Likewise, for "ordered" lowering.
4194 (expand_omp_simd): Add SIMT transforms.
4195 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
4196 (execute_omp_device_lower): New.
4197 (pass_data_omp_device_lower): New.
4198 (pass_omp_device_lower): New pass.
4199 (make_pass_omp_device_lower): New.
4200 * passes.def (pass_omp_device_lower): Position new pass.
4201 * tree-pass.h (PROP_gimple_lomp_dev): Define.
4202 (make_pass_omp_device_lower): Declare.
4204 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4207 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
4208 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
4210 (_mm_maskz_load_epi64): Likewise.
4211 (_mm_setzero_hi): Removed.
4212 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
4214 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
4215 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
4216 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
4217 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
4218 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
4219 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
4220 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
4221 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
4222 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4223 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
4224 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
4226 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
4227 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
4228 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
4229 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
4230 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
4231 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
4232 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
4233 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
4234 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
4235 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
4236 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
4237 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4238 instead of _mm_setzero_hi.
4239 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
4240 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
4241 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
4242 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
4243 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
4244 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
4245 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
4246 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
4247 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
4248 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
4249 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
4250 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
4251 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
4252 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
4253 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
4254 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
4255 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
4256 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
4257 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
4258 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
4259 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
4260 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
4261 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
4262 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
4263 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4264 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
4266 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4267 instead of _mm_setzero_hi.
4268 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
4269 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
4270 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
4271 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4272 _mm_setzero_si128 instead of _mm_setzero_di.
4273 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
4274 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
4275 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
4276 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
4277 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
4278 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
4279 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
4280 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
4281 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
4282 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
4283 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
4284 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
4285 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
4286 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
4287 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
4288 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
4289 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
4290 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
4291 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
4292 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
4293 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
4294 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
4295 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
4296 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
4297 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
4298 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
4299 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
4300 _mm512_maskz_insertf32x8): Formatting fixes.
4301 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4302 _mm_setzero_si128 instead of _mm_setzero_di.
4303 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
4304 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
4305 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
4306 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
4307 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
4308 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
4309 _mm_setzero_si128 instead of _mm_setzero_di.
4310 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
4312 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
4313 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
4314 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
4315 _mm_setzero_si128 instead of _mm_setzero_hi.
4316 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
4317 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
4318 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
4319 instead of _mm_setzero_di.
4320 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
4321 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
4323 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
4324 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
4326 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
4328 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
4329 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
4330 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
4332 2016-11-22 Carl Love <cel@us.ibm.com>
4334 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
4335 equal and vector compare not equal. The vector compares take two
4336 arguments of type vector bool char, vector bool short, vector bool int,
4337 vector bool long long with the same return type.
4338 * doc/extend.texi: Update built-in documentation file for the new
4341 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
4343 * Makefile.in ($(lang_checks_parallelized)): Fix detection
4346 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4348 * config.gcc: Allow new rmprofile value for configure option
4349 --with-multilib-list.
4350 * config/arm/t-rmprofile: New file.
4351 * doc/install.texi (--with-multilib-list): Document new rmprofile value
4354 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4357 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
4358 register operand in alternatives 4,5,6.
4360 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4363 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
4364 in save register mask if it is needed.
4366 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4368 PR tree-optimization/78436
4369 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
4370 (shift_bytes_in_array, shift_bytes_in_array_right,
4371 merged_store_group::apply_stores): Formatting fixes.
4372 (clear_bit_region): Likewise. Use memset.
4373 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
4374 instead of EXPR and inerted instead of inserted. Use memset instead
4375 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
4379 * expmed.c (expand_divmod): Use wide_int for computation of
4380 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
4381 Use size <= HOST_BITS_PER_WIDE_INT instead of
4382 HOST_BITS_PER_WIDE_INT >= size.
4384 PR tree-optimization/78445
4385 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
4386 any_complicated_phi, version loop even if flag_tree_loop_if_convert
4387 is 1. Formatting fix.
4389 2016-11-22 Martin Liska <mliska@suse.cz>
4392 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
4393 (sem_function::get_hash): Use the new field.
4394 (sem_function::parse): Remove an argument from ctor.
4395 (sem_variable::parse): Likewise.
4396 (sem_variable::get_hash): Use the new field.
4397 (sem_item_optimizer::read_section): Use new ctor and set hash.
4398 * ipa-icf.h: _hash is removed from sem_item::sem_item,
4399 sem_variable::sem_variable, sem_function::sem_function.
4401 2016-11-21 Jeff Law <law@redhat.com>
4404 * config/cris/cris.md: Don't call copy_to_mode_reg unless
4405 can_create_pseudo_p is true.
4407 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4410 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
4411 *rotldi3_insert_7): New define_insns.
4413 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4415 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
4416 so that DImode can be allocated to FP/vector registers in more
4417 cases, and we can avoid direct move operations. If the register
4418 needs reloading, prefer GPRs over FP/vector registers. In the
4419 case of FPR vs. Altivec registers, prefer FPR registers unless we
4420 have the ISA 3.0 reg+offset scalar instructions.
4421 (movdi_internal64): Likewise.
4423 2016-11-21 Jakub Jelinek <jakub@redhat.com>
4426 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
4427 for tmp simd array if DECL_NAME (parm) is NULL.
4429 2016-11-20 Jeff Law <law@redhat.com>
4432 * config/m68k/predicates.md (swap_peephole_relational_operator): New
4434 * config/m68k/m68k.md (relational tests against 65535/65536): New
4437 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4439 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
4441 2016-11-21 Martin Sebor <msebor@redhat.com>
4443 * doc/invoke.texi (-fprintf-return-value): Document that option
4444 is enabled by default.
4446 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4448 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
4449 for-loop declaration of loop variable.
4450 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
4451 * config/avr/avr.c (avr_popcount_each_byte)
4452 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
4453 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
4454 (avr_expand_epilogue, avr_function_arg_advance)
4455 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
4456 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
4457 (avr_adjust_reg_alloc_order, output_reload_in_const)
4458 (avr_conditional_register_usage, avr_find_unused_d_reg)
4459 (avr_map_decompose, avr_fold_builtin): Same.
4461 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4463 * config/avr/avr.c (avr_popcount): Remove static function.
4464 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
4466 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
4468 * arm.opt (mapcs-float): Delete option.
4469 * arm.c (arm_option_override): Remove hunk relating to
4471 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
4473 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
4475 * tree-tailcall.c (process_assignment): Simplify the check for
4476 a valid copy, allowing the source to be a local variable as
4477 well as an SSA name.
4478 (find_tail_calls): Allow copies between local variables to follow
4479 the call. Allow the result to be stored in any local variable,
4480 even if it's an aggregate.
4481 (eliminate_tail_call): Check whether the result is an SSA name
4482 before updating its SSA_NAME_DEF_STMT.
4484 2016-11-21 David Malcolm <dmalcolm@redhat.com>
4486 PR preprocessor/78324
4487 * input.c (get_substring_ranges_for_loc): Fail gracefully if
4488 -ftrack-macro-expansion has a value other than 2.
4490 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4492 PR rtl-optimization/78400
4493 * shrink-wrap.c (try_shrink_wrapping_separate): Call
4494 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
4495 and df_update_exit_block_uses.
4497 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4500 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
4501 new default-enabled warning..
4502 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
4503 (BT_PTR_CONST_STRING): Updated.
4504 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
4505 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
4506 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
4507 (strftime): Update builtin function.
4508 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
4509 * tree.h (const_tm_ptr_type_node): New type node.
4510 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
4511 const_tm_ptr_type_node.
4513 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4515 PR tree-optimization/78413
4516 * tree-if-conv.c (versionable_outer_loop_p): Require that both
4517 inner and outer loop latches have single predecessors.
4519 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4522 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
4523 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
4525 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4527 * rtl.h: Adjust prototype.
4528 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
4529 (dead_or_set_regno_p): Likewise.
4531 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4533 * rtl.h: Adjust prototype.
4534 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
4536 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4538 * function.c (contains): Change argument type to rtx_insn *.
4539 (prologue_contains): Likewise.
4540 (epilogue_contains): Likewise.
4541 (prologue_epilogue_contains): Likewise.
4542 * function.h: Adjust prototype.
4544 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4546 * optabs.c (emit_libcall_block): Change argument type to
4548 * optabs.h: Adjust prototype.
4550 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4552 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
4553 (fixup_reorder_chain): Adjust.
4554 * cfgrtl.h: Adjust prototype.
4556 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4558 * rtl.h: Adjust prototype.
4559 * rtlanal.c (replace_label_in_insn): Change argument type to
4562 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4564 * config/v850/v850.c (expand_prologue): Adjust.
4565 (expand_epilogue): Likewise.
4566 * expr.c (init_expr_target): Likewise.
4567 * genrecog.c (print_subroutine): Always make the argument type
4569 * recog.h: Adjust prototype.
4571 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4573 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
4574 up variables to make some rtx_insn *.
4575 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4576 * config/arc/arc.c: Likewise.
4577 * config/arm/arm.c: Likewise.
4578 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
4579 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
4581 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4583 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4585 * config/arm/arm.c (legitimize_pic_address): Change to use
4586 rtx_insn * as the type of variables.
4587 (arm_pic_static_addr): Likewise.
4588 (arm_emit_movpair): Likewise.
4589 * config/c6x/c6x.c (reorg_split_calls): Likewise.
4590 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
4591 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
4592 * config/frv/frv.md: Likewise.
4593 * config/i386/i386-protos.h: Likewise.
4594 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4595 (ix86_split_fp_branch): Likewise.
4596 (predict_jump): Likewise.
4597 * config/ia64/ia64.c: Likewise.
4598 * config/mcore/mcore.c: Likewise.
4599 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
4600 * config/s390/s390.c: Likewise.
4601 * config/s390/s390.md: Likewise.
4602 * config/spu/spu.md: Likewise.
4603 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
4604 * lower-subreg.c (resolve_simple_move): Likewise.
4606 2016-11-20 Jeff Law <law@redhat.com>
4609 * reload.h (struct target_reload): Make x_double_reg_address_ok
4611 * reload.c (find_reloads_address): Check if double_reg_address_ok
4612 is true for the mode of the memory reference.
4613 * reload1.c (init_reload): Initialize double_reg_address_ok for
4616 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
4619 * tree-ssa-uninit.c: Define new global max_phi_args.
4620 (compute_uninit_opnds_pos): Use max_phi_args.
4621 (prune_uninit_phi_opnds): Same.
4622 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
4623 missing NUM_PREDS in function comment.
4624 (can_one_predicate_be_invalidated_p): New.
4625 (can_chain_union_be_invalidated_p): New.
4626 (flatten_out_predicate_chains): New.
4627 (uninit_ops_invalidate_phi_use): New.
4628 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
4630 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4632 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
4633 * match.pd (A /[ex] B CMP C): New simplifications.
4635 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4637 * match.pd (0 / X, X / X, X % X): New simplifications.
4639 2016-11-19 Jakub Jelinek <jakub@redhat.com>
4641 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
4642 when checking if callee's isa flags are subset of caller's isa flags.
4643 Fix comment wording.
4645 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
4646 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
4647 instead and using = 0 instead of &= 0.
4649 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
4650 ix86_add_new_builtins): Formatting fixes.
4651 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
4652 (ix86_get_builtin): Likewise.
4654 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
4655 don't initialize it, don't use it for the case where it isn't
4656 provable %{z} nor using the same argument, instead move merge
4657 argument into a new pseudo and use that as target. Formatting fixes.
4659 2016-11-19 Jeff Law <law@redhat.com>
4662 * config/m68k/m68k.md (bsetdreg): New pattern.
4663 (bchgdreg, bclrdreg): Likewise.
4665 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
4668 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
4669 instead of force_reg.
4670 (sh_expand_setmem): Likewise.
4672 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
4674 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
4676 2016-11-18 Walter Lee <walt@tilera.com>
4678 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
4679 end-of-bundle marker for consecutive barriers.
4681 2016-11-18 Walter Lee <walt@tilera.com>
4683 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
4685 2016-11-18 Jakub Jelinek <jakub@redhat.com>
4688 * multiple_target.c (get_attr_len): Start with argnum and increment
4689 argnum on every arg. Use strchr in a loop instead of counting commas
4691 (get_attr_str): Increment argnum for every comma in the string.
4692 (separate_attrs): Use for instead of while loop, simplify.
4693 (expand_target_clones): Rename defenition argument to definition.
4694 Free attrs and attr_str even when diagnosing errors. Temporarily
4695 change input_location around targetm.target_option.valid_attribute_p
4696 calls. Don't emit warning or errors if that function fails.
4698 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
4701 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
4702 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
4703 abbrev_opt_base_type_end only by increasing die_abbrev, before
4705 (optimize_abbrev_table): Don't change abbrev numbers of
4706 base types and CU or optimize implicit consts in them if
4707 calc_base_type_die_sizes has been called during build_abbrev_table.
4708 (calc_base_type_die_sizes): If abbrev_opt_start, set
4709 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
4711 2016-11-18 Jeff Law <law@redhat.com>
4714 * config/m68k/m68k.c (moveq feeding equality comparison): New
4716 * config/m68k/predicates.md (addq_subq_operand): New predicate.
4717 (equality_comparison_operator): Likewise.
4719 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4721 * rtlanal.c (load_extend_op): Move to...
4722 * rtl.h: ...here and make inline.
4724 2016-11-18 Terry Guo <terry.guo@arm.com>
4725 Thomas Preud'homme <thomas.preudhomme@arm.com>
4727 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
4728 * config/arm/arm-opts.h: Include arm-flags.h.
4729 (struct arm_arch_core_flag): Define.
4730 (arm_arch_core_flags): Define.
4731 * config/arm/arm-protos.h: Include arm-flags.h
4732 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
4733 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
4734 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
4735 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
4736 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
4737 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
4738 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
4739 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
4740 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
4741 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
4742 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
4743 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
4744 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
4745 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
4746 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
4747 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
4748 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
4749 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
4750 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
4751 ARM_FSET_CPU_SUBSET): Move to ...
4752 * config/arm/arm-flags.h: This new file.
4753 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
4754 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
4755 (TARGET_MODE_SPECS): Define.
4756 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
4758 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
4760 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
4761 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
4762 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
4763 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
4764 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
4765 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
4766 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
4767 missing and make value unsigned.
4768 (arm_feature_set): Use unsigned entries instead of unsigned long.
4770 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4772 Re-apply after PR bootstrap/77359 is fixed:
4773 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4775 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4776 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
4779 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4782 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
4783 variables in functions calling alloca. Also update the ASCII
4785 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
4786 (STACK_DYNAMIC_OFFSET): Likewise.
4787 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
4788 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
4791 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4792 Alan Hayward <alan.hayward@arm.com>
4793 David Sherwood <david.sherwood@arm.com>
4795 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
4796 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
4797 (add_const_value_attribute): Likewise.
4798 * explow.c (plus_constant): Likewise.
4799 * expmed.c (expand_mult, make_tree): Likewise.
4800 * expr.c (convert_modes): Likewise.
4801 * loop-doloop.c (doloop_optimize): Likewise.
4802 * postreload.c (reload_cse_simplify_set): Likewise.
4803 * simplify-rtx.c (simplify_const_unary_operation): Likewise
4804 (simplify_binary_operation_1, simplify_const_binary_operation):
4806 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
4807 * wide-int.h: Update documentation to recommend rtx_mode_t
4808 instead of std::make_pair.
4810 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4811 Alan Hayward <alan.hayward@arm.com>
4812 David Sherwood <david.sherwood@arm.com>
4814 * tree.h (SET_DECL_MODE): New macro.
4815 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
4816 (expand_gimple_basic_block): Likewise.
4817 * function.c (split_complex_args): Likeise.
4818 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4819 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
4820 * stor-layout.c (layout_decl, relayout_decl): Likewise.
4821 (finish_bitfield_representative): Likewise.
4822 * tree.c (make_node_stat): Likewise.
4823 * tree-inline.c (remap_ssa_name): Likewise.
4824 (tree_function_versioning): Likewise.
4825 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
4826 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4827 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4828 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
4829 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
4830 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4831 * varasm.c (make_debug_expr_from_rtl): Likewise.
4833 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
4835 PR rtl-optimization/71785
4836 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
4837 (duplicate_computed_gotos): New function.
4838 (pass_duplicate_computed_gotos::execute): Rewrite.
4840 2016-11-17 Jeff Law <law@redhat.com>
4843 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
4844 barrier prior to deallocating the stack.
4846 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
4848 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
4849 to make better use of cmem loads in the case where a single bit is
4851 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
4853 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
4855 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
4857 (isa_names_table): Handle new features.
4859 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
4860 Andrew Senkevich <andrew.senkevich@intel.com>
4862 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
4863 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
4864 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
4865 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
4866 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
4867 * config/i386/avx5124fmapsintrin.h: New file.
4868 * config/i386/avx5124vnniwintrin.h: Ditto.
4869 * config/i386/constraints.md (h): New constraint.
4870 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
4871 * config/i386/driver-i386.c (host_detect_local_cpu):
4872 Detect avx5124fmaps, avx5124vnniw.
4873 * config/i386/i386-builtin-types.def: Add types
4874 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
4875 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
4876 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
4877 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
4878 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
4879 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
4880 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
4881 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
4882 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
4883 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
4884 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
4885 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
4886 __builtin_ia32_vp4dpwssds_mask): New.
4887 * config/i386/i386-c.c (ix86_target_macros_internal):
4888 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
4889 * config/i386/i386-modes.def: Fixed comment typos, added new
4890 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
4891 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
4893 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
4894 (ix86_option_override_internal): Handle new options.
4895 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
4897 (ix86_expand_builtin): Handle new builtins.
4898 (ix86_additional_allocno_class_p): New.
4899 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
4900 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
4901 (reg_class): Add MOD4_SSE_REGS.
4902 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
4903 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
4904 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
4905 avx5124vnniwintrin.h.
4906 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
4907 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
4908 (define_mode_iterator IMOD4): New.
4909 (define_mode_attr imod4_narrow): Ditto.
4910 (define_insn "mov<mode>"): Ditto.
4911 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
4912 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
4913 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
4914 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
4915 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
4916 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
4917 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
4918 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
4919 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
4920 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
4921 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
4922 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
4923 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
4924 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
4925 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
4926 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
4927 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
4928 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
4929 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
4930 * genmodes.c (mode_size_inline): Extend return type.
4931 * machmode.h (mode_size, mode_base_align): Extend type.
4933 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4936 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
4937 the appropriate checks for SFmode/DFmode load/stores in GPR
4939 (fusion_addis_mem_combo_store): Likewise.
4940 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
4941 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
4942 d-form instructions for traditional Altivec registers.
4943 (emit_fusion_p9_load): Likewise.
4944 (emit_fusion_p9_store): Likewise.
4945 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
4946 early clobber from scratch register. Do not match if the register
4947 being stored is the scratch register.
4948 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
4949 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
4950 instructions for traditional Altivec registers.
4951 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4952 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4953 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4955 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
4958 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
4959 being live in the function and lr needing to be saved. Distinguish
4960 between already saved pushable registers and registers to push.
4961 Check for LR being an available pushable register.
4963 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4965 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
4966 string input is a string constant.
4967 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
4968 via cmpstrnsi even if neither string is constant.
4970 2016-11-17 Jakub Jelinek <jakub@redhat.com>
4973 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
4974 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
4975 instead, return false if it is NULL, or doesn't fit into uhwi, or
4976 is larger or equal to targetm.max_anchor_offset.
4978 2016-11-17 Pip Cet <pipcet@gmail.com>
4979 Eric Botcazou <ebotcazou@adacore.com>
4981 PR rtl-optimization/78355
4982 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
4983 needs to deal with unaligned accesses.
4984 * doc/tm.texi: Regenerate.
4985 * lra-constraints.c (simplify_operand_subreg): Only invoke
4986 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
4988 2016-11-17 David Malcolm <dmalcolm@redhat.com>
4990 * input.c (selftest::test_lexer_string_locations_long_line): New
4992 (selftest::test_lexer_string_locations_raw_string_multiline): New
4994 (selftest::input_c_tests): Call the new functions, via
4995 for_each_line_table_case.
4997 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4999 * config/aarch64/aarch64.md (mov<mode>): Call
5000 aarch64_split_dimode_const_store on DImode constant stores.
5001 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
5003 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
5006 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5007 Richard Biener <rguenther@suse.de>
5009 PR tree-optimization/77848
5010 * tree-if-conv.c (tree_if_conversion): Always version loops unless
5011 the user specified -ftree-loop-if-convert.
5013 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
5016 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
5017 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
5018 *thumb2_strd_base_neg): Recognize insn regardless of
5019 current_tune->prefer_ldrd_strd.
5020 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
5023 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
5025 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
5028 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
5030 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
5032 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
5033 * config/arc/arc-cpus.def (quarkse_em): Add.
5034 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
5035 * config/arc/arc-opts.h (FPX_QK): Define.
5036 * config/arc/arc-tables.opt: Regenerate.
5037 * config/arc/arc.c (gen_compare_reg): Change.
5038 (arc_register_move_cost): Avoid Dy,Dx moves.
5039 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
5040 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
5041 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
5043 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
5044 (fix_truncsfsi2_fpu): Rename.
5045 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
5046 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
5047 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
5048 * config/arc/t-multilib: Regenerate.
5050 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
5052 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
5054 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
5055 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
5056 (avr_rtx_costs_1, extra_constraint_Q): Same.
5057 (avr_address_cost): Use SUBREG_P if possible.
5059 2016-11-17 Richard Biener <rguenther@suse.de>
5062 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
5063 non-local goto into CFG.
5065 2016-11-17 Richard Biener <rguenther@suse.de>
5067 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
5068 backward compatibility.
5069 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
5070 * tree-if-conv.c (pass_if_conversion::gate): Do not test
5071 flag_tree_loop_if_convert_stores.
5072 (pass_if_conversion::execute): Likewise.
5074 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5076 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
5077 const_double code before calling aarch64_float_const_zero_rtx_p.
5079 2016-11-17 Richard Biener <rguenther@suse.de>
5081 PR tree-optimization/78306
5082 * ipa-inline-analysis.c (initialize_inline_failed): Do not
5083 inhibit inlining if function calls cilk_spawn.
5084 (can_inline_edge_p): Likewise.
5086 2016-11-17 Richard Biener <rguenther@suse.de>
5089 * fold-const.c (negate_expr_p): Fix multiplication case.
5091 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
5094 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
5096 (TARGET_INIT_LIBFUNCS): Delete definition and...
5097 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
5100 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
5102 * config/netbsd-stdint.h: New.
5103 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
5104 (x86_64-*-netbsd*): Likewise.
5106 2016-11-16 Andrew PInski <apinski@cavium.com>
5108 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
5109 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
5110 flag_aarch64_verbose_cost instead of checking for details dump.
5111 (aarch64_rtx_costs_wrapper): Likewise.
5113 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5115 PR rtl-optimization/78378
5116 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
5117 inner only if pos is 0. Fix up formatting.
5119 2016-11-17 Alan Modra <amodra@gmail.com>
5121 PR rtl-optimization/78325
5122 PR rtl-optimization/70890
5123 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
5126 2016-11-16 Jason Merrill <jason@redhat.com>
5128 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
5130 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5131 Richard Biener <rguenther@suse.de>
5133 PR tree-optimization/77848
5134 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
5135 an outer loop, only save basic block aux information for the inner
5137 (versionable_outer_loop_p): New function.
5138 (tree_if_conversion): Version the outer loop instead of the inner
5139 one if the pattern will be recognized for outer-loop
5142 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5144 * gcc/bb-reorder.c: Remove 'toplev.h' include.
5145 (pass_partition_blocks::gate): No longer check
5146 user_defined_section_attribute, instead check the function decl
5147 for a section attribute.
5148 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
5149 set user_defined_section_attribute.
5150 * gcc/final.c (rest_of_handle_final): Likewise.
5151 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
5152 * gcc/toplev.h: Remove declaration of
5153 user_defined_section_attribute.
5155 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5157 * config/mips/mips.md (casesi_internal_mips16_<mode>):
5158 Explicitly switch between JR and JRC for the table jump. Adjust
5161 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5163 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
5164 `insn_count' to 11 rather than 16.
5166 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5168 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
5169 `ltu' rather than `leu' operation in the RTL pattern
5171 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5173 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
5174 missing <d> instruction prefixes throughout. Correct
5177 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5179 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
5180 rather than R_MIPS_JALR relocation in microMIPS code. Do not
5181 cancel short delay slots in PIC call relaxation.
5183 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
5185 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
5186 general register with general register or ARM constant into SP
5189 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5192 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
5193 that loop->header == body_bb if broken_loop.
5195 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
5197 * tree-ssa-math-opts.c (bswap_replace): Remove test
5198 of SLOW_UNALIGNED_ACCESS.
5200 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
5202 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
5203 is selected. Pass -mgomp to offload compiler in OpenMP case.
5204 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
5205 declaration from nvptx.c.
5206 (nvptx_gen_shuffle): Declare.
5207 (nvptx_output_set_softstack): Declare.
5208 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
5209 (need_softstack_decl): New variable.
5210 (need_unisimt_decl): New variable.
5211 (diagnose_openacc_conflict): New. Use it...
5212 (nvptx_option_override): ...here. Handle TARGET_GOMP.
5213 (nvptx_encode_section_info): Handle "shared" attribute.
5214 (write_as_kernel): Restrict to OpenACC target regions.
5215 (init_softstack_frame): New.
5216 (nvptx_init_unisimt_predicate): New.
5217 (write_omp_entry): New. Use it...
5218 (nvptx_declare_function_name): ...here to emit OpenMP target region
5219 entrypoints. Handle TARGET_SOFT_STACK. Call
5220 nvptx_init_unisimt_predicate.
5221 (nvptx_output_set_softstack): New.
5222 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
5223 (nvptx_gen_shuffle): Export.
5224 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
5226 (nvptx_print_operand): Fix handling of instruction predicates.
5227 (nvptx_get_unisimt_master): New helper function.
5228 (nvptx_get_unisimt_predicate): Ditto.
5229 (nvptx_call_insn_is_syscall_p): Ditto.
5230 (nvptx_unisimt_handle_set): Ditto.
5231 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
5232 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
5233 (nvptx_handle_shared_attribute): New. Use it...
5234 (nvptx_attribute_table): ... here (new entry).
5235 (nvptx_record_offload_symbol): Handle NULL attributes.
5236 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
5237 (nvptx_simt_vf): New.
5238 (TARGET_SIMT_VF): Define.
5239 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
5240 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
5241 -muniform-simt option is active.
5242 (STACK_SIZE_MODE): Define.
5243 (FIXED_REGISTERS): Adjust.
5244 (SOFTSTACK_SLOT_REGNUM): New.
5245 (SOFTSTACK_PREV_REGNUM): New.
5246 (REGISTER_NAMES): Adjust.
5247 (struct machine_function): New fields.
5248 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
5249 (UNSPEC_VOTE_BALLOT): Ditto.
5250 (UNSPEC_LANEID): Ditto.
5251 (UNSPECV_NOUNROLL): Ditto.
5252 (atomic): New attribute.
5253 (predicable): New attribute. Generate predicated forms via
5255 (br_true): Mark as not predicable.
5257 (br_true_uni): Ditto.
5258 (br_false_uni): Ditto.
5260 (trap_if_true): Ditto.
5261 (trap_if_false): Ditto.
5262 (nvptx_fork): Ditto.
5263 (nvptx_forked): Ditto.
5264 (nvptx_joining): Ditto.
5265 (nvptx_join): Ditto.
5266 (nvptx_barsync): Ditto.
5267 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
5268 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
5269 (allocate_stack_<mode>): Remove unused pattern.
5270 (set_softstack_insn): New pattern.
5271 (restore_stack_block): Handle for TARGET_SOFT_STACK.
5272 (nvptx_vote_ballot): New pattern.
5273 (omp_simt_lane): Ditto.
5274 (omp_simt_last_lane): Ditto.
5275 (omp_simt_ordered): Ditto.
5276 (omp_simt_vote_any): Ditto.
5277 (omp_simt_xchg_bfly): Ditto.
5278 (omp_simt_xchg_idx): Ditto.
5279 (nvptx_nounroll): Ditto.
5280 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
5281 (atomic_exchange<mode>): Ditto.
5282 (atomic_fetch_add<mode>): Ditto.
5283 (atomic_fetch_addsf): Ditto.
5284 (atomic_fetch_<logic><mode>): Ditto.
5285 * config/nvptx/nvptx.opt (msoft-stack): New option.
5286 (muniform-simt): Ditto.
5288 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
5289 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
5290 * doc/invoke.texi (msoft-stack): Document.
5291 (muniform-simt): Document
5293 * doc/tm.texi: Regenerate.
5294 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
5295 * target.def: Define it.
5296 * target-insns.def (omp_simt_lane): New.
5297 (omp_simt_last_lane): New.
5298 (omp_simt_ordered): New.
5299 (omp_simt_vote_any): New.
5300 (omp_simt_xchg_bfly): New.
5301 (omp_simt_xchg_idx): New.
5303 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5305 * config/mips/mips-protos.h (mips_set_text_contents_type): New
5307 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
5308 (ASM_OUTPUT_CASE_END): Likewise.
5309 * config/mips/mips.c (mips_set_text_contents_type): New function.
5310 (mips16_emit_constants): Record the pool's initial label number
5311 with the `consttable' insn. Emit a `consttable_end' insn at the end.
5312 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
5313 for `consttable' insns.
5314 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
5315 for `consttable_end' insns.
5316 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
5317 (consttable): Add operand.
5318 (consttable_end): New insn.
5320 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
5322 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
5323 * tree-if-conv.c (tree_if_conversion): Make public.
5324 * * tree-if-conv.h: New file.
5325 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
5326 dynamic alias checks for epilogues.
5327 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
5328 * tree-vect-loop.c: include tree-if-conv.h.
5329 (new_loop_vec_info): Add zeroing orig_loop_info field.
5330 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
5331 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
5332 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
5333 using passed argument.
5334 (vect_transform_loop): Check if created epilogue should be returned
5335 for further vectorization with less vf. If-convert epilogue if
5336 required. Print vectorization success for epilogue.
5337 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
5338 if it is required, pass loop_vinfo produced during vectorization of
5339 loop body to vect_analyze_loop.
5340 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5342 (LOOP_VINFO_ORIG_LOOP_INFO): New.
5343 (LOOP_VINFO_EPILOGUE_P): New.
5344 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
5345 (vect_do_peeling): Change prototype to return epilogue.
5346 (vect_analyze_loop): Add argument of loop_vec_info type.
5347 (vect_transform_loop): Return created loop.
5349 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
5351 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
5352 component as used also if LR_REGNO is a live input to the bb.
5353 * df-scan.c (df_get_entry_block_def_set): Return immediately after
5354 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
5355 (df_get_exit_block_use_set): Ditto.
5356 * df.h (df_scan_flags): New enum.
5357 * shrink-wrap.c (try_shrink_wrapping_separate): Set
5358 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
5359 df_update_entry_block_defs and df_update_exit_block_uses
5360 at the start; clear the flag and call those functions at the end.
5362 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5363 Alan Hayward <alan.hayward@arm.com>
5364 David Sherwood <david.sherwood@arm.com>
5366 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
5367 nb_iterations to the number of latch iterations rather than the
5368 number of loop iterations.
5370 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5371 Alan Hayward <alan.hayward@arm.com>
5372 David Sherwood <david.sherwood@arm.com>
5374 * combine.c (maybe_swap_commutative_operands): New function.
5375 (combine_simplify_rtx): Use it.
5376 (change_zero_ext): Likewise.
5377 (make_compound_operation_int): New function, split out of...
5378 (make_compound_operation): ...here. Use
5379 maybe_swap_commutative_operands for both.
5381 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
5383 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
5384 (neon-vfpv3): New FPU, currently an alias for 'neon'.
5385 * arm/arm-tables.opt: Regenerated.
5386 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
5388 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
5389 and 'neon' are aliases for specific implementations.
5391 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5392 Alan Hayward <alan.hayward@arm.com>
5393 David Sherwood <david.sherwood@arm.com>
5395 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
5396 and use it in the final call to gen_rtx_fmt_ee.
5397 (expand_vec_cond_expr): Update accordingly.
5398 (expand_vec_cmp_expr): Likewise.
5400 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5401 Alan Hayward <alan.hayward@arm.com>
5402 David Sherwood <david.sherwood@arm.com>
5404 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
5406 2016-11-16 Richard Biener <rguenther@suse.de>
5409 * gimplify.c (gimplify_function_tree): Do not instrument
5410 GNU extern inline functions.
5412 2016-11-16 Martin Liska <mliska@suse.cz>
5415 * gimplify.c (gimplify_switch_expr): Always save previous
5416 gimplify_ctxp->live_switch_vars.
5418 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5420 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
5421 zero_extract operations to allow a movb to occur.
5422 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
5423 * testsuite/gcc.target/arc/movb-2.c: Likewise.
5424 * testsuite/gcc.target/arc/movb-5.c: Likewise.
5425 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
5428 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5429 Alan Hayward <alan.hayward@arm.com>
5430 David Sherwood <david.sherwood@arm.com>
5432 * expr.c (emit_group_load_1): Tighten check for whether an
5433 access involves only one operand of a CONCAT. Use extract_bit_field
5434 for constants if the bit range does span the whole operand.
5436 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5437 Alan Hayward <alan.hayward@arm.com>
5438 David Sherwood <david.sherwood@arm.com>
5440 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
5442 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5443 Alan Hayward <alan.hayward@arm.com>
5444 David Sherwood <david.sherwood@arm.com>
5446 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
5447 all three iteration counts with an any_* test. Use a single update
5448 for each count. Fix the calculation of nb_iterations_estimate.
5450 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5452 * config/pdp11/pdp11.c: Include dbxout.h.
5454 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5456 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
5458 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5461 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
5462 proper ranges for an SBFX instruction.
5463 (extzv_t2): Likewise for UBFX.
5465 2016-11-16 Richard Biener <rguenther@suse.de>
5467 PR tree-optimization/78348
5468 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
5469 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
5470 (classify_partition): Set PKIND_MEMCPY if dependence analysis
5471 revealed no dependency, PKIND_MEMMOVE otherwise.
5473 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5476 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
5477 it points to non-NULL tree, use it instead of ubsan_create_data.
5478 (instrument_si_overflow): Handle vector signed integer overflow
5480 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
5481 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
5482 vector IFN_UBSAN_CHECK_*.
5483 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
5484 pass it through to ubsan_build_overflow_builtin.
5485 (expand_neg_overflow, expand_mul_overflow): Likewise.
5486 (expand_vector_ubsan_overflow): New function.
5487 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
5488 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
5489 (expand_arith_overflow): Adjust expand_*_overflow callers.
5491 2016-11-16 Matthias Klose <doko@ubuntu.com>
5493 * doc/install.texi: Remove references to java/libjava.
5495 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
5497 * tree-ssa-coalesce.c (register_default_def): Remove
5498 register_ssa_partition.
5499 (create_outofssa_var_map): Likewise.
5500 * tree-ssa-live.c (register_ssa_partition_check): Remove.
5501 * tree-ssa-live.h (register_ssa_partition): Likewise.
5503 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5505 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
5506 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
5507 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
5508 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
5509 rtx when all sub-rtx are also permanent.
5510 (attr_eq): Simplify.
5511 (attr_copy_rtx): Remove.
5512 (make_canonical, get_attr_value): Use attr_equal_p.
5513 (copy_boolean): Rehash NOT.
5514 (simplify_test_exp_in_temp,
5515 optimize_attrs): Remove call to attr_copy_rtx.
5516 (attr_alt_intersection, attr_alt_union,
5517 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
5518 (make_automaton_attrs): Use attr_eq.
5520 2016-11-15 Matthias Klose <doko@ubuntu.com>
5522 * doc/install.texi: Remove references to java/libjava.
5523 * doc/sourcebuild.texi: Likewise.
5524 * doc/invoke.texi: Likewise.
5525 * doc/standards.texi: Likewise.
5527 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5528 Alan Hayward <alan.hayward@arm.com>
5529 David Sherwood <david.sherwood@arm.com>
5531 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
5533 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5534 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5535 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5536 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5537 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5538 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5539 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5541 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5542 Alan Hayward <alan.hayward@arm.com>
5543 David Sherwood <david.sherwood@arm.com>
5545 * dce.c (check_argument_store): Pass the size instead of
5546 the memory reference.
5547 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
5549 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5550 Alan Hayward <alan.hayward@arm.com>
5551 David Sherwood <david.sherwood@arm.com>
5553 * alias.c (canon_rtx): Use simplify_gen_binary.
5555 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5556 Alan Hayward <alan.hayward@arm.com>
5557 David Sherwood <david.sherwood@arm.com>
5559 * rtl.h (load_extend_op): Declare.
5560 * rtlanal.c (load_extend_op): New function.
5561 (nonzero_bits1): Use it.
5562 (num_sign_bit_copies1): Likewise.
5563 * cse.c (cse_insn): Likewise.
5564 * fold-const.c (fold_single_bit_test): Likewise.
5565 (fold_unary_loc): Likewise.
5566 * fwprop.c (free_load_extend): Likewise.
5567 * postreload.c (reload_cse_simplify_set): Likewise.
5568 (reload_cse_simplify_operands): Likewise.
5569 * combine.c (try_combine): Likewise.
5570 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
5571 subreg_lowpart_p checks.
5573 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5574 Alan Hayward <alan.hayward@arm.com>
5575 David Sherwood <david.sherwood@arm.com>
5577 * combine.c (simplify_shift_const_1): Use the number of bits
5578 in the inner mode to determine the range of the shift.
5579 When handling shifts of vectors, skip any rules that apply
5582 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5583 Alan Hayward <alan.hayward@arm.com>
5584 David Sherwood <david.sherwood@arm.com>
5586 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
5589 2016-11-15 Matthias Klose <doko@ubuntu.com>
5591 * doc/install.texi: Remove references to gcj/libjava.
5592 * doc/invoke.texi: Likewise.
5594 2016-11-15 Jeff Law <law@redhat.com>
5596 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
5597 parameter. Callers changed.
5598 (check-subpath_and_update_thread_path): Extracted from
5599 fsm_find_control_statement_thread_paths.
5600 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
5601 (handle_phi, handle_assignment): Allow any constant node, not
5604 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
5606 * config/arc/arc-arch.h: New file.
5607 * config/arc/arc-arches.def: Likewise.
5608 * config/arc/arc-cpus.def: Likewise.
5609 * config/arc/arc-options.def: Likewise.
5610 * config/arc/t-multilib: Likewise.
5611 * config/arc/genmultilib.awk: Likewise.
5612 * config/arc/genoptions.awk: Likewise.
5613 * config/arc/arc-tables.opt: Likewise.
5614 * config/arc/driver-arc.c: Likewise.
5615 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
5616 * common/config/arc/arc-common.c (arc_handle_option): Trace
5618 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
5619 options; check for supported cpu against arc-cpus.def file.
5620 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
5621 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
5622 * config/arc/arc-c.def: Add emacs local variables.
5623 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
5624 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
5625 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
5626 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
5627 (DEFAULT_arc_fpu_build): Define.
5628 (DEFAULT_arc_mpy_option): Define.
5629 * config/arc/arc-protos.h (arc_init): Delete.
5630 * config/arc/arc.c (arc_cpu_name): New variable.
5631 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
5632 (arc_arc700, arc_arc600, arc_arc601): New variable.
5633 (arc_init): Add static; remove selection of default tune value,
5634 cleanup obsolete error messages.
5635 (arc_override_options): Make use of .def files for selecting the
5636 right cpu and option configurations.
5637 * config/arc/arc.h (stdbool.h): Include.
5638 (TARGET_CPU_DEFAULT): Define.
5639 (CPP_SPEC): Remove mcpu=NPS400 handling.
5640 (arc_cpu_to_as): Declare.
5641 (EXTRA_SPEC_FUNCTIONS): Define.
5642 (OPTION_DEFAULT_SPECS): Likewise.
5643 (ASM_DEFAULT): Remove.
5644 (ASM_SPEC): Use arc_cpu_to_as.
5645 (DRIVER_SELF_SPECS): Remove deprecated options.
5646 (arc_base_cpu): Declare.
5647 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
5648 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
5650 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
5651 * config/arc/arc.md (attr_cpu): Remove.
5652 * config/arc/arc.opt (mno-mpy): Deprecate.
5653 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
5654 (mcpu=ARCHS): Remove.
5655 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
5657 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
5658 (arc_fpu): Use new defines.
5659 (mpy-option): Change to use numeric or string like inputs.
5660 * config/arc/t-arc (driver-arc.o): New target.
5661 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
5662 * config/arc/t-arc-newlib: Delete.
5663 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
5664 * doc/invoke.texi (ARC): Update arc options.
5666 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
5668 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
5669 insn at the beginning of the constant pool.
5670 (mips_insert_insn_pseudos): New function.
5671 (mips_machine_reorg2): Call it.
5672 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
5673 UNSPEC_INSN_PSEUDO enum values.
5674 (insn_pseudo, consttable): New insns.
5676 2016-11-15 Michael Matz <matz@suse.de>
5678 PR missed-optimization/77881
5679 * combine.c (simplify_comparison): Remove useless subregs
5680 also inside the loop, not just after it.
5681 (make_compound_operation): Recognize some subregs as being
5684 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5685 Alan Hayward <alan.hayward@arm.com>
5686 David Sherwood <david.sherwood@arm.com>
5688 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
5691 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5693 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
5694 for using xxinsertw and vinsert{b,h} on ISA 3.0.
5696 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
5697 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
5698 vinsert{b,h} on ISA 3.0.
5700 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5702 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5703 and cmpnop in two steps: first the ones not accessed in original gimple
5704 expression in a endian independent way and then the ones not accessed
5705 in the final result in an endian-specific way.
5706 (bswap_replace): Stop doing big endian adjustment.
5708 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
5710 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
5711 (*ashl<mode>3_doubleword): Ditto.
5713 2016-11-14 Martin Liska <mliska@suse.cz>
5715 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
5717 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
5718 Richard Biener <rguenther@suse.de>
5720 * doc/invoke.texi (fgimple): Document.
5721 * dumpfile.h (TDF_GIMPLE): Add.
5722 * dumpfile.c (dump_options): Add gimple.
5723 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
5725 (dump_gimple_label): Likewise.
5726 (dump_gimple_phi): Likewise.
5727 (dump_gimple_bb_header): Likewise.
5728 (dump_phi_nodes): Likewise.
5729 (pp_cfg_jump): Likewise. Pass in dump flags.
5730 (dump_implicit_edges): Adjust.
5731 * passes.c (pass_init_dump_file): Do not dump function header
5733 * tree-cfg.c (dump_function_to_file): Dump function return type
5734 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
5736 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
5737 (dump_generic_node): Likewise.
5738 * function.h (struct function): Add pass_startwith member.
5739 * passes.c (execute_one_pass): Implement startwith.
5740 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
5741 and assign proper version for parsed ssa names.
5742 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
5743 * internal-fn.c (expand_PHI): New function.
5744 * internal-fn.h (expand_PHI): Declared here.
5745 * internal-fn.def: New defination for PHI.
5746 * tree-cfg.c (lower_phi_internal_fn): New function.
5747 (build_gimple_cfg): Call it.
5748 (verify_gimple_call): Condition for passing label as arg in internal
5750 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
5751 present PHIs with arguments.
5753 2016-11-14 Martin Liska <mliska@suse.cz>
5756 * common.opt: Add prefer-atomic as a new enum value for
5758 * coretypes.h: Likewise.
5759 * doc/invoke.texi: Document the new option value.
5760 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
5761 * tree-profile.c (tree_profiling): Select default value
5762 of -fprofile-update when 'prefer-atomic' is selected.
5764 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5766 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
5767 (cortex_a57_alu_shift): ...here.
5769 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5771 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
5773 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5774 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5775 (<optab>si3_insn_uxtw): Likewise.
5776 (<optab><mode>3_insn): Likewise.
5777 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
5778 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
5779 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
5780 (<optab><mode>): Likewise.
5781 (insv<mode>): Likewise.
5782 (andim_ashift<mode>_bfiz): Likewise.
5783 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
5784 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
5785 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
5786 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
5787 (exynos_m1_alu_p): Likewise.
5788 * config/arm/types.md: Add bfx.
5789 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
5791 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5793 * config/aarch64/aarch64.c (cortexa57_vector_cost):
5794 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
5796 2016-11-14 Richard Biener <rguenther@suse.de>
5798 PR tree-optimization/78312
5799 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
5800 flow-sensitive info.
5802 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
5805 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
5806 * config/avr/avr.opt (-mabsdata): New option.
5807 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
5808 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
5809 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
5810 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
5811 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
5812 spec depending on AVR_ISA_LDS.
5813 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
5815 2016-11-13 Jakub Jelinek <jakub@redhat.com>
5817 * match.pd: Don't try to compare addresses of variables with
5820 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
5822 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
5823 (propagate_vr_accross_jump_function): Handle unary expressions.
5824 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5825 (load_from_param_1): New.
5826 (load_from_unmodified_param): Factor common part into load_from_param_1.
5827 (load_from_param): New.
5828 (compute_complex_assign_jump_func): Handle unary expressions.
5829 (update_jump_functions_after_inlining): Likewise.
5830 (ipa_write_jump_function): Likewise.
5831 (ipa_read_jump_function): Likewise.
5833 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5836 * doc/invoke.texi: Document Wrestrict.
5837 * pretty-print.c (pp_format): Add case for "Z" specifier.
5838 (test_pp_format): Test "Z" specifier.
5840 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
5842 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
5843 original function needs a static chain.
5845 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
5848 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
5851 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
5854 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
5855 return early if !optional_tbtab.
5857 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
5859 PR rtl-optimization/59461
5860 * doc/rtl.texi (paradoxical subregs): Add missing word.
5861 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
5862 in modes with precision larger than that of last_set_mode.
5863 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
5864 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
5865 REGs to paradoxical SUBREGs.
5866 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
5867 larger than a word before invoking LOAD_EXTEND_OP on it.
5869 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5872 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
5873 element order for little endian ordering.
5875 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
5876 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
5879 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
5882 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
5883 when calculating operand 2.
5884 (rotate to rotatex zext splitter): Ditto.
5886 2016-11-11 Jeff Law <law@redhat.com>
5888 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
5890 (stmt_uses_name_in_undefined_way): New function, extracted from
5891 find_implicit_erroneous_behavior and extended for div/mod case.
5892 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
5893 find_explicit_erroneous_behavior and extended for div/mod case.
5894 (find_implicit_erroneous_behavior): Use new helper function.
5895 (find_explicit_erroneous_behavior): Use new helper function.
5897 2016-11-11 Richard Biener <rguenther@suse.de>
5899 PR tree-optimization/71575
5900 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
5903 2016-11-11 Richard Biener <rguenther@suse.de>
5906 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
5907 about uninitialized destination arg of BIT_INSERT_EXPR.
5909 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
5912 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
5913 terminology. Expand to remove ambiguity.
5915 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5917 PR rtl-optimization/78232
5918 * combine.c (try_combine): Add a big comment about why reusing i2dest
5920 (change_zero_ext): Do not call simplify_gen_binary, do the
5921 simplifications manually.
5923 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5925 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
5926 enable HImode and QImode to go in vector registers by default if
5927 the -mvsx-small-integer option is enabled.
5928 (rs6000_secondary_reload_simple_move): Likewise.
5929 (rs6000_preferred_reload_class): Don't force integer constants to
5930 be loaded into vector registers that we can easily make into
5931 memory (or being created in the GPRs and moved over with direct move).
5932 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
5933 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
5934 vector extraction on ISA 3.0 when the scalar integer can be
5935 allocated in vector registers. Generate the VEC_SELECT directy,
5936 and don't use UNSPEC's to avoid having the scalar type in a vector
5937 register. Make the expander target registers, and let the
5938 combiner fold in results storing to memory, if the machine
5940 (vsx_extract_<mode>_di): Likewise.
5941 (vsx_extract_<mode>_p9): Likewise.
5942 (vsx_extract_<mode>_di_p9): Likewise.
5943 (vsx_extract_<mode>_store_p9): Likewise.
5944 (vsx_extract_si): Likewise.
5945 (vsx_extract_<mode>_p8): Likewise.
5946 (p9_lxsi<wd>zx): Delete, no longer used.
5947 (p9_stxsi<wd>x): Likewise.
5948 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
5949 integers in vector registers for ISA 3.0.
5950 (QHI): Update comment.
5951 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
5952 vector extract instructions in sign/zero extend.
5953 (zero_extendhi<mode>): Likewise.
5954 (extendqi<mode>): Likewise.
5955 (extendhi<mode>2): Likewise.
5956 (HImode splitter for load/sign extend in vector register): Likewise.
5957 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
5958 optimizing floating point conversions to/from small data types and
5959 rewrite it to support QImode/HImode being allowed in vector
5960 registers on ISA 3.0.
5961 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5962 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
5963 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5964 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
5965 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5966 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
5967 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5968 VSPLITISW on ISA 2.07.
5969 (movhi_internal): Combine movhi_internal and movqi_internal into
5970 one mov<mode>_internal with an iterator. Add support for QImode
5971 and HImode being allowed in vector registers. Make large number
5972 of attributes and constraints easier to read.
5973 (movqi_internal): Likewise.
5974 (mov<mode>_internal): Likewise.
5975 (movdi_internal64): Fix constraint to allow loading -16..15 with
5976 VSPLITISW on ISA 2.07.
5977 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
5980 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
5982 PR rtl-optimization/78241
5983 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
5984 but emit initial peel copy if niter expr is not reliable.
5986 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5988 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
5989 (maybe_record_trace_start): If the CFI is different on the new and
5990 old paths, print out both to the dump file before ICEing.
5992 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
5994 * target.def (additional_allocno_class_p): New.
5995 * hooks.h (hook_bool_reg_class_t_false): New prototype.
5996 * hooks.c (hook_bool_reg_class_t_false): New.
5997 * ira.c (setup_allocno_and_important_classes): Use the new hook.
5998 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
5999 * doc/tm.texi: Update.
6001 2016-11-10 Jason Merrill <jason@redhat.com>
6003 * gengtype.c (new_structure): Append to structures list.
6004 (find_structure): Likewise.
6006 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
6008 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
6009 this_dir is 2. Check for this_dir non-zero before dir != this_dir
6012 2016-11-10 Jakub Jelinek <jakub@redhat.com>
6014 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
6015 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
6017 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
6018 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
6019 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
6020 teams distribute parallel for simd even to distribute and teams
6021 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
6022 OMP_CLAUSE_DEPEND_SINK case.
6023 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
6024 (omp_no_lastprivate): Removed.
6025 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
6026 (gimplify_omp_for): Likewise.
6027 (computable_teams_clause): Fail for automatic vars from current
6028 function not yet seen in bind expr.
6029 * langhooks.c (lhd_omp_scalar_p): New function.
6030 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
6031 * varpool.c (varpool_node::get_create): Set node->offloading
6032 even for DECL_EXTERNAL decls.
6033 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
6034 (LANG_HOOKS_OMP_SCALAR_P): Define.
6035 (LANG_HOOKS_DECLS): Use it.
6037 2016-11-10 Martin Liska <mliska@suse.cz>
6040 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
6041 only when SWITCH_BODY is a BIND_EXPR.
6043 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
6046 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
6047 on the context only when it has no DIE yet.
6049 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
6051 * arm.h (target_cpus): Delete.
6052 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
6053 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
6054 (all_architectures): Likewise.
6055 (arm_option_override): Adjust use of CPU enums.
6056 (arm_sched_reorder): Likewise.
6057 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
6058 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
6059 * arm/genopt.sh (processor_type): Prefix enumeration entries with
6061 * arm-tables.opt: Regenerated.
6063 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
6065 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
6067 * config/aarch64/aarch64-tune.md: Regenerated.
6068 * config/arm/arm-cores.def (falkor): New core.
6069 * config/arm/arm-tables.opt: Regenerated.
6070 * config/arm/arm-tune.md: Regenerated.
6071 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
6072 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
6073 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
6074 (ARM Options/-mtune): Likewise.
6076 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
6079 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6081 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6082 (propagate_vr_accross_jump_function): Likewise.
6083 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6084 (load_from_param_1): New.
6085 (load_from_unmodified_param): Factor common part into load_from_param_1.
6086 (load_from_param): New.
6087 (compute_complex_assign_jump_func): Handle unary expressions.
6088 (ipa_write_jump_function): Likewise.
6089 (ipa_read_jump_function): Likewise.
6091 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
6093 * simplify-rtx.c (simplify_binary_operation_1): Simplify
6094 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
6095 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
6098 2016-11-09 David Malcolm <dmalcolm@redhat.com>
6100 * print-rtl-function.c: Include varasm.h.
6101 (print_any_param_name): New function.
6102 (print_param): New function.
6103 (print_rtx_function): Call print_param for each argument.
6104 * print-rtl.c (rtx_writer::finish_directive): New function.
6105 * print-rtl.h (rtx_writer::finish_directive): New decl.
6107 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
6110 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
6111 operand 0 as earlyclobber.
6112 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
6114 2016-11-09 Martin Liska <mliska@suse.cz>
6116 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
6118 2016-11-09 Jakub Jelinek <jakub@redhat.com>
6121 * builtins.c (expand_builtin_memcmp): Formatting fix.
6123 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
6124 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
6125 or of them, renumber other enumerators.
6126 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
6127 * doc/invoke.texi: Document -fsanitize=shift-base and
6128 -fsanitize-shift-exponent, document -fsanitize=shift as
6129 having those 2 suboptions.
6131 2016-11-09 Richard Biener <rguenther@suse.de>
6133 * fold-const.c (tree_swap_operands_p): Remove unused arg.
6134 * fold-const.c (tree_swap_operands_p): Likewise.
6135 (fold_binary_loc): Adjust.
6136 (fold_ternary_loc): Likewise.
6137 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
6138 * gimple-fold.c (fold_stmt_1): Likewise.
6139 * gimple-match-head.c (gimple_resimplify2): Likewise.
6140 (gimple_resimplify3): Likewise.
6141 (gimple_simplify): Likewise.
6142 * tree-ssa-dom.c (record_equality): Likewise.
6143 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
6144 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
6145 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
6147 2016-11-09 Richard Biener <rguenther@suse.de>
6149 * tree-ssa-dom.c (canonicalize_comparison): Remove.
6150 (optimize_stmt): Remove redundant pre-propagation canonicalization
6151 of comparison operand order.
6153 2016-11-09 Martin Liska <mliska@suse.cz>
6155 * fold-const-call.c (fold_const_call): Fix the folding.
6157 2016-11-09 Richard Biener <rguenther@suse.de>
6159 * common.opt (flag_evaluation_order): Remove.
6160 * expr.c (expand_operands): Remove code guarded by
6161 flag_evaluation_order.
6162 * fold-const.c (reorder_operands_p): Remove, it always returns
6164 (negate_expr_p): Remove calls to reorder_operands_p.
6165 (fold_negate_expr): Likewise.
6166 (tree_swap_operands_p): Likewise.
6167 (fold_binary_loc): Likewise.
6169 2016-11-09 Andreas Schwab <schwab@suse.de>
6172 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
6173 insns operating on a register.
6175 2016-11-09 Richard Biener <rguenther@suse.de>
6177 PR tree-optimization/78007
6178 * tree-vect-stmts.c (vectorizable_bswap): New function.
6179 (vectorizable_call): Call vectorizable_bswap for
6180 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
6182 2016-11-09 Richard Biener <rguenther@suse.de>
6184 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6185 Look at the DR_BASE_ADDRESS object for forcing alignment.
6187 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6189 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6190 (propagate_vr_accross_jump_function): Likewise.
6191 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6192 (load_from_param_1): New.
6193 (load_from_unmodified_param): Factor common part into load_from_param_1.
6194 (load_from_param): New.
6195 (compute_complex_assign_jump_func): Handle unary expressions.
6196 (ipa_write_jump_function): Likewise.
6197 (ipa_read_jump_function): Likewise.
6199 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6202 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
6203 Also fold constant passed as argument while computing value range.
6204 (propagate_constants_accross_call): Pass param type.
6205 * ipa-prop.c: export ipa_get_callee_param_type.
6206 * ipa-prop.h: export ipa_get_callee_param_type.
6208 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6210 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
6211 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
6213 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6215 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
6216 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
6217 ASAN_STACK_MAGIC_MIDDLE.
6218 (asan_global_struct): Increase the size of fields.
6219 (asan_add_global): Add new field constructor.
6220 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
6221 __asan_version_mismatch_check_v8.
6223 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
6225 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
6228 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
6231 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
6232 Handle ASHIFT and LSHIFTRT.
6233 (dimode_scalar_chain::compute_convert_gain): Ditto.
6234 (dimode_scalar_chain::convert_insn): Ditto.
6236 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6238 * gimple-ssa-store-merging.c: Include selftest.h
6239 (verify_array_eq): New function.
6240 (verify_shift_bytes_in_array): Likewise.
6241 (verify_shift_bytes_in_array_right): Likewise.
6242 (verify_clear_bit_region): Likewise.
6243 (verify_clear_bit_region_be): Likewise.
6244 (store_merging_c_tests): Likewise.
6245 * selftest.h (store_merging_c_tests): Declare prototype.
6246 * selftest-run-tests.c (selftest::run_tests): Run
6247 store_merging_c_tests.
6249 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6251 * config/arm/arm.opt (mold-rtx-costs): Delete.
6252 (mnew-generic-costs): Delete.
6253 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
6254 * config/arm/arm.c (arm_rtx_costs_1): Delete.
6255 (arm_size_rtx_costs): Likewise.
6256 (arm_slowmul_rtx_costs): Likewise.
6257 (arm_fastmul_rtx_costs): Likewise.
6258 (arm_xscale_rtx_costs): Likewise.
6259 (arm_9e_rtx_costs): Likewise.
6260 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
6261 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
6262 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
6263 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
6264 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
6265 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
6266 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
6267 arm_cortex_m7_tune):
6268 Delete rtx_costs field.
6269 (arm_new_rtx_costs): Rename to...
6270 (arm_rtx_costs_internal): ... This.
6271 (arm_rtx_costs): Remove old way of doing rtx costs.
6273 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6275 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
6276 (arm_fastmul_tune): Likewise.
6277 (arm_strongarm_tune): Likewise.
6278 (arm_xscale_tune): Likewise.
6279 (arm_9e_tune): Likewise.
6280 (arm_marvell_pj4_tune): Likewise.
6281 (arm_v6t2_tune): Likewise.
6282 (arm_v6m_tune): Likewise.
6283 (arm_fa726te_tune): Likewise.
6285 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6287 PR tree-optimization/78234
6288 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
6291 2016-11-08 Martin Liska <mliska@suse.cz>
6294 * dbgcnt.def: Add new debug counter asan_use_after_scope.
6295 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
6296 with a value expr. Do not add artificial variables to
6297 live_switch_vars. Use the debug counter.
6298 (gimplify_target_expr): Use the debug counter.
6299 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
6300 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
6301 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
6303 2016-11-08 Richard Biener <rguenther@suse.de>
6305 * tree-vect-stmts.c (get_group_load_store_type): If the
6306 access is aligned do not trigger peeling for gaps.
6307 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
6308 force alignment of vars with DECL_USER_ALIGN.
6310 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6312 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
6314 2016-11-08 Richard Biener <rguenther@suse.de>
6316 PR tree-optimization/78205
6317 * tree-vect-stmts.c (vectorizable_load): Move check whether
6318 we may run into gaps when BB vectorizing SLP permutations ...
6319 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
6320 here where we can do a more precise check.
6322 2016-11-08 Richard Biener <rguenther@suse.de>
6324 PR tree-optimization/78224
6325 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6326 Split the fallthru edge in case its successor may have PHIs.
6327 Do not free dominance info.
6329 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6332 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6333 EH info even for bzhi and pdep/pext.
6335 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
6337 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
6338 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
6340 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
6342 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
6344 * config/rs6000/vector.md (div<mode>3): Ditto.
6346 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
6348 * configure.ac (.hidden): Change to conftest_s string. Provide string
6350 (gcc_cv_ld_hidden): Yes for AIX.
6351 * configure: Regenerate.
6353 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
6355 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
6356 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
6357 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
6358 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6359 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
6360 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
6362 (rs6000_xcoff_visibility): New.
6363 (rs6000_xcoff_declare_function_name): Add visibility support.
6364 (rs6000_xcoff_asm_globalize_decl_name): New.
6365 (rs6000_xcoff_asm_output_aligned_decl_common): New.
6366 (rs6000_asm_weaken_decl): New.
6367 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
6368 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
6371 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
6374 * incpath.c (remove_dup): Also silently ignore EPERM.
6376 2016-11-07 Martin Jambor <mjambor@suse.cz>
6378 * tree.c (verify_type_variant): Use pointer comparison to check that
6379 TYPE_SIZE_UNIT match.
6381 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6384 * dse.c (dse_step5): Call scan_reads even if just
6385 insn_info->frame_read. Improve and fix dump file messages.
6388 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
6389 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
6391 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6394 * match.pd: Add following two patterns:
6395 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
6396 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
6398 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
6400 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
6401 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
6402 * rtl.h (duplicate_reg_notes): Declare.
6403 * rtlanal.c (duplicate_reg_note): New function.
6405 PR rtl-optimization/77309
6406 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
6407 don't assume an equality comparison for plain COMPARE.
6408 (simplify_comparison): Pass a more accurate code to
6409 make_compound_operation.
6411 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
6413 * target.def (compute_pressure_classes): New target hook.
6414 * doc/tm.texi.in: Document it.
6415 * doc/tm.texi: Regenerate.
6416 * ira.c (setup_pressure_classes): Call target hook if defined.
6418 2016-11-07 David Malcolm <dmalcolm@redhat.com>
6420 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
6422 (rtx_writer::print_rtx): In compact mode, omit trailing operands
6423 that have the default values.
6424 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
6426 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
6427 label string from expected dump.
6428 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
6431 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6434 * alias.c (nonoverlapping_memrefs_p): If one decl is
6435 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
6437 2016-11-07 Richard Biener <rguenther@suse.de>
6440 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6443 2016-11-07 Richard Biener <rguenther@suse.de>
6445 PR tree-optimization/78218
6446 * gimple-ssa-store-merging.c
6447 (pass_store_merging::terminate_all_aliasing_chains):
6448 Drop unused argument, fix alias check to also consider uses.
6449 (pass_store_merging::execute): Adjust.
6451 2016-11-07 Richard Biener <rguenther@suse.de>
6453 PR tree-optimization/78228
6454 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
6457 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6460 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
6461 aarch64_simd_shift_imm_<mode> predicate for operand 1.
6462 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
6463 to restrict them to an appropriate range and add FAIL check if the
6464 region they specify is out of range. Delete useless constraint
6466 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
6467 2 and 3 to restrict their range and add pattern predicate.
6469 2016-11-07 Martin Liska <mliska@suse.cz>
6471 * asan.c (enum asan_check_flags): Move the enum to header file.
6472 (asan_init_shadow_ptr_types): Make type creation more generic.
6473 (shadow_mem_size): New function.
6474 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
6475 Rewritten stack unpoisoning code.
6476 (build_shadow_mem_access): Add new argument return_address.
6477 (instrument_derefs): Instrument local variables if use after scope
6478 sanitization is enabled.
6479 (asan_store_shadow_bytes): New function.
6480 (asan_expand_mark_ifn): Likewise.
6481 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
6482 * asan.h (enum asan_mark_flags): Moved here from asan.c
6483 (asan_protect_stack_decl): Protect all declaration that need
6485 (asan_sanitize_use_after_scope): New function.
6486 (asan_no_sanitize_address_p): Likewise.
6487 * cfgexpand.c (partition_stack_vars): Consider
6488 asan_sanitize_use_after_scope in condition.
6489 (expand_stack_vars): Likewise.
6490 * common.opt (-fsanitize-address-use-after-scope): New option.
6491 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
6492 Explain the parameter.
6493 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
6494 * gimplify.c (build_asan_poison_call_expr): New function.
6495 (asan_poison_variable): Likewise.
6496 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
6497 variables that have address taken.
6498 (gimplify_decl_expr): Likewise.
6499 (gimplify_target_expr): Likewise for C++ temporaries.
6500 (sort_by_decl_uid): New function.
6501 (gimplify_expr): Unpoison all variables for a label we can jump
6502 from outside of a scope.
6503 (gimplify_switch_expr): Unpoison variables defined in the switch
6505 (gimplify_function_tree): Clear asan_poisoned_variables.
6506 (asan_poison_variables): New function.
6507 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
6508 * internal-fn.c (expand_ASAN_MARK): New function.
6509 * internal-fn.def (ASAN_MARK): Declare.
6510 * opts.c (finish_options): Handle -fstack-reuse if
6511 -fsanitize-address-use-after-scope is enabled.
6512 (common_handle_option): Enable address sanitization if
6513 -fsanitize-address-use-after-scope is enabled.
6514 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
6516 * params.h: Likewise.
6517 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
6518 * sanitizer.def: Define __asan_poison_stack_memory and
6519 __asan_unpoison_stack_memory functions.
6520 * asan.c (asan_mark_poison_p): New function.
6521 (transform_statements): Handle asan_mark_poison_p calls.
6522 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
6524 2016-11-07 Tamar Christina <tamar.christina@arm.com>
6527 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
6529 2016-11-07 Martin Liska <mliska@suse.cz>
6531 * tree-profile.c (gimple_gen_time_profiler): Set proper type
6532 to time_profiler_counter_ptr.
6534 2016-11-07 Richard Biener <rguenther@suse.de>
6536 PR tree-optimization/37150
6537 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
6539 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
6540 (vect_analyze_slp_cost_1): Account for the real number of
6541 permutations emitted and for dead loads.
6542 (vect_transform_slp_perm_load): Add n_perms parameter counting
6543 the number of emitted permutations.
6544 * tree-vect-stmts.c (vectorizable_load): Adjust.
6546 2016-11-07 Richard Biener <rguenther@suse.de>
6548 PR tree-optimization/78189
6549 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
6550 alignment computation.
6552 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6554 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
6556 2016-11-05 Martin Sebor <msebor@redhat.com>
6558 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
6561 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
6565 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
6567 2016-11-04 Jakub Jelinek <jakub@redhat.com>
6570 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
6571 doesn't have rtl set.
6573 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6575 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
6576 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
6577 rs6000_gimple_fold_builtin.
6578 (rs6000_gimple_fold_builtin): New function. Add handling for
6579 early expansion of vector addition builtins.
6581 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6583 * expr.h (copy_blkmode_from_reg): Delete.
6584 * expr.c (copy_blkmode_from_reg): Make static.
6586 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6588 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
6589 * combine.c (LOAD_EXTEND_OP): Delete.
6590 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
6591 * cse.c (LOAD_EXTEND_OP): Delete.
6592 * fold-const.c (LOAD_EXTEND_OP): Likewise.
6593 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
6594 * postreload.c (LOAD_EXTEND_OP): Delete.
6595 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
6596 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
6597 (find_reloads): Likewise.
6598 * reload1.c (eliminate_regs_1): Likewise.
6599 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
6600 (num_sign_bit_copies1): Likewise.
6602 2016-11-04 David Malcolm <dmalcolm@redhat.com>
6604 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
6605 (selftest::ix86_test_dumping_hard_regs): New function.
6606 (selftest::ix86_run_selftests): New function.
6607 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
6608 selftest::ix86_run_selftests.
6609 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
6610 * doc/tm.texi: Regenerate
6611 * selftest-rtl.h: New file.
6612 * rtl-tests.c: Include "selftest-rtl.h".
6613 (selftest::assert_rtl_dump_eq): Make non-static.
6614 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
6615 (selftest::test_dumping_regs): Update comment.
6616 * selftest-run-tests.c: Include "target.h".
6617 (selftest::run_tests): If non-NULL, call
6618 targetm.run_target_selftests.
6619 * target.def (run_target_selftests): New hook.
6621 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6623 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
6624 representative core for this architecture.
6625 * config/arm/arm-cores.def (cortex-m33): Define new processor.
6626 * config/arm/arm-tables.opt: Regenerate.
6627 * config/arm/arm-tune.md: Likewise.
6628 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
6629 valid -mcpu options.
6630 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
6632 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6634 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
6635 representative core for this architecture.
6636 * config/arm/arm-cores.def (cortex-m23): Define new processor.
6637 * config/arm/arm-tables.opt: Regenerate.
6638 * config/arm/arm-tune.md: Likewise.
6639 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
6640 this tuning parameters apply to in the comment.
6641 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
6642 valid -mcpu options.
6643 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
6645 2016-11-04 Bin Cheng <bin.cheng@arm.com>
6647 * fold-const.c (fold_cond_expr_with_comparison): Remove call
6648 to pedantic_non_lvalue_loc. Remove useless code for lvalue
6649 where cond_expr can't be a lvalue.
6651 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
6653 * config/arc/arc.c (arc_process_double_reg_moves): Use
6655 * config/arc/arc.md (movsi_insn): Disable unsupported move
6656 instructions for ARCv2 cores.
6657 (movdi): Use prepare_move_operands.
6658 (movsf, movdf): Use move_dest_operand predicate.
6659 * config/arc/constraints.md (Chs): Enable when barrel shifter is
6661 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
6662 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
6664 (dexcl_3op_peep2_insn_nores): Likewise.
6665 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
6666 (LINK_COMMAND_SPEC): Remove.
6668 2016-11-04 Richard Biener <rguenther@suse.de>
6671 * loop-invariant.c (find_exits): Record entering inner
6672 loops as possibly exiting to handle infinite sub-loops.
6673 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
6674 (fill_always_executed_in_1): Honor infinite child loops.
6676 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6679 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
6680 has already been adjusted for endianness, so don't adjust it any
6684 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
6685 ICmode unless we have standard PowerPC floating point.
6686 * config/rs6000/rs6000.md (FP iterator): Likewise.
6687 (FMOVE128 iterator): Likewise.
6689 2016-11-03 Jakub Jelinek <jakub@redhat.com>
6690 Alexandre Oliva <aoliva@redhat.com>
6691 Jason Merrill <jason@redhat.com>
6695 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
6697 * langhooks.c (lhd_type_dwarf_attribute): New function.
6698 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
6699 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
6700 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
6701 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
6702 (check_qualified_type, check_aligned_type): Call it.
6703 * dwarf2out.c (modified_type_die): Don't use type_main_variant
6704 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6705 check_base_type and check_lang_type.
6706 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
6707 return early. For pointer-to-data-member add DW_AT_use_location
6709 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
6711 (gen_type_die_with_usage): Don't use type_main_variant
6712 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6713 check_base_type and check_lang_type. Formatting fixes. Call
6714 get_debug_type langhook.
6716 2016-11-03 Jason Merrill <jason@redhat.com>
6718 * tree.c (check_lang_type): New.
6719 (check_qualified_type): Use it.
6720 (check_aligned_type): Use it.
6721 * tree.h: Declare it.
6723 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
6725 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
6726 (arm*-freebsd*): Likewise.
6727 (arm*-*-netbsdelf*): Likewise.
6728 (arm*-*-linux*): Likewise.
6729 (arm*-*-uclinux*eabi*): Likewise.
6730 (arm*-*-phoenix*): Likewise.
6731 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
6732 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
6733 specified. Default to arm6 if target_cpu_cname is not set.
6734 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
6735 default cpu has been correctly configured.
6736 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
6737 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
6738 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
6739 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
6740 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6741 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
6742 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6744 2016-11-03 Jiong Wang <jiong.wang@arm.com>
6746 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
6747 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
6748 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
6749 (output_cfa_loc): Support DW_CFA_val_expression.
6750 (output_cfa_loc_raw): Likewise.
6751 (output_cfi): Likewise.
6752 (output_cfi_directive): Likewise.
6753 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
6754 (dw_cfi_oprnd2_desc): Likewise.
6755 (mem_loc_descriptor): Recognize new pattern generated for value
6758 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
6760 PR rtl-optimization/78186
6761 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
6762 well, when converting to IOR.
6764 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
6766 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
6767 (vec_interleave_highv8qi): Likewise.
6769 2016-11-03 Martin Liska <mliska@suse.cz>
6771 * profile.c (instrument_values): Fix coding style.
6772 (branch_prob): Use renamed function.
6773 * tree-profile.c (init_ic_make_global_vars): Likewise.
6774 (gimple_init_edge_profiler): Rename to
6775 gimple_init_gcov_profiler.
6776 tree_time_profiler_counter variable declaration.
6777 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
6779 * value-prof.h: Remove an argument.
6781 2016-11-03 Richard Biener <rguenther@suse.de>
6783 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
6784 symtab_node::get_create.
6786 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6788 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
6789 Move comments into more natural position.
6791 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
6793 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
6794 (PTRDIFF_TYPE): Define as int.
6796 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6798 * ccmp.c (expand_ccmp_expr_1): Adjust.
6799 (expand_ccmp_expr): Likewise.
6800 (expand_ccmp_next): Likewise.
6801 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
6802 (aarch64_gen_ccmp_first): Likewise.
6803 * doc/tm.texi: Regenerate.
6804 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
6805 (gen_ccmp_next): Likewise.
6807 2016-11-03 Bin Cheng <bin.cheng@arm.com>
6809 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
6810 (vect_is_simple_reduction): Swap cond_reduction by inversion.
6812 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
6814 * config/i386/i386.c (ix86_init_libfuncs): New. Call
6815 darwin_rename_builtins here.
6816 (ix86_expand_divmod_libfunc): New.
6817 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
6818 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
6820 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
6821 Nathan Sidwell <nathan@acm.org>
6823 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
6825 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
6827 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
6829 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
6830 to format MODE_INT and MODE_PARTIAL_INT literals.
6832 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
6835 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
6836 NULL if TARGET_SPE_ABI.
6838 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6840 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
6841 clear padding bits even when they're less than a byte.
6843 2016-11-02 Richard Biener <rguenther@suse.de>
6845 * gimple-ssa-store-merging.c: Include gimplify-me.h.
6846 (imm_store_chain_info::output_merged_stores): Force base_addr
6847 to be proper GIMPLE for a MEM_REF address.
6848 (pass_store_merging::execute): Restrict negative bitpos
6849 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
6850 check. Take into account non-NULL_TREE offset if the base
6851 is already addressable.
6853 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
6855 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
6857 (aarch64_be_crypto_sha1hv4si): New pattern.
6859 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
6861 * config/aarch64/aarch64.md (add<mode>3): Remove
6862 redundant code. Don't split frame based additions.
6864 2016-11-02 Richard Biener <rguenther@suse.de>
6866 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
6867 redundant val and dest members.
6868 (store_immediate_info::store_immediate_info): Adjust.
6869 (merged_store_group::merged_store_group): Adjust.
6870 (merged_store_group::apply_stores): Likewise.
6871 (struct imm_store_chain_info): Add base_addr field.
6872 (imm_store_chain_info::imm_store_chain_info): New constructor.
6873 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
6874 (imm_store_chain_info::output_merged_store): Likewise. Use
6875 addr_base which is already the address.
6876 (imm_store_chain_info::output_merged_stores): Likewise.
6877 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
6878 imm_store_chain_info instead of base. Fix alias check.
6879 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
6880 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
6881 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
6882 use the address of the base and adjust for other changes.
6884 2016-11-02 Martin Liska <mliska@suse.cz>
6886 * fold-const-call.c (host_size_t_cst_p): Test whether
6887 t is convertible to size_t.
6889 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6891 PR tree-optimization/78170
6892 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
6893 introduced by native_encode_expr on little-endian as well.
6895 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6897 PR tree-optimization/78162
6898 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
6901 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6903 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
6905 (aarch64_next_callee_save): Likewise.
6906 (aarch64_pushwb_single_reg): Likewise.
6907 (aarch64_gen_storewb_pair): Likewise.
6908 (aarch64_push_regs): Likewise.
6909 (aarch64_gen_loadwb_pair): Likewise.
6910 (aarch64_pop_regs): Likewise.
6911 (aarch64_gen_store_pair): Likewise.
6912 (aarch64_gen_load_pair): Likewise.
6913 (aarch64_save_callee_saves): Likewise.
6914 (aarch64_restore_callee_saves): Likewise.
6916 2016-11-02 Richard Biener <rguenther@suse.de>
6918 PR tree-optimization/78035
6919 PR tree-optimization/77964
6920 * gimple-pretty-print.c (pp_points_to_solution): Print
6921 vars_contains_interposable.
6922 * tree-ssa-alias.c: Include varasm.h.
6923 (ptrs_compare_unequal): Check vars_contains_interposable and
6924 decl_binds_to_current_def_p.
6925 (dump_points_to_solution): Dump vars_contains_interposable.
6926 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
6928 * tree-ssa-structalias.c: Include varasm.h.
6929 (set_uids_in_ptset): Record whether vars contains a
6930 not decl_binds_to_current_def_p variable in vars_contains_interposable.
6931 (ipa_escaped_pt): Update initializer.
6933 2016-11-02 Richard Biener <rguenther@suse.de>
6935 PR tree-optimization/78047
6936 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
6937 fake field at offset zero conservatively regarding to may_have_pointers.
6939 2016-11-02 Richard Biener <rguenther@suse.de>
6941 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
6942 infer_value_range on stmt ops and update value-ranges.
6943 Dump visited stmts and blocks.
6944 (evrp_dom_walker::push_value_range): Dump changes.
6945 (evrp_dom_walker::pop_value_range): Likewise.
6946 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
6948 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6950 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
6952 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
6954 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6956 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
6957 and adjust for that.
6958 * cfgrtl.h (delete_insn_chain): Adjust prototype.
6960 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6962 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
6964 (transcode_memory_rtx): Likewise.
6965 (move_to_acc): Likewise.
6966 (move_from_acc): Likewise.
6967 (move_acc_to_reg): Likewise.
6968 (move_to_x): Likewise.
6969 (move_to_hl): Likewise.
6970 (move_to_de): Likewise.
6971 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
6972 (rs6000_emit_savres_rtx): Likewise.
6973 (rs6000_emit_prologue): Likewise.
6974 * reorg.c (update_reg_unused_notes): Likewise.
6975 * rtl.h (remove_note): Adjust prototype.
6976 * rtlanal.c (remove_note): Make argument type rtx_insn *.
6978 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6980 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
6981 variables so some can be rtx_insn *.
6982 (alpha_emit_xfloating_libcall): Likewise.
6983 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
6984 (mips_legitimize_tls_address): Likewise.
6985 * optabs.c (expand_binop): Likewise.
6986 * reload1.c (gen_reload): Likewise.
6988 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6990 * reorg.c (relax_delay_slots): Split up the trial variable.
6992 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6994 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
6995 of variables rtx_insn *.
6996 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
6997 (legitimize_tls_address): Likewise.
6998 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6999 (bfin_gen_bundles): Likewise.
7000 * config/c6x/c6x.c (reorg_split_calls): Likewise.
7001 (c6x_reorg): Likewise.
7002 * config/frv/frv.c (frv_reorder_packet): Likewise.
7003 * config/i386/i386.c (ix86_split_idivmod): Likewise.
7004 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
7005 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
7006 * config/mn10300/mn10300.c: Likewise.
7007 * config/rl78/rl78.c: Likewise.
7008 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
7009 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
7010 (sh_expand_cmpnstr): Likewise.
7011 (sh_expand_strlen): Likewise.
7012 (sh_expand_setmem): Likewise.
7013 * config/sh/sh.md: Likewise.
7014 * emit-rtl.c (emit_pattern_before): Likewise.
7015 * except.c: Likewise.
7016 * final.c: Likewise.
7019 2016-11-01 Jason Merrill <jason@redhat.com>
7021 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
7022 a COND_EXPR with constant condition.
7024 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7026 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
7027 and its initialization.
7029 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7031 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
7034 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7036 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
7037 argument, don't call add_linkage_name if it is true.
7038 (gen_variable_die): For C++ inline static data members, consider the
7039 initial call when old_die is NULL to be declaration and call
7040 add_name_and_src_coords_attributes in that case with true as
7041 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
7042 (gen_member_die): For C++ inline static data members, emit a
7043 definition DIE right away in DW_TAG_compile_unit context.
7045 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
7048 * config/pa/pa.md: Add new shift/add patterns to handle
7049 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
7051 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
7053 * config/xtensa/xtensa-protos.h
7054 (xtensa_use_return_instruction_p): New prototype.
7055 * config/xtensa/xtensa.c (xtensa_current_frame_size,
7056 xtensa_callee_save_size): Remove.
7057 (struct machine_function): Add new fields: current_frame_size,
7058 callee_save_size, frame_laid_out and epilogue_done.
7059 (compute_frame_size, xtensa_expand_prologue,
7060 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
7061 cfun->machine->callee_save_size and xtensa_current_frame_size
7062 with cfun->machine->current_frame_size.
7063 (compute_frame_size): Update cfun->machine->frame_laid_out and
7064 don't update frame layout after reload completion.
7065 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
7066 instead of zeroing xtensa_current_frame_size.
7067 (xtensa_use_return_instruction_p): New function.
7068 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
7070 (INITIAL_ELIMINATION_OFFSET): Use return value of
7071 compute_frame_size instead of xtensa_current_frame_size value.
7072 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
7073 function xtensa_use_return_instruction_p instead of inline code.
7075 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7077 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
7078 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
7079 * dwarf2out.c (rnglist_idx): New variable.
7080 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
7081 (DEBUG_RNGLISTS_SECTION): Define.
7082 (ranges_base_label): New variable.
7083 (size_of_die) <case dw_val_class_range_list>: If using
7084 DW_FORM_rnglistx, count size of uleb128 of range list index.
7085 (value_format) <case dw_val_class_range_list>: For
7086 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
7087 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
7088 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
7089 (add_ranges_num): Remove useless prototype. Don't multiply
7090 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
7091 for new fields added to dw_ranges struct.
7092 (add_ranges): Add maybe_new_sec argument and pass it
7093 through to add_ranges_num.
7094 (note_rnglist_head): New function.
7095 (add_ranges_by_labels): Pass true as maybe_new_sec to
7096 add_ranges_num, call note_rnglist_head on the head of the list.
7097 (output_ranges): Add function comment. Switch to
7098 .debug_ranges section here and emit .Ldebug_ranges0 label.
7099 (index_rnglists, output_rnglists): New functions.
7100 (gen_subprogram_die): Formatting fixes.
7101 (add_high_low_attributes): Don't divide offsets
7102 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
7103 first list element or when pointing into the middle of
7104 a list. Pass true as second argument to add_ranges on the
7105 first block fragment after cold/hot section switch.
7106 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
7107 section instead of .debug_ranges. Initialize
7108 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
7109 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
7110 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
7111 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
7112 Call output_rnglists for -gdwarf-5.
7113 (dwarf2out_c_finalize): Clear rnglist_idx.
7115 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
7117 * combine.c (simplify_compare_const): Add gcc_fallthrough.
7119 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
7120 Tamar Christina <tamar.christina@arm.com>
7122 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
7123 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
7124 (vmaxnmq_f32): Likewise.
7125 (vminnm_f32): Likewise.
7126 (vminnmq_f32): Likewise.
7127 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
7129 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
7132 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
7134 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
7135 binary floating point types supported by the hardware except for
7137 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
7138 vector instruction for optimizing extracting a SImode from a
7139 V4SImode vector and converting it to floating point.
7140 (vsx_xvcvuxwdp_df): Likewise.
7141 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
7142 registers to be any VSX register. Move stores to the end of the
7144 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
7145 to optimize extracting a SImode from a V4SImode vector and
7146 converting it to a binary floating point type supported by the
7147 hardware. Use the vector converts instead of extracting the
7148 element, sign extending it, and then converting it to double.
7149 Other floating point types than double first convert to double,
7150 then the double is converted to that type.
7151 (vsx_extract_si_<uns>float_<mode>): Likewise.
7153 2016-10-31 Andrew Pinski <apinski@cavium.com>
7155 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
7156 Rewrite handling of part num to handle the case where
7157 multiple implementers share the same part num.
7159 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7160 Jakub Jelinek <jakub@redhat.com>
7162 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
7163 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
7165 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7167 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
7168 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
7169 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
7170 (is_cu_die, is_unit_die): Likewise.
7171 (should_move_die_to_comdat, break_out_comdat_types): Adjust
7172 comments for DWARF5 DW_UT_type units.
7173 (output_compilation_unit_header): Add UT argument, output
7174 start of DWARF5 .debug_info section header.
7175 (output_comp_unit): Add dwo_id argument. Adjust
7176 output_compilation_unit_header caller, for DW_UT_split_compile
7177 emit dwo_id field, otherwise padding1. Emit padding2 field.
7178 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
7179 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
7180 (output_skeleton_debug_sections): Add dwo_id argument, for
7181 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
7182 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
7183 DW_UT_type or DW_UT_split_type units rather than .debug_types.
7184 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
7185 DW_TAG_compile_unit for skeleton unit die. Don't add
7186 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
7187 address to output_comp_unit and output_skeleton_debug_sections.
7189 * dwarf2out.c (debug_line_str_section): New variable.
7190 (debug_line_str_hash): Likewise.
7191 (DEBUG_LINE_STR_SECTION): Define.
7192 (set_indirect_string): Handle DW_FORM_line_strp like
7194 (find_string_form): Fix up formatting.
7195 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
7197 (output_die): Handle DW_FORM_line_strp.
7198 (DWARF5_USE_DEBUG_LINE_STR): Define.
7199 (output_line_string): New function.
7200 (output_file_names): Add -gdwarf-5 support.
7201 (output_line_info): Likewise.
7202 (init_sections_and_labels): Initialize debug_line_str_section.
7203 (output_indirect_string): Change 2nd argument from void *
7204 to enum dwarf_form form, compare with form rather than
7206 (output_indirect_strings): Pass DW_FORM_strp to
7207 output_indirect_string traversion.
7208 (dwarf2out_finish): Output .debug_line_str strings.
7209 (dwarf2out_c_finalize): Clear debug_line_str_section and
7210 debug_line_str_hash.
7212 2016-10-31 Tom Tromey <tom@tromey.com>
7215 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
7216 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
7217 DW_OP_GNU_push_tls_address case.
7218 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
7220 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7222 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
7223 for frame_offset_rel bit.
7224 (struct array_descr_info): Add rank field.
7225 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
7226 and placeholder_seen fields.
7227 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
7228 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
7229 DW_OP_pick 1 into DW_OP_over.
7230 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
7231 gen_variant_part): Clear placeholder_{arg,seen}.
7232 (loc_list_from_tree_1): Drop const from context argument.
7233 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
7234 (loc_list_for_address_of_addr_expr_of_indirect_ref,
7235 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
7237 (add_scalar_info): Drop const from context argument. Handle
7238 context->placeholder_arg.
7239 (add_bound_info): Drop const from context argument.
7240 (gen_descr_array_type_die): Drop const from ctx variable.
7241 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
7242 attribute and use a single DW_TAG_generic_subrange instead of
7243 7 DW_TAG_subrange_type for assumed rank arrays.
7245 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
7246 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
7247 from bool to 1-bit uchar bitfield. Add num_assigned and
7248 offset_emitted bitfields.
7249 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
7250 for dw_val_class_lineptr and dw_val_class_macptr. Handle
7251 dw_val_class_loclistsptr.
7252 (new_addr_loc_descr): Fix up formatting.
7253 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
7254 (add_AT_low_high_pc): Fix up formatting.
7255 (add_AT_loclistsptr): New function.
7256 (AT_lbl): Allow dw_val_class_loclistsptr.
7257 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
7258 Handle dw_val_class_loclistsptr.
7259 (loc_list_idx): New variable.
7260 (output_loclists_offsets, assign_location_list_indexes): New
7262 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
7263 add size_of_uleb128 of the index. Drop never used
7264 dwarf_split_debug_info AT_index handling. Handle
7265 dw_val_class_loclistsptr.
7266 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
7267 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
7268 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
7269 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
7270 DW_FORM_loclistx indexes.
7271 (output_attr_index_or_value): Fix up formatting. Don't handle
7272 dw_val_class_loc_list here.
7273 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
7274 For dw_val_class_loc_list call output_loc_list_offset rather than
7275 output_attr_index_or_value.
7276 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
7277 or .debug_loclists.dwo section name for debug_loc_section.
7278 (resolve_addr_in_expr): Formatting fix.
7279 (index_location_lists): Likewise.
7280 (dwarf2out_finish): If there are any location lists, for
7281 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
7282 index_location_lists only if have_location_lists. Call
7283 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
7284 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
7285 -gsplit-dwarf also emit offset table.
7287 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
7288 (size_of_die, value_format, output_die): Use
7289 DW_FORM_data16 for 128-bit dw_val_class_const_double or
7290 dw_val_class_wide_int.
7292 * dwarf2out.c (dwarf_op): Renamed to ...
7293 (dwarf_OP): ... this.
7294 (convert_descriptor_to_mode, scompare_loc_descriptor,
7295 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7296 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
7298 (dwarf_AT, dwarf_TAG): New functions.
7299 (check_die): Disallow DW_AT_call_all_calls next to
7300 DW_AT_GNU_all_call_sites.
7301 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
7302 and attributes instead of the corresponding GNU tag and attributes.
7303 (gen_subprogram_die): Likewise. Emit call site information even
7304 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
7305 DW_AT_defaulted in comment.
7306 (resolve_addr): Handle DW_AT_call_origin attribute on
7307 DW_TAG_call_site DIE like DW_AT_abstract_origin on
7308 DW_TAG_GNU_call_site DIE.
7310 * dwarf2out.c (dwarf_op): New function.
7311 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
7312 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
7313 (output_loc_operands, output_loc_operands_raw): Likewise.
7314 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
7315 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
7316 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
7317 if dwarf_version < 5.
7318 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
7320 (scompare_loc_descriptor, ucompare_loc_descriptor,
7321 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7322 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
7323 optimize_location_into_implicit_ptr): Likewise. Only punt for
7324 !dwarf_strict if dwarf_version < 5.
7325 (string_cst_pool_decl): Adjust comment.
7326 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
7328 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
7329 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7330 (struct dw_val_node): Add val_file_implicit field.
7331 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
7332 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
7333 output_die): Handle dw_val_class_const_implicit,
7334 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7335 (abbrev_die_table): Change into va_gc vec.
7336 (abbrev_die_table_allocated, abbrev_die_table_in_use,
7337 ABBREV_DIE_TABLE_INCREMENT): Remove.
7338 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
7339 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
7341 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
7342 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
7344 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
7346 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
7348 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
7350 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
7351 unit. Call optimize_abbrev_table.
7352 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
7353 abbrev_die_table being a va_gc vec.
7355 PR tree-optimization/77860
7356 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
7357 also integral complex and vector constants.
7359 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
7360 optimize_macinfo_range, save_macinfo_strings): Replace
7361 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
7362 (output_macinfo): Likewise. Emit .debug_macro* rather than
7363 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
7364 (init_sections_and_labels): Use .debug_macro* labels rather than
7365 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
7366 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
7367 or DW_AT_GNU_macros for -gdwarf-5.
7369 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
7371 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
7373 2016-09-11 Le-Chun Wu <lcwu@google.com>
7374 Mark Wielaard <mjw@redhat.com>
7376 * common.opt (Wshadow=global): New option. Default for -Wshadow.
7377 (Wshadow=local): New option.
7378 (Wshadow-local): Hidden alias for -Wshadow=local.
7379 (Wshadow=compatible-local): New option.
7380 (Wshadow-compatible-local): Hidden alias for
7381 -Wshadow=compatible-local.
7382 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
7383 Wshadow=compatible-local.
7385 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7387 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
7388 Check slp defs for COND_EXPR by swapping/inverting operands if the
7389 new parameter SWAP indicates so.
7390 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
7391 is isomorphic to the first stmt via swapping/inverting. Store swap
7392 information in the new parameter SWAP.
7393 (vect_build_slp_tree): New local array SWAP and pass it to function
7394 vect_build_slp_tree_1. Cleanup result handling code for function
7395 call to vect_get_and_check_slp_defs. Skip operand swapping if the
7396 order of operands has been fixed as indicated by SWAP[i].
7398 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7400 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
7401 unnecessary data dependence check after visited store stmt.
7403 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7405 PR tree-optimization/71915
7406 PR tree-optimization/71490
7407 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
7409 (find_basis_for_base_expr): Require stride types to match when
7411 (alloc_cand_and_find_basis): Record the stride type.
7412 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
7413 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
7414 the expressions having those types.
7415 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
7416 (create_mul_ssa_cand): Likewise.
7417 (create_mul_imm_cand): Likewise.
7418 (create_add_ssa_cand): Likewise.
7419 (create_add_imm_cand): Likewise.
7420 (legal_cast_p_1): Change interface to accept types rather than the
7421 expressions having those types.
7422 (legal_cast_p): Pass types to legal_cast_p_1.
7423 (slsr_process_cast): Pass stride type to
7424 alloc_cand_and_find_basis.
7425 (slsr_process_copy): Likewise.
7426 (dump_candidate): Display stride type when a cast exists.
7427 (create_add_on_incoming_edge): Introduce a cast when necessary for
7429 (analyze_increments): Change the code checking for invalid casts
7430 to rely on the stride type, and update the documentation and
7431 example. Change the code checking for pointer multiplies to rely
7433 (insert_initializers): Introduce a cast when necessary for the
7434 stride type. Use the stride type for the type of the initializer.
7436 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7438 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
7440 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7442 PR rtl-optimization/77919
7443 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
7444 into memory if both modes are complex and their inner modes have the
7445 same precision. If the two modes are different complex modes, convert
7446 each part separately and generate a new CONCAT.
7448 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7450 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
7452 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7455 * gimple-ssa-store-merging.c
7456 (imm_store_chain_info::output_merged_store): Use build_aligned_type
7457 instead of SET_TYPE_ALIGN on shared integral type.
7459 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7461 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7462 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
7465 2016-10-28 Jeff Law <law@redhat.com>
7467 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
7468 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
7470 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7472 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
7474 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7476 * target.def (min_arithmetic_precision): New hook.
7477 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
7478 * doc/tm.texi: Regenerate.
7479 * internal-fn.c (expand_arith_overflow): Adjust handling of target
7480 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
7481 * targhooks.c (default_min_arithmetic_precision): New function.
7482 * targhooks.h (default_min_arithmetic_precision): Declare.
7483 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
7484 (sparc_min_arithmetic_precision): New function.
7486 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7489 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
7490 Swap commutative operands in new RTL if needed. Handle zero_ext
7492 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
7495 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7496 Kugan Vivekanandarajah <kuganv@linaro.org>
7497 Jim Wilson <jim.wilson@linaro.org>
7499 PR tree-optimization/43721
7500 * target.def: New hook expand_divmod_libfunc.
7501 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
7502 * doc/tm.texi: Regenerate.
7503 * internal-fn.def: Add new entry for DIVMOD ifn.
7504 * internal-fn.c (expand_DIVMOD): New.
7505 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
7507 (widen_mul_stats): Add new field divmod_calls_inserted.
7508 (target_supports_divmod_p): New.
7509 (divmod_candidate_p): Likewise.
7510 (convert_to_divmod): Likewise.
7511 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
7512 renumber_gimple_stmt_uids at beginning of function. Call
7513 convert_to_divmod and record stats for divmod.
7514 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
7515 TARGET_EXPAND_DIVMOD_LIBFUNC.
7516 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
7519 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7520 Segher Boessenkool <segher@kernel.crashing.org>
7522 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
7523 swapping the arms of the branch.
7524 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
7525 sequence for the generic signed-signed-signed case.
7527 2016-10-28 Jeff Law <law@redhat.com>
7529 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
7531 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7533 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7535 PR rtl-optimization/78029
7536 * function.c (prologue_contains, epilogue_contains): New functions.
7537 (record_prologue_seq, record_epilogue_seq): New functions.
7538 * function.h (prologue_contains, epilogue_contains,
7539 record_prologue_seq, record_epilogue_seq): New declarations.
7540 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
7541 mixing prologue and epilogue insns.
7542 (init_deps): Initialize the new fields in struct deps_desc.
7543 * sched-int.h (struct deps_desc): New fields last_prologue,
7544 last_epilogue, and last_logue_was_epilogue.
7545 * shrink-wrap.c (emit_common_heads_for_components): Record all
7546 emitted prologue and epilogue insns.
7547 (emit_common_tails_for_components): Ditto.
7548 (insert_prologue_epilogue_for_components): Ditto.
7550 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7553 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
7554 * common.opt (fstore-merging): New Optimization option.
7555 * opts.c (default_options_table): Add entry for
7556 OPT_ftree_store_merging.
7557 * fold-const.h (can_native_encode_type_p): Declare prototype.
7558 * fold-const.c (can_native_encode_type_p): Define.
7559 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
7560 (PARAM_MAX_STORES_TO_MERGE): Likewise.
7561 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
7562 * passes.def: Insert pass_tree_store_merging.
7563 * tree-pass.h (make_pass_store_merging): Declare extern
7565 * gimple-ssa-store-merging.c: New file.
7566 * doc/invoke.texi (Optimization Options): Document
7568 (--param documentation): Document store-merging-allow-unaligned
7569 and max-stores-to-merge.
7571 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
7574 * gimplify.c (gimplify_init_constructor): Move emit of constructor
7575 assignment to earlier in the if/else logic.
7577 2016-10-28 Richard Biener <rguenther@suse.de>
7581 * fold-const.c (make_bit_field_ref): Only adjust alias set
7582 when the original alias set was zero.
7584 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7586 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
7587 (s390_adjust_loops): New function.
7588 (s390_reorg): Invoke s390_adjust_loops.
7589 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
7590 ("osc_break"): New insn definition.
7592 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7594 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
7595 * config.gcc: Support alternate archXX cpu levels with
7596 --with-arch= and --with-tune=.
7597 * config/s390/linux.h: Translate new archXX cpu levels to the
7598 original names when calling GAS.
7599 * config/s390/tpf.h: Likewise.
7600 * doc/invoke.texi: Document the alternate cpu level names.
7602 2016-10-28 Jakub Jelinek <jakub@redhat.com>
7604 PR rtl-optimization/77919
7605 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
7606 MEM if mode1 is not a complex mode.
7608 PR rtl-optimization/78132
7609 * ree.c (combine_reaching_defs): Give up if copy_needed and
7610 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
7612 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
7614 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
7616 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7618 * config/rs6000/constraints.md (wH constraint): Add new
7619 constraints for allowing 32-bit integers (and eventually 8/16-bit
7620 integers) into the vector registers.
7621 (wI constraint): Likewise.
7622 (wJ constraint): Likewise.
7623 (wK constraint): Likewise.
7624 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
7625 -mvsx-small-integer as a default option for ISA 2.07
7627 (POWERPC_MASKS): Likewise.
7628 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
7629 switch to turn off small integer support in vector registers.
7630 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
7631 test for -mupper-regs-di, since it is already done with the
7632 reg_add[mode].scalar_in_vsx_p. Add support for the switch
7633 -mvsx-small-integer.
7634 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
7636 (rs6000_setup_reg_addr_masks): Likewise.
7637 (rs6000_init_hard_regno_mode_ok): Likewise.
7638 (rs6000_option_override_internal): Add consistency checks for
7639 -mvsx-small-integer.
7640 (rs6000_secondary_reload_simple_move): SImode is a simple move if
7641 -mvsx-small-integer.
7642 (rs6000_secondary_reload): Use std::swap.
7643 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
7644 VSX_REGS for small integers in vector registers, since there is no
7645 D-FORM address mode for such types.
7646 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
7647 (rs6000_opt_masks): Add -mvsx-small-integer.
7648 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
7650 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
7651 extracts can be done on ISA 2.07.
7652 (vsx_extract_<mode>): Add support for small integers in vsx
7654 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
7655 longer support V4SImode in this pattern.
7656 (vsx_extract_si): New insn to support extraction of SImode in ISA
7657 2.07 using either xxextractuw or vspltw.
7658 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
7659 longer support V4SImode in this pattern.
7660 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
7661 wJ, and wK constraints.
7662 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
7663 storing SDmode with VSX instructions.
7664 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
7665 GPR load and before the FPR and VSX loads. Remove ??, ! from the
7666 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
7667 small integers in vector registers.
7668 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
7669 load and before the FPR and VSX loads. Remove ??, ! from the
7670 constraints. Add VEXTSW2D support for small integers in vector
7672 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
7673 integers in vector registers.
7674 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
7675 move instead of using an UNSPEC.
7676 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
7677 integers in vector registers.
7678 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
7679 move instead of using an UNSPEC.
7680 (movsi_internal1): Add support for -mvsx-small-integer. Align
7681 columns so that it is more readable.
7682 (SImode splitter for ISA 3.0 constants): Add splitter for
7683 -128..127 constants that can easily be constructed on ISA 3.0.
7684 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
7687 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7690 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
7693 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
7695 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
7696 PIC_OFFSET_TABLE_REGNUM twice.
7698 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7700 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
7701 support for constant operand for OP.
7703 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7705 * dwarf2out.c (gen_member_die): Only reparent_child instead of
7706 splice_child_die if child doesn't have DW_AT_specification attribute.
7708 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7710 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
7711 (TARGET_HAVE_LDREXBH): Likewise.
7712 (TARGET_HAVE_LDACQ): Likewise.
7714 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7716 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
7717 logic to to decide whether to copy over old value to register for new
7719 * config/arm/sync.md: Add comments explaning why mode and code
7720 attribute are not defined in iterators.md
7721 (thumb1_atomic_op_str): New code attribute.
7722 (thumb1_atomic_newop_str): Likewise.
7723 (thumb1_atomic_fetch_op_str): Likewise.
7724 (thumb1_atomic_fetch_newop_str): Likewise.
7725 (thumb1_atomic_fetch_oldop_str): Likewise.
7726 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
7727 mirror the more restrictive constraints of the Thumb-1 insns after
7728 split compared to Thumb-2 counterpart insns.
7729 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
7730 in sync with non atomic version.
7731 (atomic_nand<mode>): Likewise.
7732 (atomic_fetch_<sync_optab><mode>): Likewise.
7733 (atomic_fetch_nand<mode>): Likewise.
7734 (atomic_<sync_optab>_fetch<mode>): Likewise.
7735 (atomic_nand_fetch<mode>): Likewise.
7736 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
7737 in sync with atomic version.
7738 (thumb1_subsi3_insn): Likewise.
7739 (thumb1_andsi3_insn): Likewise.
7740 (thumb1_iorsi3_insn): Likewise.
7741 (thumb1_xorsi3_insn): Likewise.
7743 2016-10-27 Nick Clifton <nickc@redhat.com>
7745 * plugin.c (register_plugin_info): Produce an error message if the
7746 plugin is not found in the hash table.
7748 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7750 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
7753 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
7756 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
7757 define builtin functions from the bdesc_spe_predicates or
7758 bdesc_spe_evsel arrays if the builtin mask is not compatible with
7759 the current compiler configuration.
7760 (paired_init_builtins): Modify loop to not define define builtin
7761 functions from the bdesc_paried_preds array if the builtin mask is
7762 not compatible with the current compiler configuration.
7763 (altivec_init_builtins): Modify loops to not define the
7764 __builtin_altivec_stxvl function nor the builtin functions from
7765 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
7766 builtin mask is not compatible with the current compiler
7769 2016-10-26 Jeff Law <law@redhat.com>
7771 * config/sh/sh.c (output_branch): Add missing fallthru comments.
7772 (gen_shl_and): Likewise.
7773 * config/sh/sh.md (movsicc): Add missing fallthru comments.
7775 * config/mips/mips.c (mips16_constant_cost): Add missing
7777 (mips16_build_call_stub): Increase buffer size. Adjust
7780 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7782 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
7783 INSN_UIDs for all insns in compact mode.
7784 (rtx_writer::print_rtx): Likewise.
7785 * print-rtl.h (rtx_writer::flag_compact): Update comment.
7786 * rtl-tests.c (selftest::test_dumping_insns): Update expected
7787 output to include INSN_UID.
7788 (selftest::test_uncond_jump): Likewise.
7790 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
7792 * haifa-sched.c (call_used_regs_num): Rename to...
7793 (call_saved_regs_num): ...this.
7794 (fixed_regs_num): New variable.
7795 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
7797 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
7799 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7801 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
7803 * print-rtl.c (outfile): Delete global.
7804 (sawclose): Likewise.
7806 (in_call_function_usage): Likewise.
7807 (flag_compact): Likewise.
7808 (flag_simple): Likewise.
7809 (rtx_writer::rtx_writer): New ctor.
7810 (print_rtx_operand_code_0): Convert to...
7811 (rtx_writer::print_rtx_operand_code_0): ...this.
7812 (print_rtx_operand_code_e): Convert to...
7813 (rtx_writer::print_rtx_operand_code_e): ...this.
7814 (print_rtx_operand_codes_E_and_V): Convert to...
7815 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
7816 (print_rtx_operand_code_i): Convert to...
7817 (rtx_writer::print_rtx_operand_code_i): ...this.
7818 (print_rtx_operand_code_r): Convert to...
7819 (rtx_writer::print_rtx_operand_code_r): ...this.
7820 (print_rtx_operand_code_u): Convert to...
7821 (rtx_writer::print_rtx_operand_code_u): ...this.
7822 (print_rtx_operand): Convert to...
7823 (rtx_writer::print_rtx_operand): ...this.
7824 (print_rtx): Convert to...
7825 (rtx_writer::print_rtx): ...this.
7826 (print_inline_rtx): Rewrite in terms of class rtx_writer.
7827 (debug_rtx): Likewise.
7828 (print_rtl): Convert to...
7829 (rtx_writer::print_rtl): ...this.
7830 (print_rtl): Reimplement in terms of class rtx_writer.
7831 (print_rtl_single): Rewrite in terms of class rtx_writer.
7832 (print_rtl_single_with_indent): Convert to..
7833 (rtx_writer::print_rtl_single_with_indent): ...this.
7834 (print_simple_rtl): Rewrite in terms of class rtx_writer.
7835 * print-rtl.h (flag_compact): Delete decl.
7836 (class rtx_writer): New class.
7837 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
7840 2016-10-26 Jeff Law <law@redhat.com>
7842 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
7845 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
7846 (check_if_valid_sleep_operand): Add missing fallthru comment.
7847 (arc_register_move_cost): Increase buffer size.
7848 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
7850 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
7852 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
7853 comment. Add gcc_unreachable for path that should never happen.
7855 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
7858 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7859 Martin Liska <mliska@suse.cz>
7862 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
7863 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
7864 on outer context if any.
7866 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7868 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
7869 by increment rather than double it.
7870 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
7871 emit a space before args[4].
7872 (END): Don't emit a space before with_arg.
7874 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7876 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
7877 Baseline only alternatives to (i) hold store atomic success value in a
7878 return register rather than a scratch register, (ii) use a low register
7879 for it and to (iii) ensure the cbranchsi insn generated by the split
7880 respect the constraints of Thumb-1 cbranchsi4_insn and
7882 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
7883 constraints must match those in atomic_compare_and_swap.
7884 (cbranchsi4_scratch): Likewise.
7886 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7888 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
7889 variable. Add the new parameter to the insn generator. Set that
7890 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
7891 return value from the negation of that parameter for Thumb-1, keeping
7892 the logic unchanged otherwise except for using bdst as the destination
7893 register of the compare_and_swap insn.
7894 (arm_split_compare_and_swap): Add explanation about how is the value
7895 returned to the function comment. Rename scratch variable to
7896 neg_bval. Adapt initialization of variables holding operands to the
7897 new operand numbers. Use return register to hold result of store
7898 exclusive for Thumb-1, scratch register otherwise. Construct the
7899 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
7900 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
7901 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
7902 for strongly ordered compare_and_swap.
7903 * config/arm/predicates.md (cc_register_operand): New predicate.
7904 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
7905 match_operand with the new predicate to accept either the CC flag or a
7906 destination register for the boolean return value, restricting it to
7907 CC flag only via constraint. Adapt operand numbers accordingly.
7909 2016-10-26 Jeff Law <law@redhat.com>
7911 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
7913 * config/frv/frv.c (comparison_string): Do not fall through after
7916 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
7918 (expand_one_builtin): Add missing break.
7920 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
7921 (m32c_legitimate_address_p): Likewise.
7923 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
7925 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
7927 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
7930 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
7933 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
7935 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
7937 (rl78_asm_ctor_dtor): Increase buffer size.
7939 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
7941 (xstormy16_asm_output_constructor): Likewise.
7943 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
7946 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
7947 comment to silence warning.
7949 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
7950 (spu_legitimate_address_p): Fix logic error and add missing fallthru
7953 2016-10-26 Michael Matz <matz@suse.de>
7955 PR tree-optimization/78060
7956 PR tree-optimization/78061
7957 PR tree-optimization/78088
7958 * tree-ssa-loop-split.c (easy_exit_values): New function.
7959 (tree_ssa_split_loops): Use it.
7960 (compute_new_first_bound): Change order of operations,
7961 fix invalid use of types.
7963 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
7965 gen-pass-instances.awk is sensitive to the order in which
7966 passes are added; passes that appear later have to be added first.
7970 * config/avr/avr-passes.def: Swap order of directives for
7971 gen-pass-instances.awk.
7973 2016-10-25 Jeff Law <law@redhat.com>
7975 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
7976 (vax_notice_update_cc): Likewise.
7978 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7980 * config.gcc (sparc*-*-solaris2*): Adjust.
7981 (sparc64-*-linux*): Likewise.
7982 * config/sparc/default-64.h: Rename to...
7983 * config/sparc/default64.h: ...this.
7984 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
7986 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
7987 * config/sparc/sparc.h: Minor tweaks.
7988 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
7989 TARGET_ARCH32 throughout. Minor various tweaks throughout.
7991 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7993 * input.c (fcache::file_patch): Add comment about lifetime.
7994 (selftest::cpp_reader_ptr): New class.
7995 (selftest::lexer_test): Convert m_parser from cpp_reader *
7996 to a cpp_reader_ptr, and move m_tempfile to after it.
7997 (selftest::lexer_test::lexer_test): Update for above reordering.
7998 (lexer_test::~lexer_test): Move cleanup of m_parser to
7999 cpp_reader_ptr's dtor.
8001 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8003 * toplev.c (toplev::main): Remove call to
8004 location_adhoc_data_fini.
8006 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
8008 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
8009 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
8011 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8013 * ggc-tests.c (forcibly_ggc_collect): Rename to...
8014 (selftest::forcibly_ggc_collect): ...this, and remove "static".
8015 (test_basic_struct): Update for above renaming.
8016 (test_length): Likewise.
8017 (test_union): Likewise.
8018 (test_finalization): Likewise.
8019 (test_deletable_global): Likewise.
8020 (test_inheritance): Likewise.
8021 (test_chain_next): Likewise.
8022 (test_user_struct): Likewise.
8023 (test_tree_marking): Likewise.
8024 * selftest-run-tests.c (selftest::run_tests): Call
8025 selftest::forcibly_ggc_collect at the end of the selftests.
8026 * selftest.h (selftest::forcibly_ggc_collect): New decl.
8028 2016-10-25 Jakub Jelinek <jakub@redhat.com>
8031 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
8032 * optabs.c (expand_vec_cond_expr): For comparison codes
8033 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
8034 (expand_vec_cmp_expr): For comparison codes
8035 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
8036 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
8037 Add enum tree_code argument.
8038 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
8040 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
8041 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
8043 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
8044 NE_EXPR, attempt to use vcondeq_optab as fallback.
8045 * tree-vect-generic.c (expand_vector_comparison,
8046 expand_vector_divmod, expand_vector_condition): Adjust
8047 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
8048 * tree-vect-stmts.c (vectorizable_condition,
8049 vectorizable_comparison): Likewise.
8050 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
8051 check_bool_pattern, search_type_for_mask_1): Likewise.
8052 * expr.c (do_store_flag): Likewise.
8053 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
8054 @code{vcondeq@var{m}@var{n}}): Document.
8055 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
8058 2016-10-25 Jeff Law <law@redhat.com>
8060 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
8062 (v850_output_aligned_bss): Add missing break.
8064 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
8066 2016-10-25 Martin Liska <mliska@suse.cz>
8069 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
8070 statements as they can also contain possibly a freeing call.
8072 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
8073 Martin Liska <mliska@suse.cz>
8076 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
8077 * ipa-icf.c (sem_function::get_hash): Add target optimization
8080 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
8083 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
8084 Remove partial overlap check for shift by 1.
8085 (ashldi3_neon): Likewise.
8087 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
8089 * config/arm/constraints.md (Q constraint): Document its use for
8091 (Pf constraint): New constraint for relaxed, consume or relaxed memory
8093 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
8094 alternatives to allow any register when memory model matches Pf and
8095 thus lda is used, but only low registers otherwise. Use unpredicated
8096 output template for Thumb-1 targets.
8097 (atomic_store<mode>): Likewise for stl.
8098 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
8099 whose output template does not have predication.
8100 (arm_load_acquire_exclusive<mode>): Likewise.
8101 (arm_load_exclusivesi): Likewise.
8102 (arm_load_acquire_exclusivesi): Likewise.
8103 (arm_store_release_exclusive<mode>): Likewise.
8104 (arm_store_exclusive<mode>): Use unpredicated output template for
8107 2016-10-25 Jakub Jelinek <jakub@redhat.com>
8109 * internal-fn.def (LAUNDER): New internal function.
8110 * internal-fn.c (expand_LAUNDER): New function.
8112 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8113 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8115 New avr target pass to work around performance loss by PR fix.
8119 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
8120 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
8121 * config/avr/predicates.md (extend_operator): New.
8122 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
8123 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
8124 (make_avr_pass_casesi): New prototypes.
8125 * config/avr/avr.c (print-rtl.h): Include it.
8126 (pass_data avr_pass_data_casesi): Data for new pass.
8127 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
8128 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
8129 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
8130 (avr_optimize_casesi): New functions.
8132 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8133 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8137 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
8139 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8141 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
8142 DW_AT_rvalue_reference attributes.
8144 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
8146 * doc/invoke.text (Wint-in-bool-context): Update documentation.
8147 * value-prof.c (stringop_block_profile): Fix a warning.
8149 2016-10-24 Martin Sebor <msebor@redhat.com>
8152 * builtins.c (string_length): New function.
8153 (c_strlen): Use string_length. Correctly handle wide strings.
8154 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
8156 (target_int_max): Call target_max_value.
8157 (format_result::knownrange): New data member.
8158 (fmtresult::fmtresult): Define default constructor.
8159 (format_integer): Use it and set format_result::knownrange.
8160 Handle global constants.
8161 (format_floating_max): Add third argument.
8162 (format_floating): Recompute maximum value for %a for each argument.
8163 (get_string_length): Use fmtresult default ctor.
8164 (format_string): Set format_result::knownrange.
8165 (format_directive): Check format_result::knownrange.
8166 (add_bytes): Same. Correct caret placement in diagnostics.
8167 (pass_sprintf_length::compute_format_length): Set
8168 format_result::knownrange.
8169 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
8171 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8173 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
8174 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
8176 2016-10-24 Ximin Luo <infinity0@pwned.gg>
8179 * dwarf2out.c (file_table_relative_p): Remove.
8180 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
8181 also for absolute paths.
8182 * doc/tm.texi: Update.
8183 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
8184 * target.def (force_at_comp_dir): Remove hook.
8185 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
8187 2016-10-24 Richard Biener <rguenther@suse.de>
8189 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
8190 backedges when identifying the single predecessor to take
8191 conditional info from. Use SCEV to get at ranges for loop IVs.
8192 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
8193 avoid false warning.
8195 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
8198 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
8199 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
8200 (avr_address_tiny_absdata_p): New static function.
8201 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
8202 it to determine validity of constant addresses.
8203 (avr_attribute_table) [absdata]: New variable attribute...
8204 (avr_handle_absdata_attribute): ...and handler.
8205 (avr_decl_absdata_p): New static function.
8206 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
8207 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
8208 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
8210 2016-10-24 Richard Biener <rguenther@suse.de>
8212 PR tree-optimization/78076
8213 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
8214 also on the loop tree root.
8216 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8218 * config/i386/i386.c (ix86_fold_builtin): Handle
8219 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
8220 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8221 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
8222 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8224 2016-10-24 Martin Liska <mliska@suse.cz>
8227 * opts.c (finish_options): Skip conditionally.
8229 2016-10-23 Martin Sebor <msebor@redhat.com>
8232 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
8233 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
8235 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8237 * config/sparc/sparc.md (cpu_feature): Minor tweak.
8238 (enabled): Likewise.
8239 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
8240 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
8241 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
8242 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
8243 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
8244 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
8246 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8248 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
8249 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
8251 2016-10-21 Andrew Pinski <apinski@cavium.com>
8253 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
8255 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
8256 implementer_id to unsigned char.
8257 Change part_no to unsigned int.
8258 (AARCH64_BIG_LITTLE): New define.
8259 (INVALID_IMP): New define.
8260 (INVALID_CORE): New define.
8261 (cpu_data): Change the last element's implementer_id and part_no to
8263 (valid_bL_string_p): Rewrite to ..
8264 (valid_bL_core_p): this for integers instead of strings.
8265 (parse_field): New function.
8266 (contains_string_p): Rewrite to ...
8267 (contains_core_p): this for integers and only for the part_no.
8268 (host_detect_local_cpu): Rewrite handling of implementation and
8269 par num to be integers; simplifying the code.
8271 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8273 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
8274 value range for pointers in more cases.
8276 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8278 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
8279 Add extra argument to allow emitting the move immediate.
8280 Use add/sub with positive immediate.
8281 (aarch64_add_constant): Add inline function.
8282 (aarch64_add_sp): Likewise.
8283 (aarch64_sub_sp): Likewise.
8284 (aarch64_expand_prologue): Call aarch64_sub_sp.
8285 (aarch64_expand_epilogue): Call aarch64_add_sp.
8286 Decide when to leave out move.
8287 (aarch64_output_mi_thunk): Call aarch64_add_constant.
8289 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8291 * config/aarch64/aarch64.c (aarch64_layout_frame):
8292 Align FP callee-saves.
8294 2016-10-21 Jakub Jelinek <jakub@redhat.com>
8296 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
8297 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
8299 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
8300 _rdseed64_step): Likewise.
8301 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
8304 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
8305 and tree-ssanames.h.
8306 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
8307 with INTEGER_CST argument.
8308 (ix86_gimple_fold_builtin): New function.
8309 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
8311 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
8312 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
8313 (ranges_table_allocated, ranges_table_in_use,
8314 ranges_by_label_allocated, ranges_by_label_in_use,
8315 RANGES_TABLE_INCREMENT): Removed.
8316 (add_ranges_num): Use vec_safe_push into ranges_table.
8317 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
8318 (output_ranges): Adjust for ranges_table and ranges_by_label
8319 conversion from arrays to vec.
8320 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
8321 conversion from arrays to vec.
8322 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
8323 ranges_table_in_use, ranges_by_label_allocated and
8324 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
8326 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
8327 if needed. Re-add origin_die variable and its initialization.
8329 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
8330 even for -fstack-reuse=none, or for volatile vars etc.
8332 2016-10-21 David Malcolm <dmalcolm@redhat.com>
8334 * print-rtl-function.c (flag_compact): Move extern decl to...
8335 * print-rtl.h (flag_compact): ...here.
8336 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
8337 (ASSERT_RTL_DUMP_EQ): New macro.
8338 (selftest::test_dumping_regs): New function.
8339 (selftest::test_dumping_insns): New function.
8340 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
8342 (selftest::rtl_tests_c_tests): Call the new test functions.
8344 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8346 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8347 (outgoing_edges_match): Likewise.
8348 (try_crossjump_to_edge): Likewise.
8349 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8350 (rtl_tidy_fallthru_edge): Likewise.
8351 * rtl.h (tablejump_p): Adjust prototype.
8352 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
8354 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8356 * rtl.h (label_ref_label): New function.
8357 (set_label_ref_label): New function.
8358 (LABEL_REF_LABEL): Delete.
8359 * alias.c (rtx_equal_for_memref_p): Adjust.
8360 * cfgbuild.c (make_edges): Likewise.
8361 (purge_dead_tablejump_edges): Likewise.
8362 * cfgexpand.c (convert_debug_memory_address): Likewise.
8363 * cfgrtl.c (patch_jump_insn): Likewise.
8364 * combine.c (distribute_notes): Likewise.
8365 * cse.c (hash_rtx_cb): Likewise.
8366 (exp_equiv_p): Likewise.
8367 (fold_rtx): Likewise.
8368 (check_for_label_ref): Likewise.
8369 * cselib.c (rtx_equal_for_cselib_1): Likewise.
8370 (cselib_hash_rtx): Likewise.
8371 * emit-rtl.c (mark_label_nuses): Likewise.
8372 * explow.c (convert_memory_address_addr_space_1): Likewise.
8373 * final.c (output_asm_label): Likewise.
8374 (output_addr_const): Likewise.
8375 * gcse.c (add_label_notes): Likewise.
8376 * genconfig.c (walk_insn_part): Likewise.
8377 * genrecog.c (validate_pattern): Likewise.
8378 * ifcvt.c (cond_exec_get_condition): Likewise.
8379 (noce_emit_store_flag): Likewise.
8380 (noce_get_alt_condition): Likewise.
8381 (noce_get_condition): Likewise.
8382 * jump.c (maybe_propagate_label_ref): Likewise.
8383 (mark_jump_label_1): Likewise.
8384 (redirect_exp_1): Likewise.
8385 (rtx_renumbered_equal_p): Likewise.
8386 * lra-constraints.c (operands_match_p): Likewise.
8387 * print-rtl.c (print_value): Likewise.
8388 * reload.c (find_reloads): Likewise.
8389 * reload1.c (set_label_offsets): Likewise.
8390 * reorg.c (get_branch_condition): Likewise.
8391 * rtl-tests.c (test_uncond_jump): Likewise.
8392 * rtl.c (rtx_equal_p_cb): Likewise.
8393 (rtx_equal_p): Likewise.
8394 * rtlanal.c (reg_mentioned_p): Likewise.
8395 (rtx_referenced_p): Likewise.
8396 (get_condition): Likewise.
8397 * varasm.c (const_hash_1): Likewise.
8398 (compare_constant): Likewise.
8399 (const_rtx_hash_1): Likewise.
8400 (output_constant_pool_1): Likewise.
8402 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8405 * reload.c (find_valid_class_1): Allow regclass if atleast one
8406 regno in regclass is ok. Compute and use rclass size based on
8407 actually available regnos for mode in rclass.
8409 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
8411 * config/sparc/sparc-modes.def (CCV): New.
8413 * config/sparc/predicates.md (v_comparison_operator): New.
8414 (icc_comparison_operator): Add support for CCV/CCXV.
8415 (xcc_comparison_operator): Likewise.
8416 * config/sparc/sparc.c (output_cbranch): Likewise.
8417 (sparc_print_operand): Likewise.
8418 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8419 (uaddvdi4): New expander.
8420 (addvdi4): Likewise.
8421 (uaddvdi4_sp32): New instruction.
8422 (addvdi4_sp32): Likewise.
8423 (uaddvsi4): New expander.
8424 (addvsi4): Likewise.
8425 (cmp_ccc_plus_sltu_set): New instruction.
8426 (cmp_ccv_plus): Likewise.
8427 (cmp_ccxv_plus): Likewise.
8428 (cmp_ccv_plus_set): Likewise.
8429 (cmp_ccxv_plus_set): Likewise.
8430 (cmp_ccv_plus_sltu_set): Likewise.
8431 (uaddvdi4): New expander.
8432 (subvdi4): Likewise.
8433 (usubdi4_sp32): New instruction.
8434 (subvdi4_sp32): Likewise.
8435 (usubvsi4): New expander.
8436 (subvsi4): Likewise.
8437 (cmpsi_minus_sltu_set): New instruction.
8438 (cmp_ccv_minus): Likewise.
8439 (cmp_ccxv_minus): Likewise.
8440 (cmp_ccv_minus_set): Likewise.
8441 (cmp_ccxv_minus_set): Likewise.
8442 (cmp_ccv_minus_sltu_set): Likewise.
8443 (unegvdi3): New expander.
8444 (negvdi3): Likewise.
8445 (unegdi3_sp32): New instruction.
8446 (negvdi3_sp32): Likewise.
8447 (unegvsi3): New expander.
8448 (negvsi3): Likewise.
8449 (cmp_ccc_neg_sltu_set): New instruction.
8450 (cmp_ccv_neg): Likewise.
8451 (cmp_ccxv_neg): Likewise.
8452 (cmp_ccv_neg_set): Likewise.
8453 (cmp_ccxv_neg_set): Likewise.
8454 (cmp_ccv_neg_sltu_set): Likewise.
8456 * tree-ssa-loop-split.c: Remove trailing spaces.
8457 * match.pd: Likewise.
8459 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8461 PR rtl-optimization/78038
8462 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
8463 be deduced to set REG through the RTL structure.
8464 (make_defs_and_copies_lists): Return false on a failing get_defs call.
8466 2016-10-21 Richard Biener <rguenther@suse.de>
8468 PR tree-optimization/78051
8469 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
8470 and mark replaced if folding did something.
8472 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
8474 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
8475 and "protected" in visibility types.
8476 (rs6000_xcoff_declare_function_name): Fix formatting.
8477 (rs6000_xcoff_declare_object_name): Fix formatting.
8479 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
8481 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
8482 and IX86_BUILTIN_HUGE_VALQ here ...
8483 (ix86_expand_builtin): ... not here.
8485 2016-10-20 Jakub Jelinek <jakub@redhat.com>
8487 * doc/gty.texi (for_user): Use @item next to @findex.
8489 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
8492 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
8493 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
8494 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
8495 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
8496 __builtin_ia32_lzcnt_u16.
8497 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
8498 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
8499 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
8500 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
8501 (bmi_tzcnt_<mode>): New expander.
8502 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8503 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
8504 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
8505 (lzcnt_<mode>): New expander.
8506 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8507 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
8508 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
8509 (UINT64_FTYPE_UINT64): New.
8510 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
8511 (__builtin_ia32_lzcnt_u16): New description.
8512 (__builtin_ia32_lzcnt_u32): Ditto.
8513 (__builtin_ia32_lzcnt_u64): Ditto.
8514 (__builtin_ctzs): Remove description.
8515 (__builtin_ia32_tzcnt_u16): New description.
8516 (__builtin_ia32_tzcnt_u32): Ditto.
8517 (__builtin_ia32_tzcnt_u64): Ditto.
8518 * config/i386/i386.c (ix86_expand_args_builtin): Handle
8519 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
8521 2016-10-20 Martin Liska <mliska@suse.cz>
8524 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
8525 comparison with STMT_UID_NOT_IN_RANGE.
8526 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
8529 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
8531 * compare-elim.c (conforming_compare): Accept UNSPECs.
8532 (find_comparison_dom_walker::before_dom_children): Deal with
8533 instructions both using and killing the flags register.
8534 (equivalent_reg_at_start): New function extracted from...
8535 (try_eliminate_compare): ...here. Use it and add support for
8536 registers and UNSPECs as second operand of the compare.
8537 * config/visium/visium-modes.def (CCV): New.
8538 * config/visium/predicates.md (visium_v_comparison_operator): New.
8539 (visium_branch_operator): Deal with CCV mode.
8540 * config/visium/visium.c (visium_select_cc_mode): Likewise.
8541 (output_cbranch): Likewise.
8542 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8543 (uaddv<mode>4): New expander.
8544 (addv<mode>4): Likewise.
8545 (add<mode>3_insn_set_carry): New instruction.
8546 (add<mode>3_insn_set_overflow): Likewise.
8547 (addsi3_insn_set_overflow): Likewise.
8548 (usubv<mode>4): New expander.
8549 (subv<mode>4): Likewise.
8550 (sub<mode>3_insn_set_carry): New instruction.
8551 (sub<mode>3_insn_set_overflow): Likewise.
8552 (subsi3_insn_set_overflow): Likewise.
8553 (unegv<mode>3): New expander.
8554 (negv<mode>3): Likewise.
8555 (neg<mode>2_insn_set_overflow): New instruction.
8556 (addv_tst<mode>): Likewise.
8557 (subv_tst<mode>): Likewise.
8558 (negv_tst<mode>): Likewise.
8559 (cbranch<mode>4_addv_insn): New splitter and instruction.
8560 (cbranch<mode>4_subv_insn): Likewise.
8561 (cbranch<mode>4_negv_insn): Likewise.
8563 2016-10-20 Richard Biener <rguenther@suse.de>
8565 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
8566 Handle decls possibly not bound.
8567 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
8568 nothing_id for decls that might not be bound if we are interested
8570 (get_constraint_for_component_ref): Deal with that.
8572 2016-10-20 Michael Matz <matz@suse.de>
8575 * common.opt (-fsplit-loops): New flag.
8576 * passes.def (pass_loop_split): Add.
8577 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
8578 (enable_fdo_optimizations): Add loop splitting.
8579 * timevar.def (TV_LOOP_SPLIT): Add.
8580 * tree-pass.h (make_pass_loop_split): Declare.
8581 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
8582 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
8583 * tree-ssa-loop-split.c: New file.
8584 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
8585 * doc/invoke.texi (fsplit-loops): Document.
8586 * doc/passes.texi (Loop optimization): Add paragraph about loop
8589 2016-10-20 Richard Biener <rguenther@suse.de>
8591 * cgraphunit.c (analyze_functions): Set node->definition to
8592 false to signal symbol removal to debug_hooks->late_global_decl.
8593 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
8594 WPA signal symbol removal to the debuginfo machinery.
8595 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
8596 using early_finised to guard the we're called for symbol
8597 removal case look at the symtabs definition flag.
8598 (gen_variable_die): Remove redundant check.
8600 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8602 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
8604 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8606 PR tree-optimization/53979
8607 * match.pd ((a ^ b) | a -> a | b): New pattern.
8609 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
8611 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
8612 config/pa/pa64-hpux-lib.h.
8613 (PA_CRTBEGIN_HACK): Likewise.
8614 (DTOR_LIST_BEGIN): Likewise.
8616 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
8618 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8619 register only if "in" and "out" are different registers.
8621 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
8623 * omp-low.c (pass_oacc_device_lower::gate): New method.
8624 (execute): Always call execute_oacc_device_lower.
8626 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8628 PR tree-optimization/77916
8629 PR tree-optimization/77937
8630 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
8632 (insert_initializers): Requirement of initializer for -1 should be
8633 based on pointer-typedness of the candidate basis.
8635 2016-10-19 Bin Cheng <bin.cheng@arm.com>
8637 PR tree-optimization/78005
8638 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
8639 upper (included) bound for niters of prolog loop.
8640 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
8641 Compute niters of scalar loop above which vectorized loop is
8642 preferred, as well as the upper (included) bound for the niters.
8643 (vect_do_peeling): Record niter bound for loops accordingly.
8645 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8648 * tree-core.h (enum tree_index): Put the complex types after their
8650 * tree-streamer.c (verify_common_node_recorded): New function.
8651 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
8653 2016-10-19 Martin Liska <mliska@suse.cz>
8655 * cgraph.h (cgraph_edge::binds_to_current_def_p):
8656 Replace NULL with false as a return value.
8658 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8660 PR tree-optimization/78024
8661 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
8662 don't clear BB_VISITED after processing.
8664 2016-10-19 Richard Biener <rguenther@suse.de>
8666 * domwalk.c (dom_walker::walk): Use RPO order.
8668 2016-10-19 Richard Biener <rguenther@suse.de>
8670 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
8672 (evrp_dom_walker::~evrp_dom_walker): Free it.
8673 (evrp_dom_walker::stmts_to_remove): Add.
8674 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
8675 whose output we fully propagate for removal. Propagate
8676 into BB destination PHI arguments.
8677 (execute_early_vrp): Remove queued stmts. Dump value ranges
8678 before stmt removal.
8680 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
8682 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
8683 * passes.def: Add two instances of pass_walloca.
8684 * tree-pass.h (make_pass_walloca): New.
8685 * gimple-ssa-warn-alloca.c: New file.
8686 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
8687 -Wvla-larger-than= options.
8689 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
8691 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
8692 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
8694 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
8696 * config/rs6000/altivec.h (vec_xl_len): New macro.
8697 (vec_xst_len): New macro.
8698 (vec_cmpnez): New macro.
8699 (vec_cntlz_lsbb): New macro.
8700 (vec_cnttz_lsbb): New macro.
8701 (vec_xlx): New macro.
8702 (vec_xrx): New macro.
8703 (vec_all_nez): New C++ predicate template.
8704 (vec_any_eqz): New C++ predicate template.
8705 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
8706 conditional compilation.
8707 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
8708 conditional compilation.
8709 (vec_all_nez): New macro.
8710 (vec_any_eqz): New macro.
8711 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
8713 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
8715 * config/rs6000/vector.md (VI): Moved this mode iterator
8716 definition from altivec.md to vector.md.
8717 (UNSPEC_NEZ_P): New value.
8718 (vector_ne_<mode>_p): New expansion for implementation of
8719 vec_all_ne and vec_any_eq built-in functions.
8720 (vector_nez_<mode>_p): New expansion for implementation of
8721 vec_all_nez and vec_any_eqz built-in functions.
8722 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
8723 and vec_any_eq built-in function.
8724 (cr6_test_for_zero): New commentary to explain this expansion.
8725 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
8726 (cr6_test_for_lt): New commentary to explain this expansion.
8727 (cr6_test_for_lt_reverse): New commentary to explain this
8729 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8730 overloaded function prototypes for vec_all_ne, vec_all_nez,
8731 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
8732 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
8734 (altivec_resolve_overloaded_builtin): Modify the handling of
8735 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
8736 the compiler is configured to support TARGET_P9_VECTOR.
8737 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
8738 to explain the special processing that is given to predicate
8739 built-ins introduced using this macro.
8740 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
8741 the special processing given to predicate built-ins introduced
8743 (BU_VSX_P): Likewise.
8744 (BU_P8V_AV_P): Likewise.
8745 (BU_P9V_AV_P): Likewise.
8746 (BU_P9V_AV_X): New macro.
8747 (BU_P9V_64BIT_AV_X): New macro.
8748 (BU_P9V_VSX_3): New macro.
8749 (BU_P9V_OVERLOAD_P): New macro.
8750 (LXVL): New BU_P9V_64BIT_VSX_2.
8751 (VEXTUBLX): New BU_P9V_AV_2.
8752 (VEXTUBRX): Likewise.
8753 (VEXTUHLX): Likewise.
8754 (VEXTUHRX): Likewise.
8755 (VEXTUWLX): Likewise.
8756 (VEXTUWRX): Likewise.
8757 (STXVL): New BU_P9V_64BIT_AV_X.
8758 (VCLZLSBB): New BU_P9V_AV_1.
8759 (VCTZLSBB): Likewise.
8760 (CMPNEB): New BU_P9V_AV_2.
8765 (VCMPNEB_P): New BU_P9V_AV_P.
8766 (VCMPNEH_P): Likewise.
8767 (VCMPNEW_P): Likewise.
8768 (VCMPNED_P): Likewise.
8769 (VCMPNEFP_P): Likewise.
8770 (VCMPNEDP_P): Likewise.
8771 (CMPNEZB): New BU_P9V_AV_2.
8772 (CMPNEZH): Likewise.
8773 (CMPNEZW): Likewise.
8774 (VCMPNEZB_P): New BU_P9V_AV_P.
8775 (VCMPNEZH_P): Likewise.
8776 (VCMPNEZW_P): Likewise.
8777 (LXVL): New BU_P9V_OVERLOAD_2.
8778 (STXVL): New BU_P9V_OVERLOAD_3.
8779 (VEXTULX): New BU_P9V_OVERLOAD_2.
8780 (VEXTURX): Likewise.
8782 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
8783 (VCMPNE_P): Likewise.
8784 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
8785 (VCTZLSBB): Likewise.
8786 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
8787 comment to explain mode used for scratch register.
8788 (altivec_expand_stxvl_builtin): New function.
8789 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
8790 (altivec_init_builtins): Add initialized variable
8791 void_ftype_v16qi_pvoid_long and use this type to define the
8792 built-in function __builtin_altivec_stxvl.
8793 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
8794 (UNSPEC_STXVL): New value.
8795 (UNSPEC_VCLZLSBB): New value.
8796 (UNSPEC_VCTZLSBB): New value.
8797 (UNSPEC_VEXTUBLX): New value.
8798 (UNSPEC_VEXTUHLX): New value.
8799 (UNSPEC_VEXTUWLX): New value.
8800 (UNSPEC_VEXTUBRX): New value.
8801 (UNSPEC_VEXTUHRX): New value.
8802 (UNSPEC_VEXTUWRX): New value.
8803 (UNSPEC_VCMPNEB): New value.
8804 (UNSPEC_VCMPNEZB): New value.
8805 (UNSPEC_VCMPNEH): New value.
8806 (UNSPEC_VCMPNEZH): New value.
8807 (UNSPEC_VCMPNEW): New value.
8808 (UNSPEC_VCMPNEZW): New value.
8809 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8810 vector of integer modes.
8811 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8812 vector of float or double modes.
8813 (*vector_nez_<mode>_p): New insn for vector test all not equal or
8815 (lxvl): New expand for load VSX vector with length.
8816 (*lxvl): New insn for load VSX vector with length.
8817 (stxvl): New expand for store VSX vector with length.
8818 (*stxvl): New insn for store VSX vector with length.
8819 (vcmpneb): New insn for vector of byte compare not equal.
8820 (vcmpnezb): New insn for vector of byte compare not equal or zero.
8821 (vcmpneh): New insn for vector of half word compare not equal.
8822 (vcmpnezh): New insn for vector of half word compare not equal or
8824 (vcmpnew): New insn for vector of word compare not equal.
8825 (vcmpne<VSs>): New insn for vector of float or double compare not
8827 (vcmpnezw): New insn for vector of word compare not equal or zero.
8828 (vclzlsbb): New insn for vector count leading zero
8829 least-significant bits byte.
8830 (vctzlsbb): New insn for vector count trailing zero least
8831 signficant bits byte.
8832 (vextublx): New insn for vector extract unsigned byte left
8834 (vextubrx): New insn for vector extract unsigned byte right
8836 (vextuhlx): New insn for vector extract unsigned half word left
8838 (vextuhrx): New insn for vector extract unsigned half word right
8840 (vextuwlx): New insn for vector extract unsigned word left
8842 (vextuwrx): New insn for vector extract unsigned word right
8844 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
8845 clarify intent of this constant.
8846 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
8847 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
8848 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
8849 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
8850 and vec_xrx functions.
8852 2016-10-18 Andrew Pinski <apinski@cavium.com>
8855 * predict.c (is_exit_with_zero_arg): New function.
8856 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
8859 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
8862 * config/i386/i386.c (legitimize_tls_address)
8863 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
8864 convert dest to Pmode if different than Pmode.
8866 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8868 PR tree-optimization/77916
8869 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
8870 stopgap fix, as pointers with -1 increment are still broken.
8872 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
8874 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
8875 mapping class decoration from here...
8876 (rs6000_xcoff_encode_section): ...to here.
8878 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
8879 if shrink-wrapping and optimizing for speed.
8881 2016-10-18 Richard Biener <rguenther@suse.de>
8883 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
8884 not visited but non-executable predecessors. Return taken edge.
8885 Simplify conditions and refactor propagation vs. folding step.
8887 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
8889 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
8890 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
8891 (rs6000_get_separate_components): Assert we do not have those
8892 strategies selected.
8894 2016-10-18 Richard Biener <rguenther@suse.de>
8896 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
8897 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
8899 (substitute_and_fold_dom_walker): Adjust constructor.
8900 (substitute_and_fold_dom_walker::before_dom_children): Remove
8901 do_dce flag and handling (always true).
8902 (substitute_and_fold): Likewise.
8903 * tree-vrp.c (vrp_finalize): Adjust.
8904 (execute_early_vrp): Remove final BB_VISITED clearing.
8905 * tree-ssa-ccp.c (ccp_finalize): Adjust.
8906 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8907 * ira.c (ira): Call clear_bb_flags.
8909 2016-10-18 Richard Biener <rguenther@suse.de>
8911 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
8912 get at the operand to look at with TREE_OPERAND for generic
8915 2016-10-18 David Malcolm <dmalcolm@redhat.com>
8917 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
8919 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
8920 (write_test_expr): Use rtx_reader_ptr for calls to
8922 (write_attr_value): Likewise.
8923 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
8924 call to print_md_ptr_loc.
8925 (write_one_condition): Likewise for calls to print_c_condition.
8926 * genconstants.c: Include "statistics.h" and "vec.h".
8927 (main): Update for conversion to member functions.
8928 * genemit.c (emit_c_code): Use rtx_reader_ptr for
8929 call to print_md_ptr_loc.
8930 * genenums.c: Include "statistics.h" and "vec.h".
8931 (main): Update for conversion of traverse_enum_types to a method.
8932 * genmddeps.c: Include "statistics.h" and "vec.h".
8933 * genoutput.c (process_template): Use rtx_reader_ptr for call to
8935 * genpreds.c (write_predicate_subfunction): Likewise.
8936 (write_predicate_expr): Likewise for calls to print_c_condition.
8937 * genrecog.c (print_test): Likewise.
8938 * gensupport.c (process_rtx): Likewise for calls to
8939 copy_md_ptr_loc and join_c_conditions.
8940 (alter_test_for_insn): Likewise for call to join_c_conditions.
8941 (process_substs_on_one_elem): Likewise.
8942 (gen_mnemonic_setattr): Update for move of string_obstack to a
8943 field of rtx_reader.
8944 (mnemonic_htab_callback): Likewise. Fix formatting.
8945 (gen_mnemonic_attr): Likewise.
8946 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
8947 to print_c_condition.
8948 * read-md.c: Include "statistics.h" and "vec.h".
8949 (string_obstack): Convert this global to field "m_string_obstack"
8950 of class rtx_reader.
8951 (ptr_locs): Likewise, as "m_ptr_locs".
8952 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
8953 (joined_conditions): Likewise, as "m_joined_conditions".
8954 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
8955 (md_constants): Likewise, as "m_md_constants".
8956 (enum_types): Likewise, as "m_enum_types".
8957 (set_md_ptr_loc): Convert to...
8958 (rtx_reader::set_md_ptr_loc): ...member function.
8959 (get_md_ptr_loc): Convert to...
8960 (rtx_reader::get_md_ptr_loc): ...member function.
8961 (copy_md_ptr_loc): Convert to...
8962 (rtx_reader::copy_md_ptr_loc): ...member function.
8963 (fprint_md_ptr_loc): Convert to...
8964 (rtx_reader::fprint_md_ptr_loc): ...member function.
8965 (print_md_ptr_loc): Convert to...
8966 (rtx_reader::print_md_ptr_loc): ...member function.
8967 (join_c_conditions): Convert to...
8968 (rtx_reader::join_c_conditions): ...member function.
8969 (fprint_c_condition): Convert to...
8970 (rtx_reader::fprint_c_condition): ...member function.
8971 (print_c_condition): Convert to...
8972 (rtx_reader::print_c_condition): ...member function.
8973 (read_name): Convert to...
8974 (rtx_reader::read_name): ...member function.
8975 (read_escape): Convert to...
8976 (rtx_reader::read_escape): ...member function.
8977 (read_quoted_string): Convert to...
8978 (rtx_reader::read_quoted_string): ...member function.
8979 (read_braced_string): Convert to...
8980 (rtx_reader::read_braced_string): ...member function.
8981 (read_string): Convert to...
8982 (rtx_reader::read_string): ...member function.
8983 (read_skip_construct): Convert to...
8984 (rtx_reader::read_skip_construct): ...member function.
8985 (handle_constants): Convert to...
8986 (rtx_reader::handle_constants): ...member function.
8987 (traverse_md_constants): Convert to...
8988 (rtx_reader::traverse_md_constants): ...member function.
8989 (handle_enum): Convert to...
8990 (rtx_reader::handle_enum): ...member function.
8991 (lookup_enum_type): Convert to...
8992 (rtx_reader::lookup_enum_type): ...member function.
8993 (traverse_enum_types): Convert to...
8994 (rtx_reader::traverse_enum_types): ...member function.
8995 (rtx_reader::rtx_reader): Move initializations
8996 of various former global data from rtx_reader::read_md_files to
8997 here, as fields, along with the call to unlock_std_streams.
8998 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
9000 (rtx_reader::read_md_files): Move initializations of various
9001 global data from here to the ctor.
9002 * read-md.h (read_name): Convert to...
9003 (rtx_reader::read_name): ...member function.
9004 (rtx_reader::read_escape): New method decl.
9005 (read_quoted_string): Convert to...
9006 (rtx_reader::read_quoted_string): ...member function.
9007 (rtx_reader::read_braced_string): New method decl.
9008 (read_string): Convert to...
9009 (rtx_reader::read_string): ...member function.
9010 (rtx_reader::read_skip_construct): New method decl.
9011 (rtx_reader::set_md_ptr_loc): New method decl.
9012 (rtx_reader::get_md_ptr_loc): New method decl.
9013 (copy_md_ptr_loc): Convert to...
9014 (rtx_reader::copy_md_ptr_loc): ...member function.
9015 (fprint_md_ptr_loc): Convert to...
9016 (rtx_reader::fprint_md_ptr_loc): ...member function.
9017 (print_md_ptr_loc): Convert to...
9018 (rtx_reader::print_md_ptr_loc): ...member function.
9019 (rtx_reader::lookup_enum_type): New method decl.
9020 (rtx_reader::traverse_enum_types): New method decl.
9021 (rtx_reader::handle_constants): New method decl.
9022 (traverse_md_constants): Convert to...
9023 (rtx_reader::traverse_md_constants): ...member function.
9024 (rtx_reader::handle_enum): New method decl.
9025 (rtx_reader::join_c_conditions): New method decl.
9026 (fprint_c_condition): Convert to...
9027 (rtx_reader::fprint_c_condition): ...member function.
9028 (print_c_condition): Convert to...
9029 (rtx_reader::print_c_condition): ...member function.
9030 (rtx_reader::apply_iterator_to_string): New method decl.
9031 (rtx_reader::copy_rtx_for_iterators): New method decl.
9032 (rtx_reader::read_conditions): New method decl.
9033 (rtx_reader::record_potential_iterator_use): New method decl.
9034 (rtx_reader::read_mapping): New method decl.
9035 (rtx_reader::read_rtx): New method decl.
9036 (rtx_reader::read_rtx_code): New method decl.
9037 (rtx_reader::read_rtx_operand): New method decl.
9038 (rtx_reader::read_nested_rtx): New method decl.
9039 (rtx_reader::read_rtx_variadic): New method decl.
9040 (rtx_reader::get_string_obstack): New method.
9041 (rtx_reader::get_md_constants): New method.
9042 (string_obstack): Convert global variable decl to...
9043 (rtx_reader::m_string_obstack): ...this new field.
9044 (rtx_reader::m_ptr_locs): New field.
9045 (rtx_reader::m_ptr_loc_obstack): New field.
9046 (rtx_reader::m_joined_conditions): New field.
9047 (rtx_reader::m_joined_conditions_obstack): New field.
9048 (rtx_reader::m_md_constants): New field.
9049 (rtx_reader::m_enum_types): New field.
9050 * read-rtl.c (apply_iterator_to_string): Convert to...
9051 (rtx_reader::apply_iterator_to_string): ...member function.
9052 (copy_rtx_for_iterators): Convert to...
9053 (rtx_reader::copy_rtx_for_iterators): ...member function.
9054 (add_condition_to_string): Use rtx_reader_ptr for
9055 calls join_c_conditions.
9056 (apply_iterators): Use rtx_reader_ptr for calls to
9057 join_c_conditions and copy_rtx_for_iterators.
9058 (read_conditions): Convert to...
9059 (rtx_reader::read_conditions): ...member function.
9060 (record_potential_iterator_use): Convert to...
9061 (rtx_reader::record_potential_iterator_use): ...member function.
9062 (read_mapping): Convert to...
9063 (rtx_reader::read_mapping): ...member function.
9064 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
9065 (read_rtx): Convert to...
9066 (rtx_reader::read_rtx): ...member function.
9067 (read_rtx_code): Convert to...
9068 (rtx_reader::read_rtx_code): ...member function.
9069 (read_rtx_operand): Convert to...
9070 (rtx_reader::read_rtx_operand): ...member function. Update for move
9071 of string_obstack to a field.
9072 (read_nested_rtx): Convert to..
9073 (rtx_reader::read_nested_rtx): ...member function.
9074 (read_rtx_variadic): Convert to..
9075 (rtx_reader::read_rtx_variadic): ...member function.
9077 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9079 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
9081 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9083 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
9084 for pointer type too.
9085 (ipcp_update_vr): set_ptr_nonnull for pointer.
9087 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9089 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
9090 pt_solution_singleton_p.
9091 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
9092 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
9093 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
9094 pointer nonnull computed by VRP.
9095 Also Conservatively set pt.null to 1.
9096 (pt_solution_reset): Conservatively set pt.null to 1.
9097 (pt_solution_singleton_or_null_p): Renamed from
9098 pt_solution_singleton_p.
9099 * tree-ssanames.h (set_ptr_nonnull): Declare.
9100 (get_ptr_nonnull): Likewise.
9101 * tree-ssanames.c (set_ptr_nonnull): New.
9102 (get_ptr_nonnull): Likewise.
9103 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
9104 (evrp_dom_walker::before_dom_children): Likewise.
9106 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9108 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9109 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9110 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9111 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9112 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
9113 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9114 (rs6000_option_override_internal): Clear it if ABI_AIX.
9115 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9116 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
9118 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9120 * gimple-ssa-strength-reduction.c (record_increment): Remove
9123 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9125 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
9126 that the result is non-zero if it is true.
9127 (maybe_expand_shift): New wrapper around expand_shift_1.
9128 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
9130 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9132 PR tree-optimization/77916
9133 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
9134 Don't allow a MINUS_EXPR for pointer arithmetic for either known
9136 (record_increment): Increments of -1 for unknown strides just use
9137 a multiply initializer like other negative values.
9138 (analyze_increments): Remove stopgap solution for -1 increment
9139 applied to pointer arithmetic.
9141 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
9143 * dominance.c (dom_info::dom_info): Add new constructor for region
9144 which is vector of basic blocks.
9145 (dom_init): New method to initialize members common for both
9147 (dom_info::dom_info): Invoke dom_init for partial initialization.
9148 (dom_info::get_idom): Add check to corner cases on basic blocks which
9150 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
9151 to detect unreachable bbs.
9152 (dom_info::calc_idoms): Likewise.
9153 (compute_dom_fast_query_in_region): New function.
9154 (calculate_dominance_info_for_region): Likewise.
9155 (free_dominance_info_for_region): Likewise.
9156 * dominance.h: Add prototypes for introduced region-based functions
9157 * tree-if-conv.c (build_region): New function.
9158 (if_convertible_loop_p_1): Invoke local version of post-dominators
9159 calculation before basic block predication with subsequent freeing
9160 post-dominator info.
9161 (tree_if_conversion): Remove free of post-dominator info
9162 (pass_if_conversion::execute): Delete detection of infinite loops
9163 and fake edges to exit block since post-dominator calculation is
9164 performed per if-converted loop only.
9166 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
9169 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
9170 register explicitly.
9171 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
9172 optimizing for size.
9174 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9176 * config/aarch64/aarch64.c: Delete inclusion of
9177 cortex-a57-fma-steering.h.
9178 (aarch64_override_options): Delete call
9179 to aarch64_register_fma_steering.
9180 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
9181 * config/aarch64/cortex-a57-fma-steering.h: Delete.
9182 * config/aarch64/aarch64-passes.def: New file.
9183 * config/aarch64/cortex-a57-fma-steering.c
9184 (aarch64_register_fma_steering): Delete definition.
9185 (make_pass_fma_steering): Remove static qualifier.
9186 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
9187 (cortex-a57-fma-steering.o): Remove dependency on
9188 cortex-a57-fma-steering.h.
9190 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9192 * explow.c (validize_mem): Do not modify the argument in-place.
9194 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
9196 * tree-streamer.c (record_common_node): Explicitly list expected
9199 2016-10-17 Richard Biener <rguenther@suse.de>
9201 PR tree-optimization/77988
9202 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
9204 2016-10-17 Marek Polacek <polacek@redhat.com>
9206 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
9208 2016-10-17 Richard Biener <rguenther@suse.de>
9210 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
9213 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9215 PR tree-optimization/71636
9216 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
9218 2016-10-17 Richard Biener <rguenther@suse.de>
9220 * gimplify.c (gimplify_function_tree): Do not move the outer
9223 2016-10-17 Jakub Jelinek <jakub@redhat.com>
9225 * langhooks.h (struct lang_hooks_for_decls): Remove
9226 function_decl_explicit_p, function_decl_deleted_p and
9227 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
9228 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
9229 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9230 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
9231 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
9232 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
9233 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9234 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
9235 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
9236 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
9237 * langhooks.c (lhd_decl_dwarf_attribute): New function.
9238 * dwarf2out.c (gen_subprogram_die): Use
9239 lang_hooks.decls.decl_dwarf_attribute instead of
9240 lang_hooks.decls.function_decl_*.
9242 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9246 * common.opt (-ftrampolines): New option.
9247 * doc/invoke.texi (Code Gen Options): Document it.
9248 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
9249 * doc/tm.texi: Regenerate.
9250 * builtins.def: Add init_descriptor and adjust_descriptor.
9251 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
9252 on platforms with descriptors.
9253 (expand_builtin_init_descriptor): New function.
9254 (expand_builtin_adjust_descriptor): Likewise.
9255 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
9256 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
9257 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
9258 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
9259 Set STATIC_CHAIN_REG_P on the static chain register, if any.
9260 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
9261 (expand_call): Likewise. Move around call to prepare_call_address
9262 and pass all flags to it.
9263 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
9264 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
9265 (gimple_call_set_by_descriptor): New setter.
9266 (gimple_call_by_descriptor_p): New getter.
9267 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
9268 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
9269 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
9270 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9271 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
9272 * rtl.h (STATIC_CHAIN_REG_P): New macro.
9273 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
9274 * target.def (custom_function_descriptors): New POD hook.
9275 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
9276 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
9277 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
9278 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
9279 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
9280 (build_common_builtin_nodes): Initialize init_descriptor and
9282 * tree-nested.c: Include target.h.
9283 (struct nesting_info): Add 'any_descr_created' field.
9284 (get_descriptor_type): New function.
9285 (lookup_element_for_decl): New function extracted from...
9286 (create_field_for_decl): Likewise.
9287 (lookup_tramp_for_decl): ...here. Adjust.
9288 (lookup_descr_for_decl): New function.
9289 (convert_tramp_reference_op): Deal with descriptors.
9290 (build_init_call_stmt): New function extracted from...
9291 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
9292 * defaults.h (FUNCTION_ALIGNMENT): Define.
9293 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
9294 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9295 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9296 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
9297 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9299 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9301 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
9302 constants in CONST_VECTORs.
9304 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9306 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
9307 register as destination of bmask.
9308 (vector_init_bshuffle): Likewise.
9309 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
9310 (bmaskdi_vis): Enable only in 64-bit mode.
9312 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9314 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
9315 make LR a separately shrink-wrapped component unless savres_strategy
9316 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
9317 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
9318 wrapping when not both {SAVE,REST}_INLINE_GPRS.
9320 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9322 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
9323 and keep looping on failure.
9325 2016-10-14 David Malcolm <dmalcolm@redhat.com>
9327 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
9329 (print_rtx_function): Update example in comment for...
9330 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
9331 non-virtual pseudos with a '%' sigil followed by the regno, offset
9332 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
9333 pseudo is dumped as "%0".
9335 2016-10-14 Jakub Jelinek <jakub@redhat.com>
9338 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
9341 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
9343 * config/sparc/sparc-passes.def: New file.
9344 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
9345 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
9346 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
9348 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9350 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
9351 loop peel to loops with exit test at the beginning.
9353 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9355 PR rtl-optimization/68212
9356 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
9357 frequency when computing scale factor for peeled copies.
9358 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
9359 values for switch/peel blocks/edges.
9361 2016-10-14 Pedro Alves <palves@redhat.com>
9363 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
9365 2016-10-14 Catherine Moore <clm@codesourcery.com>
9367 * config/mips/mips.c (mips_prepare_pch_save): Initialize
9368 micromips_globals to zero.
9370 2016-10-14 Richard Biener <rguenther@suse.de>
9372 PR tree-optimization/77979
9373 * tree-vrp.c (compare_name_with_value): Handle released SSA names
9374 in the equivalency sets.
9375 (compare_names): Likewise.
9377 2016-10-14 Martin Liska <mliska@suse.cz>
9379 * builtins.h(target_char_cst_p): Declare the function.
9380 * builtins.c (fold_builtin_memchr): Remove.
9381 (target_char_cst_p): Move the function from gimple-fold.c.
9382 (fold_builtin_3): Do not call the function.
9383 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
9384 (gimple_fold_builtin): Call the function.
9385 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
9387 2016-10-14 Martin Liska <mliska@suse.cz>
9389 * builtins.c (fold_builtin_strcmp): Remove function.
9390 (fold_builtin_strncmp): Likewise.
9391 (fold_builtin_2): Remove call of the function.
9392 (fold_builtin_3): Likewise.
9393 * fold-const-call.c (fold_const_call): Add constant folding
9394 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
9395 * fold-const-call.h (build_cmp_result): Declare the function.
9396 * gimple-fold.c (gimple_load_first_char): New function.
9397 (gimple_fold_builtin_string_compare): Likewise.
9398 (gimple_fold_builtin): Call the function.
9400 2016-10-14 Nathan Sidwell <nathan@acm.org>
9402 * gcov-io.c (gcov_open): Deconstify 'mode'.
9404 2016-10-14 Martin Liska <mliska@suse.cz>
9406 * fold-const.c (c_getstr): Support of properly \0-terminated
9407 string constants. New argument is added.
9408 * fold-const.h: New argument is added.
9410 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9412 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
9414 (aarch64_print_hint_for_core): Likewise.
9415 (aarch64_print_hint_for_arch): Likewise.
9416 (aarch64_validate_march): Use it. Fix indentation in type signature.
9417 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
9418 (aarch64_validate_mtune): Likewise.
9419 (aarch64_handle_attr_arch): Likewise.
9420 (aarch64_handle_attr_cpu): Likewise.
9421 (aarch64_handle_attr_tune): Likewise.
9423 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9425 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
9428 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
9430 * config/m68k/m68k.c (m68k_option_override): Check
9431 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
9432 instead of stack_limit_rtx.
9434 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9436 * dwarf2out.c (gen_member_die): Handle inline static data member
9439 2016-10-13 Nathan Sidwell <nathan@acm.org>
9441 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
9442 gcov_var.mode. Remove unnecessary fstat.
9444 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
9447 * function.c (thread_prologue_and_epilogue_insns): Call all
9448 make_*logue_seq in the same order as traditional. Call them
9449 all a second time if shrink_wrapped_separate.
9451 2016-10-13 Marek Polacek <polacek@redhat.com>
9453 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9454 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
9457 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9459 PR tree-optimization/77937
9460 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
9461 to infinite when we have a pointer with an increment of -1.
9463 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9465 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
9467 * memmodel.h: This file.
9468 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9469 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
9470 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
9471 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
9472 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
9473 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
9474 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
9475 compare-elim.c, config/aarch64/aarch64-builtins.c,
9476 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
9477 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
9478 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
9479 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
9480 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
9481 config/darwin.c, config/epiphany/epiphany.c,
9482 config/epiphany/mode-switch-use.c,
9483 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
9484 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
9485 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
9486 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9487 config/m68k/m68k.c, config/mcore/mcore.c,
9488 config/microblaze/microblaze.c, config/mmix/mmix.c,
9489 config/mn10300/mn10300.c, config/moxie/moxie.c,
9490 config/msp430/msp430.c, config/nds32/nds32-cost.c,
9491 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
9492 config/nds32/nds32-memory-manipulation.c,
9493 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
9494 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
9495 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
9496 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
9497 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
9498 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
9499 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9500 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9501 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
9502 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
9503 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
9504 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
9505 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
9506 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
9507 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
9508 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
9509 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
9510 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
9511 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
9512 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9513 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
9514 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9515 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
9516 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
9517 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
9518 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
9519 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
9520 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
9521 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
9522 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
9523 var-tracking.c, varasm.c: Include memmodel.h.
9524 * genattrtab.c (write_header): Include memmodel.h in generated file.
9525 * genautomata.c (main): Likewise.
9526 * gengtype.c (open_base_files): Likewise.
9527 * genopinit.c (main): Likewise.
9528 * genconditions.c (write_header): Include memmodel.h earlier in
9530 * genemit.c (main): Likewise.
9531 * genoutput.c (output_prologue): Likewise.
9532 * genpeep.c (main): Likewise.
9533 * genpreds.c (write_insn_preds_c): Likewise.
9534 * genrecog.c (write_header): Likewise.
9535 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
9537 2016-10-13 David Malcolm <dmalcolm@redhat.com>
9539 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
9540 for new "compact" param of print_rtx_function. Check for "cinsn"
9542 * print-rtl-function.c (flag_compact): New decl.
9543 (print_rtx_function): Add param "compact" and use it to set
9544 flag_compact, adding a description of the effect to the leading
9545 comment, and updating the example output.
9546 * print-rtl.c (flag_compact): New variable.
9547 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
9549 (print_rtx_operand_code_i): When printing source locations, wrap
9550 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
9551 (print_rtx_operand_code_r): Don't print regnos for hard regs and
9552 virtuals in compact mode.
9553 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
9554 apart from in LABEL_REFs.
9555 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
9556 Don't print basic block ids in compact mode.
9557 (print_rtx): In compact mode, prefix the code of insns with "c",
9558 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
9559 * print-rtl.h (print_rtx_function): Add "compact" param.
9561 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9563 * arm.h (TARGET_VFP): Delete.
9564 (TARGET_VFPD32): Remove references to TARGET_VFP.
9565 (TARGET_VFP3, TARGET_VFP5): Likewise.
9566 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
9567 (TARGET_NEON_FP16): Likewise.
9568 (TARGET_FMA): Likewise.
9569 (TARGET_CRYPTO): Likewise.
9570 (TARGET_NEON): Likewise.
9571 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9572 (FUNCTION_ARG_REGNO_P): Likewise.
9573 * arm.c (arm_option_check_internal): Likewise.
9574 (arm_option_override): Likewise.
9575 (use_return_insn): Likewise.
9576 (arm_function_value_regno_p): Likewise.
9577 (arm_apply_result_size): Likewise.
9578 (use_vfp_abi): Likewise.
9579 (arm_legitimate_address_outer_p): Likewise.
9580 (thumb2_legitimate_address_p): Likewise.
9581 (arm_legitimate_index_p): Likewise.
9582 (thumb2_legitimate_index_p): Likewise.
9583 (arm_legitimate_address): Likewise.
9584 (arm_get_vfp_saved_size): Likewise.
9585 (arm_emit_vfp_multi_reg_pop): Likewise.
9586 (arm_get_frame_offsets): Likewise.
9587 (arm_save_coproc_regs): Likewise.
9588 (arm_hard_regno_mode_ok): Likewise.
9589 (arm_expand_epilogue_apcs_frame): Likewise.
9590 (arm_expand_epilogue): Likewise.
9591 (arm_file_start): Likewise.
9592 (arm_conditional_register_usage): Likewise.
9593 (arm_validize_comparison): Use vfp_compare_operand directly.
9594 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
9595 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
9597 (arm_atomic_assign_expand_fenv): Likewise.
9598 * arm.md (divsf3): Likewise.
9599 (arm_negsi2): Likewise.
9601 (arm_movdi): Likewise.
9602 (arm_movt): Likewise.
9603 (cbranchsf4): Change predicate to vfp_compare_operand.
9604 (cbranchdf4): Change predicate to vfp_compare_operand.
9605 (cstorehf4): Change predicate to vfp_compare_operand.
9606 (cstoresf4): Change predicate to vfp_compare_operand.
9607 (cstoredf4): Change predicate to vfp_compare_operand.
9608 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
9609 (movhi_insn_arch4, movhi_bytes): Likewise.
9610 * constraints.md (Dt): Likewise.
9612 * iterators.md (SDF): Likewise.
9613 * predicates.md (arm_float_compare_operand): Delete.
9614 (const_double_vcvt_power_of_two_reciprocal): Remove references to
9616 (const_double_vcvt_power_of_two): Likewise.
9617 * thumb2.md thumb2_movsi_insn): Likewise.
9618 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
9619 (movhf_vfp): Likewise.
9620 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
9621 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
9622 (movsf_vfp, thumb2_movsf_vfp): Likewise.
9623 (movdf_vfp, thumb2_movdf_vfp): Likewise.
9624 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
9625 (subsf3_vfp, divsf3_vfp): Likewise.
9626 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
9627 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
9628 (mulsf3negsfsubsf_vfp): Likewise.
9629 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
9630 (floatunssisf2, sqrtsf2_vfp): Likewise.
9631 (movcc_vfp): Likewise.
9632 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
9633 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
9634 (push_multi_vfp): Likewise.
9635 (set_fpscr, get_fpscr): Likewise.
9636 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
9638 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9640 * arm.h (TARGET_VFP): Unconditionally define to 1.
9641 (arm_fpu_desc): Remove 'model' field.
9642 (TARGET_FPU_MODEL): Delete.
9643 * arm.c (all_fpus): Don't initialize the model field.
9644 (arm_can_inline_p): Don't check the FPU model.
9645 * arm-fpus.def: Remove redundant model field from all FPU
9648 2016-10-13 Richard Biener <rguenther@suse.de>
9651 * genmatch.c (struct capture): Add value_match member.
9652 (commutate): Preserve value_match.
9653 (lower_opt_convert): Likewise.
9654 (lower_cond): Likewise.
9655 (replace_id): Likewise.
9656 (struct dt_operand): Add value_match member.
9657 (decision_tree::cmp_node): Compare it.
9658 (decision_tree::insert_operand): Honor it when finding and
9659 when appending a DT_MATCH.
9660 (dt_operand::gen_match_op): Generate a type check after
9661 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
9662 (parser::get_internal_capture_id): New helper.
9663 (parser::finish_match_operand): New function lowering @@<id>.
9664 (parser::parse_capture): Parse @@<id> as value-match.
9665 (parser::parse_expr): Use get_internal_capture_id.
9666 (parser::parse_simplify): Call finish_match_operand.
9667 (walk_captures): New helper.
9668 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
9670 ((X /[ex] A) * A -> X): Likewise.
9671 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
9672 convert[12] and value-matching.
9673 ((A | B) & (A | C) -> A | (B & C)): Likewise.
9674 ((X | Y) | Y -> X | Y): Likewise.
9675 ((X ^ Y) ^ Y -> X): Likewise.
9676 (A - (A & B) -> ~B & A): Likewise.
9677 ((T)(P + A) - (T)P -> (T) A): Likewise.
9678 ((T)P - (T)(P + A) -> -(T) A): Likewise.
9679 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
9680 * doc/match-and-simplify.texi: Amend capture section.
9682 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9684 * config/arc/arc.md (umul_600): Remove predicated variant.
9685 (umul64_600): Likewise.
9687 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9689 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
9691 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9693 * tree-vect-loop.c (loop_niters_no_overflow): New func.
9694 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
9695 no-overflow information to vect_do_peeling_for_loop_bound and
9696 vect_gen_vector_loop_niters.
9698 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9700 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
9703 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9705 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
9706 adjust_vec automatically.
9707 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
9708 param exit_bb to guard_to.
9709 (slpeel_checking_verify_cfg_after_peeling):
9710 (set_prologue_iterations):
9711 (create_lcssa_for_virtual_phi): New func which is factored out from
9712 slpeel_tree_peel_loop_to_edge.
9713 (slpeel_tree_peel_loop_to_edge):
9714 (iv_phi_p): New func.
9715 (vect_can_advance_ivs_p): Call iv_phi_p.
9716 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
9717 new gimple stmts in basic block.
9718 (vect_gen_niters_for_prolog_loop): Rename to...
9719 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
9720 adjust implementation.
9721 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
9722 sizetype if necessary.
9723 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
9724 it to external function.
9725 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
9726 (vect_gen_vector_loop_niters_mult_vf): New.
9727 (slpeel_update_phi_nodes_for_loops): New.
9728 (slpeel_update_phi_nodes_for_guard1): Reimplement.
9729 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
9730 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
9731 * tree-vect-loop.c (vect_build_loop_niters): Move to file
9732 tree-vect-loop-manip.c
9733 (vect_generate_tmps_on_preheader): Delete.
9734 (vect_transform_loop): Rename vectorization_factor to vf. Call
9735 vect_do_peeling instead of vect_do_peeling-* functions.
9736 * tree-vectorizer.h (vect_do_peeling): New decl.
9737 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
9738 (vect_do_peeling_for_loop_bound): Delete.
9739 (vect_do_peeling_for_alignment): Delete.
9741 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9743 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
9744 duplicated loop after its preheader and after the original loop.
9746 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9748 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
9749 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
9751 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9753 * tree-vect-loop.c (vectorizable_live_operation): Support handling
9754 for live variable outside loop but not in lcssa form.
9756 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9758 * cfg.c (reset_original_copy_tables): New func.
9759 * cfg.h (reset_original_copy_tables): New decl.
9761 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9764 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
9766 * varasm.c (default_binds_local_p_3): Formatting fix.
9768 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9770 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
9772 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
9773 Remove useless code.
9775 2016-10-13 Martin Liska <mliska@suse.cz>
9777 PR tree-optimization/77943
9778 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
9779 a different EH landing pads.
9781 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9784 * hooks.h (hook_tree_void_null): Declare.
9785 * hooks.c (hook_tree_void_null): New function.
9786 * langhooks.c (lhd_return_null_tree_v): Remove.
9787 * langhooks-def.h (lhd_return_null_tree_v): Remove.
9788 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
9789 set y to const0_rtx.
9790 * function.c (stack_protect_epilogue): Likewise.
9791 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
9792 if TARGET_THREAD_SSP_OFFSET is defined.
9793 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9794 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9795 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9796 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9797 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9798 (ix86_stack_protect_guard): New function.
9800 2016-10-13 Richard Biener <rguenther@suse.de>
9802 * dwarf2out.c (tree_add_const_value_attribute): Do not try
9803 rtl_for_decl_init during early phase.
9804 (gen_variable_die): Do not create locations during early phase.
9805 (gen_label_die): Likewise.
9806 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
9809 2016-10-12 Richard Biener <rguenther@suse.de>
9811 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
9812 try_add_new_range and made to eturn new range.
9813 (evrp_dom_walker::before_dom_children): Push op1 value range before
9814 pushing op0 value range.
9816 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9818 PR tree-optimization/77937
9819 * gimple-ssa-strength-reduction.c (analyze_increments): Use
9820 POINTER_TYPE_P on the candidate type to determine whether
9821 candidates in this chain require pointer arithmetic.
9823 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
9825 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
9826 correction if the type is smaller than a word.
9827 (visium_select_cc_mode): Add ... fall through ... comment.
9829 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9831 * config/rs6000/rs6000.c (machine_function): Add new fields
9832 gpr_is_wrapped_separately and lr_is_wrapped_separately.
9833 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
9834 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
9835 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
9836 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
9837 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
9838 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
9839 (rs6000_get_separate_components): New function.
9840 (rs6000_components_for_bb): New function.
9841 (rs6000_disqualify_components): New function.
9842 (rs6000_emit_prologue_components): New function.
9843 (rs6000_emit_epilogue_components): New function.
9844 (rs6000_set_handled_components): New function.
9845 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
9846 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
9847 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
9848 (rs6000_emit_epilogue): Don't emit GPR restores if
9849 gpr_is_wrapped_separately for that register. Don't make a
9850 REG_CFA_RESTORE note for registers we did not restore, either.
9852 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9854 * function.c (thread_prologue_and_epilogue_insns): Call
9855 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
9856 if it has possibly changed. Compute the split_prologue_seq and
9857 epilogue_seq later, too.
9858 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
9859 (dump_components): New function.
9860 (struct sw): New struct.
9862 (init_separate_shrink_wrap): New function.
9863 (fini_separate_shrink_wrap): New function.
9864 (place_prologue_for_one_component): New function.
9865 (spread_components): New function.
9866 (disqualify_problematic_components): New function.
9867 (emit_common_heads_for_components): New function.
9868 (emit_common_tails_for_components): New function.
9869 (insert_prologue_epilogue_for_components): New function.
9870 (try_shrink_wrapping_separate): New function.
9871 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
9873 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9875 * regrename.c (build_def_use): Invalidate chains that have a
9876 REG_CFA_RESTORE on some instruction.
9878 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9880 * dce.c (delete_unmarked_insns): Don't delete instructions with
9881 a REG_CFA_RESTORE note.
9883 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9885 * common.opt (-fshrink-wrap-separate): New flag.
9886 * doc/invoke.texi: Document it.
9887 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
9888 * doc/tm.texi: Regenerate.
9889 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
9890 * target.def (shrink_wrap): New hook vector.
9891 (get_separate_components, components_for_bb, disqualify_components,
9892 emit_prologue_components, emit_epilogue_components,
9893 set_handled_components): New hooks.
9895 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9897 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
9898 vector return by reference only if -Wpsabi.
9899 (rs6000_pass_by_reference): Similarly, for argument passing.
9901 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9903 * function-tests.c: Include "print-rtl.h".
9904 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
9905 function, and verify what is dumped.
9906 * print-rtl-function.c (print_edge): New function.
9907 (begin_any_block): New function.
9908 (end_any_block): New function.
9909 (can_have_basic_block_p): New function.
9910 (print_rtx_function): Track the basic blocks of insns in the
9911 chain, wrapping those that are within blocks within "(block)"
9912 directives. Remove the "(cfg)" directive.
9914 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9916 * selftest.c (selftest::read_file): New function.
9917 (selftest::test_read_file): New function.
9918 (selftest::selftest_c_tests): Call test_read_file.
9919 * selftest.h (selftest::read_file): New decl.
9921 2016-10-12 Richard Biener <rguenther@suse.de>
9924 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
9927 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
9929 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
9931 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
9932 dwarf2out_assembly_start.
9934 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
9936 * Makefile.in (SELFTEST_FLAGS): New variable.
9937 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
9939 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
9942 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
9944 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
9945 dumped in RTL dumps.
9947 2016-10-12 Martin Liska <mliska@suse.cz>
9949 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
9950 (gimple_fold_builtin_memory_op): Use the function.
9951 (gimple_fold_builtin_strchr): Likewise.
9952 (gimple_fold_builtin_strcat): Likewise.
9953 (gimple_build): Likewise.
9955 2016-10-12 Nathan Sidwell <nathan@acm.org>
9957 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
9959 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9961 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
9962 equivalent 32-bit constant (modulo 2**32) when that yields
9963 smaller instructions.
9964 (size_of_int_loc_descriptor): Update accordingly.
9966 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9968 * dwarf2out.c (dwarf2out_early_global_decl): For nested
9969 functions, call dwarf2out_decl on the parent function first.
9971 2016-10-12 Richard Biener <rguenther@suse.de>
9973 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
9976 2016-10-12 Richard Biener <rguenther@suse.de>
9978 * tree-ssa-propagate.c
9979 (substitute_and_fold_dom_walker::before_dom_children): Do not
9980 ignore ASSERT_EXPRs but only preserve them.
9981 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
9982 that have been propagated into.
9983 (vrp_finalize): Enable DCE for substitute_and_fold.
9985 2016-10-12 Richard Biener <rguenther@suse.de>
9987 PR tree-optimization/77920
9988 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
9989 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
9990 (simplify_abs_using_ranges): Likewise.
9991 (simplify_conversion_using_ranges): Likewise.
9992 (simplify_stmt_using_ranges): Adjust.
9994 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9996 PR tree-optimization/77929
9997 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
9998 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
10000 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10003 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
10004 needs a base register for arg 1.
10006 2016-10-12 Jakub Jelinek <jakub@redhat.com>
10008 * common.opt (Wimplicit-fallthrough) Turn into alias to
10009 -Wimplicit-fallthrough=3. Remove EnabledBy.
10010 (Wimplicit-fallthrough=): New option.
10011 * gimplify.c (warn_implicit_fallthrough_r): Use
10012 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
10013 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
10014 to -Wimplicit-fallthrough=3.
10015 (-Wimplicit-fallthrough=): Document.
10017 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10019 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
10020 and GEU in DImode if TARGET_SUBXC.
10021 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
10022 (seqdi<W:mode>_zero_subxc): Delete.
10023 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
10024 (neg_seqdi<W:mode>_zero_vis3): Delete.
10025 (plus_seqdi<W:mode>_zero): Likewise.
10026 (minus_seqdi<W:mode>_zero): Likewise.
10027 (plus_plus_sltu<W:mode>): Accept only register.
10028 (addx<W:mode>): Likewise.
10029 (plus_sltu<W:mode>_vis3): Likewise.
10030 (plus_plus_sltu<W:mode>_vis3): Likewise.
10031 (neg_sgeu<W:mode>_vis3): Delete.
10032 (minus_sgeu<W:mode>_vis3): Likewise.
10033 (addxc<W:mode>): Accept only registers.
10034 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10035 (minus_neg_sltu<W:mode>_subxc): Accept only register.
10036 (neg_plus_sltu<W:mode>_subxc): Likewise.
10037 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10038 (minus_minus_sltu<W:mode>_subxc): Accept only register.
10039 (sgeu<W:mode>_insn_subxc): Delete.
10040 (plus_sgeu<W:mode>_subxc): Likewise.
10041 (subxc<W:mode>): Accept only register.
10042 (scc splitter): Split always GEU again.
10044 2016-10-11 Jeff Law <law@redhat.com>
10046 PR tree-optimization/77424
10047 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
10048 dead conditionals. Assert that all e->aux fields are NULL.
10050 2016-10-11 David Malcolm <dmalcolm@redhat.com>
10052 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
10053 operand-printing "switch" statement into...
10054 (print_rtx_operand_code_0): ...this new function, ...
10055 (print_rtx_operand_code_e): ...this new function, ...
10056 (print_rtx_operand_codes_E_and_V): ...this new function, ...
10057 (print_rtx_operand_code_i): ...this new function, ...
10058 (print_rtx_operand_code_r): ...this new function, ...
10059 (print_rtx_operand_code_u): ...this new function, ...
10060 (print_rtx_operand): ...and this new function.
10062 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
10064 * config/alpha/alpha-passes.def: New file.
10065 * config/alpha/t-alpha: New file.
10066 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
10067 (make_pass_handle_trap_shadows): New prototype.
10068 (make_pass_align_insns): Ditto.
10069 * config/alpha/alpha.c (alpha_option_override): Don't register
10071 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
10073 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10076 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
10077 distinct __ibm128 IBM extended double type if long doubles are
10078 128-bits and the default format for long double is IEEE 128-bit.
10080 2016-10-11 Richard Biener <rguenther@suse.de>
10082 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
10083 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
10084 (verify_die): New function.
10085 (dwarf2out_finish): Call it.
10086 (output_line_info): Handle case of -gsplit-dwarf without
10087 DWARF2_ASM_LINE_DEBUG_INFO.
10089 2016-10-11 Richard Biener <rguenther@suse.de>
10092 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
10093 sub-chains of BLOCK_VARS and gimple_bind_vars.
10095 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10097 * config/i386/znver1.md : Fix imov/imovx load type reservations.
10099 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10101 * config/sparc/sparc.opt (msubxc): New option.
10102 * doc/invoke.texi (SPARC options): Document it and tidy up.
10103 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
10104 * doc/tm.texi: Regenerate.
10105 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
10107 (CCX_NOOV): Rename into...
10111 * config/sparc/predicates.m (fcc_register_operand): Simplify.
10112 (fcc0_register_operand): Likewise.
10113 (icc_register_operand): New.
10114 (icc_or_fcc_register_operand): Simplify.
10115 (nz_comparison_operator): New.
10116 (c_comparison_operator): Likewise.
10117 (noov_compare_operator): Rename into...
10118 (icc_comparison_operator): ...this. Use above predicates.
10119 (noov_compare64_operator): Rename into...
10120 (v9_comparison_operator): ...this and tidy up.
10121 (fcc_comparison_operator): New.
10122 (icc_or_fcc_comparison_operator): Likewise.
10123 (v9_register_compare_operator): Rename info...
10124 (v9_register_comparison_operator): ...this.
10125 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10126 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
10128 (sparc_fixed_condition_code_regs): New function.
10129 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
10130 renaming and add support for CCC/CCXC.
10131 (output_cbranch): Likewise.
10132 (sparc_print_operand): Likewise.
10133 (gen_v9_scc): Remove obsolete assertion.
10134 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
10135 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
10136 (output_cbcond): Remove bogus handling of CC modes.
10137 (sparc_register_move_cost): Return 100 for NO_REGS.
10138 * config/sparc/sparc.md (W): New mode iterator.
10139 (length): Adjust for noov_compare64_operator renaming.
10140 (cmpsi_sne): New instruction.
10141 (cmpdi_sne): Likewise.
10142 (seqdi_special): Delete.
10143 (seqdi_special): Likewise.
10144 (snesi<P:mode>_special): Likewise.
10145 (snedi_special): Likewise.
10146 (snedi_special_vis3): Likewise.
10147 (snesi patterns): Use W iterator.
10148 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
10149 (sltu patterns): Likewise.
10150 (sgeu patterns): Likewise.
10151 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
10152 (normal_branch): Use icc_comparison_operator predicate.
10153 (inverted_branch): Likewise.
10154 (cbcond_sp32): Use comparison_operator predicate.
10155 (cbcond_sp64): Likewise.
10156 (normal_int_branch_sp64): Adjust for renaming
10157 (inverted_int_branch_sp64): Likewise.
10158 (mov<I:mode>_cc_reg_sp64): Likewise.
10159 (movsf_cc_reg_sp6): Likewise.
10160 (movdf_cc_reg_sp64): Likewise.
10161 (movtf_cc_reg_hq_sp64): Likewise.
10162 (movtf_cc_reg_sp64): Likewise.
10163 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
10164 (movsf_cc_v9): Likewise.
10165 (movdf_cc_v9): Likewise.
10166 (movtf_cc_hq_v9): Likewise.
10167 (movtf_cc_v9): Likewise.
10168 (adddi3): Call gen_adddi3_sp32.
10169 (adddi3_insn_sp32): Rename to...
10170 (adddi3_sp32): ...this. Accept only register_operand as operand #1
10171 and use CCCmode for the carry.
10172 (addx_extend_sp32): Use CCCmode for the carry.
10173 (addx_extend_sp64): Delete.
10174 (adddi3_extend_sp32): Use CCCmode for the carry.
10175 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
10176 (subdi3): Call gen_subdi3_sp32.
10177 (subdi3_insn_sp32): Rename to...
10178 (subdi3_sp32): ...this and use CCmode for the carry.
10179 (subx_extend_sp32): Use CCCmode for the carry.
10180 (subx_extend_sp64): Delete.
10181 (subdi3_extend_sp32): Use CCmode for the carry.
10182 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
10183 (negdi3): Call gen_negdi3_sp32.
10184 (negdi3_sp32): Use CCCmode for the carry.
10185 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
10186 (cmp_nz_ashift_1): Use CCNZ mode.
10187 (cmp_nz_set_ashift_1): Likewise.
10188 (ctrapsi4): Use comparison_operator predicate.
10189 (ctrapdi4): Likewise.
10190 (trapsi_insn): Use icc_comparison_operator predicate.
10191 (trapdi_insn): Likewise.
10192 (edge8 patterns): Use CCNZmode.
10193 (edge16 patterns): Likewise.
10194 (edge32 patterns): Likewise.
10196 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10198 * config/visium/visium-modes.def (CC_NOOV): Rename into...
10200 (CC_BTST): Rename into...
10202 * config/visium/predicates.md (real_add_operand): New.
10203 (visium_btst_operator): Rename into...
10204 (visium_equality_comparison_operator): ...this.
10205 (visium_noov_operator): Rename into...
10206 (visium_nz_comparison_operator): ...this.
10207 (visium_c_comparison_operator): New.
10208 (visium_branch_operator): Adjust and deal with all CC modes.
10209 * config/visium/visium.c (visium_adjust_cost): Adjust.
10210 (visium_split_double_add): Use the *_set_carry patterns.
10211 (visium_select_cc_mode): Add support for CCC mode and adjust.
10212 (output_cbranch): Adjust and use the carry-based operators for
10213 floating-point comparisons.
10214 * config/visium/visium.md (flags_subst_arith): Adjust.
10215 (addsi3_insn_set_carry): New instruction.
10216 (subsi3_insn_set_carry): Likewise.
10217 (negsi2_insn_set_carry): Likewise.
10219 (cmp<mode>_sne): Likewise.
10220 (cbranch<mode>4): Use ordered_comparison_operator.
10221 (cbranch<mode>4_insn): Likewise.
10222 (cbranchsi4_btst_insn): Adjust.
10224 2016-10-11 Tom de Vries <tom@codesourcery.com>
10226 PR middle-end/77558
10227 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
10230 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10232 * tree.h (build_complex_type): Add second parameter with default.
10233 * tree.c (build_complex_type): Add NAMED second parameter and adjust
10234 recursive call. Create a TYPE_DECL only if NAMED is true.
10235 (build_common_tree_nodes): Pass true in calls to build_complex_type.
10237 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
10239 New avr-passes.def to register AVR specific passes.
10241 * config/avr/avr-passes.def: New file.
10242 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
10243 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
10244 (make_avr_pass_recompute_note): New proto.
10245 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
10246 (avr_pass_recompute_notes): Use anonymous namespace.
10247 (avr_register_passes): Remove function...
10248 (avr_option_override): ...and its call.
10250 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
10252 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
10253 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
10254 PTF_AVOID_BRANCHLIKELY_SPEED for others.
10255 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
10257 * config/mips/mips.c (mips_option_override): Enable the branch
10258 likely depending on the tune flags and optimization level.
10259 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
10260 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
10261 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
10262 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
10264 2016-10-11 Richard Biener <rguenther@suse.de>
10266 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
10267 (output_function): Properly stream the whole block tree.
10268 * lto-streamer-in.c (input_function): Likewise.
10270 2016-10-11 Marek Polacek <polacek@redhat.com>
10272 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
10274 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10276 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
10277 (evrp_dom_walker::before_dom_children): Infer and push new value
10278 ranges for x in y < x.
10280 2016-10-10 Joseph Myers <joseph@codesourcery.com>
10283 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
10284 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10285 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10286 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10287 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
10288 (IA64_NO_LIBGCC_TFMODE): Likewise.
10290 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10292 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
10295 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
10297 * config.gcc: Add aarch64-*-freebsd* support.
10298 * config.host: Likewise.
10299 * config/aarch64/aarch64-freebsd.h: New file.
10300 * config/aarch64/t-aarch64-freebsd: Ditto.
10302 2016-10-10 Jeff Law <law@redhat.com>
10304 PR tree-optimization/71947
10305 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
10306 B with A within a single statement.
10308 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10310 PR tree-optimization/77824
10311 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
10312 zero cost for copies.
10313 (find_candidates_dom_walker::before_dom_children): Replace
10314 MODIFY_EXPR with SSA_NAME.
10315 (replace_mult_candidate): Likewise.
10316 (replace_profitable_candidates): Likewise.
10318 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10320 * config/s390/s390.h: Wrap more macros args in brackets and fix
10322 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
10324 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
10326 2016-10-10 Andreas Schwab <schwab@suse.de>
10329 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
10330 pseudo is not DImode.
10332 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
10334 * common/config/arc/arc-common.c (arc_option_optimization_table):
10335 Remove compact casesi option.
10336 * config/arc/arc.c (arc_override_options): Use compact casesi
10337 option only for pre-ARCv2 cores.
10338 * doc/invoke.texi (mcompact-casesi): Update text.
10340 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10342 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
10343 Add macro to say we can efficiently handle overlapping unaligned
10345 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
10346 poor code for processors older than p8.
10348 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
10350 * gen-pass-instances.awk: Remove GNUism.
10352 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10354 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
10355 NULL of (*ipcp_transformations)][node->uid].
10357 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
10359 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
10360 (MALLOC_ABI_ALIGNMENT): Define.
10362 2016-10-09 Jakub Jelinek <jakub@redhat.com>
10364 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
10365 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
10366 VAR_OR_FUNCTION_DECL_P macros.
10367 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
10368 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
10369 chkp_find_bounds_1): Likewise.
10370 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
10371 * hsa-gen.c (get_symbol_for_decl): Likewise.
10372 * cgraphunit.c (check_global_declaration, analyze_functions,
10373 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
10375 * gimple-fold.c (can_refer_decl_in_current_unit_p,
10376 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
10378 * tree.c (set_decl_section_name, copy_node_stat,
10379 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
10380 merge_dllimport_decl_attributes, handle_dll_attribute,
10381 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
10382 verify_type): Likewise.
10383 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
10384 find_explicit_erroneous_behavior): Likewise.
10385 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
10386 * ipa.c (process_references): Likewise.
10387 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
10388 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
10389 notice_global_symbol, assemble_variable, mark_decl_referenced,
10390 build_constant_desc, output_constant_def_contents, do_assemble_alias,
10391 make_decl_one_only, default_section_type_flags,
10392 categorize_decl_for_section, default_encode_section_info): Likewise.
10393 * trans-mem.c (requires_barrier): Likewise.
10394 * gimple-expr.c (mark_addressable): Likewise.
10395 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
10396 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
10397 expand_debug_expr): Likewise.
10398 * tree-dump.c (dequeue_and_dump): Likewise.
10399 * ubsan.c (instrument_bool_enum_load): Likewise.
10400 * tree-pretty-print.c (print_declaration): Likewise.
10401 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10402 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
10403 * asan.c (asan_protect_global, instrument_derefs): Likewise.
10404 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
10405 pass_build_ssa::execute): Likewise.
10406 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
10407 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
10409 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
10411 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
10412 can_be_nonlocal, remap_decls, copy_debug_stmt,
10413 initialize_inlined_parameters, add_local_variables,
10414 reset_debug_binding, replace_locals_op): Likewise.
10415 * dse.c (can_escape): Likewise.
10416 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
10418 * tree-diagnostic.c (default_tree_printer): Likewise.
10419 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
10420 unpack_ts_decl_with_vis_value_fields,
10421 lto_input_ts_decl_common_tree_pointers): Likewise.
10422 * builtins.c (builtin_save_expr, fold_builtin_expect,
10423 readonly_data_expr): Likewise.
10424 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
10425 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
10427 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
10428 * gimplify.c (force_constant_size, gimplify_bind_expr,
10429 gimplify_decl_expr, gimplify_var_or_parm_decl,
10430 gimplify_compound_lval, gimplify_init_constructor,
10431 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
10432 gimplify_type_sizes): Likewise.
10433 * cgraphbuild.c (record_reference, record_type_list, mark_address,
10434 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
10435 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
10436 remove_unused_locals): Likewise.
10437 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
10438 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
10439 * function.c (instantiate_expr, instantiate_decls_1,
10440 setjmp_vars_warning, add_local_decl): Likewise.
10441 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
10443 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
10444 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
10445 optimize_va_list_gpr_fpr_size): Likewise.
10446 * tree-nrv.c (pass_nrv::execute): Likewise.
10447 * tsan.c (instrument_expr): Likewise.
10448 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
10449 * vtable-verify.c (verify_bb_vtables): Likewise.
10450 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
10451 get_ref_base_and_extent): Likewise.
10452 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
10454 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
10455 analyze_all_variable_accesses): Likewise.
10456 * tree-nested.c (get_nonlocal_debug_decl,
10457 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
10458 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
10459 get_local_debug_decl, convert_local_omp_clauses,
10460 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
10462 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
10463 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
10464 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
10465 dbxout_symbol, dbxout_common_check): Likewise.
10466 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
10467 string_constant): Likewise.
10468 * hsa.c (hsa_get_declaration_name): Likewise.
10469 * passes.c (rest_of_decl_compilation): Likewise.
10470 * tree-ssanames.c (make_ssa_name_fn): Likewise.
10471 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
10472 pack_ts_decl_with_vis_value_fields,
10473 write_ts_decl_common_tree_pointers): Likewise.
10474 * stor-layout.c (place_field): Likewise.
10475 * symtab.c (symtab_node::maybe_create_reference,
10476 symtab_node::verify_base, symtab_node::make_decl_local,
10477 symtab_node::copy_visibility_from,
10478 symtab_node::can_increase_alignment_p): Likewise.
10479 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
10480 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
10481 fortran_common, add_location_or_const_value_attribute,
10482 add_scalar_info, add_linkage_name, set_block_abstract_flags,
10483 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
10484 optimize_one_addr_into_implicit_ptr,
10485 optimize_location_into_implicit_ptr): Likewise.
10486 * gimple-low.c (record_vars_into): Likewise.
10487 * ipa-visibility.c (update_vtable_references): Likewise.
10488 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
10490 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
10491 DFS::DFS_write_tree_body, write_symbol): Likewise.
10492 * langhooks.c (lhd_warn_unused_global_decl,
10493 lhd_set_decl_assembler_name): Likewise.
10494 * attribs.c (decl_attributes): Likewise.
10495 * except.c (output_ttype): Likewise.
10496 * varpool.c (varpool_node::get_create, ctor_for_folding,
10497 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
10498 * fold-const.c (fold_unary_loc): Likewise.
10499 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
10500 ipa_find_agg_cst_from_init): Likewise.
10501 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
10502 expand_omp_target, lower_omp_regimplify_p,
10503 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
10504 find_link_var_op): Likewise.
10505 * tree-chrec.c (chrec_contains_symbols): Likewise.
10506 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
10507 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
10508 execute_fixup_cfg): Likewise.
10510 PR tree-optimization/77901
10511 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
10512 if ranges[i].exp is SSA_NAME when looking for >= and only when
10513 ranges[i].exp is NULL or SSA_NAME when looking for the other
10516 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10518 * ipa-cp.c (ipcp_alignment_lattice): Remove.
10519 (ipcp_param_lattices): Remove field alignment.
10520 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
10521 (set_all_contains_variable): Remove call to
10522 ipcp_alignment_lattice::set_to_bottom.
10523 (initialize_node_lattices): Likewise.
10524 (propagate_alignment_accross_jump_function): Remove.
10525 (propagate_constants_accross_call): Remove call to
10526 propagate_alignment_accross_jump_function.
10527 (ipcp_store_alignment_results): Remove.
10528 (ipcp_driver): Remove call to ipcp_store_alignment_results.
10529 (propagate_bits_accross_jump_function): Handle ancestor jump function.
10530 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
10531 pretty-printing of alignment jump function.
10532 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
10533 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
10534 alignments and remove computing ipa_alignment jump function.
10535 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
10536 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
10537 (ipa_read_jump_function): Remove reading of ipa_alignment.
10538 (write_ipcp_transformation_info): Remove streaming for alignment
10539 propagation summary.
10540 (read_ipcp_transformation_info): Remove reading of alignment
10541 propagation summary.
10542 (ipcp_update_alignments): Remove.
10543 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
10545 (ipcp_transform_function): Remove call to ipcp_update_alignments()
10546 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
10547 * ipa-prop.h (ipa_alignment): Remove.
10548 (ipa_jump_func): Remove field alignment.
10549 (ipcp_transformation_summary): Remove field alignments.
10550 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
10551 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
10552 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
10554 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
10556 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
10558 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
10560 (visium_expand_fp_cstore): Likewise.
10562 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10564 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
10565 * diagnostic.c (warning_at_rich_loc_n): New function.
10566 (diagnostic_n_impl_richloc): Likewise.
10567 (diagnostic_n_impl): Move most of the function to
10568 diagnostic_n_impl_richloc and call it.
10570 2016-10-08 Jakub Jelinek <jakub@redhat.com>
10572 * gen-pass-instances.awk: Rewritten.
10573 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
10574 $(PASSES_EXTRA) after passes.def to the script.
10575 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
10576 * config/i386/i386-passes.def: New file.
10577 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
10578 make_pass_stv): Declare.
10579 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
10581 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
10583 (pass_stv::clone, pass_stv::set_pass_param): New methods.
10584 (pass_stv::timode_p): New non-static data member.
10585 (ix86_option_override): Don't register passes here.
10587 * doc/invoke.texi: Document accepting Else, fallthrough.
10589 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
10592 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
10593 FALLTHRU comment styles.
10595 2016-10-07 Andrew Pinski <apinski@cavium.com>
10597 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
10598 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
10599 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
10601 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
10603 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
10605 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
10606 (AARCH64_ARCH): Likewise.
10607 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
10609 (AARCH64_CORE): Likewise.
10610 (AARCH64_ARCH): Likewise.
10611 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
10612 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10613 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
10614 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10615 (AARCH64_ARCH): Likewise.
10616 (AARCH64_CORE): Likewise.
10617 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
10618 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
10619 (AARCH64_CORE): Likewise.
10620 (AARCH64_ARCH): Likewise.
10622 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10624 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
10625 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
10626 floating point type infrastructre, and -mfloat128 that enables the
10627 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
10628 if -mfloat128-type. Define __ibm128 to be long double by default.
10629 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
10630 the IEEE 128-bit floating point type infrastructure should
10631 automatically be enabled.
10632 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
10633 instead of -mfloat128 to enable KFmode.
10634 (rs6000_option_override_internal): Split the option -mfloat128
10635 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
10636 systems, automatically set -mfloat128-type, but don't enable it on
10637 other operating systems. Move setting the long double size and
10638 IEEE quad support before the IEEE 128-bit floating point changes.
10639 (rs6000_init_builtins): Do not create a unique type for __ibm128
10640 if long double is IBM extended double, instead rely on __ibm128
10641 being defined as 'long double'. If -mfloat128-type and not
10642 -mfloat128, create the KFmode type with an undocumented __ieee128
10644 (rs6000_init_libfuncs): Use -mfloat128-type instead of
10645 -mfloat128 for tests about the types, but keep tests for
10646 -mfloat128 to enable the keyword support.
10647 (rs6000_complex_function_value): Likewise.
10648 (rs6000_scalar_mode_supported_p): Likewise.
10649 (rs6000_floatn_mode): Likewise.
10650 (rs6000_c_mode_for_suffix): Likewise.
10651 (rs6000_opt_masks): Add -mfloat128-type.
10652 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
10653 -mfloat128-type being split from -mfloat128. Add
10654 -mfloat128-hardware, which was missing.
10655 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
10656 -mfloat128 and -mfloat128-type:
10657 (-mfloat128-type): Likewise.
10658 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
10659 that 64-bit Linux systems with enable -mfloat128-type by default
10661 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
10662 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
10663 -mfloat128-type instead of -mfloat128.
10664 (FLOAT128_2REG_P): Likewise.
10665 (MASK_FLOAT128_TYPE): Likewise.
10666 (ALTIVEC_ARG_MAX_RETURN): Likewise.
10667 (RS6000_BTM_FLOAT128): Likewise.
10668 (TARGET_FLOAT128): Poison old identifiers.
10669 (OPTION_MASK_FLOAT128): Likewise.
10670 (MASK_FLOAT128): Likewise.
10671 * config/rs6000/rs6000.md (FP): Likewise.
10672 (FLOAT128): Likewise.
10673 (fix_trunc<mode>di2): Likewise.
10674 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10675 (floatdi<mode>2): Likewise.
10676 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
10677 (neg<mode>2, FLOAT128 iterator): Likewise.
10678 (abs<mode>2, FLOAT128 iterator): Likewise.
10679 (ieee_128bit_negative_zero): Likewise.
10680 (ieee_128bit_vsx_neg<mode>2): Likewise.
10681 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10682 (ieee_128bit_vsx_abs<mode>2): Likewise.
10683 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10684 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10685 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10686 (extendiftf2): Likewise.
10687 (extendifkf2): Likewise.
10688 (extendtfkf2): Likewise.
10689 (trunciftf2): Likewise.
10690 (truncifkf2): Likewise.
10691 (trunckftf2): Likewise.
10692 (trunctfif2): Likewise.
10693 (extendkftf2): Likewise.
10694 (trunctfkf2): Likewise.
10696 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10698 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
10699 before merging in bytes to pass down to real_from_target.
10701 2016-10-07 Richard Biener <rguenther@suse.de>
10703 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
10705 (substitute_and_fold_dom_walker::before_dom_children):
10706 Substitute and fold before pass specific folding to avoid
10707 feeding that with SSA names that will be later released.
10708 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
10709 introduced by folding and visited by evaluate_stmt called during
10711 (likely_value): Likewise.
10712 (evaluate_stmt): Likewise.
10713 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
10714 (simplify_div_or_mod_using_ranges): Likewise.
10715 (simplify_min_or_max_using_ranges): Likewise.
10716 (simplify_abs_using_ranges): Likewise.
10717 (simplify_conversion_using_ranges): Likewise.
10718 (simplify_float_conversion_using_ranges): Likewise.
10719 (simplify_stmt_using_ranges): Likewise.
10721 2016-10-07 Marek Polacek <polacek@redhat.com>
10723 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
10724 FALLTHROUGH_LABEL_P here...
10725 (warn_implicit_fallthrough_r): ...not here.
10727 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
10729 PR tree-optimization/77880
10730 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
10733 2016-10-07 Marek Polacek <polacek@redhat.com>
10736 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
10738 2016-10-07 Richard Biener <rguenther@suse.de>
10740 * bitmap.h: Document constraints on bitmap modification while
10743 2016-10-07 Richard Biener <rguenther@suse.de>
10745 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
10746 * bitmap.h (bmp_iter_set): When advancing to the next element
10747 check that we didn't remove the current one.
10748 (bmp_iter_and): Likewise.
10749 (bmp_iter_and_compl): Likewise.
10750 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
10751 we currently iterate on but keep a one-level queue.
10752 * sched-deps.c (remove_from_deps): Do not clear current bit
10753 but keep a one-level queue.
10755 2016-10-07 Jakub Jelinek <jakub@redhat.com>
10757 PR tree-optimization/77664
10758 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
10759 for the other ranges.
10760 (optimize_range_tests_diff): Fix up formatting.
10761 (optimize_range_tests_var_bound): New function.
10762 (optimize_range_tests): Use it.
10764 2016-10-07 Martin Liska <mliska@suse.cz>
10766 * coverage.c (build_gcov_exit_decl): Fix priority what
10767 should be really 99.
10769 2016-10-07 Richard Biener <rguenther@suse.de>
10771 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
10772 vars in gimple_bind_vars but not in BLOCK_VARS.
10774 2016-10-07 Richard Biener <rguenther@suse.de>
10776 PR tree-optimization/77879
10777 * tree-ssa-structalias.c (handle_const_call): Properly handle
10779 (handle_pure_call): Likewise.
10781 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10783 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
10784 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
10787 2016-10-06 Andrew Pinski <apinski@cavium.com>
10789 * config/aarch64/aarch64-cores.def: Add a comment before each
10792 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10794 PR tree-optimization/77862
10795 * tree-vrp.c (add_equivalence): Use get_value_range so that
10796 num_vr_values is checked before accessing vr_values.
10798 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10800 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
10803 2016-10-05 Jeff Law <law@redhat.com>
10805 PR tree-optimization/71661
10806 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
10807 removal of a forwarder exposes a new natural loop.
10809 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
10811 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
10812 Introduce ssesuffix variable.
10813 (<mask_codefor><code><mode>3<mask_name>): Ditto.
10814 (*<code><mode>3): Ditto.
10816 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
10818 * postreload.c (reload_cse_simplify): Skip also USE when detecting
10821 2016-10-06 Richard Biener <rguenther@suse.de>
10823 PR tree-optimization/77855
10824 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
10825 instead of removing the current item while iterating over the set
10828 2016-10-06 James Clarke <jrtc27@jrtc27.com>
10829 Eric Botcazou <ebotcazou@adacore.com>
10832 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
10833 (classify_registers): Don't set it
10834 (function_arg_slotno): Don't initialize and test it. Tidy up.
10836 2016-10-06 Richard Biener <rguenther@suse.de>
10838 PR tree-optimization/77839
10839 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
10840 lattice transition.
10842 2016-10-06 Martin Liska <mliska@suse.cz>
10844 * gcc.c: Set -fprofile-update=atomic when profiling is
10845 enabled and -pthread is set. Warn when one combines
10846 -pthread and -fprofile-update=single for an app using
10849 2016-10-06 Martin Liska <mliska@suse.cz>
10852 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
10853 * gimple-ssa-strength-reduction.c (slsr_process_cast):
10854 Initialize a pointer to NULL.
10855 (slsr_process_copy): Likewise.
10856 * input.c (location_get_source_line): Likewise.
10857 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
10859 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
10861 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
10862 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
10863 (ix86_handle_option): Deleted handle of OPT_mpcommit.
10864 * config.gcc: Deleted pcommitintrin.h
10865 * config/i386/pcommitintrin.h: Deleted file.
10866 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
10867 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
10869 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
10871 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
10872 (PTA_PCOMMIT): Deleted define.
10873 (ix86_option_override_internal): Deleted handle of option.
10874 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
10875 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
10876 __builtin_ia32_pcommit): Deleted.
10877 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
10878 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
10879 (pcommit): Deleted instruction.
10880 * config/i386/i386.opt: Mention -mpcommit deprecation.
10881 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
10883 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
10886 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
10887 Remove wrong assert.
10888 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
10889 Use <round_constraint> as operand 1 constraint.
10891 2016-10-05 Jakub Jelinek <jakub@redhat.com>
10894 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
10895 (ubsan_instrument_float_cast): And not here.
10898 * ubsan.c (ubsan_ids): New GTY(()) array.
10899 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
10900 instead of static local counters.
10902 2016-10-05 Martin Sebor <msebor@redhat.com>
10905 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
10906 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
10907 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
10908 (default_printf_pointer_format): Define function.
10909 * targhooks.c (linux_printf_pointer_format): Define new function.
10910 * targhooks.h (linux_printf_pointer_format): Declare.
10911 (gnu_libc_printf_pointer_format): Remove declaration.
10913 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10915 * fold-const.c (native_encode_real): Fix logic for selecting offset
10916 to write to when BYTES_BIG_ENDIAN.
10918 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
10920 * builtins.c (fold_builtin_strchr): Remove function.
10921 (fold_builtin_strrchr): Likewise.
10922 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
10923 * gimple-fold.c (target_char_cst_p): New function.
10924 (gimple_fold_builtin_strchr) Add more foldings.
10925 (gimple_fold_builtin): Add index, strrchr, rindex cases.
10927 2016-10-05 Richard Biener <rguenther@suse.de>
10929 PR middle-end/77863
10930 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
10931 capture ids in c-exprs.
10933 2016-10-05 Richard Biener <rguenther@suse.de>
10935 PR middle-end/77826
10936 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
10937 with types_match for GIMPLE code gen to handle type mismatched
10938 constants properly.
10939 (dt_operand::gen): Adjust.
10940 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
10943 2016-10-05 Richard Biener <rguenther@suse.de>
10945 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
10947 2016-10-05 Richard Biener <rguenther@suse.de>
10949 PR middle-end/77842
10950 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
10952 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
10954 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
10955 version check to protect only DW_TAG_imported_module generation.
10957 2016-10-05 Richard Biener <rguenther@suse.de>
10959 PR middle-end/55152
10960 * match.pd (min(a,-a) -> -abs(a)): New pattern.
10962 2016-10-04 Ian Lance Taylor <iant@golang.org>
10964 * explow.c (allocate_dynamic_stack_space): Call
10965 do_pending_stack_adjust before handling flag_split_stack.
10967 2016-10-04 David Malcolm <dmalcolm@redhat.com>
10969 * genattrtab.c (make_internal_attr): Supply dummy column number to
10970 file_location ctor.
10972 * genoutput.c (init_insn_for_nothing): Likewise.
10973 * gensupport.c (add_define_attr): Likewise.
10974 * read-md.c (message_at_1): Print column number.
10975 (fatal_with_file_and_line): Likewise.
10976 (rtx_reader::read_char): Track column numbers.
10977 (rtx_reader::unread_char): Likewise.
10978 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
10979 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
10980 (rtx_reader::handle_file): Initialize m_read_md_colno.
10981 (rtx_reader::get_current_location): Supply column number to
10982 file_location ctor.
10983 * read-md.h (struct file_location): Add field "colno".
10984 (file_location::file_location): Likewise.
10985 (rtx_reader::get_colno): New accessor.
10986 (rtx_reader::m_read_md_colno): New field.
10987 (rtx_reader::m_last_line_colno): New field.
10989 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10991 * doc/extend.texi (Java Exceptions): Remove.
10992 (java_interface): Remove.
10994 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
10996 PR tree-optimization/77808
10997 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
10998 and addr are different before copying points-to information.
11000 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
11002 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
11003 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
11004 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
11005 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
11007 2016-10-04 Richard Biener <rguenther@suse.de>
11009 PR tree-optimization/77399
11010 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
11011 verify the target can convert.
11013 2016-10-04 Richard Biener <rguenther@suse.de>
11015 PR middle-end/77833
11016 * explow.c (plus_constant): Verify the mode of the constant
11017 pool offset before calling plus_constant.
11019 2016-10-04 Richard Biener <rguenther@suse.de>
11021 PR middle-end/77407
11022 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
11023 type support, mark with :C.
11024 (X / -X -> -1): Mark with :C.
11026 2016-10-04 Jakub Jelinek <jakub@redhat.com>
11028 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
11029 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
11030 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
11031 * doc/tm.texi: Regenerated.
11032 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
11033 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
11034 * config/darwin.h (JCR_SECTION_NAME): Remove.
11035 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
11036 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
11037 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
11038 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
11039 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
11040 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
11042 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11044 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
11045 between "because" and "param" in dump message in call to fprintf.
11047 2016-10-03 Jeff Law <law@redhat.com>
11049 PR tree-optimization/71550
11050 PR tree-optimization/71403
11051 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
11052 (profitable_jump_thread_path): Also return boolean indicating if
11053 the realized path will create an irreducible loop.
11054 Remove loop depth tests from 71403.
11055 (fsm_find_control_statement_thread_paths): Remove loop depth tests
11056 from 71403. If threading will create an irreducible loop, then
11057 throw away loop iteration and related information.
11059 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
11061 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
11062 -Woverloaded-virtual checks for warning options.
11063 * configure: Regenerate.
11065 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11067 PR preprocessor/77699
11068 * input.c (maybe_grow): Don't allocate one byte extra headroom.
11069 (get_next_line): Return false on error.
11070 (read_next_line): Removed, use get_next_line instead.
11071 (read_line_num): Don't copy the line.
11072 (location_get_source_line): Don't use static data.
11073 (selftest::test_reading_source_line): Add more test cases.
11075 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11078 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11080 * ifcvt.c (noce_try_avoid_const_materialization): New function.
11081 (noce_process_if_block): Use it.
11083 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11085 * doc/invoke.texi: Update -Wint-in-bool-context.
11087 2016-10-02 Jakub Jelinek <jakub@redhat.com>
11089 * dwarf2out.c (output_fde, output_call_frame_info,
11090 dwarf2out_do_cfi_startproc, set_indirect_string,
11091 gen_internal_sym, output_die, output_line_info): Use
11092 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
11093 ASM_GENERATE_INTERNAL_LABEL output.
11095 2016-10-01 Richard Biener <rguenther@suse.de>
11097 PR middle-end/77798
11098 * genmatch.c (get_operand_type): Add operand position arg
11099 and handle COND_EXPR comparison operand with fixed boolean_type_node.
11100 (expr::gen_transform): Adjust.
11101 (dt_simplify::gen_1): Likewise.
11103 2016-10-01 Jakub Jelinek <jakub@redhat.com>
11105 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
11106 comments. Simplify asserts, remove unnecessary conditions.
11108 (*<code><mode>3): Likewise.
11110 2016-09-30 Jakub Jelinek <jakub@redhat.com>
11112 * doc/invoke.texi (-Wregister): Document.
11114 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11116 * configure.ac: Split CHECKING_P into CHECKING_P and
11117 ENABLE_EXTRA_CHECKING.
11118 * configure: Regenerated.
11119 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
11120 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
11122 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
11125 * gcc.c (process_command): For @filename handling, output
11126 the correct name if the file does not exist.
11128 2016-09-30 Marek Polacek <polacek@redhat.com>
11130 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
11131 * config/alpha/predicates.md: Likewise.
11133 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11135 * ifcvt.c (noce_try_avoid_const_materialization): New function.
11136 (noce_process_if_block): Use it.
11138 2016-09-30 Martin Liska <mliska@suse.cz>
11140 * doc/invoke.texi: Document asan-use-after-return that
11141 it's disabled by default in runtime.
11143 2016-09-30 Richard Biener <rguenther@suse.de>
11145 * tree-vrp.c (intersect_ranges): If we failed to handle
11146 the intersection choose a constant singleton range if available.
11148 2016-09-30 Richard Biener <rguenther@suse.de>
11150 PR tree-optimization/77399
11151 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
11152 float <-> int conversions.
11154 2016-09-30 Alan Modra <amodra@gmail.com>
11156 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
11158 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11160 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
11161 ext_level before calling CPUID with 0x80000008.
11162 Simplify xgetbv checks.
11164 2016-09-29 David Malcolm <dmalcolm@redhat.com>
11166 * Makefile.in (OBJS): Add print-rtl-function.o.
11167 * print-rtl-function.c: New file.
11168 * print-rtl.h (print_rtx_function): New decl.
11170 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11173 * config/i386/cpuid.h (__get_cpuid_count): New.
11174 (__get_cpuid): Rename __level to __leaf.
11176 2016-09-29 Marek Polacek <polacek@redhat.com>
11178 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
11180 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
11183 * builtins.c (expand_builtin_memcmp): Don't swap args unless
11184 result is only being compared with zero.
11186 2016-09-29 Marek Polacek <polacek@redhat.com>
11188 * dwarf2out.c (loc_descriptor): Add fall through comment.
11189 (add_const_value_attribute): Likewise.
11191 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
11193 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
11194 with "v6t2". Move "arch" attribute above "pool_range".
11195 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
11197 (*thumb2_movhi_vfp): Likewise.
11198 (*arm_movhi_fp16): Likewise.
11199 (*thumb2_movhi_fp16): Likewise.
11200 (*arm_movsi_vfp): Remove "arch" attribute.
11201 (*thumb2_movsi_vfp): Likewise.
11203 2016-09-29 Martin Liska <mliska@suse.cz>
11205 * doc/extend.texi: Remove limitation of Objective C for
11206 __attribute__((constructor)) and __attribute__((destructor)).
11208 2016-09-29 Richard Biener <rguenther@suse.de>
11210 PR tree-optimization/77768
11211 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11212 Handle stores to readonly memory when removing redundant stores.
11214 2016-09-29 Richard Biener <rguenther@suse.de>
11216 PR middle-end/77407
11217 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
11218 X / -X -> -1 simplifications.
11220 2016-09-29 Richard Biener <rguenther@suse.de>
11222 PR middle-end/55152
11223 * match.pd: Add max(a,-a) -> abs(a) pattern.
11224 * tree-ssa-phiopt.c (minmax_replacement): Disable for
11225 HONOR_SIGNED_ZEROS types.
11227 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
11229 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
11230 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
11232 2016-09-29 Richard Biener <rguenther@suse.de>
11234 * tree-vrp.c (set_defs_to_varying): New helper avoiding
11235 writing to vr_const_varying.
11236 (vrp_initialize): Call it.
11237 (vrp_visit_stmt): Likewise.
11238 (evrp_dom_walker::before_dom_children): Likewise.
11240 2016-09-29 Richard Biener <rguenther@suse.de>
11242 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
11243 constructors with vector elements.
11245 2016-09-29 Richard Biener <rguenther@suse.de>
11247 PR tree-optimization/77768
11248 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
11249 with stores to a place we know has a constant value.
11251 2016-09-29 Alan Modra <amodra@gmail.com>
11253 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
11254 * doc/invoke.texi: Document it.
11255 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
11256 (rs6000_passes_float): Comment.
11257 (rs6000_passes_long_double): New static var.
11258 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
11259 (init_cumulative_args): Set up to emit fp .gnu_attribute for
11260 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
11261 to include fp values returned in vectors.
11262 Set rs6000_passes_long_double.
11263 (rs6000_function_arg_advance_1): Likewise for function args.
11264 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
11265 and SPE. Emit long double tag value too.
11266 (rs6000_opt_vars): Add gnu-attr.
11267 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
11268 * configure: Regenerate.
11269 * config.in: Regenerate.
11271 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11273 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
11275 (format_floating, format_string, format_directive,
11276 get_destination_size, pass_sprintf_length::handle_gimple_call):
11279 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11281 * gimple-ssa-sprintf.c: Fix comment formatting.
11282 (format_integer): Use is_gimple_assign.
11283 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
11284 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
11285 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
11286 (pass_sprintf_length::execute): Use is_gimple_call.
11288 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11290 * gimple-fold.c (gimple_fold_builtin): After failing to fold
11291 strchr, also try the generic folding.
11293 2016-09-28 Martin Sebor <msebor@redhat.com>
11296 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
11299 2016-09-28 Martin Sebor <msebor@redhat.com>
11301 PR middle-end/77683
11302 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
11303 length modifier is not expected.
11304 (format_floating): Ignore l length modifier and fail gracefuly
11305 when it isn't one of the other expected ones.
11307 2016-09-28 Martin Sebor <msebor@redhat.com>
11310 * varasm.c (assemble_addr_to_section): Increase local buffer size.
11312 2016-09-27 Richard Biener <rguenther@suse.de>
11314 * dwarf2out.c (cu_die_list): New global.
11315 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
11316 main_comp_unit_die to cu_die_list if we created it.
11317 Move break_out_includes ...
11318 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
11321 2016-09-28 Richard Biener <rguenther@suse.de>
11323 * dwarf2out.c (struct die_struct): Add removed flag.
11324 (lookup_type_die): If the DIE is marked as removed, clear
11325 TYPE_SYMTAB_DIE and return NULL.
11326 (lookup_decl_die): If the DIE is marked as removed, remove it
11327 from the hash and return NULL.
11328 (mark_removed): New helper.
11329 (prune_unused_types_prune): Call it for removed DIEs.
11330 (gen_subprogram_die): Move the premark_used_types call to after
11331 DIEs for the functions scopes are generated.
11332 (process_scope_var): Do not re-create pruned types or type decls.
11333 Make sure to also re-parent type decls.
11334 (dwarf2out_finish): Move unused type pruning and debug_types
11336 (dwarf2out_early_finish): ... here.
11338 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11340 * config/arc/arc-c.c: New file.
11341 * config/arc/arc-c.def: Likewise.
11342 * config/arc/t-arc: Likewise.
11343 * config.gcc: Include arc-c.o as c and cpp object.
11344 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
11345 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
11346 arc_cpu_cpp_builtins.
11348 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11350 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
11351 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
11353 2016-09-28 Nathan Sidwell <nathan@acm.org>
11355 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
11358 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11360 PR tree-optimization/61056
11361 * gimple-fold.c (gimple_fold_builtin_strchr):
11362 New function to optimize strchr (s, 0) to strlen.
11363 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
11365 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
11367 PR tree-optimization/77724
11368 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
11369 Add tree_fits_shwi_p check.
11371 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11373 * auto-inc-dec.c (try_merge): Remove break after return.
11374 * cselib.c (autoinc_split): Likewise.
11375 * explow.c (promote_mode): Likewise.
11376 * fixed-value.c (fixed_arithmetic): Likewise.
11377 * hsa.c (hsa_internal_fn::get_arity): Likewise.
11378 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
11379 * trans-mem.c (get_attrs_for): Likewise.
11380 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
11381 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
11382 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
11383 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
11384 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
11385 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
11386 * config/cris/cris.c (cris_op_str): Likewise.
11387 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
11388 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
11390 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
11392 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
11393 IFN_GOACC_REDUCTION_CODES): New.
11394 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
11395 ifn_goacc_reduction_kind): Use them.
11396 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
11397 of internal functions, when applicable.
11399 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
11401 * config/mips/constraints.md (d): Fix documentation.
11402 * doc/md.texi (Machine Constraints): Update accordingly.
11404 2016-09-27 Richard Biener <rguenther@suse.de>
11406 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
11407 cur_line_info_table initialization ...
11408 (dwarf2out_assembly_start): ... here.
11410 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
11412 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
11413 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
11414 (*thumb2_movhi_vfp): Likewise.
11415 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
11416 template. Expand predicable attribute to mark VMOV.F16 as not
11417 predicable. Add "arch" attribute.
11418 (*thumb2_movhi_fp16): Likewise.
11419 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
11420 (*thumb2_movsi_vfp): Add "arch" attribute.
11422 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
11424 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
11427 2016-09-27 Marek Polacek <polacek@redhat.com>
11429 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
11432 * config/c6x/c6x.h: Adjust fall through comment.
11433 * config/sh/sh.c (final_prescan_insn): Likewise.
11434 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
11435 (visium_expand_fp_cstore): Likewise.
11437 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11439 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
11440 expected by -Wimplicit-fallthrough.
11441 (thumb1_size_rtx_costs): Likewise.
11442 (thumb2_reorg): Likewise.
11443 (tls_mentioned_p): Add "Fall through" comment.
11444 (thumb2_reorg): Likewise.
11445 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
11446 comment form expected by -Wimplicit-fallthrough.
11448 2016-09-27 Martin Liska <mliska@suse.cz>
11450 PR gcov-profile/46266
11451 * input.h (RESERVED_LOCATION_P): New macro.
11452 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
11453 instread of comparison with UNKNOWN_LOCATION.
11455 2016-09-27 Richard Biener <rguenther@suse.de>
11457 PR tree-optimization/77745
11458 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11459 When removing redundant stores make sure to check compatibility
11460 of the TBAA state for downstream accesses.
11461 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
11462 value-numbering virtual operands for store matches.
11464 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11467 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
11468 movrt patterns. Match them before anything else in the SET case.
11470 2016-09-27 Martin Liska <mliska@suse.cz>
11472 PR gcov-profile/7970
11473 PR gcov-profile/16855
11474 PR gcov-profile/44779
11475 * coverage.c (build_gcov_exit_decl): New function.
11476 (coverage_obj_init): Call the function and generate __gcov_exit
11478 * doc/gcov.texi: Document when __gcov_exit function is called.
11480 2016-09-27 Marek Polacek <polacek@redhat.com>
11483 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11484 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
11485 -Wno-error instead of -Wno-implicit-fallthrough.
11487 2016-09-27 Martin Liska <mliska@suse.cz>
11490 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
11492 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11494 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
11495 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
11496 comments. Remove break after return.
11497 (ix86_fp_compare_code_to_integer, has_dispatch,
11498 ix86_simd_clone_usable): Remove break after return.
11500 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11502 PR rlt-optimization/77714
11503 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
11506 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
11509 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
11510 extract_range_from_unary_expr to convert value_range.
11511 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
11512 (extract_range_from_unary_expr): This.
11513 * tree-vrp.h (extract_range_from_unary_expr): Declare.
11515 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
11517 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
11519 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11521 * config/i386/i386.c (ix86_print_operand)
11522 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
11523 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
11524 (epilogue_renumber): Likewise.
11526 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
11528 PR middle-end/77719
11529 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
11530 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
11532 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
11534 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11535 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
11536 is_mm_seq_cst, is_mm_sync): Move to ...
11537 * memmodel.h: This. New file.
11538 * builtins.c: Include memmodel.h.
11539 * optabs.c: Likewise.
11540 * tsan.c: Likewise.
11541 * config/aarch64/aarch64.c: Likewise.
11542 * config/alpha/alpha.c: Likewise.
11543 * config/arm/arm.c: Likewise.
11544 * config/i386/i386.c: Likewise.
11545 * config/ia64/ia64.c: Likewise.
11546 * config/mips/mips.c: Likewise.
11547 * config/rs6000/rs6000.c: Likewise.
11548 * config/sparc/sparc.c: Likewise.
11549 * genconditions.c: Include memmodel.h in generated file.
11550 * genemit.c: Likewise.
11551 * genoutput.c: Likewise.
11552 * genpeep.c: Likewise.
11553 * genpreds.c: Likewise.
11554 * genrecog.c: Likewise.
11556 2016-09-26 David Malcolm <dmalcolm@redhat.com>
11558 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
11559 "c" instead when parsing characters. Move operand parsing into...
11560 (read_rtx_operand): ...this new function, renaming "i" to "idx",
11561 and tightening the scope of various locals.
11563 2016-09-26 Liu Hao <lh_mouse@126.com>
11565 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
11567 2016-09-26 Marek Polacek <polacek@redhat.com>
11569 * system.h: Use __has_attribute to check whether the fallthrough
11570 attribute is supported.
11572 2016-09-26 Marek Polacek <polacek@redhat.com>
11574 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
11575 gimple_call_internal_p.
11576 * ipa-split.c (find_return_bb): Likewise.
11577 (execute_split_functions): Likewise.
11578 * omp-low.c (dump_oacc_loop_part): Likewise.
11579 (oacc_loop_xform_head_tail): Likewise.
11580 * predict.c (predict_loops): Likewise.
11581 * sanopt.c (pass_sanopt::execute): Likewise.
11582 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
11583 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
11584 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
11585 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
11586 (expand_ifn_va_arg): Likewise.
11587 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11588 (optimize_mask_stores): Likewise.
11589 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
11590 (vect_transform_stmt): Likewise.
11591 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
11592 * tsan.c (instrument_memory_accesses): Likewise.
11594 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11595 Alexander Monakov <amonakov@ispras.ru>
11597 * regrename.c (rename_chains): Check
11598 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
11599 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
11600 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11602 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11604 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
11605 (s390_sched_score): Likewise.
11607 2016-09-26 Martin Liska <mliska@suse.cz>
11609 * doc/gcov.texi: Update program output of gcov tool.
11611 2016-09-26 Martin Liska <mliska@suse.cz>
11613 PR gcov-profile/23332
11614 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
11615 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
11616 * value-prof.c (dump_histogram_value): Do not handle
11617 HIST_TYPE_CONST_DELTA.
11618 (stream_in_histogram_value): Likewise.
11619 (gimple_find_values_to_profile): Likewise.
11620 * value-prof.h (enum hist_type): Likewise.
11622 2016-09-26 Martin Liska <mliska@suse.cz>
11624 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
11625 from default sanitize recover values.
11626 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
11627 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
11628 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
11630 * opts.c (finish_options): Do a generic loop over options
11631 that can be recovered.
11632 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
11634 (common_handle_option): Likewise.
11635 * opts.h: Declare can_recover to sanitizer_opts_s.
11637 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
11639 * target.def(elf_flags_numeric): Change documentation to present tense.
11640 * doc/tm.texi: Regenerate.
11642 2016-09-26 Marek Polacek <polacek@redhat.com>
11645 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11646 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
11647 -Wno-switch-fallthrough.
11648 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
11649 (expand_builtin): Likewise.
11650 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
11651 * convert.c (convert_to_real_1): Likewise.
11652 (convert_to_integer_1): Likewise.
11653 * final.c (output_alternate_entry_point): Likewise.
11654 * genattrtab.c (make_canonical): Likewise.
11655 (write_test_expr): Likewise.
11656 * genpreds.c (validate_exp): Likewise.
11657 * gimple-ssa-strength-reduction.c
11658 (find_candidates_dom_walker::before_dom_children): Likewise.
11659 * godump.c (go_format_type): Likewise.
11660 * reload1.c (elimination_effects): Likewise.
11661 * resource.c (mark_referenced_resources): Likewise.
11662 (mark_set_resources): Likewise.
11663 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
11664 * varasm.c (output_addressed_constants): Likewise.
11666 2016-09-26 Marek Polacek <polacek@redhat.com>
11669 * common.opt (Wimplicit-fallthrough): New option.
11670 * doc/extend.texi: Document statement attributes and the fallthrough
11672 * doc/invoke.texi: Document -Wimplicit-fallthrough.
11673 * gimple.h (gimple_call_internal_p): New function.
11674 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
11675 (struct label_entry): New struct.
11676 (find_label_entry): New function.
11677 (case_label_p): New function.
11678 (collect_fallthrough_labels): New function.
11679 (last_stmt_in_scope): New function.
11680 (should_warn_for_implicit_fallthrough): New function.
11681 (warn_implicit_fallthrough_r): New function.
11682 (maybe_warn_implicit_fallthrough): New function.
11683 (expand_FALLTHROUGH_r): New function.
11684 (expand_FALLTHROUGH): New function.
11685 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
11686 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
11687 (gimplify_label_expr): New function.
11688 (gimplify_case_label_expr): Set location.
11689 (gimplify_expr): Call gimplify_label_expr.
11690 * internal-fn.c (expand_FALLTHROUGH): New function.
11691 * internal-fn.def (FALLTHROUGH): New internal function.
11692 * langhooks.c (lang_GNU_OBJC): New function.
11693 * langhooks.h (lang_GNU_OBJC): Declare.
11694 * system.h (gcc_fallthrough): Define.
11695 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
11696 * tree.h (FALLTHROUGH_LABEL_P): Define.
11698 2016-09-26 Richard Biener <rguenther@suse.de>
11700 * dwarf2out.c (stripattributes): Remove unused function.
11701 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
11702 Push dwarf_split_debug_info handling into init_sections_and_labels.
11703 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
11704 (DEBUG_MACRO_SECTION_FLAGS): Remove.
11705 (debug_macinfo_section_name): New global.
11706 (output_macinfo): Use debug_macinfo_section_name.
11707 (init_sections_and_labels): Split out section and label generation
11708 from dwarf2out_init. Set debug_macinfo_section_name.
11709 (dwarf2out_init): Move text section label generation and emission
11711 (dwarf2out_assembly_start): ... here.
11712 (dwarf2out_finish): Call init_sections_and_labels before DWARF
11715 2016-09-26 Richard Biener <rguenther@suse.de>
11718 * cgraphunit.c (analyze_functions): Before early removing
11719 global vars calls the late_global_decl debug handler mark
11720 the variable as readonly.
11722 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11725 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
11726 (sh_rtx_costs): Handle SET of movt and movrt patterns.
11727 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
11728 declare new overloads.
11729 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
11732 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11734 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
11735 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
11737 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
11739 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
11740 * configure: Regenerate.
11742 2016-09-24 Marek Polacek <polacek@redhat.com>
11745 * doc/invoke.texi: Document -Wbool-operation.
11747 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11749 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
11750 * config/rs6000/rs6000.c (expand_block_compare): New function used by
11751 cmpmemsi pattern to do builtin expansion of memcmp ().
11752 (compute_current_alignment): Add helper function for
11753 expand_block_compare used to compute alignment as the compare proceeds.
11754 (select_block_compare_mode): Used by expand_block_compare to select
11755 the mode used for reading the next chunk of bytes in the compare.
11756 (do_load_for_compare): Used by expand_block_compare to emit the load
11757 insns for the compare.
11758 (rs6000_emit_dot_insn): Moved this function to avoid a forward
11759 reference from expand_block_compare ().
11760 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
11761 prototype for this function.
11762 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
11763 target option for controlling how much code inline expansion of
11764 memcmp() will be allowed to generate.
11766 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11768 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
11769 hook_bool_mode_false, hook_bool_mode_true,
11770 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
11771 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
11772 hook_bool_const_rtx_insn_const_rtx_insn_true,
11773 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
11774 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
11775 hook_bool_const_tree_hwi_hwi_const_tree_false,
11776 hook_bool_const_tree_hwi_hwi_const_tree_true,
11777 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
11778 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
11779 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
11780 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
11781 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
11782 hook_bool_const_tree_true, hook_bool_tree_tree_false,
11783 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
11784 hook_bool_rtx_insn_true, hook_bool_rtx_false,
11785 hook_bool_uintp_uintp_false,
11786 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
11787 hook_rtx_tree_int_null, hook_uint_mode_0,
11788 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
11789 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
11790 hook_constcharptr_const_rtx_insn_null,
11791 hook_constcharptr_const_tree_const_tree_null,
11792 hook_constcharptr_int_const_tree_null,
11793 hook_constcharptr_int_const_tree_const_tree_null,
11794 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
11795 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
11796 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
11798 * vec.h (vNULL): Extend comment to say = vNULL initialization
11799 isn't needed for static vars.
11801 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
11802 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
11803 = vNULL initialization of file scope vec.
11804 * passes.c (pass_tab, enabled_pass_uid_range_tab,
11805 disabled_pass_uid_range_tab): Likewise.
11806 * haifa-sched.c (sched_luids, h_i_d): Likewise.
11807 * tree-chkp-opt.c (check_infos): Likewise.
11808 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
11810 * vec.h (vnull::operator vec): Add constexpr keyword for
11813 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
11815 PR tree-optimization/77654
11816 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
11817 to duplicate_ssa_name_ptr_info.
11819 2016-09-23 David Malcolm <dmalcolm@redhat.com>
11821 PR preprocessor/77672
11822 * input.c (selftest::test_lexer_string_locations_simple): Update
11823 test to expect location information of the terminator character
11824 at the location of the final closing quote.
11825 (selftest::test_lexer_string_locations_hex): Likewise.
11826 (selftest::test_lexer_string_locations_oct): Likewise.
11827 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
11828 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
11829 (selftest::test_lexer_string_locations_ucn4): Likewise.
11830 (selftest::test_lexer_string_locations_ucn8): Likewise.
11831 (selftest::test_lexer_string_locations_u8): Likewise.
11832 (selftest::test_lexer_string_locations_utf8_source): Likewise.
11833 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
11834 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
11835 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
11836 (selftest::test_lexer_string_locations_macro): Likewise.
11837 (selftest::test_lexer_string_locations_long_line): Likewise.
11839 2016-09-23 Richard Biener <rguenther@suse.de>
11841 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
11842 virtual definition to virtual use if the call devirtualizes
11843 to a const or pure function.
11844 (visit_use): Also visit calls we can devirtualize to a
11845 const or pure function.
11847 2016-09-23 Richard Biener <rguenther@suse.de>
11849 PR tree-optimization/77697
11850 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
11851 signal error if we have sth ternary or unhandled.
11853 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11855 * config/arm/arm_neon.h (vabd_f16): New.
11889 (vcvt_f16_s16): New.
11890 (vcvt_f16_u16): New.
11891 (vcvt_s16_f16): New.
11892 (vcvt_u16_f16): New.
11893 (vcvtq_f16_s16): New.
11894 (vcvtq_f16_u16): New.
11895 (vcvtq_s16_f16): New.
11896 (vcvtq_u16_f16): New.
11897 (vcvta_s16_f16): New.
11898 (vcvta_u16_f16): New.
11899 (vcvtaq_s16_f16): New.
11900 (vcvtaq_u16_f16): New.
11901 (vcvtm_s16_f16): New.
11902 (vcvtm_u16_f16): New.
11903 (vcvtmq_s16_f16): New.
11904 (vcvtmq_u16_f16): New.
11905 (vcvtn_s16_f16): New.
11906 (vcvtn_u16_f16): New.
11907 (vcvtnq_s16_f16): New.
11908 (vcvtnq_u16_f16): New.
11909 (vcvtp_s16_f16): New.
11910 (vcvtp_u16_f16): New.
11911 (vcvtpq_s16_f16): New.
11912 (vcvtpq_u16_f16): New.
11913 (vcvt_n_f16_s16): New.
11914 (vcvt_n_f16_u16): New.
11915 (vcvtq_n_f16_s16): New.
11916 (vcvtq_n_f16_u16): New.
11917 (vcvt_n_s16_f16): New.
11918 (vcvt_n_u16_f16): New.
11919 (vcvtq_n_s16_f16): New.
11920 (vcvtq_n_u16_f16): New.
11928 (vmaxnmq_f16): New.
11932 (vminnmq_f16): New.
11934 (vmul_lane_f16): New.
11937 (vmulq_lane_f16): New.
11938 (vmulq_n_f16): New.
11945 (vrecpeq_f16): New.
11958 (vrsqrte_f16): New.
11959 (vrsqrteq_f16): New.
11961 (vrecpsq_f16): New.
11962 (vrsqrts_f16): New.
11963 (vrsqrtsq_f16): New.
11967 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11969 * config.gcc (extra_headers): Add arm_fp16.h
11970 * config/arm/arm_fp16.h: New.
11971 * config/arm/arm_neon.h: Include "arm_fp16.h".
11973 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11975 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
11977 (vmulf): New (v8hf, v4hf variants).
11978 (vfma): New (v8hf, v4hf variants).
11979 (vfms): New (v8hf, v4hf variants).
11980 (vsub): New (v8hf, v4hf variants).
11981 (vcage): New (v8hf, v4hf variants).
11982 (vcagt): New (v8hf, v4hf variants).
11983 (vcale): New (v8hf, v4hf variants).
11984 (vcalt): New (v8hf, v4hf variants).
11985 (vceq): New (v8hf, v4hf variants).
11986 (vcgt): New (v8hf, v4hf variants).
11987 (vcge): New (v8hf, v4hf variants).
11988 (vcle): New (v8hf, v4hf variants).
11989 (vclt): New (v8hf, v4hf variants).
11990 (vceqz): New (v8hf, v4hf variants).
11991 (vcgez): New (v8hf, v4hf variants).
11992 (vcgtz): New (v8hf, v4hf variants).
11993 (vcltz): New (v8hf, v4hf variants).
11994 (vclez): New (v8hf, v4hf variants).
11995 (vabd): New (v8hf, v4hf variants).
11996 (vmaxf): New (v8hf, v4hf variants).
11997 (vmaxnm): New (v8hf, v4hf variants).
11998 (vminf): New (v8hf, v4hf variants).
11999 (vminnm): New (v8hf, v4hf variants).
12000 (vpmaxf): New (v4hf variant).
12001 (vpminf): New (v4hf variant).
12002 (vpadd): New (v4hf variant).
12003 (vrecps): New (v8hf, v4hf variants).
12004 (vrsqrts): New (v8hf, v4hf variants).
12005 (vabs): New (v8hf, v4hf variants).
12006 (vneg): New (v8hf, v4hf variants).
12007 (vrecpe): New (v8hf, v4hf variants).
12008 (vrnd): New (v8hf, v4hf variants).
12009 (vrnda): New (v8hf, v4hf variants).
12010 (vrndm): New (v8hf, v4hf variants).
12011 (vrndn): New (v8hf, v4hf variants).
12012 (vrndp): New (v8hf, v4hf variants).
12013 (vrndx): New (v8hf, v4hf variants).
12014 (vrsqrte): New (v8hf, v4hf variants).
12015 (vmul_lane): Add v4hf and v8hf variants.
12016 (vmul_n): Add v4hf and v8hf variants.
12017 (vext): New (v8hf, v4hf variants).
12018 (vcvts): New (v8hi, v4hi variants).
12019 (vcvts): New (v8hf, v4hf variants).
12020 (vcvtu): New (v8hi, v4hi variants).
12021 (vcvtu): New (v8hf, v4hf variants).
12022 (vcvts_n): New (v8hf, v4hf variants).
12023 (vcvtu_n): New (v8hi, v4hi variants).
12024 (vcvts_n): New (v8hi, v4hi variants).
12025 (vcvtu_n): New (v8hf, v4hf variants).
12026 (vbsl): New (v8hf, v4hf variants).
12027 (vcvtas): New (v8hf, v4hf variants).
12028 (vcvtau): New (v8hf, v4hf variants).
12029 (vcvtms): New (v8hf, v4hf variants).
12030 (vcvtmu): New (v8hf, v4hf variants).
12031 (vcvtns): New (v8hf, v4hf variants).
12032 (vcvtnu): New (v8hf, v4hf variants).
12033 (vcvtps): New (v8hf, v4hf variants).
12034 (vcvtpu): New (v8hf, v4hf variants).
12036 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12038 * config/arm/arm-builtins.c (hf_UP): New.
12040 (vfp_builtin_data): New. Update comment.
12041 (enum arm_builtins): Include "arm_vfp_builtins.def".
12042 (ARM_BUILTIN_VFP_PATTERN_START): New.
12043 (arm_init_vfp_builtins): New.
12044 (arm_init_builtins): Add arm_init_vfp_builtins.
12045 (arm_expand_vfp_builtin): New.
12046 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
12048 * config/arm/arm_vfp_builtins.def: New file.
12049 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
12050 (arm-builtins.o): Likewise.
12052 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12055 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
12056 from constant while creating value range.
12058 2016-09-23 Renlin Li <renlin.li@arm.com>
12060 * ira.c (ira): Move ira_use_lra_p initialization code to ...
12061 (ira_init_once): Here.
12063 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
12064 Jakub Jelinek <jakub@redhat.com>
12066 * hooks.h (hook_uint_uintp_false): Rename to...
12067 (hook_bool_uint_uintp_false): ... this.
12068 * hooks.c (hook_uint_uintp_false): Rename to...
12069 (hook_bool_uint_uintp_false): ... this.
12070 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
12071 instead of hook_uint_uintp_false.
12073 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12075 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
12076 (arm_init_builtins): Move body of a loop to the standalone
12077 function arm_init_neon_builtin.
12078 (arm_expand_neon_builtin_1): New. Update comment. Function body
12079 moved from arm_neon_builtin with some white-space fixes.
12080 (arm_expand_neon_builtin): Move code into the standalone function
12081 arm_expand_neon_builtin_1.
12083 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12085 * config/arm/iterators.md (VCVTHI): New.
12086 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
12087 (NEON_VAGLTE): New.
12088 (VFM_LANE_AS): New.
12090 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
12091 (V_HALF): Add V4HF. Fix white-space.
12092 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
12093 (V_s_elem): Likewise.
12094 (V_sz_elem): Fix white-space.
12095 (V_elem_ch): Likewise.
12097 (scalar_mul_constraint): Add V8HF and V4HF.
12098 (Is_float_mode): Fix white-space.
12099 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
12100 (q): Add HF. Fix white-space.
12103 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
12104 (neon_vfm_lane_as): New.
12105 * config/arm/neon.md (add<mode>3_fp16): New.
12106 (sub<mode>3_fp16): New.
12107 (mul<mode>3add<mode>_neon): New.
12108 (fma<VH:mode>4_intrinsic): New.
12109 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
12110 (fmsub<VH:mode>4_intrinsic): New.
12111 (<absneg_str><mode>2): New.
12112 (neon_v<absneg_str><mode>): New.
12113 (neon_v<fp16_rnd_str><mode>): New.
12114 (neon_vrsqrte<mode>): New.
12115 (neon_vpaddv4hf): New.
12116 (neon_vadd<mode>): New.
12117 (neon_vsub<mode>): New.
12118 (neon_vmulf<mode>): New.
12119 (neon_vfma<VH:mode>): New.
12120 (neon_vfms<VH:mode>): New.
12121 (neon_vc<cmp_op><mode>): New.
12122 (neon_vc<cmp_op><mode>_fp16insn): New
12123 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
12124 (neon_vca<cmp_op><mode>): New.
12125 (neon_vca<cmp_op><mode>_fp16insn): New.
12126 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
12127 (neon_vc<cmp_op>z<mode>): New.
12128 (neon_vabd<mode>): New.
12129 (neon_v<maxmin>f<mode>): New.
12130 (neon_vp<maxmin>fv4hf: New.
12131 (neon_<fmaxmin_op><mode>): New.
12132 (neon_vrecps<mode>): New.
12133 (neon_vrsqrts<mode>): New.
12134 (neon_vrecpe<mode>): New (VH variant).
12135 (neon_vdup_lane<mode>_internal): New.
12136 (neon_vdup_lane<mode>): New.
12137 (neon_vcvt<sup><mode>): New (VCVTHI variant).
12138 (neon_vcvt<sup><mode>): New (VH variant).
12139 (neon_vcvt<sup>_n<mode>): New (VH variant).
12140 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
12141 (neon_vcvt<vcvth_op><sup><mode>): New.
12142 (neon_vmul_lane<mode>): New.
12143 (neon_vmul_n<mode>): New.
12144 * config/arm/unspecs.md (UNSPEC_VCALE): New
12145 (UNSPEC_VCALT): New.
12146 (UNSPEC_VFMA_LANE): New.
12147 (UNSPECS_VFMS_LANE): New.
12149 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12151 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
12152 ("*extzv<mode><clobbercc_or_nocc>"):
12153 Correct a typo in a comment.
12155 ("*insv<mode>_zEC12", "*insv<mode>_z10")
12156 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
12157 ("*insv<mode>_zEC12_appendbitsleft")
12158 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
12159 ("*insv<mode>_z10_appendbitsleft"): Ditto.
12160 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
12161 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
12162 Provide pattern with operands switched.
12163 ("*pre_z10_extv<mode>"):
12164 Use new subst patterns.
12165 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
12166 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
12167 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
12168 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
12169 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
12170 ("*<risbg_n>_sidi_ior_and_lshiftrt")
12171 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
12173 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
12174 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
12175 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
12177 ("SINT"): New mode_iterator with SI, HI, QI.
12178 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
12179 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
12182 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12184 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
12185 new interface of s390_contiguous_bitmask_p.
12186 ("contiguous_bitmask_nowrap_operand"): New predicate.
12187 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
12188 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
12189 of s390_contiguous_bitmask_p.
12190 ("NxxDw"): Rename NxxDq constraint to NxxDw.
12191 ("NxxSw"): New constraint.
12192 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
12193 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
12195 (s390_contiguous_bitmask_nowrap_p): Export.
12196 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
12197 former s390_contiguous_bitmask_p.
12198 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
12199 detect contiguous bit ranges with wraparound. Change signature to
12200 return START and END position instead of POS and LENGTH.
12201 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
12202 ranges with wraparound.
12203 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
12204 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
12205 Adapt to new signature of s390_contiguous_bitmask_p.
12207 2016-09-23 Bin Cheng <bin.cheng@arm.com>
12209 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
12210 (create_intersect_range_checks): New.
12211 (vect_create_cond_for_alias_checks): Call above function.
12213 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12215 * config/arm/iterators.md (Code iterators): Fix some white-space
12219 (FCVT): Moved from vfp.md.
12220 (VCVT_HF_US_N): New.
12221 (VCVT_SI_US_N): New.
12226 (FCVTI32typename): Moved from vfp.md.
12227 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
12228 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
12229 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
12230 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
12231 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
12233 (fp16_rnd_str): New.
12234 (fp16_rnd_insn): New.
12235 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
12236 (UNSPEC_VCVT_HF_U_N): New.
12237 (UNSPEC_VCVT_SI_S_N): New.
12238 (UNSPEC_VCVT_SI_U_N): New.
12239 (UNSPEC_VCVTH_S): New.
12240 (UNSPEC_VCVTH_U): New.
12241 (UNSPEC_VCVTA_S): New.
12242 (UNSPEC_VCVTA_U): New.
12243 (UNSPEC_VCVTM_S): New.
12244 (UNSPEC_VCVTM_U): New.
12245 (UNSPEC_VCVTN_S): New.
12246 (UNSPEC_VCVTN_U): New.
12247 (UNSPEC_VCVTP_S): New.
12248 (UNSPEC_VCVTP_U): New.
12249 (UNSPEC_VCVTP_S): New.
12250 (UNSPEC_VCVTP_U): New.
12251 (UNSPEC_VRND): New.
12252 (UNSPEC_VRNDA): New.
12253 (UNSPEC_VRNDI): New.
12254 (UNSPEC_VRNDM): New.
12255 (UNSPEC_VRNDN): New.
12256 (UNSPEC_VRNDP): New.
12257 (UNSPEC_VRNDX): New.
12258 * config/arm/vfp.md (<absneg_str>hf2): New.
12259 (neon_vabshf): New.
12260 (neon_v<fp16_rnd_str>hf): New.
12261 (neon_vrndihf): New.
12266 (*mulsf3neghf_vfp): New.
12267 (*negmulhf3_vfp): New.
12268 (*mulsf3addhf_vfp): New.
12269 (*mulhf3subhf_vfp): New.
12270 (*mulhf3neghfaddhf_vfp): New.
12271 (*mulhf3neghfsubhf_vfp): New.
12273 (neon_vfmahf): New.
12274 (fmsubhf4_fp16): New.
12275 (neon_vfmshf): New.
12278 (neon_vsqrthf): New.
12279 (neon_vrsqrtshf): New.
12280 (FCVT): Move to iterators.md.
12281 (FCVTI32typename): Likewise.
12282 (neon_vcvth<sup>hf): New.
12283 (neon_vcvth<sup>si): New.
12284 (neon_vcvth<sup>_nhf_unspec): New.
12285 (neon_vcvth<sup>_nhf): New.
12286 (neon_vcvth<sup>_nsi_unspec): New.
12287 (neon_vcvth<sup>_nsi): New.
12288 (neon_vcvt<vcvth_op>h<sup>si): New.
12289 (neon_<fmaxmin_op>hf): New.
12291 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12293 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
12294 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
12295 ("*insv<mode>_zEC12_appendbitsleft")
12296 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
12297 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
12299 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12301 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
12302 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
12303 construct values without normalization.
12304 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
12305 static local lhs_ops to vNULL.
12307 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12308 Jiong Wang <jiong.wang@arm.com>
12310 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
12311 available when FP16 instructions are available.
12312 (output_move_vfp): Add support for 16-bit data moves.
12313 (arm_validize_comparison): Fix some white-space. Support HFmode
12314 by conversion to SFmode.
12315 * config/arm/arm.md (truncdfhf2): Fix a comment.
12316 (extendhfdf2): Likewise.
12318 (movsicc): Fix some white-space.
12320 (movsfcc): Fix some white-space.
12322 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
12323 instructions are available.
12324 (*thumb2_movhi_vfp): Likewise.
12325 (*arm_movhi_fp16): New.
12326 (*thumb2_movhi_fp16): New.
12327 (*movhf_vfp_fp16): New.
12328 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
12329 (*movhf_vfp): Likewise.
12330 (extendhfsf2): Enable when VFP FP16 instructions are available.
12331 (truncsfhf2): Enable when VFP FP16 instructions are available.
12333 2016-09-23 Martin Liska <mliska@suse.cz>
12335 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
12337 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12339 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
12341 (arm_evpc_neon_vtrn): Likewise.
12342 (arm_evpc_neon_vrev): Likewise.
12343 (arm_evpc_neon_vext): Likewise.
12344 * config/arm/arm_neon.h (vbsl_f16): New.
12347 (vdupq_n_f16): New.
12348 (vdup_lane_f16): New.
12349 (vdupq_lane_f16): New.
12353 (vmovq_n_f16): New.
12355 (vrev64q_f16): New.
12362 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
12363 (vdup_lane): New (v8hf, v4hf variants).
12364 (vext): New (v8hf, v4hf variants).
12365 (vbsl): New (v8hf, v4hf variants).
12366 * config/arm/iterators.md (VDQWH): New.
12368 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
12369 (Scalar_mul_8_16): Fix white-space.
12370 (Is_d_reg): Add V4HF and V8HF.
12371 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
12372 (neon_vdup_lane<mode>): New.
12373 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
12374 (*neon_vtrn<mode>_insn): Likewise.
12375 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
12376 (*neon_vzip<mode>_insn): Likewise
12377 (neon_vuzp<mode>_internal): Likewise.
12378 (*neon_vuzp<mode>_insn): Likewise
12379 * config/arm/vec-common.md (vec_perm_const<mode>): New.
12381 2016-09-23 Jiong Wang <jiong.wang@arm.com>
12382 Matthew Wahab <matthew.wahab@arm.com>
12384 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
12385 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
12386 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
12387 available. Also fix some white-space.
12388 * config/arm/vfp.md (*arm_movhi_vfp): New.
12389 (*thumb2_movhi_vfp): New.
12391 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12393 * config/arm/arm-c.c (arm_cpu_builtins): Define
12394 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
12395 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
12397 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12399 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
12400 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
12401 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
12402 arm_v8_2a_fp16_neon_hw.
12403 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
12406 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12408 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
12409 arm_fp16_alternative_ok and arm_fp16_none_ok.
12411 2016-09-23 Martin Liska <mliska@suse.cz>
12413 * ipa-icf.c (sem_variable::merge): Replace adress with address.
12415 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12417 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
12418 ("armv8.2-a"): New.
12419 ("armv8.2-a+fp16"): New.
12420 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
12421 (FL2_FP16INST): New.
12422 (FL2_FOR_ARCH8_2A): New.
12423 * config/arm/arm-tables.opt: Regenerate.
12424 * config/arm/arm.c (arm_arch8_2): New.
12425 (arm_fp16_inst): New.
12426 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
12427 for incompatible fp16-format settings.
12428 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
12429 (TARGET_NEON_FP16INST): New.
12430 (arm_arch8_2): Declare.
12431 (arm_fp16_inst): Declare.
12432 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
12433 march=armv8.2-a and march=armv8.2-a+fp16.
12434 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
12435 and armv8.2-a+fp16.
12436 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
12437 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
12439 2016-09-23 Martin Liska <mliska@suse.cz>
12441 * doc/extend.texi: Remove fused-madd from i386 target options.
12443 2016-09-23 Martin Liska <mliska@suse.cz>
12445 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12448 2016-09-23 Martin Liska <mliska@suse.cz>
12450 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12453 2016-09-23 Martin Liska <mliska@suse.cz>
12456 * config/i386/i386.c (ix86_option_override_internal): Change
12457 signature and return false when there's an error related to
12459 (release_options_strings): New function.
12460 (ix86_valid_target_attribute_tree): Call the function.
12462 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12464 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
12465 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
12466 (gen_hsa_ctor_assignment): Likewise.
12467 * print-tree.c (print_node): Likewise.
12468 * tree-dump.c (dequeue_and_dump): Likewise.
12469 * tree-sra.c (sra_modify_constructor_assign): Likewise.
12470 * expr.c (store_constructor): Likewise.
12471 * fold-const.c (operand_equal_p): Likewise.
12472 * tree-pretty-print.c (dump_generic_node): Likewise.
12473 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
12474 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
12476 2016-09-23 Richard Biener <rguenther@suse.de>
12478 * hooks.h (hook_uint_uintp_false): Declare.
12480 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12482 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
12483 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
12485 2016-09-22 Martin Sebor <msebor@redhat.com>
12488 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
12489 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
12490 (target_int_min): Correct computation.
12491 (format_integer): Use long long as the argument for the ll length
12493 (format_floating): Use target_int_max().
12494 (get_string_length): Same.
12495 (format_string): Avoid setting the bounded flag for strings
12497 (try_substitute_return_value): Avoid setting range info when
12498 the result isn't bounded.
12499 * varasm.c (assemble_name): Increase buffer size.
12501 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
12502 Terry Guo <terry.guo@arm.com>
12504 * target.def (elf_flags_numeric): New target hook.
12505 * targhooks.h (default_asm_elf_flags_numeric): New.
12506 * varasm.c (default_asm_elf_flags_numeric): New.
12507 (default_elf_asm_named_section): Use new target hook.
12508 * config/arm/arm.opt (mpure-code): New.
12509 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
12510 * config/arm/arm.c (arm_asm_init_sections): Add section
12511 attribute to default text section if -mpure-code.
12512 (arm_option_check_internal): Diagnose use of option with
12513 non supported targets and/or options.
12514 (arm_asm_elf_flags_numeric): New.
12515 (arm_function_section): New.
12516 (arm_elf_section_type_flags): New.
12517 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
12519 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
12520 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
12522 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
12524 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
12526 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12528 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
12529 * rtl.h: Adjust prototype.
12531 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12533 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
12534 (prev_active_insn): Likewise.
12535 (active_insn_p): Likewise.
12536 * rtl.h: Adjust prototypes.
12537 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
12538 * config/arc/arc.md: Likewise.
12539 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
12540 (branch_needs_nop_p): Likewise.
12541 (use_skip_p): Likewise.
12542 * config/sh/sh.c (gen_block_redirect): Likewise.
12543 (split_branches): Likewise.
12544 * reorg.c (optimize_skip): Likewise.
12545 (fill_simple_delay_slots): Likewise.
12546 (fill_slots_from_thread): Likewise.
12547 (relax_delay_slots): Likewise.
12548 * resource.c (mark_target_live_regs): Likewise.
12550 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12552 * config/cris/cris.c (cris_asm_output_case_end): Change argument
12553 type to rtx_insn *.
12554 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
12555 (prev_nonnote_nondebug_insn): Likewise.
12556 * config/cris/cris-protos.h: Adjust prototype.
12558 * jump.c (rtx_renumbered_equal_p): Adjust.
12560 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12562 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
12563 * rtl.h: Adjust prototype.
12564 * config/sh/sh.md: Adjust.
12565 * dwarf2out.c (add_var_loc_to_decl): Likewise.
12567 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12569 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
12570 (prev_nondebug_insn): Likewise.
12571 * loop-doloop.c (doloop_condition_get): Likewise.
12572 * rtl.h: Adjust prototype.
12573 * cfgloop.h: Likewise.
12575 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12577 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
12578 (prev_nonnote_insn): Likewise.
12579 * jump.c (reversed_comparison_code_parts): Likewise.
12580 (reversed_comparison): Likewise.
12581 * rtl.h: Adjust prototypes.
12582 * config/arc/arc.md: Adjust.
12583 * cse.c (find_comparison_args): Likewise.
12584 * reorg.c (redundant_insn): Change return type to rtx_insn *.
12585 (fix_reg_dead_note): Change argument type to rtx_insn *.
12586 (delete_prior_computation): Likewise.
12587 (delete_computation): Likewise.
12588 (fill_slots_from_thread): Adjust.
12589 (relax_delay_slots): Likewise.
12590 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12591 (simplify_relational_operation_1): Likewise.
12592 (simplify_ternary_operation): Likewise.
12594 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12596 * config/arc/arc-protos.h (arc_label_align): Change type of
12597 variables from rtx to rtx_insn *.
12598 * config/arc/arc.c (arc_label_align): Likewise.
12599 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
12600 * config/bfin/bfin.c (workaround_speculation): Likewise.
12601 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
12602 (find_last_same_clock): Likewise.
12603 (reorg_split_calls): Likewise.
12604 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
12605 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
12606 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
12607 (same_cmp_following_p): Likewise.
12608 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
12609 (same_cmp_following_p): Likwise.
12610 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
12611 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
12612 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
12613 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
12614 (rl78_alloc_physical_registers_cmp): Likewise.
12615 (rl78_alloc_physical_registers_umul): Likewise.
12616 (rl78_calculate_death_notes): Likewise.
12617 * config/s390/s390-protos.h (s390_label_align): Likewise.
12618 * config/s390/s390.c (s390_label_align): Likewise.
12619 * config/sh/sh.c (barrier_align): Likewise.
12620 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
12621 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
12622 (emit_cbcond_nop): Likewise.
12624 2016-09-22 Martin Liska <mliska@suse.cz>
12627 * ipa-icf.c (sem_variable::merge): Yield merge operation if
12628 alias address matters, not necessarily address of original.
12630 2016-09-22 Richard Biener <rguenther@suse.de>
12632 PR middle-end/77697
12633 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
12636 2016-09-22 Richard Biener <rguenther@suse.de>
12638 PR middle-end/77677
12639 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
12640 from constant folding results.
12641 (gimple_resimplify2): Likewise.
12642 (gimple_resimplify3): Likewise.
12644 2016-09-22 Richard Biener <rguenther@suse.de>
12646 PR middle-end/77678
12647 * expr.c (expand_expr_real_1): Guard array access against negative
12650 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12652 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
12654 (format_floating): Likewise.
12656 2016-09-22 Jakub Jelinek <jakub@redhat.com>
12659 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
12660 for all IFN_GOMP_SIMD_* internal fns, not just for
12661 IFN_GOMP_SIMD_ORDERED_*.
12663 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12666 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
12667 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
12668 instructions when you want to invert the test.
12669 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
12670 correct order for XXSEL.
12671 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
12672 for using XSCMP{EQ,GT,GE}DP.
12674 2016-09-21 David Malcolm <dmalcolm@redhat.com>
12676 * genconstants.c (main): Introduce noop_reader and convert call
12677 to read_md_files to a method call.
12678 * genenums.c (main): Likewise.
12679 * genmddeps.c (main): Likewise.
12680 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
12681 rtx_reader_ptr->get_top_level_filename ().
12682 (write_tm_preds_h): Likewise.
12683 (write_insn_preds_c): Likewise.
12684 * gensupport.c (class gen_reader): New subclass of rtx_reader.
12685 (rtx_handle_directive): Convert to...
12686 (gen_reader::handle_unknown_directive): ...this.
12687 (init_rtx_reader_args_cb): Convert return type from bool to
12688 rtx_reader *. Create a gen_reader instance, using it for the
12689 call to read_md_files. Return it if no errors occur.
12690 (init_rtx_reader_args): Convert return type from bool to
12692 * gensupport.h (init_rtx_reader_args_cb): Likewise.
12693 (init_rtx_reader_args_cb): Likewise.
12694 * read-md.c (struct file_name_list): Move to class rtx_reader.
12695 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
12696 (read_md_filename): Delete in favor of
12697 rtx_reader::m_read_md_filename.
12698 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
12699 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
12700 (base_dir): Delete in favor of rtx_reader::m_base_dir.
12701 (first_dir_md_include): Delete in favor of
12702 rtx_reader::m_first_dir_md_include.
12703 (last_dir_md_include_ptr): Delete in favor of
12704 rtx_reader::m_last_dir_md_include_ptr.
12705 (max_include_len): Delete.
12706 (rtx_reader_ptr): New.
12707 (fatal_with_file_and_line): Use get_filename and get_lineno
12708 accessors of rtx_reader_ptr.
12709 (require_char_ws): Likewise.
12710 (rtx_reader::read_char): New method, based on ::read_char.
12711 (rtx_reader::unread_char): New method, based on ::unread_char.
12712 (read_escape): Use get_filename and get_lineno accessors of
12714 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
12715 (read_string): Use get_filename and get_lineno accessors of
12717 (rtx_reader::rtx_reader): New ctor.
12718 (rtx_reader::~rtx_reader): New dtor.
12719 (handle_include): Convert from a function to...
12720 (rtx_reader::handle_include): ...this method, converting
12721 handle_directive from a callback to a virtual function.
12722 (handle_file): Likewise, converting to...
12723 (rtx_reader::handle_file): ...this method.
12724 (handle_toplevel_file): Likewise, converting to...
12725 (rtx_reader::handle_toplevel_file): ...this method.
12726 (rtx_reader::get_current_location): New method.
12727 (parse_include): Convert from a function to...
12728 (rtx_reader::add_include_path): ...this method, dropping redundant
12729 update to unused max_include_len.
12730 (read_md_files): Convert from a function to...
12731 (rtx_reader::read_md_files): ...this method, converting
12732 handle_directive from a callback to a virtual function.
12733 (noop_reader::handle_unknown_directive): New method.
12734 * read-md.h (directive_handler_t): Delete this typedef.
12735 (in_fname): Delete.
12736 (read_md_file): Delete.
12737 (read_md_lineno): Delete.
12738 (read_md_filename): Delete.
12739 (class rtx_reader): New class.
12740 (rtx_reader_ptr): New decl.
12741 (class noop_reader): New subclass of rtx_reader.
12742 (read_char): Reimplement in terms of rtx_reader::read_char.
12743 (unread_char): Reimplement in terms of rtx_reader::unread_char.
12744 (read_md_files): Delete.
12745 * read-rtl.c (read_rtx_code): Update for deletion of globals
12746 read_md_filename and read_md_lineno.
12748 2016-09-21 Jason Merrill <jason@redhat.com>
12750 * input.h (from_macro_definition_at): New.
12752 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12754 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
12756 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12758 PR tree-optimization/77550
12759 * tree-vect-stmts.c (create_array_ref): Change parameters.
12760 (get_group_alias_ptr_type): New function.
12761 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
12763 2016-09-21 Marek Polacek <polacek@redhat.com>
12765 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
12766 Add falls through comment.
12768 2016-09-21 Richard Biener <rguenther@suse.de>
12770 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
12771 (replace_child): Likewise.
12772 (remove_child_TAG): Adjust.
12773 (move_marked_base_types): Likewise.
12774 (prune_unused_types_prune): Clear die_sib of removed children.
12776 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
12779 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
12780 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
12782 2016-09-21 Richard Biener <rguenther@suse.de>
12784 PR tree-optimization/77648
12785 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
12787 (make_transitive_closure_constraints): Adjust comment.
12788 (make_any_offset_constraints): New function.
12789 (handle_rhs_call): Make sure to first expand a pointer to all
12790 subfields before transitively closing it.
12791 (handle_const_call): Likewise. Properly expand returned
12793 (handle_pure_call): Likewise.
12795 2016-09-21 Richard Biener <rguenther@suse.de>
12796 Jakub Jelinek <jakub@redhat.com>
12798 PR tree-optimization/77621
12799 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12800 group at non-vectorizable stmts.
12802 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12804 PR tree-optimization/72835
12805 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
12806 (make_new_ssa_for_all_defs): Likewise.
12807 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
12809 2016-09-20 Martin Sebor <msebor@redhat.com>
12811 PR middle-end/49905
12812 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
12813 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
12814 * config/linux.c (gnu_libc_printf_pointer_format): New function.
12815 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
12816 * config/sol2.c (solaris_printf_pointer_format): New function.
12817 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
12819 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
12820 * doc/tm.texi: Regenerate.
12821 * gimple-fold.h (get_range_strlen): New function.
12822 (get_maxval_strlen): Declare existing function.
12823 * gimple-fold.c (get_range_strlen): Add arguments and compute both
12824 maximum and minimum.
12825 (get_range_strlen): Define overload.
12826 (get_maxval_strlen): Adjust.
12827 * gimple-ssa-sprintf.c: New file and pass.
12828 * passes.def (pass_sprintf_length): Add new pass.
12829 * targhooks.h (default_printf_pointer_format): Declare new function.
12830 (gnu_libc_printf_pointer_format): Same.
12831 (solaris_libc_printf_pointer_format): Same.
12832 * targhooks.c (default_printf_pointer_format): Define new function.
12833 * tree-pass.h (make_pass_sprintf_length): Declare new function.
12834 * print-tree.c: Increase buffer size.
12836 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12838 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
12840 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12842 * common.opt: New option -fipa-vrp.
12843 * ipa-cp.c (ipa_get_vr_lat): New.
12844 (ipcp_vr_lattice::print): Likewise.
12845 (print_all_lattices): Call ipcp_vr_lattice::print.
12846 (ipcp_vr_lattice::meet_with): New.
12847 (ipcp_vr_lattice::meet_with_1): Likewise.
12848 (ipcp_vr_lattice::top_p): Likewise.
12849 (ipcp_vr_lattice::bottom_p): Likewsie.
12850 (ipcp_vr_lattice::set_to_bottom): Likewise.
12851 (set_all_contains_variable): Call VR set_to_bottom.
12852 (initialize_node_lattices): Init VR lattices.
12853 (propagate_vr_accross_jump_function): New.
12854 (propagate_constants_accross_call): Call
12855 propagate_vr_accross_jump_function.
12856 (ipcp_store_vr_results): New.
12857 (ipcp_driver): Handle VR.
12858 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
12859 (ipa_set_jf_unknown): Likewise.
12860 (ipa_compute_jump_functions_for_edge): Likewise.
12861 (ipa_node_params_t::duplicate): Likewise.
12862 (ipa_write_jump_function): Likewise.
12863 (ipa_read_jump_function): Likewise.
12864 (write_ipcp_transformation_info): Likewise.
12865 (read_ipcp_transformation_info): Likewise.
12866 (ipcp_update_vr): New.
12867 (ipcp_transform_function): Handle VR.
12868 * ipa-prop.h (struct ipa_vr): New.
12869 * cgraph.c: Include tree-vrp.h.
12870 * cgraphunit.c: Likewise.
12871 * ipa-utils.c: Likewise.
12873 * opts.c: Likewise.
12874 * toplev.c: Likewise.
12875 * ipa-devirt.c: Likewise.
12876 * ipa-inline-transform.c: Likewise.
12877 * ipa-inline.c: Likewise.
12878 * ipa-profile.c: Likewise.
12880 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12882 * doc/invoke.texi: Document -fdump-tree-evrp.
12883 * passes.def: Define new pass_early_vrp.
12884 * timevar.def: Define new TV_TREE_EARLY_VRP.
12885 * tree-pass.h (make_pass_early_vrp): New.
12886 * tree-ssa-propagate.c: Make replace_uses_in non static.
12887 * tree-ssa-propagate.h: Export replace_uses_in.
12888 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
12889 (extract_range_from_assert): Factor out
12890 extract_range_for_var_from_comparison_expr.
12891 (vrp_initialize_lattice): New.
12892 (vrp_initialize): Factor out vrp_initialize_lattice.
12893 (vrp_valueize): Fix it to reject complex value ranges.
12894 (vrp_free_lattice): New.
12895 (evrp_dom_walker::before_dom_children): Likewise.
12896 (evrp_dom_walker::after_dom_children): Likewise.
12897 (evrp_dom_walker::push_value_range): Likewise.
12898 (evrp_dom_walker::pop_value_range): Likewise.
12899 (execute_early_vrp): Likewise.
12900 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
12901 (make_pass_early_vrp): New.
12903 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12905 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
12906 instead of exact_log2.
12908 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12911 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
12912 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
12913 (ix86_add_stmt_cost): Penalize DFmode vector operations
12914 for !TARGET_VECTORIZE_DOUBLE.
12916 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
12918 * doc/invoke.texi (Warning Options): Simplify language.
12919 (Optimize Options): Complete sentence.
12921 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
12923 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
12926 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
12929 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
12930 inits on power8 and above, use the VMRGEW instruction instead of a
12933 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
12934 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
12937 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12939 * config/aarch64/arm_neon.h
12940 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
12941 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
12942 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
12944 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12946 * config/var/vax.h (ELIMINABLE_REGS): Define.
12947 (INITIAL_ELIMINATION_OFFSET): Define.
12949 2016-09-20 Jakub Jelinek <jakub@redhat.com>
12951 PR middle-end/77624
12952 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
12953 cast to void * if the cast is from some other pointer type.
12955 2016-09-20 Richard Biener <rguenther@suse.de>
12957 PR tree-optimization/77646
12958 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
12961 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12963 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
12964 attributes to all inlined functions and make them extern.
12966 2016-09-20 Richard Biener <rguenther@suse.de>
12968 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
12970 * debug.c (do_nothing_debug_hooks): Adjust.
12971 * dbxout.c (dbx_debug_hooks): Likewise.
12972 * sdbout.c (sdb_debug_hooks): Likewise.
12973 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
12974 (dwarf2out_finish): Move producer, filename and
12975 path annotation ...
12976 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
12977 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
12979 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
12982 * doc/invoke.texi: Document -Wint-in-bool-context.
12984 PR middle-end/77421
12985 * dwarf2out.c (output_loc_operands): Fix an assertion.
12987 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12989 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
12990 (CR_DECIMAL_DIG): New macro.
12992 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12994 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
12997 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
12999 PR rtl-optimization/77416
13000 * lra-remat.c (operand_to_remat): Process hard coded insn
13003 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13005 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
13006 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
13008 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
13010 * target.def (lra_p): Wordsmithing.
13011 * doc/tm.texi: Regenerate.
13013 2016-09-19 Jakub Jelinek <jakub@redhat.com>
13014 Jan Hubicka <jh@suse.cz>
13017 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
13018 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
13019 Call ultimate_alias_target just once, not up to 4 times.
13021 2016-09-19 Richard Biener <rguenther@suse.de>
13023 * dwarf2out.c (early_dwarf_finished): New global.
13024 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
13026 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
13027 if called from LTO exit early.
13028 (dwarf2out_late_global_decl): When being during the early
13029 debug phase do not add locations but only const value attributes.
13030 Adjust the way we generate early DIEs for LTO.
13032 2016-09-19 Richard Biener <rguenther@suse.de>
13034 PR middle-end/77605
13035 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
13036 proper niter to bound the loops.
13038 2016-09-19 Richard Biener <rguenther@suse.de>
13040 PR tree-optimization/77514
13041 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
13042 search for folded stmt.
13044 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
13046 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
13047 * tree-pass.h (make_pass_early_thread_jumps): Declare.
13048 * tree-ssa-threadbackward.c (fsm_find_thread_path,
13049 fsm_find_thread_path, profitable_jump_thread_path,
13050 fsm_find_control_statement_thread_paths,
13051 find_jump_threads_backwards): Add speed_p parameter.
13052 (pass_data_early_thread_jumps): New pass.
13053 (make_pass_early_thread_jumps): New function.
13055 2016-09-17 Andreas Schwab <schwab@suse.de>
13057 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
13058 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13060 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
13062 * recog.c (rest_of_handle_split_after_reload): Delete.
13063 (pass_split_after_reload::gate): New method.
13064 (pass_split_after_reload::execute): Call split_all_insns directly.
13066 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
13068 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
13069 parameters for functions taking long long arguments.
13071 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13074 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
13075 splat with truncate.
13077 2016-09-16 Jason Merrill <jason@redhat.com>
13079 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
13081 * hwint.c (exact_log2): Use pow2p_hwi.
13082 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
13083 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
13084 * builtins.c (get_object_alignment_2, get_object_alignment)
13085 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
13087 * calls.c (compute_argument_addresses, store_one_arg): Use
13089 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
13090 * combine.c (force_to_mode): Use least_bit_hwi.
13091 (contains_muldiv, find_split_point, combine_simplify_rtx)
13092 (simplify_if_then_else, simplify_set, force_to_mode)
13093 (if_then_else_cond, simplify_and_const_int_1)
13094 (simplify_compare_const): Use pow2p_hwi.
13095 * cse.c (fold_rtx): Use pow2p_hwi.
13096 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
13098 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
13099 (init_expmed_one_conv): Use pow2p_hwi.
13100 * expr.c (is_aligning_offset): Use pow2p_hwi.
13101 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
13102 (fold_binary_loc): Use pow2p_hwi.
13103 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
13104 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
13105 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
13106 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
13108 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
13109 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
13110 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
13111 * omp-low.c (oacc_loop_fixed_partitions)
13112 (oacc_loop_auto_partitions): Use least_bit_hwi.
13113 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
13114 * stor-layout.c (place_field): Use least_bit_hwi.
13115 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
13116 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
13117 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
13118 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
13119 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
13120 * tree-vect-data-refs.c (vect_analyze_group_access_1)
13121 (vect_grouped_store_supported, vect_grouped_load_supported)
13122 (vect_permute_load_chain, vect_shift_permute_load_chain)
13123 (vect_transform_grouped_load): Use pow2p_hwi.
13124 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
13125 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
13126 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
13128 * tsan.c (instrument_expr): Use least_bit_hwi.
13129 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
13131 2016-09-16 Andreas Schwab <schwab@suse.de>
13133 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
13134 OFFSET, not offset.
13135 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13137 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13140 * combine.c (rest_of_handle_combine): If any edges have been purged,
13141 free dominators if available.
13143 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13144 Eric Botcazou <ebotcazou@adacore.com>
13146 PR middle-end/77594
13147 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
13148 through into expand_addsub_overflow after expand_neg_overflow.
13150 2016-09-15 David Malcolm <dmalcolm@redhat.com>
13152 * diagnostic-show-locus.c
13153 (selftest::test_fixit_insert_containing_newline): New function.
13154 (selftest::test_fixit_replace_containing_newline): New function.
13155 (selftest::diagnostic_show_locus_c_tests): Call the above.
13157 2016-09-15 Bin Cheng <bin.cheng@arm.com>
13159 PR tree-optimization/77503
13160 * tree-vect-loop.c (vectorizable_reduction): Record reduction
13161 code for CONST_COND_REDUCTION at analysis stage and use it at
13163 * tree-vectorizer.h (struct _stmt_vec_info): New field.
13164 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
13165 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
13168 2016-09-15 Richard Biener <rguenther@suse.de>
13170 PR middle-end/77544
13171 * fold-const.c (split_tree): Do not split constant ~X.
13173 2016-09-15 Jakub Jelinek <jakub@redhat.com>
13175 PR rtl-optimization/77425
13176 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
13179 PR middle-end/77475
13180 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
13181 use %qs instead of %s where desirable, use argument instead of arg in
13182 the diagnostic wording, add list of supported strategies and
13184 (ix86_option_override_internal): Emit target("m...") instead of
13185 option("m...") in the diagnostic. Use %qs instead of %s in invalid
13186 -march/-mtune option diagnostic. Add list of supported arches/tunings
13187 and spellcheck hint. Remove prefix, suffix and sw variables, use
13188 main_args_p ? "..." : "..." in diagnostics to make translation
13191 2016-09-15 Richard Biener <rguenther@suse.de>
13193 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
13194 extra offset argument.
13195 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
13196 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
13197 to reflect new offset parameter.
13198 * doc/tm.texi: Regenerate.
13199 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13200 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
13202 (darwin_asm_output_dwarf_offset): Likewise.
13203 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
13205 (darwin_asm_output_dwarf_offset): Pass offset argument through.
13206 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13207 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13209 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
13212 * ipa-icf.c (set_alias_uids): New function.
13213 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
13214 all the merged variable's referring aliases.
13216 2016-09-15 Richard Biener <rguenther@suse.de>
13218 PR tree-optimization/77514
13219 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
13220 only forced_stmts sequence.
13222 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
13224 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
13225 * cfgexpand.c (update_alias_info_with_stack_vars): Use
13226 FOR_EACH_SSA_NAME to iterate over SSA variables.
13227 (pass_expand::execute): Likewise.
13228 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
13229 * tree-cfg.c (dump_function_to_file): Likewise.
13230 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
13231 (update_ssa): Likewise.
13232 * tree-ssa-alias.c (dump_alias_info): Likewise.
13233 * tree-ssa-ccp.c (ccp_finalize): Likewise.
13234 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
13235 (create_outofssa_var_map): Likewise.
13236 (coalesce_ssa_name): Likewise.
13237 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
13238 * tree-ssa-pre.c (compute_avail): Likewise.
13239 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
13240 (scc_vn_restore_ssa_info): Likewise.
13241 (free_scc_vn): Likwise.
13242 (run_scc_vn): Likewise.
13243 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
13244 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
13245 * tree-ssa-copy.c (fini_copy_prop): Likewise.
13246 * tree-ssa.c (verify_ssa): Likewise.
13248 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
13250 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
13251 and mips64r2 as default 32-bit and 64-bit architectures.
13252 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
13253 as default 32-bit and 64-bit architectures.
13255 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
13257 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
13260 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13262 * target.def (lra_p): Change commentary (for the manual) for the
13264 * doc/tm.texi: Regenerate.
13266 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13268 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
13269 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
13270 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
13271 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
13273 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13275 * targhooks.c (default_lra_p): Return true instead of false.
13277 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13279 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
13280 hook_bool_void_false.
13281 * config/avr/avr.c: Ditto.
13282 * config/bfin/bfin.c: Ditto.
13283 * config/c6x/c6x.c: Ditto.
13284 * config/cr16/cr16.c: Ditto.
13285 * config/cris/cris.c: Ditto.
13286 * config/epiphany/epiphany.c: Ditto.
13287 * config/fr30/fr30.c: Ditto.
13288 * config/frv/frv.c: Ditto.
13289 * config/h8300/h8300.c: Ditto.
13290 * config/ia64/ia64.c: Ditto.
13291 * config/iq2000/iq2000.c: Ditto.
13292 * config/lm32/lm32.c: Ditto.
13293 * config/m32c/m32c.c: Ditto.
13294 * config/m32r/m32r.c: Ditto.
13295 * config/m68k/m68k.c: Ditto.
13296 * config/mcore/mcore.c: Ditto.
13297 * config/microblaze/microblaze.c: Ditto.
13298 * config/mmix/mmix.c: Ditto.
13299 * config/mn10300/mn10300.c: Ditto.
13300 * config/moxie/moxie.c: Ditto.
13301 * config/msp430/msp430.c: Ditto.
13302 * config/nios2/nios2.c: Ditto.
13303 * config/nvptx/nvptx.c: Ditto.
13304 * config/pa/pa.c: Ditto.
13305 * config/pdp11/pdp11.c: Ditto.
13306 * config/rl78/rl78.c: Ditto.
13307 * config/sparc/sparc.c: Ditto.
13308 * config/spu/spu.c: Ditto.
13309 * config/stormy16/stormy16.c: Ditto.
13310 * config/tilegx/tilegx.c: Ditto.
13311 * config/tilepro/tilepro.c: Ditto.
13312 * config/v850/v850.c: Ditto.
13313 * config/vax/vax.c: Ditto.
13314 * config/visium/visium.c: Ditto.
13315 * config/xtensa/xtensa.c: Ditto.
13317 2016-09-14 Jakub Jelinek <jakub@redhat.com>
13320 * tsan.c: Include target.h.
13321 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
13322 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
13323 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
13324 BUILT_IN_ATOMIC_TEST_AND_SET entries.
13325 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
13327 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13328 Martin Liska <mliska@suse.cz>
13330 PR middle-end/77574
13331 * predict.c (force_edge_cold): Add braces to a condition.
13333 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13335 PR rtl-optimization/77289
13336 * lra-constraints.c (get_final_hard_regno): Removed.
13337 (get_hard_regno): Add new parameter final_p.
13338 (get_reg_class): Directly call lra_get_elimination_hard_regno.
13339 (operands_match_p): Adjust call to get_hard_regno.
13340 (uses_hard_regs_p): Likewise.
13341 (process_alt_operands): Likewise.
13343 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
13346 * config/msp430/msp430.c (msp430_start_function): Emit an error
13347 if a function is both weak and specifies an interrupt number.
13349 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13351 PR tree-optimization/77454
13352 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
13353 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
13356 2016-09-13 Tamar Christina <tamar.christina@arm.com>
13358 * config/aarch64/aarch64-builtins.c
13359 (aarch64_init_simd_builtins): Fix builtin type signature printing.
13361 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
13363 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
13364 SFmode and SCmode arguments by reference.
13366 2016-09-13 David Malcolm <dmalcolm@redhat.com>
13368 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
13370 (selftest::test_one_liner_fixit_insert_before): ...this, and update
13371 for renaming of add_fixit_insert to add_fixit_insert_before.
13372 (selftest::test_one_liner_fixit_insert_after): New function.
13373 (selftest::test_one_liner_fixit_validation_adhoc_locations):
13374 Update for renaming of add_fixit_insert to add_fixit_insert_before.
13375 (selftest::test_one_liner_many_fixits): Likewise.
13376 (selftest::test_diagnostic_show_locus_one_liner): Update for
13377 renaming, call new test function.
13378 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
13379 renaming of add_fixit_insert to add_fixit_insert_before.
13380 (selftest::test_fixit_consolidation): Likewise.
13381 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
13383 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
13384 (selftest::test_applying_fixits_insert_before): ...this.
13385 (selftest::test_applying_fixits_insert): Update for renaming of
13386 add_fixit_insert to add_fixit_insert_before.
13387 (selftest::test_applying_fixits_insert_after): New function.
13388 (selftest::test_applying_fixits_insert_after_at_line_end): New
13390 (selftest::test_applying_fixits_insert_after_failure): New function.
13391 (selftest::test_applying_fixits_multiple): Update for renaming of
13392 add_fixit_insert to add_fixit_insert_before.
13393 (selftest::change_line): Likewise.
13394 (selftest::test_applying_fixits_unreadable_file): Likewise.
13395 (selftest::test_applying_fixits_line_out_of_range): Likewise.
13396 (selftest::test_applying_fixits_column_validation): Likewise.
13397 (selftest::test_applying_fixits_column_validation): Likewise.
13398 (selftest::edit_context_c_tests): Update for renamed test function;
13399 call new test functions.
13401 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
13403 PR tree-optimization/77536
13404 PR rtl-optimization/68212
13405 * config/rs6000/rs6000.md (div->recip splitter): Remove
13406 optimize_insn_for_speed_p condition.
13408 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
13410 * optabs.c (prepare_cmp_insn): Update documentation comment.
13412 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13413 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13415 PR middle-end/77475
13416 * opts.h (candidates_list_and_hint): Declare.
13417 * opts-common.c (candidates_list_and_hint): New function.
13418 (cmdline_handle_error): Use it.
13420 2016-09-12 David Malcolm <dmalcolm@redhat.com>
13422 * edit-context.c (edited_line::get_len): New accessor.
13423 (edited_file::print_diff): Split out hunk-printing into...
13424 (edited_file::print_diff_hunk): New method.
13425 (edited_file::print_diff_line): New method.
13427 2016-09-12 Andrew Pinski <apinski@cavium.com>
13429 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
13431 * config/aarch64/aarch64.c (thunderx_tunings): Enable
13432 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
13433 (aarch64_operands_ok_for_ldpstp): Return false if
13434 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
13435 was SImode and the alignment is less than 8 byte.
13436 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13438 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
13441 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
13443 2016-09-12 Marek Polacek <polacek@redhat.com>
13445 * doc/extend.texi: Use lowercase "boolean".
13446 * doc/invoke.texi: Likewise.
13447 * doc/md.texi: Likewise.
13448 * target.def: Likewise.
13449 * doc/tm.texi: Regenerated.
13451 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13453 PR middle-end/77426
13454 * expmed.c (synth_mult): Delete duplicate mode check.
13456 2016-09-10 Tom de Vries <tom@codesourcery.com>
13459 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
13461 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
13462 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
13464 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
13466 PR rtl-optimization/77289
13467 * lra-constraints.c (get_final_hard_regno): Add support for non hard
13468 register numbers. Remove support for subregs.
13469 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
13470 (get_reg_class): Delete removed get_final_hard_regno() argument.
13471 (uses_hard_regs_p): Call get_final_hard_regno().
13473 2016-09-09 Martin Sebor <msebor@redhat.com>
13477 * pretty-print.c (pp_quoted_string): New function.
13478 (pp_format): Call it for %c and %s directives.
13480 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13482 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
13483 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
13484 INITIAL_ELIMINATION_OFFSET) : Update documentation.
13485 * target.def (frame_pointer_required, can_eliminate): Likewise.
13486 * doc/tm.texi: Regenerated.
13487 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
13489 * df-scan.c (df_hard_reg_init): Likewise.
13490 * ira.c (ira_setup_eliminable_regset): Likewise.
13491 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
13492 init_elim_table): Likewise.
13493 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
13494 set_initial_elim_offsets, update_eliminables,
13495 init_elim_table): Likewise.
13496 * rtlanal.c (get_initial_register_offset): Likewise.
13497 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13498 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13499 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13500 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13501 * config/fr30/fr30.h: Fix comment.
13502 * config/frv/frv.c: Likewise.
13503 * config/frv/frv.h: Likewise.
13504 * config/ft32/ft32.h: Likewise.
13505 * config/visium/visium.h: Likewise.
13506 * config/pa/pa64-linux.h: Likewise.
13507 * config/v850/v850.h: Likewise.
13508 * config/cris/cris.c: Likewise.
13509 * config/ia64/ia64.h: Likewise.
13510 * config/moxie/moxie.h: Likewise.
13511 * config/m32r/m32r.h: Likewise.
13513 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13516 * config.in: Regenerate.
13517 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
13519 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
13520 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
13521 static-libmpxwrappers case.
13522 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
13523 MPX_LD_AS_NEEDED_GUARD_POP.
13524 * configure: Regenerate.
13525 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
13526 defined if linker support "--push-state"/"--pop-state".
13528 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13530 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
13532 2016-09-09 Joseph Myers <joseph@codesourcery.com>
13534 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
13535 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
13536 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
13537 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
13538 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
13539 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
13540 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
13542 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
13543 width macros from TS 18661-1.
13544 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
13546 2016-09-08 Jakub Jelinek <jakub@redhat.com>
13549 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
13550 OMP_CLAUSE_SAFELEN_EXPR.
13552 2016-09-07 David Malcolm <dmalcolm@redhat.com>
13554 * Makefile.in (OBJS): Add substring-locations.o.
13555 * langhooks-def.h (class substring_loc): New forward decl.
13556 (lhd_get_substring_location): New decl.
13557 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
13558 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
13559 * langhooks.c (lhd_get_substring_location): New function.
13560 * langhooks.h (class substring_loc): New forward decl.
13561 (struct lang_hooks): Add field get_substring_location.
13562 * substring-locations.c: New file, taking definition of
13563 format_warning_va and format_warning_at_substring from
13564 c-family/c-format.c, making them non-static.
13565 * substring-locations.h (class substring_loc): Move class here
13566 from c-family/c-common.h. Add and rewrite comments.
13567 (format_warning_va): New decl.
13568 (format_warning_at_substring): New decl.
13569 (get_source_location_for_substring): Add comment.
13571 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
13573 * config/i386/i386.c: Add 'U' suffix to processor feature bits
13574 to avoid -Wnarrowing warning.
13575 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
13576 * opts.c: Likewise for SANITIZER_OPT bitmasks.
13578 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
13580 * config/aarch64/aarch64.c (aarch64_legitimize_address):
13581 Avoid use of base_offset if offset already in range.
13583 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
13585 * config/sh/sh-protos.h (struct sh_atomic_model,
13586 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13587 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13588 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
13589 * config/sh/sh.h (struct sh_atomic_model,
13590 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13591 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13592 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
13593 Guard with __cplusplus.
13595 2016-09-06 Jakub Jelinek <jakub@redhat.com>
13598 * config/i386/i386.c (ix86_expand_builtin): For builtin with
13599 unsupported or unknown ISA, use expand_call.
13601 2016-09-06 Martin Liska <mliska@suse.cz>
13603 PR gcov-profile/77378
13604 PR gcov-profile/77466
13605 * tree-profile.c (tree_profiling): Detect whether target can use
13606 -fprofile-update=atomic.
13608 2016-09-06 Richard Biener <rguenther@suse.de>
13610 PR tree-optimization/77479
13611 * tree-vrp.c (update_value_range): Extend overflow handling to
13614 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13617 * config/i386/i386.md (isa): Add x64_avx512bw.
13618 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
13619 (kmov_isa): New mode attr.
13620 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
13621 (*zero_extend<mode>si2): Likewise.
13622 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
13624 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
13626 * doc/invoke.texi (SPU Options): nops -> NOPs.
13627 (x86 Options): Ditto.
13629 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13631 PR middle-end/77475
13632 * toplev.c (process_options): Temporarily set input_location
13633 to UNKNOWN_LOCATION around targetm.target_option.override () call.
13635 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
13637 PR rtl-optimization/77452
13638 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
13639 inner-mode reference to a CONST_VECTOR constant in the constant pool.
13641 2016-09-05 Marek Polacek <polacek@redhat.com>
13644 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
13646 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13649 * gensupport.c (alter_output_for_subst_insn): Remove redundant
13650 *insn_out == '*' test. Don't copy unnecessary to yet another
13651 memory buffer, and don't leak it.
13653 PR rtl-optimization/77425
13654 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
13656 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
13658 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
13660 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13662 * common.opt (fdiagnostics-generate-patch): New option.
13663 * diagnostic.c: Include "edit-context.h".
13664 (diagnostic_initialize): Initialize context->edit_context_ptr.
13665 (diagnostic_finish): Delete context->edit_context_ptr.
13666 (diagnostic_report_diagnostic): Add fix-it hints from the
13667 diagnostic to context->edit_context_ptr, if any.
13668 * diagnostic.h (class edit_context): Add forward decl.
13669 (struct diagnostic_context): Add field "edit_context_ptr".
13670 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
13671 -fdiagnostics-generate-patch.
13672 (-fdiagnostics-generate-patch): New item.
13673 * toplev.c: Include "edit-context.h".
13674 (process_options): Set global_dc->edit_context_ptr to a new
13675 edit_context if the options need one.
13676 (toplev::main): Handle -fdiagnostics-generate-patch by using
13677 global_dc->edit_context_ptr.
13679 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13682 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
13683 map and firstprivate clauses on target construct for _Atomic
13685 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
13686 on target construct for _Atomic qualified decls.
13687 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
13689 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
13690 _Atomic qualified arguments not mentioned in uniform clause.
13692 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13694 * Makefile.in (OBJS-libcommon): Add edit-context.o.
13695 * diagnostic-color.c (color_dict): Add "diff-filename",
13696 "diff-hunk", "diff-delete", and "diff-insert".
13697 (parse_gcc_colors): Update default value of GCC_COLORS in comment
13698 to reflect above changes.
13699 * doc/invoke.texi (-fdiagnostics-color): Update description of
13700 default GCC_COLORS, and of the supported capabilities.
13701 * edit-context.c: New file.
13702 * edit-context.h: New file.
13703 * input.c (struct fcache): Add field "missing_trailing_newline".
13704 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
13706 (add_file_to_cache_tab): Likewise.
13707 (fcache::fcache): Likewise.
13708 (get_next_line): Update c->missing_trailing_newline.
13709 (location_missing_trailing_newline): New function.
13710 * input.h (location_missing_trailing_newline): New decl.
13711 * selftest-run-tests.c (selftest::run_tests): Call
13712 edit_context_c_tests.
13713 * selftest.h (edit_context_c_tests): New decl.
13715 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13716 Richard Biener <rguenth@suse.de>
13718 PR tree-optimization/77444
13719 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
13720 as steptype, remove redundant initialization.
13722 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13725 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
13726 (sanopt_optimize_walker): Optimize away
13727 __asan_before_dynamic_init (...) followed by
13728 __asan_after_dynamic_init () without intervening memory loads/stores.
13729 * ipa-pure-const.c (special_builtin_state): Handle
13730 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
13731 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
13733 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13735 * cfg.c (free_original_copy_tables): Replace second assignment of
13736 bb_copy = NULL by bb_original = NULL.
13738 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13741 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
13742 assignment added in r216794.
13744 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13746 * Makefile.in (OBJS): Add typed-splay-tree.o.
13747 * selftest-run-tests.c (selftest::run_tests): Call
13748 typed_splay_tree_c_tests.
13749 * selftest.h (typed_splay_tree_c_tests): New decl.
13750 * typed-splay-tree.c: New file.
13751 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
13752 (typed_splay_tree::max): New method.
13753 (typed_splay_tree::min): New method.
13754 (typed_splay_tree::foreach): New method.
13755 (typed_splay_tree::closure): New struct.
13756 (typed_splay_tree::inner_foreach_fn): New function.
13758 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13760 * ipa-cp.c (ipcp_store_bits_results): Change option name from
13761 -fipa-cp-bit to -fipa-bit-cp.
13763 2016-09-01 Martin Sebor <msebor@redhat.com>
13765 PR tree-optimization/71831
13766 * tree-object-size.h: Return bool instead of the size and add
13767 argument for the size.
13768 * tree-object-size.c (compute_object_offset): Update signature.
13769 (addr_object_size): Same.
13770 (compute_builtin_object_size): Return bool instead of the size
13771 and add argument for the size. Handle POINTER_PLUS_EXPR when
13772 optimization is disabled.
13773 (expr_object_size): Adjust.
13774 (plus_stmt_object_size): Adjust.
13775 (pass_object_sizes::execute): Adjust.
13776 * builtins.c (fold_builtin_object_size): Adjust.
13777 * doc/extend.texi (Object Size Checking): Update.
13778 * ubsan.c (instrument_object_size): Adjust.
13780 2016-09-01 Martin Sebor <msebor@redhat.com>
13782 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
13783 it fits the output of the formatted function regardless of its
13785 * genmodes.c (parser::parse_expr): Same.
13786 * gimplify.c (gimplify_asm_expr): Same.
13787 * passes.c (pass_manager::register_one_dump_file): Same.
13788 * print-tree.c (print_node): Same.
13790 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13792 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
13794 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13796 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
13798 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13800 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
13801 * config/rs6000/vector.md: Ditto.
13802 * config/rs6000/vsx.md: Ditto.
13804 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13806 * ipa-inline-analysis.c (param_change_prob): Get to the base object
13807 first in all cases.
13809 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13811 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
13812 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
13813 *return_and_restore_gpregs_<mode>_r11,
13814 *return_and_restore_gpregs_<mode>_r12,
13815 *return_and_restore_gpregs_<mode>_r1,
13816 *return_and_restore_fpregs_<mode>_r11,
13817 *return_and_restore_fpregs_<mode>_r12,
13818 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
13819 directly instead of via the "l" constraint. Renumber operands.
13822 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13824 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
13825 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
13826 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
13827 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
13828 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
13829 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
13830 *call_value_nonlocal_darwin64, reload_macho_picbase,
13831 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
13832 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
13833 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
13834 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
13835 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
13836 *save_fpregs_<mode>_r1): Ditto.
13837 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
13838 *return_and_restore_gpregs_spe): Ditto.
13840 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13842 * config/rs6000/rs6000.md
13843 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
13844 the use of the link register.
13845 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
13847 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13848 Michael Meissner <meissner@linux.vnet.ibm.com>
13851 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
13852 reg+reg addressing for TImode.
13853 (rs6000_legitimate_address_p): Only allow register indirect
13854 addressing for TImode, even without TARGET_QUAD_MEMORY.
13856 2016-09-01 Richard Biener <rguenther@suse.de>
13858 PR middle-end/77436
13859 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
13860 check whether the result fits the desired result type.
13862 2016-09-01 Nathan Sidwell <nathan@acm.org>
13864 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
13866 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
13868 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
13870 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
13872 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13874 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
13875 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
13876 for comparisons of integer ZERO_EXTEND against zero.
13878 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13880 * config/i386/i386.c (ix86_option_override_internal): Also disable the
13881 STV pass if -mstackrealign is enabled.
13883 2016-08-31 Ilya Verbin <iverbin@gmail.com>
13885 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
13888 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13890 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
13891 (layout_range::intersects_line_p): New method.
13892 (test_range_contains_point_for_single_point): Rename to...
13893 (test_layout_range_for_single_point): ...this, and add testing
13894 for layout_range::intersects_line_p.
13895 (test_range_contains_point_for_single_line): Rename to...
13896 (test_layout_range_for_single_line): ...this, and add testing
13897 for layout_range::intersects_line_p.
13898 (test_range_contains_point_for_multiple_lines): Rename to...
13899 (test_layout_range_for_multiple_lines): ...this, and add testing
13900 for layout_range::intersects_line_p.
13901 (layout::layout): Populate m_fixit_hints.
13902 (layout::get_expanded_location): Handle the case of a line-span
13904 (layout::validate_fixit_hint_p): New method.
13905 (get_line_span_for_fixit_hint): New function.
13906 (layout::calculate_line_spans): Add spans for fixit-hints.
13907 (layout::should_print_annotation_line_p): New method.
13908 (layout::print_any_fixits): Drop param "richloc", instead using
13909 validated fixits in m_fixit_hints. Add "const" to hint pointers.
13910 (diagnostic_show_locus): Avoid printing blank annotation lines.
13911 (selftest::test_diagnostic_context::test_diagnostic_context):
13912 Initialize show_column and start_span.
13913 (selftest::test_diagnostic_context::start_span_cb): New static
13915 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
13916 (selftest::diagnostic_show_locus_c_tests): Update for function
13917 renamings. Call test_diagnostic_show_locus_fixit_lines.
13919 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13921 PR tree-optimization/73714
13922 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
13924 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13926 * selftest.c: Move "namespace selftest {" to top of file,
13927 removing explicit "selftest::" qualifiers throughout.
13929 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13931 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
13933 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
13934 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
13935 Replace builtin with vector extension.
13936 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
13938 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
13939 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
13940 Replace builtin with vector extension.
13941 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
13942 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
13943 Replace builtin with vector extension.
13944 * config/i386/xmmintrin.h (__m128_u): New type.
13945 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
13946 (_mm_load_ps, _mm_store_ps): Simplify.
13948 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
13950 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
13952 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13954 * diagnostic-show-locus.c (colorizer::begin_state): Support more
13955 than 3 ranges per diagnostic by alternating between color 1 and
13957 (layout::layout): Replace use of rich_location::MAX_RANGES
13958 with richloc->get_num_locations ().
13959 (layout::calculate_line_spans): Replace use of
13960 rich_location::MAX_RANGES with m_layout_ranges.length ().
13961 (layout::print_annotation_line): Handle arbitrary numbers of
13962 ranges in caret-printing by defaulting to '^'.
13963 (selftest::test_one_liner_many_fixits): New function.
13964 (test_diagnostic_show_locus_one_liner): Call it.
13965 * diagnostic.c (diagnostic_initialize): Update for renaming
13966 of rich_location::MAX_RANGES to
13967 rich_location::STATICALLY_ALLOCATED_RANGES.
13968 * diagnostic.h (struct diagnostic_context): Likewise.
13970 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13972 * selftest.c (selftest::named_temp_file::named_temp_file): New
13974 (selftest::temp_source_file::~temp_source_file): Move to...
13975 (selftest::named_temp_file::~named_temp_file): ...here.
13976 (selftest::test_named_temp_file): New function.
13977 (selftest::selftest_c_tests): Call test_named_temp_file.
13978 * selftest.h (class named_temp_file): New class.
13979 (class temp_source_file): Convert to a subclass of named_temp_file.
13981 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
13983 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
13984 USEs of LR_REGNO in returns and sibcalls.
13985 (rs6000_output_mi_thunk): Similar.
13986 (rs6000_sibcall_aix): Similar.
13987 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
13988 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
13989 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
13990 Remove the USE of LR_REGNO from the patterns as well. Delete an
13992 (return_internal_<mode>): Delete.
13994 2016-08-30 Tamar Christina <tamar.christina@arm.com>
13996 * config/aarch64/aarch64-simd.md
13997 (aarch64_ld2<mode>_dreg_le): New.
13998 (aarch64_ld2<mode>_dreg_be): New.
13999 (aarch64_ld2<mode>_dreg): Removed.
14000 (aarch64_ld3<mode>_dreg_le): New.
14001 (aarch64_ld3<mode>_dreg_be): New.
14002 (aarch64_ld3<mode>_dreg): Removed.
14003 (aarch64_ld4<mode>_dreg_le): New.
14004 (aarch64_ld4<mode>_dreg_be): New.
14005 (aarch64_ld4<mode>_dreg): Removed.
14006 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
14008 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14010 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
14011 redundant location param.
14012 (test_one_liner_fixit_remove): Likewise.
14013 (test_one_liner_fixit_replace): Likewise.
14014 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
14015 * gcc-rich-location.c
14016 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
14017 get_range_from_loc. Drop overload taking a const char *.
14018 * gcc-rich-location.h
14019 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
14022 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
14024 * config/linux.c (linux_libc_has_function): Return true on musl.
14026 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
14028 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
14030 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
14032 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
14033 used for abnormal egdes.
14035 2016-08-30 Jakub Jelinek <jakub@redhat.com>
14037 PR tree-optimization/72866
14038 * tree-vect-patterns.c (search_type_for_mask): Turn into
14039 a small wrapper, move all code to ...
14040 (search_type_for_mask_1): ... this new function. Add caching
14041 and adjust recursive calls.
14044 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
14045 instead of lookup_type_die (type_main_variant (type)) even for array
14048 PR middle-end/77377
14049 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
14050 constant pool reference return x instead of c.
14052 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
14054 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
14057 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14060 (selftest::test_make_location_nonpure_range_endpoints): Fix
14063 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14065 * diagnostic-show-locus.c
14066 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
14068 (selftest::test_diagnostic_show_locus_one_liner): Call it.
14069 * input.c (get_pure_location): Move to libcpp/line-map.c.
14070 * input.h (get_pure_location): Convert decl to an inline function
14071 calling implementation in libcpp.
14073 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
14076 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
14077 template for intel asm dialect.
14078 (vec_set_hi_<mode><mask_name>): Ditto.
14080 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14082 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
14083 (selftest::fail_formatted): Likewise.
14085 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14087 * input.c (make_location): Call get_start and get_finish
14088 on the endpoints to avoid storing packed ranges or ad-hoc
14090 (selftest::test_make_location_nonpure_range_endpoints): New function.
14091 (selftest::input_c_tests): Call it.
14092 * input.h (get_start): New inline function.
14094 2016-08-29 Tom de Vries <tom@codesourcery.com>
14097 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
14100 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
14102 * Makefile.in (gcov-iov.h): Add dummy recipe.
14104 2016-08-29 Nathan Sidwell <nathan@acm.org>
14106 * config/nvptx/nvptx.c: #include tree-vrp.h.
14108 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
14111 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
14112 HIGH+LO construct during reload.
14114 2016-08-28 Tom de Vries <tom@codesourcery.com>
14117 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
14118 'sysv_abi va_list' attribute.
14119 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
14120 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
14123 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14125 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
14126 * emit-rtl.c (unshare_all_rtl_1): Adjust.
14127 (unshare_all_rtl_again): Likewise.
14128 * function.c (assign_stack_local_1): Likewise.
14129 (assign_stack_temp_for_type): Likewise.
14131 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14133 * cfgbuild.c (make_edges): Adjust.
14134 * cfgrtl.c (can_delete_label_p): Likewise.
14135 * dwarf2cfi.c (create_trace_edges): Likewise.
14136 * except.c (sjlj_emit_dispatch_table): Likewise.
14137 * function.h (struct expr_status): make x_forced_labels a vector.
14138 * jump.c (rebuild_jump_labels_1): Adjust.
14139 * reload1.c (set_initial_label_offsets): Likewise.
14140 * stmt.c (force_label_rtx): Likewise.
14141 (expand_label): Likewise.
14143 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14145 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
14147 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
14149 PR tree-optimization/71077
14150 PR tree-optimization/68542
14151 * fold-const.c (fold_relational_const): Fix folding of
14152 VECTOR_CST comparisons that have a scalar boolean result type.
14153 (selftest::test_vector_folding): New static function.
14154 (selftest::fold_const_c_tests): Call it.
14156 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
14158 * doc/extend.texi (SPU Built-in Functions): Remove stale
14159 references to material formerly at IBM and Sony.
14161 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
14164 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
14166 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14168 * diagnostic-show-locus.c
14169 (selftest::test_fixit_consolidation): New function.
14170 (selftest::diagnostic_show_locus_c_tests): Call it.
14171 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
14172 constructor based on source_range.
14174 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14176 * diagnostic-color.c (color_dict): Add "fixit-insert" and
14178 (parse_gcc_colors): Update description of default GCC_COLORS.
14179 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
14180 (colorizer::set_fixit_insert): New method.
14181 (colorizer::set_fixit_delete): New method.
14182 (colorizer::get_color_by_name): New method.
14183 (colorizer::STATE_FIXIT_INSERT): New constant.
14184 (colorizer::STATE_FIXIT_DELETE): New constant.
14185 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
14186 fields in favor of new field "m_stop_color". Add fields
14187 "m_fixit_insert" and "m_fixit_delete".
14188 (colorizer::colorizer): Update for above changes. Replace
14189 colorize_start calls with calls to get_color_by_name.
14190 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
14191 STATE_FIXIT_DELETE. Update for field renamings.
14192 (colorizer::finish_state): Simplify by using m_stop_color,
14193 rather than multiple identical "*_ce" fields.
14194 (colorizer::get_color_by_name): New method.
14195 (layout::print_any_fixits): Print insertions and replacements
14196 using the "fixit-insert" color, and deletions using the
14197 "fixit-delete" color.
14198 * doc/invoke.texi (-fdiagnostics-color): Update description of
14199 default GCC_COLORS, and of the supported capabilities.
14201 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
14203 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
14204 current_function_static_stack_size variable with the static
14205 stack frame size of the current function when
14206 flag_stack_usage_info is enabled.
14208 2016-08-26 Nathan Sidwell <nathan@acm.org>
14210 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
14211 assignment inside if condition.
14213 2016-08-26 Richard Biener <rguenther@suse.de>
14215 PR tree-optimization/69047
14216 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
14217 extracts similar to what FRE does.
14218 (non_rewritable_mem_ref_base): Likewise.
14220 2016-08-26 Joseph Myers <joseph@codesourcery.com>
14222 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
14223 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
14224 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14225 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14226 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
14228 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14229 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14230 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14231 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
14232 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14234 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14237 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
14238 reservation duration to 15 cycles.
14239 (cortex_a8_vfp_macs): Likewise.
14240 (cortex_a8_vfp_macd): Likewise.
14241 (cortex_a8_vfp_divs): Likewise.
14242 (cortex_a8_vfp_divd): Likewise.
14244 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14246 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
14247 (aarch_macro_fusion_pair_p): Use above to avoid early return.
14249 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14250 Martin Jambhor <mjambor@suse.cz>
14252 * common.opt: New option -fipa-bit-cp.
14253 * doc/invoke.texi: Document -fipa-bit-cp.
14254 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
14255 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
14256 * tree-ssa-ccp.h: New header file.
14257 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
14258 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
14259 Replace all occurences of tree parameter by two new params: signop, int.
14260 (bit_value_unop_1): Change to bit_value_unop and export it.
14261 Replace all occurences of tree parameter by two new params: signop,
14263 (bit_value_binop): Change call from bit_value_binop_1 to
14265 (bit_value_assume_aligned): Likewise.
14266 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
14267 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
14269 (ccp_finalize): Skip processing if val->mask == 0.
14270 * ipa-cp.c: Include tree-ssa-ccp.h
14271 (ipcp_bits_lattice): New class.
14272 (ipcp_param_lattice (bits_lattice): New member.
14273 (print_all_lattices): Call ipcp_bits_lattice::print.
14274 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
14275 (initialize_node_lattices): Likewise.
14276 (propagate_bits_accross_jump_function): New function.
14277 (propagate_constants_accross_call): Call
14278 propagate_bits_accross_jump_function.
14279 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
14280 (ipcp_store_bits_results): New function.
14281 (ipcp_driver): Call ipcp_store_bits_results.
14282 * ipa-prop.h (ipa_bits): New struct.
14283 (ipa_jump_func): Add new member bits of type ipa_bits.
14284 (ipa_param_descriptor): Change decl to decl_or_type.
14285 (ipa_get_param): Change decl to decl_or_type and assert on
14287 (ipa_get_type): New function.
14288 (ipcp_transformation_summary): New member bits.
14289 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
14290 (ipa_populate_param_decls): Likewise.
14291 (ipa_dump_param): Likewise.
14292 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
14294 (ipa_set_jf_unknown): Set ipa_bits::known to false.
14295 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
14297 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
14298 (ipa_write_jump_function): Add streaming for ipa_bits.
14299 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
14300 (write_ipcp_transformation_info): Add streaming for ipa_bits
14301 summary for ltrans.
14302 (read_ipcp_transfomration_info): Add support for reading streamed
14304 (ipcp_update_bits): New function.
14305 (ipcp_transform_function): Call ipcp_update_bits.
14307 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
14309 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
14310 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
14312 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
14314 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
14316 2016-08-25 Richard Biener <rguenther@suse.de>
14318 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
14319 Only add locations in late dwarf.
14320 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
14321 (dwarf2out_early_finish): But do it here.
14323 2016-08-24 Michael Collison <michael.collison@linaro.org>
14324 Michael Collison <michael.collison@arm.com>
14326 * config/arm/arm-modes.def: Add new condition code mode CC_V
14327 to represent the overflow bit.
14328 * config/arm/arm.c (maybe_get_arm_condition_code):
14329 Add support for CC_Vmode.
14330 (arm_gen_unlikely_cbranch): New function to generate common
14331 rtl conditional branches for overflow patterns.
14332 * config/arm/arm-protos.h: Add prototype for
14333 arm_gen_unlikely_cbranch.
14334 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
14335 addsi3_compareV_upper): New patterns to support signed
14336 builtin overflow add operations.
14337 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
14338 New patterns to support unsigned builtin add overflow operations.
14339 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
14340 builtin overflow subtract operations,
14341 (usubv<mode>4): New patterns to support unsigned builtin subtract
14342 overflow operations.
14343 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
14344 to support builtin overflow negate operations.
14346 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14349 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14351 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14352 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14355 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14357 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
14358 MULTILIB_OPTIONS should be used. Small wording fixes.
14359 * genmultilib: Memorize set of all option combinations in
14360 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
14361 found in MULTILIB_OPTIONS by checking if option set is listed in
14362 combination_space. Output new and existing error message to stderr.
14364 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14366 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
14367 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
14368 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
14369 (MULTILIB_REUSE): Remove reuse rules for option set including
14370 -mfpu=fp-armv8 and -mfpu=vfpv4
14372 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
14374 * config/arm/t-rtems: Add vfp multilib.
14376 2016-08-23 Ian Lance Taylor <iant@golang.org>
14378 * config/s390/s390.c (s390_asm_file_start): Call
14379 default_file_start.
14381 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14383 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
14384 initialization of all 0's to the 0 constant, instead of directly
14385 generating XOR. Add support for V4SImode vector initialization on
14386 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
14387 initialization. Change variables used in V4SFmode vector
14388 intialization. For V4SFmode vector splat on ISA 3.0, make sure
14389 any memory addresses are in index form. Add support for using
14390 VSPLTH/VSPLTB to initialize vector short and vector char vectors
14391 with all of the same element.
14392 (regno_or_subregno): New helper function to return a register
14393 number for either REG or SUBREG.
14394 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
14395 Use regno_or_subregno where possible.
14396 (rs6000_split_v4si_init_di_reg): New helper function to build up a
14397 DImode value from two SImode values in order to generate V4SImode
14398 vector initialization on 64-bit systems with direct move.
14399 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
14401 (rtx_is_swappable_p): V4SImode vector initialization insn is not
14403 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
14405 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
14406 attributes to initialize V8HImode and V16QImode vectors with the
14408 (VSX_SPLAT_COUNT): Likewise.
14409 (VSX_SPLAT_SUFFIX): Likewise.
14410 (UNSPEC_VSX_VEC_INIT): New unspec.
14411 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
14412 Allow SFmode values to come from Altivec registers.
14413 (vsx_init_v4si): New insn/split for V4SImode vector initialization
14414 on 64-bit systems with direct move.
14415 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
14416 vector initializations, to allow V4SImode vector initializations
14417 on 64-bit systems with direct move.
14418 (vsx_splat_v4si): Likewise.
14419 (vsx_splat_v4si_di): Likewise.
14420 (vsx_splat_v4sf): Likewise.
14421 (vsx_splat_v4sf_internal): Likewise.
14422 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
14424 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
14425 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
14426 initializing V8HImode and V16QImode vectors with the same
14428 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
14429 optimization if -maltivec=be.
14431 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
14433 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
14434 attribute for alternatives 3 and 4.
14436 2016-08-23 David Malcolm <dmalcolm@redhat.com>
14438 * selftest.c (selftest::assert_str_contains): New function.
14439 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
14440 * selftest.h (selftest::assert_str_contains): New decl.
14441 (ASSERT_STR_CONTAINS): New macro.
14443 2016-08-23 Richard Biener <rguenther@suse.de>
14445 PR tree-optimization/77286
14446 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
14448 (vect_transform_loop): Split exit edges of loop and scalar
14449 loop if required and at the appropriate time.
14451 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14453 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14454 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14456 Correct a typo in a comment.
14458 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14460 * config/s390/s390.md ("*andc_split"): New splitter for and with
14463 2016-08-23 Richard Biener <rguenther@suse.de>
14465 PR tree-optimization/27336
14466 * tree-vrp.c (infer_value_range): Handle stmts that can throw
14467 by looking for a non-EH edge.
14468 (process_assert_insertions_for): Likewise.
14470 2016-08-23 Richard Biener <rguenther@suse.de>
14472 PR middle-end/77305
14473 * statistics.c (statistics_counter_event): Robustify against
14476 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14478 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
14479 for targets amdfam10 and barcelona.
14481 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
14483 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
14484 (zero_extend<mode>di2): Ditto.
14485 (*zero_extend<mode>si2): Ditto.
14486 (*zero_extendqihi2): Ditto.
14488 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14490 PR middle-end/77269
14491 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
14492 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
14494 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
14496 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
14497 identical consecutive elements.
14498 [SSA_NAME]: Print the name's def stmt on its own line. When printing
14499 the node's def stmt, avoid printing an unwanted trailing newline by
14500 replacing the call to print_gimple_stmt() with its inlined body and
14501 adjusting it to not set pp_needs_newline and to call pp_flush()
14502 instead of pp_newline_and_flush().
14504 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14506 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
14507 (float32_type_node, float64_type_node, float32x_type_node)
14508 (float128x_type_node): New macros.
14509 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
14510 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
14511 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
14512 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
14513 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
14514 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
14515 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
14516 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
14517 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
14518 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
14519 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
14520 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
14521 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
14522 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
14523 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
14524 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
14525 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
14526 (copysign, fabs, huge_val, inf, nan, nans): Use it.
14527 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
14529 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
14530 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
14531 * doc/extend.texi (Other Builtins): Document these built-in
14533 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
14536 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
14538 * doc/install.texi (Binaries): www.opencsw.org now uses https.
14540 2016-08-22 Richard Biener <rguenther@suse.de>
14542 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
14544 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
14547 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
14548 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
14549 non-SSE2 athlons only, otherwise prefer SSE prefetches.
14551 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14553 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
14554 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
14555 (vrp_visit_switch_stmt): Likewise.
14556 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
14557 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
14558 (vrp_visit_stmt): Use extract_range_from_stmt.
14559 (vrp_visit_phi_node): Use extract_range_from_phi_node.
14561 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14563 * Makefile.in: Add tree-vrp.h to GTFILES.
14564 * gengtype.c (open_base_files): Add tree-vrp.h.
14565 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
14566 * builtins.c: Likewise.
14567 * fold-const.c: Likewise.
14568 * gimple-builder.c: Likewise.
14569 * gimple-laddress.c: Likewise.
14570 * hsa-gen.c: Likewise.
14571 * internal-fn.c: Likewise.
14573 * targhooks.c: Liewise,
14574 * tree-ssa-address.c: Likewise.
14575 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
14576 * tree-vrp.c (struct value_range): Move to tree-vrp.h
14577 * tree-vrp.h: New file.
14579 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14581 PR tree-optimization/61839
14582 * tree-vrp.c (two_valued_val_range_p): New.
14583 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
14584 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
14585 Also Convert VAR BINOP CST where VAR is two-valued to
14586 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
14588 2016-08-19 David Malcolm <dmalcolm@redhat.com>
14590 * diagnostic-show-locus.c
14591 (layout::annotation_line_showed_range_p): New method.
14592 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
14593 Reimplement case fixit_hint::REPLACE to cover removals, and
14594 replacements where the range of the replacement isn't one
14595 of the ranges in the rich_location.
14596 (test_one_liner_fixit_replace): Likewise.
14597 (selftest::test_one_liner_fixit_replace_non_equal_range): New
14599 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
14601 (selftest::test_diagnostic_show_locus_one_liner): Call the new
14603 * diagnostic.c (print_parseable_fixits): Remove case
14604 fixit_hint::REMOVE.
14606 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
14609 * config/i386/i386.c (ix86_option_override_internal): Remove
14610 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
14611 Enable SSE prefetch also for TARGET_PREFETCHWT1.
14612 Do not try to enable TARGET_PRFCHW ISA flag here.
14613 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
14614 Rewrite expander function body.
14615 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
14617 2016-08-19 Joseph Myers <joseph@codesourcery.com>
14620 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
14621 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
14622 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
14623 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
14624 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
14625 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
14626 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
14627 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
14628 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
14630 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
14632 (struct floatn_type_info): New structure type.
14633 (floatn_nx_types): New variable declaration.
14634 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
14635 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
14636 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
14637 * tree.c (floatn_nx_types): New variable.
14638 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
14639 corresponding complex types.
14640 * target.def (floatn_mode): New hook.
14641 * targhooks.c: Include "real.h".
14642 (default_floatn_mode): New function.
14643 * targhooks.h (default_floatn_mode): New prototype.
14644 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
14646 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
14647 effective-target and dg-add-options keywords.
14648 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
14649 Document new effective-target keywords.
14650 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
14651 * doc/tm.texi: Regenerate.
14652 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
14653 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
14654 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
14656 * real.h (struct real_format): Add field ieee_bits.
14657 * real.c (ieee_single_format, mips_single_format)
14658 (motorola_single_format, spu_single_format, ieee_double_format)
14659 (mips_double_format, motorola_double_format)
14660 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
14661 (ieee_extended_intel_128_format)
14662 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
14663 (mips_extended_format, ieee_quad_format, mips_quad_format)
14664 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
14665 (decimal_double_format, decimal_quad_format, ieee_half_format)
14666 (arm_half_format, real_internal_format: Initialize ieee_bits
14668 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
14669 float128_type_node. Set float80_type_node to float64x_type_node
14670 if appropriate and long_double_type_node not appropriate.
14671 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
14672 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
14673 Initialize ieee_bits field.
14674 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
14675 (rs6000_init_builtins): Set ieee128_float_type_node to
14676 float128_type_node.
14677 (rs6000_floatn_mode): New function.
14679 2016-08-19 Jakub Jelinek <jakub@redhat.com>
14681 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
14682 _rdseed64_step): Uglify argument names and/or local variable names
14683 in inline functions.
14684 * config/i386/rtmintrin.h (_xabort): Likewise.
14685 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
14686 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
14687 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
14688 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
14689 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
14690 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
14691 _mm_maskz_ternarylogic_epi32): Likewise.
14692 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
14693 __lwpins32, __lwpins64): Likewise.
14694 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
14695 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
14696 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
14697 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
14698 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
14699 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
14700 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
14701 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
14702 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
14703 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
14704 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
14705 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
14706 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
14707 _mm256_mask_i64gather_epi32): Likewise.
14708 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14709 * config/i386/ia32intrin.h (__writeeflags): Likewise.
14710 * config/i386/pkuintrin.h (_wrpkru): Likewise.
14711 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
14712 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
14713 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
14714 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
14715 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
14716 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
14717 _mm512_mask_prefetch_i64scatter_ps): Likewise.
14718 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14719 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
14720 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
14721 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
14722 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
14723 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
14724 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
14725 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
14727 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
14729 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
14730 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
14732 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
14733 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
14735 (_rdpkru_u32): Add space after function name.
14737 * config/i386/t-i386 (i386-c.o): Don't depend on
14738 i386-builtin-types.inc.
14739 (i386.o): Depend on i386-builtin-types.inc.
14741 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
14744 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
14745 Use const_vec_duplicate to check for duplicated elements.
14747 2016-08-19 Richard Biener <rguenther@suse.de>
14749 PR tree-optimization/77290
14750 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14751 Fix flag_tree_parallelize_loops check.
14753 2016-08-19 Richard Biener <rguenther@suse.de>
14755 * match.pd (x | 0 -> x): Add.
14757 2016-08-19 Richard Biener <rguenther@suse.de>
14759 PR tree-optimization/77286
14760 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
14761 Deal with virtual PHIs being out-of-order.
14763 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14765 * doc/invoke.texi (fverbose-asm): Note that source code lines
14766 are emitted, and provide an example.
14767 * final.c (asm_show_source): New function.
14768 (final_scan_insn): Call asm_show_source.
14770 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14772 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
14773 param with diagnostic_kind.
14774 (class colorizer): Similarly replace field m_diagnostic with
14776 (colorizer::colorizer): Replace diagnostic
14777 param with diagnostic_kind.
14778 (colorizer::begin_state): Update for above field change.
14779 (layout::layout): Replace diagnostic param with rich_location *
14780 and diagnostic_kind.
14781 (diagnostic_show_locus): Replace diagnostic param with richloc
14782 and diagnostic_kind.
14783 (class selftest::test_diagnostic_context): New class.
14784 (selftest::test_diagnostic_show_locus_unknown_location): New
14786 (selftest::test_one_liner_simple_caret): New function.
14787 (selftest::test_one_liner_caret_and_range): New function.
14788 (selftest::test_one_liner_multiple_carets_and_ranges): New
14790 (selftest::test_one_liner_fixit_remove): New function.
14791 (selftest::test_one_liner_fixit_replace): New function.
14792 (selftest::test_diagnostic_show_locus_one_liner): New function.
14793 (selftest::diagnostic_show_locus_c_tests): Call the new test
14795 * diagnostic.c (diagnostic_initialize): Initialize
14796 colorize_source_p, show_ruler_p and parseable_fixits_p.
14797 (default_diagnostic_finalizer): Update for change to
14798 diagnostic_show_locus.
14799 (diagnostic_append_note): Likewise.
14800 * diagnostic.h (diagnostic_show_locus): Replace
14801 const diagnostic_info * param with location * and diagnostic_t.
14803 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14805 * input.c (saved_line_table): New global.
14806 (class selftest::temp_line_table): Rename to line_table_test and
14807 move declaration to selftest.h, and drop field m_old_line_table.
14808 (selftest::temp_line_table::temp_line_table): Rename ctor to...
14809 (selftest::line_table_test::line_table_test): ...this. Add a
14810 default ctor. Store current value of line_table within
14812 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
14813 (selftest::line_table_test::~line_table_test): ...this, and
14814 restore line_table from the saved_line_table, rather than
14816 (selftest::test_accessing_ordinary_linemaps): Update for above
14818 (selftest::test_lexer): Likewise.
14819 (struct selftest::lexer_test): Likewise.
14820 (selftest::lexer_test::lexer_test): Likewise.
14821 (selftest::input_c_tests): Move the looping over test cases from
14823 (selftest::for_each_line_table_case): New function.
14824 * input.h (saved_line_table): New decl.
14825 * selftest.h (struct selftest::line_table_case): New forward decl.
14826 (class selftest::line_table_test): New class, moved here from
14827 selftest::temp_line_table in input.c, and renamed.
14828 (selftest::for_each_line_table_case): New decl.
14830 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
14833 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
14835 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
14837 PR middle-end/70895
14838 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
14839 enclosing parallel construct for reduction variables on OpenACC loop
14842 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
14844 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
14845 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
14847 (function_to_dwarf_procedure): Update comment.
14849 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14851 * input.c (diagnostics_file_cache_forcibly_evict_file): New
14853 * input.h (diagnostics_file_cache_forcibly_evict_file): New
14855 * selftest.c (selftest::temp_source_file::~temp_source_file):
14856 Evict m_filename from the diagnostic file cache.
14858 2016-08-18 Richard Biener <rguenther@suse.de>
14860 * tree-pass.h (make_pass_materialize_all_clones): Declare.
14861 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
14862 make_pass_materialize_all_clones): New simple IPA pass encapsulating
14863 clone materialization.
14864 * passes.def (all_late_ipa_passes): Start with
14865 pass_materialize_all_clones.
14866 * cgraphunit.c (symbol_table::compile): Remove call to
14867 materialize_all_clones.
14868 * tree-into-ssa.c: Include statistics.h.
14869 (update_ssa): Count number of times we do incremental/rewrite
14872 2016-08-18 Richard Biener <rguenther@suse.de>
14874 PR tree-optimization/77282
14875 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14876 When doing auto-parallelizing also prevent use of PHIs that
14877 carry dependences across loop backedges.
14879 2016-08-18 Tamar Christina <tamar.christina@arm.com>
14880 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14882 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
14884 2016-08-18 Richard Biener <rguenther@suse.de>
14886 * ssa-iterators.h (ssa_vuse_operand): New inline.
14887 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
14888 (predicate_all_scalar_phis): Use remove_phi_node to remove
14889 phi nodes predicated. Delay removing virtual PHIs.
14890 (predicate_mem_writes): Update virtual operands.
14891 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
14892 (tree_if_conversion): Do not rewrite virtual SSA form.
14893 * tree-phinodes.c (release_phi_node): Make static.
14894 * tree-phinodes.h (release_phi_node): Remove.
14896 2016-08-18 Jakub Jelinek <jakub@redhat.com>
14898 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
14899 codes that appear in bdesc_* arrays, instead include i386-builtin.def
14900 twice to define those.
14901 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
14902 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
14903 bdesc_multi_arg): Define by including i386-builtin.def the third time.
14904 * config/i386/i386-builtin.def: New file.
14906 2016-08-17 David Malcolm <dmalcolm@redhat.com>
14908 * input.c (get_source_range_for_char): Rename to...
14909 (selftest::get_source_range_for_char): ...this, and move within
14910 the #if CHECKING_P guard.
14911 (get_num_source_ranges_for_substring): Rename to...
14912 (selftest::get_num_source_ranges_for_substring): ...this, move
14913 within the #if CHECKING_P guard, and make static.
14914 (selftest::assert_num_substring_ranges): Initialize
14917 2016-08-18 Alan Modra <amodra@gmail.com>
14919 PR rtl-optimization/72771
14920 * reload.c (find_reloads): Don't assume that a subreg mem is OK
14921 when find_reloads_toplev returns address_reloaded==-1.
14922 (alternative_allows_const_pool_ref): Update comment.
14924 2015-08-17 Alan Hayward <alan.hayward@arm.com>
14926 PR tree-optimization/71752
14927 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
14928 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
14930 2016-08-17 Jakub Jelinek <jakub@redhat.com>
14932 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
14933 instead of testing ECF_NORETURN bit in gimple_call_flags.
14934 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
14935 * predict.c (tree_bb_level_predictions): Likewise.
14936 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
14938 PR middle-end/77259
14939 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
14940 turning a call into __builtin_unreachable-like noreturn call, adjust
14941 gimple_call_set_fntype.
14942 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
14943 gimple_call_fntype has void return type.
14945 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
14947 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
14948 maybe_lookup_decl, to handle nested acc loop directives.
14950 2016-08-17 Richard Biener <rguenther@suse.de>
14952 PR tree-optimization/76490
14953 * tree-vrp.c (update_value_range): Preserve overflow infinities
14954 when intersecting with ranges from get_range_info.
14955 (operand_less_p): Handle overflow infinities correctly.
14956 (value_range_constant_singleton): Use vrp_operand_equal_p
14957 to handle overflow max/min correctly.
14958 (vrp_valueize): Likewise.
14959 (union_ranges): Likewise.
14960 (intersect_ranges): Likewise.
14961 (vrp_visit_phi_node): Improve iteration limitation to only
14962 apply when we'll possibly re-visit the PHI via a changed argument
14965 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
14967 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
14968 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
14969 rather than those that should not be built.
14971 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
14974 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
14976 2016-08-17 Richard Biener <rguenther@suse.de>
14978 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
14979 (verify_vssa): New function verifying virtual SSA form.
14980 (verify_ssa): Call it.
14981 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
14982 Do not apply loop-closed SSA handling to virtuals.
14983 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
14984 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
14985 when rewriting their symbol.
14986 (prepare_def_site_for): Likewise.
14987 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
14988 operands of moved stmts.
14990 2016-08-17 Richard Biener <rguenther@suse.de>
14992 PR tree-optimization/23855
14993 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
14994 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
14995 find guards to hoist. Do not update SSA form but rewrite virtuals
14996 into loop closed SSA.
14997 (find_loop_guard): Adjust to skip already hoisted guards. Do
14998 not mark virtuals for renaming or update SSA form.
15000 2016-08-17 Martin Liska <mliska@suse.cz>
15002 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
15003 a LONG_LONG_TYPE_SIZE comparison.
15004 * gcov-io.h: Remove macro definitions.
15005 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
15006 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
15009 2016-08-16 Jakub Jelinek <jakub@redhat.com>
15011 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
15012 that builtins not mentioned in bdesc_* arrays come first, then
15013 the ones mentioned in bdesc_* arrays in the order they appear in
15014 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
15015 IX86_BUILTIN__BDESC_*_LAST enumerator.
15016 (bdesc_mpx): Fix up a comment typo.
15017 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
15018 __builtin_ia32_vpcomneu[bwdq] builtins.
15019 (BDESC_VERIFY, BDESC_VERIFYS): Define.
15020 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
15021 enum ix86_builtins ordering.
15022 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
15023 for direct bdesc_* array member access instead of searching all the
15024 arrays until an fcode match is found.
15026 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
15028 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
15029 pattern as define_insn_and_split. Split insn before reload to
15031 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
15032 <shift_insn><mode>3_1.
15033 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
15034 <rotate_insn><mode>3_1.
15036 2016-08-16 David Malcolm <dmalcolm@redhat.com>
15039 * input.c (get_source_range_for_substring): Rename to...
15040 (get_source_location_for_substring): ...this, adding param
15041 "caret_idx", and converting output param from source_range * to
15043 (get_source_range_for_char): New function.
15044 (get_num_source_ranges_for_substring): Update comment to reflect
15046 (assert_char_at_range): Update to use get_source_range_for_char
15047 rather than get_source_range_for_substring.
15048 (test_lexer_string_locations_concatenation_2): Likewise.
15049 * substring-locations.h (get_source_range_for_substring): Rename
15051 (get_source_location_for_substring): ...this, and adding param
15052 "caret_idx", and converting output param from source_range * to
15055 2016-08-16 David Malcolm <dmalcolm@redhat.com>
15057 * input.c (class selftest::temp_source_file): Move to
15059 (selftest::temp_source_file::temp_source_file): Move to
15061 (selftest::temp_source_file::~temp_source_file): Likewise.
15062 * selftest.c (selftest::temp_source_file::temp_source_file): Move
15064 (selftest::temp_source_file::~temp_source_file): Likewise.
15065 * selftest.h (class selftest::temp_source_file): Move here from
15068 2016-08-16 Jakub Jelinek <jakub@redhat.com>
15071 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
15072 inlining, add cgraph edge for the added __builtin_unreachable call.
15074 PR middle-end/67485
15075 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
15076 only cast it to SHWI for the final comparison.
15078 2016-08-16 Martin Liska <mliska@suse.cz>
15080 PR gcov-profile/36412
15081 * doc/gcov.texi: Document --hash-filenames(-x).
15082 * gcov.c (print_usage): Add the option.
15083 (process_args): Process the option, sort options alphabetically.
15084 (md5sum_to_hex): New function.
15085 (make_gcov_file_name): Do the md5sum and append it to a
15088 2016-08-16 Bin Cheng <bin.cheng@arm.com>
15090 PR tree-optimization/69848
15091 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
15092 and swtich operands to avoid additional NOT instruction.
15093 (vcond<v_cmp_mixed><mode>): Ditto.
15094 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15096 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
15098 * doc/install.texi (*-*-solaris2*): Adjust latest change.
15100 2016-08-16 Richard Biener <rguenther@suse.de>
15102 PR tree-optimization/76783
15103 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
15104 BB visited flags at start.
15106 2016-08-16 Bin Cheng <bin.cheng@arm.com>
15108 PR tree-optimization/72817
15109 PR tree-optimization/73450
15110 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
15111 multiple_of_p for adjusted IV.base.
15113 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
15116 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
15117 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
15118 for !flag_finite_math_only or flag_signed_zeros.
15119 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
15120 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
15121 depend on flag_finite_math_only.
15122 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
15124 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
15125 (*ieee_smin<mode>3): Ditto.
15126 (*ieee_smax<mode>3): Ditto.
15127 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
15128 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
15130 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
15131 depend on flag_finite_math_only.
15132 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
15133 (*mmx_<code>v2sf3): Remove.
15134 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
15135 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
15136 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
15138 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
15140 PR rtl-optimization/73650
15141 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
15142 it is not a simple move.
15144 2016-08-15 Martin Liska <mliska@suse.cz>
15147 * gcc.c (do_spec_1): Call save_string with the right size.
15148 (save_string): Do an assert about string we copy.
15150 2016-08-15 Richard Biener <rguenther@suse.de>
15152 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
15153 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
15155 (pass_data_stv): Likewise.
15157 2016-08-15 Richard Biener <rguenther@suse.de>
15159 PR tree-optimization/73434
15160 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
15161 TBAA info on the base when forwarding a non-invariant address.
15163 2016-08-15 Jakub Jelinek <jakub@redhat.com>
15165 * dwarf2out.c (struct checksum_attributes): Add
15166 at_string_length_bit_size and at_string_length_byte_size fields.
15167 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
15168 and DW_AT_string_length_byte_size.
15169 (die_checksum_ordered): Handle at_string_length_bit_size and
15170 at_string_length_byte_size.
15171 (gen_array_type_die): For dwarf_version >= 5 emit
15172 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15173 (adjust_string_types): For dwarf_version >= 5 remove
15174 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15175 (resolve_addr): Likewise.
15178 * dwarf2out.c (string_types): New variable.
15179 (gen_array_type_die): Change early_dwarf handling of
15180 DW_AT_string_length, create DW_OP_call4 referencing the
15181 length var temporarily. Handle parameters that are pointers
15183 (adjust_string_types): New function.
15184 (gen_subprogram_die): Temporarily set string_types to local var,
15185 call adjust_string_types if needed.
15186 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
15188 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
15190 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
15192 * doc/install.texi (*-*-solaris2*): Fix version number and document
15193 requirement on GNU make for building libjava with the Solaris linker.
15195 2016-08-15 Martin Liska <mliska@suse.cz>
15196 Jakub Jelinek <jakub@redhat.com>
15198 PR tree-optimization/72824
15199 * tree-loop-distribution.c (const_with_all_bytes_same)
15200 <case VECTOR_CST>: Fix a typo.
15202 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
15205 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
15206 Renamed from _mm512_undefined_si512.
15207 (_mm_undefined_si512): New definition.
15209 2016-08-13 Richard Biener <rguenther@suse.de>
15211 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
15212 into PHIs and update the lattice for its def.
15214 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15217 * ubsan.c (instrument_si_overflow): Pass true instead of false
15219 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
15220 of bbs. Return TODO_cleanup_cfg if any returned true.
15222 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15224 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
15225 ISA 3.0 MTVSRDD instruction.
15226 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
15229 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
15231 PR tree-optimization/71083
15232 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
15233 bitfield access when possible.
15235 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
15237 PR middle-end/71654
15238 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
15239 sign-changing cast from a shorter unsigned type to a wider
15242 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15244 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
15245 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
15246 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
15248 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15250 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
15251 Correct costs for vec_construct.
15253 2016-08-12 Bin Cheng <bin.cheng@arm.com>
15255 PR tree-optimization/69848
15256 * tree-vectorizer.h (enum vect_def_type): New condition reduction
15257 type CONST_COND_REDUCTION.
15258 * tree-vect-loop.c (vectorizable_reduction): Support new condition
15259 reudction type CONST_COND_REDUCTION.
15261 2016-08-12 Richard Biener <rguenther@suse.de>
15263 PR tree-optimization/57326
15264 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
15265 returning an SSA name.
15266 (phi_translate_1): When fully_constant_expression returns a NAME
15267 make sure we have a leader for it.
15269 2016-08-12 Martin Liska <mliska@suse.cz>
15270 Adam Fineman <afineman@afineman.com>
15272 * gcov.c (process_file): Create .gcov file when .gcda
15275 2016-08-12 Marek Polacek <polacek@redhat.com>
15278 * alias.c (find_base_value): Adjust fall through comment.
15279 * cfgexpand.c (expand_debug_expr): Likewise.
15280 * combine.c (find_split_point): Likewise.
15281 (expand_compound_operation): Likewise. Add FALLTHRU.
15282 (make_compound_operation): Adjust fall through comment.
15283 (canon_reg_for_combine): Add FALLTHRU.
15284 (force_to_mode): Adjust fall through comment.
15285 (simplify_shift_const_1): Likewise.
15286 (simplify_comparison): Likewise.
15287 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
15289 * config/aarch64/predicates.md: Likewise.
15290 * config/i386/i386.c (function_arg_advance_32): Likewise.
15291 (ix86_gimplify_va_arg): Likewise.
15292 (print_reg): Likewise.
15293 (ix86_print_operand): Likewise.
15294 (ix86_build_const_vector): Likewise.
15295 (ix86_expand_branch): Likewise.
15296 (ix86_sched_init_global): Adjust fall through comment.
15297 (ix86_expand_args_builtin): Add FALLTHRU.
15298 (ix86_expand_builtin): Likewise.
15299 (ix86_expand_vector_init_one_var): Likewise.
15300 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
15301 (rs6000_adjust_cost): Likewise.
15302 (insn_must_be_first_in_group): Likewise.
15303 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
15304 * dbxout.c (dbxout_symbol): Adjust fall through comment.
15305 * df-scan.c (df_uses_record): Likewise.
15306 * dojump.c (do_jump): Add FALLTHRU.
15307 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
15309 (resolve_args_picking_1): Adjust fall through comment.
15310 (loc_list_from_tree_1): Likewise.
15311 * expmed.c (make_tree): Likewise.
15312 * expr.c (expand_expr_real_2): Add FALLTHRU.
15313 (expand_expr_real_1): Likewise. Adjust fall through comment.
15314 * fold-const.c (const_binop): Adjust fall through comment.
15315 (fold_truth_not_expr): Likewise.
15316 (fold_cond_expr_with_comparison): Add FALLTHRU.
15317 (fold_binary_loc): Likewise.
15318 (contains_label_1): Adjust fall through comment.
15319 (multiple_of_p): Likewise.
15320 * gcov-tool.c (process_args): Add FALLTHRU.
15321 * genattrtab.c (check_attr_test): Likewise.
15322 (write_test_expr): Likewise.
15323 * genconfig.c (walk_insn_part): Likewise.
15324 * genpreds.c (validate_exp): Adjust fall through comment.
15325 (needs_variable): Likewise.
15326 * gensupport.c (get_alternatives_number): Add FALLTHRU.
15327 (subst_dup): Likewise.
15328 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
15329 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
15330 (gimplify_scan_omp_clauses): Add FALLTHRU.
15331 (goa_stabilize_expr): Likewise.
15332 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
15334 * hsa-gen.c (get_address_from_value): Likewise.
15335 * ipa-icf.c (sem_function::hash_stmt): Likewise.
15336 * ira.c (ira_setup_alts): Add FALLTHRU.
15337 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
15339 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
15340 * opts.c (common_handle_option): Likewise.
15341 * read-rtl.c (read_rtx_code): Likewise.
15342 * real.c (round_for_format): Likewise.
15343 * recog.c (asm_operand_ok): Likewise.
15344 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
15345 * reload1.c (set_label_offsets): Likewise.
15346 (eliminate_regs_1): Likewise.
15347 (reload_reg_reaches_end_p): Likewise.
15348 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
15349 (rtx_cost): Likewise.
15350 * sched-rgn.c (is_exception_free): Likewise.
15351 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
15352 * stor-layout.c (int_mode_for_mode): Likewise.
15353 * toplev.c (print_to_asm_out_file): Likewise.
15354 (print_to_stderr): Likewise.
15355 * tree-cfg.c (gimple_verify_flow_info): Likewise.
15356 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
15357 (chrec_fold_multiply): Likewise.
15358 (evolution_function_is_invariant_rec_p): Likewise.
15359 (for_each_scev_op): Likewise.
15360 * tree-data-ref.c (siv_subscript_p): Likewise.
15361 (get_references_in_stmt): Likewise.
15362 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
15363 (substitute_in_expr): Likewise.
15364 (type_cache_hasher::equal): Likewise.
15365 (walk_type_fields): Likewise.
15366 * var-tracking.c (adjust_mems): Add FALLTHRU.
15367 (set_dv_changed): Adjust fall through comment.
15368 * varasm.c (default_function_section): Add FALLTHRU.
15370 2016-08-12 Marek Polacek <polacek@redhat.com>
15373 * tree-complex.c (expand_complex_division): Add missing break.
15375 2016-08-12 Richard Biener <rguenther@suse.de>
15377 * passes.c (execute_todo): Do not push/pop TV_TODO.
15378 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
15379 (execute_one_pass): Likewise.
15380 * common.opt (ftime-report-details): New switch.
15381 * doc/invoke.texi (ftime-report-details): Document.
15382 * timevar.h (timer::print_row): Adjust signature.
15383 (timer::all_zero): New static helper.
15384 (timer::child_map_t): New typedef.
15385 (timer::time_var_def): Add children field.
15386 * timevar.c (timer::named_items::print): Adjust.
15387 (timer::~timer): Free timevar recorded children.
15388 (timer::pop_internal): When -ftime-report-details record
15389 time spent in sub-timevars.
15390 (timer::print_row): Adjust.
15391 (timer::print): Print sub-timevar stats, use all_zero.
15392 * timevar.def (TV_TODO): Remove.
15394 2016-08-12 Richard Biener <rguenther@suse.de>
15396 PR tree-optimization/72851
15397 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
15398 worklists to use bitmaps indexed in execution order.
15399 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
15400 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
15401 (cfg_blocks): Make a bitmap.
15402 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
15404 (cfg_blocks_empty_p): Adjust.
15405 (cfg_blocks_add): Likewise.
15406 (cfg_blocks_get): Likewise.
15407 (add_ssa_edge): Likewise.
15408 (add_control_edge): Likewise.
15409 (simulate_stmt): Likewise.
15410 (process_ssa_edge_worklist): Likewise.
15411 (simulate_block): Likewise.
15412 (ssa_prop_init): Compute PRE order and stmt UIDs.
15413 (ssa_prop_fini): Adjust.
15414 (ssa_propagate): Adjust.
15416 2016-08-12 Richard Biener <rguenther@suse.de>
15418 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
15419 the currently executable edges have fixed ranges. Always
15420 go through update_value_range.
15422 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
15426 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
15427 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
15428 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
15429 (LANG_HOOKS_DECLS): Add it.
15430 * langhooks.h (struct lang_hooks_for_decls): Add
15431 function_decl_defaulted. Const_tree-ify
15432 function_decl_explicit_p and function_decl_deleted_p.
15433 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
15434 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
15435 also at strict DWARF v5.
15438 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
15439 TYPE_QUAL_CONST in reference-typed decls.
15442 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
15443 in DW_OP_pieces, just enough to handle pointers to member
15445 (gen_remaining_tmpl_value_param_die_attribute): Use a location
15446 expression on DWARFv5 if a constant value doesn't work.
15448 2016-08-11 David Malcolm <dmalcolm@redhat.com>
15450 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
15451 * selftest.c (selftest::test_assertions): New function.
15452 (selftest::selftest_c_tests): New function.
15453 * selftest.h (selftest::selftest_c_tests): New declaration.
15455 2016-08-11 Richard Biener <rguenther@suse.de>
15456 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15458 PR rtl-optimization/72855
15459 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
15461 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15464 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
15465 (vsx_store_<mode>): Likewise.
15467 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15469 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
15470 TImode CONST_WIDE_INT store.
15471 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
15473 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15475 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
15476 mode if unaligned SSE load and store are optimal.
15478 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
15480 PR tree-optimization/71083
15481 * tree-predcom.c (ref_at_iteration): Correctly align the
15484 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15486 * config/s390/s390-builtin-types.def: Add INT128 types.
15487 * config/s390/s390-builtins.def: Add INT128 variants for the add
15488 sub low-level builtins dealing with TImode.
15489 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
15490 via subreg when expanding a builtin.
15491 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
15492 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
15494 * config/s390/vecintrin.h: Adjust builtin names accordingly.
15495 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
15496 ("vec_addc<mode>", "vec_addc_u128"): Merge to
15497 "vacc<bhfgq>_<mode>".
15498 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
15499 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
15500 ("vec_subc<mode>", "vec_subc_u128"): Merge to
15501 "vscbi<bhfgq>_<mode>".
15502 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
15503 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
15505 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15507 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
15509 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15511 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
15512 unused declaration.
15513 (vcond<v_cmp_mixed><mode>): Ditto.
15514 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15516 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15518 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
15519 variable explicitly, also assert on it before use.
15521 2016-08-11 Richard Biener <rguenther@suse.de>
15523 PR tree-optimization/72772
15524 * cfgloopmanip.c (create_preheader): Use split_edge if there
15525 is a single loop entry, avoiding degenerate PHIs.
15527 2016-08-11 Richard Biener <rguenther@suse.de>
15529 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
15530 unconditional TODO_cleanup_cfg.
15531 (pass_thread_jumps::execute): Initialize loops, perform a CFG
15532 cleanup only if we threaded a jump.
15534 2016-08-11 Alan Modra <amodra@gmail.com>
15537 * lra-constraints.c (simplify_operand_subreg): Allow subreg
15538 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
15539 slow. Emit two reloads for slow mem case, first loading in
15540 fast innermode, then converting to required mode.
15542 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
15544 * config/rs6000/altivec.h (vec_extract_exp): New macro.
15545 (vec_extract_sig): New macro.
15546 (vec_insert_exp): New macro.
15547 (vec_test_data_class): New macro.
15548 (scalar_extract_exp): New macro.
15549 (scalar_extract_sig): New macro.
15550 (scalar_insert_exp): New macro.
15551 (scalar_test_data_class): New macro.
15552 (scalar_test_neg): New macro.
15553 (scalar_cmp_exp_gt): New macro.
15554 (scalar_cmp_exp_lt): New macro.
15555 (scalar_cmp_exp_eq): New macro.
15556 (scalar_cmp_exp_unordered): New macro.
15557 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
15558 to enforce constraint that operand is a 7-bit unsigned literal.
15559 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
15560 for power9 built-ins.
15561 (BU_P9V_VSX_2): Likewise.
15562 (BU_P9V_64BIT_VSX_2): Likewise.
15563 (VSEEDP): Add scalar extract exponent support.
15564 (VSEESP): Add scalar extract signature support.
15565 (VSTDCNDP): Add scalar test negative support.
15566 (VSTDCNSP): Likewise.
15567 (VSIEDP): Add scalar insert exponent support.
15568 (VSCEDPGT): Add scalar compare exponent greater than support.
15569 (VSCEDPLT): Add scalar compare exponent less than support.
15570 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
15571 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
15572 (VSTDCDP): Add scalar test data class support.
15573 (VSTDCSP): Likewise.
15574 (VSEEDP): Add overload support for scalar extract exponent
15576 (VSESDP): Add overload support for scalar extract signature
15578 (VSTDCN): Add overload support for scalar test negative
15580 (VSTDCNDP): Add overload support for scalar test negative
15582 (VSTDCNSP): Add overload support for scalar test negative
15584 (VSIEDP): Add overload support for scalar insert exponent
15586 (VSTDC): Add overload support for scalar test data class
15588 (VSTDCDP): Add overload support for scalar test data class
15590 (VSTDCSP): Add overload support for scalar test data class
15592 (VSCEDPGT): Add overload support for scalar compare exponent
15593 greater than operation.
15594 (VSCEDPLT): Add overload support for scalar compare exponent
15595 less than operation.
15596 (VSCEDPEQ): Add overload support for scalar compare exponent
15597 test-for-equality operation.
15598 (VSCEDPUO): Add overload support for scalar compare exponent
15599 test-for-unordered operation.
15600 (VEEDP): Add vector extract exponent support.
15602 (VESDP): Add vector extract significand support.
15604 (VIEDP): Add vector insert exponent support.
15606 (VTDCDP): Add vector test data class support.
15607 (VTDCSP): Likewise.
15608 (VES): Add overload support for vector extract significand operation.
15611 (VEE): Add overload support for vector extract exponent operation.
15614 (VTDC): Add overload support for vector test data class operation.
15615 (VTDCDP): Likewise.
15616 (VTDCSP): Likewise.
15617 (VIE): Add overload support for vector insert exponent operation.
15620 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15621 overloaded binary floating point functions.
15622 (altivec_resolve_overloaded_builtin): Improve error messages to
15623 distinguish between functions not supported in the current
15624 compiler configuration and functions that were invoked with an
15625 invalid parameter combination, and include the built-in function
15626 name in both error messages.
15627 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
15629 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
15631 (rs6000_expand_binop_builtin): Add check to enforce that argument
15632 2 of the test data class operations is a 7-bit unsigned literal.
15633 (rs6000_invalid_builtin): Add code to issue an error message if a
15634 built-in function that requires the power9_vector and -m32
15635 command-line options is compiled without these options.
15636 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
15637 (UNSPEC_VSX_SXSIGDP): New value.
15638 (UNSPEC_VSX_SXSIGPDP): New value.
15639 (UNSPEC_VSX_SIEXPDP): New value.
15640 (UNSPEC_VSX_SCMPEXPDP): New value.
15641 (UNSPEC_VSX_STSTDC): New value.
15642 (UNSPEC_VSX_VXEXP): New value.
15643 (UNSPEC_VSX_VXSIG): New value.
15644 (UNSPEC_VSX_VIEXP): New value.
15645 (UNSPEC_VSX_VTSTDC): New value.
15646 (xsxexpdp): New insn for scalar extract exponent.
15647 (xsxsigdp): New insn for scalar extract significand.
15648 (xsiexpdp): New insn for scalar insert exponent.
15649 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
15650 (*xscmpexpdp): New insn for scalar compare exponents.
15651 (xststdc<Fvsx): New expansion for both single- and
15652 double-precision scalar test data class operations.
15653 (xststdcneg<Fvsx>): New expansion for both single- and
15654 double-precision scalar test for negative value operations.
15655 (*xststdc<Fvsx>): New insn for scalar test data class
15657 (xvxexp<VSs>): New insn for single- and double-precision
15658 vector extract exponent operation.
15659 (xvxsig<VSs>): New insn for single- and double-precision
15660 vector extract significand operation.
15661 (xviexp<VSs>): New insn for single- and double-precision
15662 vector insert exponent operation.
15663 (xvtstdc<VSs>): New insn for single- and double-precision
15664 vector test data class operation.
15665 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15666 built-in functions to represent the Power9 binary floating-point
15667 support instructions.
15669 2016-08-10 bin cheng <bin.cheng@arm.com>
15671 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
15673 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15674 Renlin Li <renlin.li@arm.com>
15675 Bin Cheng <bin.cheng@arm.com>
15677 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
15678 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
15679 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
15680 (aarch64_vcond_internal<mode><mode>): Delete pattern.
15681 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
15682 (vcond<v_cmp_result><mode>): Ditto.
15683 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
15684 (vcondu<mode><mode>): Ditto.
15685 (vcond<v_cmp_mixed><mode>): New pattern.
15686 (vcondu<mode><v_cmp_mixed>): New pattern.
15687 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
15688 of aarch64_vcond_internal.
15690 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15691 Renlin Li <renlin.li@arm.com>
15692 Bin Cheng <bin.cheng@arm.com>
15694 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
15695 (vec_cmp<mode><v_cmp_result>): New pattern.
15696 (vec_cmpu<mode><mode>): New pattern.
15697 (vcond_mask_<mode><v_cmp_result>): New pattern.
15699 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15701 PR tree-optimization/71734
15702 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
15703 REF_LOOP, invoke ref_indep_loop_p_1.
15704 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
15705 to ref_indep_loop_p.
15706 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
15707 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
15708 is inside LOOP, do not cache dpendence value for loops with
15710 (ref_indep_loop_p_2): Delete function.
15711 (can_sm_ref_p): Pass LOOP as additional argument to
15714 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15717 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
15718 being an offsettable address.
15720 2016-08-10 Martin Liska <mliska@suse.cz>
15722 PR gcov-profile/58306
15723 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
15724 atomic variants of profile update functions.
15726 2016-08-10 Martin Liska <mliska@suse.cz>
15728 Cherry picked (and modified) from google-4_7 branch
15729 2012-12-26 Rong Xu <xur@google.com>
15730 * common.opt (fprofile-update): Add new flag.
15731 * coretypes.h: Define enum profile_update.
15732 * doc/invoke.texi: Document -fprofile-update.
15733 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
15734 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
15735 * tree-profile.c (gimple_init_edge_profiler): Generate
15736 also atomic profiler update.
15737 (gimple_gen_edge_profiler): Likewise.
15739 2016-08-10 David Malcolm <dmalcolm@redhat.com>
15741 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
15742 stack_usage_file to NULL after fclose calls.
15744 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15747 * reload.c (push_reload): Compute subreg_in_class for
15748 subregs of constants and plus expressions. Remove special
15749 handling of SYMBOL_REFs.
15751 2016-08-10 Alan Modra <amodra@gmail.com>
15754 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
15755 SImode for TARGET_E500_DOUBLE when given SImode.
15757 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
15759 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
15760 unused variable __O.
15762 2016-08-09 Martin Liska <mliska@suse.cz>
15764 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
15765 _gcov_reset to __gcov_reset.
15766 * doc/gcov-tool.texi: Fix typo.
15768 2016-08-09 Martin Liska <mliska@suse.cz>
15770 * value-prof.c (gimple_divmod_values_to_profile): Do not
15771 instrument MOD histogram if a value is not a SSA name.
15773 2016-08-09 Martin Liska <mliska@suse.cz>
15775 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
15778 2016-08-09 Renlin Li <renlin.li@arm.com>
15780 PR middle-end/64971
15781 * calls.c (prepare_call_address): Convert funexp to Pmode when
15783 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
15784 (sibcall_value): Likewise.
15786 2016-08-09 Marek Polacek <polacek@redhat.com>
15789 * cselib.c (cselib_expand_value_rtx_1): Add return.
15790 * gengtype.c (dbgprint_count_type_at): Likewise.
15791 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
15792 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
15794 2016-08-09 Martin Jambor <mjambor@suse.cz>
15797 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
15798 if instance is a MEM_REF.
15800 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
15803 * config/i386/i386.md (*movtf_internal): Use
15804 lra_in_progress || reload_completed instead of !can_create_pseudo_p
15805 in the insn constraint.
15806 (*movxf_internal): Ditto.
15807 (*movdf_internal): Ditto.
15808 (*movsf_internal): Ditto.
15810 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15812 PR tree-optimization/72772
15813 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
15816 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15818 PR tree-optimization/72772
15819 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
15821 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
15822 parameter STOP and update calls. Move expand_simple_operations
15823 function call from here...
15824 (simplify_using_initial_conditions): ...to here. Delete parameter
15826 (tree_simplify_using_condition): Delete parameter STOP.
15827 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
15828 simplify_using_initial_conditions.
15830 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
15833 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
15834 Use create_tmp_var_raw instead of create_tmp_var.
15836 2016-08-09 Richard Biener <rguenther@suse.de>
15838 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
15839 Treat same SSA names related.
15841 2016-08-09 Jakub Jelinek <jakub@redhat.com>
15843 PR tree-optimization/72824
15844 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
15845 real_zerop is not negative.
15847 2016-08-09 Richard Biener <rguenther@suse.de>
15849 PR tree-optimization/71802
15850 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
15851 all merge opportunities with the predecessor.
15853 2016-08-09 Richard Biener <rguenther@suse.de>
15856 * ipa-prop.c (ipa_modify_formal_parameters): Build
15857 parameter types with natural alignment also for the
15860 2016-08-08 Andi Kleen <ak@linux.intel.com>
15862 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
15864 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15867 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
15868 do-nothing langhook.
15869 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
15870 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
15871 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
15872 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
15874 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15877 * input.c: Ensure that HAVE_ICONV is defined.
15879 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15881 PR middle-end/72781
15882 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
15883 private vars for lastprivate and for linear iterator.
15885 PR middle-end/68762
15886 * omp-simd-clone.c: Include varasm.h.
15887 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
15888 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
15889 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
15890 update function name.
15892 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15894 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
15895 (avr_diagnose_devicespecs_error): Remove.
15896 (avr_devicespecs_file): Remove composing absolute path for specfile
15897 and its verbose info. Remove conditions to check specs-file,
15899 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15901 PR rtl-optimization/72821
15902 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
15903 just return false for them.
15905 2016-08-08 Alan Modra <amodra@gmail.com>
15908 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
15909 toc refs created during reload. Update function comment.
15911 2016-08-08 Alan Modra <amodra@gmail.com>
15914 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
15915 alternatives. Put loads first, then stores, and reg/reg moves
15916 within same class later. Delete attr length.
15918 2016-08-08 Alan Modra <amodra@gmail.com>
15921 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
15922 (mem_operand_ds_form): New predicate.
15923 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
15924 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
15925 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
15926 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
15927 (extendsfdf2_fpr): Replace o constraint with wY.
15929 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
15931 * tree-ssa-threadbackward.c: Include tree-inline.h
15932 (profitable_jump_thread_path): Use estimate_num_insns to estimate
15933 size of copied block; for cold paths reduce duplication.
15934 (find_jump_threads_backwards): Remove redundant tests.
15935 (pass_thread_jumps::gate): Enable for -Os.
15937 2016-08-07 Jakub Jelinek <jakub@redhat.com>
15940 * stor-layout.c (layout_decl): Fix up formatting.
15941 (relayout_decl): Allow DECL to be FIELD_DECL.
15943 2016-08-07 Alan Modra <amodra@gmail.com>
15945 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
15947 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15949 * data-streamer-in.c (streamer_read_wide_int): New.
15950 (streamer_read_widest_int): Renamed function.
15951 * data-streamer-out.c (streamer_write_wide_int): New
15952 (streamer_write_widest_int): Renamed function.
15953 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
15955 (input_cfg): Call renamed function.
15956 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
15958 (output_cfg): Call renamed function.
15959 * data-streamer.h: Add declarations.
15961 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15963 * tree-ssa-ccp.c (extend_mask): New param sgn.
15964 Remove ORing with wi::mask.
15965 (get_default_value): Adjust call to extend_mask to pass sign.
15966 (evaluate_stmt): Likewise.
15968 2016-08-06 Jakub Jelinek <jakub@redhat.com>
15970 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
15973 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15975 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
15976 transform if operand's type is pointer to function or method.
15978 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15980 PR tree-optimization/18046
15981 * tree-ssa-threadedge.c: Include cfganal.h.
15982 (simplify_control_statement_condition): If simplifying a
15983 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
15984 with the dominating ASSERT_EXPR before handing it off to VRP.
15985 Mention that a CASE_LABEL_EXPR may be returned.
15986 (thread_around_empty_blocks): Adjust to handle
15987 simplify_control_statement_condition() returning a
15989 (thread_through_normal_block): Likewise.
15990 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
15991 a switch statement by trying to determine which case label
15994 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
15996 PR rtl-optimization/69847
15997 * lra-constraints.c (process_invariant_for_inheritance): Save
15998 pattern instead of src.
15999 (remove_inheritance_pseudos): Use the pattern. Add assert.
16001 2016-08-05 David Malcolm <dmalcolm@redhat.com>
16003 * input.c (string_concat::string_concat): New constructor.
16004 (string_concat_db::string_concat_db): New constructor.
16005 (string_concat_db::record_string_concatenation): New method.
16006 (string_concat_db::get_string_concatenation): New method.
16007 (string_concat_db::get_key_loc): New method.
16008 (class auto_cpp_string_vec): New class.
16009 (get_substring_ranges_for_loc): New function.
16010 (get_source_range_for_substring): New function.
16011 (get_num_source_ranges_for_substring): New function.
16012 (class selftest::lexer_test_options): New class.
16013 (struct selftest::lexer_test): New struct.
16014 (class selftest::ebcdic_execution_charset): New class.
16015 (selftest::ebcdic_execution_charset::s_singleton): New variable.
16016 (selftest::lexer_test::lexer_test): New constructor.
16017 (selftest::lexer_test::~lexer_test): New destructor.
16018 (selftest::lexer_test::get_token): New method.
16019 (selftest::assert_char_at_range): New function.
16020 (ASSERT_CHAR_AT_RANGE): New macro.
16021 (selftest::assert_num_substring_ranges): New function.
16022 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
16023 (selftest::assert_has_no_substring_ranges): New function.
16024 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
16025 (selftest::test_lexer_string_locations_simple): New function.
16026 (selftest::test_lexer_string_locations_ebcdic): New function.
16027 (selftest::test_lexer_string_locations_hex): New function.
16028 (selftest::test_lexer_string_locations_oct): New function.
16029 (selftest::test_lexer_string_locations_letter_escape_1): New function.
16030 (selftest::test_lexer_string_locations_letter_escape_2): New function.
16031 (selftest::test_lexer_string_locations_ucn4): New function.
16032 (selftest::test_lexer_string_locations_ucn8): New function.
16033 (selftest::uint32_from_big_endian): New function.
16034 (selftest::test_lexer_string_locations_wide_string): New function.
16035 (selftest::uint16_from_big_endian): New function.
16036 (selftest::test_lexer_string_locations_string16): New function.
16037 (selftest::test_lexer_string_locations_string32): New function.
16038 (selftest::test_lexer_string_locations_u8): New function.
16039 (selftest::test_lexer_string_locations_utf8_source): New function.
16040 (selftest::test_lexer_string_locations_concatenation_1): New
16042 (selftest::test_lexer_string_locations_concatenation_2): New
16044 (selftest::test_lexer_string_locations_concatenation_3): New
16046 (selftest::test_lexer_string_locations_macro): New function.
16047 (selftest::test_lexer_string_locations_stringified_macro_argument):
16049 (selftest::test_lexer_string_locations_non_string): New function.
16050 (selftest::test_lexer_string_locations_long_line): New function.
16051 (selftest::test_lexer_char_constants): New function.
16052 (selftest::input_c_tests): Call the new test functions once per
16053 case within the line_table test matrix.
16054 * input.h (struct string_concat): New struct.
16055 (struct location_hash): New struct.
16056 (class string_concat_db): New class.
16057 * substring-locations.h: New header.
16059 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
16061 PR tree-optimization/72810
16062 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
16063 the type of the case labels when truncating.
16065 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16068 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
16069 (aarch64_fp16_ptr_type_node): Likewise.
16070 * config/aarch64/aarch64-simd-builtins.c
16071 (aarch64_fp16_ptr_type_node): Define.
16072 (aarch64_init_fp16_types): New, refactored out of...
16073 (aarch64_init_builtins): ...here, update to call
16074 aarch64_init_fp16_types.
16075 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
16077 (aapcs_vfp_sub_candidate): Likewise.
16079 2016-08-05 Martin Liska <mliska@suse.cz>
16080 Joshua Cranmer <Pidgeot18@gmail.com>
16082 * gcov.c (line_t::has_block): New function.
16083 (enum loop_type): New enum.
16084 (handle_cycle): New function.
16085 (unblock): Likewise.
16086 (circuit): Likewise.
16087 (get_cycles_count): Likewise.
16088 (accumulate_line_counts): Use new loop detection algorithm.
16090 2016-08-05 Martin Liska <mliska@suse.cz>
16092 * gcov.c (output_intermediate_file): Rename
16093 function_info::line_next to next_file_fn.
16094 (process_file): Likewise.
16095 (read_graph_file): Likewise.
16096 (accumulate_line_counts): Likewise.
16097 (output_lines): Likewise.
16099 2016-08-05 Richard Biener <rguenther@suse.de>
16101 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
16102 restriction on threading to a loop header.
16104 2016-08-05 Richard Biener <rguenther@suse.de>
16106 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
16107 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
16108 adjust loop info accordingly.
16110 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16112 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
16113 before folding call to __builtin_constant_p with parameters to false.
16115 2016-08-05 Alan Modra <amodra@gmail.com>
16117 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
16118 code accidentally committed 2016-05-02 providing class when given
16121 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16123 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
16124 the case label ranges that partially overlap with OP's value
16127 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
16130 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
16131 Cast builtin function result to __mmask16 instead of __mmask8.
16132 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16133 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
16134 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16136 2016-08-04 David Malcolm <dmalcolm@redhat.com>
16138 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
16139 (ASSERT_TRUE_AT): New macro.
16140 (ASSERT_FALSE): Reimplement in terms of...
16141 (ASSERT_FALSE_AT): New macro.
16142 (ASSERT_STREQ_AT): Fix typo in comment.
16144 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16146 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
16147 labels are exhaustive, designate the label with the widest
16148 range to be the default label.
16150 2016-08-04 Andrew Pinski <apinski@cavium.com>
16152 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
16153 (thunderx_tunings): Use thunderx_vector_cost instead of
16154 generic_vector_cost.
16156 2016-08-04 Martin Liska <mliska@suse.cz>
16158 * gcov.c (main): Fix GNU coding style.
16159 (output_intermediate_file): Likewise.
16160 (process_file): Likewise.
16161 (generate_results): Likewise.
16162 (release_structures): Likewise.
16163 (create_file_names): Likewise.
16164 (find_source): Likewise.
16165 (read_graph_file): Likewise.
16166 (find_exception_blocks): Likewise.
16167 (canonicalize_name): Likewise.
16168 (make_gcov_file_name): Likewise.
16169 (mangle_name): Likewise.
16170 (accumulate_line_counts): Likewise.
16171 (output_branch_count): Likewise.
16172 (read_line): Likewise.
16174 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16176 PR rtl-optimization/71779
16177 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
16178 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
16179 or if it was truncated.
16181 PR rtl-optimization/70903
16182 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
16184 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16186 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
16187 accessing SSA_NAME_PTR_INFO.
16189 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16192 * common/config/avr/avr-common.c (avr_option_optimization_table)
16193 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
16195 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16198 * config/avr/avr.md: New pattern to work around do_store_flag
16199 generating shift instructions for bit extractions.
16201 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16203 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
16205 (add_equivalence): Likewise.
16206 (get_value_range): Allocate value range with vrp_value_range_pool.
16207 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
16208 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
16210 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
16212 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
16213 the default for the rs6000 port.
16215 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16217 PR middle-end/71876
16218 * calls.c (special_function_p): Remove special handling of
16219 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
16220 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
16221 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
16223 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
16225 PR middle-end/72778
16226 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
16227 Don't stop on regular insns.
16229 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
16231 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
16232 size to DImode boundary.
16233 (nvptx_propagate): Likewise.
16235 2016-08-03 Alan Modra <amodra@gmail.com>
16237 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
16238 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
16239 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
16240 from -mefficient-unaligned-vector. Note that this affects fp too.
16242 2016-08-03 Alan Modra <amodra@gmail.com>
16244 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
16247 2016-08-03 Alan Modra <amodra@gmail.com>
16249 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
16250 to a reg. Localize vars.
16252 2016-08-03 Alan Modra <amodra@gmail.com>
16254 * config/rs6000/rs6000.opt: Remove negatives from help strings
16257 2016-08-03 Alan Modra <amodra@gmail.com>
16259 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
16260 Delete duplicated code.
16262 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16264 PR middle-end/72778
16265 * lra-spills.c (regno_in_use_p): New.
16266 (lra_final_code_change): Use it.
16268 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16270 PR rtl-optimization/69847
16271 * lra-int.h (struct lra-reg): Use restore_rtx instead of
16273 (lra_rtx_hash): New.
16274 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
16276 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
16277 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
16278 * lra-spills.c (lra_final_code_change): Don't delete insn when the
16279 next insn is USE with the same reg as the current insn source.
16280 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
16282 (lra_constraints_init): Call initiate_invariants.
16283 (lra_constraints_finish): Call finish_invariants.
16284 (struct invariant, invariant_t, invariant_ptr_t): New.
16285 (const_invariant_ptr_t, invariants, invariants_pool): New.
16286 (invariant_table, invariant_hash, invariant_eq_p): New.
16287 (insert_invariant, initiate_invariants, finish_invariants): New.
16288 (clear_invariants, invalid_invariant_regs): New.
16289 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
16290 instead of restore_regno.
16291 (invariant_p, process_invariant_for_inheritance): New.
16292 (inherit_in_ebb): Implement invariant inheritance.
16293 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
16294 (remove_inheritance_pseudos): Implement undoing invariant
16296 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
16297 instead of restore_regno.
16298 * lra-assigns.c (regno_live_length): New.
16299 (reload_pseudo_compare_func): Use regno_live_length.
16300 (assign_by_spills): Use restore_rtx instead of restore_regno.
16301 (lra_assign): Ditto. Initiate regno_live_length.
16303 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
16305 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
16306 __builtin_aarch64_fmindf.
16308 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16310 PR tree-optimization/34114
16311 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
16312 information for more control IVs.
16314 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16316 PR tree-optimization/34114
16317 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
16318 PLUS_EXPR case. Handle SSA_NAME case.
16320 2016-08-02 Tamar Christina <tamar.christina@arm.com>
16322 * config/aarch64/aarch64-simd-builtins.def
16323 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
16324 (__builtin_aarch64_fmaxdf): Likewise.
16325 (__builtin_aarch64_smin_nandf): Likewise.
16326 (__builtin_aarch64_smax_nandf): Likewise.
16327 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
16328 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
16329 (<fmaxmin><mode>3): ...this.
16330 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
16331 (vminnm_f64): Likewise.
16332 (vmin_f64): Likewise.
16333 (vmax_f64): Likewise.
16334 * config/aarch64/iterators.md (FMAXMIN): Merge with...
16335 (FMAXMIN_UNS): ...this.
16336 (fmaxmin): Merged with
16337 (fmaxmin_op): ...this...
16338 (maxmin_uns_op): ...in to this.
16340 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16342 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16343 Add support for vec_extract on vector float, vector int, vector
16344 short, and vector char vector types.
16345 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16346 vector float, vector int, vector short, and vector char
16347 optimizations on 64-bit ISA 2.07 systems for both constant and
16348 variable element numbers.
16349 (rs6000_split_vec_extract_var): Likewise.
16350 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
16351 Altivec registers on ISA 2.07 and above.
16352 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
16353 which never was matched due to the split occuring before register
16354 allocation (and the code would not have worked on little endian
16355 systems if it did match). Allow extracts to go to the Altivec
16356 registers if ISA 2.07 (power8). Change from using "" around the
16357 C++ code to using {}'s.
16358 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
16359 vec_extracts when the vector is in memory.
16360 (vsx_extract_v4sf_var): New insn to optimize vector float
16361 vec_extracts when the element number is variable on 64-bit ISA
16363 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
16364 for 64-bit ISA 2.07 as well as ISA 3.0.
16365 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
16366 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
16367 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
16368 optimize vector int, vector short, and vector char vec_extracts
16369 when the vector is in memory.
16370 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
16371 optimize vector int, vector short, and vector char vec_extracts
16372 when the element number is variable.
16374 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16377 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
16378 does not overlap with other symbol flags.
16380 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
16382 * config/aarch64/aarch64.h (aarch64_frame):
16383 Remove padding0 and hardfp_offset. Add locals_offset,
16384 initial_adjust, callee_adjust, callee_offset and final_adjust.
16385 * config/aarch64/aarch64.c (aarch64_layout_frame):
16386 Remove unused padding0 and hardfp_offset initializations.
16387 Choose frame layout and set frame variables accordingly.
16388 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
16389 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
16390 (aarch64_pop_regs): Likewise.
16391 (aarch64_expand_prologue): Remove all decision code, just emit
16392 prolog according to frame variables.
16393 (aarch64_expand_epilogue): Remove all decision code, just emit
16394 epilog according to frame variables.
16395 (aarch64_initial_elimination_offset): Use offset to local/arg area.
16397 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
16400 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
16401 fix_debug_reg_uses after changing source register mode to
16402 V1TImode if source register is undefined.
16404 2015-08-01 Alan Hayward <alan.hayward@arm.com>
16406 PR tree-optimization/71818
16407 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
16408 with non invariant evolutions
16410 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16413 * config/avr/avr.md (length) [branch]: Correct insn length
16414 attribute for forward branches.
16416 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16418 * doc/extend.texi (AVR Built-in Functions): Document
16419 __builtin_avr_nops.
16420 * config/avr/builtins.def (NOPS): New.
16421 * config/avr/avr.c (avr_expand_nops): New static function.
16422 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
16424 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16426 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
16427 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
16430 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
16432 * config/aarch64/aarch64.c (vulcan_tunings): Update
16433 vulcan L1 cache_line_size.
16435 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
16437 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
16438 function that takes a vector memory address, a hard register, an
16439 element number and a temporary base register, and recreates an
16440 address that points to the appropriate element within the vector.
16441 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
16442 (rs6000_split_vec_extract_var): Add support for the target of a
16443 vec_extract with variable element number being a scalar memory
16445 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
16447 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
16448 vsx_extract_<mode>_load insn with a new insn that optimizes
16449 storing either element to a memory location, using scratch
16450 registers to pick apart the vector and reconstruct the address.
16451 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
16452 (vsx_extract_<mode>_store): Rework alternatives to more correctly
16453 support Altivec registers. Add support for ISA 3.0 Altivec d-form
16455 (vsx_extract_<mode>_var): Add support for extracting a variable
16456 element number from memory.
16458 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16460 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
16461 when testing for compares against constants of the form 0xabab.
16463 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16465 PR tree-optimization/57558
16466 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
16468 (vect_loop_versioning): Support versioning with niter assumptions.
16469 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
16470 (vect_get_loop_niters): New parameter. Reimplement to support
16471 assumptions in loop niter info.
16472 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
16473 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
16474 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
16475 Support loop versioning for niters.
16476 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
16477 (vect_free_loop_info_assumptions): New function.
16478 (vectorize_loops): Free loop niter info for loops with flag
16479 LOOP_F_ASSUMPTIONS set if vectorization failed.
16480 * tree-vectorizer.h (struct _loop_vec_info): New field
16481 num_iters_assumptions.
16482 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
16483 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
16484 (LOOP_REQUIRES_VERSIONING): New macro.
16485 (vect_free_loop_info_assumptions): New decl.
16487 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16489 * cfgloop.h (struct loop): New field constraints.
16490 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
16491 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
16493 * cfgloop.c (alloc_loop): Initialize new field.
16494 * cfgloopmanip.c (copy_loop_info): Copy constraints.
16495 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
16496 Adjust niter analysis wrto loop constraints.
16497 * doc/loop.texi (@node Number of iterations): Add description for loop
16500 2016-07-29 Marek Polacek <polacek@redhat.com>
16503 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
16504 (ix86_expand_round_builtin): Likewise.
16506 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16507 Georg-Johann Lay <avr@gjlay.de>
16509 PR rtl-optimization/71976
16510 * combine.c (get_last_value): Return 0 if the argument for which
16511 the function is called has a wider mode than the recorded value.
16513 2016-07-29 Marek Polacek <polacek@redhat.com>
16516 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
16517 (altivec_expand_st_builtin): Likewise.
16519 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16521 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
16522 introduced in r238381.
16524 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16526 PR middle-end/68217
16527 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
16528 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
16530 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
16532 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
16534 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16535 Add support for vec_extract of vector double or vector long having
16536 a variable element number on 64-bit ISA 2.07 systems or newer.
16537 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
16539 (rs6000_split_vec_extract_var): New function to split a
16540 vec_extract built-in function with variable element number.
16541 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
16543 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
16544 (UNSPEC_VSX_EXTRACT): Likewise.
16545 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
16546 direct move instructions to be generated on 64-bit ISA 2.07
16547 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
16549 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
16550 arguments for vec_extract variable element.
16551 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
16552 vec_extract with variable element on V2DFmode and V2DImode
16554 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
16555 -mupper-regs-df requirement, since it isn't needed.
16556 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
16557 do direct moves on 64-bit systems, which allows optimization of
16558 vec_extract on 64-bit ISA 2.07 systems and newer.
16560 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16561 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16563 * config/aarch64/aarch64.md
16564 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
16565 statement and type.
16566 (<optab>qihi2_aarch64): Likewise, and split into two.
16567 (extendqihi2_aarch64): New.
16568 (zero_extendqihi2_aarch64): New.
16569 * config/aarch64/iterators.md (ldrxt): Remove.
16570 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
16573 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16575 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
16577 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16579 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
16580 (aarch64_push_reg): New function to push 1 or 2 registers.
16581 (aarch64_pop_reg): New function to pop 1 or 2 registers.
16582 (aarch64_expand_prologue): Use aarch64_push_regs.
16583 (aarch64_expand_epilogue): Use aarch64_pop_regs.
16585 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
16587 PR tree-optimization/71734
16588 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
16589 attribute instead of REF_LOOP and use it.
16590 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
16591 set it for Loops having non-zero safelen attribute.
16592 (ref_indep_loop_p): Pass zero as initial value for safelen.
16594 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
16596 PR middle-end/72657
16598 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
16599 call using chkp_gimple_call_builtin_p.
16600 (chkp_copy_bounds_for_assign): Likewise.
16602 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16604 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
16605 * config/arm/arm-protos.h (struct tune_params): Likewise.
16606 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16607 (cortex_a9_sched_adjust_cost): Likewise.
16608 (fa726te_sched_adjust_cost): Likewise.
16609 (arm_adjust_cost): Likewise.
16610 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
16611 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
16612 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
16613 * config/i386/i386.c (ix86_adjust_cost): Likewise.
16614 * config/ia64/ia64.c: Likewise.
16615 * config/m68k/m68k.c: Likewise.
16616 * config/mep/mep.c (mep_adjust_cost): Likewise.
16617 * config/microblaze/microblaze.c (microblaze_adjust_cost):
16619 * config/mips/mips.c (mips_adjust_cost): Likewise.
16620 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
16622 * config/pa/pa.c (pa_adjust_cost): Likewise.
16623 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
16624 (rs6000_debug_adjust_cost): Likewise.
16625 * config/sh/sh.c (sh_adjust_cost): Likewise.
16626 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
16627 (hypersparc_adjust_cost): Likewise.
16628 (sparc_adjust_cost): Likewise.
16629 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
16630 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
16631 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
16633 * config/visium/visium.c (visium_adjust_cost): Likewise.
16634 * doc/tm.texi: Regenerate.
16635 * haifa-sched.c (dep_cost_1): Adjust.
16636 * target.def: Merge adjust_cost and adjust_cost_2.
16638 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16640 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
16642 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16644 * store-motion.c (struct st_expr): Make pattern_regs a vector.
16645 (extract_mentioned_regs): Append to a vector instead of
16646 returning a rtx_expr_list.
16647 (st_expr_entry): Adjust.
16648 (free_st_expr_entry): Likewise.
16649 (store_ops_ok): Likewise.
16650 (store_killed_in_insn): Likewise.
16651 (find_moveable_store): Likewise.
16653 2016-07-28 Martin Liska <mliska@suse.cz>
16655 PR gcov-profile/68025
16656 * tree-profile.c (tree_profiling): Respect
16657 no_profile_instrument_function attribute.
16658 * doc/extend.texi: Document no_profile_instrument_function
16661 2016-07-28 Martin Liska <mliska@suse.cz>
16663 PR rtl-optimization/70944
16664 * combine.c (make_compound_operation):
16665 Do not allow make_compound_operation for vector mode
16667 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
16669 PR middle-end/71994
16670 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
16671 before calling get_ops.
16673 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16675 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
16676 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
16677 (BITS_PER_UNIT_LOG): Remove.
16678 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
16679 * expr.c (expand_assignment): Likewise.
16680 * stor-layout.c (initialize_sizetypes): Likewise.
16682 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16684 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
16685 signature of rs6000_expand_vector_extract so that the element
16686 number is a RTX instead of a constant integer.
16687 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
16689 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
16690 (altivec_expand_vec_ext_builtin): Likewise.
16691 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
16692 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
16693 MFVSRLD instruction.
16695 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16697 * input.c (get_pure_location): Move here from tree.c.
16698 (make_location): Likewise. Add header comment.
16699 (selftest::test_accessing_ordinary_linemaps): Verify
16700 pure_location_p, make_location, get_location_from_adhoc_loc and
16701 get_range_from_loc.
16702 * input.h (get_pure_location): Move declaration here from tree.h.
16703 (get_finish): Likewise for inline function.
16704 (make_location): Likewise for declaration.
16705 * tree.c (get_pure_location): Move to input.c.
16706 (make_location): Likewise.
16707 * tree.h (get_pure_location): Move declaration to tree.h.
16708 (get_finish): Likewise for inline function.
16709 (make_location): Likewise for declaration.
16711 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16713 PR middle-end/71078
16714 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
16716 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16718 * system.h (STATIC_ASSERT): Use static_assert if building
16719 with C++11 onwards.
16721 2016-07-27 Richard Biener <rguenther@suse.de>
16723 PR tree-optimization/72517
16724 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
16725 Revert change to not compute read-read dependences.
16727 2016-07-27 Richard Biener <rguenther@suse.de>
16729 * predict.c (set_even_probabilities): Make nedges unsigned.
16731 2016-07-27 Martin Liska <mliska@suse.cz>
16733 * predict.c (set_even_probabilities): Handle unlikely edges.
16734 (combine_predictions_for_bb): Likewise.
16736 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16739 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
16740 __float128 support when we don't have hardware support, so that
16741 the IEEE built-in functions like isgreater, first call __unordkf3
16742 to make sure neither operand is a NaN, and if both operands are
16743 ordered, do the normal comparison.
16745 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16747 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
16749 (extract_code_and_val_from_cond_with_ops): Verify that name is
16750 either cond_op0 or cond_op1.
16752 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16754 PR tree-optimization/18046
16755 * genmodes.c (emit_mode_size_inline): Emit an assert that
16756 verifies that mode is a valid array index.
16757 (emit_mode_nuinits_inline): Likewise.
16758 (emit_mode_inner_inline): Likewise.
16759 (emit_mode_unit_size_inline): Likewise.
16760 (emit_mode_unit_precision_inline): Likewise.
16761 * tree-vrp.c: Include params.h.
16762 (find_switch_asserts): Register edge assertions for the default
16763 label which correspond to the anti-ranges of each case label.
16764 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
16765 * doc/invoke.texi: Document it.
16767 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16769 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
16770 and unnecessary call to gimple_bb.
16772 2016-07-26 Richard Biener <rguenther@suse.de>
16774 PR rtl-optimization/71984
16775 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
16778 2016-07-26 Richard Biener <rguenther@suse.de>
16780 PR middle-end/72517
16781 * expmed.c (extract_bit_field_1): Constrain the vector mode
16782 with element size matching the extraction mode size when
16783 choosing a better vector mode to do the extraction from.
16785 2016-07-26 Richard Biener <rguenther@suse.de>
16786 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16788 PR middle-end/70920
16789 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
16792 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16794 * tree-ssa-structalias.c (struct scc_info): Change types of
16795 members to auto_sbitmap and auto_vec.
16796 (scc_info::scc_info): New constructor.
16797 (scc_info::~scc_info): New destructor.
16798 (init_scc_info): Remove.
16799 (free_scc_info): Remove.
16800 (find_indirect_cycles): Adjust.
16801 (perform_var_substitution): Likewise.
16802 (free_var_substitution_info): Likewise.
16804 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16806 * tree-outof-ssa.c (struct elim_graph): Change type of members
16807 to auto_vec and auto_sbitmap.
16808 (elim_graph::elim_graph): New constructor.
16809 (delete_elim_graph): Remove.
16810 (expand_phi_nodes): Adjust.
16812 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16814 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
16815 (new_elim_graph): Adjust.
16816 (clear_elim_graph): Likewise.
16817 (delete_elim_graph): Likewise.
16818 (elim_graph_size): Likewise.
16819 (elim_graph_add_node): Likewise.
16820 (elim_graph_add_edge): Likewise.
16821 (elim_graph_remove_succ_edge): Likewise.
16822 (eliminate_name): Likewise.
16823 (eliminate_build): Likewise.
16824 (elim_forward): Likewise.
16825 (elim_unvisited_predecessor): Likewise.
16826 (elim_backward): Likewise.
16827 (elim_create): Likewise.
16828 (eliminate_phi): Likewise.
16829 (expand_phi_nodes): Likewise.
16831 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16833 * bt-load.c (compute_out): Use auto_sbitmap class.
16834 (link_btr_uses): Likewise.
16835 * cfganal.c (mark_dfs_back_edges): Likewise.
16836 (post_order_compute): Likewise.
16837 (inverted_post_order_compute): Likewise.
16838 (pre_and_rev_post_order_compute_fn): Likewise.
16839 (single_pred_before_succ_order): Likewise.
16840 * cfgexpand.c (pass_expand::execute): Likewise.
16841 * cfgloop.c (verify_loop_structure): Likewise.
16842 * cfgloopmanip.c (fix_bb_placements): Likewise.
16843 (remove_path): Likewise.
16844 (update_dominators_in_loop): Likewise.
16845 * cfgrtl.c (break_superblocks): Likewise.
16846 * ddg.c (check_sccs): Likewise.
16847 (create_ddg_all_sccs): Likewise.
16848 * df-core.c (df_worklist_dataflow): Likewise.
16849 * dse.c (dse_step3): Likewise.
16850 * except.c (eh_region_outermost): Likewise.
16851 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16852 * gcse.c (prune_expressions): Likewise.
16853 (prune_insertions_deletions): Likewise.
16854 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
16855 * graph.c (draw_cfg_nodes_no_loops): Likewise.
16856 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
16857 * lcm.c (compute_earliest): Likewise.
16858 (compute_farthest): Likewise.
16859 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
16860 (unroll_loop_runtime_iterations): Likewise.
16861 (unroll_loop_stupid): Likewise.
16862 * lower-subreg.c (decompose_multiword_subregs): Likewise.
16863 * lra-lives.c: Likewise.
16864 * lra.c (lra): Likewise.
16865 * modulo-sched.c (schedule_reg_moves): Likewise.
16866 (optimize_sc): Likewise.
16867 (get_sched_window): Likewise.
16868 (sms_schedule_by_order): Likewise.
16869 (check_nodes_order): Likewise.
16870 (order_nodes_of_sccs): Likewise.
16871 (order_nodes_in_scc): Likewise.
16872 * recog.c (split_all_insns): Likewise.
16873 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
16874 * reload1.c (reload): Likewise.
16875 * sched-rgn.c (haifa_find_rgns): Likewise.
16876 (split_edges): Likewise.
16877 (compute_trg_info): Likewise.
16878 * sel-sched.c (init_seqno): Likewise.
16879 * store-motion.c (remove_reachable_equiv_notes): Likewise.
16880 * tree-into-ssa.c (update_ssa): Likewise.
16881 * tree-ssa-live.c (live_worklist): Likewise.
16882 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
16883 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
16885 (try_peel_loop): Likewise.
16886 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
16888 * tree-ssa-pre.c (compute_antic): Likewise.
16889 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
16890 * tree-stdarg.c (reachable_at_most_once): Likewise.
16891 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
16892 * var-tracking.c (vt_find_locations): Likewise.
16894 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16896 * sbitmap.h (auto_sbitmap): New class.
16898 2016-07-26 Alan Modra <amodra@gmail.com>
16901 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
16904 2016-07-25 David Malcolm <dmalcolm@redhat.com>
16906 * input.c (selftest::temp_source_file::temp_source_file): Fix
16907 missing "%s" in fprintf.
16909 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
16911 PR middle-end/71732
16912 * cselib.c (cselib_process_insn): Invalidate argument slots for
16915 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16917 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
16918 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
16919 vmulxh_lane_f16, vmulxh_laneq_f16): New.
16921 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16923 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16924 * config/aarch64/aarch64.md (fma, fnma): Support HF.
16925 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
16927 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16929 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16930 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
16932 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
16933 (add<mode>3): Likewise.
16934 (sub<mode>3): Likewise.
16935 (mul<mode>3): Likewise.
16936 (div<mode>3): Likewise.
16937 (*div<mode>3): Likewise.
16938 (<fmaxmin><mode>3): Extend to HF.
16939 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
16940 (fabd<mode>3): Likewise.
16941 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
16942 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
16943 (aarch64_fmulx<mode>): Likewise.
16944 (aarch64_fac<optab><mode>): Likewise.
16945 (aarch64_frecps<mode>): Likewise.
16946 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
16947 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
16948 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
16949 (VSDQ_HSDI): Support HI.
16950 (fcvt_target, FCVT_TARGET): Likewise.
16951 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
16952 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
16953 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
16954 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
16955 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
16956 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
16957 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
16958 vrsqrtsh_f16): New.
16960 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16962 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
16963 * config/aarch64/aarch64-builtins.c (hi_UP): New.
16964 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16965 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
16967 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
16968 (aarch64_cm<optab><mode>): Likewise.
16969 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
16970 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
16971 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16972 (sqrt<mode>2): Likewise.
16973 (*sqrt<mode>2): Likewise.
16974 (abs<mode>2): Likewise.
16975 (<optab><mode>hf2): New pattern for HF mode.
16976 (<optab>hihf2): Likewise.
16977 * config/aarch64/arm_neon.h: Include arm_fp16.h.
16978 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
16979 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
16981 * config/aarch64/arm_fp16.h: New file.
16982 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
16983 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
16984 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
16985 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
16986 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
16987 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
16988 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
16989 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
16990 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
16991 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
16992 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
16993 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
16996 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16998 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
16999 reduc_smin_scal_): Use VDQIF_F16.
17000 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
17001 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
17003 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
17004 * config/aarch64/iterators.md (VDQIF_F16): New.
17005 (vp): Support HF modes.
17006 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
17007 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
17009 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17011 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
17012 "*aarch64_mulx_elt_from_dup<mode>".
17013 (*aarch64_mul3_elt<mode>): Update schedule type.
17014 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
17015 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
17016 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
17017 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
17018 (f, fp): Support HF modes.
17019 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
17020 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
17021 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
17022 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
17023 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
17024 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
17026 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17028 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17029 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
17031 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
17034 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17036 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17037 * config/aarch64/aarch64-simd.md
17038 (aarch64_rsqrts<mode>): Extend to HF modes.
17039 (fabd<mode>3): Likewise.
17040 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
17041 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
17042 (aarch64_<maxmin_uns>p<mode>): Likewise.
17043 (<su><maxmin><mode>3): Likewise.
17044 (<maxmin_uns><mode>3): Likewise.
17045 (<fmaxmin><mode>3): Likewise.
17046 (aarch64_faddp<mode>): Likewise.
17047 (aarch64_fmulx<mode>): Likewise.
17048 (aarch64_frecps<mode>): Likewise.
17049 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
17050 (add<mode>3): Extend to HF modes.
17051 (sub<mode>3): Likewise.
17052 (mul<mode>3): Likewise.
17053 (div<mode>3): Likewise.
17054 (*div<mode>3): Likewise.
17055 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
17057 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
17058 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
17059 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
17060 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
17061 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
17062 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
17063 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
17064 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
17065 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
17066 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
17067 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
17068 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
17069 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
17070 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
17072 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17074 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
17075 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17076 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
17077 (neg<mode>2): Likewise.
17078 (abs<mode>2): Likewise.
17079 (<frint_pattern><mode>2): Likewise.
17080 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
17081 (<optab><VDQF:mode><fcvt_target>2): Likewise.
17082 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
17083 (ftrunc<VDQF:mode>2): Likewise.
17084 (<optab><fcvt_target><VDQF:mode>2): Likewise.
17085 (sqrt<mode>2): Likewise.
17086 (*sqrt<mode>2): Likewise.
17087 (aarch64_frecpe<mode>): Likewise.
17088 (aarch64_cm<optab><mode>): Likewise.
17089 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
17091 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
17092 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
17094 * config/aarch64/arm_neon.h (vdup_n_f16): New.
17095 (vdupq_n_f16): Likewise.
17096 (vld1_dup_f16): Use vdup_n_f16.
17097 (vld1q_dup_f16): Use vdupq_n_f16.
17098 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
17099 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
17100 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
17101 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
17102 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
17103 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
17104 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
17105 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
17106 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
17107 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
17108 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
17109 vsqrt_f16, vsqrtq_f16): New.
17111 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17113 * config/aarch64/aarch64-simd.md
17114 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
17115 (aarch64_ext<mode>): Likewise.
17116 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
17117 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
17118 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
17120 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
17122 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
17123 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
17124 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
17125 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
17126 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
17127 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
17128 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
17130 (vmov_n_f16): Reimplement using vdup_n_f16.
17131 (vmovq_n_f16): Reimplement using vdupq_n_f16..
17133 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17135 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
17136 "frame_related_p". Generate CFA annotation when it's necessary.
17137 (aarch64_expand_prologue): Use aarch64_add_constant.
17138 (aarch64_expand_epilogue): Likewise.
17139 (aarch64_output_mi_thunk): Pass "false" when calling
17140 aarch64_add_constant.
17142 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17144 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
17147 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17149 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
17150 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
17151 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
17152 (aarch64_build_constant): Delete.
17154 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
17157 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17159 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17160 flag_toplevel_reorder.
17162 2016-07-25 Richard Biener <rguenther@suse.de>
17164 * cgraph.c (cgraph_node::verify_node): Compare against builtin
17165 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
17166 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
17167 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
17168 (streamer_get_builtin_tree): Likewise.
17169 (streamer_write_builtin): Likewise.
17170 * lto-streamer.h (LTO_builtin_decl): Remove.
17171 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
17172 (lto_input_scc): Remove LTO_builtin_decl handling.
17173 (lto_input_tree_1): Liekwise.
17174 * lto-streamer-out.c (lto_output_tree_1): Remove special
17175 handling of builtins.
17176 (DFS::DFS): Likewise.
17177 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
17178 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
17180 (streamer_write_builtin): Remove.
17182 2016-07-25 Martin Liska <mliska@suse.cz>
17184 * lto-cgraph.c (input_symtab): Don't call get_working_sets
17185 if flag_auto_profile is set to true.
17187 2016-07-25 Martin Liska <mliska@suse.cz>
17189 PR gcov-profile/71868
17190 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
17191 have a function with multiple latches, count them all.
17193 2016-07-25 Martin Liska <mliska@suse.cz>
17195 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
17197 2016-07-25 Martin Liska <mliska@suse.cz>
17199 PR tree-optimization/71987
17200 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
17201 just for SSA_NAMEs. Fix GNU coding style.
17203 2016-07-25 Martin Liska <mliska@suse.cz>
17205 PR gcov-profile/64874
17206 * gcov-io.h: Update command about file format.
17207 * gcov-iov.c (main): Adapt the numbering scheme.
17209 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
17211 PR middle-end/66726
17212 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
17213 whose result is used in PHI.
17214 (final_range_test_p): Likewise.
17215 (maybe_optimize_range_tests): Likewise.
17217 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
17219 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17220 Reformat two multi-line strings.
17222 2016-07-22 Martin Sebor <msebor@redhat.com>
17224 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
17226 2016-07-22 Martin Sebor <msebor@redhat.com>
17229 * doc/extend.texi (Compound Literals): Correct and clarify.
17230 (Cast to Union): Same.
17232 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
17234 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17235 comments to explain why certain error messages make mention of
17236 undocumented options.
17237 (rs6000_invalid_builtin): Change error messages to replace mention
17238 of undocumented options with mention of the -mcpu=power9 option
17239 that enables those undocumented options.
17240 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
17241 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
17242 definition of this macro to correct an existing error.
17243 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
17244 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
17245 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
17246 descriptions of built-in functions so that they depend on
17247 -mcpu=power9 instead of on the corresponding undocumented flags.
17248 * doc/invoke.texi (Option Summary): Remove all mention of newly
17249 undocumented flags.
17250 (IBM RS/6000 and PowerPC Options): Likewise.
17251 * doc/md.texi (Constraints for Particuliar Machines): Remove all
17252 mention of newly undocumented flags.
17254 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
17256 * ipa-cp.c (determine_versionability): Do not create constprop clones,
17257 when target_clones attribute is set.
17259 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17261 * common.opt (funsafe-loop-optimizations): Mark ignore.
17262 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
17263 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
17265 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
17266 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
17268 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17270 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17272 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17274 (number_of_iterations_exit): Warn missed loop optimization for
17275 possible infinite loops.
17277 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
17280 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
17281 when to emit a ".machine" pseudo-op.
17283 2016-07-22 Martin Liska <mliska@suse.cz>
17285 PR gcov-profile/69028
17286 PR gcov-profile/62047
17287 * coverage.c (coverage_compute_lineno_checksum): Do not
17288 calculate checksum for fns w/o xloc.file.
17289 (coverage_compute_profile_id): Likewise.
17291 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
17293 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
17294 (avr_secondary_reload): ...and implementation.
17295 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
17296 * config/avr/avr.md (reload_in<mode>): Remove insns.
17297 (adjust_len) [lpm]: Remove insn attribute value.
17298 * config/avr/predicates.md (flash_operand): Remove insn predicate.
17300 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17302 PR middle-end/71876
17303 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
17305 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
17306 * calls.c (special_function_p): Remove the special handling of the
17307 "__builtin_" prefix.
17309 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17311 PR middle-end/71876
17312 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
17313 if STMT may be an alloca call.
17314 (gimple_alloca_call_p, alloca_call_p): Return only true for the
17315 builtin alloca call.
17316 * calls.h (gimple_maybe_alloca_call_p): New function.
17317 * tree-inline.c (inline_forbidden_p_stmt): Use
17318 gimple_maybe_alloca_call_p here.
17320 2016-07-21 David Malcolm <dmalcolm@redhat.com>
17322 * spellcheck-tree.c (best_macro_match::best_macro_match):
17323 Explictly specify the template arguments when invoking the base
17324 class constructor, to help older C++ compilers.
17326 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17329 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
17330 before builtin_decl_implicit.
17332 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17334 * optabs.c (emit_condiitonal_move): Short circuit for identical
17337 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17339 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
17340 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
17341 (noce_conversion_profitable_p): New.
17342 (noce_try_store_flag_constants): Use it.
17343 (noce_try_addcc): Likewise.
17344 (noce_try_store_flag_mask): Likewise.
17345 (noce_try_cmove): Likewise.
17346 (noce_try_cmove_arith): Likewise.
17347 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
17349 (noce_convert_multiple_sets): Move cost model to here, from...
17350 (bb_ok_for_noce_convert_multiple_sets) ...here.
17351 (noce_process_if_block): Update calls for above changes.
17352 (noce_find_if_block): Record new noce_if_info parameters.
17354 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17356 * target.def (max_noce_ifcvt_seq_cost): New.
17357 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
17358 * doc/tm.texi: Regenerate.
17359 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
17360 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
17361 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
17362 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
17363 * doc/invoke.texi: Document new params.
17365 2016-07-21 Richard Biener <rguenther@suse.de>
17367 PR tree-optimization/71947
17368 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
17369 ranges have useful limit_vr information.
17371 2016-07-21 Richard Biener <rguenther@suse.de>
17373 * function-tests.c (build_trivial_generic_function): Set
17374 BLOCK_SUPERCONTEXT of DECL_INITIAL.
17375 * omp-low.c (create_omp_child_function): Likewise.
17376 (grid_expand_target_grid_body): Likewise.
17377 * cgraphunit.c (init_lowered_empty_function): Likewise.
17378 (cgraph_node::expand_thunk): Likewise.
17379 * tree-parloops.c (create_loop_fn): Likewise.
17380 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
17382 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17384 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
17387 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
17389 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
17390 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
17391 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
17392 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
17393 values for insn attribute.
17394 * config/avr/avr.c (avr_out_insert_notbit): New function.
17395 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
17396 ADJUST_LEN_INSV_NOTBIT_0/_7.
17397 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
17399 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17401 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
17402 (chrec_convert_1, chrec_convert): Ditto.
17403 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
17404 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
17405 * tree-vrp.c (adjust_range_with_scev): Ditto.
17406 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
17407 (scev_var_range_cant_overflow): New function.
17408 (scev_probably_wraps_p): New parameter. Call above function.
17409 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
17411 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17413 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
17414 by removing computation of may_be_zero.
17416 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17418 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
17420 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
17422 Improving concepts performance and diagnostics.
17423 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
17424 for constraint satisfaction and subsumption.
17425 * timevar.h (auto_timevar): New constructor that matches the push/pop
17426 pattern of usage in pt.c.
17428 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17430 * hwint.h (HOST_WIDE_INT_0): New define.
17431 (HOST_WIDE_INT_0U): Ditto.
17432 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
17433 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
17434 * simplify-rtx.c: Ditto.
17435 * tree-object-size.c: Ditto.
17437 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17439 * config/s390/s390.c (s390_encode_section_info): Remove mode size
17442 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17444 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
17445 * combine.c: Use HOST_WIDE_INT_M1U instead of
17446 ~(unsigned HOST_WIDE_INT) 0.
17447 * double-int.h: Ditto.
17449 * dwarf2asm.c:Ditto.
17451 * genmodes.c: Ditto.
17453 * read-rtl.c: Ditto.
17454 * tree-ssa-loop-ivopts.c: Ditto.
17455 * tree-ssa-loop-prefetch.c: Ditto.
17456 * tree-vect-generic.c: Ditto.
17457 * tree-vect-patterns.c: Ditto.
17460 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17462 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
17463 constant addresses outside [0,0xc0] into a register.
17464 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
17465 cases where the base address register is unused after.
17466 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
17467 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
17468 (avr_out_store_psi_reg_disp_tiny): Same.
17470 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17472 Implement attribute progmem on reduced Tiny cores by adding
17473 flash offset 0x4000 to respective symbols.
17476 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
17477 documentation how it works on reduced Tiny cores.
17478 (AVR Named Address Spaces): No support for reduced Tiny.
17479 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
17480 (avr_address_tiny_pm_p): New static function.
17481 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
17482 if the address is in progmem.
17483 (avr_assemble_integer): Same.
17484 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
17485 for symbol_ref in progmem.
17486 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
17487 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
17488 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
17490 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
17492 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
17493 * configure: Regenerate.
17494 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
17495 (USE_THIN_ARCHIVES): New variable.
17496 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
17497 this archive as a thin archive.
17499 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17501 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
17502 same location as last time, don't skip if we have fix-it hints.
17503 Clarify the skipping logic by converting it from one "if" clause
17504 to repeated "if" clauses.
17505 * spellcheck-tree.c: Include "cpplib.h".
17506 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
17507 (best_macro_match::best_macro_match): New constructor.
17508 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
17509 Move here from c/c-decl.c.
17510 (class best_macro_match): Move here from c/c-decl.c, converting
17511 from a typedef to a subclass, gaining a ctor.
17513 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17515 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
17516 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
17518 (avr_addr_space_diagnose_usage): ...and implementation.
17519 (avr_addr_space_supported_p): New function.
17520 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
17521 report bad address space usage if that space is supported.
17522 (avr_insert_attributes): Same. No more complain about unsupported
17524 * config/avr/avr-c.c (tm_p.h): Include it.
17525 (avr_cpu_cpp_builtins): Only define addr-space related built-in
17526 macro if avr_addr_space_supported_p.
17528 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17530 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17531 flag_toplevel_reorder.
17533 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17535 * gcc-rich-location.c
17536 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
17538 * gcc-rich-location.h
17539 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
17541 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17543 * target.def (addr_space): Add new diagnose_usage to hook vector.
17544 * targhooks.c (default_addr_space_diagnose_usage): Add default
17545 implementation and...
17546 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
17547 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
17548 is some address space, call targetm.addr_space.diagnose_usage.
17549 * doc/tm.texi.in (Named Address Spaces): Add anchor for
17550 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
17551 * doc/tm.texi: Regenerate.
17553 2016-07-20 Martin Liska <mliska@suse.cz>
17555 PR middle-end/71898
17556 * graphite-isl-ast-to-gimple.c (later_of_the_two):
17557 Properly handly PHI stmts.
17559 2016-07-20 Bin Cheng <bin.cheng@arm.com>
17561 PR tree-optimization/71503
17562 PR tree-optimization/71683
17563 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
17566 2016-07-20 Martin Liska <mliska@suse.cz>
17568 * doc/invoke.texi (-fipa-ra): Document when the option is
17569 disabled. Fix a typo.
17571 2016-07-20 Martin Liska <mliska@suse.cz>
17573 * Makefile.in: Include fibonacci_heap.c
17574 * fibonacci_heap.c: New file.
17575 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
17576 (fibonacci_heap::union_with): Fix deletion of the second heap.
17577 * selftest-run-tests.c (selftest::run_tests): Incorporate
17578 fibonacci heap tests.
17579 * selftest.h: Declare fibonacci_heap_c_tests.
17581 2016-07-20 Martin Liska <mliska@suse.cz>
17583 * selftest-run-tests.c (selftest::run_tests): New function.
17584 * selftest.h (sreal_c_tests): Declare.
17585 * sreal.c (sreal_verify_basics): New function.
17586 (verify_aritmetics): Likewise.
17587 (sreal_verify_arithmetics): Likewise.
17588 (verify_shifting): Likewise.
17589 (sreal_verify_shifting): Likewise.
17590 (void sreal_c_tests): Likewise.
17592 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17594 PR rtl-optimization/71916
17595 * cfgrtl.c (contains_no_active_insn_p): Return false also for
17596 bb which have a single succ fake edge.
17598 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
17601 * dwarf2out.c (gen_subprogram_die): Only call
17602 gen_unspecified_parameters_die while dumping early dwarf.
17604 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17606 PR middle-end/71874
17607 * gimple-fold.c (fold_builtin_memory_op): Use
17608 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
17610 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
17612 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
17613 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
17614 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
17615 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
17616 * combine.c: Ditto.
17619 * double-int.c: Ditto.
17621 * dwarf2out.c: Ditto.
17624 * fold-const.c: Ditto.
17625 * function.c: Ditto.
17627 * genmodes.c: Ditto.
17631 * loop-doloop.c: Ditto.
17632 * loop-invariant.c: Ditto.
17633 * loop-iv.c: Ditto.
17638 * rtlanal.c: Ditto.
17639 * simplify-rtx.c: Ditto.
17640 * stor-layout.c: Ditto.
17642 * tree-ssa-loop-ivopts.c: Ditto.
17643 * tree-vect-generic.c: Ditto.
17644 * tree-vect-patterns.c: Ditto.
17649 * wide-int-print.cc: Ditto.
17650 * wide-int.cc: Ditto.
17651 * wide-int.h: Ditto.
17653 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17655 * selftest.c (selftest::assert_streq): Handle NULL values of
17656 val_actual and val_expected.
17658 2016-07-19 Martin Jambor <mjambor@suse.cz>
17661 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
17662 rather than cgraph_create_node to get a call graph node.
17664 2016-07-19 Richard Biener <rguenther@suse.de>
17666 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
17667 handle all tcc_constant bases and valueize SSA names.
17668 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
17669 tcc_constant bases.
17671 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17673 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
17674 the flags of the exit block and bb2, not just the entry block.
17676 2016-07-19 Richard Biener <rguenther@suse.de>
17678 PR tree-optimization/71901
17679 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17680 align member, group stuff with the bitfield.
17681 (vn_ref_op_align_unit): New inline.
17682 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
17683 record element alignment and operand 3 unchanged.
17684 (ao_ref_init_from_vn_reference): Adjust.
17685 (valueize_refs_1): Likewise.
17686 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17688 2016-07-19 Richard Biener <rguenther@suse.de>
17690 PR tree-optimization/71908
17691 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
17692 symbolic constants in a more reliable way.
17694 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
17696 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
17698 (vect_update_inits_of_drs): Likewise.
17699 (vect_create_cond_for_alias_checks): Likewise.
17700 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
17702 2016-07-19 Richard Biener <rguenther@suse.de>
17705 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
17706 with an abstract origin that is not an inlined function outer
17707 scope add a self-reference as abstract origin.
17708 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
17710 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17713 * config/rs6000/rs6000.c (rs6000_function_value): Fix
17714 unintentional System V.4 structure return breakage for structures
17715 with a single floating point element.
17717 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17719 PR tree-optimization/71734
17720 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
17721 contains REF, use it to check safelen, assume that safelen value
17722 must be greater 1, fix style.
17723 (ref_indep_loop_p_2): Add REF_LOOP argument.
17724 (ref_indep_loop_p): Pass LOOP as additional argument to
17725 ref_indep_loop_p_2.
17727 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
17729 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
17730 allocation in the prologue.
17731 * explow.c (get_dynamic_stack_base): New function to return an address
17732 expression for the dynamic stack base.
17733 (get_dynamic_stack_size): New function to do the required dynamic stack
17734 space size calculations.
17735 (allocate_dynamic_stack_space): Use new functions.
17736 (align_dynamic_address): Move some code from
17737 allocate_dynamic_stack_space to new function.
17738 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
17740 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17742 * config/s390/s390.c (s390_encode_section_info): Always set
17743 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
17746 2016-07-18 Richard Biener <rguenther@suse.de>
17748 PR tree-optimization/71893
17749 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
17750 for sizetype cast added by array_ref_element_size.
17751 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17753 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
17755 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
17756 register parameters. Remove code to initialize argument pointer
17757 on TARGET_64BIT. Optimize call to _mcount when it can be reached
17758 using a pc-relative branch. Cleanup conditional code.
17759 * config/pa/pa.md (call_mcount): New expander.
17760 (call_mcount_nonpic): New insn.
17761 (call_mcount_pic): New insn and split.
17762 (call_mcount_pic_post_reload): New insn.
17763 (call_mcount_64bit): New insn and split.
17764 (call_mcount_64bit_post_reload): New insn.
17766 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
17768 * config/avr/predicates.md (const_m255_to_m1_operand): New.
17769 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
17770 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
17771 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
17772 (*usum_widenqihi3, *udiff_widenqihi3)
17773 (*addhi3_zero_extend.const): New combiner insns.
17774 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
17775 just 1 bit is affected.
17776 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
17777 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
17779 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
17781 * omp-low.c (lower_omp_target): Mark data clauses with
17782 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
17783 zero-length subarrays.
17785 2016-07-15 Richard Biener <rguenther@suse.de>
17787 PR tree-optimization/71881
17788 * tree-loop-distribution.c (destroy_loop): Remove blocks in
17789 reverse DOM order to make debug temp generation happy.
17791 2016-07-15 Richard Biener <rguenther@suse.de>
17793 PR tree-optimization/71887
17794 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
17795 verify it is not zero for division / modulo handling.
17796 (value_replacement): Adjust.
17798 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
17799 Julian Brown <julian@codesourcery.com>
17801 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
17802 * config/aarch64/aarch64-cost-tables.h
17803 (vulcan_extra_costs): New variable.
17804 * config/aarch64/aarch64.c
17805 (vulcan_addrcost_table): Likewise.
17806 (vulcan_regmove_cost): Likewise.
17807 (vulcan_vector_cost): Likewise.
17808 (vulcan_branch_cost): Likewise.
17809 (vulcan_tunings): Likewise.
17811 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
17813 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
17814 (output_in_order): Loop over undefined variables too. Output them
17815 via assemble_undefined_decl. Skip variables that correspond to hard
17816 registers or have value-exprs.
17817 * varpool.c (symbol_table::output_variables): Handle undefined
17818 variables together with defined ones.
17820 2016-07-15 Richard Biener <rguenther@suse.de>
17822 * tree-ssa-pre.c (get_representative_for): Make sure to return
17823 the value number of SSA names.
17824 (phi_translate_1): get_representative_for cannot return NULL.
17825 (do_pre_regular_insertion): Remove redundant call to
17826 fully_constant_expression.
17827 (do_pre_partial_partial_insertion): Likewise.
17829 2016-07-15 Bin Cheng <bin.cheng@arm.com>
17831 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
17832 (derive_simple_iv_with_niters): New function.
17833 (simple_iv): Rewrite using simple_iv_with_niters.
17834 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
17835 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17837 (number_of_iterations_exit): Rewrite using above function.
17838 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17841 2016-07-15 Richard Biener <rguenther@suse.de>
17843 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
17844 vec_construct cost.
17846 2016-07-14 Jakub Jelinek <jakub@redhat.com>
17848 PR tree-optimization/71872
17849 * tree-data-ref.c (get_references_in_stmt): Ignore references
17850 with is_gimple_constant get_base_address.
17852 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17854 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
17855 (TARGET_HAVE_LDACQD): New macro.
17856 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
17857 than TARGET_HAVE_LDACQ.
17858 (arm_load_acquire_exclusivedi): Likewise.
17859 (arm_store_release_exclusivedi): Likewise.
17861 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17863 PR rtl-optimization/71878
17864 * lra-constraints.c (match_reload): Pass information about other
17865 output operands. Create new unique register value if matching input
17866 operand shares same register value as output operand being considered.
17867 (curr_insn_transform): Record output operands already processed.
17869 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17872 PR tree-optimization/70923
17873 * tree-vect-patterns.c: Include mult-synthesis.h.
17874 (target_supports_mult_synth_alg): New function.
17875 (synth_lshift_by_additions): Likewise.
17876 (apply_binop_and_append_stmt): Likewise.
17877 (vect_synth_mult_by_constant): Likewise.
17878 (target_has_vecop_for_code): Likewise.
17879 (vect_recog_mult_pattern): Use above functions to synthesize vector
17880 multiplication by integer constants.
17882 2016-07-14 Alan Modra <amodra@gmail.com>
17884 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
17885 gpr alternatives. Correct '*' placement on Y,r alternative.
17886 Add '*' on operand 1 of r,r alternative.
17888 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17890 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
17891 * expmed.h: ... Here.
17893 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
17895 * gimple.h (stmt_can_terminate_bb_p): New function.
17896 * tree-cfg.c (need_fake_edge_p): Rename to ...
17897 (stmt_can_terminate_bb_p): ... this; return true if stmt can
17898 throw external; handle const and pure calls.
17899 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
17901 2016-07-14 Richard Biener <rguenther@suse.de>
17903 PR tree-optimization/71866
17904 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
17905 (do_hoist_insertion): Avoid endless recursion when we
17906 didn't insert anything because we managed to simplify
17907 things down to a constant or SSA name.
17908 (fully_constant_expression): Re-write in terms of ...
17909 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
17910 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
17911 vn_nary_build_or_lookup_1.
17912 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
17913 (vn_nary_build_or_lookup): ... this which now wraps it.
17915 2016-07-14 Alan Modra <amodra@gmail.com>
17918 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
17919 with p9_vector override before power9-dform override.
17921 2016-07-13 Andi Kleen <ak@linux.intel.com>
17923 * value-prof.c (gimple_value_profile_transformations): Don't run
17924 when auto_profile is on.
17926 2016-07-13 Andi Kleen <ak@linux.intel.com>
17928 * auto-profile.c (update_inlined_ind_target,
17929 afdo_indirect_call): Print information to dump file.
17931 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
17933 * genrecog.c (special_predicate_operand_p): New function.
17934 (predicate_name): Move function.
17935 (validate_pattern): Don't warn about missing mode for all
17936 define_special_predicate predicates.
17938 2016-07-13 Bin Cheng <bin.cheng@arm.com>
17940 * tree-vect-data-refs.c (vect_no_alias_p): New function.
17941 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
17942 resolve alias checks which are known at compilation time.
17943 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
17944 alias checks are resolved. Move dump info for too many runtime
17945 alias checks to here...
17946 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
17948 2016-07-13 Richard Biener <rguenther@suse.de>
17950 PR tree-optimization/24574
17951 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
17952 position and add shift, rotate, divison and modulo support
17954 (value_replacement): Pass in argument position to absorbing_element_p.
17956 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
17959 * ipa-inline-transform.c (inline_call): Support
17960 instrumented thunks.
17962 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17964 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
17965 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
17967 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
17968 Baseline. Make initial alternative TARGET_32BIT only.
17969 (udivsi3): Likewise.
17970 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
17971 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
17974 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17976 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
17977 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
17978 availability with TARGET_HAVE_MOVT.
17979 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
17980 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
17981 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
17983 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
17984 extra instruction if MOVW is available. Use a cost variable
17985 incremented by COSTS_N_INSNS (1) when the condition match rather than
17986 returning an arithmetic expression based on COSTS_N_INSNS. Make
17987 constant with bottom half word zero cost 2 instruction if MOVW is
17989 * config/arm/arm.md (define_attr "arch"): Add v8mb.
17990 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
17991 target is ARMv8-M Baseline.
17992 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
17993 (arm_movtas_ze): Likewise.
17994 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
17995 alternative for constants satisfying j constraint.
17996 (thumb1_movsi_insn): Likewise.
17997 (movsi splitter for K alternative): Tighten condition to not trigger
17998 if movt is available and j constraint is satisfied.
17999 (Pe immediate splitter): Likewise.
18000 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
18001 constant fitting in an halfword to use MOVW.
18002 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
18005 2016-07-13 Richard Biener <rguenther@suse.de>
18007 PR middle-end/71104
18008 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
18009 gimplifying the LHS. Make sure to gimplify a returning twice
18010 call LHS without using SSA names.
18012 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18014 * tree-data-ref.c (find_data_references_in_stmt): Remove
18015 unnecessary call to vec::release.
18016 (graphite_find_data_references_in_stmt): Likewise.
18017 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
18018 * tree-vect-stmts.c (vectorizable_condition): Likewise.
18020 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18022 * cfgexpand.c (expand_used_vars): Make the type of a local
18024 * genmatch.c (lower_for): Likewise.
18025 * haifa-sched.c (haifa_sched_init): Likewise.
18026 (add_to_speculative_block): Likewise.
18027 (create_check_block_twin): Likewise.
18028 * predict.c (handle_missing_profiles): Likewise.
18029 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
18030 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
18031 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
18033 (maybe_lower_iteration_bound): Likewise.
18034 * tree-ssa-sccvn.c (DFS): Likewise.
18035 * tree-stdarg.c (reachable_at_most_once): Likewise.
18036 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
18037 (vectorizable_store): Likewise.
18039 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18041 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
18042 (sccvn_dom_walker): make cond_stack an auto_vec.
18044 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18046 * ree.c (struct ext_state): Make type of members auto_vec.
18047 (find_and_remove_re): Adjust.
18049 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18051 * cfgexpand.c (struct stack_vars_data): Make type of fields
18053 (expand_used_vars): Adjust.
18055 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18057 * ipa.c (record_cdtor_fn): Adjust.
18058 (build_cdtor_fns): Likewise.
18059 (ipa_cdtor_merge): Make static_ctors and static_dtors local
18062 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18064 * genextract.c (struct accum_extract): Add constructor and make
18066 (gen_insn): Adjust.
18068 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18070 * tree.c (struct free_lang_data_d): Add constructor and change
18071 types of members to ones that automatically manage resources.
18072 (fld_worklist_push): Adjust.
18073 (find_decls_types): Likewise.
18074 (find_decls_types_in_eh_region): Likewise.
18075 (free_lang_data_in_cgraph): Stop manually creating and
18076 destroying members of free_lang_data_d.
18078 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
18080 PR rtl-optimization/68961
18081 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
18082 peephole variant. Use sse_reg_operand predicates.
18084 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
18086 * config/i386/predicates.md (x86_64_immediate_operand)
18087 <case CONST_INT>: Remove unneeded truncation to DImode.
18088 <case CONST>: Ditto.
18089 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18091 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18094 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
18095 The xxperm and xxpermr instructions require that the 2nd input
18096 operand overlap with the output operand, and not the 1st.
18097 (altivec_vperm_v8hiv16qi): Likewise.
18098 (altivec_vperm_<mode>_uns_internal): Likewise.
18099 (altivec_vpermr_<mode>_internal): Likewise.
18100 (vperm_v8hiv4si): Likewise.
18101 (vperm_v16qiv8hi): Likewise.
18103 2016-07-12 Nathan Sidwell <nathan@acm.org>
18105 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
18106 when -mno-pic-data-is-text-relative is in effect, by default.
18107 * doc/invoke.texi (mpic-data-is-text-relative): Document new
18108 behavior and clarify.
18110 2016-07-12 Martin Liska <mliska@suse.cz>
18112 * params.def: Add avg-loop niter.
18113 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
18114 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
18115 * doc/invoke.texi: Document the new parameter.
18117 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18119 PR middle-end/71700
18120 * expr.c (store_constructor): Mask sign-extended bits when widening
18121 sub-word constructor element at the start of a word.
18123 2016-07-12 Martin Liska <mliska@suse.cz>
18125 * Makefile.in: Append rule for params-options.h.
18126 * params-options.h: New file.
18128 2016-07-12 Martin Liska <mliska@suse.cz>
18130 * ira-build.c (mark_loops_for_removal): Properly iterate
18133 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
18134 Richard Biener <rguenther@suse.de>
18136 PR tree-optimization/23286
18137 PR tree-optimization/70159
18138 * doc/invoke.texi: Document -fcode-hoisting.
18139 * common.opt (fcode-hoisting): New flag.
18140 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
18141 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
18142 (do_regular_insertion): Rename to ...
18143 (do_pre_regular_insertion): ... this and amend general comments
18144 on insertion strathegy.
18145 (do_partial_partial_insertion): Rename to ...
18146 (do_pre_partial_partial_insertion): ... this.
18147 (do_hoist_insertion): New function.
18148 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
18149 and call do_hoist_insertion properly.
18151 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
18152 (pass_pre::execute): Register hoist_insert stats.
18154 2016-07-12 Jakub Jelinek <jakub@redhat.com>
18156 PR middle-end/71716
18157 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
18158 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
18159 is different from mode's bitsize. Small cleanup.
18161 2016-07-12 Richard Biener <rguenther@suse.de>
18163 PR rtl-optimization/68961
18164 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
18165 to simplify to a non-constant.
18167 2016-07-11 Jakub Jelinek <jakub@redhat.com>
18169 PR middle-end/71758
18170 * omp-low.c (expand_omp_target): Gimplify device.
18172 PR tree-optimization/71823
18173 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
18174 to get vec_oprnds2 from op2.
18176 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
18178 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
18179 Hoist common subexpressions.
18180 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18182 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
18185 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
18186 prevent generation of 'stxsiwx' on pre Power8 hardware.
18188 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18190 * input.c: Include cpplib.h.
18191 (selftest::temp_source_file): New class.
18192 (selftest::temp_source_file::temp_source_file): New ctor.
18193 (selftest::temp_source_file::~temp_source_file): New dtor.
18194 (selftest::should_have_column_data_p): New function.
18195 (selftest::test_should_have_column_data_p): New function.
18196 (selftest::temp_line_table): New class.
18197 (selftest::temp_line_table::temp_line_table): New ctor.
18198 (selftest::temp_line_table::~temp_line_table): New dtor.
18199 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
18200 it to create a temp_line_table.
18201 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
18202 locations that are known to have column data.
18203 (selftest::line_table_case): New struct.
18204 (selftest::test_reading_source_line): Move tempfile handling
18205 to class temp_source_file.
18206 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
18207 (selftest::assert_token_loc_eq): New function.
18208 (ASSERT_TOKEN_LOC_EQ): New macro.
18209 (selftest::test_lexer): New function.
18210 (selftest::boundary_locations): New array.
18211 (selftest::input_c_tests): Call test_should_have_column_data_p.
18212 Loop over a test matrix of interesting values of location and
18213 default_range_bits, calling test_lexer on each case in the matrix.
18214 Move call to test_accessing_ordinary_linemaps into the matrix.
18215 * selftest.h (ASSERT_EQ): Reimplement in terms of...
18216 (ASSERT_EQ_AT): New macro.
18218 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
18221 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
18222 Don't convert TImode in debug insn.
18224 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
18226 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
18227 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
18228 (tree_type_common::lang_flag_7): New.
18229 (tree_type_common::spare): Reduce size.
18230 * tree.h (TYPE_ALIGN_OK): Remove.
18231 (TYPE_LANG_FLAG_7): New.
18232 (get_inner_reference): Adjust header.
18233 * print-tree.c (print_node): Adjust.
18234 * expr.c (get_inner_reference): Remove parameter keep_aligning.
18235 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
18236 calls to get_inner_reference.
18237 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
18238 handling of TYPE_ALIGN_OK.
18239 * builtins.c (get_object_alignment_2): Adjust call to
18240 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
18241 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
18243 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
18244 * cfgexpand.c (expand_debug_expr): Likewise.
18245 * dbxout.c (dbxout_expand_expr): Likewise.
18246 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
18247 loc_list_from_tree, fortran_common): Likewise.
18248 * fold-const.c (optimize_bit_field_compare,
18249 decode_field_reference, fold_unary_loc, fold_comparison,
18250 split_address_to_core_and_offset): Likewise.
18251 * gimple-laddress.c (execute): Likewise.
18252 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
18253 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
18254 * hsa-gen.c (gen_hsa_addr): Likewise.
18255 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
18256 * tsan.c (instrument_expr): Likewise.
18257 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
18258 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
18259 * tree-affine.c (tree_to_aff_combination,
18260 get_inner_reference_aff): Adjust calls to get_inner_reference.
18261 * tree-data-ref.c (split_constant_offset_1,
18262 dr_analyze_innermost): Likewise.
18263 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
18264 * tree-sra.c (ipa_sra_check_caller): Likewise.
18265 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
18266 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
18267 bswap_replace): Likewise.
18268 * tree-vect-data-refs.c (vect_check_gather,
18269 vect_analyze_data_refs): Likewise.
18270 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
18271 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
18274 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18276 * Makefile.in (selftest-valgrind): New phony target.
18277 * function-tests.c (selftest::build_cfg): Delete pass instances
18278 created by the test.
18279 (selftest::convert_to_ssa): Likewise.
18280 (selftest::test_expansion_to_rtl): Likewise.
18281 * tree-cfg.c (selftest::test_linear_chain): Release dominator
18283 (selftest::test_diamond): Likewise.
18285 2016-07-11 Richard Biener <rguenther@suse.de>
18287 PR tree-optimization/71816
18288 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
18289 than replacing all of its operands.
18291 2016-07-11 Alan Modra <amodra@gmail.com>
18293 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
18294 (ctr<mode>): Add unspec.
18295 (ctr<mode>_internal*): Likewise.
18297 2016-07-08 James Bowman <james.bowman@ftdichip.com>
18299 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
18300 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
18302 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
18304 PR rtl-optimization/71621
18305 * lra-constraints.c (process_alt_operands): Check combination of
18306 reg class and mode.
18308 2016-07-08 Jason Merrill <jason@redhat.com>
18309 Richard Biener <rguenther@suse.de>
18311 P0145: Refining Expression Order for C++.
18312 * gimplify.c (initial_rhs_predicate_for): New.
18313 (gimplfy_modify_expr): Gimplify RHS before LHS.
18315 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18318 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18319 Allow standard error handling to take over when a wrong number
18320 of arguments is presented to __builtin_vec_ld () or
18321 __builtin_vec_st ().
18323 2016-07-08 Jiong Wang <jiong.wang@arm.com>
18325 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
18330 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
18331 __builtin_aarch64_fmaxv2sf.
18332 (vmaxnmq_f32): Likewise.
18333 (vmaxnmq_f64): Likewise.
18334 (vminnm_f32): Likewise.
18335 (vminnmq_f32): Likewise.
18336 (vminnmq_f64): Likewise.
18338 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18341 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
18342 enable -mfloat128-hardware by default.
18343 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
18344 that IEEE 128-bit hardware support needs.
18345 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18346 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
18347 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
18348 floating point requires.
18349 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18350 -mfloat128 and -mfloat128-hardware changes.
18352 2016-07-08 Alan Hayward <alan.hayward@arm.com>
18354 PR tree-optimization/71667
18355 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
18357 2016-07-08 Martin Liska <mliska@suse.cz>
18359 PR middle-end/71606
18360 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
18361 folding produces SAVE_EXPRs, thus return false for the type.
18363 2016-07-07 Martin Liska <mliska@suse.cz>
18365 * file-find.c (remove_prefix): New function.
18366 * file-find.h (remove_prefix): Declare the function.
18367 * gcc-ar.c (main): Skip a folder of the wrapper if
18368 a wrapped binary would point to the same file.
18370 2016-07-07 Jan Hubicka <jh@suse.cz>
18372 * tree-scalar-evolution.c (iv_can_overflow_p): export.
18373 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
18374 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
18376 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
18379 * ipa-inline-analysis.c (compute_inline_parameters): Set
18380 local.can_change_signature to false for intrumentation
18383 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18385 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
18386 with TARGET_HAVE_MOVT.
18387 (TARGET_HAVE_MOVT): Define.
18388 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
18389 availability with TARGET_HAVE_MOVT.
18390 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
18392 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
18394 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
18395 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
18396 * config/arm/constraints.md (define_constraint "j"): Use
18397 TARGET_HAVE_MOVT to check MOVT availability.
18399 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18401 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
18403 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18405 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
18406 (armv8-m.main): Likewise.
18407 (armv8-m.main+dsp): Likewise.
18408 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
18409 (FL_FOR_ARCH8M_MAIN): Likewise.
18410 * config/arm/arm-tables.opt: Regenerate.
18411 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
18412 armv8-m.main+dsp to BE8_LINK_SPEC.
18413 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
18414 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
18415 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
18416 Baseline and Mainline.
18417 (arm_option_override_internal): Also disable arm_restrict_it when
18418 !arm_arch_notm. Update comment for -munaligned-access to also cover
18420 (arm_file_start): Increase buffer size for printing architecture name.
18421 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
18422 and armv8-m.main+dsp.
18423 (mno-unaligned-access): Clarify that this is disabled by default for
18424 ARMv8-M Baseline architectures as well.
18426 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18428 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
18429 decide whether to prevent some libgcc routines being included for some
18430 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
18431 link between this condition and the one in
18432 libgcc/config/arm/lib1func.S.
18434 2016-07-07 Richard Biener <rguenther@suse.de>
18436 * tree-ssa-pre.c: Include alias.h.
18437 (compute_avail): If we have multiple VN_REFERENCEs with the
18438 same hashtable entry adjust that to make it a valid replacement
18439 for all of them with respect to alignment and aliasing
18440 when doing insertion.
18441 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
18442 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
18444 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
18448 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18449 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
18452 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18454 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
18455 (adjust_mems): Adjust.
18456 (adjust_insn): Likewise.
18457 (prepare_call_arguments): Likewise.
18459 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18461 * gcse.c (struct ls_expr): Make stores field a vector.
18462 (ldst_entry): Adjust.
18463 (free_ldst_entry): Likewise.
18464 (print_ldst_list): Likewise.
18465 (compute_ld_motion_mems): Likewise.
18466 (update_ld_motion_stores): Likewise.
18468 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18470 * gcse.c (struct ls_expr): Remove loads field.
18471 (ldst_entry): Adjust.
18472 (free_ldst_entry): Likewise.
18473 (print_ldst_list): Likewise.
18474 (compute_ld_motion_mems): Likewise.
18476 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18478 * store-motion.c (struct st_expr): Make antic_stores a vector.
18479 (st_expr_entry): Adjust.
18480 (free_st_expr_entry): Likewise.
18481 (print_store_motion_mems): Likewise.
18482 (find_moveable_store): Likewise.
18483 (compute_store_table): Likewise.
18484 (remove_reachable_equiv_notes): Likewise.
18485 (replace_store_insn): Likewise.
18486 (build_store_vectors): Likewise.
18488 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18490 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
18491 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
18493 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
18495 PR tree-optimization/71518
18496 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
18497 misalign also for outer loops with negative step.
18499 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
18501 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
18502 (cortex_a53_shift): Add mov_shift.
18503 (cortex_a53_shift_reg): Add new reservation for register shifts.
18504 (cortex_a53_alu): Remove bfm.
18505 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
18506 (cortex_a53_alu_extr): Add new reservation for EXTR.
18507 (bypasses): Improve bypass modelling.
18509 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18512 * config/avr/avr.c (avr_asm_select_section): Strip off
18513 SECTION_DECLARED from flags when calling get_section.
18515 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18517 * tree-vectorizer.h (vect_memory_access_type): Add
18518 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
18519 * tree-vect-stmts.c (compare_step_with_zero): New function.
18520 (perm_mask_for_reverse): Move further up file.
18521 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
18523 (get_negative_load_store_type): New function.
18524 (get_load_store_type): Call it. Add an ncopies argument.
18525 (vectorizable_mask_load_store): Update call accordingly and
18526 remove tests for negative steps.
18527 (vectorizable_store, vectorizable_load): Likewise. Handle new
18528 memory_access_types.
18530 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18532 * tree-vectorizer.h (vect_memory_access_type): New enum.
18533 (_stmt_vec_info): Add a memory_access_type field.
18534 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
18535 (vect_model_store_cost): Take an access type instead of a boolean.
18536 (vect_model_load_cost): Likewise.
18537 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
18538 vect_model_store_cost and vect_model_load_cost.
18539 * tree-vect-stmts.c (vec_load_store_type): New enum.
18540 (vect_model_store_cost): Take an access type instead of a
18541 store_lanes_p boolean. Simplify tests.
18542 (vect_model_load_cost): Likewise, but for load_lanes_p.
18543 (get_group_load_store_type, get_load_store_type): New functions.
18544 (vectorizable_store): Use get_load_store_type. Record the access
18545 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
18546 (vectorizable_load): Likewise.
18547 (vectorizable_mask_load_store): Likewise. Replace is_store
18548 variable with vls_type.
18550 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18552 * tree-vectorizer.h (vect_grouped_load_supported): Add a
18553 single_element_p parameter.
18554 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18555 Check the PR65518 case here rather than in vectorizable_load.
18556 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
18557 * tree-vect-stmts.c (vectorizable_load): Likewise.
18559 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18561 * tree-vectorizer.h (gather_scatter_info): New structure.
18562 (vect_check_gather_scatter): Return a bool rather than a decl.
18563 Replace return-by-pointer arguments with a single
18564 gather_scatter_info *.
18565 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
18566 (vect_analyze_data_refs): Update call accordingly.
18567 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18568 (vectorizable_mask_load_store): Likewise. Also record the
18569 offset dt and vectype in the gather_scatter_info.
18570 (vectorizable_store): Likewise.
18571 (vectorizable_load): Likewise.
18573 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18575 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
18576 strided groups, use the cost of N scalar accesses instead
18577 of ncopies vector accesses.
18578 (vect_model_load_cost): Likewise.
18580 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18582 * tree-vect-stmts.c (vect_cost_group_size): Delete.
18583 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
18584 variable to indicate when once-per-group costs are being used.
18585 (vect_model_load_cost): Likewise. Fix comment and misindented code.
18587 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18589 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
18590 peeling-for-gaps condition.
18592 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18594 * config/s390/s390.c (s390_expand_vec_init): Force initializer
18595 element to register if it doesn't match general_operand.
18597 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
18598 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18600 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
18602 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
18603 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
18604 (SIGNBIT): New mode iterator.
18605 (Fsignbit): New mode attribute.
18606 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
18607 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
18608 when direct moves are available.
18609 (signbit<mode>2_dm): New define_insn_and_split).
18610 (signbit<mode>2_dm2): New define_insn.
18612 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18614 PR rtl-optimization/71594
18615 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
18616 into subregs of appropriate mode before trying to emit a conditional
18619 2016-07-05 Jan Hubicka <jh@suse.cz>
18621 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
18622 (simple_iv): Use it.
18624 2016-07-05 Jan Hubicka <jh@suse.cz>
18626 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
18628 2016-07-05 Jiong Wang <jiong.wang@arm.com>
18630 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
18633 2016-07-05 Jan Hubicka <jh@suse.cz>
18635 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
18638 2016-07-05 Richard Biener <rguenther@suse.de>
18640 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
18641 Handle empty else block.
18642 (is_feasible_trace): Likewise.
18643 (split_paths): Likewise.
18645 2016-07-05 Richard Biener <rguenther@suse.de>
18647 * tree-loop-distribution.c (distribute_loop): Fix issue with
18648 the cost model loop.
18650 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
18652 * config/arm/neon-testgen.ml: Delete.
18653 * config/arm/neon.ml: Delete.
18655 2016-07-04 Jakub Jelinek <jakub@redhat.com>
18658 * tree.c (attribute_value_equal): Use get_attribute_name instead of
18659 directly using TREE_PURPOSE.
18661 2016-07-04 Jiong Wang <jiong.wang@arm.com>
18663 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
18664 * config/aarch64/aarch64_neon.h: Likewise.
18665 * config/aarch64/arm_neon.h: Likewise.
18666 * config/aarch64/atomics.md: Likewise.
18667 * config/aarch64/aarch64-simd-builtins.def: Likewise.
18668 * doc/invoke.texi: Likewise.
18670 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18672 * config/s390/s390.md: Add "z13" cpu_facility.
18673 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
18674 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
18675 condition" type instructions.
18677 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18678 Jeff Law <law@redhat.com>
18680 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
18681 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
18683 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
18685 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
18686 permutation for TARGET_AVX512F.
18687 (ix86_expand_vec_one_operand_perm_avx512): New function.
18688 (expand_vec_perm_1): Invoke introduced function.
18689 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18690 it may be not valid after vectorization.
18692 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18695 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
18696 typo in comment. Only force to memory if it is a weak
18697 external reference.
18699 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
18700 Jiong Wang <jiong.wang@arm.com>
18702 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
18703 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
18704 (AARCH64_FL_F16): New.
18705 (AARCH64_FL_FOR_ARCH8_2): New.
18706 (AARCH64_ISA_8_2): New.
18707 (AARCH64_ISA_F16): New.
18708 (TARGET_FP_F16INST): New.
18709 (TARGET_SIMD_F16INST): New.
18710 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
18711 ("fp"): Disabling "fp" also disables "fp16".
18712 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
18713 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
18714 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
18715 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
18717 2016-07-04 Jan Beulich <jbeulich@suse.com>
18719 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
18721 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18724 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
18725 the insns, use an insn form that does not adjust the offset on
18726 little endian systems.
18728 2016-07-01 Jan Beulich <jbeulich@suse.com>
18730 * varasm.c (get_variable_section): Validate initializer in
18731 named .bss-like sections.
18733 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18735 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
18736 Exchange the order of the second and third operands in the vpermr
18737 instruction tmeplate.
18739 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
18742 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
18743 Disallow TDmode values.
18745 2016-07-01 Alan Modra <amodra@gmail.com>
18747 PR rtl-optimization/71709
18748 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
18749 being set, not referenced.
18751 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18753 PR tree-optimization/70729
18754 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
18755 of loop since it can be not valid after transformation.
18757 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18759 * config/arm/arm.c (thumb_reload_in_hi): Delete.
18760 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
18762 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
18764 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
18767 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
18770 * config/rs6000/constraints.md (wY constraint): New constraint to
18771 match the requirements for the LXSD and STXSD instructions.
18772 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
18773 predicate to match the requirements for the LXSD and STXSD
18775 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
18776 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
18777 to make sure that the bottom 2 bits of offset are 0, the address
18778 form is offsettable, and no updating is done in the address mode.
18779 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
18780 (movdi_internal32): Likewise
18781 (movdi_internal64): Likewise.
18783 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18785 PR tree-optimization/71707
18786 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
18787 strinfo even for ADDR_EXPR ptr.
18789 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18791 * config/rs6000/altivec.md (darn_32): Change the condition to
18792 TARGET_P9_MISC instead of TARGET_MODULO.
18793 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
18794 condition expression.
18795 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
18796 condition expression.
18797 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
18798 (DFP_TEST): New code iterator.
18799 (dfptstsfi_<code>_mode>): New define_expand.
18800 (*dfp_sgnfcnc_<mode>): New define_insn.
18801 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
18802 definition next to BU_P9_MISC_1 definition and change the MASK
18803 value to RS6000_BTM_P9_MISC.
18804 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
18805 (BU_P9_64BIT_MISC_0): Likewise.
18806 (BU_P9_DFP_MISC_0): New macro definition.
18807 (BU_P9_DFP_MISC_1): New macro definition.
18808 (BU_P9_DFP_MISC_2): New macro definition.
18809 (BU_P9_DFP_OVERLOAD_1): New macro definition.
18810 (BU_P9_DFP_OVERLOAD_2): New macro definition.
18811 (BU_P9_DFP_OVERLOAD_3): New macro definition.
18812 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
18813 (TSTSFI_LT_TD): Likewise.
18814 (TSTSFI_EQ_DD): Likewise.
18815 (TSTSFI_EQ_TD): Likewise.
18816 (TSTSFI_GT_DD): Likewise.
18817 (TSTSFI_GT_TD): Likewise.
18818 (TSTSFI_OV_DD): Likewise.
18819 (TSTSFI_OV_TD): Likewise.
18820 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
18821 (TSTSFI_LT_DD): Likewise.
18822 (TSTSFI_LT_TD): Likewise.
18823 (TSTSFI_EQ): Likewise.
18824 (TSTSFI_EQ_DD): Likewise.
18825 (TSTSFI_EQ_TD): Likewise.
18826 (TSTSFI_GT): Likewise.
18827 (TSTSFI_GT_DD): Likewise.
18828 (TSTSFI_GT_TD): Likewise.
18829 (TSTSFI_OV): Likewise.
18830 (TSTSFI_OV_DD): Likewise.
18831 (TSTSFI_OV_TD): Likewise.
18832 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18833 overloaded test significance functions.
18834 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18835 OPTION_MASK_P9_MISC into the representation of this mask.
18836 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
18838 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
18839 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
18841 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
18842 argument is a 6-bit unsigned literal value if the icode argument
18843 represents a DFP test significance built-in call.
18844 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
18845 flag used independently and in combination with the
18846 RS6000_BTM_64BIT flag.
18847 (rs6000_opt_masks): Add entry for power9-misc command-line option.
18848 (rs6000_builtin_mask_names): Add entry for power9-misc
18849 command-line option.
18850 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
18851 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
18852 RS6000_BTM_P9_MISC macros.
18853 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
18854 option and change the description of the -mpower9-vector option to
18855 enable only vector instructions, removing its erroneously claimed
18856 support for scalar instructions.
18857 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18858 the ISA 3.0 digital floating point test significance built-in
18861 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
18863 * config/aarch64/aarch64.c (cortexa35_tunings):
18864 Enable AES fusion. Use cortexa57_branch_cost.
18865 (cortexa53_tunings): Use cortexa57_branch_cost.
18866 (cortexa72_tunings): Use cortexa57_branch_cost.
18867 Use AUTOPREFETCHER_WEAK.
18868 (cortexa73_tunings): Use cortexa57_branch_cost.
18870 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18871 James Greenhalgh <james.greenhalgh@arm.com>
18873 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
18874 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
18875 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
18876 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
18877 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
18878 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
18879 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
18880 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
18881 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
18882 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
18883 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
18884 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
18885 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
18888 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
18889 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18891 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
18893 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
18895 2016-06-30 David Malcolm <dmalcolm@redhat.com>
18898 * gcc.c (driver::build_option_suggestions): Pass "option" to
18899 add_misspelling_candidates.
18900 * opts-common.c (add_misspelling_candidates): Add "option" param;
18901 use it to avoid adding negated forms for options marked with
18903 * opts.h (add_misspelling_candidates): Add "option" param.
18905 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18907 PR middle-end/71693
18908 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
18909 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
18910 first when permuting bitwise operation with rotate. Cast
18911 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
18913 2016-06-29 David Malcolm <dmalcolm@redhat.com>
18915 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
18916 for misspelled param names.
18917 * params.c: Include spellcheck.h.
18918 (find_param_fuzzy): New function.
18919 * params.h (find_param_fuzzy): New prototype.
18920 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
18921 * spellcheck.h (struct edit_distance_traits<const char *>):
18924 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
18926 * config/rs6000/predicates.md (const_0_to_7_operand): New
18927 predicate, recognize 0..7.
18928 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18929 support for doing extracts from V16QImode, V8HImode, V4SImode
18931 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
18932 vector extract support.
18933 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
18934 for ISA 3.0 vector extract.
18935 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
18936 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
18937 extracts of a constant element number from small integer vectors
18938 on 64-bit ISA 3.0 systems.
18939 (vsx_extract_<mode>_di): Likewise.
18940 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
18941 say when we can do ISA 3.0 vector extracts.
18942 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
18943 registers, using the stxsiwx instruction.
18945 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
18947 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
18948 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
18949 qdf24xx_regmove_cost, qdf24xx_tunings): New.
18950 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
18951 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
18952 * config/arm/arm.c (arm_qdf24xx_tune): New.
18954 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
18956 * config/aarch64/aarch64.c (cortexa53_tunings):
18957 Increase loop alignment to 8. Set function alignment to 16.
18958 (cortexa35_tunings): Likewise.
18959 (cortexa57_tunings): Increase loop alignment to 8.
18960 (cortexa72_tunings): Likewise.
18961 (cortexa73_tunings): Likewise.
18963 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
18965 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
18966 for arm_fp16_ok and arm_fp16_hw.
18967 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
18968 arm_fp16_alternative.
18970 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
18972 PR tree-optimization/71655
18973 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
18974 types when swapping operands.
18976 2016-06-29 Martin Liska <mliska@suse.cz>
18978 PR middle-end/71585
18979 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
18980 * ipa-inline-transform.c (inline_call): Remove unnecessary call
18981 of build_optimization_node.
18983 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
18985 PR tree-optimization/70729
18986 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
18987 independent in loops having positive safelen value.
18988 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18989 it may be not valid after vectorization.
18991 2016-06-29 Jakub Jelinek <jakub@redhat.com>
18993 PR tree-optimization/71625
18994 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
18995 is sorted by ascending list->offset. If PTR is non-NULL and there is
18996 previous strinfo, call get_stridx_plus_constant.
18997 (get_stridx): Pass exp as second argument to get_addr_stridx.
18998 (addr_stridxptr): Add missing list = list->next, so that there can be
18999 more than one entries in the list. Bump limit from 16 to 32. Ensure
19000 the list is sorted by ascending list->offset.
19001 (get_stridx_plus_constant): Adjust so that it can be also called with
19002 ADDR_EXPR instead of SSA_NAME as PTR.
19003 (handle_char_store): Pass NULL_TREE as second argument to
19006 2016-06-29 Richard Biener <rguenther@suse.de>
19008 PR rtl-optimization/68961
19009 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
19011 2016-06-29 Richard Biener <rguenther@suse.de>
19013 PR middle-end/71002
19014 * alias.c (component_uses_parent_alias_set_from): Handle
19015 type punning through union accesses by using the union alias set.
19016 * gimple.c (gimple_get_alias_set): Remove union type punning case.
19018 2016-07-29 Richard Biener <rguenther@suse.de>
19020 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
19021 precision not matching mode precision.
19023 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
19025 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
19026 pa_output_arg_descriptor.
19027 (call_val_symref_64bit_post_reload): Likewise.
19028 (call_val_powf_64bit_post_reload): Likewise.
19029 (sibcall_internal_symref_64bit): Likewise.
19030 (sibcall_value_internal_symref_64bit): Likewise.
19032 2016-06-28 Jakub Jelinek <jakub@redhat.com>
19034 PR middle-end/71626
19035 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
19036 a constant, force its SUBREG_REG into memory or register instead
19039 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19042 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
19043 * doc/invoke.texi (AVR Options): Document it.
19045 2016-06-28 Walter Lee <walt@tilera.com>
19047 * config/tilegx/linux.h: Do not include arch/icache.h
19048 (CLEAR_INSN_CACHE): Provide inlined definition directly.
19049 * config/tilepro/linux.h: Do not include arch/icache.h
19050 (CLEAR_INSN_CACHE): Provide inlined definition directly.
19052 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
19054 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
19055 for big-endian BIT_FIELD_REF.
19057 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
19059 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
19060 ('size' attribute): Add '128'.
19062 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
19063 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
19064 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
19065 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
19066 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
19067 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
19068 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
19069 *trunc<mode>df2_odd): Set size attribute to '128'.
19070 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
19071 * config/rs6000/power6.md (power6-fp): Include dfp type.
19072 * config/rs6000/power7.md (power7-fp): Likewise.
19073 * config/rs6000/power8.md (power8-fp): Likewise.
19074 * config/rs6000/power9.md: New file.
19075 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
19076 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
19077 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
19079 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
19080 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
19081 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
19082 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
19083 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
19084 dfp_dscri_<mode>): Change type attribute to dfp.
19085 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
19086 attribute to vecsimple.
19087 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
19088 and prefetch streams.
19089 (rs6000_option_override_internal): Remove temporary code setting
19090 tuning to power8. Don't set rs6000_sched_groups for power9.
19091 (last_scheduled_insn): Change to rtx_insn *.
19092 (divide_cnt, vec_load_pendulum): New variables.
19093 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
19094 (rs6000_issue_rate): Set issue rate for Power9.
19095 (is_power9_pairable_vec_type): New.
19096 (power9_sched_reorder2): New.
19097 (rs6000_sched_reorder2): Call new function for Power9 specific
19099 (insn_must_be_first_in_group): Remove Power9.
19100 (insn_must_be_last_in_group): Likewise.
19101 (force_new_group): Likewise.
19102 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
19103 Initialize divide_cnt/vec_load_pendulum.
19104 (_rs6000_sched_context, rs6000_init_sched_context,
19105 rs6000_set_sched_context): Handle context save/restore of new
19108 2016-06-28 Richard Biener <rguenther@suse.de>
19110 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19111 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
19112 COMPONENT_REF operand.
19113 (nonoverlapping_component_refs_p): Likewise.
19114 * stor-layout.c (start_bitfield_representative): Mark
19115 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
19117 2016-06-28 Jakub Jelinek <jakub@redhat.com>
19119 * Makefile.in: Don't cat ../stage_current if it does not exist.
19121 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
19122 last argument is a bit-field.
19124 PR rtl-optimization/71673
19125 * internal-fn.c (expand_arith_overflow_result_store): Use
19126 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
19127 expand_simple_binop.
19129 PR middle-end/66867
19130 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
19131 expand_ifn_atomic_compare_exchange): New functions.
19132 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
19133 * tree.h (build_call_expr_internal_loc): Rename to ...
19134 (build_call_expr_internal_loc_array): ... this. Fix up type of
19136 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
19137 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
19138 ATOMIC_COMPARE_EXCHANGE result.
19139 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
19140 * gimple-fold.h (optimize_atomic_compare_exchange_p,
19141 fold_builtin_atomic_compare_exchange): New prototypes.
19142 * gimple-fold.c (optimize_atomic_compare_exchange_p,
19143 fold_builtin_atomic_compare_exchange): New functions..
19144 * tree-ssa.c (execute_update_addresses_taken): If
19145 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
19146 of call when finding addressable vars, and if such var becomes
19147 non-addressable, call fold_builtin_atomic_compare_exchange.
19149 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
19152 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
19153 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
19155 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
19157 * config/rs6000/rs6000.md ('type' attribute): Add
19158 veclogical,veccmpfx,vecexts,vecmove insn types.
19159 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
19160 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
19161 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
19162 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
19163 *nabs<mode>2_hw): Change type to vecmove.
19164 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
19165 *boolcc<mode>3_internal, *eqv<mode>3_internal,
19166 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
19167 *ieee_128bit_vsx_abs<mode>2_internal,
19168 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
19169 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
19170 *ieee128_mtvsrd_32bit): Change type to veclogical.
19171 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19172 *movdi_internal32, *movdi_internal64): Update insn types.
19173 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
19174 vsx_extract_<mode>): Change type to veclogical.
19175 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
19176 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
19177 *vsx_sign_extend_si_v2di): Change type to vecexts.
19178 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
19179 type to veclogical.
19180 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
19181 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
19182 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
19183 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
19184 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
19185 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
19186 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
19187 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
19188 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
19189 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
19190 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
19191 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
19192 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
19193 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
19194 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
19195 (ppc7450-vecsimple): Add veclogical, vecmove.
19196 (ppc7450-veccmp): Add veccmpfx.
19197 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
19199 (ppc8540_vector_compare): Add veccmpfx.
19200 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
19201 * config/rs6000/cell.md (cell-fp): Add fpsimple.
19202 (cell-vecsimple): Add veclogical, vecmove.
19203 (cell-veccmp): Add veccmpfx.
19204 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
19205 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
19207 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
19208 * config/rs6000/power4.md (power4-fp): Add fpsimple.
19209 (power4-vecsimple): Add veclogical, vecmove.
19210 (power4-veccmp): Add veccmpfx.
19211 * config/rs6000/power5.md (power5-fp): Add fpsimple.
19212 * config/rs6000/power6.md (power6-fp): Add fpsimple.
19213 (power6-vecsimple): Add veclogical, vecmove.
19214 (power6-veccmp): Add veccmpfx.
19215 * config/rs6000/power7.md (power7-fp): Add fpsimple.
19216 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
19217 * config/rs6000/power8.md (power8-fp): Add fpsimple.
19218 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
19219 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
19220 * config/rs6000/titan.md (titan_fp): Add fpsimple.
19221 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
19223 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
19225 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
19228 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19229 OPTION_MASK_P9_DFORM_VECTOR.
19230 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
19231 disable -mpower9-dform-vector when using reload.
19232 (quad_address_p): Remove 'gpr_p' argument and all associated code.
19233 New 'strict' argument. Update all callers. Add strict addressing
19235 (rs6000_legitimate_offset_address_p): Remove call to
19236 virtual_stack_registers_memory_p.
19237 (rs6000_legitimize_reload_address): Add quad address support.
19238 (rs6000_legitimate_address_p): Move call to quad_address_p above
19239 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
19240 to account for new strict usage.
19241 (rs6000_output_move_128bit): Adjust quad_address_p args to account
19242 for new strict usage.
19243 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
19245 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
19252 * config/i386/i386.c (ix86_spill_class): Disable condition to
19253 always return NO_REGS.
19255 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
19257 * predict.c: Include gimple-pretty-print.h
19258 (predicted_by_loop_heuristics_p): Check also
19259 PRED_LOOP_EXIT_WITH_RECURSION
19260 (predict_loops): Find self recursive calls and use special purpose
19261 predictors for them; dump log about decisions.
19262 (pass_profile::execute): Dump info about #of iterations.
19263 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
19264 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
19266 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
19268 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
19269 output_asm_insn calls and shorten long lines. Output .CALL
19270 argument descriptor using pa_output_arg_descriptor. Add various
19271 inline $$dyncall and other optimizations.
19272 (pa_attr_length_indirect_call): Adjust ordering and lengths.
19274 2016-06-25 Jakub Jelinek <jakub@redhat.com>
19276 PR tree-optimization/71643
19277 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
19280 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
19281 leak a bitmap if dep_bb is NULL.
19283 PR tree-optimization/71631
19284 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
19285 to rewrite_expr_tree even if negate_result, move new_lhs var
19286 declaration and initialization earlier, for powi_result set afterwards
19287 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
19288 if new_lhs != lhs, and don't shadow gsi var.
19290 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19292 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
19293 Add in_loop parameter.
19294 (predict_loops): Add loop guard heuristics.
19295 * predict.def (PRED_LOOP_GUARD): New heuristics.
19297 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19299 * predict.c: Include ipa-utils.h
19300 (tree_bb_level_prediction): Predict recursive calls.
19301 (tree_estimate_probability_bb): Skip inexpensive calls for call
19303 * predict.def (PRED_RECURSIVE_CALL): New.
19305 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19307 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
19308 (BU_FLOAT128_1): Likewise.
19310 (COPYSIGNQ): Likewise.
19311 (RS6000_BUILTIN_NANQ): Likewise.
19312 (RS6000_BUILTIN_NANSQ): Likewise.
19313 (RS6000_BUILTIN_INFQ): Likewise.
19314 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
19315 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
19316 (TARGET_FOLD_BUILTIN): New #define.
19317 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
19318 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
19319 (rs6000_fold_builtin): New target hook implementation, handling
19320 folding of 128-bit NaNs and infinities.
19321 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
19322 entries are filled in to avoid problems during bootstrap
19323 self-test; define builtins for 128-bit NaNs and infinities.
19324 (rs6000_opt_mask): Add entry for float128.
19325 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
19326 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
19327 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
19328 (const_str_type_node): New #define.
19329 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
19330 to a define_expand that dispatches to either copysign<mode>3_soft
19331 or copysign<mode>3_hard.
19332 (copysign<mode>3_hard): Rename from copysign<mode>3.
19333 (copysign<mode>3_soft): New define_insn.
19334 * doc/extend.texi: Document new builtins.
19336 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19338 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
19339 PRIu64 instead of lu.
19341 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
19344 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
19345 copy the type name.
19347 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19349 PR tree-optimization/71647
19350 * omp-low.c (lower_rec_input_clauses): Convert
19351 omp_clause_aligned_alignment (c) to size_type_node for the
19352 last argument of __builtin_assume_aligned.
19354 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
19356 * configure.ac (calling ___tls_get_addr via GOT): New
19357 assembler/linker check.
19358 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
19359 assembler and linker supports calling ___tls_get_addr via GOT.
19360 Otherise, defined to 0.
19361 * config.in: Regenerated.
19362 * configure: Likewise.
19363 * config/i386/constraints.md (Yb): New constraint.
19364 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
19365 (REG_CLASS_NAMES): Likewise.
19366 (REG_CLASS_CONTENTS): Likewise.
19367 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
19368 the b constraint with the Yb constraint. Call ___tls_get_addr
19369 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
19371 (*tls_local_dynamic_base_32_gnu): Likewise.
19372 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
19373 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
19374 (*tls_local_dynamic_base_64_<mode>): Likewise.
19376 2016-06-24 Martin Liska <mliska@suse.cz>
19378 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
19379 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
19381 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
19382 argument to true if the expected number of iterations is
19385 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
19387 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
19388 assemble for 32bit target.
19389 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
19390 and $ld_ix86_gld_32_opt to link for 32bit target.
19391 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
19392 * configure: Regenerate.
19394 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19396 * config/arm/arm.c (int_log2): Delete definition and prototype.
19397 (shift_op): Use exact_log2 instead of int_log2.
19398 (vfp3_const_double_for_fract_bits): Likewise.
19400 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19402 * internal-fn.c (expand_arith_set_overflow): New function.
19403 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
19405 (expand_arith_overflow_result_store): Likewise. Handle precision
19406 smaller than mode precision.
19407 * tree-vrp.c (extract_range_basic): For imag part, handle
19408 properly signed 1-bit precision result.
19409 * doc/extend.texi (__builtin_add_overflow): Document that last
19410 argument can't be pointer to enumerated or boolean type.
19411 (__builtin_add_overflow_p): Document that last argument can't
19412 have enumerated or boolean type.
19414 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19415 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19417 * config/rs6000/predicates.md (splat_input_operand): Rework.
19418 Don't allow constants, since the insns that use this predicate
19419 don't support constants. Constants are handled by other insns
19420 that are created via combine. During and after register
19421 allocation, only allow indexed or indirect addresses, and not
19422 general addresses. Only allow modes supported by the hardware.
19423 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
19424 comment. Move check for using VSPLTIS<x> to a common location,
19425 instead of doing it in two different places.
19427 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
19429 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19430 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
19431 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
19432 signature_CENTAUR_ebx.
19434 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
19438 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
19439 (as_ix86_gas_32_opt): This.
19440 (ld_ix86_tls_ldm_opt): Renamed to ...
19441 (ld_ix86_gld_32_opt): This.
19442 (R_386_TLS_LDM reloc): Updated.
19443 (R_386_GOT32X reloc): New assembler/linker check.
19444 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
19445 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
19447 * config.in: Regenerated.
19448 * configure: Likewise.
19449 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
19450 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
19451 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
19452 if ix86_force_load_from_GOT_p returns true.
19453 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
19454 ix86_force_load_from_GOT_p returns true.
19455 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
19456 the external function address via the GOT slot.
19457 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
19458 HAVE_AS_IX86_GOT32X before returning false.
19459 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
19460 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
19462 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
19464 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
19466 2016-06-23 Andi Kleen <ak@linux.intel.com>
19468 * Makefile.in: Regenerate.
19469 * doc/install.texi: Document autoprofiledbootstrap.
19471 2016-06-23 Andi Kleen <ak@linux.intel.com>
19473 * config/i386/gcc-auto-profile: New file.
19475 2016-06-23 Martin Liska <mliska@suse.cz>
19477 PR middle-end/71619
19478 * predict.c (predict_loops): Revert the hunk that was removed
19481 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
19483 * config.gcc: Add support for arm*-*-phoenix* targets.
19484 * config/arm/t-phoenix: New.
19485 * config/phoenix.h: New.
19487 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
19488 H.J. Lu <hongjiu.lu@intel.com>
19491 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
19492 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
19493 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
19494 ix86_force_load_from_GOT_p returns true.
19495 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
19496 ix86_force_load_from_GOT_p returns true.
19497 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
19498 ix86_force_load_from_GOT_p returns true.
19499 (ix86_expand_move): Load the external function address via the
19500 GOT slot if ix86_force_load_from_GOT_p returns true.
19501 * config/i386/predicates.md (x86_64_immediate_operand): Return
19502 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
19503 (x86_64_zext_immediate_operand): Ditto.
19505 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
19507 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
19509 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19512 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
19513 * diagnostic.c (pedwarn_at_rich_loc): New function.
19514 * spellcheck.h (best_match::best_match): Add a
19515 "best_distance_so_far" optional parameter.
19516 (best_match::set_best_so_far): New method.
19517 (best_match::get_best_distance): New accessor.
19518 (best_match::get_best_candidate_length): New accessor.
19520 2016-06-22 Nick Clifton <nickc@redhat.com>
19522 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
19523 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
19524 modes are accepted as well.
19525 (ucompare_loc_descriptor): Likewise.
19526 (minmax_loc_descriptor): Likewise.
19527 (clz_loc_descriptor): Likewise.
19528 (popcount_loc_descriptor): Likewise.
19529 (bswap_loc_descriptor): Likewise.
19530 (rotate_loc_descriptor): Likewise.
19531 (mem_loc_descriptor): Likewise.
19532 (loc_descriptor): Likewise.
19534 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19536 * common.opt (fdiagnostics-parseable-fixits): New option.
19537 * diagnostic.c: Include "selftest.h".
19538 (print_escaped_string): New function.
19539 (print_parseable_fixits): New function.
19540 (diagnostic_report_diagnostic): Call print_parseable_fixits.
19541 (selftest::assert_print_escaped_string): New function.
19542 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
19543 (selftest::test_print_escaped_string): New function.
19544 (selftest::test_print_parseable_fixits_none): New function.
19545 (selftest::test_print_parseable_fixits_insert): New function.
19546 (selftest::test_print_parseable_fixits_remove): New function.
19547 (selftest::test_print_parseable_fixits_replace): New function.
19548 (selftest::diagnostic_c_tests): New function.
19549 * diagnostic.h (struct diagnostic_context): Add field
19550 "parseable_fixits_p".
19551 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19552 -fdiagnostics-parseable-fixits.
19553 (-fdiagnostics-parseable-fixits): New option.
19554 * opts.c (common_handle_option): Handle
19555 -fdiagnostics-parseable-fixits.
19556 * selftest-run-tests.c (selftest::run_tests): Call
19557 selftest::diagnostic_c_tests.
19558 * selftest.h (selftest::diagnostic_c_tests): New prototype.
19560 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
19562 PR tree-optimization/71488
19563 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
19564 comparison of boolean vectors.
19565 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
19566 of boolean vectors using bitwise operations.
19568 2016-06-22 Andreas Schwab <schwab@suse.de>
19570 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
19571 Remove declaration.
19573 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
19575 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
19577 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
19579 * config/i386/i386.c (print_reg): Emit an error message on attempt to
19582 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19584 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
19585 * config/arm/arm-cores.def (cortex-a73): New entry.
19586 (cortex-a73.cortex-a35): Likewise.
19587 (cortex-a73.cortex-a53): Likewise.
19588 * config/arm/arm-tables.opt: Regenerate.
19589 * config/arm/arm-tune.md: Likewise.
19590 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
19591 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19592 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
19593 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19594 * doc/invoke.texi (ARM Options): Document cortex-a73,
19595 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
19597 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19599 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
19600 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
19601 (cortex-a73.cortex-a35): Likewise.
19602 (cortex-a73.cortex-a53): Likewise.
19603 * config/aarch64/aarch64-tune.md: Regenerate.
19604 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
19605 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
19608 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19610 * configure.ac (gcc_cv_as_compress_debug): Remove
19611 --compress-debug-sections as extra as switch.
19612 Handle gas --compress-debug-sections=type.
19613 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
19614 Handle gld --compress-debug-sections=type.
19615 * configure: Regenerate.
19617 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
19619 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
19621 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
19623 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
19624 (do_rewrite): likewise.
19626 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19628 * common/config/mep/mep-common.c: Remove.
19629 * config.gcc: Remove mep-* support.
19630 * config/mep/constraints.md: Remove.
19631 * config/mep/default.h: Remove.
19632 * config/mep/intrinsics.h: Remove.
19633 * config/mep/intrinsics.md: Remove.
19634 * config/mep/ivc2-template.h: Remove.
19635 * config/mep/mep-c5.cpu: Remove.
19636 * config/mep/mep-core.cpu: Remove.
19637 * config/mep/mep-default.cpu: Remove.
19638 * config/mep/mep-ext-cop.cpu: Remove.
19639 * config/mep/mep-intrin.h: Remove.
19640 * config/mep/mep-ivc2.cpu: Remove.
19641 * config/mep/mep-pragma.c: Remove.
19642 * config/mep/mep-protos.h: Remove.
19643 * config/mep/mep.c: Remove.
19644 * config/mep/mep.cpu: Remove.
19645 * config/mep/mep.h: Remove.
19646 * config/mep/mep.md: Remove.
19647 * config/mep/mep.opt: Remove.
19648 * config/mep/predicates.md: Remove.
19649 * config/mep/t-mep: Remove.
19650 * doc/install.texi: Remove mep-* documentation.
19651 * doc/md.texi: Likewise.
19653 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19655 * config.gcc: Remove support for avr-rtems.
19656 * config/avr/gen-avr-mmcu-specs.c: Likewise.
19657 * config/avr/rtems.h: Remove.
19658 * config/avr/t-rtems: Remove.
19660 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19662 * config.gcc: Remove m32r-rtems support.
19663 * config/m32r/rtems.h: Remove.
19665 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19667 * config.gcc: Remove h8300-rtems support.
19668 * config/h8300/rtems.h: Remove.
19669 * config/h8300/t-rtems: Remove.
19671 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19673 * config.gcc: Remove support for knetbsd.
19674 * configure.ac: Likewise.
19675 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
19676 * config/knetbsd-gnu.h: Remove.
19677 * configure: Regenerate.
19679 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19681 * config.gcc: Remove support for openbsd 2 and 3.
19682 * config/openbsd-oldgas.h: Remove.
19684 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19686 * config.gcc: Remove interix support.
19687 * config/i386/i386-interix.h: Remove.
19688 * config/i386/interix.opt: Remove.
19689 * config/i386/t-interix: Remove.
19690 * configure: Regenerate.
19691 * configure.ac: Remove interix support.
19692 * doc/install.texi: Remove interix documentation.
19694 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
19696 * config/rs6000/rs6000.h: Add conditional preprocessing directives
19697 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
19700 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19702 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
19703 they are both PLACEHOLDER_EXPRs.
19705 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19707 * stor-layout.c (layout_type): Move setting complex MODE to
19708 layout_type, instead of setting it ahead of time by the caller.
19709 * tree.c (build_complex_type): Likewise.
19711 2016-06-21 Martin Liska <mliska@suse.cz>
19713 * predict.c (force_edge_cold): Replace imposisble with
19716 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19718 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
19719 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
19721 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19723 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
19725 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
19726 Ilya Enkovich <ilya.enkovich@intel.com>
19729 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
19730 New member function to convert V1TImode register to SUBREG
19731 TImode in debug insn.
19732 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
19733 after changing register mode to V1TImode.
19735 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
19737 * config/aarch64/aarch64-cores.def (vulcan): New core.
19738 * config/aarch64/aarch64-tune.md: Regenerate.
19739 * doc/invoke.texi: Document vulcan as an available option.
19741 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19743 * cse.c (canon_asm_operands): New function extracted from...
19744 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
19745 either standalone or member of a PARALLEL.
19747 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19750 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
19751 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
19752 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
19754 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19757 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
19758 constant addresses if can_create_pseudo_p.
19760 2016-06-21 Jakub Jelinek <jakub@redhat.com>
19762 PR tree-optimization/71588
19763 * tree-ssa-strlen.c (valid_builtin_call): New function.
19764 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
19767 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19769 PR middle-end/71581
19770 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
19771 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
19772 for conversion of scalar user var to complex type and use the
19773 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
19776 PR rtl-optimization/71591
19777 * toplev.c (toplev::run_self_tests): If no_backend, complain and
19778 don't run any tests.
19780 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
19783 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
19784 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
19785 space for PIC with non-v32 and the common non-PIC "jump".
19787 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19790 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
19791 returned values and add UN*/LTGT/*ORDERED cases with values matching
19792 D operand modifier on vcmp for AVX.
19794 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19796 * config/aarch64/aarch64.opt
19797 (mpc-relative-literal-loads): Rename internal option name.
19798 * config/aarch64/aarch64.c
19799 (aarch64_nopcrelative_literal_loads): Rename to
19800 aarch64_pcrelative_literal_loads.
19801 (aarch64_expand_mov_immediate): Likewise.
19802 (aarch64_secondary_reload): Likewise.
19803 (aarch64_can_use_per_function_literal_pools_p): Likewise.
19804 (aarch64_override_options_after_change_1): Rename and simplify logic.
19805 (aarch64_classify_symbol): Merge large model checks into switch,
19806 remove pc-relative load check.
19808 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19810 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
19811 costs relative to the cost of a register move.
19813 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19815 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
19816 (vcvt_n_f64_u64): Likewise.
19817 (vcvt_n_s64_f64): Likewise.
19818 (vcvt_n_u64_f64): Likewise.
19819 (vcvt_f64_s64): Likewise.
19820 (vrecpe_f64): Likewise.
19821 (vcvt_f64_u64): Likewise.
19822 (vrecps_f64): Likewise.
19824 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19826 * config/aarch64/aarch64.md
19827 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
19829 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
19831 * config/aarch64/aarch64-builtins.c
19832 (aarch64_types_binop_uss_qualifiers): Delete.
19833 (TYPES_BINOP_USS): Likewise.
19834 (aarch64_types_binop_sus_qualifiers): Likewise.
19835 (TYPES_BINOP_SUS): Likewise.
19836 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
19837 (TYPES_FCVTIMM_SUS): Likewise.
19838 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
19840 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
19841 (fcvtzs): Use SHIFTIMM rather than BINOP.
19842 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
19844 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19846 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
19847 costs relative to the cost of a register move.
19849 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19851 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
19852 Allow scalar/single vector modes to be tieable.
19854 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19856 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
19858 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19860 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
19862 * tree.h (TYPE_ALIGN): Likewise.
19864 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19867 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
19869 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19871 * config/avr/avr.c (avr_print_operand): Fix "format not a string
19872 literal" build warnings.
19873 (avr_print_operand_address): Dito.
19875 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
19878 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
19879 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
19881 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
19883 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
19885 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
19888 * reload1.c (reload): Pass 0 to finish_spills when called because
19889 update_eliminables_and_spill returns true and remove did_spill.
19890 (finish_spills): Adjust comment and document GLOBAL parameter.
19892 2016-06-17 DJ Delorie <dj@redhat.com>
19895 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
19896 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
19897 (umulqihi3_virt): Likewise.
19898 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
19899 (umulqihi3_real): Likewise.
19901 2016-06-17 Martin Liska <mliska@suse.cz>
19903 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
19905 2016-06-17 Martin Liska <mliska@suse.cz>
19907 * predict.def: PRED_LOOP_EXIT from 92 to 85.
19909 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
19911 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
19913 (vaddq_f32): Likewise.
19914 (vmul_f32): Likewise.
19915 (vmulq_f32): Likewise.
19916 (vsub_f32): Likewise.
19917 (vsubq_f32): Likewise.
19919 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19921 PR tree-optimization/71347
19922 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
19923 cost for all uses in group.
19925 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19927 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
19928 insert gimple seq if it's not empty.
19930 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19932 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
19934 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
19935 rather than OFFSET.
19936 (comp_dr_with_seg_len_pair): Ditto.
19937 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
19938 struct dr_with_seg_len_pair against DR_OFFSET.
19939 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
19940 DR_OFFSET directly.
19942 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
19944 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
19946 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
19948 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
19949 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
19950 (pa_output_millicode_call): Likewise.
19951 (pa_output_call): Likewise.
19952 (pa_output_indirect_call): Likewise.
19953 (pa_asm_output_mi_thunk): Likewise.
19955 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19957 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
19959 2016-06-16 Martin Liska <mliska@suse.cz>
19961 * predict.c (combine_predictions_for_insn): When we find a first
19962 match predictor, we should consider just predictors with
19963 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
19964 DS theory predictor.
19965 (combine_predictions_for_bb): Likewise.
19967 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19969 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
19970 with base of reference to struct.
19972 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19974 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
19976 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19979 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
19980 progmem_swtable_section.
19981 (progmem_swtable_section): Remove.
19982 (avr_asm_function_rodata_section): Remove.
19983 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
19984 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
19986 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
19988 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19989 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
19990 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
19991 signature_CENTAUR_ebx.
19992 * config/i386/i386.c (ix86_option_override_internal): Add
19993 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
19994 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
19995 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
19997 2016-06-16 Martin Liska <mliska@suse.cz>
19999 * predict.def: Add fortran loop preheader predictor.
20000 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
20001 fold IFN_BUILTIN_EXPECT with a known constant argument.
20003 2016-06-16 Martin Liska <mliska@suse.cz>
20005 * predict.def: Add 'Fortran' to display text of all
20006 PRED_FORTRAN_* predictors.
20008 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
20011 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
20012 [IA64_BUILTIN_NANSQ]: Ditto.
20013 (ia64_fold_builtin): New function.
20014 (TARGET_FOLD_BUILTIN): New define.
20015 (ia64_init_builtins) Declare const_string_type node.
20016 Add __builtin_nanq and __builtin_nansq builtin functions.
20017 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
20019 2016-06-16 Nick Clifton <nickc@redhat.com>
20021 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
20022 MSP430_HWMULT_ prefix to enum values.
20023 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
20024 * config/msp430/msp430.c: Update use of enum values.
20025 * config/msp430/msp430.md: Likewise.
20026 * config/msp430/msp430.opt: Likewise.
20028 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
20030 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
20031 of comparsions in the last iteration.
20033 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
20034 Joern Rennecke <joern.rennecke@embecosm.com>
20036 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
20038 (arc_needs_pcl_p): Add GOTOFFPC.
20039 (arc_legitimate_pic_addr_p): Likewise.
20040 (arc_output_pic_addr_const): Likewise.
20041 (arc_legitimize_pic_address): Generate a pc-relative address using
20043 (arc_output_libcall): Use @pcl syntax.
20044 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
20045 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
20046 (*movsi_insn): Use @pcl syntax.
20047 (doloop_begin_i): Likewise.
20049 2016-06-16 Martin Liska <mliska@suse.cz>
20051 * predict.def: Define a new predictor.
20053 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
20055 * config/arc/arc.opt (mtp-regno): Update text.
20057 2016-06-16 Renlin Li <renlin.li@arm.com>
20059 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
20061 2016-06-16 Jakub Jelinek <jakub@redhat.com>
20064 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
20065 (setcc + and peephole2): Likewise.
20067 PR rtl-optimization/71532
20068 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
20071 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
20073 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
20074 DImode constants with XXSPLTIB in vector registers.
20075 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
20076 vsx_extract_<mode>_internal{1,2} into a single insn that handles
20077 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
20078 extraction of the element at the top of the register as a scalar
20080 (vsx_extract_<mode>_internal1): Likewise.
20081 (vsx_extract_<mode>_internal2): Likewise.
20082 * config/rs6000/constraints.md (wi constraint): Remove a comment
20083 about DImode not being allowed in Altivec registers.
20084 (wB constraint): New constraint for constants that can be
20085 generated in Altivec registers with VSPLTISW/VUPKHSW.
20086 * config/rs6000/predicates.md (xxspltib_constant_split): Update
20088 (xxspltib_constant_nosplit): Likewise.
20089 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
20090 support for -mupper-regs-di to enable DImode to go into Altivec
20092 (POWERPC_MASKS): Likewise.
20093 (power7 cpu): Likewise.
20094 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
20095 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
20096 for DImode being allowed in Altivec registers. Update wi/wj
20097 constraints. Set scalar_in_vmx_p flag.
20098 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
20099 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
20100 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
20101 (rs6000_opt_masks): Add -mupper-regs-di.
20102 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
20103 direct move to use wi and not wj.
20104 (lfiwzx): Likewise.
20105 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
20107 (floatunssi<mode>2_lfiwzx_mem): Likewise.
20108 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
20109 any VSX register, instead of just Altivec registers, to allow
20110 either operand to be an Altivec register or both.
20111 (fixuns_trunc<mode>di2_fctiduz): Likewise.
20112 (movdi_internal32): Add support for -mupper-regs-di. Add support
20113 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
20114 the alternatives and attributes to be lined up to be easier to
20116 (movdi_internal64): Likewise.
20117 (64-bit DImode splitters): Change predicates to only split loading
20118 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
20119 load constants in ISA 3.0 or ISA 2.07 respectively.
20120 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20121 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
20122 mention -mcpu=power9 sets these options.
20123 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
20126 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20129 * config/avr/avr.c (avr_set_current_function): Warn misspelled
20130 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
20131 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
20132 by default to warn misspelled interrupt/ signal handler.
20133 * doc/invoke.texi (AVR Options): Document it. Update description
20134 for -nodevicelib option.
20136 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20138 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
20139 up parentheses. Use GET_MODE_UNIT_BITSIZE.
20140 (aarch64_<sur>shll2_n<mode>): Likewise.
20142 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
20144 PR middle-end/71529
20145 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
20146 DECL_CONTEXT for copied arguments.
20148 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20150 PR tree-optimization/71483
20151 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
20154 2016-06-15 Martin Liska <mliska@suse.cz>
20156 * predict.c (tree_predict_by_opcode): Call predict_edge_def
20157 instead of predict_edge w/o a probability.
20159 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20161 PR tree-optimization/71439
20162 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
20165 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20167 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
20168 register subregs in SET_SRC.
20170 2016-06-15 Richard Biener <rguenther@suse.de>
20172 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
20173 store restrictions.
20175 2016-06-15 Richard Biener <rguenther@suse.de>
20177 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
20178 not consider dependences between accesses that belong to the
20180 (vect_analyze_data_ref_dependences): Do not analyze read-read
20181 or self-dependences.
20183 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20185 * spellcheck-tree.c: Include spellcheck-tree.h rather than
20187 (find_closest_identifier): Reimplement in terms of
20188 best_match<tree,tree>.
20189 * spellcheck-tree.h: New file.
20190 * spellcheck.c (struct edit_distance_traits<const char *>): New
20192 (find_closest_string): Reimplement in terms of
20193 best_match<const char *, const char *>.
20194 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
20195 overload to spellcheck-tree.h.
20196 (find_closest_identifier): Likewise.
20197 (struct edit_distance_traits<T>): New template.
20198 (class best_match): New class.
20200 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20202 * selftest-run-tests.c (selftest::run_tests): Call
20203 selftest::spellcheck_tree_c_tests.
20204 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
20205 * spellcheck-tree.c: Include selftest.h and stringpool.h.
20206 (selftest::test_find_closest_identifier): New function.
20207 (selftest::spellcheck_tree_c_tests): New function.
20208 * spellcheck.c (selftest::test_find_closest_string): Verify that
20209 the order of the vec does not affect the results for this case.
20210 (selftest::test_data): New array.
20211 (selftest::test_metric_conditions): New function.
20212 (selftest::spellcheck_c_tests): Add a test of case-comparison.
20213 Call selftest::test_metric_conditions.
20215 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20217 * config/rs6000/rs6000-builtin.def (commentary): Typo.
20218 (BU_P9_MISC_1): Likewise.
20219 (BU_P9_64BIT_MISC_0): Likewise.
20220 (BU_P9_MISC_0): Likewise.
20222 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20224 * gcc-rich-location.c
20225 (gcc_rich_location::add_fixit_misspelled_id): New method.
20226 * gcc-rich-location.h
20227 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
20229 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
20231 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
20232 FreeBSD 11 and above.
20234 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
20236 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
20238 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20240 * expmed.h: Close parenthesis in "at your option" in copyright
20242 * lower-subreg.h: Likewise.
20244 2016-06-14 Richard Biener <rguenther@suse.de>
20246 PR middle-end/71526
20247 * genmatch.c (expr::gen_transform): Use in_type for comparisons
20250 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20252 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
20254 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
20255 mask+shift version.
20256 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
20258 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
20259 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
20261 2016-06-14 Richard Biener <rguenther@suse.de>
20263 PR tree-optimization/71522
20264 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
20265 copying into float copying.
20267 2016-06-14 Jakub Jelinek <jakub@redhat.com>
20269 PR tree-optimization/71520
20270 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
20271 (replace_block_by): Move user labels from bb1 to bb2.
20273 2016-06-14 Richard Biener <rguenther@suse.de>
20275 PR middle-end/71310
20277 * expr.h (get_bit_range): Declare.
20278 * expr.c (get_bit_range): Export.
20279 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
20280 word_mode again to constrain the bitfield access.
20282 2016-06-14 Richard Biener <rguenther@suse.de>
20284 PR tree-optimization/71521
20285 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
20286 division int_const_binop against zero divisor.
20288 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20290 * config/i386/i386.md (signbittf2): New expander.
20291 * config/i386/sse.md (ptesttf2): New insn pattern.
20293 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20296 * input.c (selftest::test_reading_source_line): Avoid reading from
20297 __FILE__ by creating a tempfile with known content and reading
20300 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20302 * pretty-print.c (assert_pp_format_colored): Skip the test if
20304 (test_pp_format): Remove comment about GCC_COLORS.
20306 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20308 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
20309 * pretty-print.c (assert_pp_format_va): Add location param and use
20310 it with ASSERT_STREQ_AT.
20311 (assert_pp_format): Add location param and pass it to
20312 assert_pp_format_va.
20313 (assert_pp_format_colored): Likewise.
20314 (ASSERT_PP_FORMAT_1): New.
20315 (ASSERT_PP_FORMAT_2): New.
20316 (ASSERT_PP_FORMAT_3): New.
20317 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
20318 explicitly, or implicitly via the above macros.
20319 * selftest.c (selftest::pass): Use a selftest::location rather
20320 than file and line.
20321 (selftest::fail): Likewise. Print the function name.
20322 (selftest::fail_formatted): Likewise.
20323 (selftest::assert_streq): Use a selftest::location rather than
20325 * selftest.h (selftest::location): New struct.
20326 (SELFTEST_LOCATION): New macro.
20327 (selftest::pass): Accept a const location & rather than file
20329 (selftest::fail): Likewise.
20330 (selftest::fail_formatted): Likewise.
20331 (selftest::assert_streq): Likewise.
20332 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
20333 (ASSERT_FALSE): Likewise.
20334 (ASSERT_EQ): Likewise.
20335 (ASSERT_NE): Likewise.
20336 (ASSERT_STREQ): Likewise.
20337 (ASSERT_PRED1): Likewise.
20338 (ASSERT_STREQ_AT): New macro.
20340 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20342 * selftest.c (selftest::fail_formatted): New function.
20343 (selftest::assert_streq): New function.
20344 * selftest.h (selftests::fail_formatted): New decl.
20345 (selftest::assert_streq): New decl.
20346 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
20348 2016-06-13 Jeff Law <law@redhat.com>
20350 PR tree-optimization/71403
20351 * tree-ssa-threadbackward.c
20352 (convert_and_register_jump_thread_path): No longer accept reference
20353 to path. Do not pop items off the path anymore.
20354 (fsm_find_control_statement_thread_paths): Do not allow threading
20355 to a deeper loop nest. Pop the last item off the path here rather
20356 than in convert_and_register_jump_thread_path.
20358 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20359 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
20361 [AArch64] Emit division using the Newton series
20363 * config/aarch64/aarch64-protos.h
20364 (cpu_approx_modes): Add new member "division".
20365 (aarch64_emit_approx_div): Declare new function.
20366 * config/aarch64/aarch64.c
20367 (generic_approx_modes): New member "division".
20368 (exynosm1_approx_modes): Likewise.
20369 (xgene1_approx_modes): Likewise.
20370 (aarch64_emit_approx_div): Define new function.
20371 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
20372 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
20373 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
20374 * doc/invoke.texi (-mlow-precision-div): Describe new option.
20376 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20377 Wilco Dijkstra <wilco.dijkstra@arm.com>
20379 [AArch64] Emit square root using the Newton series
20381 * config/aarch64/aarch64-protos.h
20382 (aarch64_emit_approx_rsqrt): Replace with new function
20383 "aarch64_emit_approx_sqrt".
20384 (cpu_approx_modes): New member "sqrt".
20385 * config/aarch64/aarch64.c
20386 (generic_approx_modes): New member "sqrt".
20387 (exynosm1_approx_modes): Likewise.
20388 (xgene1_approx_modes): Likewise.
20389 (aarch64_emit_approx_rsqrt): Replace with new function
20390 "aarch64_emit_approx_sqrt".
20391 (aarch64_override_options_after_change_1): Handle new option.
20392 * config/aarch64/aarch64-simd.md
20393 (rsqrt<mode>2): Use new function instead.
20394 (sqrt<mode>2): New expansion and insn definitions.
20395 * config/aarch64/aarch64.md: Likewise.
20396 * config/aarch64/aarch64.opt
20397 (mlow-precision-sqrt): Add new option description.
20398 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
20400 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20402 [AArch64] Add more choices for the reciprocal square root approximation
20404 Allow a target to prefer such operation depending on the operation mode.
20406 * config/aarch64/aarch64-protos.h
20407 (AARCH64_APPROX_MODE): New macro.
20408 (AARCH64_APPROX_{NONE,ALL}): Likewise.
20409 (cpu_approx_modes): New structure.
20410 (tune_params): New member "approx_modes".
20411 * config/aarch64/aarch64-tuning-flags.def
20412 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
20413 * config/aarch64/aarch64.c
20414 (generic_approx_modes): New core "cpu_approx_modes" structure.
20415 (exynosm1_approx_modes): Likewise.
20416 (xgene1_approx_modes): Likewise.
20417 (generic_tunings): New member "approx_modes".
20418 (cortexa35_tunings): Likewise.
20419 (cortexa53_tunings): Likewise.
20420 (cortexa57_tunings): Likewise.
20421 (cortexa72_tunings): Likewise.
20422 (exynosm1_tunings): Likewise.
20423 (thunderx_tunings): Likewise.
20424 (xgene1_tunings): Likewise.
20425 (use_rsqrt_p): New argument for the mode and use new member from
20427 (aarch64_builtin_reciprocal): Devise mode from builtin.
20428 (aarch64_optab_supported_p): New argument for the mode.
20429 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
20431 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20433 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
20434 RS6000_BTM_MODULO flag into the set of flags that are considered
20435 to be part of the common configuration.
20437 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20439 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
20440 difference unsigned.
20441 (vec_absdb): New macro for vector absolute difference unsigned
20443 (vec_absdh): New macro for vector absolute difference unsigned
20445 (vec_absdw): New macro for vector absolute difference unsigned word.
20446 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
20447 (vadu<mode>3): New insn.
20448 (*p9_vadu<mode>3): New insn.
20449 * config/rs6000/rs6000-builtin.def (vadub): New built-in
20451 (vaduh): New built-in definition.
20452 (vaduw): New built-in definition.
20453 (vadu): New overloaded built-in definition.
20454 (vadub): New overloaded built-in definition.
20455 (vaduh): New overloaded built-in definition.
20456 (vaduw): New overloaded built-in definition.
20457 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20458 overloaded vector absolute difference unsigned functions.
20459 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
20460 the ISA 3.0 vector absolute difference unsigned built-in functions.
20462 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
20464 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
20465 update shared_lookup_references only once after changing operands.
20467 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
20469 PR middle-end/71373
20470 * tree-nested.c (convert_nonlocal_omp_clauses)
20471 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
20473 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
20474 * tree.def (CASE_LABEL_EXPR): Likewise.
20476 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
20479 * input.c (test_builtins): Fix an assertion.
20481 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20483 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
20484 (paritysi2): Ditto.
20486 (isinf<mode>2): Ditto.
20488 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20490 * ggc-tests.c (test_finalization): Only test need_finalization_p
20491 for GCC_VERSION >= 4003.
20493 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20495 * config/s390/vecintrin.h: Fix file description in comment.
20497 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20499 * config/s390/s390-builtin-types.def: Change builtin type naming
20500 scheme to match builtin-types.def.
20502 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
20504 * fold-const.c (optimize_minmax_comparison): Remove.
20505 (fold_comparison): Remove call to the above.
20506 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
20507 New transformations.
20509 2016-06-13 Alan Hayward <alan.hayward@arm.com>
20511 PR tree-optimization/71416
20512 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
20515 2016-06-13 Martin Liska <mliska@suse.cz>
20517 * predict.c (enum predictor_reason): Prefix enum with REASON_.
20518 (combine_predictions_for_insn): Likewise.
20519 (prune_predictions_for_bb): Likewise.
20520 (combine_predictions_for_bb): Likewise.
20522 2016-06-13 Richard Biener <rguenther@suse.de>
20524 PR tree-optimization/71505
20525 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
20526 assert match comment.
20528 2016-06-13 Marek Polacek <polacek@redhat.com>
20530 PR middle-end/71476
20531 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
20532 gimplify_switch_expr.
20533 (warn_switch_unreachable_r): New function.
20535 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20538 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
20541 2016-06-13 Richard Biener <rguenther@suse.de>
20543 PR middle-end/64516
20544 * fold-const.c (fold_unary_loc): Preserve alignment when
20545 folding a VIEW_CONVERT_EXPR into a MEM_REF.
20547 2016-06-13 Martin Liska <mliska@suse.cz>
20550 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
20551 w/ -fsanitize=bounds.
20553 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20555 * config/i386/i386.c (ix86_init_builtins): Calculate
20556 FLOAT128_FTYPE_CONST_STRING function type only once.
20557 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
20558 built-in functions are available for x86-32 and x86-64 targets.
20560 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20563 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
20564 New primitive type.
20565 (FLOAT128_FTYPE_CONST_STRING): New function type.
20566 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
20567 [IX86_BUILTIN_NANSQ]: Ditto.
20568 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20569 (ix86_init_builtin_types): Declare const_string_type_node.
20570 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
20572 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20573 * doc/extend.texi (x86 Built-in Functions): Document
20574 __builtin_nanq and __builtin_nansq.
20576 2016-06-11 Jiong Wang <jiong.wang@arm.com>
20579 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
20580 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
20581 length for pop patterns.
20582 (arm_attr_length_push_multi): Update comments.
20583 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
20585 (*pop_multiple_with_writeback_and_return): Likewise.
20586 (*pop_multiple_with_return): Likewise.
20588 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
20590 PR middle-end/71310
20591 * fold-const.c (optimize_bit_field_compare): Don't try to use
20592 word_mode unconditionally for reading the bit field, look at
20593 DECL_BIT_FIELD_REPRESENTATIVE instead.
20595 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
20597 PR middle-end/71478
20598 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
20599 vector integer type.
20601 2016-06-10 Jakub Jelinek <jakub@redhat.com>
20603 PR middle-end/71494
20604 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
20605 without LABEL_DECL, set *handled_ops_p to false instead of true.
20607 2016-06-10 Martin Sebor <msebor@redhat.com>
20610 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
20611 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
20612 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
20614 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
20615 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
20616 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
20617 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
20618 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
20619 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
20620 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
20621 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
20623 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20625 * config/arm/arm.h (pool_vector_label,
20626 return_used_this_function): Remove.
20628 2016-06-10 Jeff Law <law@redhat.com>
20630 PR tree-optimization/71335
20631 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
20632 zero length paths here.
20633 (convert_and_register_jump_thread_path): Remove hacks related to
20634 duplicated blocks in the jump thread path.
20635 (fsm_find_control_statement_thread_paths): Avoid putting the same
20636 block on the thread path twice, but ensure the thread path is
20637 unchanged from the caller's point of view.
20639 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20641 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
20642 * predict.def (PRED_LOOP_BRANCH): Remove.
20644 2016-06-10 David Malcolm <dmalcolm@redhat.com>
20646 * Makefile.in (OBJS): Add ggc-tests.o.
20647 (GTFILES): Add ggc-tests.c.
20648 * ggc-tests.c: New file.
20649 * selftest-run-tests.c (selftest::run_tests): Call
20650 selftest::ggc_tests_c_tests.
20651 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
20653 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
20655 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
20657 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
20660 * varasm.c (place_block_symbol): Adjust alignment for asan protected
20661 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
20663 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20665 * profile.c: Include cfgloop.h.
20666 (branch_prob): Compute estimated number of iterations.
20667 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
20668 recompute estimate number of iterations from profile.
20670 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20672 PR inline-asm/68843
20673 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
20674 must be grouped on top of stack. Don't force early clobber
20675 on ordinary reg outputs.
20677 2016-06-10 Richard Biener <rguenther@suse.de>
20679 * targhooks.c (default_builtin_vectorization_cost): Adjust
20680 vec_construct cost.
20682 2016-06-10 Richard Biener <rguenther@suse.de>
20684 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
20685 to fold the RHS to a constant if possible.
20687 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
20689 PR middle-end/71373
20690 * tree-nested.c (convert_nonlocal_omp_clauses)
20691 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
20692 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20693 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
20695 * gimplify.c (gimplify_adjust_omp_clauses): Discard
20697 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
20699 * omp-low.c (scan_sharing_clauses): Don't expect
20700 OMP_CLAUSE__CACHE_.
20702 2016-06-10 Alan Hayward <alan.hayward@arm.com>
20704 PR tree-optimization/71407
20705 PR tree-optimization/71416
20706 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
20707 BIT_FIELD_REF type.
20709 2016-06-10 Richard Biener <rguenther@suse.de>
20711 PR middle-end/71477
20712 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
20714 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
20716 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
20718 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
20719 Jiong Wang <jiong.wang@arm.com>
20721 PR rtl-optimization/70751
20722 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
20723 spilled into memory.
20725 2016-06-09 Jonathan Yong <10walls@gmail.com>
20728 2015-09-21 Jonathan Yong <10walls@gmail.com>
20730 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
20731 sysroot/usr/lib/32api for additional win32 libraries,
20732 fixes failing Cygwin bootstrapping.
20734 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
20736 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
20739 2016-06-09 David Malcolm <dmalcolm@redhat.com>
20742 * pretty-print.c (pp_indent): Specify that %p is printed in a
20743 host-dependent manner.
20744 (test_pp_format): Remove the test for %p.
20746 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
20748 * config/mips/mips.c (mips_output_jump): Fix formatting.
20750 2016-06-09 Richard Biener <rguenther@suse.de>
20752 PR tree-optimization/71462
20753 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
20756 2016-06-09 Martin Liska <mliska@suse.cz>
20758 * predict.c (dump_prediction): Add new argument.
20759 (enum predictor_reason): New enum.
20760 (struct predictor_hash): New struct.
20761 (predictor_hash::hash): New function.
20762 (predictor_hash::equal): Likewise.
20763 (not_removed_prediction_p): New function.
20764 (prune_predictions_for_bb): Likewise.
20765 (combine_predictions_for_bb): Prune predictions.
20767 2016-06-09 Martin Liska <mliska@suse.cz>
20769 * predict.c (filter_predictions): New function.
20770 (remove_predictions_associated_with_edge): Use the filter
20772 (equal_edge_p): New function.
20774 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
20776 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
20777 Correct usage of @samp vs @option, add @samp where appropriate.
20778 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
20779 Add armv6s-m and document it, as it is no official ARM name.
20781 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20783 * ifcvt.c (struct noce_if_info): Add transform_name field.
20784 (noce_try_move): Set if_info->transform_name to the function name.
20785 (noce_try_ifelse_collapse): Likewise.
20786 (noce_try_store_flag): Likewise.
20787 (noce_try_inverse_constants): Likewise.
20788 (noce_try_store_flag_constants): Likewise.
20789 (noce_try_addcc): Likewise.
20790 (noce_try_store_flag_mask): Likewise.
20791 (noce_try_cmove): Likewise.
20792 (noce_try_cmove_arith): Likewise.
20793 (noce_try_minmax): Likewise.
20794 (noce_try_abs): Likewise.
20795 (noce_try_sign_mask): Likewise.
20796 (noce_try_bitop): Likewise.
20797 (noce_convert_multiple_sets): Likewise.
20798 (noce_process_if_block): Print if_info->transform_name to
20799 dump_file if transformation succeeded.
20801 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20803 * config/arm/cortex-a57.md (cortex_a57_alu):
20806 2016-06-08 Martin Sebor <msebor@redhat.com>
20807 Jakub Jelinek <jakub@redhat.com>
20811 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
20812 BUILT_IN_MUL_OVERFLOW_P): New builtins.
20813 * builtins.c: Include gimple-fold.h.
20814 (fold_builtin_arith_overflow): Handle
20815 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
20816 (fold_builtin_3): Likewise.
20817 * doc/extend.texi (Integer Overflow Builtins): Document
20818 __builtin_{add,sub,mul}_overflow_p.
20820 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
20822 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
20823 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
20825 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
20827 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
20828 Rewrite, looking one level down for records and arrays.
20830 2016-06-08 David Malcolm <dmalcolm@redhat.com>
20832 * pretty-print.c: Include "selftest.h".
20833 (pp_format): Fix comment.
20834 (identifier_to_locale): Likewise.
20835 (selftest::test_basic_printing): New function.
20836 (selftest::assert_pp_format): New function.
20837 (selftest::test_pp_format): New function.
20838 (selftest::pretty_print_c_tests): New function.
20839 * selftest-run-tests.c (selftest::run_tests): Call
20840 selftest::pretty_print_c_tests.
20841 * selftest.h (pretty_print_c_tests): New declaration.
20843 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20845 * invoke.texi (max-loop-headers-insns): Document.
20846 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
20847 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
20848 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
20850 2016-06-08 Richard Biener <rguenther@suse.de>
20852 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
20853 on strided SLP loads and fall back to scalar loads in case
20854 we can't chunk them.
20856 2016-06-08 Richard Biener <rguenther@suse.de>
20858 PR tree-optimization/71452
20859 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
20860 type used for the SSA rewrite has enough precision to cover
20861 the dynamic type of the location.
20863 2016-06-08 Jakub Jelinek <jakub@redhat.com>
20864 Richard Biener <rguenther@suse.de>
20867 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
20868 the same as DECL_P (base0) for indirect_base0. Use equality_code
20869 in one further place.
20871 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
20873 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
20874 to one word if the field is known to overlap other words.
20875 (extract_bit_field_1): Likewise.
20876 (store_split_bit_field): Remove compensating code.
20877 (extract_split_bit_field): Likewise.
20879 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
20883 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
20885 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20887 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
20889 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
20890 (arch64_addpv4sf): Delete.
20891 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
20892 "gen_aarch64_addpv4sf".
20893 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
20895 (vpadds_f32): Likewise.
20896 (vpaddq_f32): Likewise.
20897 (vpaddq_f64): Likewise.
20899 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20901 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
20903 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
20904 to VALLF. Rename to "fabd<mode>3".
20905 "*fabd_scalar<mode>3): Delete.
20906 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
20908 (vabdd_f64): Likewise.
20909 (vabd_f32): Likewise.
20910 (vabd_f64): Likewise.
20911 (vabdq_f32): Likewise.
20912 (vabdq_f64): Likewise.
20914 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20916 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
20918 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
20919 "aarch64_rsqrts<mode>".
20920 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
20921 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
20923 (vrsqrtsd_f64): Likewise.
20924 (vrsqrts_f32): Likewise.
20925 (vrsqrts_f64): Likewise.
20926 (vrsqrtsq_f32): Likewise.
20927 (vrsqrtsq_f64): Likewise.
20929 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20931 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
20933 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
20934 "aarch64_rsqrte<mode>".
20935 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
20936 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
20938 (vrsqrted_f64): Likewise.
20939 (vrsqrte_f32): Likewise.
20940 (vrsqrte_f64): Likewise.
20941 (vrsqrteq_f32): Likewise.
20942 (vrsqrteq_f64): Likewise.
20944 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20946 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
20948 (fcvtzs): Likewise.
20949 (fcvtzu): Likewise.
20950 * config/aarch64/aarch64-simd.md
20951 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
20952 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
20953 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
20955 (vcvt_n_f32_u32): Likewise.
20956 (vcvt_n_s32_f32): Likewise.
20957 (vcvt_n_u32_f32): Likewise.
20958 (vcvtq_n_f32_s32): Likewise.
20959 (vcvtq_n_f32_u32): Likewise.
20960 (vcvtq_n_f64_s64): Likewise.
20961 (vcvtq_n_f64_u64): Likewise.
20962 (vcvtq_n_s32_f32): Likewise.
20963 (vcvtq_n_s64_f64): Likewise.
20964 (vcvtq_n_u32_f32): Likewise.
20965 (vcvtq_n_u64_f64): Likewise.
20966 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
20967 (VSDQ_SDI): Likewise.
20968 (fcvt_target): Support V4DI, V4SI and V2SI.
20969 (FCVT_TARGET): Likewise.
20971 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20973 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
20974 (TYPES_BINOP_SUS): Likewise.
20975 (aarch64_simd_builtin_data): Update include file name.
20976 (aarch64_builtins): Likewise.
20977 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
20978 for conversion between scalar float-point and fixed-point.
20980 (fcvtzs): Likewise.
20981 (fcvtzu): Likewise.
20982 * config/aarch64/aarch64.md
20983 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
20984 pattern for conversion between scalar float to fixed-pointer.
20985 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
20986 (UNSPEC_FCVTZS): New UNSPEC enumeration.
20987 (UNSPEC_FCVTZU): Likewise.
20988 (UNSPEC_SCVTF): Likewise.
20989 (UNSPEC_UCVTF): Likewise.
20990 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
20992 (vcvtd_n_f64_u64): Likewise.
20993 (vcvtd_n_s64_f64): Likewise.
20994 (vcvtd_n_u64_f64): Likewise.
20995 (vcvtd_n_f32_s32): Likewise.
20996 (vcvts_n_f32_u32): Likewise.
20997 (vcvtd_n_s32_f32): Likewise.
20998 (vcvts_n_u32_f32): Likewise.
20999 * config/aarch64/iterators.md (fcvt_target): Support integer to float
21001 (FCVT_TARGET): Likewise.
21002 (FCVT_FIXED2F): New iterator.
21003 (FCVT_F2FIXED): Likewise.
21004 (fcvt_fixed_insn): New define_int_attr.
21006 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21008 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
21009 some statements was removed.
21011 2016-06-08 Alan Hayward <alan.hayward@arm.com>
21013 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
21014 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
21015 (vect_can_advance_ivs_p): likewise.
21016 (vect_update_ivs_after_vectorizer): likewise.
21017 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
21018 (vect_analyze_scalar_cycles_1): likewise.
21019 (vect_analyze_loop_operations): likewise.
21020 (report_vect_op): likewise.
21021 (vect_is_slp_reduction): likewise.
21022 (vect_is_simple_reduction): likewise.
21023 (get_initial_def_for_induction): likewise.
21024 (vect_transform_loop): likewise.
21025 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
21026 (vect_recog_sad_pattern): likewise.
21027 (vect_recog_widen_sum_pattern): likewise.
21028 (vect_recog_widening_pattern): likewise.
21029 (vect_recog_divmod_pattern): likewise.
21030 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
21031 (vect_analyze_slp_instance): likewise.
21032 (vect_transform_slp_perm_load): likewise.
21033 (vect_schedule_slp_instance): likewise.
21035 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21037 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
21038 (return_prediction): PRED_CONST_RETURN predict return as not taken.
21039 * predict.def (PRED_CONTINUE): Change hitrate 50->67
21040 (PRED_LOOP_BRANCH): Document predictor as broken.
21041 (PRED_LOOP_EXIT): Change hitrate 91->92.
21042 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
21043 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
21044 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
21045 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
21046 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
21047 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
21048 (PRED_CALL): Chane hitrate 71->67.
21049 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
21050 (PRED_GOTO): Document as unused right now.
21051 (PRED_CONST_RETURN): Change hitrate 67->69
21052 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
21053 (PRED_NULL_RETURN): Change hitrate 91->90.
21054 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
21055 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
21056 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
21058 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
21060 * config/rs6000/altivec.h: Add __builtin_vec_mul.
21061 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
21062 special case Altivec builtin.
21063 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21064 VSX_BUILTIN_VEC_MUL (replaced with special case code).
21065 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21066 code for ALTIVEC_BUILTIN_VEC_MUL.
21067 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
21068 for __builtin_vec_mul.
21070 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
21072 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
21075 2016-06-07 David Malcolm <dmalcolm@redhat.com>
21077 * spellcheck.c (selftest::test_find_closest_string): New function.
21078 (spellcheck_c_tests): Call the above.
21080 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21082 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
21084 2016-06-07 Jakub Jelinek <jakub@redhat.com>
21086 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
21087 Yv=Yv,C alternatives.
21089 2016-06-07 Richard Biener <rguenther@suse.de>
21092 * common.opt (ffast-math): Make Optimization.
21094 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
21095 Prachi Godbole <prachi.godbole@imgtec.com>
21097 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
21098 `fabs' and `fneg' type attributes.
21099 (p5600_fpu_fabs): Add `fmove' to the comment.
21101 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21103 * gimple.c: Include builtins.h
21104 (gimple_inexpensive_call_p): New function.
21105 * gimple.h (gimple_inexpensive_call_p): Declare.
21106 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
21107 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
21110 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
21112 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
21113 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
21114 warning_at_rich_loc, warning_n, pedwarn, permerror,
21115 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
21116 sorry, fatal_error, internal_error, internal_error_no_backtrace):
21119 2016-06-07 Richard Biener <rguenther@suse.de>
21121 PR tree-optimization/71428
21122 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
21123 BIT_FIELD_REF op vs. load.
21125 2016-06-07 Richard Biener <rguenther@suse.de>
21127 PR middle-end/71423
21128 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
21131 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21133 * config/pa/pa.md (call): Generate indirect long calls to non-local
21134 functions on TARGET_64BIT.
21135 (call_value): Likewise.
21137 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21139 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
21140 pattern and subsequent splitters.
21141 (call_val_reg_64bit_post_reload): Likewise.
21143 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21145 PR middle-end/71408
21146 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
21147 propagate_op_to_single_use.
21149 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21151 PR middle-end/71281
21152 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
21154 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
21156 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
21157 (enum x86_dirflag_state): New enum.
21158 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
21159 (machine_function): Remove needs_cld.
21160 (ix86_current_function_needs_cld): Remove.
21161 * config/i386/i386.c (ix86_set_func_type): Set
21162 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
21163 (ix86_expand_prologue): Do not emit CLD here.
21164 (ix86_dirflag_mode_needed): New function.
21165 (ix86_dirflag_mode_entry): Ditto.
21166 (ix86_mode_needed): Handle X86_DIRFLAG entity.
21167 (ix86_mode_after): Ditto.
21168 (ix86_mode_entry): Ditto.
21169 (ix86_mode_exit): Ditto.
21170 (ix86_emit_mode_set): Ditto.
21171 * config/i386/i386.md (strmov_singleop): Set
21172 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
21173 Do not set ix86_current_function_needs_cld.
21175 (strset_singleop): Ditto.
21177 (cmpstrnqi_nz_1): Ditto.
21178 (cmpstrnqi_1): Ditto.
21179 (strlenqi_1): Ditto.
21181 2016-06-06 Jakub Jelinek <jakub@redhat.com>
21183 PR tree-optimization/71259
21184 * tree-vect-slp.c (vect_get_constant_vectors): For
21185 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
21186 one for constant op, and use COND_EXPR for non-constant.
21188 2016-06-06 David Malcolm <dmalcolm@redhat.com>
21190 * Makefile.in (OBJS): Add function-tests.o,
21191 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
21192 selftest-run-tests.o.
21193 (OBJS-libcommon): Add selftest.o.
21194 (OBJS-libcommon-target): Add selftest.o.
21195 (all.internal): Add "selftest".
21196 (all.cross): Likewise.
21197 (selftest): New phony target.
21198 (s-selftest): New target.
21199 (selftest-gdb): New phony target.
21200 (COLLECT2_OBJS): Add selftest.o.
21201 * bitmap.c: Include "selftest.h".
21202 (selftest::test_gc_alloc): New function.
21203 (selftest::test_set_range): New function.
21204 (selftest::test_clear_bit_in_middle): New function.
21205 (selftest::test_copying): New function.
21206 (selftest::test_bitmap_single_bit_set_p): New function.
21207 (selftest::bitmap_c_tests): New function.
21208 * common.opt (fself-test): New.
21209 * diagnostic-show-locus.c: Include "selftest.h".
21210 (make_range): New function.
21211 (test_range_contains_point_for_single_point): New function.
21212 (test_range_contains_point_for_single_line): New function.
21213 (test_range_contains_point_for_multiple_lines): New function.
21214 (assert_eq): New function.
21215 (test_get_line_width_without_trailing_whitespace): New function.
21216 (selftest::diagnostic_show_locus_c_tests): New function.
21217 * et-forest.c: Include "selftest.h".
21218 (selftest::test_single_node): New function.
21219 (selftest::test_simple_tree): New function.
21220 (selftest::test_disconnected_nodes): New function.
21221 (selftest::et_forest_c_tests): New function.
21222 * fold-const.c: Include "selftest.h".
21223 (selftest::assert_binop_folds_to_const): New function.
21224 (selftest::assert_binop_folds_to_nonlvalue): New function.
21225 (selftest::test_arithmetic_folding): New function.
21226 (selftest::fold_const_c_tests): New function.
21227 * function-tests.c: New file.
21228 * gimple.c: Include "selftest.h".
21229 Include "gimple-pretty-print.h".
21230 (selftest::verify_gimple_pp): New function.
21231 (selftest::test_assign_single): New function.
21232 (selftest::test_assign_binop): New function.
21233 (selftest::test_nop_stmt): New function.
21234 (selftest::test_return_stmt): New function.
21235 (selftest::test_return_without_value): New function.
21236 (selftest::gimple_c_tests): New function.
21237 * hash-map-tests.c: New file.
21238 * hash-set-tests.c: New file.
21239 * input.c: Include "selftest.h".
21240 (selftest::assert_loceq): New function.
21241 (selftest::test_accessing_ordinary_linemaps): New function.
21242 (selftest::test_unknown_location): New function.
21243 (selftest::test_builtins): New function.
21244 (selftest::test_reading_source_line): New function.
21245 (selftest::input_c_tests): New function.
21246 * rtl-tests.c: New file.
21247 * selftest-run-tests.c: New file.
21248 * selftest.c: New file.
21249 * selftest.h: New file.
21250 * spellcheck.c: Include "selftest.h".
21251 (selftest::levenshtein_distance_unit_test_oneway): New function,
21252 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
21253 (selftest::levenshtein_distance_unit_test): Likewise.
21254 (selftest::spellcheck_c_tests): Likewise.
21255 * toplev.c: Include selftest.h.
21256 (toplev::run_self_tests): New.
21257 (toplev::main): Handle -fself-test.
21258 * toplev.h (toplev::run_self_tests): New.
21259 * tree.c: Include "selftest.h".
21260 (selftest::test_integer_constants): New function.
21261 (selftest::test_identifiers): New function.
21262 (selftest::test_labels): New function.
21263 (selftest::tree_c_tests): New function.
21264 * tree-cfg.c: Include "selftest.h".
21265 (selftest::push_fndecl): New function.
21266 (selftest::test_linear_chain): New function.
21267 (selftest::test_diamond): New function.
21268 (selftest::test_fully_connected): New function.
21269 (selftest::tree_cfg_c_tests): New function.
21270 * vec.c: Include "selftest.h".
21271 (selftest::safe_push_range): New function.
21272 (selftest::test_quick_push): New function.
21273 (selftest::test_safe_push): New function.
21274 (selftest::test_truncate): New function.
21275 (selftest::test_safe_grow_cleared): New function.
21276 (selftest::test_pop): New function.
21277 (selftest::test_safe_insert): New function.
21278 (selftest::test_ordered_remove): New function.
21279 (selftest::test_unordered_remove): New function.
21280 (selftest::test_block_remove): New function.
21281 (selftest::reverse_cmp): New function.
21282 (selftest::test_qsort): New function.
21283 (selftest::vec_c_tests): New function.c.
21284 * wide-int.cc: Include selftest.h and wide-int-print.h.
21285 (selftest::from_int <wide_int>): New function.
21286 (selftest::from_int <offset_int>): New function.
21287 (selftest::from_int <widest_int>): New function.
21288 (selftest::assert_deceq): New function.
21289 (selftest::assert_hexeq): New function.
21290 (selftest::test_printing <VALUE_TYPE>): New function template.
21291 (selftest::test_ops <VALUE_TYPE>): New function template.
21292 (selftest::test_comparisons <VALUE_TYPE>): New function template.
21293 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
21295 (selftest::wide_int_cc_tests): New function.
21297 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21299 PR middle-end/37780
21300 * ifcvt.c (noce_try_ifelse_collapse): New function.
21302 (noce_process_if_block): Call noce_try_ifelse_collapse.
21303 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
21304 (simplify_ternary_operation): Use the above to simplify
21305 conditional CLZ/CTZ expressions.
21307 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21309 PR middle-end/37780
21310 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
21311 define_insn_and_split.
21313 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21315 PR middle-end/37780
21316 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
21318 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
21321 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
21322 Implicitly clobber memory for basic asm with non-empty assembler
21323 string. Use targetm.md_asm_adjust also here.
21324 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
21325 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
21326 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
21327 non-empty assembler string.
21328 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
21329 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
21330 (decode_asm_operands): Handle basic asm in PARALLEL block.
21331 (extract_insn): Handle basic asm in PARALLEL block.
21332 * doc/extend.texi: Mention new behavior of basic asm.
21333 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
21334 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
21335 branch_needs_nop_p): Use asm_noperands.
21337 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
21339 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
21340 Include the M7 SPARC DFA scheduler.
21341 New attribute v3pipe.
21342 Annotate insns with v3pipe where appropriate.
21343 Define cpu_feature vis4.
21344 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
21345 Add (V8QI "8") to vbits.
21346 Add insns {add,sub}v8qi3
21347 Add insns ss{add,sub}v8qi3
21348 Add insns us{add,sub}{v8qi,v4hi}3
21349 Add insns {min,max}{v8qi,v4hi,v2si}3
21350 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
21351 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
21352 * config/sparc/niagara4.md: Add a comment explaining the
21353 discrepancy between the documented latenty numbers and the
21355 * config/sparc/niagara7.md: New file.
21356 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
21357 supports SPARC5 and VIS 4.0 instructions.
21358 * configure: Regenerate.
21359 * config.in: Likewise.
21360 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
21361 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
21362 TARGET_CPU_niagara7.
21363 (ASM_CPU64_DEFAULT_SPEC): Likewise.
21364 (CPP_CPU_SPEC): Handle niagara7.
21365 (ASM_CPU_SPEC): Likewise.
21366 * config/sparc/sparc-opts.h (processor_type): Add
21367 PROCESSOR_NIAGARA7.
21368 (mvis4): New option.
21369 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
21370 (AS_NIAGARA7_FLAG): Define.
21371 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
21372 (CPP_CPU64_DEFAULT_SPEC): Likewise.
21373 (CPP_CPU_SPEC): Handle niagara7.
21374 (ASM_CPU_SPEC): Likewise.
21375 * config/sparc/sparc.c (niagara7_costs): Define.
21376 (sparc_option_override): Handle niagara7 and adjust cache-related
21377 parameters with better values for niagara cpus. Also support VIS4.
21378 (sparc32_initialize_trampoline): Likewise.
21379 (sparc_use_sched_lookahead): Likewise.
21380 (sparc_issue_rate): Likewise.
21381 (sparc_register_move_cost): Likewise.
21382 (dump_target_flag_bits): Support VIS4.
21383 (sparc_vis_init_builtins): Likewise.
21384 (sparc_builtins): Likewise.
21385 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
21387 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
21389 * config/sparc/sparc.opt (sparc_processor_type): New value
21391 * config/sparc/visintrin.h (__attribute__): Prototypes for the
21393 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
21395 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
21398 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
21400 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
21402 2016-06-06 Richard Biener <rguenther@suse.de>
21404 PR tree-optimization/71398
21405 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
21408 2016-06-05 James Bowman <james.bowman@ftdichip.com>
21410 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
21411 ft32_expand_prolog, ft32_expand_epilogue):
21412 Handle pretend_args.
21413 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
21414 * config/ft32/ft32.md: Add pretend_returner.
21416 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
21419 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
21420 Copy op1 RTX to avoid invalid sharing.
21421 (ix86_expand_vector_move_misalign): Ditto.
21423 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
21425 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
21428 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21430 * predict.c (predicted_by_loop_heuristics_p): New function.
21431 (predict_iv_comparison): Use it.
21432 (predict_loops): Walk from innermost loops; do not predict edges
21433 leaving multiple loops multiple times; implement
21434 PRED_LOOP_ITERATIONS_MAX heuristics.
21435 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
21437 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21439 * cfg.c (check_bb_profile): Do not report mismatched profiles when
21440 only edges out of BB are EH edges.
21442 2016-06-04 Martin Sebor <msebor@redhat.com>
21443 Marcin Baczyński <marbacz@gmail.com>
21446 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
21447 a void expression in a void function.
21449 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21451 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
21452 aux; dump reasons of decisions.
21453 (should_duplicate_loop_header_p): Likewise.
21454 (do_while_loop_p): Likewise.
21455 (ch_base::copy_headers): Dump asi num insns duplicated.
21457 2016-06-04 Jakub Jelinek <jakub@redhat.com>
21459 PR tree-optimization/71405
21460 * tree-ssa.c (execute_update_addresses_taken): For clobber with
21461 incompatible type, build a new clobber with the right type instead
21462 of building a VIEW_CONVERT_EXPR around it.
21464 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21466 PR tree-optimization/52171
21467 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
21468 by_pieces_ninsns instead of move_by_pieces_ninsns.
21470 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21472 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
21473 for reg+reg addressing mode.
21475 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21477 * rs6000-c.c (c/c-tree.h): Add #include.
21478 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
21479 in C++ when found in the base position of vec_ld or vec_st.
21481 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21483 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
21484 use of profile unless profile status is PROFILE_READ.
21485 * profile.c (compute_branch_probabilities): Set profile status
21486 only after reporting predictor hitrates.
21488 2016-06-03 Joseph Myers <joseph@codesourcery.com>
21492 * common.opt (ffp-int-builtin-inexact): New option.
21493 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
21494 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
21495 (ceil@var{m}2): Document dependence on this option.
21496 * ipa-inline-transform.c (inline_call): Handle
21497 flag_fp_int_builtin_inexact.
21498 * ipa-inline.c (can_inline_edge_p): Likewise.
21499 * config/i386/i386.md (rintxf2): Do not test
21500 flag_unsafe_math_optimizations.
21501 (rint<mode>2_frndint): New define_insn.
21502 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
21503 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
21504 for 387 instead of extending and truncating.
21505 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
21506 !flag_trapping_math instead of flag_unsafe_math_optimizations.
21507 Change to frndint<mode>2_<rounding>.
21508 (frndintxf2_<rounding>_i387): Likewise. Change to
21509 frndint<mode>2_<rounding>_i387.
21510 (<rounding_insn>xf2): Likewise.
21511 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
21512 !flag_trapping_math instead of flag_unsafe_math_optimizations for
21513 x87. Test TARGET_ROUND || !flag_trapping_math ||
21514 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
21515 SSE. Use ROUND_NO_EXC in constant operand of
21516 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
21517 for 387 instead of extending and truncating.
21519 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
21520 Julia Koval <julia.koval@intel.com>
21532 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
21533 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
21534 all registers, except for function return registers if there are
21535 no caller-saved registers.
21536 (ix86_set_func_type): New function.
21537 (ix86_set_current_function): Call ix86_set_func_type to set
21538 no_caller_saved_registers and func_type. Call reinit_regs if
21539 caller-saved registers are changed. Don't allow MPX, SSE, MMX
21540 nor x87 instructions in interrupt handler nor function with
21541 no_caller_saved_registers attribute.
21542 (ix86_function_ok_for_sibcall): Return false if there are no
21543 caller-saved registers.
21544 (type_natural_mode): Don't warn ABI change for MMX in interrupt
21546 (ix86_function_arg_advance): Skip for callee in interrupt handler.
21547 (ix86_function_arg): Return special arguments in interrupt handler.
21548 (ix86_promote_function_mode): Promote pointer to word_mode only
21549 for normal functions.
21550 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
21552 (ix86_epilogue_uses): New function.
21553 (ix86_hard_regno_scratch_ok): Likewise.
21554 (ix86_save_reg): Preserve all registers in interrupt handler
21555 after reload. Preserve all registers, except for function return
21556 registers, if there are no caller-saved registers after reload.
21557 (find_drap_reg): Always use callee-saved register if there are
21558 no caller-saved registers.
21559 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
21560 for interrupt handler.
21561 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
21562 Emit cld instruction if stringops are used in interrupt handler
21563 or interrupt handler isn't a leaf function.
21564 (ix86_expand_epilogue): Generate interrupt return for interrupt
21565 handler and pop the 'ERROR_CODE' off the stack before interrupt
21566 return in exception handler.
21567 (ix86_expand_call): Disallow calling interrupt handler directly.
21568 If there are no caller-saved registers, mark all registers that
21569 are clobbered by the call which returns as clobbered.
21570 (ix86_handle_no_caller_saved_registers_attribute): New function.
21571 (ix86_handle_interrupt_attribute): Likewise.
21572 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
21574 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
21575 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
21576 accumulation in interrupt function if stack may be realigned to
21578 (EPILOGUE_USES): New.
21579 (function_type): New enum.
21580 (machine_function): Add func_type and no_caller_saved_registers.
21581 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
21582 (interrupt_return): New pattern.
21583 * doc/extend.texi: Document x86 interrupt and
21584 no_caller_saved_registers attributes.
21586 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
21588 PR tree-optimization/52171
21589 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
21590 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
21591 Look for constant strings. Move some code to emit_block_cmp_hints
21593 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
21594 * defaults.h (COMPARE_MAX_PIECES): New macro.
21595 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
21596 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
21597 (clear_by_pieces_1): Don't declare. Move definition before use.
21598 (can_do_by_pieces): New static function.
21599 (can_move_by_pieces): Use it. Return bool.
21600 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
21601 OP. All callers changed. Handle COMPARE_BY_PIECES.
21602 (class pieces_addr); New.
21603 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
21604 pieces_addr::adjust, pieces_addr::increment_address,
21605 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
21607 (class op_by_pieces_d): New.
21608 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
21610 (class move_by_pieces_d, class compare_by_pieces_d,
21611 class store_by_pieces_d): New subclasses of op_by_pieces_d.
21612 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
21613 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
21614 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
21615 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
21616 compare_by_pieces_d::finish_mode): New member functions.
21617 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
21619 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
21620 (emit_block_cmp_hints): New function.
21621 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
21622 use the newly defined classes.
21623 * expr.h (by_pieces_constfn): New typedef.
21624 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
21625 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
21626 (move_by_pieces_ninsns): Don't declare.
21627 (can_move_by_pieces): Change return value to bool.
21628 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
21629 (compare_by_pieces_branch_ratio): New hook.
21630 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
21631 (by_pieces_ninsns): Declare.
21632 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
21634 (default_compare_by_pieces_branch_ratio): New function.
21635 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
21636 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
21637 * doc/tm.texi: Regenerate.
21638 * tree-ssa-strlen.c: Include "builtins.h".
21639 (handle_builtin_memcmp): New static function.
21640 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
21641 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
21643 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21645 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
21646 relevant stmts which are simple and invariant.
21647 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
21648 instead of simple and invariant
21650 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21652 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
21653 (vectorizable_reduction): Check for new relevant state.
21654 (vectorizable_live_operation): vectorize live stmts using
21655 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
21656 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
21657 (vect_stmt_relevant_p): Check for stmts which are only used live.
21658 (process_use): Use of a stmt does not inherit it's live value.
21659 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
21660 (vect_analyze_stmt): Check for new relevant state.
21661 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
21662 outside the loop, but not inside it.
21664 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21666 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
21667 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
21668 (vect_get_vec_def_for_operand): Split out code.
21670 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21672 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
21674 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21676 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
21678 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21680 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
21682 2016-06-03 Jakub Jelinek <jakub@redhat.com>
21684 PR middle-end/71387
21685 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
21686 to noreturn e->callee->decl that has void return type and void
21687 arguments, adjust gimple_call_fntype and remove lhs even if it had
21688 previously addressable type.
21690 2016-06-02 Jeff Law <law@redhat.com>
21692 PR tree-optimization/71328
21693 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
21694 error when checking for a jump back onto the copied path.
21696 2016-06-02 David Malcolm <dmalcolm@redhat.com>
21698 * config/microblaze/microblaze.c (get_branch_target): Add return
21699 NULL_RTX for the non-CALL_P case.
21700 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
21701 (insert_wic): Remove unused local "j".
21703 2016-06-02 Martin Liska <mliska@suse.cz>
21705 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
21707 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
21708 Julia Koval <julia.koval@intel.com>
21710 * function.c (assign_parm_setup_stack): Force source into a
21711 register if needed.
21712 * target.def (function_incoming_arg): Update documentation to
21713 allow arbitrary address computation based on hard register.
21714 * doc/tm.texi: Regenerated.
21716 2016-06-02 Martin Liska <mliska@suse.cz>
21718 * predict.c (combine_predictions_for_bb): Fix first match in
21719 cases where a first predictor contains more than one occurence
21720 in list of predictors. Take the best value in such case.
21722 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21724 PR rtl-optimization/71295
21725 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
21726 offset would go over the size of the inner mode reject it.
21728 2016-06-02 Jakub Jelinek <jakub@redhat.com>
21730 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
21731 x=x,x and v=v,m instead of x=x,m.
21733 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
21734 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
21735 alternative to v=rm,C.
21737 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
21738 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
21739 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
21740 instead of vex for the last two above mentioned alternatives.
21742 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21745 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
21747 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
21749 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
21751 2016-06-01 David Malcolm <dmalcolm@redhat.com>
21753 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
21754 from int to unsigned.
21756 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21758 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
21759 alternatives, eliminating preferred register class. Add support
21760 for the MTVSRDD instruction in ISA 3.0.
21761 (vsx_splat_v4si_internal): Use splat_input_operand instead of
21762 reg_or_indexed_operand.
21763 (vsx_splat_v4sf_internal): Likewise.
21765 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21768 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
21769 for loading up all 0's or all 1's.
21771 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
21773 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
21775 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
21777 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
21779 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
21780 * gcc.c (set_source_date_epoch_envvar): New function, sets
21781 the SOURCE_DATE_EPOCH environment variable to the current time.
21783 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21785 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
21786 the factor for live Phi nodes.
21788 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21790 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
21791 * tree-parloops.c (parallelize_loops): likewise.
21792 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
21793 tree_unswitch_outer_loop): likewise.
21795 2016-06-01 Jakub Jelinek <jakub@redhat.com>
21797 PR middle-end/71371
21798 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
21799 around creation of the temporary.
21801 2016-06-01 Richard Biener <rguenther@suse.de>
21803 PR tree-optimization/71366
21804 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
21805 (unloop_loops): Move removing edges here ...
21806 (try_unroll_loop_completely): ... from here.
21807 (try_peel_loop): ... and here.
21808 (tree_unroll_loops_completely_1): Track parent loops via
21809 bitmap of header BBs.
21810 (tree_unroll_loops_completely): Adjust for that.
21812 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
21814 * config/rs6000/altivec.h (vec_slv): New macro.
21815 (vec_srv): New macro.
21816 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
21817 (UNSPEC_VSRV): New value.
21820 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
21821 (vsrv): New builtin definition.
21822 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
21823 define argument types for new builtin.
21824 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
21826 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
21829 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
21830 Jocelyn Mayer <l_indien@magic.fr>
21833 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
21834 detect processor family for signature_CENTAUR_ebx.
21835 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
21836 signature_CENTAUR_ebx.
21837 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
21838 <default>: Pass x86-64 for has_longmode.
21840 2016-06-01 Nathan Sidwell <nathan@acm.org>
21842 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
21845 2016-06-01 Richard Biener <rguenther@suse.de>
21847 PR tree-optimization/71261
21848 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
21849 of stmts successfully put in the bool pattern. Remove
21850 single-use restriction.
21851 (adjust_bool_pattern_cast): Add cast at the use site via the
21852 pattern def sequence.
21853 (adjust_bool_pattern): Remove recursion, maintain a hash-map
21854 of patterned defs. Use the pattern def seqence instead of
21855 multiple independent patterns.
21856 (sort_after_uid): New qsort compare function.
21857 (adjust_bool_stmts): New function to process stmts in the bool
21858 pattern in IL order.
21859 (vect_recog_bool_pattern): Adjust.
21860 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
21861 (ifcvt_walk_pattern_tree): Likewise.
21862 (stmt_is_root_of_bool_pattern): Likewise.
21863 (ifcvt_repair_bool_pattern): Likewise.
21864 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
21866 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21868 * loop-unroll.c (decide_unroll_constant_iterations,
21869 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
21870 likely upper bounds.
21871 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
21873 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
21875 * tree-core.h (enum omp_clause_code): Remove
21876 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
21878 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21880 * config/arm/sync.md (arm_store_exclusive<mode>):
21881 Use 'H' output modifier on operands[2] rather than creating a new
21882 entry in out-of-bounds memory of the operands array.
21883 (arm_store_release_exclusivedi): Likewise.
21885 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21887 * config/arm/arm.c (arm_fusion_enabled_p): New function.
21888 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
21889 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
21890 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21892 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21894 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
21895 into account live statements for mask producers.
21897 2016-06-01 Richard Biener <rguenther@suse.de>
21899 PR tree-optimization/71311
21900 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
21901 restrict to non-INTEGER_CST @0.
21903 2016-06-01 Richard Biener <rguenther@suse.de>
21905 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
21906 (relational patterns): Use :c to avoid pattern duplications.
21908 2016-06-01 Richard Biener <rguenther@suse.de>
21910 * genmatch.c (comparison_code_p): New predicate.
21911 (swap_tree_comparison): New function.
21912 (commutate): Add for_vec parameter to append new for entries.
21913 Support commutating relational operators by swapping it alongside
21915 (lower_commutative): Adjust.
21916 (dt_simplify::gen): Do not pass artificial operators to gen
21918 (decision_tree::gen): Do not add artificial operators as parameters.
21919 (parser::parse_expr): Verify operator commutativity when :c is
21920 applied. Allow :C to override this.
21921 * match.pd: Adjust patterns to use :C instead of :c where required.
21923 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
21925 PR tree-optimization/71077
21926 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
21927 the combining step, use boolean_false_node and boolean_true_node
21928 as the designated false/true return values.
21930 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21932 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
21933 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
21934 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
21937 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21939 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
21940 of flags impliying the register renaming.
21941 * toplev.c (process_options): Do not imply flag_rename_registers with
21944 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21946 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
21947 default implementation.
21949 2016-05-31 Nathan Sidwell <nathan@acm.org>
21951 * dwarf2out.c (cur_line_info_table): Add GTY marker.
21953 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21955 * config/sh/constraints.md (b): Remove constraint.
21956 * config/sh/predicates.md (arith_reg_operand): Remove
21958 * config/sh/sh-modes.def (PDI): Remove.
21959 * config/sh/sh.c (sh_target_reg_class,
21960 sh_optimize_target_register_callee_saved): Remove functions.
21961 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
21962 (sh_expand_epilogue): Update comment.
21963 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
21964 sh_secondary_reload): Remove TARGET_REGS related code.
21965 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
21966 TARGET_REGISTER_P): Remove macros.
21967 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
21968 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
21969 TR1_REG, TR2_REG): Remove constants.
21970 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
21972 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21974 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
21975 define_expand patterns.
21976 (adddi3_compact): Rename to adddi3.
21977 (subdi3_compact): Rename to subdi3.
21978 (*negdi2): Rename to negdi2.
21979 (*abs<mode>2): Rename to abs<mode>2.
21981 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21983 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
21984 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
21985 (atomic_sub_fetchsi): ... this new pattern.
21986 (mvtc): Add CC_REG clobber.
21988 2016-05-31 Marek Polacek <polacek@redhat.com>
21990 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
21992 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21994 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
21995 aarch64_fusion_enabled_p to check for fusion capabilities.
21997 2016-05-31 Richard Biener <rguenther@suse.de>
21999 PR tree-optimization/71352
22000 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
22001 minus one and a negate.
22003 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22005 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
22006 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
22008 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
22009 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
22010 Remove use of aarch64_simd_attr_length_move, set length attribute
22012 (*aarch64_be_movoi): Likewise.
22013 (*aarch64_be_movci): Likewise.
22014 (*aarch64_be_movxi): Likewise.
22016 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
22018 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
22019 It no longer does that.
22020 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
22022 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
22024 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
22025 attribute __unused__.
22027 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
22029 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
22030 * config/arm/arm.c (arm_arch_thumb1): Define.
22031 (arm_option_override): Initialize arm_arch_thumb1.
22032 * config/arm/arm.h (arm_arch_thumb1): Declare.
22033 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
22034 support Thumb-1 ISA.
22036 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
22039 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
22040 `Yv' for scalar operand.
22042 2016-05-31 Tom de Vries <tom@codesourcery.com>
22044 PR tree-optimization/69068
22045 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
22046 phis with more than two args.
22048 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
22050 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
22051 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
22054 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
22056 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
22058 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
22060 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
22061 cpu_32, cpu_64, tune_32 and tune_64.
22062 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
22064 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
22066 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
22068 2016-05-30 Andi Kleen <ak@linux.intel.com>
22070 * auto-profile.c (read_profile): Replace asserts with errors
22071 when file does not exist.
22072 * gcov-io.c (gcov_read_words): Dito.
22074 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22076 * tree-cfg.c (print_loop): Print likely upper bounds.
22078 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22080 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
22081 * opts.c (default_options): Enable peel loops at -O3.
22082 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
22083 (try_peel_loop): Do not re-peel already peeled loops;
22084 use likely upper bounds; fix profile updating.
22085 (pass_complete_unroll::execute): Initialize peeled_loops.
22087 2016-05-30 Martin Liska <mliska@suse.cz>
22089 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
22090 computed costs by frequency of BB they belong to.
22091 (get_scaled_computation_cost_at): New function.
22093 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
22094 Marc Glisse <marc.glisse@inria.fr>
22096 PR tree-optimization/71289
22097 * match.pd (-1 / B < A, A > -1 / B): New transformations.
22099 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22101 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
22103 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22105 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
22106 for peeled copies; avoid underflow when updating estimates; correctly
22107 scale loop profile.
22109 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22111 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
22112 r236875. Corrected oe3 to oe2 as obvious.
22114 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22116 PR middle-end/71269
22117 PR middle-end/71252
22118 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
22119 that inserted stmt will not dominate stmts that defines its operand.
22120 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
22121 (rewrite_expr_tree_parallel): Likewise.
22123 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22125 PR middle-end/71252
22126 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
22127 all fields including stmt_to_insert are swapped.
22129 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22131 * predict.h (force_edge_cold): Declare.
22132 * predict.c (force_edge_cold): New function.
22133 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
22135 (canonicalize_loop_induction_variables): Fix formating.
22137 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
22139 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
22140 (visium_expand_copysign): Use gen_int_mode directly.
22141 (visium_compute_frame_size): Minor tweaks.
22143 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22145 * tree-vect-loop.c (vect_analyze_loop_2): Use
22146 likely_max_stmt_executions_int.
22148 2016-05-30 Tom de Vries <tom@codesourcery.com>
22150 PR tree-optimization/69067
22151 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
22153 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
22156 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
22157 New peepholes to remove unneeded fild/fistp pairs.
22158 (define_peephole2 atomic_loaddi_fpu): Ditto.
22160 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22162 * predict.c (maybe_hot_frequency_p): Avoid division.
22164 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
22166 * doc/install.texi: Use https for shop.fsf.org.
22168 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22170 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
22171 likely_max_stmt_executions_int.
22173 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22175 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
22176 likely_max_stmt_executions_int.
22178 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22180 * profile.c (compute_branch_probabilities): Do not report hitrates
22182 (branch_prob): Report hitrates here.
22183 * predict.c (gimple_predict_edge): Do not assert profile status;
22184 fix formatting issues.
22186 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22188 * predict.c (edge_predicted_by_p): New function.
22189 (predict_paths_for_bb): Do not put multiple predictions of the same type
22192 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22194 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
22197 2016-05-28 Alan Modra <amodra@gmail.com>
22199 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
22201 2016-05-28 Alan Modra <amodra@gmail.com>
22203 PR rtl-optimization/71275
22204 * ira.c (ira): Free dominance info.
22206 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
22208 * doc/sourcebuild.texi: New address for upstream Go repository.
22210 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
22212 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
22213 (TARGET_ARM_V7M): Likewise.
22215 2016-05-26 Jeff Law <law@redhat.com>
22217 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
22218 (thread_across_edge): Remove calls to find_jump_threads_backwards.
22219 * passes.def: Add jump threading passes before DOM/VRP.
22220 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
22221 argument to a basic block from an edge. Remove tests which are
22223 (pass_data_thread_jumps, class pass_thread_jumps): New.
22224 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
22225 (make_pass_thread_jumps): Likewise.
22226 * tree-pass.h (make_pass_thread_jumps): Declare.
22228 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
22230 * config/visium/visium-protos.h (split_double_move): Rename into...
22231 (visium_split_double_move): ...this.
22232 (visium_split_double_add): Declare.
22233 * config/visium/visium.c (split_double_move): Rename into...
22234 (visium_split_double_move): ...this.
22235 (visium_split_double_add): New function.
22236 (visium_expand_copysign): Renumber operands for consistency.
22237 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
22238 (DFmode move splitter): Likewise.
22239 (*addi3_insn): Split by means of visium_split_double_add.
22240 (*adddi3_insn_flags): Delete.
22241 (*plus_plus_sltu<subst_arith>): New insn.
22242 (*subdi3_insn): Split by means of visium_split_double_add.
22243 (subdi3_insn_flags): Delete.
22244 (*minus_minus_sltu<subst_arith>): New insn.
22245 (*negdi2_insn): Split by means of visium_split_double_add.
22246 (*negdi2_insn_flags): Delete.
22248 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
22250 * configure.ac: Treat a --with-headers option without argument
22251 the same as the default (i.e. consult sys-include directory).
22252 * configure: Regenerate.
22254 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22256 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
22257 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
22259 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
22260 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
22262 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22265 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
22266 tree-stdarg analysis results.
22267 (aarch64_setup_incoming_varargs): Likewise.
22269 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22271 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
22272 va_list_gpr_counter_field and va_list_fpr_counter_field.
22274 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
22277 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
22278 * config/aarch64/aarch64.c
22279 (aarch64_cannot_change_mode_class): Remove function.
22280 * config/aarch64/aarch64-protos.h
22281 (aarch64_cannot_change_mode_class): Remove.
22283 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22285 * cfgloop.c (record_niter_bound): Record likely upper bounds.
22286 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
22287 get_likely_max_loop_iterations_int): New.
22288 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
22289 any_likely_upper_bound.
22290 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
22292 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
22293 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
22295 (unroll_loop_constant_iterations): Likewise.
22296 (unroll_loop_runtime_iterations): Likewise.
22297 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
22298 * lto-streamer-out.c (output_cfg): Likewise.
22299 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
22301 (canonicalize_loop_induction_variables): Dump likely upper bounds.
22302 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
22303 (likely_max_loop_iterations): New.
22304 (likely_max_loop_iterations_int): New.
22305 (likely_max_stmt_executions): New.
22306 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
22307 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
22308 likely_max_stmt_executions): Declare.
22310 2016-05-27 Marek Polacek <polacek@redhat.com>
22312 PR middle-end/71308
22313 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
22315 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22317 * config/s390/s390.md (2x risbg splitters): Use
22318 reg_overlap_mentioned_p instead of rtx_equal_p.
22320 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
22322 * combine.c (make_compound_operation): Take known zero bits into
22323 account when checking for possible zero_extend.
22325 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22327 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
22328 Use const_int_operand for operand 2 predicate. Simplify expand code
22331 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
22333 PR middle-end/71279
22334 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
22337 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22339 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
22340 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
22341 that returns CC_SESWPmode and CC_ZESWPmode.
22342 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
22344 (aarch64_rtx_costs): Likewise.
22346 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
22348 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
22349 for ISA 3.0 min/max support.
22350 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
22351 conditional move support.
22352 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
22353 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
22355 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
22356 conditional moves where the comparison type is different from move
22358 (fp_minmax): New code iterator for smin/smax.
22359 (minmax): New code attributes for min/max.
22360 (SMINMAX): Likewise.
22361 (smax<mode>3): Combine min, max insns into one insn using the
22362 fp_minmax code iterator. Add support for ISA 3.0 min/max
22363 instructions that don't need -ffast-math.
22364 (s<minmax><mode>3): Likewise.
22365 (smax<mode>3_vsx): Likewise.
22366 (smin<mode>3): Likewise.
22367 (s<minmax><mode>3_vsx): Likewise.
22368 (smin<mode>3_vsx): Likewise.
22369 (pre-VSX min/max splitters): Likewise.
22370 (s<minmax><mode>3_fpr): Likewise.
22371 (movsfcc): Rewrite floating point conditional moves to combine
22372 SFmode/DFmode into a single insn.
22373 (mov<mode>cc): Likewise.
22374 (movdfcc): Likewise.
22375 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
22376 SFDF2 iterators to handle all combinations.
22377 (fseldfsf4): Likewise.
22378 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
22379 (fseldfdf4): Likewise.
22380 (fselsfdf4): Likewise.
22381 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
22382 comparison instructions that set a 0/-1 mask, and use it for
22383 floating point conditional move via XXSEL.
22384 (fpmask<mode>): Likewise.
22385 (xxsel<mode>): Likewise.
22386 * config/rs6000/predicates.md (min_max_operator): Delete, no
22388 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
22389 instructions that generate a 0/-1 mask for use with XXSEL.
22390 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
22391 say whether floating point min/max is available, either through
22392 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
22393 (TARGET_MINMAX_DF): Likewise.
22395 2016-05-27 Alan Modra <amodra@gmail.com>
22397 PR rtl-optimization/71275
22398 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
22399 for update_equiv_regs and combine_and_move_insns.
22401 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
22403 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
22404 if_then_else or cond RTXes to calculate attribute value.
22405 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
22406 <attr "length_immediate>: Ditto.
22407 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
22408 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
22409 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
22410 <attr "type">: Ditto.
22411 <attr "prefix_data16">: Ditto.
22412 <attr "prefix_extra">: Ditto.
22413 <attr "length_immediate">: Ditto.
22414 <attr "prefix">: Ditto.
22415 (vec_set<mode>_0) <attr "isa">: Ditto.
22416 <attr "prefix_extra">: Ditto.
22417 <attr "length_immediate">: Ditto.
22418 <attr "prefix">: Ditto.
22419 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
22420 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
22421 (sse2_storelpd) <attr "prefix_data16">: Ditto.
22422 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
22423 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
22424 <attr "length_immediate">: Ditto.
22425 <attr "prefix">: Ditto.
22426 (sse2_movsd) <attr "length_immediate">: Ditto.
22427 <attr "prefix">: Ditto.
22428 (vec_concatv2df) <attr "isa">: Ditto.
22429 <attr "prefix">: Ditto.
22430 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
22431 (*vec_extractv2di_1) <attr "isa">: Ditto.
22432 <attr "type">: Ditto.
22433 <attr "length_immediate">: Ditto.
22434 <attr "prefix_rex">: Ditto.
22435 <attr "prefix_extra">: Ditto.
22436 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
22437 <attr "prefix_extra">: Ditto.
22438 <attr "length_immediate">: Ditto.
22439 (vec_concatv2di) <attr "isa">: Ditto.
22440 <attr "prefix_extra">: Ditto.
22441 <attr "length_immediate">: Ditto.
22442 <attr "prefix">: Ditto.
22444 2016-05-26 Martin Liska <mliska@suse.cz>
22446 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
22448 (operator+): Likewise.
22449 (operator-): Likewise.
22450 (comp_cost::operator+=): Likewise.
22451 (comp_cost::operator-=): Likewise.
22452 (comp_cost::operator/=): Likewise.
22453 (comp_cost::operator*=): Likewise.
22454 (operator<): Likewise.
22455 (operator==): Likewise.
22456 (operator<=): Likewise.
22457 (new_cost): Remove.
22458 (infinite_cost_p): Likewise.
22459 (add_costs): Likewise.
22460 (sub_costs): Likewise.
22461 (compare_costs): Likewise.
22462 (set_group_iv_cost): Use the newly introduced functions.
22463 (get_address_cost): Likewise.
22464 (get_shiftadd_cost): Likewise.
22465 (force_expr_to_var_cost): Likewise.
22466 (split_address_cost): Likewise.
22467 (ptr_difference_cost): Likewise.
22468 (difference_cost): Likewise.
22469 (get_computation_cost_at): Likewise.
22470 (determine_group_iv_cost_generic): Likewise.
22471 (determine_group_iv_cost_address): Likewise.
22472 (determine_group_iv_cost_cond): Likewise.
22473 (autoinc_possible_for_pair): Likewise.
22474 (determine_group_iv_costs): Likewise.
22475 (cheaper_cost_pair): Likewise.
22476 (iv_ca_recount_cost): Likewise.
22477 (iv_ca_set_no_cp): Likewise.
22478 (iv_ca_set_cp): Likewise.
22479 (iv_ca_cost): Likewise.
22480 (iv_ca_new): Likewise.
22481 (iv_ca_dump): Likewise.
22482 (iv_ca_narrow): Likewise.
22483 (iv_ca_prune): Likewise.
22484 (iv_ca_replace): Likewise.
22485 (try_add_cand_for): Likewise.
22486 (try_improve_iv_set): Likewise.
22487 (find_optimal_iv_set): Likewise.
22489 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
22491 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
22492 that internal functions will clobber all caller-saved registers.
22494 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22496 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
22497 Return a better case_values_threshold when optimizing.
22499 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22501 * config/aarch64/aarch64-simd.md (aarch64_combinez):
22502 Add ? to integer variant.
22503 (aarch64_combinez_be): Likewise.
22505 2016-05-26 Jakub Jelinek <jakub@redhat.com>
22507 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
22508 instead of x constraint.
22509 (vcvtps2ph256<mask_name>): Likewise.
22511 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
22512 alternative. Formatting fix.
22514 * config/i386/sse.md
22515 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
22517 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
22518 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
22519 maybe_evex prefix instead of vex.
22520 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
22521 EXT_REX_SSE_REG_P (op0) case in the splitter.
22523 2016-05-25 Jeff Law <law@redhat.com>
22525 PR tree-optimization/71272
22526 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
22527 Update comments. Add test for empty path.
22529 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22531 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
22532 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
22533 special case builtin.
22534 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22535 code for ALTIVEC_BUILTIN_VEC_CMPNE.
22536 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22537 for __builtin_vec_cmpne.
22539 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
22541 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
22542 redundant test and bail out if the type of the new operand is not
22543 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
22545 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22547 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
22548 (x_ix86_target_flags_explicit): Remove.
22549 * config/i386/i386.c (ix86_function_specific_save): Do not copy
22550 x_ix86_target_flags_explicit.
22551 (ix86_function_specific_restore): Ditto.
22553 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22554 H.J. Lu <hongjiu.lu@intel.com>
22557 * common/config/i386/i386-common.c
22558 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
22559 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
22560 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
22561 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
22562 (-mgeneral-regs-only): Add new option.
22563 * config/i386/i386.c (ix86_option_override_internal): Don't enable
22564 x87 instructions if only general registers are allowed.
22565 (ix86_target_string): Add ix86_flags argument. Handle additional
22566 flags options through ix86_flags argument. Update all callers.
22567 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
22569 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22571 PR rtl-optimization/66940
22572 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
22573 decrementing desired_val will not overflow before performing these
22576 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
22578 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
22579 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
22580 * config/i386/i386.c (enum ix86_builtins): Add
22581 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
22582 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
22583 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
22584 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
22585 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
22586 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
22587 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
22588 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
22589 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
22590 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
22591 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
22592 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
22593 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
22594 __builtin_ia32_cvtps2dq512_mask.
22595 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
22596 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
22597 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
22598 * config/i386/sse.md
22599 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
22601 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
22602 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
22604 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
22605 (avx512f_vec_pack_sfix_v8df): New define_expand.
22606 (avx512f_roundpd512): Rename to ...
22607 (avx512f_round<castmode>512): ... this. Change iterator.
22608 (avx512f_roundps512_sfix): New define_expand.
22609 (round<mode>2_sfix): Change iterator.
22611 2016-05-25 Nick Clifton <nickc@redhat.com>
22613 * config/msp430/msp430.c (msp430_attr): Produce an error if a
22614 static interrupt handler is detected.
22615 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
22616 default linker script.
22617 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
22618 the low part of a symbolic pointer.
22620 2016-05-25 Richard Biener <rguenther@suse.de>
22622 PR tree-optimization/71261
22623 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
22624 interesting stmt instead of immediate uses when looking
22625 for the use operand to replace.
22627 2016-05-25 Martin Liska <mliska@suse.cz>
22629 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
22631 2016-05-25 Richard Biener <rguenther@suse.de>
22633 PR tree-optimization/71264
22634 * tree-vect-stmts.c (vect_init_vector): Properly deal with
22637 2016-05-25 Martin Liska <mliska@suse.cz>
22639 PR tree-optimization/71239
22640 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
22641 if DECL_SIZE is NULL.
22643 2016-05-25 Richard Biener <rguenther@suse.de>
22645 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
22646 * tree-if-conv.c (pass_data_if_conversion): Use it.
22648 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
22650 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
22651 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
22652 * varpool.c (varpool_node::get_availability): Likewise.
22654 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22656 * config/rs6000/altivec.md (VNEG iterator): New iterator for
22657 VNEGW/VNEGD instructions.
22658 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
22659 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
22660 support for ISA 3.0 VNEGW/VNEGD instructions.
22662 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
22664 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
22665 pointers inside OACC_DATA regions.
22666 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
22667 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
22668 (gimplify_adjust_omp_clauses): Fix typo in comment.
22670 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22672 * config/rs6000/altivec.md (VParity): New mode iterator for vector
22673 parity built-in functions.
22674 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
22676 (p9v_parity<mode>2): Likewise.
22677 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
22679 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
22680 (parity<mode>2): ISA 3.0 expander for vector parity.
22681 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
22683 (BU_P9_64BIT_MISC_0): Likewise.
22684 (BU_P9_MISC_0): Likewise.
22685 (BU_P9V_AV_1): Likewise.
22686 (BU_P9V_AV_2): Likewise.
22687 (BU_P9V_AV_3): Likewise.
22688 (BU_P9V_AV_P): Likewise.
22689 (BU_P9V_VSX_1): Likewise.
22690 (BU_P9V_OVERLOAD_1): Likewise.
22691 (BU_P9V_OVERLOAD_2): Likewise.
22692 (BU_P9V_OVERLOAD_3): Likewise.
22693 (VCTZB): Add vector count trailing zeros support.
22697 (VPRTYBD): Add vector parity support.
22698 (VPRTYBQ): Likewise.
22699 (VPRTYBW): Likewise.
22700 (VCTZ): Add overloaded vector count trailing zeros support.
22701 (VPRTYB): Add overloaded vector parity support.
22702 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22703 overloaded vector count trailing zeros and parity instructions.
22704 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
22705 vector parity support.
22706 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
22707 trailing zeros support.
22708 (vec_cntlz): Likewise.
22709 (vec_vctzb): Likewise.
22710 (vec_vctzd): Likewise.
22711 (vec_vctzh): Likewise.
22712 (vec_vctzw): Likewise.
22713 (vec_vprtyb): Add ISA 3.0 vector parity support.
22714 (vec_vprtybd): Likewise.
22715 (vec_vprtybw): Likewise.
22716 (vec_vprtybq): Likewise.
22717 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
22718 the ISA 3.0 vector count trailing zeros and vector parity built-in
22721 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22723 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
22724 when there is stmt_to_insert.
22726 2016-05-24 Martin Sebor <msebor@redhat.com>
22729 * tree.h (complete_or_array_type_p): New inline function.
22731 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22733 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
22734 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
22735 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
22737 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
22738 Limit 1st alternative to noavx isa, split 2nd alternative into one
22739 noavx and one avx alternative, use *x and Bm in the former and
22740 x and m in the latter.
22742 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
22743 of sse4 for the first alternative, drop %v from the template
22744 and d operand modifier. Split second alternative into one sse4_noavx
22745 and one avx alternative, use *x instead of *v in the former and v
22746 instead of *v in the latter.
22747 (*sse4_1_extractps): Use noavx isa instead of * for the first
22748 alternative, drop %v from the template. Split second alternative into
22749 one noavx and one avx alternative, use *x instead of *v in the
22750 former and v instead of *v in the latter.
22751 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
22752 with noavx and the last one with avx.
22753 (sse4_1_phminposuw): Guard first alternative with noavx isa,
22754 split the second one into one noavx and one avx alternative,
22755 use *x and Bm in the former and x and m in the latter one.
22756 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
22759 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
22760 first two alternatives to noavx, use *x instead of *v in the second
22761 one, add avx alternative without *.
22762 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
22763 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
22764 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
22766 2016-05-24 Jeff Law <law@redhat.com>
22768 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
22769 New function, extracted from...
22770 (fsm_find_control_statement_thread_paths): Here. Use the new function.
22771 Allow simple copies and constant initializations in the SSA chain.
22773 2016-05-24 Marek Polacek <polacek@redhat.com>
22776 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
22779 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22782 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
22783 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
22784 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
22785 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
22786 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
22788 2016-05-24 Richard Biener <rguenther@suse.de>
22790 PR tree-optimization/71240
22791 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
22794 2016-05-24 Richard Biener <rguenther@suse.de>
22796 PR tree-optimization/71230
22797 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
22799 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22801 * tree-vectorizer.h (vectorizable_comparison): Delete.
22802 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
22803 PURE_SLP_STMT check.
22804 * tree-vect-stmts.c (vectorizable_call): Likewise.
22805 (vectorizable_simd_clone_call): Likewise.
22806 (vectorizable_conversion): Likewise.
22807 (vectorizable_assignment): Likewise.
22808 (vectorizable_shift): Likewise.
22809 (vectorizable_operation): Likewise.
22810 (vectorizable_load): Likewise.
22811 (vectorizable_condition): Likewise.
22812 (vectorizable_store): Likewise. Assert that we don't have
22814 (vectorizable_comparison): Make static. Remove redundant
22815 PURE_SLP_STMT check.
22816 (vect_transform_stmt): Assert that we always have an slp_node
22819 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22821 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
22822 operands[2] against 1 with comparison against CONST1_RTX.
22823 (<shift>di3_neon): Likewise.
22824 * config/arm/predicates.md (const0_operand): Replace with comparison
22825 against CONST0_RTX.
22827 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22829 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
22830 operands[2] against 1 with comparison against CONST1_RTX.
22831 (ashrdi3): Likewise.
22832 (lshrdi3): Likewise.
22833 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
22835 (ashrsi3): Likewise.
22836 (lshrsi3): Likewise.
22837 (rotrsi3): Likewise.
22838 (define_split above *compareqi_eq0): Likewise.
22839 (define_split above "prologue"): Likewise.
22840 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
22841 * config/arm/predicates.md (shift_operator): Likewise.
22842 (shift_nomul_operator): Likewise.
22843 (sat_shift_operator): Likewise.
22844 (thumb1_cmp_operand): Likewise.
22845 (const_neon_scalar_shift_amount_operand): Replace manual range
22846 check with IN_RANGE.
22847 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
22848 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
22850 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22852 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
22853 with HOST_WIDE_INT_1.
22855 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
22856 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
22857 (arm_canonicalize_comparison): Likewise.
22858 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
22860 (thumb1_size_rtx_costs): Likewise.
22861 (vfp_const_double_index): Replace cast of 1 to unsigned
22862 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22863 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
22865 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
22866 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22867 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
22868 HOST_WIDE_INT with HOST_WIDE_INT_1.
22870 2016-05-24 Marek Polacek <polacek@redhat.com>
22872 * tree-cfg.h (should_remove_lhs_p): New predicate.
22873 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
22874 * gimplify.c (gimplify_modify_expr): Likewise.
22875 * tree-cfg.c (verify_gimple_call): Likewise.
22876 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22877 * gimple-fold.c: Include "tree-cfg.h".
22878 (gimple_fold_call): Use should_remove_lhs_p.
22880 2016-05-24 Richard Biener <rguenther@suse.de>
22882 PR tree-optimization/71253
22883 * cfganal.h (control_dependences): Make robust against edge
22885 (control_dependences::control_dependences): Remove edge_list argument.
22886 (control_dependences::get_edge): Remove.
22887 (control_dependences::get_edge_src): Add.
22888 (control_dependences::get_edge_dest): Likewise.
22889 (control_dependences::m_el): Make a vector of edge src/dest index.
22890 * cfganal.c (control_dependences::find_control_dependence): Adjust.
22891 (control_dependences::control_dependences): Likewise.
22892 (control_dependences::~control_dependence): Likewise.
22893 (control_dependences::get_edge): Remove.
22894 (control_dependences::get_edge_src): Add.
22895 (control_dependences::get_edge_dest): Likewise.
22896 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
22898 (perform_tree_ssa_dce): Adjust.
22899 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
22901 (pass_loop_distribution::execute): Adjust. Do loop destroying
22902 conditional on changed.
22904 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22907 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
22908 return. Reindent transformation comment and mention the ARM state
22911 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22913 PR middle-end/71252
22914 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
22915 after build_and_add_sum creates new use stmt.
22917 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22919 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
22920 load_lanes/grouped_load classification comes first. Don't check
22921 whether the vectorization factor is a multiple of the group size
22924 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22926 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
22927 GROUP_GAP for single-element interleaving.
22928 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
22931 2016-05-24 Richard Biener <rguenther@suse.de>
22933 PR middle-end/70434
22935 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
22936 bases which are accessed with non-invariant indices.
22937 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
22938 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
22940 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22942 PR middle-end/71170
22943 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
22944 (add_to_ops_vec): Add stmt_to_insert.
22945 (add_repeat_to_ops_vec): Init stmt_to_insert.
22946 (insert_stmt_before_use): New.
22947 (transform_add_to_multiply): Remove mult_stmt insertion and add it
22949 (get_ops): Init stmt_to_insert.
22950 (maybe_optimize_range_tests): Likewise.
22951 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
22952 (rewrite_expr_tree_parallel): Likewise.
22953 (reassociate_bb): Likewise.
22955 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22958 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
22959 ISA 3.0 xxperm fusion alternative.
22960 (altivec_vperm_v8hiv16qi): Likewise.
22961 (altivec_vperm_<mode>_uns_internal): Likewise.
22962 (vperm_v8hiv4si): Likewise.
22963 (vperm_v16qiv8hi): Likewise.
22965 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22966 Kelvin Nilsen <kelvin@gcc.gnu.org>
22968 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
22969 vpermr/xxpermr on ISA 3.0.
22970 (altivec_expand_vec_perm_le): Likewise.
22971 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
22972 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
22975 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
22977 * config/i386/i386.h (IS_STACK_MODE): Enable for
22978 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
22979 SSE_FLOAT_MODE_P macros.
22980 * config/i386/i386.c (ix86_preferred_reload_class): Use
22981 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
22982 Cleanup regclass processing for CONST_DOUBLE_P.
22983 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
22984 (ix86_rtx_costs): Remove redundant TARGET_80387 check
22985 with IS_STACK_MODE macro.
22986 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
22988 (*movdf_internal): Use IS_STACK_MODE macro.
22989 (*movsf_internal): Ditto.
22991 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
22993 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
22994 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
22996 2016-05-23 Jeff Law <law@redhat.com>
22998 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
23000 (fsm_find_control_statement_thread_paths): Call it.
23002 2016-05-23 Martin Jambor <mjambor@suse.cz>
23005 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
23006 from_global_constant if t is not NULL.
23008 2016-05-23 Marek Polacek <polacek@redhat.com>
23011 * common.opt (Wswitch-unreachable): New option.
23012 * doc/invoke.texi: Document -Wswitch-unreachable.
23013 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
23016 2016-05-23 Bin Cheng <bin.cheng@arm.com>
23018 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
23019 TMR_INDEX is non-NULL.
23021 2016-05-23 Richard Biener <rguenther@suse.de>
23023 PR tree-optimization/71230
23024 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
23025 (try_special_add_to_ops): ... here. Always test for single-use.
23027 2016-05-23 Martin Jambor <mjambor@suse.cz>
23029 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
23030 default block if a PHI node in the original one would be resized.
23032 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23034 PR tree-optimization/58135
23035 * tree-vect-slp.c: When group size is not multiple
23036 of vector size, allow splitting of store group at
23039 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
23041 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
23043 2016-05-22 Jakub Jelinek <jakub@redhat.com>
23045 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
23046 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
23047 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
23050 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
23051 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
23052 v constraint instead of x and vinserti32x4 insn.
23054 * config/i386/sse.md (i128vldq): New mode iterator.
23055 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
23056 avx512dq and avx512vl alternatives.
23058 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
23059 constraint, use maybe_evex prefix instead of vex.
23060 (vec_dupv4sf): Use v constraint instead of x for output
23061 operand except for noavx alternative, use Yv constraint
23062 instead of x for input. Use maybe_evex prefix instead of vex.
23063 (*vec_dupv4si): Likewise.
23064 (*vec_dupv2di): Likewise.
23066 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23068 PR middle-end/40921
23069 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
23070 (linearize_expr_tree): Call try_special_add_to_ops.
23071 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
23073 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23075 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
23076 to computed stack_usage.
23078 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23081 * config/avr/avr.md (define_expand "mov<mode>"): If the source
23082 operand is subreg (symbol_ref) then move the symbol ref to register.
23084 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
23086 * tree.c (array_at_struct_end_p): Look through MEM_REF.
23088 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
23090 PR middle-end/71179
23091 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
23094 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23096 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
23097 ranges by calling get_single_symbol and tidy up. Look more closely
23098 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
23100 2016-05-20 Jeff Law <law@redhat.com>
23102 * bitmap.c (bitmap_find_bit): Remove useless test.
23104 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
23106 * function.c (thread_prologue_and_epilogue_insns): Commit the
23107 insertion of the epilogue.
23109 2016-05-20 Martin Jambor <mjambor@suse.cz>
23111 PR tree-optimization/70884
23112 * tree-sra.c (initialize_constant_pool_replacements): Do not check
23113 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
23114 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
23115 of constant pool data as a reason for scalarization.
23117 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23119 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
23120 for naked functions.
23121 (thumb1_expand_prologue): Likewise.
23123 2016-05-20 Nathan Sidwell <nathan@acm.org>
23125 * config/nvptx/nptx.c (nvptx_option_override): Only set
23126 flag_toplevel_reorder, if not explicitly specified. Set
23127 flag_no_common, unless explicitly specified.
23129 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23131 * calls.c (can_implement_as_sibling_call_p): Mark param
23132 reg_parm_stack_space with ATTRIBUTE_UNUSED.
23134 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
23136 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
23137 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
23138 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
23140 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
23141 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
23142 and CASE_CONST_ANY.
23144 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
23146 * config/nvptx/nvptx.md (sincossf3): New pattern.
23148 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23150 * calls.c (maybe_complain_about_tail_call): New function.
23151 (initialize_argument_information): Call
23152 maybe_complain_about_tail_call when clearing *may_tailcall.
23153 (can_implement_as_sibling_call_p): Call
23154 maybe_complain_about_tail_call when returning false.
23155 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
23156 ensure try_tail_call is set. Call maybe_complain_about_tail_call
23157 if tail-call optimization fails.
23158 * cfgexpand.c (expand_call_stmt): Initialize
23159 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
23160 * gimple-pretty-print.c (dump_gimple_call): Dump
23161 gimple_call_must_tail_p.
23162 * gimple.c (gimple_build_call_from_tree): Call
23163 gimple_call_set_must_tail with the value of
23164 CALL_EXPR_MUST_TAIL_CALL.
23165 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
23166 (gimple_call_set_must_tail): New function.
23167 (gimple_call_must_tail_p): New function.
23168 * print-tree.c (print_node): Update printing of TREE_STATIC
23169 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
23170 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
23171 trailing comment listing applicable flags.
23172 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
23174 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23176 * calls.c (expand_call): Move "Rest of purposes for tail call
23177 optimizations to fail" to...
23178 (can_implement_as_sibling_call_p): ...this new function, and
23179 split into multiple "if" statements.
23181 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23183 * cfgloop.h (expected_loop_iterations_unbounded,
23184 expected_loop_iterations): Unconstify.
23185 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
23186 profile with known upper bound; return 3 when profile is absent.
23187 (expected_loop_iterations): Update.
23189 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23191 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
23192 and get_max_loop_iterations_int.
23194 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23196 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
23197 realistic upper bounds here.
23199 2016-05-20 Jakub Jelinek <jakub@redhat.com>
23202 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
23203 calls if the LHS is variable length or has addressable type.
23204 If targets[0]->decl is a noreturn call with void return type and
23205 zero arguments, adjust fntype and remove lhs in that case.
23207 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
23209 PR tree-optimization/71079
23210 PR tree-optimization/71206
23211 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
23213 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23215 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
23216 (get_vec_alignment_for_array_decl): Likewise.
23217 (get_vec_alignment_for_record_decl): Likewise.
23218 (increase_alignment::execute): Move code to find alignment to
23219 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
23220 (type_align_map): New hash_map.
23222 2016-05-20 Richard Guenther <rguenther@suse.de>
23224 PR tree-optimization/29756
23225 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
23226 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
23227 * fold-const.c (operand_equal_p): Likewise.
23228 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
23229 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
23230 * tree-inline.c (estimate_operator_cost): Likewise.
23231 * tree-pretty-print.c (dump_generic_node): Likewise.
23232 * tree-ssa-operands.c (get_expr_operands): Likewise.
23233 * cfgexpand.c (expand_debug_expr): Likewise.
23234 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
23235 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
23236 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
23237 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
23238 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
23239 (execute_update_addresses_taken): Do it.
23241 2016-05-20 Richard Biener <rguenther@suse.de>
23243 PR tree-optimization/71185
23244 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
23245 register operations.
23247 2016-05-20 Richard Biener <rguenther@suse.de>
23249 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
23250 gimple_seq_add_seq_without_update.
23251 (release_bb_predicate): Assert we have no operands to free.
23252 (if_convertible_loop_p_1): Calculate post dominators later.
23253 Do not free BB predicates here.
23254 (combine_blocks): Do not recompute BB predicates.
23255 (version_loop_for_if_conversion): Save BB predicates around
23258 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23260 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
23261 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
23262 code. Ignore sibcalls on EDGE_IGNORE edges.
23263 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
23264 on edges for sibcalls that run without prologue. The rest of the
23265 function is combined from...
23266 (fix_fake_fallthrough_edge): ... this, and ...
23267 (try_shrink_wrapping): ... a part of this. Remove the bb_with
23268 function argument, make it a local variable.
23270 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
23272 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
23273 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
23274 for 32-bit mode and SEH for 64-bit.
23275 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
23276 TARGET_64BIT_DEFAULT.
23278 2016-05-19 Ryan Burn <contact@rnburn.com>
23280 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
23281 * gengtype.c (open_base_files): Add cilk.h to ifiles.
23283 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
23285 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
23286 force pending loads from memory.
23288 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
23290 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
23291 (UNSPEC_DARN_32): New unspec constant.
23292 (UNSPEC_DARN_RAW): New unspec constant.
23293 (darn_32): New instruction.
23294 (darn_raw): New instruction.
23295 (darn): New instruction.
23296 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
23297 support and documentation for this macro.
23298 (BU_P9_MISC_1): New macro definition.
23299 (BU_P9_64BIT_MISC_0): New macro definition.
23300 (BU_P9_MISC_0): New macro definition.
23301 (darn_32): New builtin definition.
23302 (darn_raw): New builtin definition.
23303 (darn): New builtin definition.
23304 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
23305 RS6000_BUILTIN_0 directives to surround each occurrence of
23306 #include "rs6000-builtin.def".
23307 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
23308 RS6000_BTM_64BIT flags to the returned mask, depending on
23310 (def_builtin): Correct an error in the assignments made to the
23311 debugging variable attr_string.
23312 (rs6000_expand_builtin): Add support for no-operand built-in
23314 (builtin_function_type): Remove fatal_error assertion that is no
23316 (rs6000_common_init_builtins): Add support for no-operand built-in
23318 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
23320 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
23322 (RS6000_BTM_64BIT): New macro definition.
23323 * doc/extend.texi: Document __builtin_darn (void),
23324 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
23327 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
23329 * tree-vect-loop.c (vect_analyze_loop_2): Use also
23330 max_loop_iterations_int.
23332 2016-05-19 Marek Polacek <polacek@redhat.com>
23334 PR tree-optimization/71031
23335 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
23336 condition and adjust the code a bit.
23338 2016-05-19 Martin Liska <mliska@suse.cz>
23340 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
23341 auto_vec instead of vec.
23343 2016-05-19 Martin Liska <mliska@suse.cz>
23345 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
23347 2016-05-19 Martin Liska <mliska@suse.cz>
23349 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
23351 2016-05-19 Martin Liska <mliska@suse.cz>
23353 * ipa-pure-const.c (set_function_state): Remove an existing
23355 (remove_node_data): Do not free it as it's released
23356 in set_function_state.
23358 2016-05-19 Martin Liska <mliska@suse.cz>
23360 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
23363 2016-05-19 Martin Liska <mliska@suse.cz>
23365 * omp-simd-clone.c (simd_clone_adjust): Release vector.
23367 2016-05-19 Martin Liska <mliska@suse.cz>
23369 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
23370 an auto_vec instead of re-creating it.
23372 2016-05-19 Martin Liska <mliska@suse.cz>
23374 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
23375 auto_vec instead of vec.
23377 2016-05-19 Martin Liska <mliska@suse.cz>
23379 * lto-section-in.c (lto_get_section_data): Call
23380 lto_check_version with additional argument.
23381 * lto-streamer.c (lto_check_version): Add new argument.
23382 * lto-streamer.h (lto_check_version): Likewise.
23384 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23386 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
23387 Don't add cost of inner memory when handling sign-extended loads.
23389 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
23391 PR rtl-optimization/71148
23392 * cse.c (cse_main): Free dominance info.
23393 (rest_of_handle_cse): Don't free dominance info.
23394 (rest_of_handle_cse2): Likewise.
23395 (rest_of_handle_cse_after_global_opts): Likewise.
23397 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23400 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
23401 NULL_TREE early if NEON is not available. Remove now redundant check
23402 in ARM_CHECK_BUILTIN_MODE.
23404 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
23407 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
23408 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
23409 * doc/cpp.texi: Document new macros.
23411 2016-05-19 Bin Cheng <bin.cheng@arm.com>
23413 PR tree-optimization/69848
23414 * tree-vect-loop.c (vectorizable_reduction): Don't factor
23415 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
23417 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23419 * function.c (thread_prologue_and_epilogue_insn): Move the
23420 "goto epilogue_done" one block later.
23422 2016-05-19 Richard Biener <rguenther@suse.de>
23424 PR tree-optimization/70729
23425 * passes.def: Move LIM pass before PRE. Remove no longer
23426 required copyprop and move first DCE out of the loop pipeline.
23428 2016-05-18 David Malcolm <dmalcolm@redhat.com>
23431 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
23432 (OBJS-libcommon-target): ...here.
23433 * opts-common.c: Include spellcheck.h.
23434 (cmdline_handle_error): Build a vec of valid options and use it
23435 to suggest provide hints for misspelled arguments.
23437 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23440 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
23441 lhs if it has TREE_ADDRESSABLE type.
23443 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
23446 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
23447 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
23449 2016-05-18 Martin Jambor <mjambor@suse.cz>
23452 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
23453 input for NOP_EXPR pass-through functions.
23454 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
23455 aggregate global constant VAR_DECLs in constant jump functions.
23457 2016-05-18 Martin Jambor <mjambor@suse.cz>
23460 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
23461 from TREE_READONLY parameters.
23463 2016-05-18 Martin Jambor <mjambor@suse.cz>
23466 * cgraph.h (cgraph_indirect_call_info): New field
23467 guaranteed_unmodified.
23468 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
23469 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23471 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
23472 pass the parameter value to ipa_find_agg_cst_for_param.
23473 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
23474 guaranteed_unmodified, store AA results there instead of bailing out
23476 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
23477 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
23478 (find_constructor_constant_at_offset): New function.
23479 (ipa_find_agg_cst_from_init): Likewise.
23480 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
23481 static initializers of contants, report back through a new paameter
23482 from_global_constant if that was the case.
23483 (try_make_edge_direct_simple_call): Also pass parameter value to
23484 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23486 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
23487 (ipa_read_indirect_edge_info): Likewise.
23488 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
23489 (ipa_load_from_parm_agg): Likewise.
23491 2016-05-18 Jiong Wang <jiong.wang@arm.com>
23493 PR rtl-optimization/71150
23494 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
23497 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23500 * config/rs6000/constraints.md (wE constraint): New constraint
23501 for a vector constant that can be loaded with XXSPLTIB.
23502 (wM constraint): New constraint for a vector constant of a 1's.
23503 (wS constraint): New constraint for a vector constant that can be
23504 loaded with XXSPLTIB and a vector sign extend instruction.
23505 * config/rs6000/predicates.md (xxspltib_constant_split): New
23506 predicates for wE/wS constraints.
23507 (xxspltib_constant_nosplit): Likewise.
23508 (easy_vector_constant): Add support for constants that can be
23509 loaded via XXSPLTIB.
23510 (all_ones_constant): New predicate for vector constant with all
23512 (splat_input_operand): Add support for ISA 3.0 word splat operations.
23513 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
23514 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
23515 instruction and possibly with a sign extension.
23516 (output_vec_const_move): Add support for XXSPLTIB. If we are
23517 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
23518 instead of XXLXOR/XXLORC.
23519 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
23521 (rs6000_legitimize_reload_address): Likewise.
23522 (rs6000_output_move_128bit): Use output_vec_const_move to emit
23524 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
23525 combine VSX_M and VSX_M2 into one iterator.
23526 (VSX_M2): Likewise.
23527 (VSINT_84): New iterators for loading constants with XXSPLTIB.
23528 (VSINT_842): Likewise.
23529 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
23530 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
23531 XXSPLTIB instruction.
23532 (xxspltib_<mode>_nosplit): Likewise.
23533 (xxspltib_<mode>_split): New insn to load up constants with
23534 XXSPLTIB and a sign extend instruction.
23535 (vsx_mov<mode>): Replace single move that handled all vector types
23536 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
23537 moves (when -mvsx-timode is in effect) into the main vector
23538 moves. Eliminate separate moves for <VSr> <VSa>, where the
23539 preferred register class (<VSr>) is listed first, and the
23540 secondary register class (<VSa>) is listed second with a '?' to
23541 discourage use. Prefer loading 0/-1 in any VSX register for ISA
23542 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
23543 that if the register was involved in a slow operation, the
23544 clear/set operation does not wait for the slow operation to
23545 finish. Adjust the length attributes for 32-bit mode. Use
23546 rs6000_output_move_128bit and drop the use of the string
23547 instructions for 32-bit movti when -mvsx-timode is in effect. Use
23548 spacing so that the alternatives and attributes don't generate
23549 long lines, and put things in columns, so that it is easier to
23550 match up the operands and attributes with the insn alternatives.
23551 (vsx_mov<mode>_64bit): Likewise.
23552 (vsx_mov<mode>_32bit): Likewise.
23553 (vsx_movti_64bit): Fold movti into normal vector moves.
23554 (vsx_movti_32bit): Likewise.
23555 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
23556 splat instructions.
23557 (vsx_splat_v4si_internal): Likewise.
23558 (vsx_splat_v4sf_internal): Likewise.
23559 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
23560 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
23561 extend vector elements.
23562 (vsx_sign_extend_hi_<mode>): Likewise.
23563 (vsx_sign_extend_si_v2di): Likewise.
23564 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
23566 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
23567 constraints. Add trailing period to wL documentation.
23569 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
23571 PR middle-end/71020
23572 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
23573 * tree-dfa.c (replace_abnormal_ssa_names): New function.
23574 * tree-call-cdce.c: Include tree-dfa.h.
23575 (can_guard_call_p): New function, extracted from...
23576 (can_use_internal_fn): ...here.
23577 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
23579 (shrink_wrap_one_built_in_call): Likewise.
23580 (use_internal_fn): Likewise.
23581 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
23582 and return void. Call replace_abnormal_ssa_names.
23583 (pass_call_cdce::execute): Check can_guard_call_p during the
23584 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
23585 will always change something.
23587 2016-05-18 Martin Jambor <mjambor@suse.cz>
23590 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
23591 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
23593 2016-05-18 Martin Jambor <mjambor@suse.cz>
23596 * ipa-inline.h (condition): New field size.
23597 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
23598 for comaprison and store it into the new condition.
23599 (evaluate_conditions_for_known_args): Use condition size to check
23600 access sizes for all but CHANGED conditions.
23601 (unmodified_parm_1): New parameter size_p, store access size into it.
23602 (unmodified_parm): Likewise.
23603 (unmodified_parm_or_parm_agg_item): Likewise.
23604 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
23605 (set_cond_stmt_execution_predicate): Extract access sizes and store
23606 them to conditions.
23607 (set_switch_stmt_execution_predicate): Likewise.
23608 (will_be_nonconstant_expr_predicate): Likewise.
23609 (will_be_nonconstant_predicate): Likewise.
23610 (inline_read_section): Stream condition size.
23611 (inline_write_summary): Likewise.
23613 2016-05-18 Richard Biener <rguenther@suse.de>
23615 * tree-ssa-loop-im.c (determine_max_movement): Properly add
23616 condition cost to PHI cost instead of total_cost.
23618 2016-05-18 Martin Liska <mliska@suse.cz>
23621 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
23624 2016-05-18 Richard Biener <rguenther@suse.de>
23626 * lto-streamer.h (LTO_major_version): Bump to 6.
23628 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23630 * function.c (make_split_prologue_seq, make_prologue_seq,
23631 make_epilogue_seq): New functions, factored out from...
23632 (thread_prologue_and_epilogue_insns): Here.
23634 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23636 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
23637 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
23638 of before. Add a comment.
23640 2016-05-18 Bin Cheng <bin.cheng@arm.com>
23642 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
23643 expression pointer, not pointer to the pointer.
23645 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23647 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
23648 (avx2_pbroadcast<mode>): Add another alternative with v instead
23649 of x constraints in it, using <pbroadcast_evex_isa> isa.
23650 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
23652 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
23653 constraint x instead of v in second alternative, add avx512bw
23656 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
23657 constraint x instead of v in second alternative, add avx512bw
23660 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
23661 constraint x instead of v in second alternative, add avx512bw
23664 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
23665 avx512bw alternative.
23667 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23669 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
23670 array to 128 chars.
23671 (define_insn "*andnottf3"): Ditto.
23672 (define_insn "*<code><mode>3"/any_logic): Ditto.
23673 (define_insn "*<code>tf3"/any_logic): Ditto.
23674 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
23675 operand to block AVX-512VL insn variant emit when it is not enabled.
23677 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23679 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
23680 constraint fot SF mode.
23682 2016-05-18 Petr Murzin <petr.murzin@intel.com>
23683 Kirill Yukhin <kirill.yukhin@intel.com>
23685 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
23687 (define_insn "rsqrt14<mode>"): Ditto.
23688 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
23689 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
23690 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
23691 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
23692 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
23694 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
23695 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
23696 * config/i386/i386.c (ix86_print_operand): Expand check for size
23697 override codes for Intel syntax.
23699 2016-05-18 Richard Biener <rguenther@suse.de>
23701 PR tree-optimization/71168
23702 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
23703 initialization earlier.
23705 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
23707 * config/aarch64/aarch64-simd.md
23708 (aarch64_reduc_plus_internal<mode>): Rename to...
23709 (reduc_plus_scal): ...This, and remove previous implementation.
23711 2016-05-18 Richard Biener <rguenther@suse.de>
23713 * passes.def: Put late dse and cd_dce in canonical order.
23715 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
23717 * ipa-inline-transform.c (preserve_function_body_p): Look for
23718 first non-thunk clone.
23719 (save_function_body): Save into first non-thunk.
23720 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
23722 (lto_output_node): Inline thunks don't need body in every
23724 * lto-streamer-in.c: Do not fixup thunk clones.
23725 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
23727 * tree-inline.c (copy_bb): Be prepared for target node to be new after
23730 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23732 PR middle-end/63586
23733 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
23734 (reassociate_bb): Call transform_add_to_multiply.
23736 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23738 * config/aarch64/aarch64.c (all_extensions): Removed unused
23741 2016-05-17 Nathan Sidwell <nathan@acm.org>
23743 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
23744 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
23746 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
23748 PR tree-optimization/54579
23749 PR middle-end/55299
23750 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
23752 2016-05-17 Marek Polacek <polacek@redhat.com>
23755 * tree-inline.c (expand_call_inline): Call
23756 maybe_remove_unused_call_args.
23758 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
23760 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
23761 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
23762 * doc/md.texi (fmin@var{m}3): Likewise.
23764 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23766 * match.pd (X & C): New transformation.
23768 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23770 * match.pd (~X & Y): New transformation.
23772 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23774 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
23775 information for new SSA_NAME.
23776 (simplify_conversion_using_ranges): Get range through get_range_info
23777 instead of get_value_range.
23779 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23781 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
23782 Remove inline assembly.
23783 (vmvn_s16): Likewise.
23784 (vmvn_s32): Likewise.
23785 (vmvn_u8): Likewise.
23786 (vmvn_u16): Likewise.
23787 (vmvn_u32): Likewise.
23788 (vmvnq_s8): Likewise.
23789 (vmvnq_s16): Likewise.
23790 (vmvnq_s32): Likewise.
23791 (vmvnq_u8): Likewise.
23792 (vmvnq_u16): Likewise.
23793 (vmvnq_u32): Likewise.
23794 (vmvn_p8): Likewise.
23795 (vmvnq_p16): Likewise.
23797 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23799 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
23801 (vmul_n_s16): Likewise.
23802 (vmul_n_s32): Likewise.
23803 (vmul_n_u16): Likewise.
23804 (vmul_n_u32): Likewise.
23805 (vmulq_n_f32): Likewise.
23806 (vmulq_n_f64): Likewise.
23807 (vmulq_n_s16): Likewise.
23808 (vmulq_n_s32): Likewise.
23809 (vmulq_n_u16): Likewise.
23810 (vmulq_n_u32): Likewise.
23812 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23814 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
23815 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
23817 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23819 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
23820 to *aarch64_fma4_elt_from_dup<mode>.
23821 (*aarch64_fnma4_elt_to_128df): Rename to
23822 *aarch64_fnma4_elt_from_dup<mode>.
23823 * config/aarch64/arm_neon.h (vfma_n_f64): New.
23824 (vfms_n_f32): Likewise.
23825 (vfms_n_f64): Likewise.
23826 (vfmsq_n_f32): Likewise.
23827 (vfmsq_n_f64): Likewise.
23829 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
23831 * wide-int.h: Change fixed_wide_int_storage from class to struct.
23833 2016-05-17 Richard Biener <rguenther@suse.de>
23835 PR tree-optimization/71132
23836 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
23837 Only add control dependences for blocks in the loop.
23838 (build_rdg): Adjust.
23839 (generate_code_for_partition): Return whether loop should
23840 be destroyed and delay that.
23841 (distribute_loop): Likewise.
23842 (pass_loop_distribution::execute): Record loops to be destroyed
23843 and perform delayed destroying of loops.
23845 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23848 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
23850 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23852 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
23854 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
23857 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
23858 insertion point for instructions generated by validize_mem.
23860 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23862 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
23865 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23867 * config/aarch64/aarch64.c
23868 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
23869 rather than a macro.
23871 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23873 * doc/invoke.texi (AArch64 Options): Various updates.
23875 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23877 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
23878 into instrumentation thunks.
23879 * cif-code.def (CIF_CHKP): New.
23881 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
23883 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
23885 2016-05-16 Martin Jambor <mjambor@suse.cz>
23887 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
23888 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
23890 2016-05-16 Marek Polacek <polacek@redhat.com>
23892 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
23895 2016-05-16 Martin Jambor <mjambor@suse.cz>
23898 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
23899 the outlined kernel function.
23901 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
23903 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
23904 (ISA_HAS_DLSA): Ditto.
23906 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23908 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
23910 2016-05-16 Nathan Sidwell <nathan@acm.org>
23912 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
23913 (nvptx_name_replacement): Restore. Add comment.
23914 (write_fn_proto, write_fn_proto_from_insn,
23915 nvptx_output_call_insn): Restore
23916 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
23918 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23920 * config/aarch64/aarch64.md
23921 (add<mode>3_compareC_cconly_imm): Remove use of %w.
23922 (add<mode>3_compareC_imm): Likewise.
23923 (<optab>si3_uxtw): Split into register and immediate variants.
23924 (andsi3_compare0_uxtw): Likewise.
23925 (and<mode>3_compare0): Likewise.
23926 (and<mode>3nr_compare0): Likewise.
23927 (stack_protect_test_<mode>): Don't use %x for memory operands.
23929 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23931 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
23933 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23935 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
23936 Split integer shifts into shift_reg and bfm.
23937 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23938 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
23939 (ror<mode>3_insn): Likewise.
23940 (<optab>si3_insn_uxtw): Likewise.
23941 (<optab><mode>3_insn): Change to rotate_imm.
23942 (extr<mode>5_insn_alt): Likewise.
23943 (extrsi5_insn_uxtw): Likewise.
23944 (extrsi5_insn_uxtw_alt): Likewise.
23946 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23948 * doc/tm.texi: Regenerate.
23949 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
23950 (TARGET_INVALID_RETURN_TYPE): Remove.
23951 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
23952 TARGET_INVALID_RETURN_TYPE.
23953 * target.def (invalid_parameter_type): Remove.
23954 (invalid_return_type): Remove.
23956 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23958 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
23959 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
23961 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
23963 (preserve_function_body_p): No need to preserve function body
23964 * cif-codes.def (CIF_THUNK): Remove.
23965 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
23967 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23969 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
23971 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23973 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
23976 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23978 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
23979 (inline_small_functions): Do not look for function symbol when
23982 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23984 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
23987 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23988 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23989 Jiong Wang <jiong.wang@arm.com>
23991 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
23992 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
23993 Define __ARM_FP16_ARGS when appropriate.
23994 * config/arm/arm.c (arm_invalid_parameter_type): Remove
23996 (arm_invalid_return_type): Likewise.
23997 (TARGET_INVALID_PARAMETER_TYPE): Remove.
23998 (TARGET_INVALID_RETURN_TYPE): Remove.
23999 (aapcs_vfp_sub_candidate): Allow HFmode.
24000 (aapcs_vfp_allocate): Add comment. Support HFmode.
24001 (aapcs_vfp_allocate_return_reg): Likewise.
24002 (struct aapcs_cp_arg_layout): Slightly reword comments for
24003 is_return_candidate and allocate_return_reg.
24004 (output_mov_vfp): Update assert.
24005 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
24007 (arm_invalid_parameter_type): Remove.
24008 (amr_invalid_return_type): Remove.
24009 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
24010 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
24011 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
24013 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
24015 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24016 * config/aarch64/arch64-protos.h
24017 (aarch64_legitimize_reload_address): Remove.
24018 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
24021 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
24023 * configure.ac: Add ACX_NONCANONICAL_HOST.
24024 * configure: Regenerate.
24025 * Makefile.in: Set host_noncanonical.
24027 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
24030 * config/i386/i386.md (*movtf_internal): Before register allocation,
24031 do not allow FP constants for CM_MEDIUM memory model, allow only
24032 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
24033 (*movxf_internal): Ditto.
24034 (*movdf_internal): Ditto.
24035 (*movsf_internal): Ditto.
24037 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24039 PR rtl-optimization/67483
24040 * combine.c (make_compound_operation): Don't call extract_left_shift
24041 with negative shift amounts.
24043 2016-05-13 Jakub Jelinek <jakub@redhat.com>
24046 * fold-const.c (fold_checksum_tree): Allow modification
24047 of TYPE_ALIAS_SET during folding.
24049 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
24050 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
24051 (ix86_split_to_parts): Likewise. Fix up formatting.
24053 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
24055 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
24056 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
24059 2016-05-13 Nathan Sidwell <nathan@acm.org>
24061 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
24062 (nvptx_name_replacement): Delete.
24063 (write_fn_proto, write_fn_proto_from_insn,
24064 nvptx_output_call_insn): Remove nvptx_name_replacement call.
24065 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
24066 * langhooks.c (add_builtin_funcction_common): Call
24067 targetm.mangle_decl_assembler_name.
24069 * config/nvptx/nvptx.c (write_fn_proto): Handle
24070 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
24072 2016-05-13 Martin Liska <mliska@suse.cz>
24074 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
24075 and PRIu64 in printf format.
24077 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24079 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
24082 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24084 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
24085 Change --param max-completely-peeled-times to
24086 --param max-completely-peel-times in dump file printing.
24088 2016-05-13 Richard Biener <rguenther@suse.de>
24090 PR tree-optimization/42587
24091 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
24092 (find_bswap_or_nop_1): Likewise.
24093 (bswap_replace): Likewise.
24095 2016-05-13 Martin Liska <mliska@suse.cz>
24097 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
24098 Initialize a variable with default value.
24100 2016-05-13 Martin Liska <mliska@suse.cz>
24102 * doc/invoke.texi: Enhance explanation of error recovery
24105 2016-05-13 Martin Liska <mliska@suse.cz>
24107 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
24108 (struct cost_pair): Change inv_expr_id (int) to inv_expr
24109 (iv_inv_expr_ent *).
24110 (struct iv_inv_expr_ent): Comment struct fields.
24111 (sort_iv_inv_expr_ent): New function.
24112 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
24113 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
24114 a hash_map between iv_inv_expr_ent and number of usages.
24115 (niter_for_exit): Fix coding style.
24116 (tree_ssa_iv_optimize_init): Use renamed variable.
24117 (determine_base_object): Fix coding style.
24118 (alloc_iv): Likewise.
24119 (find_interesting_uses_outside): Likewise.
24120 (add_candidate_1): Likewise.
24121 (add_standard_iv_candidates): Likewise.
24122 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
24123 (prepare_decl_rtl): Fix coding style.
24124 (get_address_cost): Likewise.
24125 (get_shiftadd_cost): Likewise.
24126 (force_expr_to_var_cost): Likewise.
24127 (compare_aff_trees): Likewise.
24128 (get_expr_id): Restructure the function.
24129 (get_loop_invariant_expr_id): Renamed to
24130 get_loop_invariant_expr.
24131 (get_computation_cost_at): Replace usage of inv_expr_id with
24133 (get_computation_cost): Likewise.
24134 (determine_group_iv_cost_generic): Likewise.
24135 (determine_group_iv_cost_address): Likewise.
24136 (iv_period): Fix coding style.
24137 (iv_elimination_compare_lt): Likewise.
24138 (may_eliminate_iv): Likewise.
24139 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
24141 (determine_group_iv_costs): Dump invariant expressions.
24142 (iv_ca_recount_cost): Use the newly added hash_map.
24143 (iv_ca_set_remove_invariants): Fix coding style.
24144 (iv_ca_set_add_invariants): Fix coding style.
24145 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
24147 (iv_ca_set_cp): Likewise.
24148 (iv_ca_new): Initialize the newly added hash_map and remove
24149 initialization of fields.
24150 (iv_ca_free): Delete the hash_map.
24151 (iv_ca_dump): Dump invariant expressions.
24152 (iv_ca_extend): Fix coding style.
24153 (try_add_cand_for): Likewise.
24154 (create_new_ivs): Dump information about # of avg iterations and
24155 # of used invariant expressions.
24156 (rewrite_use_compare): Fix coding style.
24157 (free_loop_data): Set default value for max_inv_expr_id.
24159 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24161 * cse.c (rest_of_handle_cse): Use cleanup_cfg
24162 returned value cse_cfg_altered computation.
24163 (rest_of_handle_cse2): Likewise.
24164 (rest_of_handle_cse_after_global_opts): Likewise.
24166 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24169 * config/arm/arm.c (arm32_output_mi_thunk): New.
24170 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
24171 to split Thumb1 vs TARGET_32BIT functionality.
24172 (arm_thumb1_mi_thunk): New.
24174 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24176 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
24179 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24182 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
24184 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
24186 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
24187 (expand_builtin_trap): Emit a regular call.
24188 (set_builtin_user_assembler_name): Remove obsolete cases.
24189 * dse.c (scan_insn): Adjust.
24190 * except.c: Include calls.h.
24191 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
24192 emit a regular call to setjmp.
24193 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
24194 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
24195 (emit_block_move_via_libcall): Delete.
24196 (block_move_fn): Delete.
24197 (init_block_move_fn): Likewise.
24198 (emit_block_move_libcall_fn): Likewise.
24199 (emit_block_op_via_libcall): New function.
24200 (set_storage_via_libcall): Tidy up and use memset builtin.
24201 (block_clear_fn): Delete.
24202 (init_block_clear_fn): Likewise.
24203 (clear_storage_libcall_fn): Likewise.
24204 (expand_assignment): Call emit_block_move_via_libcall.
24205 Do not include gt-expr.h.
24206 * expr.h (emit_block_op_via_libcall): Declare.
24207 (emit_block_copy_via_libcall): New inline function.
24208 (emit_block_move_via_libcall): Likewise.
24209 (emit_block_comp_via_libcall): Likewise.
24210 (block_clear_fn): Delete.
24211 (init_block_move_fn): Likewise.
24212 (init_block_clear_fn): Likewise.
24213 (emit_block_move_via_libcall): Likewise.
24214 (set_storage_via_libcall): Add default parameter value.
24215 * libfuncs.h (enum libfunc_index): Remove obsolete values.
24216 (abort_libfunc): Delete.
24217 (memcpy_libfunc): Likewise.
24218 (memmove_libfunc): Likewise.
24219 (memcmp_libfunc): Likewise.
24220 (memset_libfunc): Likewise.
24221 (setbits_libfunc): Likewise.
24222 (setjmp_libfunc): Likewise.
24223 (longjmp_libfunc): Likewise.
24224 (profile_function_entry_libfunc): Likewise.
24225 (profile_function_exit_libfunc): Likewise.
24226 (gcov_flush_libfunc): Likewise.
24227 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
24228 and DECL_VISIBILITY on the declaration.
24229 (init_optabs): Do not initialize obsolete libfuncs.
24230 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
24231 * tree-core.h (ECF_RET1): Define.
24232 (ECF_TM_PURE): Adjust.
24233 (ECF_TM_BUILTIN): Likewise.
24234 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
24235 (build_common_builtin_nodes): Initialize abort builtin.
24236 Add ECF_RET1 on memcpy, memmove and memset builtins.
24237 Pass final flags for alloca and alloca_with_align builtins.
24238 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
24240 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
24241 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
24242 set_storage_via_libcall and call emit_block_copy_via_libcall.
24244 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
24246 * config/i386/i386.md (*call_got_x32): Change operand 0 to
24247 DImode before it is passed to ix86_output_call_operand.
24248 (*call_value_got_x32): Ditto for operand 1.
24250 2016-05-12 Jiong Wang <jiong.wang@arm.com>
24252 PR rtl-optimization/70904
24253 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
24254 reload for wide mode.
24256 2016-05-12 Marek Polacek <polacek@redhat.com>
24259 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
24260 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
24261 * langhooks.h (incomplete_type_error): Likewise.
24262 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
24263 parameter, pass it down to incomplete_type_error.
24264 * tree.h (size_in_bytes): New inline overload.
24265 (size_in_bytes_loc): Renamed from size_in_bytes.
24267 2016-05-12 Richard Biener <rguenther@suse.de>
24269 PR tree-optimization/71059
24270 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
24271 nary before looking up or entering the expression into the VN
24273 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
24274 Make sure to re-use NARYs without result as inserted by
24277 2016-05-12 Richard Biener <rguenther@suse.de>
24279 PR tree-optimization/71062
24280 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
24282 * tree-ssa-structalias.c (set_uids_in_ptset): Set
24283 vars_contains_restrict if the var is a restrict tag.
24284 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
24285 do not disambiguate pointers against it.
24286 (dump_points_to_solution): Re-structure and adjust for new
24287 vars_contains_restrict flag.
24288 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
24290 2016-05-12 Martin Liska <mliska@suse.cz>
24292 * doc/invoke.texi: Explain connection between
24293 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
24295 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
24297 PR tree-optimization/71006
24298 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
24299 consider COND_EXPR as a mask producer.
24301 2016-05-12 Marek Polacek <polacek@redhat.com>
24304 * opts.c (common_handle_option): Detect missing argument for --help^.
24306 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24309 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
24310 when popping the PC and within an interrupt handler routine.
24311 Add missing tab to output of "ldmfd".
24312 (output_return_instruction): Output LDMFD with SP update rather
24313 than POP when returning from interrupt handler.
24315 2016-05-12 Jakub Jelinek <jakub@redhat.com>
24317 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
24318 TARGET_64BIT && TARGET_AVX512DQ.
24319 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
24320 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
24321 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
24322 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
24323 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
24324 (*vec_extractv4si_zext): Add avx512dq alternative.
24325 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
24326 use v instead of x constraint in other alternatives where possible.
24328 * config/i386/sse.md (sse2_loadld): Use v instead of x
24329 constraint in alternatives 0,1,4.
24331 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
24332 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
24333 v constraints instead of x and <pinsr_evex_isa> isa attribute.
24336 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
24337 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
24338 is not emitted unless TARGET_AVX512BW.
24339 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
24340 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
24341 for the result operand.
24343 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
24344 constraint instead of x in avx alternatives. Use maybe_evex instead
24347 * config/i386/constraints.md (Yv): New constraint.
24348 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
24349 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
24350 * config/i386/i386.md (avx512fvecmode): New mode attr.
24351 (*pushtf): Use v constraint instead of x.
24352 (*movtf_internal): Likewise. For TARGET_AVX512VL and
24353 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
24354 (*absneg<mode>2): Use Yv constraint instead of x constraint.
24355 (*absnegtf2_sse): Likewise.
24356 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
24357 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
24358 avx512f alternatives.
24359 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
24361 2016-05-12 Richard Biener <rguenther@suse.de>
24363 PR tree-optimization/71060
24364 * tree-data-ref.c (initialize_data_dependence_relation): Do not
24365 require exact match of DR_BASE_OBJECT but only matching address and
24368 2016-05-12 Richard Biener <rguenther@suse.de>
24370 PR tree-optimization/70986
24371 * cfganal.c: Include cfgloop.h.
24372 (dfs_find_deadend): Prefer to take edges exiting loops.
24374 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24376 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
24377 compile and run time.
24379 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
24382 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
24384 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
24386 * config/i386/i386.c (legitimize_pic_address): Use
24387 copy_to_suggested_reg instead of gen_movsi.
24389 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24391 * config/rs6000/predicates.md (quad_memory_operand): Move most of
24392 the code into quad_address_p and call it to share code with
24393 vsx_quad_dform_memory_operand.
24394 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
24396 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
24397 bit instead of being a separate word. Split -mpower9-dform into
24398 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24399 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
24400 for the register class supporting 128-bit quad word memory offsets.
24401 (mode_supports_vsx_dform_quad): Helper function to return if the
24402 register class uses quad word memory offsets.
24403 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
24404 (rs6000_debug_reg_global): Always print if we are using LRA or not.
24405 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
24406 instructions are enabled, set up the appropriate addr_masks for
24408 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
24409 -mpower9-dform-scalar, instead of -mpower9-dform.
24410 (rs6000_option_override_internal): Split -mpower9-dform into two
24411 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
24412 -mpower9-dform switch sets or clears both. If we are not using
24413 the LRA register allocator, do not enable -mpower9-dform-vector by
24414 default. If we are using LRA, enable -mpower9-dform-vector and
24415 -mvsx-timode if it is appropriate. Issue a warning if either
24416 -mpower9-dform-vector or -mvsx-timode are explicitly used without
24418 (quad_address_offset_p): New helper function to return if the
24419 offset is legal for quad word memory instructions.
24420 (quad_address_p): New function to determin if GPR or vector
24421 register quad word memory addresses are legal.
24422 (mem_operand_gpr): Validate quad word address offsets.
24423 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
24424 d-form (register + offset) instructions.
24425 (offsettable_ok_by_alignment): Likewise.
24426 (rs6000_legitimate_offset_address_p): Likewise.
24427 (legitimate_lo_sum_address_p): Likewise.
24428 (rs6000_legitimize_address): Likewise.
24429 (rs6000_legitimize_reload_address): Add more debug statements for
24431 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
24432 d-form instructions.
24433 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
24434 d-form instructions. Distinguish different cases in debug
24435 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
24436 d-form instructions.
24437 (rs6000_preferred_reload_class): Likewise.
24438 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
24439 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
24440 of the ISA 2.06 indexed memory instructions.
24441 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
24442 use them to save/restore the saved vector registers instead of
24443 using Altivec instructions.
24444 (rs6000_emit_epilogue): Likewise.
24445 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
24446 (rs6000_opt_masks): Split -mpower9-dform into
24447 -mpower9-dform-scalar and -mpower9-dform-vector.
24448 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
24450 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
24451 ISA 3.0 vector indexed memory instructions, and fold the code into
24452 the normal mov<mode> patterns.
24453 (p9_vecstore_<mode>): Likewise.
24454 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
24456 (vsx_movti_64bit): Likewise.
24457 (vsx_movti_32bit): Likewise.
24458 * config/rs6000/constraints.md (wO constraint): New constraint for
24459 ISA 3.0 vector d-form support.
24460 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
24461 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
24462 include -mpower9-dform-vector until we switch over to LRA.
24463 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
24464 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24465 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
24466 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
24467 for -mpower9-dform and -mlra.
24468 * doc/md.texi (wO constraint): Document wO constraint.
24470 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
24472 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
24473 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
24474 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
24475 Move handling of non-insn arguments inline into the sole user:
24476 (output_trans_func): ...here.
24477 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
24478 in emitted function prototype.
24479 (output_internal_insn_latency_func): Ditto. Simplify.
24480 (output_internal_maximal_insn_latency_func): Ditto. Delete
24481 always-unused argument.
24482 (output_insn_latency_func): Ditto.
24483 (output_maximal_insn_latency_func): Ditto.
24485 2016-05-11 Richard Biener <rguenther@suse.de>
24487 PR tree-optimization/71055
24488 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
24489 sth with precision not equal to access size verify we don't chop
24492 2016-05-11 Richard Biener <rguenther@suse.de>
24495 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
24496 (dwarf2out_finish): Move retry_incomplete_types call ...
24497 (dwarf2out_early_finish): ... here.
24499 2016-05-11 Richard Biener <rguenther@suse.de>
24501 PR middle-end/71002
24502 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
24503 if the langhook insists on it.
24504 * fold-const.c (make_bit_field_ref): Add arg for the original
24505 reference and preserve its alias-set.
24506 (decode_field_reference): Take exp by reference and adjust it
24507 to the original memory reference.
24508 (optimize_bit_field_compare): Adjust callers.
24509 (fold_truth_andor_1): Likewise.
24510 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
24512 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
24514 PR middle-end/70807
24515 * cfgrtl.h (delete_insn_and_edges): Now return bool.
24516 * cfgrtl.c (delete_insn_and_edges): Likewise.
24517 * config/i386/i386.c (convert_scalars_to_vector): Remove
24519 * cse.c (cse_insn): Compute cse_cfg_altered.
24520 (delete_trivially_dead_insns): Likewise.
24521 (cse_cc_succs): Likewise.
24522 (rest_of_handle_cse): Free dominance info if required.
24523 (rest_of_handle_cse2): Likewise.
24524 (rest_of_handle_cse_after_global_opts): Likewise.
24526 2016-05-11 Alan Modra <amodra@gmail.com>
24528 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
24529 abi_v4_pass_in_fpr): New functions.
24530 (rs6000_function_arg_boundary): Exclude complex IBM long double
24531 from 64-bit alignment when ABI_V4.
24532 (rs6000_function_arg, rs6000_function_arg_advance_1,
24533 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
24535 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
24537 PR rtl-optimization/71028
24538 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
24539 jump with just a return in the fallthrough block if the branch
24540 block contains just a return as well.
24542 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
24544 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
24545 * match.pd ((X & Y) ^ Y): ... this.
24546 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
24547 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
24549 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24551 * read-md.c (require_char_ws): New function.
24552 (read_string): Simplify using require_char_ws.
24553 (handle_constants): Likewise.
24554 (handle_enum): Likewise.
24555 (handle_file): Likewise.
24556 * read-md.h (require_char_ws): New declaration.
24557 * read-rtl.c (read_conditions): Simplify using require_char_ws.
24558 (read_mapping): Likewise.
24559 (read_rtx_code): Likewise.
24560 (read_nested_rtx): Likewise.
24562 2016-05-10 James Norris <jnorris@codesourcery.com>
24564 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
24565 if offloading is enabled and -fopenacc or -fopenmp is specified.
24566 (CRTOFFLOADEND): Likewise.
24567 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
24568 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
24570 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
24572 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
24573 gotoff_operand code paths. Use copy_to_suggested_regs and
24574 expand_simple_binop where appropriate. Cleanup.
24576 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24579 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
24581 (dimode_scalar_chain::vector_const_cost): New.
24582 (dimode_scalar_chain::compute_convert_gain): Handle constants.
24583 (dimode_scalar_chain::convert_op): Likewise.
24584 (dimode_scalar_chain::convert_insn): Likewise.
24586 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24588 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
24589 unary operation, not a binary one.
24591 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24593 PR middle-end/70877
24594 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
24595 calls with type casted fndecl.
24597 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24599 PR tree-optimization/70786
24600 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
24601 * calls.c (initialize_argument_information): Bind bounds
24602 with corresponding args passed by reference.
24604 2016-05-10 Jakub Jelinek <jakub@redhat.com>
24607 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
24608 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
24609 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
24612 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24615 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
24616 code for a zero scale factor.
24617 (vsx_xvcvdpuxds_scale): Likewise.
24619 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24621 * diagnostic-show-locus.c (layout::layout): Call show_ruler
24622 if show_ruler_p was set on the context.
24623 (layout::show_ruler): New method.
24624 * diagnostic.h (struct diagnostic_context): Add field
24627 2016-05-10 Richard Biener <rguenther@suse.de>
24629 PR tree-optimization/71039
24630 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
24631 (chk_uses): New function.
24632 (propagate_with_phi): Verify we can safely replicate the lhs of an
24633 aggregate assignment on all incoming edges.
24635 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
24637 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
24639 (rx_atomic_sequence): New class.
24640 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
24641 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
24643 (rx_atomic_sequence::rx_atomic_sequence,
24644 rx_atomic_sequence::~rx_atomic_sequence): New functions.
24645 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
24646 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
24647 CTRLREG_INTB): New constants.
24648 (FETCHOP): New code iterator.
24649 (fethcop_name, fetchop_name2): New iterator code attributes.
24650 (QIHI): New mode iterator.
24651 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
24652 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
24653 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
24655 2016-05-10 Martin Liska <mliska@suse.cz>
24657 * tree-inline.c (remap_dependence_clique): Do not remap
24658 debugging statements.
24660 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24662 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
24663 ("*fixuns_truncdfdi2_z13")
24664 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
24665 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
24666 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
24668 2016-05-10 Richard Biener <rguenther@suse.de>
24670 PR tree-optimization/70497
24671 PR tree-optimization/28367
24672 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
24674 (visit_reference_op_load): ... here.
24675 (vn_reference_lookup_3): Use it to handle subreg-like accesses
24676 with simplified BIT_FIELD_REFs.
24677 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
24678 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
24681 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24683 * dwarf2out.c (add_abstract_origin_attribute): Adjust
24684 documentation comment. For BLOCK nodes, add a
24685 DW_AT_abstract_origin attribute that points to the DIE generated
24686 for the origin BLOCK.
24687 (gen_lexical_block_die): Call add_abstract_origin_attribute for
24688 blocks from inlined functions.
24690 2016-05-10 Alan Modra <amodra@gmail.com>
24693 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
24694 regrename modifying insns saving lr before __morestack call.
24695 * config/rs6000/rs6000.md (split_stack_return): Similarly for
24696 insns restoring lr after __morestack call.
24698 2016-05-09 Jakub Jelinek <jakub@redhat.com>
24700 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
24701 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
24703 * config/i386/sse.md (vec_interleave_high<mode>,
24704 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
24705 <avx512>_vpermt2var<mode>3_maskz): Likewise.
24707 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
24709 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
24710 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
24711 parallel reassociation for power8 and forward.
24713 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
24715 * config/i386/i386.md (absneg splitters with general regs): Use
24716 general_reg_operand predicate.
24717 (btsq peephole2): Use x86_64_immediate_operand to check if new
24718 value is suitable for immediate operand. Generate emitted insn
24719 using RTL expressions.
24720 (btcq peephole2): Ditto.
24721 (btrq peephole2): Ditto. Generate correct immediate operand
24724 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24726 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
24729 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24731 * tree-affine.c (wide_int_constant_multiple_p): Add missing
24732 pointer dereference.
24734 2016-05-09 Richard Biener <rguenther@suse.de>
24736 PR tree-optimization/70985
24737 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
24738 op0 isn't a gimple register.
24740 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
24742 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
24743 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
24744 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
24745 (i6400_fpu_mult): New cpu units.
24746 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
24747 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
24748 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
24749 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
24750 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
24751 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
24752 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
24753 (i6400_msa_long_float4, i6400_msa_long_float5)
24754 (i6400_msa_long_float8, i6400_msa_fdiv_df)
24755 (i6400_msa_fdiv_sf): New reservations.
24756 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
24757 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
24758 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
24759 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
24760 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
24761 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
24762 (msa_short_cmp, msa_short_float2, msa_short_logic3)
24763 (msa_short_store4, msa_long_load, msa_short_store)
24764 (msa_long_logic, msa_long_float2, msa_long_float4)
24765 (msa_long_float5, msa_long_float8, msa_long_mult)
24766 (msa_long_fdiv, msa_long_div): New reservations.
24768 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
24769 Sameera Deshpande <sameera.deshpande@imgtec.com>
24770 Matthew Fortune <matthew.fortune@imgtec.com>
24771 Graham Stott <graham.stott@imgtec.com>
24772 Chao-ying Fu <chao-ying.fu@imgtec.com>
24774 * config.gcc: Add MSA header file for mips*-*-* target.
24775 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
24776 (Ubv8i, Urv8): New constraints.
24777 * config/mips/mips-ftypes.def: Add function types for MSA
24779 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
24780 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
24781 * config/mips/mips-msa.md: New file.
24782 * config/mips/mips-protos.h
24783 (mips_split_128bit_const_insns): New prototype.
24784 (mips_msa_idiv_insns): Likewise.
24785 (mips_split_128bit_move): Likewise.
24786 (mips_split_128bit_move_p): Likewise.
24787 (mips_split_msa_copy_d): Likewise.
24788 (mips_split_msa_insert_d): Likewise.
24789 (mips_split_msa_fill_d): Likewise.
24790 (mips_expand_msa_branch): Likewise.
24791 (mips_const_vector_same_val_p): Likewise.
24792 (mips_const_vector_same_bytes_p): Likewise.
24793 (mips_const_vector_same_int_p): Likewise.
24794 (mips_const_vector_shuffle_set_p): Likewise.
24795 (mips_const_vector_bitimm_set_p): Likewise.
24796 (mips_const_vector_bitimm_clr_p): Likewise.
24797 (mips_msa_vec_parallel_const_half): Likewise.
24798 (mips_msa_output_division): Likewise.
24799 (mips_ldst_scaled_shift): Likewise.
24800 (mips_expand_vec_cond_expr): Likewise.
24801 * config/mips/mips.c (enum mips_builtin_type): Add
24802 MIPS_BUILTIN_MSA_TEST_BRANCH.
24803 (mips_gen_const_int_vector_shuffle): New prototype.
24804 (mips_const_vector_bitimm_set_p): New function.
24805 (mips_const_vector_bitimm_clr_p): Likewise.
24806 (mips_const_vector_same_val_p): Likewise.
24807 (mips_const_vector_same_bytes_p): Likewise.
24808 (mips_const_vector_same_int_p): Likewise.
24809 (mips_const_vector_shuffle_set_p): Likewise.
24810 (mips_symbol_insns): Forbid loading symbols via immediate for
24812 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
24814 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
24816 (mips_lx_address_p): Add support load indexed address for MSA.
24817 (mips_address_insns): Add calculation of instructions needed for
24818 stores and loads for MSA.
24819 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
24820 CONST_VECTOR for MSA and let it fall through.
24821 (mips_ldst_scaled_shift): New function.
24822 (mips_subword_at_byte): Likewise.
24823 (mips_msa_idiv_insns): Likewise.
24824 (mips_legitimize_move): Validate MSA moves.
24825 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
24826 calculation of costs for MSA division.
24827 (mips_split_move_p): Check if MSA moves need splitting.
24828 (mips_split_move): Split MSA moves if necessary.
24829 (mips_split_128bit_move_p): New function.
24830 (mips_split_128bit_move): Likewise.
24831 (mips_split_msa_copy_d): Likewise.
24832 (mips_split_msa_insert_d): Likewise.
24833 (mips_split_msa_fill_d): Likewise.
24834 (mips_output_move): Handle MSA moves.
24835 (mips_expand_msa_branch): New function.
24836 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
24837 Reinstate 'y' modifier.
24838 (mips_file_start): Add MSA .gnu_attribute.
24839 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
24841 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
24842 (mips_class_max_nregs): Add register size for MSA supported mode.
24843 (mips_cannot_change_mode_class): Allow conversion between MSA
24844 vector modes and TImode.
24845 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
24847 (mips_secondary_reload_class): Force MSA loads/stores via memory.
24848 (mips_preferred_simd_mode): Add preffered modes for MSA.
24849 (mips_vector_mode_supported_p): Add MSA supported modes.
24850 (mips_autovectorize_vector_sizes): New function.
24851 (mips_msa_output_division): Likewise.
24852 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
24853 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
24854 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
24855 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
24856 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
24857 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
24858 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
24859 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
24860 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
24861 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
24862 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
24863 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
24864 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
24865 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
24866 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
24867 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
24868 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
24869 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
24870 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
24871 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
24872 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
24873 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
24874 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
24875 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
24876 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
24877 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
24878 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
24879 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
24880 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
24881 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
24882 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
24883 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
24884 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
24885 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
24886 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
24887 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
24888 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
24889 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
24890 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
24891 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
24892 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
24893 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
24894 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
24895 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
24896 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24897 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24898 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24899 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24900 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24901 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24902 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24903 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24904 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
24905 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
24906 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
24907 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
24908 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
24909 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
24910 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
24911 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
24912 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
24913 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
24914 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
24915 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
24916 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
24917 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
24918 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
24919 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
24920 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
24921 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
24922 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
24923 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
24924 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
24925 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
24926 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
24927 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
24928 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
24929 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
24930 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
24931 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
24932 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
24933 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
24934 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
24935 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
24936 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
24937 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
24938 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
24939 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
24940 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
24941 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
24942 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
24943 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
24944 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
24945 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
24946 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
24947 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
24948 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
24949 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
24950 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
24951 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
24952 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
24953 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
24954 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
24955 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
24956 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
24957 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
24958 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
24959 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
24960 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
24961 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
24962 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
24963 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
24964 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
24965 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
24966 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
24967 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
24968 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
24969 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
24970 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
24971 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
24972 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
24973 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
24974 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
24975 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
24976 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
24977 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
24978 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
24979 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
24980 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
24981 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
24982 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
24983 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
24984 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
24985 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
24986 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
24987 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
24988 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
24989 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
24990 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
24991 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
24992 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
24993 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
24994 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
24995 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
24996 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
24997 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
24998 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
24999 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
25000 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
25001 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
25002 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
25004 (mips_get_builtin_decl_index): New array.
25005 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
25006 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
25007 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
25008 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
25009 (mips_init_builtins): Initialize mips_get_builtin_decl_index
25011 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
25013 (mips_expand_builtin_insn): Prepare operands for
25014 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
25015 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
25016 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
25017 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
25018 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
25019 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
25020 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
25021 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
25022 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
25023 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
25024 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
25025 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
25026 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
25027 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
25028 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
25029 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
25030 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
25031 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
25032 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
25033 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
25034 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
25035 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
25036 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
25037 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
25038 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
25039 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
25040 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
25041 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
25042 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
25043 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
25044 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
25045 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
25046 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
25047 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
25048 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
25049 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
25050 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
25051 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
25052 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
25053 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
25054 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
25055 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
25056 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
25057 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
25058 These are set implicitly and an error is reported if overridden.
25059 (mips_expand_builtin_msa_test_branch): New function.
25060 (mips_expand_msa_shuffle): Likewise.
25061 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
25062 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
25063 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
25064 (mips_expand_vec_unpack): Add support for MSA.
25065 (mips_expand_vector_init): Likewise.
25066 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
25067 instead of const0_rtx.
25068 (mips_msa_vec_parallel_const_half): New function.
25069 (mips_gen_const_int_vector): Likewise.
25070 (mips_gen_const_int_vector_shuffle): Likewise.
25071 (mips_expand_msa_cmp): Likewise.
25072 (mips_expand_vec_cond_expr): Likewise.
25073 * config/mips/mips.h
25074 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
25075 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
25077 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
25078 (ISA_HAS_MSA): New macro.
25079 (UNITS_PER_MSA_REG): Likewise.
25080 (BITS_PER_MSA_REG): Likewise.
25081 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
25082 (MSA_REG_FIRST): New macro.
25083 (MSA_REG_LAST): Likewise.
25084 (MSA_REG_NUM): Likewise.
25085 (MSA_REG_P): Likewise.
25086 (MSA_REG_RTX_P): Likewise.
25087 (MSA_SUPPORTED_MODE_P): Likewise.
25088 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
25089 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
25090 * config/mips/mips.md: Include mips-msa.md.
25091 (alu_type): Add simd_add.
25092 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
25093 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
25094 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
25095 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
25096 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
25097 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
25098 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
25099 simd_move, simd_load, simd_store. Choose "multi" for moves
25101 (qword_mode): New attribute.
25102 (insn_count): Add instruction count for quad moves.
25103 Increase the count for MIPS SIMD division.
25104 (UNITMODE): Add UNITMODEs for vector types.
25105 (addsub): New code iterator.
25106 * config/mips/mips.opt (mmsa): New option.
25107 * config/mips/msa.h: New file.
25108 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
25110 * config/mips/mti-linux.h: Likewise.
25111 * config/mips/predicates.md
25112 (const_msa_branch_operand): New constraint.
25113 (const_uimm3_operand): Likewise.
25114 (const_uimm4_operand): Likewise.
25115 (const_uimm5_operand): Likewise.
25116 (const_uimm8_operand): Likewise.
25117 (const_imm5_operand): Likewise.
25118 (aq10b_operand): Likewise.
25119 (aq10h_operand): Likewise.
25120 (aq10w_operand): Likewise.
25121 (aq10d_operand): Likewise.
25122 (const_m1_operand): Likewise.
25123 (reg_or_m1_operand): Likewise.
25124 (const_exp_2_operand): Likewise.
25125 (const_exp_4_operand): Likewise.
25126 (const_exp_8_operand): Likewise.
25127 (const_exp_16_operand): Likewise.
25128 (const_vector_same_val_operand): Likewise.
25129 (const_vector_same_simm5_operand): Likewise.
25130 (const_vector_same_uimm5_operand): Likewise.
25131 (const_vector_same_uimm6_operand): Likewise.
25132 (const_vector_same_uimm8_operand): Likewise.
25133 (par_const_vector_shf_set_operand): Likewise.
25134 (reg_or_vector_same_val_operand): Likewise.
25135 (reg_or_vector_same_simm5_operand): Likewise.
25136 (reg_or_vector_same_uimm6_operand): Likewise.
25137 * doc/extend.texi (MIPS SIMD Architecture Functions): New
25139 * doc/invoke.texi (-mmsa): Document new option.
25141 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25143 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
25144 * configure: Regenerate.
25145 * config.in: Regenerate.
25146 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
25147 on -fvtable-verify.
25148 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
25149 (ENDFILE_VTV_SPEC): Define.
25151 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
25153 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
25154 registers in all interrupt handlers if necessary.
25155 (rl78_option_override): Add warning.
25156 (MUST_SAVE_MDUC_REGISTERS): New macro.
25157 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
25158 * config/rl78/rl78.c (check_mduc_usage): New function.
25159 (mduc_regs): New structure to hold MDUC register data.
25160 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
25161 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
25162 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
25163 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
25164 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
25165 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
25167 2016-05-09 Bin Cheng <bin.cheng@arm.com>
25169 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
25170 (tree-ssa-loop-niter.h): Ditto.
25171 (idx_within_array_bound, ref_within_array_bound): New functions.
25172 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
25173 Factor out check on writable base object to ...
25174 (base_object_writable): ... here.
25176 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25178 * config/arm/arm.md (probe_stack): Add modes to set source
25181 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
25183 * regrename.c (base_reg_class_for_rename): New static function.
25184 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
25186 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
25188 * cgraph.c (thunk_adjust): Export.
25189 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
25190 * cgraphunit.c (thunk_adjust): Export.
25191 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
25193 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
25195 * tree-inline.c (expand_call_inline): Expand thunks inline.
25197 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
25200 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
25201 (*sse2_vd_cvtss2sd): Ditto.
25202 * config/i386/i386.md
25203 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
25204 Generate *sse2_vd_cvtsd2ss pattern.
25205 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
25206 Generate *sse2_vd_cvtss2sd pattern.
25208 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25210 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
25211 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
25214 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25216 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
25217 * config/sh/sh.c: Define and declare variables on first use throughout
25219 (current_function_interrupt): Change to bool type.
25220 (frame_insn): Rename to emit_frame_insn and update users.
25221 (push_regs): Use bool for 'interrupt_handler' argument.
25222 (save_schedule_s): Remove.
25223 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
25224 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
25225 targetm.asm_out.unaligned_op.di.
25226 (gen_far_branch): Remove redundant forward declaration.
25227 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
25228 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
25229 (sh_set_return_address, sh_function_ok_for_sibcall,
25230 scavenge_reg): Update comments.
25231 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
25232 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
25233 (sh_attr_renesas_p): Remove unnecessary parentheses.
25234 (branch_dest): Simplify.
25235 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
25236 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
25237 (CUMULATIVE_ARGS): Change macro to typedef.
25238 (current_function_interrupt): Change to bool type.
25239 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
25240 Surround with __cplusplus ifdef.
25241 (sh_compare_op0, sh_compare_op1): Remove.
25242 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
25244 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
25246 * config/arm/arm.md (arch): Add neon.
25247 (arch_enabled): Return yes for arch neon when TARGET_NEON.
25248 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
25249 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
25250 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
25251 attributes for alt renumbering. Mark alt 3 as non-predicable.
25252 (thumb2_movdf_vfp): Likewise.
25254 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
25256 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
25257 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
25258 (*andqi_1): Add preferred_for_speed attribute to disparage
25259 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
25260 (*<code>qi_1): Ditto.
25261 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
25262 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
25263 (*ashlqi3_1): Ditto.
25264 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
25265 Add preferred_for_size attribute to disparage alternative 0 and
25266 preferred_for_speed attribute to disparage alternative 1 for
25267 TARGET_PARTIAL_REG_STALL targets.
25269 2016-05-07 Tom de Vries <tom@codesourcery.com>
25271 PR tree-optimization/70956
25272 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
25275 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25277 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
25278 * config/sh/sh.c (sh_cbranch_distance): Implement it.
25279 * config/sh/sh.md (branch_zero): Remove define_attr.
25280 (define_delay): Disable delay slot if branch distance is one insn.
25282 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25284 * config/i386/i386.md (LEAMODE): New mode attribute.
25285 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
25286 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
25287 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
25288 operand 2 predicate.
25289 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
25290 (*lea<mode>_general_3): Ditto.
25291 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
25293 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25295 * genmddump.c (main): Convert argv from char ** to const char **.
25297 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25299 * coretypes.h (OVERRIDE): New macro.
25300 (FINAL): New macro.
25302 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
25304 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
25305 allow coalescing if the types are compatible.
25307 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25309 * pass_manager.h (pass_manager::register_pass_name): New method.
25310 (pass_manager::get_pass_by_name): New method.
25311 (pass_manager::create_pass_tab): New method.
25312 (pass_manager::m_name_to_pass_map): New field.
25313 * passes.c (name_to_pass_map): Delete global in favor of field
25314 "m_name_to_pass_map" of pass_manager.
25315 (register_pass_name): Rename from a function to...
25316 (pass_manager::register_pass_name): ...this method, updating
25317 for renaming of global "name_to_pass_map" to field
25318 "m_name_to_pass_map".
25319 (create_pass_tab): Rename from a function to...
25320 (pass_manager::create_pass_tab): ...this method, updating
25321 for renaming of global "name_to_pass_map" to field.
25322 (get_pass_by_name): Rename from a function to...
25323 (pass_manager::get_pass_by_name): ...this method.
25324 (enable_disable_pass): Convert use of get_pass_by_name to
25325 a method call, locating the pass_manager singleton.
25327 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25329 * genattr-common.c (main): Convert argv from char ** to const char **.
25330 * genattr.c (main): Likewise.
25331 * genattrtab.c (main): Likewise.
25332 * genautomata.c (initiate_automaton_gen): Likewise.
25334 * gencodes.c (main): Likewise.
25335 * genconditions.c (main): Likewise.
25336 * genconfig.c (main): Likewise.
25337 * genconstants.c (main): Likewise.
25338 * genemit.c (main): Likewise.
25339 * genenums.c (main): Likewise.
25340 * genextract.c (main): Likewise.
25341 * genflags.c (main): Likewise.
25342 * genmddeps.c (main): Likewise.
25343 * genopinit.c (main): Likewise.
25344 * genoutput.c (main): Likewise.
25345 * genpeep.c (main): Likewise.
25346 * genpreds.c (main): Likewise.
25347 * genrecog.c (main): Likewise.
25348 * gensupport.c (init_rtx_reader_args_cb): Likewise.
25349 (init_rtx_reader_args): Likewise.
25350 * gensupport.h (init_rtx_reader_args_cb): Likewise.
25351 (init_rtx_reader_args): Likewise.
25352 * gentarget-def.c (main): Likewise.
25353 * read-md.c (read_md_files): Likewise.
25354 * read-md.h (read_md_files): Likewise.
25356 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25358 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
25359 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
25360 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
25361 Remove unused predicate.
25362 (register_and_not_fp_reg_operand): Ditto.
25364 2016-05-06 Martin Liska <mliska@suse.cz>
25366 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
25367 instead of vec as the vector is local to the function.
25369 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25371 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
25372 avx512bw alternative.
25374 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
25375 before the ashr<mode>3 pattern.
25377 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
25378 v instead of x in vex or maybe_vex alternatives, use
25379 maybe_evex instead of vex in prefix.
25381 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
25382 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
25383 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
25384 in vex or maybe_vex alternatives, use maybe_evex instead of vex
25387 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
25388 v instead of x in vex or maybe_vex alternatives, use
25389 maybe_evex instead of vex in prefix.
25391 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
25392 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
25393 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
25394 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
25395 alternatives, use maybe_evex instead of vex in prefix.
25397 * config/i386/sse.md (vec_interleave_lowv4sf,
25398 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
25399 v instead of x in vex or maybe_vex alternatives, use
25400 maybe_evex instead of vex in prefix.
25402 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
25403 v instead of x in vex or maybe_vex alternatives, use
25404 maybe_evex instead of vex in prefix.
25406 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
25407 v constraint instead of x.
25409 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
25411 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
25412 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
25415 2016-05-06 Richard Biener <rguenther@suse.de>
25417 PR tree-optimization/70948
25418 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25419 Properly clobber all fields of va_list for __builtin_va_start.
25421 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
25424 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
25425 loop latch destination.
25427 2016-05-06 Martin Liska <mliska@suse.cz>
25429 * tree-ssa-uninit.c: Apply manual changes
25430 to the GNU coding style.
25431 (prune_uninit_phi_opnds): Rename from
25432 prune_uninit_phi_opnds_in_unrealizable_paths.
25434 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25436 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
25437 mspace): Remove deprecated options.
25438 * doc/invoke.texi (SH options): Remove -mspace.
25440 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25442 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
25444 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25446 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
25447 corresponding combine split pattern.
25449 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25452 * config/sh/predicates.md (long_displacement_mem_operand): New.
25453 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
25454 Add movi20, movi20s alternatives. Adjust length attribute for
25456 (movsi_ie): Allow for any FPU. Adjust length attribute for
25458 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
25459 attribute for alternatives.
25460 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
25461 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
25462 length attribute for alternatives.
25464 2016-05-06 Richard Biener <rguenther@suse.de>
25466 PR tree-optimization/70960
25467 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
25469 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25472 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
25473 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
25475 2016-05-06 Marek Polacek <polacek@redhat.com>
25478 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
25480 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25483 * config/sh/sh.md (*rotcr): Add another variant.
25485 2016-05-06 Richard Biener <rguenther@suse.de>
25487 PR middle-end/70931
25488 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
25490 2016-05-06 Richard Biener <rguenther@suse.de>
25492 PR middle-end/70941
25493 * fold-const.c (split_tree): Always convert to the original type
25496 2016-05-06 Richard Biener <rguenther@suse.de>
25498 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
25499 (fwprop_addr): Likewise.
25501 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25504 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
25506 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
25507 * config/i386/i386.md (push mem splitter): Use find_constant_src in
25508 the splitter condition.
25509 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
25510 the splitter condition.
25511 (FP float_extend load splitter): Ditto.
25513 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
25515 * config/i386/i386.md (peehole2 patterns): Change true_regnum
25516 to REGNO in all peephole2 patterns.
25517 (post-reload splitters): Change true_regnum to REGNO in
25518 post-reload splitters.
25519 (zero_extend splitters): Use general_reg_operand and
25520 nonimmediate_gr_operand predicates.
25522 2016-05-05 Jakub Jelinek <jakub@redhat.com>
25524 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
25525 v constraint instead of x.
25527 2016-05-05 Alan Modra <amodra@gmail.com>
25530 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
25531 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
25532 TARGET_NO_FP_IN_TOC for -mrelocatable.
25533 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
25534 TARGET_RELOCATABLE test.
25535 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25536 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25537 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25538 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25539 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25540 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25541 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25542 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25543 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
25544 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25546 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
25547 (rs6000_stack_info): Likewise.
25548 (rs6000_elf_asm_out_constructor): Likewise.
25549 (rs6000_elf_asm_out_destructor): Likewise.
25550 (rs6000_elf_declare_function_name): Likewise.
25551 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
25552 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
25555 2016-05-05 Alan Modra <amodra@gmail.com>
25557 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
25559 2016-05-05 Alan Modra <amodra@gmail.com>
25561 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
25562 out-of-line gpr restore for one or two regs if that would add
25565 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
25568 * config/i386/i386.md
25569 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
25570 Change to post-epilogue_completed late splitter. Use sse_reg_operand
25571 as operand 0 predicate.
25572 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
25574 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
25575 Ditto. Emit the pattern using RTX.
25577 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
25578 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
25579 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
25580 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
25582 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
25583 sse_reg_operand as operand 0 predicate.
25585 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
25586 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
25587 instead of gen_rtx_REG.
25588 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
25591 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25593 * function.c (emit_use_return_register_into_block): Delete.
25594 (gen_return_pattern): Delete.
25595 (emit_return_into_block): Delete.
25596 (active_insn_between): Delete.
25597 (convert_jumps_to_returns): Delete.
25598 (emit_return_for_exit): Delete.
25599 (thread_prologue_and_epilogue_insns): Delete all code dealing with
25600 simple_return for shrink-wrapped blocks.
25601 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
25602 end of blocks that need one.
25603 (get_unconverted_simple_return): Delete.
25604 (convert_to_simple_return): Delete.
25605 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
25606 (convert_to_simple_return): Ditto.
25608 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25610 * cfgcleanup.c (bb_is_just_return): New function.
25611 (try_optimize_cfg): Simplify jumps to return, branches to return,
25612 and branches around return.
25614 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25616 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
25617 branch to a return.
25619 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25623 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
25624 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
25625 assert flags & OEP_HASH_CHECK, instead of asserting it
25626 never happens. Handle TARGET_EXPR.
25627 * fold-const.c (operand_equal_p): For hash verification,
25628 or in OEP_HASH_CHECK into flags.
25630 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
25632 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
25634 (compute_samebase_partition_bases): Fix typo.
25636 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25638 * config/i386/sse.md (vec_interleave_highv8sf,
25639 vec_interleave_lowv8sf, vec_interleave_highv4df,
25640 vec_interleave_lowv4df): Remove constraints from expanders.
25642 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
25644 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25646 * tree-inline.c (expand_call_inline): Fix path dealing with
25647 making lhs of call statement undefined.
25649 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25651 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25652 Check availability on NODE, too.
25653 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
25654 (cgraph_node::call_for_symbol_and_aliases): Likewise.
25655 (varpool_node::call_for_symbol_and_aliase): Likewise.
25656 * ipa-pure-const.c (add_new_function): Analyze all bodies.
25657 (propagate_pure_const): Propagate across interposable functions, too.
25658 (skip_function_for_local_pure_const): Do not skip interposable bodies
25660 (pass_local_pure_const::execute): Update.
25662 2016-05-04 Marek Polacek <polacek@redhat.com>
25664 * doc/invoke.texi: Document -Wdangling-else.
25666 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25668 * config.gcc: Error out when conflicting multilib is detected. Do not
25669 loop over multilibs since no combination is legal.
25671 2016-05-04 Alan Modra <amodra@gmail.com>
25673 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
25674 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
25675 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25678 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
25680 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
25681 Clean up p5600 comments.
25683 2016-05-04 Richard Biener <rguenther@suse.de>
25685 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
25686 constructor simplifications.
25687 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
25689 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
25691 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
25692 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
25693 result.set_rtx is null instead of aborting.
25694 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
25696 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
25697 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
25698 *mov<mode>_store_postinc): New patterns.
25700 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
25702 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
25703 as commutative. Check both conversions are NOP.
25704 ((A & B) OP (C & B)): Remove.
25706 2016-05-04 Alan Modra <amodra@gmail.com>
25708 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
25710 2016-05-04 Alan Modra <amodra@gmail.com>
25713 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
25714 when cr2,3,4 are all fixed regs.
25716 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
25718 PR rtl-optimization/57193
25719 * opts.c (default_options_table): Revert OPT_frename_registers change.
25720 * doc/invoke.texi (-frename-registers, -O2): Likewise.
25722 2016-05-03 Martin Sebor <msebor@redhat.com>
25725 * builtins.c (fold_builtin_FILE): New function.
25726 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
25727 (fold_builtin_0): Call them.
25728 * gimplify.c (gimplify_call_expr): Remove the handling of
25729 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
25732 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
25733 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
25737 * doc/extend.texi (Function Names as Strings): Update __func__,
25738 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
25741 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25742 Richard Biener <rguenther@suse.de>
25744 PR tree-optimization/70916
25745 * tree-if-conv.c: Include cfganal.h.
25746 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
25747 and remove_fake_exit_edges around the optimization pass.
25749 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
25751 * cgraph.c (symbol_table::create_edge): Set inline_failed.
25752 (cgraph_edge::make_direct): Likewise.
25753 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
25754 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
25755 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
25756 (CIF_THUNK): New code.
25757 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
25758 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
25759 (compute_inline_parameters): Set inline_failed for thunks.
25760 (inline_analyze_function): Cleanup.
25761 * ipa-inline.c (can_inline_edge_p): Do not deal with
25762 call_stmt_cannot_inline_p.
25763 (can_early_inline_edge_p): Likewise.
25764 (early_inliner): Initialize inline_failed.
25765 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
25767 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
25769 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
25770 from nonimm_ssenomem_operand.
25771 (nonimm_ssenomem_operand): New predicate.
25772 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
25773 as operand 0 predicate.
25774 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
25775 Disable unsupported alternatives using "enabled" attribute.
25776 Use register_ssemem_operand as operand 0 predicate.
25777 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
25779 2016-05-03 Marek Polacek <polacek@redhat.com>
25782 * input.c (expansion_point_location): New function.
25783 * input.h (expansion_point_location): Declare.
25785 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
25787 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
25788 occurence with frame_offset_ ones.
25790 2016-05-03 Alan Modra <amodra@gmail.com>
25792 PR rtl-optimization/70890
25793 * ira.c (combine_and_move_insns): When moving def_insn, remove
25794 equivs on use_insn.
25796 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
25798 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
25799 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
25800 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
25801 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
25803 2016-05-03 Alan Modra <amodra@gmail.com>
25805 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
25806 for SAVE_MULTIPLE/STORE_MULTIPLE.
25808 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25810 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
25811 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
25813 2016-05-03 Richard Biener <rguenther@suse.de>
25815 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
25817 (gimplify_arg): Likewise.
25818 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
25819 re-writing the result to a decl if required.
25820 (internal_get_tmp_var): Add allow_ssa parameter
25821 and override into_ssa with it.
25822 (get_formal_tmp_var): Adjust.
25823 (get_initialized_tmp_var): Add allow_ssa parameter.
25824 (gimplify_arg): Add allow_ssa parameter and avoid generating
25825 SSA names for the result false.
25826 (gimplify_call_expr): If the call may return twice do not
25827 gimplify parameters into SSA.
25828 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
25829 (gimplify_modify_expr): Adjust assert. For noreturn calls
25830 with a SSA name LHS adjust its def.
25831 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
25832 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
25833 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
25834 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
25835 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
25836 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
25837 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
25838 (optimize_target_teams): Do not allow SSA names for clause operands.
25839 (gimplify_expr): Likewise for where we mark the result addressable.
25840 * passes.def (pass_init_datastructures): Remove.
25841 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
25842 (rewrite_stmt): Likewise.
25843 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
25844 (replace_locals_op): Replace SSA names.
25845 (copy_gimple_seq_and_replace_locals): Init src_cfun.
25846 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
25847 * cgraph.c (release_function_body): Free CFG annotations only
25848 when we have a CFG. Simplify.
25849 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
25850 force_gimple_operand instead of get_initialized_tmp_var.
25851 * tree-pass.h (make_pass_init_datastructures): Remove.
25852 * tree-ssa.c (execute_init_datastructures): Remove.
25853 (pass_data_init_datastructures): Likewise.
25854 (class pass_init_datastructures): Likewise.
25855 (make_pass_init_datastructures): Likewise.
25856 * omp-low.c (create_omp_child_function): Init SSA data structures.
25857 (grid_expand_target_grid_body): Likewise.
25858 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
25859 name before adding it to names_to_release.
25860 (remove_bb): Always release SSA defs.
25861 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
25862 before dereferencing it.
25863 * cgraphunit.c (init_lowered_empty_function): Always
25864 int SSA data structures.
25865 * tree-ssanames.c (release_defs): Remove assert that we are in
25867 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
25869 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25870 Uros Bizjak <ubizjak@gmail.com>
25872 PR rtl-optimization/70467
25873 * config/i386/predicates.md (x86_64_hilo_int_operand,
25874 x86_64_hilo_general_operand): New predicates.
25875 * config/i386/constraints.md (Wd): New constraint.
25876 * config/i386/i386.md (mode attr di): Use Wd instead of e.
25877 (general_hilo_operand): New mode attr.
25878 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
25879 instead of <general_operand>.
25880 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
25881 x86_64_hilo_general_operand instead of <general_operand>.
25883 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25885 PR tree-optimization/70916
25886 * tree-if-conv.c (constant_or_ssa_name): Removed.
25887 (fold_build_cond_expr): Use is_gimple_val instead of
25888 constant_or_ssa_name.
25890 PR tree-optimization/70916
25891 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
25892 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
25895 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
25896 (optimize_atomic_bit_test_and): New function.
25897 (pass_fold_builtins::execute): Use it.
25898 * optabs.def (atomic_bit_test_and_set_optab,
25899 atomic_bit_test_and_complement_optab,
25900 atomic_bit_test_and_reset_optab): New optabs.
25901 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
25902 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
25903 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
25904 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
25905 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
25906 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
25907 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
25908 * doc/md.texi (atomic_bit_test_and_set@var{mode},
25909 atomic_bit_test_and_complement@var{mode},
25910 atomic_bit_test_and_reset@var{mode}): Document.
25911 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
25912 atomic_bit_test_and_complement<mode>,
25913 atomic_bit_test_and_reset<mode>): New expanders.
25914 (atomic_bit_test_and_set<mode>_1,
25915 atomic_bit_test_and_complement<mode>_1,
25916 atomic_bit_test_and_reset<mode>_1): New insns.
25918 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
25920 PR rtl-optimization/70687
25921 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
25922 instead of unsigned HOST_WIDE_INT.
25924 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
25926 PR rtl-optimization/44281
25927 * hard-reg-set.h (struct target_hard_regs): New field
25928 x_fixed_nonglobal_reg_set.
25929 (fixed_nonglobal_reg_set): New macro.
25930 * reginfo.c (init_reg_sets_1): Initialize it.
25931 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
25933 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
25935 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25937 PR tree-optimization/56541
25938 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
25939 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
25940 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
25941 (any_complicated_phi): new static variable.
25942 (aggressive_if_conv): delete.
25943 (if_convertible_phi_p): support phis with more than two arguments.
25944 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
25945 critical pred edges.
25946 (ifcvt_split_critical_edges): support phis with more than two
25947 arguments by checking new parameter. only split critical edges
25949 (tree_if_conversion): handle simd pragma marked loop using new
25950 local variable aggressive_if_conv. check any_complicated_phi.
25952 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25954 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
25957 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25959 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
25962 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
25964 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
25965 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
25966 define_insn_and_split.
25967 (mulsi3_i): New define_insn_and_split.
25968 (mulsi3_call): Convert to define_insn.
25969 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
25970 Remove constraints.
25972 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25974 * machmode.h (mode_complex): Add support to give the complex mode
25976 (GET_MODE_COMPLEX_MODE): Likewise.
25977 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
25978 stored by build_complex_type and gfc_build_complex_type instead of
25979 trying to figure out the appropriate mode based on the size. Raise
25980 an assertion error, if the type was not set.
25981 * genmodes.c (struct mode_data): Add field for the complex type of
25983 (blank_mode): Likewise.
25984 (make_complex_modes): Remember the complex mode created in the
25986 (emit_mode_complex): Write out the mode_complex array to map a
25987 type mode to the complex version.
25988 (emit_insn_modes_c): Likewise.
25989 * tree.c (build_complex_type): Set the complex type to use before
25990 calling layout_type.
25991 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
25992 support for __float128 complex datatypes.
25993 (rs6000_hard_regno_mode_ok): Likewise.
25994 (rs6000_setup_reg_addr_masks): Likewise.
25995 (rs6000_complex_function_value): Likewise.
25996 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
25997 __float128 and __ibm128 complex.
25998 (FLOAT128_IBM_P): Likewise.
25999 (ALTIVEC_ARG_MAX_RETURN): Likewise.
26000 * doc/extend.texi (Additional Floating Types): Document that
26001 -mfloat128 must be used to enable __float128. Document complex
26002 __float128 and __ibm128 support.
26004 2016-05-02 Jakub Jelinek <jakub@redhat.com>
26007 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
26008 char/short arguments promoted to int because of promote_prototypes.
26010 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
26012 * config/i386/predicates.md (register_ssemem_operand): New predicate.
26013 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
26014 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
26015 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
26016 alternatives using "enabled" attribute. Use register_ssemem_operand
26017 as operand 1 predicate.
26018 (*cmpi<unord>xf_i387): Split XFmode pattern from
26019 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
26020 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
26021 *absneg<mode>2_i387. Disable unsupported alternatives using
26022 "enabled" attribute.
26023 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
26025 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
26027 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
26029 (oacc_loop_process): Check mask for loop termination.
26031 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
26033 * cif-code.def (CIF_THUNK): Add.
26034 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
26037 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
26039 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
26040 (dump_inline_summary): Dump it.
26041 (fp_expression_p): New predicate.
26042 (estimate_function_body_sizes): Use it.
26043 (inline_merge_summary): Merge fp_expressions.
26044 (inline_read_section): Read fp_expressions.
26045 (inline_write_summary): Write fp_expressions.
26046 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
26047 codegen boundary if either caller or callee is !fp_expressions.
26048 * ipa-inline.h (inline_summary): Add fp_expressions.
26049 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
26050 to fp_expressions be sure the fp generation flags are updated.
26052 2016-05-02 Jakub Jelinek <jakub@redhat.com>
26054 PR rtl-optimization/70467
26055 * cse.c (cse_insn): Handle no-op MEM moves after folding.
26057 PR rtl-optimization/70467
26058 * ipa-pure-const.c (check_call): Handle internal calls even in
26059 ipa mode like in local mode.
26061 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
26063 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
26065 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
26067 * match.pd (X u< X, X u> X): New transformations.
26069 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
26071 * flag-types.h (enum warn_strict_overflow_code): Move ...
26072 * coretypes.h: ... here.
26073 * fold-const.h (fold_overflow_warning): Declare.
26074 * fold-const.c (fold_overflow_warning): Make non-static.
26075 (fold_comparison): Move the transformation of X +- C1 CMP C2
26076 into X CMP C2 -+ C1 ...
26077 * match.pd: ... here.
26078 * gimple-fold.c (fold_stmt_1): Protect with
26079 fold_defer_overflow_warnings.
26081 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
26083 * omp-low.c (struct oacc_loop): Add 'inner' field.
26084 (new_oacc_loop_raw): Initialize it to zero.
26085 (oacc_loop_fixed_partitions): Initialize it.
26086 (oacc_loop_auto_partitions): Partition outermost loop to outermost
26087 available partitioning.
26089 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26091 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
26093 (umulsidi3): Likewise.
26094 (indirect_jump): Fix jump instruction assembly patterns.
26096 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
26099 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
26100 (nvptx_function_value): Assert non-NULL cfun.
26102 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
26104 PR rtl-optimization/70886
26105 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
26107 * cselib.h (rtx_equal_for_cselib_1): Declare.
26108 (rtx_equal_for_cselib_p: New inline function.
26109 * cselib.c (rtx_equal_for_cselib_p): Delete.
26110 (rtx_equal_for_cselib_1): Make public.
26112 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
26114 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
26115 (register_mixssei387nonimm_operand): Remove predicate.
26116 * config/i386/i386.md (*fop_<mode>_comm): Merge from
26117 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
26118 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
26119 for TARGET_MIX_SSE_I387 alternatives.
26120 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
26121 Disable unsupported alternatives using "enabled" attribute. Use
26122 nonimm_ssenomem_operand as operand 1 predicate. Also check
26123 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
26125 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26127 * tree.c (cst_and_fits_in_hwi): Simplify.
26129 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26131 * tree.h (wi::to_wide): New function.
26132 * expr.c (expand_expr_real_1): Use wi::to_wide.
26133 * fold-const.c (int_const_binop_1): Likewise.
26134 (extract_muldiv_1): Likewise.
26136 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26138 * wide-int.h: Update offset_int and widest_int documentation.
26139 (WI_SIGNED_SHIFT_RESULT): New macro.
26140 (wi::binary_shift): Define signed_shift_result_type for
26141 shifts on offset_int- and widest_int-like types.
26142 (generic_wide_int): Support <<= and >>= if << and >> are supported.
26143 * tree.h (int_bit_position): Use shift operators instead of wi::
26145 * alias.c (adjust_offset_for_component_ref): Likewise.
26146 * expr.c (get_inner_reference): Likewise.
26147 * fold-const.c (fold_comparison): Likewise.
26148 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
26149 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
26150 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26151 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26152 (stmt_kills_ref_p): Likewise.
26153 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
26154 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
26155 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
26156 (ao_ref_init_from_vn_reference): Likewise.
26158 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26160 * wide-int.h: Update offset_int and widest_int documentation.
26161 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
26162 (wi::binary_traits): Allow ordered comparisons between offset_int and
26163 offset_int, between widest_int and widest_int, and between either
26164 of these types and basic C types.
26165 (operator <, <=, >, >=): Define for the same combinations.
26166 * tree.h (tree_int_cst_lt): Use comparison operators instead
26167 of wi:: comparisons.
26168 (tree_int_cst_le): Likewise.
26169 * gimple-fold.c (fold_array_ctor_reference): Likewise.
26170 (fold_nonarray_ctor_reference): Likewise.
26171 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
26172 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
26173 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
26174 * tree-sra.c (completely_scalarize): Likewise.
26175 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
26176 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
26177 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
26178 (check_for_binary_op_overflow): Likewise.
26179 (search_for_addr_array): Likewise.
26180 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
26182 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26184 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
26185 (arc_save_restore): Likewise.
26186 (arc_dwarf_register_span): Likewise.
26187 (arc_output_pic_addr_const): Initialize suffix variable.
26189 2016-05-02 Martin Liska <mliska@suse.cz>
26191 * symbol-summary.h (function_summary::function_summary):
26192 Remove checking assert for all cgraph nodes.
26193 (function_summary::get): Check summary_uid.
26194 (symtab_insertion): Check summary_uid.
26196 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26198 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
26199 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
26200 bmaskn instruction.
26201 (arc_dwarf_register_span): Remove enum keyword.
26202 (compact_memory_operand_p): New function.
26203 * config/arc/arc.h (reg_class): Add code density register classes.
26204 (REG_CLASS_NAMES): Likewise.
26205 (REG_CLASS_CONTENTS): Likewise.
26206 * config/arc/arc.md (*movqi_insn): Add code density instructions.
26207 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
26208 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
26209 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
26210 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
26212 (h, Rcd, Rsd, Rzd): New register constraints.
26213 (T): Use compact_memory_operand_p function.
26214 * config/arc/predicates.md (compact_load_memory_operand): Remove.
26216 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26218 * config/sh/sh.md (*negnegt, *movtt): Remove.
26220 2016-05-02 Marek Polacek <polacek@redhat.com>
26221 Tom de Vries <tom@codesourcery.com>
26223 PR tree-optimization/70700
26224 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
26225 bigger than FIRST_REF_NODE.
26227 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26230 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
26232 (prepare_cbranch_operands): Don't use scratch register. Assume that
26233 function is used when pseudos can be created.
26234 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
26235 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
26236 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
26237 define_expand. Allow it only when pseudos can be created.
26238 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
26240 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
26242 * config/i386/constraints.md (BC): Only allow -1 operands.
26243 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
26244 Add "enabled" attribute. Update XI mode attribute calculation.
26245 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
26246 (*movoi_internal_avx): Update XI mode attribute calculation.
26247 (*movti_internal): Ditto.
26249 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26251 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
26252 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
26254 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
26256 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
26257 statement on instruction code. Remove trailing spaces.
26258 (altivec_expand_stv_builtin): Likewise.
26260 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26262 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
26263 (TARGET_FPU_DOUBLE): Simplify.
26264 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
26265 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
26266 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
26267 with 'TARGET_FPU_DOUBLE'.
26268 * config/sh/sh.md: Likewise.
26270 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
26272 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
26273 SH_DIV_STR_FOR_SIZE): Remove.
26274 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
26275 SH_DIV_STR_FOR_SIZE): Remove.
26277 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26279 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
26280 logical_reg_operand): Delete.
26281 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
26282 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
26283 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
26284 match_operand and match_test.
26285 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
26286 variables on their first use. Return bool values.
26287 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
26288 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
26289 arith_reg_operand for input operand. Remove empty constraints.
26291 (*xorsi3_compact): Rename to xorsi3.
26292 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
26293 (*zero_extend<mode>si2_disp_mem): Update comment.
26296 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26298 * config/sh/t-sh: Remove SH5 support.
26299 * config.gcc: Likewise.
26300 * configure: Likewise.
26302 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26304 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
26306 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26308 * config/sh/sh.c (register_sh_passes, sh_option_override,
26309 sh_print_operand, prepare_move_operands,
26310 sh_can_follow_jump): Remove TARGET_SH1 checks.
26311 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
26312 PROMOTE_MODE): Likewise.
26313 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
26316 2016-04-30 Alan Modra <amodra@gmail.com>
26318 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
26319 restoring when fixed_reg_p, but allow out-of-line or stmw save.
26320 Check for user regs later to avoid unnecessary looping over regs.
26321 Merge user reg check with non-saved reg check. Don't force
26322 inline VR restore when static chain used.
26323 (rs6000_frame_related): Omit eh_frame info for user regs when
26325 (fixed_regs_p): Delete.
26327 2016-04-30 Alan Modra <amodra@gmail.com>
26329 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
26330 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
26333 2016-04-30 Alan Modra <amodra@gmail.com>
26336 * config/rs6000/rs6000.c (fixed_reg_p): New function.
26337 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
26340 2016-04-30 Alan Modra <amodra@gmail.com>
26342 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
26343 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
26344 flag_pic test for Darwin.
26346 2016-04-30 Alan Modra <amodra@gmail.com>
26348 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
26349 throw_calls_crossed.
26350 (REG_FREQ_CALLS_CROSSED): Delete.
26351 (REG_N_THROWING_CALLS_CROSSED): Delete.
26352 * regstat.c (regstat_bb_compute_ri): Don't calculate
26353 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
26354 (dump_reg_info): Don't print call cross frequency.
26355 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
26356 and REG_N_THROWING_CALLS_CROSSED.
26358 2016-04-30 Alan Modra <amodra@gmail.com>
26360 * regs.h (struct reg_info_t): Delete live_length.
26361 (REG_LIVE_LENGTH): Delete macro.
26362 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
26363 local_live, local_processed and local_live_last_luid params.
26364 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
26366 (regstat_compute_ri): Adjust for above. Don't set
26368 (dump_reg_info): Don't print live length.
26369 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
26370 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
26371 Localize loop_depth var.
26373 2016-04-30 Alan Modra <amodra@gmail.com>
26375 * ira.c (enum valid_equiv): New.
26376 (validate_equiv_mem): Return enum.
26377 (update_equiv_mem): Create replacement in more cases.
26378 (add_store_equivs): Update validate_equiv_mem call.
26380 2016-04-30 Alan Modra <amodra@gmail.com>
26382 * ira.c (combine_and_move_insns): Rather than scanning insns,
26383 use DF infrastucture to find use and def insns.
26385 2016-04-30 Alan Modra <amodra@gmail.com>
26387 ira.c (combine_and_move_insns): Move invariant conditions..
26388 (ira.c): ..to here. Call combine_and_move_insns before
26389 add_store_equivs. Call grow_reg_equivs later. Allocate
26390 req_equiv later using max_reg_num() rather than global max_regno.
26391 (contains_replace_regs): Delete.
26392 (add_store_equivs): Remove contains_replace_regs test.
26394 2016-04-30 Alan Modra <amodra@gmail.com>
26396 * ira.c (struct equiv_mem_data): New.
26397 (equiv_mem, equiv_mem_modified): Delete static vars.
26398 (validate_equiv_mem_from_store): Use "data" param to communicate..
26399 (validate_equiv_mem): ..from here.
26401 2016-04-30 Alan Modra <amodra@gmail.com>
26403 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
26405 (update_reg_equivs): ..here. Move allocation and freeing of
26406 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
26407 end_alias_analysis to..
26410 2016-04-30 Alan Modra <amodra@gmail.com>
26412 * ira.c (pdx_subregs): Delete.
26413 (struct equivalence): Add pdx_subregs field.
26414 (set_paradoxical_subreg): Remove pdx_subregs param. Update
26415 pdx_subregs access.
26416 (update_equiv_regs): Don't create or free pdx_subregs. Update
26417 pdx_subregs access.
26419 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26421 * config/rs6000/altivec.h: Change definitions of vec_xl and
26423 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
26424 (LD_ELEMREV_V2DI): New.
26425 (LD_ELEMREV_V4SF): New.
26426 (LD_ELEMREV_V4SI): New.
26427 (LD_ELEMREV_V8HI): New.
26428 (LD_ELEMREV_V16QI): New.
26429 (ST_ELEMREV_V2DF): New.
26430 (ST_ELEMREV_V2DI): New.
26431 (ST_ELEMREV_V4SF): New.
26432 (ST_ELEMREV_V4SI): New.
26433 (ST_ELEMREV_V8HI): New.
26434 (ST_ELEMREV_V16QI): New.
26437 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26438 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
26439 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
26440 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
26441 (altivec_expand_builtin): Add handling for
26442 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
26443 (rs6000_invalid_builtin): Add error-checking for
26444 RS6000_BTM_P9_VECTOR.
26445 (altivec_init_builtins): Define builtins used to implement vec_xl
26447 (rs6000_builtin_mask_names): Define power9-vector.
26448 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
26449 (RS6000_BTM_P9_VECTOR): Define.
26450 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
26451 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
26452 (vsx_ld_elemrev_v2df): Likewise.
26453 (vsx_ld_elemrev_v4sf): Likewise.
26454 (vsx_ld_elemrev_v4si): Likewise.
26455 (vsx_ld_elemrev_v8hi): Likewise.
26456 (vsx_ld_elemrev_v16qi): Likewise.
26457 (vsx_st_elemrev_v2df): Likewise.
26458 (vsx_st_elemrev_v2di): Likewise.
26459 (vsx_st_elemrev_v4sf): Likewise.
26460 (vsx_st_elemrev_v4si): Likewise.
26461 (vsx_st_elemrev_v8hi): Likewise.
26462 (vsx_st_elemrev_v16qi): Likewise.
26463 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
26466 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
26468 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
26470 (simplify_control_stmt_condition_1): ... here. Recurse into
26471 BIT_AND_EXPRs and BIT_IOR_EXPRs.
26473 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
26476 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
26477 (zero_extendqi<mode>2_dot): Revert earlier conversion from
26478 define_insn_and_split to define_insn.
26479 (zero_extendqi<mode>2_dot2): Same.
26480 (extendqi<mode>2_dot): Same.
26481 (extendqi<mode>2_dot2): Same.
26483 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26485 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
26486 (probe_stack): New expander.
26487 (probe_stack_<mode>): New insn pattern.
26489 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26491 * config/i386/i386.md
26492 (operations with memory inputs setting flags peephole2):
26493 Remove uneeded REG_P checks. Cleanup pattern generation.
26495 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
26497 * tree-vect-loop.c (vect_transform_loop): Fix
26498 nb_iterations_upper_bound computation for vectorized loop.
26500 2016-04-29 Marek Polacek <polacek@redhat.com>
26501 Jakub Jelinek <jakub@redhat.com>
26504 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
26505 TARGET_EXPR_SLOT as a base.
26507 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
26509 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
26510 with 'rCm2' constraints to limit possible immediate size.
26511 (*load_zeroextendqisi_update): Likewise.
26512 (*load_signextendqisi_update): Likewise.
26513 (*loadhi_update): Likewise.
26514 (*load_zeroextendhisi_update): Likewise.
26515 (*load_signextendhisi_update): Likewise.
26516 (*loadsi_update): Likewise.
26517 (*loadsf_update): Likewise.
26519 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26521 * config/i386/predicates.md (constm1_operand): Fix comparison.
26523 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26525 * testsuite/gcc.target/arc/ieee_eq.c: New test.
26527 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
26529 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
26530 remaining SH5 related settings.
26531 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
26532 shmedia_prepare_call_address): Delete.
26533 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
26534 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
26535 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
26536 UNSUPPORTED_SH2A): Remove m5 checks.
26537 (sh_divide_strategy_e): Remove SH5 division strategies.
26538 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
26539 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
26541 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26543 * config/s390/s390.c (s390_rtx_costs): Update documentation.
26545 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26547 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
26548 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
26549 Change lder to ldr.
26550 * config/s390/vector.md ("mov<mode>"): Likewise.
26552 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
26554 * config/s390/constraints.md ("U", "W"): Invoke
26555 s390_mem_constraint with "ZR" and "ZT".
26556 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
26557 addresses when using LRA. Accept also short displacements for S
26558 and T constraints. Do not check for long displacement target for
26559 S and T constraints.
26560 (s390_mem_constraint): Remove handling of U and W constraints.
26561 * config/s390/s390.md (various patterns): Remove the short
26562 displacement constraints (Q and R) if a long displacement
26563 constraint is present. Add longdisp as required CPU capability.
26564 * config/s390/vector.md: Likewise.
26565 * config/s390/vx-builtins.md: Likewise.
26567 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26570 * reload1.c (reload): Call finish_spills before
26571 restarting reload loop. Skip select_reload_regs
26572 if update_eliminables_and_spill returns true.
26574 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26576 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
26577 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
26578 (umulhisi3_imm): Update predicates and constraint letters.
26579 (umulhisi3_reg): Declare instruction as commutative.
26580 * config/arc/constraints.md (J12, J16): New constraints.
26581 * config/arc/predicates.md (short_unsigned_const_operand): New
26583 (arc_short_operand): Likewise.
26584 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
26586 2016-04-29 Richard Biener <rguenther@suse.de>
26588 PR tree-optimization/13962
26589 PR tree-optimization/65686
26590 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
26591 * tree-ssa-alias.c (ptrs_compare_unequal): New function
26592 using PTA to compare pointers.
26593 * match.pd: Add pattern for pointer equality compare simplification
26594 using ptrs_compare_unequal.
26596 2016-04-29 Richard Biener <rguenther@suse.de>
26598 * stor-layout.c (layout_type): Do not build a pointer-to-element
26601 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26603 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
26604 Use SWI mode iterator. Use general_reg_operand predicate.
26605 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
26606 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
26609 2016-04-29 Jakub Jelinek <jakub@redhat.com>
26611 PR middle-end/70843
26612 * fold-const.c (operand_equal_p): Don't verify hash value equality
26614 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
26617 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26620 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
26621 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
26622 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
26623 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
26624 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
26626 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26628 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
26629 to info. Don't initialize separate fields to 0. Clean up
26632 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26634 * config/i386/i386.md (peephole2s for operations with memory inputs):
26635 Use SWI mode iterator.
26636 (peephole2s for operations with memory outputs): Ditto.
26637 Do not check for stack checking probe.
26639 (probe_stack): Remove expander.
26641 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26642 Andrew Burgess <andrew.burgess@embecosm.com>
26644 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
26645 operands as 32-bits.
26647 2016-04-28 Jason Merrill <jason@redhat.com>
26649 * gdbinit.in: Skip line-map.h.
26651 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26652 Andrew Burgess <andrew.burgess@embecosm.com>
26654 * config/arc/arc.c (arc_conditional_register_usage): Take
26655 TARGET_RRQ_CLASS into account.
26656 (arc_print_operand): Support printing 'p' and 's' operands.
26657 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
26659 (TARGET_RRQ_CLASS): Define.
26660 (IS_POWEROF2_OR_0_P): Define.
26661 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
26663 (*tst_movb): New define_insn.
26664 (*tst): Avoid recognition if it could prevent '*tst_movb'
26665 combination; replace c/CnL with c/Chs alternative.
26666 (*tst_bitfield_tst): New define_insn.
26667 (*tst_bitfield_asr): New define_insn.
26668 (*tst_bitfield): New define_insn.
26669 (andsi3_i): Add Rrq variant.
26670 (extzv): New define_expand.
26671 (insv): New define_expand.
26672 (*insv_i): New define_insn.
26673 (*movb): New define_insn.
26674 (*movb_signed): New define_insn.
26675 (*movb_high): New define_insn.
26676 (*movb_high_signed): New define_insn.
26677 (*movb_high_signed + 1): New define_split pattern.
26678 (*mrgb): New define_insn.
26679 (*mrgb + 1): New define_peephole2 pattern.
26680 (*mrgb + 2): New define_peephole2 pattern.
26681 * config/arc/arc.opt (mbitops): New option for nps400, uses
26682 TARGET_NPS_BITOPS_DEFAULT.
26683 * config/arc/constraints.md (q): Make register class conditional.
26684 (Rrq): New register constraint.
26685 (Chs): New constraint.
26686 (Clo): New constraint.
26687 (Chi): New constraint.
26688 (Cbf): New constraint.
26689 (Cbn): New constraint.
26690 (C18): New constraint.
26691 (Cbi): New constraint.
26693 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26695 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
26697 (bitmap_intersection_of_preds): Ditto.
26698 (bitmap_union_of_succs): Ditto.
26699 (bitmap_union_of_preds): Ditto.
26700 * sbitmap.c (do_popcount): Delete.
26701 (BITMAP_DEBUGGING): Delete.
26702 (sbitmap_verify_popcount): Delete.
26703 (sbitmap_alloc): Don't initialize the popcount field.
26704 (sbitmap_alloc_with_popcount): Delete.
26705 (sbitmap_resize): Don't resize the popcount array.
26706 (sbitmap_vector_alloc): Don't initialize the popcount field.
26707 (bitmap_copy): Don't copy the popcount array.
26708 (bitmap_clear): Don't clear the popcount array.
26709 (bitmap_clear): Delete the popcount array handling.
26710 (bitmap_ior_and_compl): Delete the popcount assert.
26711 (bitmap_not): Ditto.
26712 (bitmap_and_compl): Ditto.
26713 (bitmap_and): Delete the popcount array handling.
26714 (bitmap_xor): Ditto.
26715 (bitmap_ior): Ditto.
26716 (bitmap_or_and): Delete the popcount assert.
26717 (bitmap_and_or): Ditto.
26718 (popcount_table): Delete.
26719 (sbitmap_elt_popcount): Delete.
26720 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
26721 (bitmap_set_bit): Delete the popcount assert.
26722 (bitmap_clear_bit): Ditto.
26723 (sbitmap_free): Don't free the popcount array.
26724 (sbitmap_alloc_with_popcount): Delete declaration.
26725 (sbitmap_popcount): Ditto.
26727 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26728 Andrew Burgess <andrew.burgess@embecosm.com>
26730 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
26731 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
26732 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
26733 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
26734 * config/arc/arc.opt (mcmem): New option.
26735 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
26736 supply length for r/m alternative.
26737 (*extendqisi2_ac): Likewise.
26738 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
26740 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
26741 (movhi_insn): Likewise.
26742 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
26743 (*zero_extendqihi2_i): Add r/Ucm alternative.
26744 (*zero_extendqisi2_ac): Likewise.
26745 (*zero_extendhisi2_i): Likewise.
26746 * config/arc/constraints.md (Uex): New memory constraint.
26747 (Ucm): New define_constraint.
26748 * config/arc/predicates.md (long_immediate_loadstore_operand):
26749 Return 0 for MEM with cmem_address address.
26750 (cmem_address_0): New predicates.
26751 (cmem_address_1): Likewise.
26752 (cmem_address_2): Likewise.
26753 (cmem_address): Likewise.
26755 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26757 * config/rs6000/rs6000.c (machine_function): Rename
26758 insn_chain_scanned_p to spe_insn_chain_scanned_p.
26759 (rs6000_stack_info): Adjust.
26761 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26762 Andrew Burgess <andrew.burgess@embecosm.com>
26764 * config/arc/constraints.md (Usd): Convert to define_constraint.
26768 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26771 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
26772 Add new peephole2 where the first insn is *mov<mode>_or instead of
26773 *mov<mode>_internal.
26775 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
26777 * tracer.c (bb_seen): Make static.
26779 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
26781 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
26782 support, setup defaults.
26783 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
26784 * config/arc/arc.c (arc_init): Add NPS400 support.
26785 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
26786 (TARGET_ARC700): NPS400 is also an ARC700.
26787 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
26789 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26792 * config/nds32/nds32.md (casesi): Don't access the operands array
26795 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26797 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
26798 (or $-1,reg peephole2): Ditto.
26799 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
26801 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26803 * doc/extend.texi (Common Function Attributes) [optimize]:
26804 Discourage use of the optimize attribute.
26806 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
26808 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
26809 special case builtin.
26810 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26811 ALTIVEC_BUILTIN_VEC_ADDE.
26812 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
26813 support for ALTIVEC_BUILTIN_VEC_ADDE.
26814 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
26815 for __builtin_vec_adde.
26817 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26819 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
26820 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
26822 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26825 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26826 attributes): Document cilkplus_runtime.
26828 2016-04-28 Martin Jambor <mjambor@suse.cz>
26830 * tree-cfg.c (verify_expr): Verify that local declarations belong to
26831 this function. Call verify_expr on MEM_REFs and bases of other
26832 handled_components.
26834 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26836 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
26837 for WORD_REGISTER_OPERATIONS to runtime check.
26839 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26841 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
26843 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26845 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
26846 big-endian compilation.
26847 * config/arc/arc.md (addf3): Likewise.
26848 (subdf3): Likewise.
26849 (muldf3): Likewise.
26851 2016-04-28 Richard Biener <rguenther@suse.de>
26853 PR tree-optimization/70840
26854 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
26855 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
26856 Mark x * pow(x,c) -> pow(x,c+1) commutative.
26857 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
26859 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26861 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
26862 and explain why in a comment.
26864 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26866 * config/arc/arc.md (cpu_facility): Add fpx variant.
26867 (subdf3): Prohibit use reverse sub when assist operations option
26869 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
26870 instructions only when FPX is enabled.
26871 * testsuite/gcc.target/arc/trsub.c: New test.
26873 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26875 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
26876 mult_operator when calculating "type" attribute.
26877 (*fop_<mode>_1_i387): Ditto.
26878 (*fop_xf_1_i387): Ditto.
26879 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
26880 Use std::swap to swap operands. Use RTL expressions to generate
26883 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26884 Joern Rennecke <joern.rennecke@embecosm.com>
26886 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
26888 (emit_pic_move): Remove.
26889 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
26890 * config/arc/arc.c (emit_pic_move): Removed.
26891 (TARGET_HAVE_TLS): Define.
26892 (arc_conditional_register_usage): Test for arc_tp_regno.
26893 (arc_print_operand, arc_print_operand_address): Handle TLS
26895 (arc_needs_pcl_p): New function.
26896 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
26897 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
26898 (arc_raw_symbolic_reference_mentioned_p): Likewise.
26899 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
26900 (arc_legitimize_tls_address): Likewise.
26901 (DTPOFF_ZERO_SYM): Define.
26902 (arc_legitimize_pic_address): Make it static, handle TLS cases.
26903 (arc_output_pic_addr_const): Print TLS unspecs.
26904 (prepare_pic_move): New function, replaces emit_pic_move.
26905 (arc_legitimate_constant_p): Handle TLS unspecs.
26906 (arc_legitimate_address_p): Likewise.
26907 (arc_rewrite_small_data_p): Use assert for TLS constants.
26908 (prepare_move_operands): Use prepare_pic_move.
26909 (arc_legitimize_address): Legitimize tls addresses.
26910 (arc_epilogue_uses): Check for arc_tp_regno.
26911 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
26912 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
26914 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
26916 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
26917 %(arc_tls_extra_start_spec).
26918 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
26919 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
26921 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
26922 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
26923 (UNSPEC_TLS_OFF): Add.
26925 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
26926 (get_thread_pointersi): New patterns.
26927 * config/arc/arc.opt (mtp-regno): New option.
26928 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
26929 (move_dest_operand): Likewise.
26930 * configure: Regenerate.
26931 * configure.ac: Add arc*-*-* case to test for tls.
26932 * doc/invoke.texi (ARC options): Document mtp-regno.
26934 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26936 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
26937 the new ARC HS SIMD instructions.
26938 (arc_preferred_simd_mode): New function.
26939 (arc_autovectorize_vector_sizes): Likewise.
26940 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26941 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
26942 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
26943 (arc_init_builtins): Add new SIMD builtin types.
26944 (arc_split_move): Handle 64 bit vector moves.
26945 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
26946 (TARGET_PLUS_QMACW): Define.
26947 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
26948 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
26949 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
26950 (VSUBADD4H): New builtins.
26951 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
26952 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
26954 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
26955 Matthias Klose <doko@debian.org>
26957 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
26959 2016-04-28 Richard Biener <rguenther@suse.de>
26961 PR middle-end/70777
26962 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
26965 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
26967 * common/config/sh/sh-common.c: Remove SH5 support.
26968 * config/sh/constraints.md: Likewise.
26969 * config/sh/config/sh/elf.h: Likewise.
26970 * config/sh/linux.h: Likewise.
26971 * config/sh/netbsd-elf.h: Likewise.
26972 * config/sh/predicates.md: Likewise.
26973 * config/sh/sh-c.c: Likewise.
26974 * config/sh/sh-protos.h: Likewise.
26975 * config/sh/sh.c: Likewise.
26976 * config/sh/sh.h: Likewise.
26977 * config/sh/sh.md: Likewise.
26978 * config/sh/sh.opt: Likewise.
26979 * config/sh/sync.md: Likewise.
26980 * config/sh/sh64.h: Delete.
26981 * config/sh/shmedia.h: Likewise.
26982 * config/sh/shmedia.md: Likewise.
26983 * config/sh/sshmedia.h: Likewise.
26984 * config/sh/t-netbsd-sh5-64: Likewise.
26985 * config/sh/t-sh64: Likewise.
26986 * config/sh/ushmedia.h: Likewise.
26988 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26990 * config/i386/i386.md (sign_extend to memory peephole2s): Use
26991 general_reg_operand instead of register_operand predicate.
26993 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26995 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
26997 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
26999 * match.pd (A - B > A, A + B < A): New transformations.
27001 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
27003 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
27004 which defaults to true. Emit an outer pair of parentheses only if
27005 EMIT_PARENS. When continuing a chain of && or || (or & or |),
27006 don't emit parentheses for the right-hand operand.
27008 2016-04-27 Jeff Law <law@redhat.com>
27010 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
27012 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27014 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
27015 (altivec_lvx_<mode>_internal): Document.
27016 (altivec_lvx_<mode>_2op): New define_insn.
27017 (altivec_lvx_<mode>_1op): Likewise.
27018 (altivec_lvx_<mode>_2op_si): Likewise.
27019 (altivec_lvx_<mode>_1op_si): Likewise.
27020 (altivec_stvx_<mode>): Remove.
27021 (altivec_stvx_<mode>_internal): Document.
27022 (altivec_stvx_<mode>_2op): New define_insn.
27023 (altivec_stvx_<mode>_1op): Likewise.
27024 (altivec_stvx_<mode>_2op_si): Likewise.
27025 (altivec_stvx_<mode>_1op_si): Likewise.
27026 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27027 Expand vec_ld and vec_st during parsing.
27028 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
27030 (altivec_expand_stvx_be): Likewise.
27031 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
27032 address-masking behavior in RTL.
27033 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
27034 address-masking behavior in RTL.
27035 (altivec_expand_builtin): Change builtin code arguments for calls
27036 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
27037 (insn_is_swappable_p): Avoid incorrect swap optimization in the
27038 presence of lvx/stvx patterns.
27039 (alignment_with_canonical_addr): New function.
27040 (alignment_mask): Likewise.
27041 (find_alignment_op): Likewise.
27042 (recombine_lvx_pattern): Likewise.
27043 (recombine_stvx_pattern): Likewise.
27044 (recombine_lvx_stvx_patterns): Likewise.
27045 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
27046 stvx patterns from expand.
27047 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
27049 (vector_altivec_store_<mode>): Likewise.
27051 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
27053 * config/aarch64/aarch64.md
27054 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
27055 remove the "fp" attributes.
27056 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
27057 add the "simd" attributes.
27058 (*movdf_aarch64): Likewise.
27059 (*movtf_aarch64): Remove the "fp" attributes.
27060 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
27061 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
27063 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27065 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
27066 rtx to rtx_code_label *.
27067 * rtl.h (maybe_set_first_label_num): Likewise.
27069 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27071 * df-core.c (df_add_problem): Make the problem param be const.
27072 (df_remove_problem): Make local "problem" be const.
27073 * df-problems.c (problem_RD): Make const.
27074 (problem_LR): Likewise.
27075 (problem_LIVE): Likewise.
27076 (problem_MIR): Likewise.
27077 (problem_CHAIN): Likewise.
27078 (problem_WORD_LR): Likewise.
27079 (problem_NOTE): Likewise.
27080 (problem_MD): Likewise.
27081 * df-scan.c (problem_SCAN): Likewise.
27082 * df.h (struct df_problem): Make field "dependent_problem" be
27084 (struct dataflow): Likewise for field "problem".
27085 (df_add_problem): Make param const.
27087 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
27089 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
27090 inter-unit moves to/from vector registers are enabled. Do not disable
27093 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27095 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
27096 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
27098 (enum df_problem_id): ...this new enum.
27099 (struct df_problem): Convert field "id" from "int" to
27100 enum df_problem_id.
27102 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27104 * rtl.def: Update comment for "things in the instruction chain" to
27105 reflect the removal of the leading "i" field for INSN_UID in
27106 r210360. Fix bogus apostrophe.
27108 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
27110 * config/i386/i386.md
27111 (lea arith with mem operand + setcc peephole2): Set operator mode.
27113 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
27116 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
27117 (dimode_scalar_to_vector_candidate_p): This.
27118 (timode_scalar_to_vector_candidate_p): New function.
27119 (scalar_to_vector_candidate_p): Likewise.
27120 (timode_check_non_convertible_regs): Likewise.
27121 (timode_remove_non_convertible_regs): Likewise.
27122 (remove_non_convertible_regs): Likewise.
27123 (remove_non_convertible_regs): Renamed to ...
27124 (dimode_remove_non_convertible_regs): This.
27125 (scalar_chain::~scalar_chain): Make it virtual.
27126 (scalar_chain::compute_convert_gain): Make it pure virtual.
27127 (scalar_chain::mark_dual_mode_def): Likewise.
27128 (scalar_chain::convert_insn): Likewise.
27129 (scalar_chain::convert_registers): Likewise.
27130 (scalar_chain::add_to_queue): Make it protected.
27131 (scalar_chain::emit_conversion_insns): Likewise.
27132 (scalar_chain::replace_with_subreg): Likewise.
27133 (scalar_chain::replace_with_subreg_in_insn): Likewise.
27134 (scalar_chain::convert_op): Likewise.
27135 (scalar_chain::convert_reg): Likewise.
27136 (scalar_chain::make_vector_copies): Likewise.
27137 (scalar_chain::convert_registers): New pure virtual function.
27138 (class dimode_scalar_chain): New class.
27139 (class timode_scalar_chain): Likewise.
27140 (scalar_chain::mark_dual_mode_def): Renamed to ...
27141 (dimode_scalar_chain::mark_dual_mode_def): This.
27142 (timode_scalar_chain::mark_dual_mode_def): New function.
27143 (timode_scalar_chain::convert_insn): Likewise.
27144 (dimode_scalar_chain::convert_registers): Likewise.
27145 (scalar_chain::compute_convert_gain): Renamed to ...
27146 (dimode_scalar_chain::compute_convert_gain): This.
27147 (scalar_chain::replace_with_subreg): Renamed to ...
27148 (dimode_scalar_chain::replace_with_subreg): This.
27149 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
27150 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
27151 (scalar_chain::make_vector_copies): Renamed to ...
27152 (dimode_scalar_chain::make_vector_copies): This.
27153 (scalar_chain::convert_reg): Renamed to ...
27154 (dimode_scalar_chain::convert_reg ): This.
27155 (scalar_chain::convert_op): Renamed to ...
27156 (dimode_scalar_chain::convert_op): This.
27157 (scalar_chain::convert_insn): Renamed to ...
27158 (dimode_scalar_chain::convert_insn): This.
27159 (scalar_chain::convert): Call convert_registers.
27160 (convert_scalars_to_vector): Change to scalar_chain pointer to
27161 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
27162 in 32-bit mode. Delete scalar_chain pointer. Call
27163 free_dominance_info in 64-bit mode.
27164 (pass_stv::gate): Remove TARGET_64BIT check.
27165 (ix86_option_override): Put the 64-bit STV pass before the CSE
27168 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
27170 * dwarf2out.h (struct dw_loc_descr_node): Remove the
27171 dw_loc_frame_offset field.
27172 * dwarf2out.c (new_loc_descr): Likewise.
27173 (resolve_args_picking_1): Turn the VISITED hash set into a
27174 FRAME_OFFSET hash map. Use it to associate a frame offset to
27175 visited nodes. Remove uses of the CHECKING_P macro.
27176 (resolve_args_picking): Update call to resolve_args_picking_1.
27178 2016-04-27 Martin Liska <mliska@suse.cz>
27180 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
27181 (free_loop_data): Release vuses of groups.
27183 2016-04-27 Bin Cheng <bin.cheng@arm.com>
27185 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
27186 instead of redundant use_id and boolean have_use_for.
27187 (struct iv_use): Change sub_id into group_id. Remove field next.
27188 Move fields: related_cands, n_map_members, cost_map and selected
27190 (struct iv_group): ... here. New structure.
27191 (struct iv_common_cand): Use structure declaration directly.
27192 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
27193 (MAX_CONSIDERED_USES): Rename macro to ...
27194 (MAX_CONSIDERED_GROUPS): ... here.
27195 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
27196 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
27197 (dump_uses): Rename to ...
27198 (dump_groups): ... here. Update all uses.
27199 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
27200 (find_induction_variables): Refactor format of dump information.
27201 (record_sub_use): Delete.
27202 (record_use): Update all uses.
27203 (record_group): New function.
27204 (record_group_use, find_interesting_uses_op): Call above functions.
27206 (find_interesting_uses_cond): Ditto.
27207 (group_compare_offset): New function.
27208 (split_all_small_groups): Rename to ...
27209 (split_small_address_groups_p): ... here. Update all uses.
27210 (split_address_groups): Update all uses.
27211 (find_interesting_uses): Refactor format of dump information.
27212 (add_candidate_1): Update all uses. Remove redundant check on iv,
27214 (add_candidate, record_common_cand): Remove redundant assert.
27215 (add_iv_candidate_for_biv): Update use.
27216 (add_iv_candidate_derived_from_uses): Update all uses.
27217 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
27218 (alloc_use_cost_map): Ditto.
27219 (set_use_iv_cost, get_use_iv_cost): Rename to ...
27220 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
27221 (determine_use_iv_cost_generic): Ditto.
27222 (determine_group_iv_cost_generic): Ditto.
27223 (determine_use_iv_cost_address): Ditto.
27224 (determine_group_iv_cost_address): Ditto.
27225 (determine_use_iv_cost_condition): Ditto.
27226 (determine_group_iv_cost_cond): Ditto.
27227 (determine_use_iv_cost): Ditto.
27228 (determine_group_iv_cost): Ditto.
27229 (set_autoinc_for_original_candidates): Update all uses.
27230 (find_iv_candidates): Update all uses. Refactor dump information.
27231 (determine_use_iv_costs): Ditto.
27232 (determine_iv_costs): Ditto.
27233 (iv_ca_cand_for_use): Rename to ...
27234 (iv_ca_cand_for_group): ... here. Update all uses.
27235 (iv_ca_add_use, iv_ca_add_group): Ditto.
27236 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
27237 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
27238 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
27239 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
27240 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
27241 (create_new_iv, adjust_iv_update_pos): Ditto.
27242 (rewrite_use_address): Delete.
27243 (rewrite_use_address_1): Rename to ...
27244 (rewrite_use_address): ... here.
27245 (rewrite_use_compare): Update all uses.
27246 (rewrite_use): Delete.
27247 (rewrite_uses): Rename to ...
27248 (rewrite_groups): ... here. Update all uses.
27249 (remove_unused_ivs, free_loop_data): Update all uses.
27250 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
27252 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27254 * rtlanal.c (nonzero_bits1): Convert preprocessor check
27255 for WORD_REGISTER_OPERATIONS to runtime check.
27257 2016-04-27 Richard Biener <rguenther@suse.de>
27260 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
27261 aggregate_value_p to determine if a function result is
27262 returned by reference.
27263 (ipa_pta_execute): Functions having their address taken are
27264 not automatically nonlocal.
27266 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27269 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
27270 * fold-const.c (operand_equal_p): If flag_checking and
27271 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
27272 and if it returns non-zero, assert iterative_hash_expr on both
27275 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27277 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
27279 2016-04-27 Nick Clifton <nickc@redhat.com>
27281 PR middle-end/49889
27282 * varasm.c (merge_weak): Generate an error if an attempt is made
27283 to convert a non-weak static function into a weak, public function.
27285 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27287 * params.def (MAX_PARTITION_SIZE): New param.
27288 * doc/invoke.texi: Document lto-max-partition.
27290 2016-04-27 Richard Biener <rguenther@suse.de>
27293 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
27294 function cummulating used_from_other_partition, externally_visible
27295 and force_output from aliases.
27296 (refered_from_nonlocal_var): Likewise.
27297 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
27298 node flags properly.
27300 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27302 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
27303 (-Wmemset-elt-size): New item.
27305 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
27308 * stor-layout.h (internal_reference_types): Delete.
27309 * stor-layout.c (reference_types_internal): Likewise.
27310 (internal_reference_types): Likewise.
27311 (layout_type) <REFERENCE_TYPE>: Adjust.
27313 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27316 * tree.h (inchash::add_expr): Add FLAGS argument.
27317 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
27318 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
27319 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
27320 Formatting fix. Adjust recursive calls. For tcc_comparison,
27321 if swap_tree_comparison (code) is smaller than code, hash that
27322 and arguments in the other order. Hash CONVERT_EXPR the same
27323 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
27324 of ADDR_EXPR of decl as the decl itself. Add or remove
27325 OEP_ADDRESS_OF from recursive flags as needed. For
27326 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
27327 operands commutatively and only the third one normally.
27328 For internal CALL_EXPR hash in CALL_EXPR_IFN.
27330 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
27332 * config/rtems.h (LIB_SPEC): Add -latomic.
27334 2016-04-27 Joel Sherrill <joel@rtems.org>
27336 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
27337 xilink.ld and flags not relevant to RTEMS.
27339 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27341 * toplev.c (backend_init_target): Avoid calling init_reload when using
27344 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27346 * reorg.c (try_merge_delay_insns): Declare i and j inside the
27347 for loops rather than one for the whole function.
27349 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27351 * match.pd (X + CST CMP X): New transformation.
27353 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27355 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
27356 * fold-const.c (fold_binary_loc): Remove 2 transformations
27357 superseded by match.pd.
27358 * match.pd (x+x -> x*2): Generalize to integers.
27360 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
27362 * config/i386/i386.md (operation on memory peephole): Duplicate an
27363 existing peephole and adapt it to match lea rather than an operation
27366 PR rtl-optimization/57193
27367 * opts.c (default_options_table): Add OPT_frename_registers at -O2
27369 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
27371 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27373 * tree-if-conv.c (any_pred_load_store): New static variable.
27374 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
27375 any_pred_load_store instead of and_mask_load_store.
27376 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
27377 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
27378 (combine_blocks, tree_if_conversion): Ditto.
27380 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27382 PR tree-optimization/70771
27383 PR tree-optimization/70775
27384 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
27385 virtual PHI nodes. Delete parameter.
27386 (if_convertible_loop_p_1): Delete argument to above function.
27387 (predicate_all_scalar_phis): Delete code handling single-argument
27389 (tree_if_conversion): Mark and update virtual SSA.
27391 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27394 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
27395 (x86_elf_aligned_common): Rename to ...
27396 (x86_elf_aligned_decl_common): ... this.
27397 Add decl arg. Switch to .lbss for largecomm object. Use
27398 LARGECOMM_SECTION_ASM_OP.
27399 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
27401 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
27402 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
27404 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27405 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
27407 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27410 * config/i386/i386.c (SECTION_LARGE): Define.
27411 (x86_64_elf_select_section): Set it for large data/bss sections.
27412 Only clear SECTION_WRITE for .lrodata.
27413 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
27415 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
27416 * varasm.c (default_elf_asm_named_section): Grow flagchars.
27417 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
27419 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
27420 * doc/tm.texi: Regenerate.
27422 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27425 * configure.ac (--enable-checking): Document extra flag, for
27426 non-release builds default to --enable-checking=yes,extra.
27427 If misc checking and extra checking, define CHECKING_P to 2 instead
27429 * common.opt (fchecking=): Add.
27430 * doc/invoke.texi (-fchecking=): Document.
27431 * doc/install.texi: Document --enable-checking changes.
27432 * configure: Regenerated.
27433 * config.in: Regenerated.
27435 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27437 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
27438 attribute instead of which_alternative.
27439 * config/i386/sse.md (*mov<mode>_internal): Ditto.
27440 Use EXT_REX_SSE_REG_P where appropriate.
27442 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27444 * config/i386/predicates.md (const0_operand): Do not match
27445 const_wide_int code.
27446 (const1_operand): Ditto.
27448 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27450 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
27451 for SSE constm1 operands and TARGET_AVX512VL.
27452 (*movti_internal): Ditto.
27453 (*mov<mode>_or): Use constm1_operand predicate.
27454 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
27455 for SSE vector_all_ones operands and TARGET_AVX512VL.
27456 * config/i386/predicates.md (constm1_operand): New predicate.
27457 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
27458 emission of constant -1 load.
27460 2016-04-25 Jason Merrill <jason@redhat.com>
27462 * gdbinit.in: Skip is-a.h.
27464 * attribs.c (register_scoped_attributes): Fix logic.
27465 * attribs.h: Declare register_scoped_attributes.
27467 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27469 * config/rs6000/rs6000-builtin.def: Correct pasto error for
27470 stxvd2x and stxvw4x built-in functions.
27472 2016-04-25 DJ Delorie <dj@redhat.com>
27474 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
27475 (ashrhi3): Likewise.
27476 (lshrhi3): Likewise.
27478 2016-04-25 Richard Biener <rguenther@suse.de>
27480 PR tree-optimization/70780
27481 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
27482 wasn't visited yet.
27483 (compute_antic): Mark blocks with abnormal preds as visited as
27484 they have a final empty antic-in solution already.
27486 2016-04-25 Michael Collison <michael.collison@linaro.org>
27488 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
27490 2016-04-25 Michael Collison <michael.collison@linaro.org>
27492 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
27493 mode is VQI to improve mixed mode vectorization.
27494 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
27495 define_insn to match low half of signed vaddw.
27496 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
27497 define_insn to match high half of signed vaddw.
27498 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
27499 define_insn to match low half of unsigned vaddw.
27500 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
27501 define_insn to match high half of unsigned vaddw.
27502 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
27503 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27504 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
27506 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27507 * config/arm/predicates.md (vect_par_constant_high): Support
27508 big endian and simplify by calling
27509 arm_simd_check_vect_par_cnst_half
27510 (vect_par_constant_low): Likewise.
27512 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27514 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
27515 predicate for operand 2.
27517 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
27518 H.J. Lu <hongjiu.lu@intel.com>
27520 * config/i386/i386-protos.h (standard_sse_constant_p): Add
27521 machine_mode argument.
27522 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
27523 constm1_rtx operands. For VOIDmode constants, get mode from
27524 pred_mode. Check mode size if the mode is supported by ABI.
27525 (standard_sse_constant_opcode): Do not use standard_constant_p.
27526 Strictly check ABI support for all-ones operands.
27527 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
27528 immediates. Update calls to standard_sse_constant_p.
27529 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
27530 (ix86_rtx_costs): Ditto.
27531 * config/i386/i386.md (*movxi_internal_avx512f): Use
27532 nonimmediate_or_sse_const_operand instead of vector_move_operand.
27533 Use (v,BC) alternative instead of (v,C). Use register_operand
27534 checks instead of MEM_P.
27535 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
27536 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
27537 isa attribute. Use register_operand checks instead of MEM_P.
27538 (*movti_internal): Use nonimmediate_or_sse_const_operand for
27539 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
27540 alternative and corresponding sse2 isa attribute.
27541 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
27542 to standard_sse_constant_p.
27543 (FP constant splitters): Ditto.
27544 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
27546 * config/i386/predicates.md (constm1_operand): Remove.
27547 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
27548 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
27549 vector_all_ones_operand instead of constm1_operand.
27551 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27553 * print-rtl.c (print_rtx_insn_vec): New function.
27554 * print-rtl.h: New prototype.
27555 * store-motion.c (struct st_expr): Make avail_stores a vector.
27556 (st_expr_entry): Adjust.
27557 (free_st_expr_entry): Likewise.
27558 (print_store_motion_mems): Likewise.
27559 (find_moveable_store): Likewise.
27560 (compute_store_table): Likewise.
27561 (delete_store): Likewise.
27562 (build_store_vectors): Likewise.
27564 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27566 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
27568 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27570 * vec.h (vec_safe_contains): New function.
27571 (vec::contains): Likewise.
27572 (vec::begin): Likewise.
27573 (vec::end): Likewise.
27575 2016-04-23 Jakub Jelinek <jakub@redhat.com>
27578 * cfgexpand.c (expand_stack_vars): Fix typo.
27580 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27582 * system.h (list, map, set, vector): Include conditionally.
27583 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
27584 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
27585 * ipa-icf.c (INCLUDE_LIST): Define.
27586 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
27587 * config/sh/sh.c (INCLUDE_VECTOR): Define.
27588 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
27589 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
27590 * cp/logic.cc (INCLUDE_LIST): Define.
27591 * fortran/trans-common.c (INCLUDE_MAP): Define.
27593 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27595 * auto-profile.c: Remove <string.h> include.
27596 * ipa-icf-gimple.c: Remove <list> include.
27597 * diagnostic.c: Remove <new> include.
27598 * genmatch.c: Likewise.
27599 * pretty-print.c: Likewise.
27600 * toplev.c: Likewise
27601 * c/c-objc-common.c: Likewise.
27602 * cp/error.c: Likewise.
27603 * fortran/error.c: Likewise.
27605 2016-04-22 Richard Biener <rguenther@suse.de>
27607 * lto-streamer-in.c (input_ssa_names): Do not allocate
27608 GIMPLE_NOP for all SSA names.
27609 * lto-streamer-out.c (output_ssa_names): Do not output
27610 SSA names that should have been released.
27612 2016-04-22 Richard Biener <rguenther@suse.de>
27614 PR tree-optimization/70740
27615 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
27618 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
27621 * config/i386/predicates.md (call_insn_operand): Replace
27622 sibcall_memory_operand with memory_operand.
27624 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
27626 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
27627 has_single_use() tests.
27628 (register_edge_assert_for_1): Likewise.
27629 (find_assert_locations_1): Check the liveness bitmap instead of
27630 checking has_single_use().
27632 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
27635 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
27636 Extract AVX-512BW constraint from AVX.
27638 2016-04-21 Richard Biener <rguenther@suse.de>
27640 PR tree-optimization/70725
27641 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
27642 for phi_convertible_by_degenerating_args.
27643 (predicate_all_scalar_phis): Handle single-argument PHIs.
27645 2016-04-21 Richard Biener <rguenther@suse.de>
27647 PR middle-end/70747
27648 * fold-const.c (fold_comparison): Return properly typed
27651 2016-04-21 Bin Cheng <bin.cheng@arm.com>
27653 PR tree-optimization/70715
27654 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
27655 after expanding BASE using expand_simple_operations.
27657 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27659 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
27660 New transformations.
27662 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27664 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
27666 2016-04-20 Jan Hubicka <jh@suse.cz>
27668 * ipa-inline.c (can_inline_edge_p): Pass caller info to
27669 ultiimate_alias_target.
27670 (update_callee_keys): Likewise.
27671 (lookup_recursive_calls): Likewise.
27672 (speculation_useful_p): Likewise.
27674 2016-04-20 Jan Hubicka <jh@suse.cz>
27677 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
27678 (set_nothrow_flag_1): ... this; handle interposition correctly;
27679 recurse on aliases and thunks.
27680 (cgraph_node::set_nothrow_flag): New.
27681 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
27682 functions compiled with non-call exceptions that binds to current
27684 (propagate_nothrow): Be safe WRT interposition.
27685 * cgraph.h (set_nothrow_flag): Update prototype.
27687 2016-04-18 Jan Hubicka <jh@suse.cz>
27689 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27690 max_loop_iterations_int.
27691 (tree_unswitch_outer_loop): Likewise.
27693 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27695 PR tree-optimization/69489
27696 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
27697 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
27698 Revise dump message.
27699 (if_convertible_bb_p): Remove check on edge count of basic block's
27702 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27704 PR tree-optimization/56625
27705 PR tree-optimization/69489
27706 * tree-data-ref.h (DR_INNERMOST): New macro.
27707 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
27708 hashing struct innermost_loop_behavior.
27709 (ref_DR_map): Remove.
27710 (innermost_DR_map): New map.
27711 (baseref_DR_map): Revise comment.
27712 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
27713 to innermost_DR_map accroding to its innermost loop behavior.
27714 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
27715 to its innermost loop behavior.
27716 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
27717 Add initialization for innermost_DR_map. Record memory reference
27718 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
27719 have innermost loop behavior.
27720 (if_convertible_loop_p): Remove release for ref_DR_map. Release
27723 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
27725 * config/i386/i386.md (*lea<mode>_general_1): Rename from
27726 *lea_general_1. Use explicit SWI12 mode interator.
27727 (*lea<mode>_general_2): Rename from *lea_general_2.
27728 Use explicit SWI12 mode interator.
27729 (*lea<mode>_general_3): Rename from *lea_general_3.
27730 Use explicit SWI12 mode interator.
27731 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
27732 Use explicit SWI12 mode interator.
27733 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
27734 Use explicit SWI48 mode interator.
27736 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27738 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
27739 Short-cut unaligned load and store cases. Handle all integer
27741 (ix86_expand_vector_move_misalign): Short-cut unaligned load
27742 and store cases. Call ix86_avx256_split_vector_move_misalign
27743 directly without checking mode class.
27745 2016-04-20 Andrew Pinski <apinski@cavium.com>
27746 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27749 * config/aarch64/aarch64.md (sibcall): Force call
27750 address to be DImode for ILP32.
27751 (sibcall_value): Likewise.
27753 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27755 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
27757 2016-04-20 Richard Biener <rguenther@suse.de>
27759 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
27760 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
27761 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
27762 (maybe_push_res_to_seq): Adjust.
27763 * gimple-fold.c (maybe_build_generic_op): Likewise.
27765 2016-04-20 Marek Polacek <polacek@redhat.com>
27767 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
27770 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
27772 * config/i386/sse.md (vec_unpacks_lo_hi): Always
27773 use kmovw to support AVX512F target.
27775 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27777 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
27779 2016-04-20 Marek Polacek <polacek@redhat.com>
27781 PR tree-optimization/70725
27782 * tree-if-conv.c (is_false_predicate): New function.
27783 (predicate_mem_writes): Use it.
27785 2016-04-20 Richard Biener <rguenther@suse.de>
27787 PR tree-optimization/70726
27788 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
27789 shift amounts from a pattern stmt operand.
27791 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27794 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
27795 stack_restore_from_fpr pattern when restoring r15.
27796 (s390_optimize_prologue): Strip away the memory barrier in the
27797 parallel when trying to get rid of restore insns.
27798 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
27799 definition for loading the stack pointer from an FPR. Compared to
27800 the normal move insn this pattern includes a full memory barrier.
27802 2016-04-19 Jakub Jelinek <jakub@redhat.com>
27804 PR middle-end/70680
27805 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
27806 implicitly linear or lastprivate iterator on the outer context.
27808 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27810 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
27812 * config/i386/i386.md (ssememalign): Removed.
27813 * config/i386/sse.md: Remove ssememalign attribute from patterns.
27815 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27818 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
27819 const short * to __builtin_ia32_loaddquhi512_mask.
27820 (_mm512_maskz_loadu_epi16): Likewise.
27821 (_mm512_mask_storeu_epi16): Pass short * to
27822 __builtin_ia32_storedquhi512_mask.
27823 (_mm512_mask_loadu_epi8): Pass const char * to
27824 __builtin_ia32_loaddquqi512_mask.
27825 (_mm512_maskz_loadu_epi8): Likewise.
27826 (_mm512_mask_storeu_epi8): Pass char * to
27827 __builtin_ia32_storedquqi512_mask.
27828 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
27829 const double * to __builtin_ia32_loadupd512_mask.
27830 (_mm512_mask_loadu_pd): Likewise.
27831 (_mm512_maskz_loadu_pd): Likewise.
27832 (_mm512_storeu_pd): Pass double * to
27833 __builtin_ia32_storeupd512_mask.
27834 (_mm512_mask_storeu_pd): Likewise.
27835 (_mm512_loadu_ps): Pass const float * to
27836 __builtin_ia32_loadups512_mask.
27837 (_mm512_mask_loadu_ps): Likewise.
27838 (_mm512_maskz_loadu_ps): Likewise.
27839 (_mm512_storeu_ps): Pass float * to
27840 __builtin_ia32_storeups512_mask.
27841 (_mm512_mask_storeu_ps): Likewise.
27842 (_mm512_mask_loadu_epi64): Pass const long long * to
27843 __builtin_ia32_loaddqudi512_mask.
27844 (_mm512_maskz_loadu_epi64): Likewise.
27845 (_mm512_mask_storeu_epi64): Pass long long *
27846 to __builtin_ia32_storedqudi512_mask.
27847 (_mm512_loadu_si512): Pass const int * to
27848 __builtin_ia32_loaddqusi512_mask.
27849 (_mm512_mask_loadu_epi32): Likewise.
27850 (_mm512_maskz_loadu_epi32): Likewise.
27851 (_mm512_storeu_si512): Pass int * to
27852 __builtin_ia32_storedqusi512_mask.
27853 (_mm512_mask_storeu_epi32): Likewise.
27854 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
27855 char * to __builtin_ia32_storedquqi256_mask.
27856 (_mm_mask_storeu_epi8): Likewise.
27857 (_mm256_mask_loadu_epi16): Pass const short * to
27858 __builtin_ia32_loaddquhi256_mask.
27859 (_mm256_maskz_loadu_epi16): Likewise.
27860 (_mm_mask_loadu_epi16): Pass const short * to
27861 __builtin_ia32_loaddquhi128_mask.
27862 (_mm_maskz_loadu_epi16): Likewise.
27863 (_mm256_mask_loadu_epi8): Pass const char * to
27864 __builtin_ia32_loaddquqi256_mask.
27865 (_mm256_maskz_loadu_epi8): Likewise.
27866 (_mm_mask_loadu_epi8): Pass const char * to
27867 __builtin_ia32_loaddquqi128_mask.
27868 (_mm_maskz_loadu_epi8): Likewise.
27869 (_mm256_mask_storeu_epi16): Pass short * to.
27870 __builtin_ia32_storedquhi256_mask.
27871 (_mm_mask_storeu_epi16): Pass short * to.
27872 __builtin_ia32_storedquhi128_mask.
27873 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
27874 const double * to __builtin_ia32_loadupd256_mask.
27875 (_mm256_maskz_loadu_pd): Likewise.
27876 (_mm_mask_loadu_pd): Pass onst double * to
27877 __builtin_ia32_loadupd128_mask.
27878 (_mm_maskz_loadu_pd): Likewise.
27879 (_mm256_mask_storeu_pd): Pass double * to
27880 __builtin_ia32_storeupd256_mask.
27881 (_mm_mask_storeu_pd): Pass double * to
27882 __builtin_ia32_storeupd128_mask.
27883 (_mm256_mask_loadu_ps): Pass const float * to
27884 __builtin_ia32_loadups256_mask.
27885 (_mm256_maskz_loadu_ps): Likewise.
27886 (_mm_mask_loadu_ps): Pass const float * to
27887 __builtin_ia32_loadups128_mask.
27888 (_mm_maskz_loadu_ps): Likewise.
27889 (_mm256_mask_storeu_ps): Pass float * to
27890 __builtin_ia32_storeups256_mask.
27891 (_mm_mask_storeu_ps): ass float * to
27892 __builtin_ia32_storeups128_mask.
27893 (_mm256_mask_loadu_epi64): Pass const long long * to
27894 __builtin_ia32_loaddqudi256_mask.
27895 (_mm256_maskz_loadu_epi64): Likewise.
27896 (_mm_mask_loadu_epi64): Pass const long long * to
27897 __builtin_ia32_loaddqudi128_mask.
27898 (_mm_maskz_loadu_epi64): Likewise.
27899 (_mm256_mask_storeu_epi64): Pass long long * to
27900 __builtin_ia32_storedqudi256_mask.
27901 (_mm_mask_storeu_epi64): Pass long long * to
27902 __builtin_ia32_storedqudi128_mask.
27903 (_mm256_mask_loadu_epi32): Pass const int * to
27904 __builtin_ia32_loaddqusi256_mask.
27905 (_mm256_maskz_loadu_epi32): Likewise.
27906 (_mm_mask_loadu_epi32): Pass const int * to
27907 __builtin_ia32_loaddqusi128_mask.
27908 (_mm_maskz_loadu_epi32): Likewise.
27909 (_mm256_mask_storeu_epi32): Pass int * to
27910 __builtin_ia32_storedqusi256_mask.
27911 (_mm_mask_storeu_epi32): Pass int * to
27912 __builtin_ia32_storedqusi128_mask.
27913 * config/i386/i386-builtin-types.def (PCSHORT): New.
27914 (PINT64): Likewise.
27915 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
27916 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
27917 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
27918 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
27919 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
27920 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
27921 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
27922 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
27923 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
27924 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
27925 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
27926 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
27927 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
27928 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
27929 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
27930 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
27931 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
27932 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
27933 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
27934 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
27935 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
27936 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
27937 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
27938 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
27939 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
27940 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
27941 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
27942 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
27943 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
27944 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
27945 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
27946 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
27947 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
27948 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
27949 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
27950 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
27951 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
27952 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
27953 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
27954 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
27955 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
27956 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
27957 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
27958 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
27959 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
27960 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
27961 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
27962 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
27963 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
27965 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
27966 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
27968 (ix86_expand_vector_move_misalign): Likewise.
27969 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
27970 to scalar function prototype for unaligned load/store builtins.
27971 (ix86_expand_special_args_builtin): Updated.
27972 * config/i386/sse.md (UNSPEC_LOADU): Removed.
27973 (UNSPEC_STOREU): Likewise.
27974 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
27975 (VI_ULOADSTORE_F_AVX512VL): Likewise.
27976 (ssescalarsize): Handle V4TI, V2TI and V1TI.
27977 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27978 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27979 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
27980 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
27981 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
27982 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
27983 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
27984 (<avx512>_storedqu<mode>_mask): Likewise.
27985 (*sse4_2_pcmpestr_unaligned): Likewise.
27986 (*sse4_2_pcmpistr_unaligned): Likewise.
27987 (*mov<mode>_internal): Renamed to ...
27988 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
27989 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
27990 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
27991 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
27993 2016-04-19 Richard Biener <rguenther@suse.de>
27995 PR tree-optimization/70171
27996 * tree-ssa-phiprop.c: Include stor-layout.h.
27997 (phiprop_insert_phi): Handle the aggregate copy case.
27998 (propagate_with_phi): Likewise.
28000 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
28002 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
28003 instead of simplify_gen_subreg (... , 0).
28004 (ix86_delegitimize_address): Ditto.
28005 (ix86_split_divmod): Ditto.
28006 (ix86_split_copysign_const): Ditto.
28007 (ix86_split_copysign_var): Ditto.
28008 (ix86_expand_args_builtin): Ditto.
28009 (ix86_expand_round_builtin): Ditto.
28010 (ix86_expand_special_args_builtin): Ditto.
28011 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
28012 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
28013 (udivmodqi4): Ditto.
28014 (absneg splitters): Ditto.
28015 (*jcc_bt<mode>_1): Ditto.
28017 2016-04-19 Richard Biener <rguenther@suse.de>
28019 PR tree-optimization/70724
28020 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
28021 restoring out from ...
28022 (free_scc_vn): ... here.
28023 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
28024 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
28026 (pass_fre::execute): Restore SSA info.
28028 2016-04-19 Richard Biener <rguenther@suse.de>
28030 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
28031 * gimple-walk.c (walk_gimple_op): Initialize it.
28032 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
28033 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
28034 remapping SSA names of defs.
28035 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
28038 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
28040 PR middle-end/70689
28041 * lra-constraints.c (equiv_substition_p): New.
28042 (process_alt_operands): Use it.
28043 (swap_operands): Swap it.
28044 (curr_insn_transform): Update it.
28046 2016-04-18 Michael Matz <matz@suse.de>
28048 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
28049 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
28050 * tree-core.h (tree_type_common.align): Use bit-field.
28051 (tree_type_common.spare): New.
28052 (tree_decl_common.off_align): Make smaller.
28053 (tree_decl_common.align): Use bit-field.
28055 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
28056 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
28057 (scan_sharing_clauses): Ditto.
28058 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28059 (omp_finish_file): Ditto.
28060 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
28061 (layout_decl): Ditto.
28062 (relayout_decl): Ditto.
28063 (finalize_record_size): Use SET_TYPE_ALIGN.
28064 (finalize_type_size): Ditto.
28065 (finish_builtin_struct): Ditto.
28066 (layout_type): Ditto.
28067 (initialize_sizetypes): Ditto.
28068 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
28069 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
28070 (lookup_field_for_decl): Use SET_DECL_ALIGN.
28071 (get_chain_field): Ditto.
28072 (get_trampoline_type): Ditto.
28073 (get_nl_goto_field): Ditto.
28074 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
28076 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
28077 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
28078 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28079 (build_qualified_type): Use SET_TYPE_ALIGN.
28080 (build_aligned_type, build_range_type_1): Ditto.
28081 (build_atomic_base): Ditto.
28082 (build_common_tree_nodes): Ditto.
28083 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
28084 (expand_one_stack_var_at): Ditto.
28085 * coverage.c (build_var): Use SET_DECL_ALIGN.
28086 * except.c (init_eh): Ditto.
28087 * function.c (assign_parm_setup_block): Ditto.
28088 * symtab.c (increase_alignment_1): Ditto.
28089 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
28090 * tree-vect-stmts.c (ensure_base_align): Ditto.
28091 * varasm.c (align_variable): Ditto.
28092 (assemble_variable): Ditto.
28093 (build_constant_desc): Ditto.
28094 (output_constant_def_contents): Ditto.
28096 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
28097 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
28098 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
28099 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
28100 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
28102 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
28105 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
28106 replace %vmovsd with "%vmovq".
28107 (vec_concatv2df): Likewise.
28109 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
28111 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
28112 (*vec_extractv2si_0): Ditto.
28113 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
28114 (zero_extended_scalar_load_operand splitters): Ditto.
28115 (vec_extract splitters): Ditto.
28116 (*vec_extractv4si_0_zext): Ditto.
28117 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
28118 and lowpart_subreg.
28119 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
28120 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
28121 (*sse4_1_extractps): Use lowpart_subreg.
28122 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
28124 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28126 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
28128 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
28129 Mention Solaris 11 packaging changes.
28130 Update gas and gld requirements.
28131 Remove reference to pre-Solaris 10 bug.
28132 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
28134 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
28137 2016-04-17 Jan Hubicka <jh@suse.cz>
28139 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
28140 max_loop_iterations_int.
28142 2016-04-18 Richard Biener <rguenther@suse.de>
28144 PR tree-optimization/43434
28145 * tree-ssa-structalias.c (struct vls_data): New.
28146 (visit_loadstore): Handle all pointer-based accesses.
28147 (compute_dependence_clique): Compute a bitmap of restrict tags
28148 assigned bases and pass it to visit_loadstore.
28150 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
28153 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
28154 armv8.1-a and armv8.1-a+crc.
28156 2016-04-18 Richard Biener <rguenther@suse.de>
28158 PR tree-optimization/70701
28159 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
28160 references after translating through a memcpy.
28162 2016-04-18 Richard Biener <rguenther@suse.de>
28164 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
28165 (compute_antic): ... here. For partial antic use regular
28166 postorder and scrap iteration.
28167 (compute_partial_antic_aux): Remove unused return value.
28168 (init_pre): Do not allocate postorder.
28169 (fini_pre): Do not free postorder.
28171 2016-04-18 Richard Biener <rguenther@suse.de>
28173 PR middle-end/37870
28174 * expmed.c (extract_bit_field_1): Remove broken case
28175 using a wider MODE_INT mode.
28177 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
28179 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
28180 unless compiling with at least GCC-4.8.
28182 2016-04-17 Jan Hubicka <jh@suse.cz>
28185 * graphite.c (graphite_finalize): Update call to
28186 tree_estimate_probability.
28187 * predict.h (tree_estimate_probability): Update prototype.
28189 2016-04-17 Jan Hubicka <jh@suse.cz>
28191 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
28192 (tree_estimate_probability): Likewise.
28193 (pass_profile::execute): Update.
28194 (report_predictor_hitrates): New function.
28195 * profile.c (compute_branch_probabilities): Use it.
28196 * predict.h (report_predictor_hitrates): Declare.
28198 2016-04-17 Jan Hubicka <jh@suse.cz>
28201 * cgraph.h (cgraph_node::set_const_flag,
28202 cgraph_node::set_pure_flag): Update prototype to return bool;
28204 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
28205 of interposable symbol are interposable, too.
28206 (cgraph_set_const_flag_1): Rename to ...
28207 (set_const_flag_1): ... this one; change to self recursive function
28208 instead of call_for_symbol_thunks_and_aliases. Handle correctly
28209 clearnig the flag in all variants and also virtual thunks of const
28210 functions are pure; track if any change was done.
28211 (cgraph_node::set_const_flag): Update.
28212 (struct set_pure_flag_info): New struct.
28213 (cgraph_set_pure_flag_1): Rename to ...
28214 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
28215 rather than pointer encoded flags; track if any changes was done;
28216 handle correctly clearning flag and setting flag of aliases already
28218 (cgraph_node::set_pure_flag): Update.
28219 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
28221 2016-04-17 Tom de Vries <tom@codesourcery.com>
28224 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
28225 backslash in label.
28227 2016-04-17 Tom de Vries <tom@codesourcery.com>
28229 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
28230 '{}<> ' as escape-for-record.
28232 2016-04-17 Tom de Vries <tom@codesourcery.com>
28234 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
28237 2016-04-17 Tom de Vries <tom@codesourcery.com>
28240 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
28241 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
28242 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
28243 * passes.c (finish_optimization_passes): Only call
28244 finish_graph_dump_file if dfi->graph_dump_initialized.
28245 (execute_function_dump, pass_init_dump_file): Use
28246 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
28248 2016-04-17 Tom de Vries <tom@codesourcery.com>
28250 PR tree-optimization/70256
28251 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
28252 (debug_varmap): New function.
28254 2016-04-17 Tom de Vries <tom@codesourcery.com>
28257 * passes.c (pass_manager::register_pass): Propagate pflags.
28259 2016-04-17 Tom de Vries <tom@codesourcery.com>
28262 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
28263 * passes.c (pass_manager::pass_manager): Declare and init p_start in
28264 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
28265 check if it's equal to p_start.
28266 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
28268 2016-04-15 Jan Hubicka <jh@suse.cz>
28271 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
28272 function does not bind to current def.
28273 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
28274 handle conservatively calls to functions that does not need to bind
28276 (check_call): Update call of worse_state.
28277 (ignore_edge_for_nothrow): Update.
28278 (ignore_edge_for_pure_const): Likewise.
28279 (propagate_pure_const): Update calls to worse_state.
28280 (skip_function_for_local_pure_const): Reformat comments.
28282 2016-04-15 Jan Hubicka <jh@suse.cz>
28285 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
28286 (cgraph_node::function_symbol): Likewise.
28287 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28288 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
28289 (symtab_node::ultimate_alias_target): Add REF parameter.
28290 (symtab_node::binds_to_current_def_p): Declare.
28291 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
28292 (cgraph_node::function_symbol): Likewise.
28293 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28294 (cgraph_node::get_availability): Likewise.
28295 (cgraph_edge::binds_to_current_def_p): New inline function.
28296 (varpool_node::get_availability): Add REF parameter.
28297 (varpool_node::ultimate_alias_target): Likewise.
28298 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
28299 (symtab_node::binds_to_current_def_p): Likewise.
28300 * varpool.c (varpool_node::get_availability): Likewise.
28302 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28305 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
28306 Fix mode size check.
28308 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28310 * BASE-VER: Set to 7.0.0.
28312 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
28314 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
28316 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28318 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
28319 architecture revisions.
28321 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
28323 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
28324 * config/i386/i386.c (ix86_using_red_zone): No longer static.
28325 * config/i386/i386.md (stack decrement to push peepholes): Guard
28326 with !x86_using_red_zone ().
28328 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28331 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
28332 to dump_generic_node.
28333 (NIY): Pass also flags to do_niy.
28335 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
28337 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
28338 (simd_clone_vector_of_formal_parm_types)
28339 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
28340 (simd_clone_mangle, simd_clone_create)
28341 (simd_clone_adjust_return_type, create_tmp_simd_array)
28342 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
28343 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
28344 (ipa_simd_modify_function_body, simd_clone_linear_addend)
28345 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
28346 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
28347 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
28348 * omp-simd-clone.c: ... this new file.
28349 (simd_clone_vector_of_formal_parm_types): Make it static.
28350 * Makefile.in (OBJS): Add omp-simd-clone.o.
28352 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28355 * config/i386/sse.md: Use proper memory operand modifiers.
28358 2016-04-15 Richard Biener <rguenther@suse.de>
28359 Alan Modra <amodra@gmail.com>
28361 PR tree-optimization/70130
28362 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
28363 when alignment stays not the same and no not use the realign
28366 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28369 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28370 direct move handlers for KFmode. Change TFmode handlers test from
28371 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
28373 2016-04-14 Jakub Jelinek <jakub@redhat.com>
28376 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
28377 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
28378 (inlined_polymorphic_ctor_dtor_block_p): Use it.
28379 * tree-ssa-live.c (remove_unused_scope_block_p): When
28380 in_ctor_dtor_block, avoid discarding not just BLOCKs with
28381 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
28382 block_ultimate_origin is FUNCTION_DECL.
28383 (remove_unused_locals): If current_function_decl is
28384 polymorphic_ctor_dtor_p, pass initial true to
28385 remove_unused_scope_block_p' is_ctor_dtor_block.
28387 2016-04-14 Martin Sebor <msebor@redhat.com>
28392 * doc/extend.texi (Variable Length): Revert.
28394 2016-04-14 Marek Polacek <polacek@redhat.com>
28395 Jan Hubicka <hubicka@ucw.cz>
28398 * tree.c (verify_type): Disable the canonical type of main variant
28401 2016-04-14 Jason Merrill <jason@redhat.com>
28403 * cfgexpand.c, expr.c: Revert previous change.
28405 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
28407 PR middle-end/70643
28408 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
28409 when building a mem ref for the incoming reduction variable.
28411 2016-04-14 Richard Biener <rguenther@suse.de>
28413 PR tree-optimization/70614
28414 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
28415 loop if the evolution dropped to chrec_dont_know.
28416 (interpret_condition_phi): Likewise.
28418 2016-04-14 Richard Biener <rguenther@suse.de>
28420 PR tree-optimization/70623
28421 * tree-ssa-pre.c (changed_blocks): Make global ...
28422 (compute_antic): ... local here. Move and fix worklist
28423 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
28424 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
28425 worklist handling, dump when ANTIC_IN changed.
28426 (compute_partial_antic_aux): Remove worklist handling.
28427 (init_pre): Do not compute post dominators. Add a comment about
28428 the CFG order chosen.
28429 (fini_pre): Do not free post dominators.
28431 2016-04-13 Martin Sebor <msebor@redhat.com>
28436 * doc/extend.texi (Variable Length): Document C++ specifics.
28438 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28441 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
28442 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
28443 eh edges have been purged.
28446 * tree-sra.c (create_access_replacement,
28447 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
28449 * tree-pretty-print.c (dump_fancy_name): New function.
28450 (dump_decl_name, dump_generic_node): Use it.
28452 2016-04-13 Jason Merrill <jason@redhat.com>
28454 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
28455 * expr.c (expand_expr_real_1): Likewise.
28457 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
28459 * config/i386/i386.md (kunpckhi): Swap operands.
28460 (kunpcksi): Likewise.
28461 (kunpckdi): Likewise.
28462 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
28463 (vec_pack_trunc_<mode>): Likewise.
28465 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28468 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
28470 PR middle-end/70633
28471 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
28472 gimplification turns some element into non-constant.
28475 * rtl.h (convert_memory_address_addr_space_1): New prototype.
28476 * explow.c (convert_memory_address_addr_space_1): No longer static,
28477 add NO_EMIT argument and don't call convert_modes if true, pass
28478 it down recursively, remove break after return.
28479 (convert_memory_address_addr_space): Adjust caller.
28480 * simplify-rtx.c (simplify_unary_operation_1): Call
28481 convert_memory_address_addr_space_1 instead of convert_memory_address,
28482 if it returns NULL, don't simplify.
28484 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
28487 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
28489 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28491 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28492 Bump the upper SIMDLEN limits, so that if the return type or
28493 characteristic type if the return type is void can be passed in
28494 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
28497 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28500 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
28501 Do not use "=" constraint on an input constraint.
28502 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
28503 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
28504 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
28505 generates (neg (abs ...)) instead of (abs ...).
28507 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28509 PR rtl-optimization/70596
28510 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
28511 just invalidate LRA data and reset them. Adjust dump wording.
28513 2016-04-12 Martin Liska <mliska@suse.cz>
28516 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28518 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28520 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28521 max_loop_iterations_int.
28522 (tree_unswitch_outer_loop): Likewise.
28523 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28524 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28526 2016-04-12 Tom de Vries <tom@codesourcery.com>
28528 PR tree-optimization/68756
28529 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
28530 instead of new_name.
28532 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28534 PR tree-optimization/70602
28535 * tree-sra.c (generate_subtree_copies): Don't write anything into
28536 constant pool decls.
28538 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
28539 regardless whether there are depend clauses or not.
28541 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28544 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
28545 target attribute and pragma from changing the -mfloat128
28546 and -mfloat128-hardware options.
28548 * doc/extend.texi (Additional Floating Types): Document PowerPC
28549 __float128 restrictions.
28551 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28554 * config/aarch64/driver-aarch64.c
28555 (aarch64_get_extension_string_for_isa_flags): New.
28556 (arch_extension): Rename to...
28557 (aarch64_arch_extension): ...This.
28558 (ext_to_feat_string): Rename to...
28559 (aarch64_extensions): ...This.
28560 (aarch64_core_data): Keep track of architecture extension flags.
28561 (cpu_data): Rename to...
28562 (aarch64_cpu_data): ...This.
28563 (aarch64_arch_driver_info): Keep track of architecture extension
28565 (get_arch_name_from_id): Rename to...
28566 (get_arch_from_id): ...This, change return type.
28567 (host_detect_local_cpu): Update and reformat for renames, handle
28568 extensions through common infrastructure.
28570 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28573 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
28574 track of a canonical flag name.
28575 (all_extensions): Likewise.
28576 (arch_to_arch_name): Also track extension flags enabled by the arch.
28577 (all_architectures): Likewise.
28578 (aarch64_parse_extension): Move to here.
28579 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
28581 (aarch64_rewrite_selected_cpu): Update for above change.
28582 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
28583 are handled, such that the single explicit value enabled by an
28584 extension is kept seperate from the implicit values it also enables.
28585 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
28587 (aarch64_parse_extension): New.
28588 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
28589 here to config/aarch64/aarch64-protos.h.
28590 (aarch64_parse_extension): Move from here to
28591 common/config/aarch64/aarch64-common.c.
28592 (aarch64_option_print): Update.
28593 (aarch64_declare_function_name): Likewise.
28594 (aarch64_start_file): Likewise.
28595 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
28596 the canonical flag for extensions.
28597 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
28600 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28602 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
28605 2016-04-09 Tom de Vries <tom@codesourcery.com>
28607 PR tree-optimization/68953
28608 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
28609 first to last subscript.
28611 2016-04-09 Jakub Jelinek <jakub@redhat.com>
28613 PR tree-optimization/70586
28614 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
28617 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
28621 PR tree-optimization/70373
28622 PR middle-end/70533
28623 PR middle-end/70534
28624 PR middle-end/70535
28625 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
28626 clauses for acc parallel reductions as necessary. Error on those
28628 * omp-low.c (scan_sharing_clauses): Don't install variables which
28629 are used in acc parallel reductions.
28630 (lower_rec_input_clauses): Remove dead code.
28631 (lower_oacc_reductions): Add support for reference reductions.
28632 (lower_reduction_clauses): Remove dead code.
28633 (lower_omp_target): Don't remap variables appearing in acc parallel
28635 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
28637 2016-04-08 Jakub Jelinek <jakub@redhat.com>
28639 PR middle-end/70593
28640 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
28641 with multiple SSA_NAME defs, force the outputs other than first
28642 to be live before calling live_track_process_def on each output.
28644 PR rtl-optimization/70574
28645 * fwprop.c (forward_propagate_and_simplify): Don't add
28646 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
28647 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
28648 paradoxical subregs within *loc.
28650 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
28652 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
28653 -ftree-parallelize-loops={0,1}.
28654 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28655 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28656 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28657 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28658 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28660 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
28663 * asan.c (instrument_derefs): If we get unknown location, extract it
28664 with EXPR_LOCATION.
28665 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
28667 2016-04-08 Tom de Vries <tom@codesourcery.com>
28669 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
28670 implicit firstprivate clause.
28672 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28675 * config/arm/thumb2.md (tst + branch-> lsls + branch
28676 peephole below *orsi_not_shiftsi_si): Require that condition
28677 register is dead after the peephole.
28678 (second peephole after the above): Likewise.
28680 2016-04-08 Alan Modra <amodra@gmail.com>
28683 * builtins.c (fold_builtin_classify): For IBM extended precision,
28684 look at just the high-order double to test for NaN.
28685 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
28686 test just the high double for Inf but both doubles for subnormal
28689 2016-04-07 Jakub Jelinek <jakub@redhat.com>
28691 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
28692 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
28693 node->simdclone->mask_mode != VOIDmode masks.
28694 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
28695 earlier, use it instead of node->simdclone.
28696 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28697 Set clonei->mask_mode.
28699 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28702 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
28703 Pass it through to cp_parser_already_scoped_statement.
28704 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
28705 it through to cp_parser_statement.
28706 (cp_parser_statement): Pass IF_P through to
28707 cp_parser_iteration_statement.
28708 (cp_parser_pragma): Adjust call to
28709 cp_parser_iteration_statement.
28711 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28714 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
28715 resolve a future -Wparentheses warning.
28716 * omp-low.c (scan_sharing_clauses): Likewise.
28717 * tree-parloops.c (eliminate_local_variables): Likewise.
28719 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
28721 PR rtl-optimization/70398
28722 * lra-constraints.c (process_address_1): Check zero scale and code
28723 for reloading with zero scale.
28725 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
28727 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
28728 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
28730 2016-04-06 Jakub Jelinek <jakub@redhat.com>
28732 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28733 Add support for AVX512F clones, include them by default for
28734 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
28735 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
28738 PR middle-end/70550
28739 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
28740 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
28741 firstprivate clauses.
28742 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
28743 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
28744 (lower_omp_target): Set TREE_NO_WARNING for
28745 non-addressable possibly uninitialized vars which are copied into
28746 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
28748 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
28750 * config/pa/predicates.md (integer_store_memory_operand): Accept
28751 REG+D operands with a large offset when reload_in_progress is true.
28752 (floating_point_store_memory_operand): Likewise.
28754 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28757 * match.pd (nested int casts): Limit to GIMPLE.
28759 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
28762 * ipa-devirt.c (maybe_record_node): Fix comment; use
28763 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
28765 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28767 PR rtl-optimization/70542
28768 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
28769 if there are any uses other than insn or debug insns.
28771 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
28772 Jakub Jelinek <jakub@redhat.com>
28774 PR tree-optimization/70509
28775 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
28776 Shift HOST_WIDE_INT_1U instead of 1.
28778 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
28780 PR tree-optimization/70509
28781 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
28782 of the vector base type for index.
28784 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
28787 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
28789 2016-04-05 Richard Biener <rguenther@suse.de>
28791 PR tree-optimization/70526
28792 * tree-sra.c (build_ref_for_offset): Use prev_base to
28793 extract the alias pointer type.
28795 2016-04-05 Richard Biener <rguenther@suse.de>
28797 * dse.c (struct store_info): Remove alias_set member.
28798 (struct read_info_type): Likewise.
28799 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
28800 spill_deleted, clear_alias_set_lookup): Remove.
28801 (get_group_info): Remove dead base == NULL_RTX case.
28802 (dse_step0): Remove initialization of removed variables.
28803 (delete_dead_store_insn): Reomve alias set dumping.
28804 (free_read_records): Remove alias_set handling.
28805 (canon_address): Remove alias_set_out parameter.
28806 (record_store): Remove spill_alias_set, it's always zero.
28807 (check_mem_read_rtx): Likewise.
28808 (dse_step2): Rename from ...
28809 (dse_step2_nospill): ... this. Adjust.
28810 (scan_stores): Rename from ...
28811 (scan_stores_nospill): ... this.
28812 (scan_reads): Rename from ...
28813 (scan_reads_nospill): ... this.
28814 (scan_stores_spill, scan_reads_spill): Remove.
28815 (dse_step3_scan): Remove for_spills argument which is always false.
28816 (dse_step3): Likewise.
28817 (dse_step5): Rename from ...
28818 (dse_step5_nospill): ... this. Remove alias_set handling.
28819 (rest_of_handle_dse): Adjust.
28821 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28824 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
28825 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
28826 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
28827 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
28829 2016-04-05 Richard Biener <rguenther@suse.de>
28831 PR middle-end/70499
28832 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
28833 non-register type temporaries into SSA.
28835 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
28838 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
28839 calls when sanitizing.
28840 (possible_polymorphic_call_target_p): Fix formatting.
28842 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28843 Jakub Jelinek <jakub@redhat.com>
28845 PR middle-end/70457
28846 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
28847 to ensure a call statement is compatible with a built-in's
28849 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
28852 2016-04-04 Richard Biener <rguenther@suse.de>
28854 PR rtl-optimization/70484
28855 * rtl.h (canon_output_dependence): Declare.
28856 * alias.c (canon_output_dependence): New function.
28857 * dse.c (record_store): Use canon_output_dependence rather
28858 than canon_true_dependence.
28860 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28863 * cgraph.h (symtab_node::copy_visibility_from): New function.
28864 * symtab.c (symtab_node::copy_visibility_from): New function.
28865 * ipa-visibility.c (optimize_weakref): New function.
28866 (function_and_variable_visibility): Use it.
28868 2016-04-04 Martin Liska <mliska@suse.cz>
28871 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
28872 value that is really in range handled by SBR instruction.
28873 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
28874 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
28875 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
28877 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
28881 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
28882 set, but not for SP_REG operands.
28884 2016-04-02 Martin Sebor <msebor@redhat.com>
28887 * fold-const.c (maybe_nonzero_address): New function.
28888 (fold_comparison): Call it. Fold equality and relational
28889 expressions involving null pointers.
28890 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
28892 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
28894 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
28895 the "Y" constraint (scalar FP 0.0 immediate).
28897 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
28898 Add the "const_double" to the list of operand constraints.
28900 2016-04-01 Jakub Jelinek <jakub@redhat.com>
28902 PR rtl-optimization/70467
28903 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
28904 If low word of the last operand is 0, just emit addition/subtraction
28907 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28910 * config/s390/s390.c (s390_expand_insv): Check for everything
28911 constant instead of just VOIDmode stuff.
28913 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28916 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
28918 2016-04-01 Nathan Sidwell <nathan@acm.org>
28920 * tree.def (TRY_CATCH_EXPR): Correct documentation.
28922 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
28924 PR rtl-optimization/70461
28925 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
28928 2016-03-31 Martin Liska <mliska@suse.cz>
28931 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
28932 a tree value or an immediate integer value to a buffer
28933 that is eventually copied to a BRIG section.
28934 (emit_immediate_operand): Call the function here.
28935 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
28936 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
28937 of class' fields that are removed.
28938 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
28939 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
28940 m_brig_repr_size fields.
28942 2016-03-31 Martin Liska <mliska@suse.cz>
28945 * hsa-gen.c (hsa_function_representation::update_dominance): New
28947 (convert_addr_to_flat_segment): Likewise.
28948 (gen_hsa_memory_set): New alignment argument.
28949 (gen_hsa_ctor_assignment): Likewise.
28950 (gen_hsa_insns_for_single_assignment): Provide alignment
28951 to gen_hsa_ctor_assignment.
28952 (gen_hsa_insns_for_direct_call): Add new argument.
28953 (expand_lhs_of_string_op): New function.
28954 (expand_string_operation_builtin): Likewise.
28955 (expand_memory_copy): New function.
28956 (expand_memory_set): New function.
28957 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
28958 (convert_switch_statements): Change signature.
28959 (generate_hsa): Use a return value of the function.
28960 (pass_gen_hsail::execute): Do not call
28961 convert_switch_statements here.
28962 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
28963 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
28964 (hsa_function_representation::update_dominance): New function.
28966 2016-03-31 Martin Liska <mliska@suse.cz>
28969 * hsa-brig.c (emit_directive_variable): Emit alignment
28970 according to hsa_symbol::m_align.
28971 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
28972 (dump_hsa_symbol): Dump alignment of HSA symbols.
28973 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
28974 (gen_hsa_addr_with_align): New function.
28975 (hsa_bitmemref_alignment): Use newly added function.
28976 (gen_hsa_insns_for_load): Likewise.
28977 (gen_hsa_insns_for_store): Likewise.
28978 (gen_hsa_memory_copy): New argument added.
28979 (gen_hsa_insns_for_single_assignment): Respect
28980 alignment for assignments processed via gen_hsa_memory_copy.
28981 (gen_hsa_insns_for_direct_call): Likewise.
28982 (gen_hsa_insns_for_return): Likewise.
28983 (gen_function_def_parameters): Set default alignment.
28984 * hsa.c (hsa_object_alignment): New function.
28985 (hsa_byte_alignment): Pasted function.
28986 * hsa.h (hsa_symbol::m_align): New field.
28988 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28990 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
28991 scratch field for goto case.
28993 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
28995 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
28997 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
29000 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
29001 (scalar_chain::convert_insn): Call convert_op for reg
29002 moves to handle undefined registers.
29004 2016-03-31 Nathan Sidwell <nathan@acm.org>
29007 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
29008 Assert we don't want to move backwards.
29010 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
29013 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
29015 2016-03-31 Jakub Jelinek <jakub@redhat.com>
29017 PR rtl-optimization/70460
29018 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
29019 with operand from REG_LABEL_OPERAND, instead substitute
29020 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
29021 Don't do anything for REG_NON_LOCAL_GOTO jumps.
29023 2016-03-31 Martin Liska <mliska@suse.cz>
29025 * passes.c (execute_one_pass): Do not call
29026 todo_after for a discarded function.
29028 2016-03-31 Bin Cheng <bin.cheng@arm.com>
29030 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
29031 (no_cost, infinite_cost): Initialize the new field.
29032 (get_computation_cost_at): Record setup cost.
29033 (determine_use_iv_cost_address): Skip cost computation for sub
29034 uses if we can estimate it without losing accuracy.
29036 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
29038 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
29040 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
29041 max_loop_iterations_int.
29042 (tree_unswitch_outer_loop): Likewise.
29043 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
29044 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
29046 2016-03-30 Richard Biener <rguenther@suse.de>
29048 PR middle-end/70450
29049 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
29051 2016-03-30 Jakub Jelinek <jakub@redhat.com>
29054 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
29055 in gen_blendm expander.
29057 2016-03-30 Nick Clifton <nickc@redhat.com>
29060 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
29061 case where we are already provided with an SImode SUBREG.
29063 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
29066 * config/i386/i386.c (ix86_expand_epilogue): Properly check
29067 conflict between DRAP register and __builtin_eh_return.
29069 2016-03-30 Michael Matz <matz@suse.de>
29070 Richard Biener <rguenther@suse.de>
29073 * ipa-polymorphic-call.c (struct type_change_info): Change
29074 speculative to an unsigned allowing to limit the work we do.
29075 (csftc_abort_walking_p): New inline function..
29076 (check_stmt_for_type_change): Limit the number of may-defs
29077 skipped for speculative devirtualization to
29078 max-speculative-devirt-maydefs.
29079 * params.def (max-speculative-devirt-maydefs): New param.
29080 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
29082 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
29085 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
29088 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
29090 PR tree-optimization/59124
29091 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
29092 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
29094 2016-03-29 Jeff Law <law@redhat.com>
29096 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
29098 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29100 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
29103 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
29105 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
29106 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
29107 gcrt0.o if linking dynamically.
29109 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29112 * ipa-devirt.c (methods_equal_p): New function.
29113 (compare_virtual_tables): Use it.
29114 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
29115 * cgraphclones.c (clone_function_name_1): Use
29116 symbol_table::symbol_suffix_separator.
29117 * coverage.c (build_var): Likewise.
29118 * symtab.c (symbol_table::symbol_suffix_separator): New.
29120 2016-03-29 Jakub Jelinek <jakub@redhat.com>
29122 PR rtl-optimization/70429
29123 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
29124 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
29125 mode != result_mode.
29128 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
29130 PR tree-optimization/70405
29131 * ssa-iterators.h (num_imm_uses): Add missing braces.
29133 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
29135 PR rtl-optimization/68695
29136 * ira-color.c (allocno_copy_cost_saving): New.
29137 (improve_allocation): Use it.
29139 2016-03-29 Richard Henderson <rth@redhat.com>
29141 PR middle-end/70355
29142 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
29144 2016-03-29 Richard Biener <rguenther@suse.de>
29146 PR middle-end/70424
29147 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
29148 use alignment returned by get_pointer_alignment_1 if it is
29149 bigger than BITS_PER_UNIT.
29150 * builtins.c (get_pointer_alignment_1): Do not return true
29151 for alignment extracted from SSA info.
29153 2016-03-28 James Bowman <james.bowman@ftdichip.com>
29155 * config/ft32/ft32.opt (mnodiv): New.
29156 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
29157 * doc/invoke.texi (FT32 Options -mnodiv): New.
29159 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
29162 * config/i386/i386.md (define_split, andn): Fix modes.
29164 2016-03-26 Richard Biener <rguenther@suse.de>
29165 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29168 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
29170 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
29171 as 2nd argument to cl_optimization_restore().
29173 2016-03-25 Richard Henderson <rth@redhat.com>
29176 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
29177 * config/aarch64/aarch64-protos.h: Declare it.
29178 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
29180 2016-03-25 Alan Modra <amodra@gmail.com>
29183 * config/rs6000/constraints.md (j): Simplify.
29184 * config/rs6000/predicates.md (easy_fp_constant): Exclude
29186 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
29187 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
29188 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
29189 in all constraint alternatives.
29190 (movtd_64bit_nodm): Delete "j" constraint alternative.
29192 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29194 * tree-ssa-propagate.c: Enhance docs for
29195 SSA_PROP_NOT_INTERESTING.
29197 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29199 * doc/extend.texi: Fix typo in documentation to pure attribute.
29201 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
29204 * config/pa/pa.md (bswapdi2): Use a scratch register.
29206 2016-03-24 Richard Henderson <rth@redhat.com>
29208 PR middle-end/69845
29209 * fold-const.c (extract_muldiv_1): Correct test for multiplication
29212 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
29214 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
29215 using ix86_expand_binary_operator instead of gen_andsi3.
29217 2016-03-24 Richard Biener <rguenther@suse.de>
29219 PR tree-optimization/70396
29220 * tree-vect-stmts.c (vectorizable_comparison): Use
29221 get_vectype_for_scalar_type.
29223 2016-03-24 Richard Biener <rguenther@suse.de>
29225 PR middle-end/70370
29226 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
29227 with register bases.
29229 2016-03-24 Richard Biener <rguenther@suse.de>
29231 PR tree-optimization/70372
29232 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
29233 build_all_ones_cst to also handle vector types correctly.
29235 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29238 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
29241 2016-03-23 Marek Polacek <polacek@redhat.com>
29244 * doc/invoke.texi: Document -Wignored-attributes.
29246 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29248 PR tree-optimization/69042
29249 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
29250 parameter from 30 to 40.
29252 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29254 PR tree-optimization/69042
29255 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
29256 for use with constant offset stripped in base.
29258 2016-03-23 Richard Biener <rguenther@suse.de>
29260 PR middle-end/70251
29261 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
29262 mode compatibility check.
29263 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29265 2016-03-23 Jeff Law <law@redhat.com>
29267 PR tree-optimization/64058
29268 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
29270 (struct ssa_conflicts): Move up earlier in the file.
29271 (conflicts_, var_map_): New static variables.
29272 (initialize_conflict_count): New function to initialize the
29273 CONFLICT_COUNT field for each conflict pair.
29274 (compare_pairs): Lazily initialize the conflict count and use it
29275 as the first tie-breaker.
29276 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
29277 and wipe conflicts_ and map_ around the call to qsort. Remove
29278 special case for 2 coalesce pairs.
29279 * bitmap.c (bitmap_count_unique_bits): New function.
29280 (bitmap_count_bits_in_word): New function, extracted from
29282 (bitmap_count_bits): Use bitmap_count_bits_in_word.
29283 * bitmap.h (bitmap_count_unique_bits): Declare it.
29285 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
29288 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
29289 transparent alias chain for decl assembler name.
29290 * config/sol2.c (solaris_assemble_visibility): Likewise.
29292 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29294 * config/arm/arm1020e.md (1020call_op): Reduce reservation
29296 (v10_fdivs): Likewise.
29297 (v10_fdivd): Likewise.
29299 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29302 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
29303 to not call fclose twice on file.
29305 2016-03-23 Jakub Jelinek <jakub@redhat.com>
29307 PR tree-optimization/70354
29308 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29309 oprnd0 is wider than oprnd1 and there is a cast from the wider
29310 type to oprnd1, mask it with the mask of the narrower type.
29313 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
29314 Optimize TARGET_STV splitters, if high or low word of last argument
29317 2016-03-22 Jeff Law <law@redhat.com>
29320 tree-ssa-threadbackward.c
29321 (fsm_find_control_statement_thread_paths): Correctly distinguish
29322 between old style jump threads vs FSM jump threads.
29324 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
29327 * config/i386/i386.c (scalar_chain::convert_op): Support
29328 uninitialized register usage case.
29330 2016-03-22 Richard Biener <rguenther@suse.de>
29332 PR middle-end/70251
29333 * genmatch.c (gen_transform): Adjust last parameter to a three-state
29335 (capture::gen_transform): ... to change behavior when substituting
29336 a condition into cond or not-cond expr context.
29337 (dt_simplify::gen_1): Adjust.
29338 * gimple-match-head.c: Include gimplify.h for unshare_expr.
29339 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
29340 last change and instead change to
29341 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
29342 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29344 2016-03-22 Anthony Green <green@moxielogic.com>
29346 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
29347 issue for moxiebox targets.
29348 (CC1PLUS_SPEC): Ditto.
29350 2016-03-22 Richard Biener <rguenther@suse.de>
29352 PR middle-end/70333
29353 * fold-const.c (extract_muldiv_1): Properly perform multiplication
29356 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29358 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
29360 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29363 * config/i386/i386.c (def_builtin): Handle
29364 OPTION_MASK_ISA_AVX512VL to be and-ed with other
29366 (const struct builtin_description bdesc_special_args[]):
29367 Remove duplicate ISA bits.
29369 2016-03-22 Jakub Jelinek <jakub@redhat.com>
29372 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
29373 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
29374 in a way that works also for AVX512BW.
29377 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
29378 instead of source if operands[1] is xmm16 and above and
29379 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
29380 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
29383 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
29384 on assign if (*from_p) is a comparison, set it to
29385 TREE_NO_WARNING (*from_p).
29387 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29389 PR middle-end/70326
29390 * lra.c (restore_scratches): Ignore deleted insns.
29392 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
29393 Jakub Jelinek <jakub@redhat.com>
29395 PR tree-optimization/70317
29396 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
29399 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
29402 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
29403 of ix86_expand_move.
29405 (movti): Use general_operand for operand 1 predicate.
29407 2016-03-21 Martin Liska <mliska@suse.cz>
29409 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
29411 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
29413 2016-03-21 Martin Liska <mliska@suse.cz>
29416 * ipa-icf.c (sem_function::parse): Skip static
29417 constructors and destructors.
29419 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29422 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
29423 function-like macro, peek following token(s) if it is followed
29424 by CPP_OPEN_PAREN token with optional padding in between, and
29425 if not, don't treat it like a macro.
29427 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
29428 Alexander Monakov <amonakov@ispras.ru>
29430 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
29431 for the stabs debug format.
29433 2016-03-21 Richard Biener <rguenther@suse.de>
29435 PR tree-optimization/70310
29436 * tree-vect-generic.c (expand_vector_condition): Fold the built
29439 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
29442 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
29443 Block third alternative for AVX-512VL target,
29445 2016-03-21 Martin Liska <mliska@suse.cz>
29448 * hsa-brig.c (emit_function_directives): Mark unemitted
29449 global variables for emission.
29450 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
29451 (get_symbol_for_decl): Likewise.
29452 * hsa.h (struct hsa_symbol): New flag.
29454 2016-03-21 Richard Biener <rguenther@suse.de>
29456 PR tree-optimization/70288
29457 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
29458 we do not estimate unsimplified all-constant conditionals or
29459 switches as optimized away.
29461 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
29463 PR rtl-optimization/69102
29464 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
29465 when we have a readonly dependency context.
29467 2016-03-18 Jeff Law <law@redhat.com>
29469 PR rtl-optimization/70263
29470 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
29471 (update_equiv_regs): When trying to move a store to after the insn
29472 that sets the source of the store, make sure the store occurs after
29473 the insn that sets the source of the store. When successful note
29474 the REG_EQUIV note created in the dump file.
29476 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
29477 Bernd Schmidt <bschmidt@redhat.com>
29479 * doc/extend.texi: Document more potential problems with basic asms.
29481 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
29483 PR rtl-optimization/70278
29484 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
29487 2016-03-18 Jason Merrill <jason@redhat.com>
29489 * calls.c (load_register_parameters): Fix zero size sibcall logic.
29491 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
29493 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
29494 values to 128b regs.
29496 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
29498 PR tree-optimization/70252
29499 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
29500 boolean vector has a proper number of elements.
29501 (supportable_narrowing_operation): Likewise.
29503 2016-03-18 Tom de Vries <tom@codesourcery.com>
29506 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
29508 2016-03-18 Jakub Jelinek <jakub@redhat.com>
29510 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
29511 instead of replace_rtx for DEBUG_INSNs.
29513 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29515 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
29516 load type reservations.
29518 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
29521 * config/pa/constraints.md: Revert 2015-02-13 change. Use
29522 define_constraint for "Q" and "T" constraints.
29524 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
29526 Tweak the pipeline model for Exynos M1
29528 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
29531 2016-03-17 David Malcolm <dmalcolm@redhat.com>
29534 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
29535 where one or both locations aren't within a line_map.
29537 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
29540 * opts.c (finish_options): Don't set flag_pie to the default if
29541 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
29544 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
29546 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
29547 true as ALL_REGS argument to replace_rtx.
29549 2016-03-17 Richard Biener <rguenther@suse.de>
29552 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
29555 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29558 * rtl.h (replace_rtx): Add ALL_REGS argument.
29559 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
29560 equality and assert mode is the same, instead of just rtx pointer
29562 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
29563 true as ALL_REGS argument to replace_rtx.
29565 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
29567 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
29568 for boolean vector with vector mode only.
29569 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29571 2016-03-17 Nick Clifton <nickc@redhat.com>
29574 * config/rx/rx.c (rx_print_integer): Print negative constants in
29577 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29580 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
29582 2016-03-16 Richard Henderson <rth@redhat.com>
29583 Richard Biener <rguenth@suse.de>
29585 PR middle-end/70240
29586 PR middle-end/68215
29588 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
29589 first operand as is_gimple_condexpr.
29591 PR middle-end/70240
29592 PR middle-end/68215
29594 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
29595 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
29596 Do not gimplify the result.
29597 (do_unop): Adjust call to tree_vec_extract.
29598 (do_binop): Likewise.
29599 (do_compare): Likewise.
29600 (do_plus_minus): Likewise.
29601 (do_negate): Likewise.
29602 (expand_vector_condition): Likewise.
29603 (do_cond): Likewise.
29605 2016-03-16 Richard Henderson <rth@redhat.com>
29608 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
29609 (aarch64_classify_address): Use it.
29610 (aarch64_legitimize_address): Force all subexpressions of PLUS
29611 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
29613 2016-03-16 Jakub Jelinek <jakub@redhat.com>
29614 Richard Biener <rguenth@suse.de>
29617 * rtlanal.c (replace_rtx): For REG, if from is a REG,
29618 return to even if only REGNO is equal, and assert
29621 2016-03-11 Jeff Law <law@redhat.com>
29623 PR rtl-optimization/70224
29624 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
29626 2016-03-16 Richard Henderson <rth@redhat.com>
29628 PR middle-end/70199
29629 * function.h (struct function): Add has_forced_label_in_static.
29630 * gimplify.c (force_labels_r): Set it.
29631 * lto-streamer-in.c (input_struct_function_base): Read it.
29632 * lto-streamer-out.c (output_struct_function_base): Write it.
29633 * tree-inline.c (has_label_address_in_static_1): Remove.
29634 (copy_forbidden): Remove fndecl parameter; test
29635 has_forced_label_in_static.
29636 (inline_forbidden_p): Update call to copy_forbidden.
29637 (tree_versionable_function_p): Likewise.
29638 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
29639 (chkp_versioning): Likewise.
29640 * tree-inline.h (copy_forbidden): Update decl.
29642 2016-03-16 Marek Polacek <polacek@redhat.com>
29645 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
29646 function being thunked if the result type doesn't have fixed size.
29647 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
29648 doesn't have fixed size.
29650 2016-03-16 Bin Cheng <bin.cheng@arm.com>
29652 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
29653 reporting malformed loop nest.
29655 2016-03-16 Tom de Vries <tom@codesourcery.com>
29658 * ipa-devirt.c (possible_polymorphic_call_targets): Move
29659 nodes.length () == 1 test to before first nodes[0] access.
29661 2016-03-16 Tom de Vries <tom@codesourcery.com>
29663 PR tree-optimization/68715
29664 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
29665 single_pred_p test.
29667 2016-03-16 Tom de Vries <tom@codesourcery.com>
29669 PR tree-optimization/68809
29670 * graphite-scop-detection.c (same_close_phi_node): Test if result types
29673 2016-03-16 Carlos O'Donell <carlos@redhat.com>
29674 Sandra Loosemore <sandra@codesourcery.com>
29676 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
29677 on leaf attribute. Mention ELF interposition problems.
29679 2016-03-16 Alan Modra <amodra@gmail.com>
29681 PR rtl-optimization/69195
29682 PR rtl-optimization/47992
29683 * ira.c (indirect_jump_optimize): Ignore artificial defs.
29686 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
29689 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
29691 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29693 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
29695 2016-03-15 Jakub Jelinek <jakub@redhat.com>
29697 PR rtl-optimization/70222
29698 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
29699 optimization if mode is different from result_mode, queue up masking
29700 of the result in outer_op. Formatting fix.
29702 PR middle-end/70239
29703 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
29706 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29708 PR rtl-optimization/69032
29709 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
29710 looping backwards over basic block insns.
29712 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29715 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
29716 to non-speculative when propagating trap bits.
29718 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29720 PR rtl-optimization/63384
29721 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
29722 DEBUG_INSN_P insns.
29724 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29727 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
29728 factored out from ...
29729 (sched_analyze_insn): ... here.
29730 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
29731 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
29732 get_implicit_reg_pending_clobbers in it.
29733 (setup_id_reg_sets): Use setup_id_implicit_regs.
29734 (deps_init_id): Ditto.
29736 2016-03-15 Tom de Vries <tom@codesourcery.com>
29739 * cgraph.c (cgraph_node::get_body): Save, reset and restore
29741 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
29742 execute_function_dump.
29743 (execute_one_pass): Don't dump function if it will be dumped after ipa
29746 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29748 * genrecog.c (match_pattern_2): If pred is NULL don't call
29749 safe_predicate_mode on it.
29751 2016-03-14 Jakub Jelinek <jakub@redhat.com>
29753 PR middle-end/70219
29754 * lra-constraints.c (delete_move_and_clobber): Change assertion
29755 to also allow dregno == 0.
29757 2016-03-14 Richard Henderson <rth@redhat.com>
29760 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
29761 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
29762 (reassociate_bb): Use optimize_vec_cond_expr; avoid
29763 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
29766 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
29769 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
29771 (lra_create_live_ranges_1): initialize hard register biggest_mode to
29773 * lra-constraints.c (split_reg): For hard regs, try to find the
29774 biggest single-register mode used in the function.
29776 2016-03-14 Richard Biener <rguenther@suse.de>
29778 PR tree-optimization/56365
29779 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
29780 constants to compare against.
29782 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
29785 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
29786 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
29787 (define_split for the GPR case): Use int_reg_operand instead of
29788 gpc_reg_operand for the output.
29790 2016-03-14 Tom de Vries <tom@codesourcery.com>
29792 PR tree-optimization/70045
29793 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
29794 create_empty_if_region_on_edge argument.
29796 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
29798 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
29799 (STACK_CHECK_PROTECT): Likewise.
29800 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29801 (STACK_CHECK_PROTECT): Likewise.
29802 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29803 (STACK_CHECK_PROTECT): Likewise.
29804 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
29805 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
29806 (STACK_CHECK_PROTECT): Likewise.
29808 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
29810 PR rtl-optimization/69307
29811 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
29812 registers in modes that span more than one register.
29814 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
29817 * lra-constraints.c (delete_move_and_clobber): New.
29818 (remove_inheritance_pseudos): Use it.
29820 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
29823 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
29824 the libcall is LCT_THROW.
29825 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
29826 for the checking routine.
29828 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29831 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
29832 optimization if we have direct move.
29833 (roundu32<mode>2_fprs): Likewise.
29835 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
29838 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
29840 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
29841 Arguments swapped. All callers changed. Take reg_renumber into
29842 account, and Calculate and compare register ranges for hard regs.
29844 2016-03-11 Jeff Law <law@redhat.com>
29846 PR tree-optimization/70190
29847 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29848 Handle cases where we can not extract the taken edge, even though we
29849 found a constant value.
29851 PR tree-optimization/64058
29852 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
29853 (num_coalesce_pairs): Move up earlier in file.
29854 (find_coalesce_pair): Initialize the INDEX field for each pair
29856 (compare_pairs): No longer sort on the elements in each pair.
29857 Instead break ties with the index of the coalesce pair.
29859 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29862 * config/aarch64/aarch64-protos.h
29863 (aarch64_save_restore_target_globals): New prototype.
29864 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
29865 Call the above when popping pragma.
29866 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
29868 (aarch64_set_current_function): Rewrite using the above.
29870 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29872 PR tree-optimization/70177
29873 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
29874 (extract_ops_from_tree): ... this. In the 2 argument
29875 overload remove _1 suffix.
29876 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
29877 (extract_ops_from_tree): ... this.
29878 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
29880 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
29881 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
29882 extract_ops_from_tree instead of 2 operand one.
29884 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
29886 PR tree-optimization/70013
29887 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
29888 for constant-pool entries.
29890 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29892 PR rtl-optimization/70174
29893 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
29894 followed by gen_lowpart on force_reg instead of just gen_lowpart.
29896 PR tree-optimization/70169
29897 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
29898 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
29901 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
29902 Jakub Jelinek <jakub@redhat.com>
29905 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
29906 of uninitialized values.
29908 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29910 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
29912 ("*trunctddd2"): New pattern definition.
29913 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
29916 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29918 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
29919 definitions for BFP and DFP rounding modes.
29920 ("fixuns_truncdddi2", "fixuns_trunctddi2")
29921 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
29922 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
29923 ("fix_trunctf<mode>2"): Use the new constants instead of magic
29926 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29928 * config/s390/constraints.md: Adjust comment.
29929 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
29930 s390_decompose_addrstyle_without_index.
29931 * config/s390/predicates.md (shift_count_or_setmem_operand):
29932 Rename to setmem_operand.
29933 * config/s390/s390-protos.h
29934 (s390_decompose_shift_count): Rename to
29935 s390_decompose_addrstyle_without_index.
29936 * config/s390/s390.c (s390_decompose_shift_count)
29937 (s390_mem_constraint, print_shift_count_operand)
29938 (print_operand_address, print_operand): Rename
29939 s390_decompose_shift_count to
29940 s390_decompose_addrstyle_without_index and rename
29941 print_shift_count_operand to print_addrstyle_operand troughout the
29943 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
29944 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
29945 Rename shift_count_or_setmem_operand to setmem_operand.
29946 * config/s390/vx-builtins.md ("vec_insert<mode>")
29947 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
29950 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29953 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29954 Handle overlapping retval and newval.
29956 2016-03-10 Nick Clifton <nickc@redhat.com>
29959 * config/aarch64/aarch64.c
29960 (aarch64_override_options_after_change_1): When forcing
29961 flag_omit_frame_pointer to be true, use a special value that can
29962 be detected if this function is called again, thus preventing
29963 flag_omit_leaf_frame_pointer from being forced to be false.
29965 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29967 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
29968 Set x_flag_omit_leaf_frame_pointer when handling
29969 -momit-leaf-frame-pointer.
29971 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29974 * cgraph.c (cgraph_node::dump): Dump split_part and
29975 indirect_call_target.
29976 * cgraph.h (cgraph_node): Add indirect_call_target flag.
29977 * ipa.c (has_addr_references_p): Cleanup.
29978 (is_indirect_call_target_p): New.
29979 (walk_polymorphic_call_targets): Do not mark virtuals that may be
29980 called indirectly as local.
29981 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
29983 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29986 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
29987 on cxa_pure_virtual.
29989 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29992 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
29994 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29997 * tree.c (need_assembler_name_p): Only record main variant type names.
29999 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
30002 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
30003 Always define to 0 or 1.
30004 (TARGET_FIX_ERR_A53_843419): New macro.
30005 * config/aarch64/aarch64-elf-raw.h
30006 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
30007 * config/aarch64/aarch64-linux.h: Likewise.
30008 * config/aarch64/aarch64.c
30009 (aarch64_override_options_after_change_1): Do not default
30010 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
30012 (aarch64_attributes): Handle fix-cortex-a53-843419.
30013 (aarch64_can_inline_p): Likewise.
30014 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
30016 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
30017 Jakub Jelinek <jakub@redhat.com>
30019 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
30020 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
30021 DECL_COMMONS if flag_unconstrained_commons is set.
30022 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30023 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
30024 (funconstrained-commons): Document.
30026 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
30028 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
30029 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
30031 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
30033 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
30034 has a proper number of elements.
30036 2016-03-10 Alan Modra <amodra@gmail.com>
30038 PR rtl-optimization/69195
30039 PR rtl-optimization/47992
30040 * ira.c (recorded_label_ref): Delete.
30041 (update_equiv_regs): Return void.
30042 (indirect_jump_optimize): New function.
30043 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
30044 before regstat_compute_ri. Don't rebuild_jump_labels here.
30045 Delete update_regstat.
30047 2016-03-10 Richard Biener <rguenther@suse.de>
30049 PR tree-optimization/70128
30050 * tree-ssa-structalias.c (set_uids_in_ptset): Set
30051 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
30053 2016-03-09 Jakub Jelinek <jakub@redhat.com>
30055 PR tree-optimization/70152
30056 * tree-sra.c (replace_removed_params_ssa_names): Copy over
30057 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
30060 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
30061 instead of gen_sse2_loadlpd.
30062 * config/i386/sse.md (*vec_concatv2df): Rename to...
30063 (vec_concatv2df): ... this.
30065 PR tree-optimization/70127
30066 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
30068 2016-03-09 David Malcolm <dmalcolm@redhat.com>
30072 * diagnostic-show-locus.c (compatible_locations_p): New function.
30073 (layout::layout): Sanitize ranges using compatible_locations_p.
30075 2016-03-09 David Malcolm <dmalcolm@redhat.com>
30079 * diagnostic-show-locus.c (layout_range::layout_range): Replace
30080 location_range param with three const expanded_locations * and a
30082 (layout::layout): Replace call to
30083 rich_location::lazily_expand_location with get_expanded_location.
30084 Extract the range and perform location expansion here, passing
30085 the results to the layout_range ctor.
30086 * diagnostic.c (source_range::debug): Delete.
30087 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
30088 of rich_location::get_expanded_location.
30089 * gcc-rich-location.c (get_range_for_expr): Delete.
30090 (gcc_rich_location::add_expr): Reimplement to avoid the
30091 rich_location::add_range overload that took a location_range,
30092 passing a location_t instead.
30094 2016-03-09 Richard Biener <rguenther@suse.de>
30095 Jakub Jelinek <jakub@redhat.com>
30097 PR tree-optimization/70138
30098 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
30099 Also skip vect_double_reduction_def.
30101 2016-03-09 Jakub Jelinek <jakub@redhat.com>
30104 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
30105 if the operand is "m".
30107 2016-03-09 Nathan Sidwell <nathan@acm.org>
30109 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
30111 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30113 * config/i386/i386.c (processor_target_table): Fix cost table
30114 intialization order for znver1.
30116 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30118 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
30119 - becuase -> because.
30120 * ipa-reference.c (ignore_module_statics): Likewise.
30121 * cgraph.c (cgraph_node::get_body): Likewise.
30122 * ipa-inline.c (early_inliner): Likewise.
30123 * ipa-devirt.c (types_same_for_odr): Likewise.
30124 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
30125 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
30127 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30129 * tree-ssa-math-opts.c: Fix typo in comment.
30131 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30134 * config/i386/i386.c (scalar_chain::make_vector_copies,
30135 scalar_chain::convert_reg): Call end_sequence in between
30136 get_insns and emit_conversion_insns rather than after both
30139 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
30142 * config/i386/i386.h (machine_function): Add
30143 pc_thunk_call_expanded flag.
30144 (ix86_pc_thunk_call_expanded): New define.
30145 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
30146 (*set_got): Rename insn pattern from set_got.
30147 (*set_got_labelled): Rename inst pattern from set_got_labelled.
30148 * config/i386/i386.c (ix86_compute_frame_layout): Use
30149 ix86_pc_thunk_call_expanded to prevent red-zone.
30151 2016-03-07 Martin Jambor <mjambor@suse.cz>
30153 * hsa.h (hsa_get_ctor_statements): Declare.
30154 (hsa_get_dtor_statements): Likewise.
30155 (hsa_get_kernel_dispatch_type): Likewise.
30156 * hsa.c (hsa_get_ctor_statements): New function.
30157 (hsa_get_dtor_statements): Likewise.
30158 (hsa_get_kernel_dispatch_type): Likewise.
30159 * hsa-brig.c (hsa_cdtor_statements): Removed.
30160 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
30161 hsa_get_dtor_statements.
30162 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
30163 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
30165 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
30167 * config/arm/arm-cores.def (cortex-r8): New.
30168 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
30169 * config/arm/arm-tune.md: Likewise.
30170 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
30172 2016-03-07 Martin Sebor <msebor@redhat.com>
30174 PR rtl-optimization/19705
30175 * doc/invoke.texi (Options That Control Optimization): Clarify
30176 -fno-branch-count-reg.
30178 2016-02-26 Richard Biener <rguenther@suse.de>
30179 Jeff Law <law@redhat.com>
30181 PR tree-optimization/69740
30182 * cfghooks.c (remove_edge): Request loop fixups if we delete
30183 an edge that might turn an irreducible loop into a natural
30185 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
30186 Move after definition of loops_state_clear.
30188 2016-03-07 Bin Cheng <bin.cheng@arm.com>
30190 PR rtl-optimization/69052
30191 * rtlanal.c (commutative_operand_precedence): Set higher precedence
30194 2016-03-07 Tom de Vries <tom@codesourcery.com>
30196 PR tree-optimization/70116
30197 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
30198 is_tm_ending stmts and ubsan/asan internal functions.
30199 (find_duplicate): Use it. Don't test is_tm_ending here.
30201 2016-03-07 Richard Biener <rguenther@suse.de>
30203 PR tree-optimization/70115
30204 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
30205 (propagate_constants_for_unrolling): Use replace_uses_by.
30207 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
30209 PR middle-end/69916
30210 * omp-low.c (struct oacc_loop): Add ifns.
30211 (new_oacc_loop_raw): Initialize it.
30212 (finish_oacc_loop): Clear mask & flags if no ifns.
30213 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
30214 (oacc_loop_xform_loop): Add ifns arg & adjust.
30215 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
30217 2016-03-07 Richard Henderson <rth@redhat.com>
30220 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
30221 (insert_value_copy_on_edge): Likewise.
30223 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30225 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
30227 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30230 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
30232 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30234 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
30236 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30238 Fix sseimul type attribute.
30239 * config/i386/znver1.md
30240 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
30241 znver1_sseimul_avx256_load) : Fix the type attribute.
30242 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
30243 pipe usage and latency.
30245 2016-03-05 Jakub Jelinek <jakub@redhat.com>
30248 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
30249 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
30252 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30255 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
30257 PR rtl-optimization/69941
30258 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
30259 the reg share its mode.
30261 2016-03-04 Jeff Law <law@redhat.com>
30263 PR tree-optimization/69196
30264 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30265 If the both SSA_NAMEs are anonymous, then consider them unassociated
30266 and include the PHI in the statement count.
30268 2016-03-05 Tom de Vries <tom@codesourcery.com>
30270 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
30271 construct in oacc routine. Check for oacc region in oacc routine.
30273 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30276 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
30277 2016-02-22 changes, instead don't recurse if RECUR is already true.
30278 Don't change *dynamic_check if RECUR. Adjust recursive caller
30279 to pass true to the new argument.
30280 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
30283 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
30284 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
30286 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
30288 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30290 PR rtl-optimization/57676
30291 * lra-assigns.c (lra_assign): Guard test for maximum iterations
30292 with flag_checking.
30294 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
30296 * tree-vect-patterns.c (search_type_for_mask): Handle
30297 comparison of booleans.
30299 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30301 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
30305 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
30306 all other ops that have dw_val_class_die_ref operands,
30307 and DW_OP_GNU_entry_value.
30309 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30311 PR rtl-optimization/69904
30312 * config/arm/arm.c (arm_cannot_copy_insn_p):
30313 Return true for load-exclusive instructions.
30315 2016-03-03 Jakub Jelinek <jakub@redhat.com>
30318 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
30319 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
30320 the pattern no matter if it is used just by non-pattern, pattern
30322 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
30323 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
30324 oprnd1 def_stmt is in pattern, don't look through it.
30326 2016-03-03 Marek Polacek <polacek@redhat.com>
30328 PR middle-end/70050
30329 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
30331 2016-03-03 Martin Liska <mliska@suse.cz>
30333 PR tree-optimization/70043
30334 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
30335 previous statement if we see a debug statement.
30337 2016-03-03 Richard Biener <rguenther@suse.de>
30339 PR tree-optimization/55936
30340 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
30341 parameter and guard unsafe equivalence use.
30342 (vrp_evaluate_conditional_warnv_with_ops): Always use
30343 safe equivalences but not via the quadratic compare_names
30346 2016-03-03 Michael Collison <michael.collison@linaro.org>
30349 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
30350 for operand 1 to s_register_operand. Change predicate for operand
30351 2 to arm_not_immediate_operand.
30353 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
30355 * doc/tm.texi: Regenerated.
30357 2016-03-02 Richard Henderson <rth@redhat.com>
30360 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
30361 simplification when all args are positive non-fixed registers.
30363 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30365 * target.def (lra_p): Specify that new ports should use LRA.
30367 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30370 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
30371 gimplify_type_sizes the type they refer to.
30372 (omp_notice_variable): Handle reference vars to VLAs.
30373 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
30374 reference to VLA decls in the second pass instead of first pass.
30376 2016-03-02 Tom de Vries <tom@codesourcery.com>
30378 PR tree-optimization/68659
30379 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
30380 new_expr == NULL_TREE.
30381 (get_new_name): Handle ADDR_EXPR.
30383 2016-03-02 Bin Cheng <bin.cheng@arm.com>
30385 PR rtl-optimization/69052
30386 * loop-invariant.c (canonicalize_address): New function.
30387 (inv_can_prop_to_addr_use): Check validity of address expression
30388 which is canonicalized by above function.
30390 2016-03-02 Alan Modra <amodra@gmail.com>
30393 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
30396 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30399 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
30400 (*movhi_internal): Put mask moves from and to memory separately
30401 from moves from/to GPRs.
30403 2016-03-02 Richard Biener <rguenther@suse.de>
30405 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
30406 GENERIC expressions in GIMPLE.
30408 2016-03-02 Richard Biener <rguenther@suse.de>
30410 * config/i386/i386.c (type_natural_mode): Fix typo.
30412 2016-03-02 Nick Clifton <nickc@redhat.com>
30414 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
30416 2016-03-02 Richard Biener <rguenther@suse.de>
30417 Uros Bizjak <ubizjak@gmail.com>
30420 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
30422 2016-03-02 Richard Biener <rguenther@suse.de>
30424 PR middle-end/67278
30425 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
30427 2016-03-02 Marek Polacek <polacek@redhat.com>
30430 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
30431 "is promoted to" warning.
30433 2016-03-01 DJ Delorie <dj@redhat.com>
30435 * config.gcc: Deprecate mep-*.
30437 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
30439 PR middle-end/70025
30440 * lra-constraints.c (regno_val_use_in): New.
30441 (match_reload): Use it instead of regno_use_in.
30443 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30445 PR rtl-optimization/70007
30446 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
30447 references present in REG_EQUAL notes attached to non-SET patterns.
30449 2016-03-01 Jeff Law <law@redhat.com>
30451 PR tree-optimization/69196
30452 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30453 Appropriately clamp the number of statements to copy when the
30454 thread path does not traverse a loop backedge.
30456 PR tree-optimization/69196
30457 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30458 Do count some PHIs in the thread path against the insn count. Decrease
30459 final statement count by one as the control statement in the last
30460 block will get removed. Remove special cased code for handling PHIs
30463 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
30466 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
30467 asm dialect alternatives to explicit GOTPCREL calls.
30469 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30472 * ira.c (do_reload): Issue warning for generic stack checking here...
30473 * reload1.c (reload): ...instead of here and streamline it.
30475 2016-03-01 Nick Clifton <nickc@redhat.com>
30477 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
30479 2016-03-01 Richard Biener <rguenther@suse.de>
30481 PR tree-optimization/69983
30482 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
30483 types and fall back to operand_equal_p.
30485 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30488 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30490 * config/s390/constraints.md ("jm8"): New constraint.
30491 * config/s390/predicates.md ("const_int_8bitset_operand"): New
30493 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
30495 ("*setmem_long<setmem_and>"): New pattern.
30496 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
30498 ("*setmem_long_31z<setmem_and>"): New pattern.
30499 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
30500 New substitution rules with the required attributes.
30503 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30506 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30508 * gensupport.c (process_substs_on_one_elem): Split loop to
30509 complete mark_operands_used_in_match_dup on all expressions in the
30511 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30512 and remove function.
30514 2016-03-01 Richard Biener <rguenther@suse.de>
30516 PR middle-end/70022
30517 * fold-const.c (fold_indirect_ref_1): Fix range checking for
30518 vector BIT_FIELD_REF extract.
30520 2016-03-01 Richard Biener <rguenther@suse.de>
30522 PR tree-optimization/69994
30523 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
30525 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
30527 PR tree-optimization/69956
30528 * tree-vect-stmts.c (supportable_widening_operation): Support
30529 multi-step conversion of boolean vectors.
30530 (supportable_narrowing_operation): Likewise.
30532 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30534 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
30537 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30539 * config/s390/subst.md (DSI_VI): New mode iterator.
30540 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
30541 * config/s390/vector.md ("vec_set<mode>"): Move expander before
30542 the insn definition.
30543 ("*vec_set<mode>"): Change predicate and add alternative to
30544 support only either register or const_int operands as element
30546 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
30548 ("vec_extract<mode>"): New expander.
30549 ("*vec_extract<mode>"): New insn definition supporting reg and
30550 const_int element selectors.
30551 ("*vec_extract<mode>_plus"): New insn definition supporting
30552 reg+const_int element selectors.
30553 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
30554 following expander+insn definition.
30555 ("<vec_shifts_name><mode>3"): New expander.
30556 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
30558 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30560 * config/s390/s390.md ("*tabort_1"): Change predicate to
30561 nonmemory_operand. Add a second alternative to cover
30562 register as well as const int operands.
30563 ("*tabort_1_plus"): New pattern definition.
30565 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30567 * config/s390/s390.md ("*ashrdi3_cc_31")
30568 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
30569 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
30570 Merge insn definitions into ...
30571 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30572 New pattern definition.
30573 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
30574 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
30575 ("*ashr<mode>3_and"): Merge insn definitions into ...
30576 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30577 New pattern definition.
30578 * config/s390/subst.md ("addr_style_op_cc_subst")
30579 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
30580 substitutions patterns plus attributes.
30581 Add ashiftrt to SUBST iterator.
30583 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30585 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
30586 op2 to nonmemory_operand.
30587 ("*<shift>di3_31", "*<shift>di3_31_and"):
30588 Merge into single pattern definition ...
30589 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
30590 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
30591 pattern definition ...
30592 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
30593 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
30596 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30598 * config/s390/predicates.md (const_int_6bitset_operand): New
30600 * config/s390/s390.md: Include subst.md.
30601 ("rotl<mode>3"): New expander.
30602 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
30604 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
30605 * config/s390/subst.md: New file.
30607 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30609 * config/s390/s390.md ("op_type", "atype", "length" attributes):
30610 Remove RRR type. It doesn't really exist.
30611 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
30613 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
30614 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
30615 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
30616 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
30617 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
30618 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
30619 `enabled' attribute.
30621 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30623 * gensupport.c (process_substs_on_one_elem): Split loop to
30624 complete mark_operands_used_in_match_dup on all expressions in the
30626 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30627 and remove function.
30629 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30632 * config/sparc/sparc.c (NWORDS_UP): Rename to...
30633 (CEIL_NWORDS): ...this. Use CEIL macro.
30634 (compute_fp_layout): Adjust to above renaming.
30635 (function_arg_union_value): Likewise.
30636 (sparc_arg_partial_bytes): Likewise.
30637 (sparc_function_arg_advance): Likewise.
30639 2016-02-29 Jeff Law <law@redhat.com>
30641 PR tree-optimization/70005
30642 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
30643 where an object with a boolean range is compared against a value
30646 PR tree-optimization/69999
30647 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
30648 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
30651 2016-02-29 Richard Biener <rguenther@suse.de>
30653 PR tree-optimization/69994
30654 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
30655 (get_unary_op): Look through nop conversions.
30656 (ops_equal_values_p): New function, look for equality diregarding
30658 (eliminate_plus_minus_pair): Use ops_equal_values_p
30659 (repropagate_negates): Do not use get_unary_op here.
30661 2016-02-29 Martin Liska <mliska@suse.cz>
30663 * system.h: Poison ENABLE_CHECKING macro.
30665 2016-02-29 Martin Liska <mliska@suse.cz>
30667 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
30668 is presented in dump flags.
30669 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30670 (hsa_regalloc): Likewise.
30672 2016-02-19 Richard Biener <rguenther@suse.de>
30674 PR tree-optimization/69980
30675 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
30676 permutation of those we need to keep.
30678 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30681 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
30682 (NWORDS_UP): ...this
30683 (init_cumulative_args): Minor tweaks.
30684 (sparc_promote_function_mode): Likewise.
30685 (scan_record_type): Delete.
30686 (traverse_record_type): New function template.
30687 (classify_data_t): New structure type.
30688 (classify_registers): New inline function.
30689 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
30690 exhausted. Instantiate traverse_record_type on classify_registers and
30691 deal with the case of a structure passed in slot #15 with no FP field
30693 (assign_data_t): New structure type.
30694 (compute_int_layout): New static function.
30695 (compute_fp_layout): Likewise.
30696 (count_registers): New inline function.
30697 (assign_int_registers): New static function.
30698 (assign_fp_registers): Likewise.
30699 (assign_registers): New inline function.
30700 (function_arg_record_value_1): Delete.
30701 (function_arg_record_value_2): Likewise.
30702 (function_arg_record_value_3): Likewise.
30703 (function_arg_record_value): Adjust to above changes. Instantiate
30704 traverse_record_type on count_registers to first count the number of
30705 registers to be used and then on assign_registers to assign them.
30706 (function_arg_union_value): Adjust to above renaming.
30707 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
30708 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
30709 case of a structure passed in slot #15
30710 (sparc_function_arg_advance): Likewise.
30711 (function_arg_padding): Minor tweak.
30713 2016-02-29 Richard Biener <rguenther@suse.de>
30715 PR tree-optimization/69720
30716 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
30717 the adjustment_def path for possibly vectorized defs.
30718 (vect_create_epilog_for_reduction): Handle vectorized initial
30721 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
30723 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
30725 2016-02-27 Jeff Law <law@redhat.com>
30728 2016-02-26 Richard Biener <rguenther@suse.de>
30729 Jeff Law <law@redhat.com>
30731 PR tree-optimization/69740
30732 * cfghooks.c (remove_edge): Request loop fixups if we delete
30733 an edge that might turn an irreducible loop into a natural
30736 2016-02-27 Jakub Jelinek <jakub@redhat.com>
30738 PR rtl-optimization/69896
30739 * tree-vect-generic.c (get_compute_type): Avoid single element
30742 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
30744 Rename the AArch64 tuning option and related functions to enable the
30745 Newton series for the reciprocal square root to reflect its
30746 approximative characteristic.
30748 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
30749 function to "aarch64_emit_approx_rsqrt".
30750 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
30751 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
30752 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
30753 (xgene1_tunings): Likewise.
30754 (use_rsqrt_p): Likewise.
30755 (aarch64_emit_swrsqrt): Use new function name.
30756 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
30757 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
30758 text explaining this option.
30759 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
30761 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30764 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30765 complain about -mallow-movmisalign without -mvsx if
30766 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
30768 2016-02-26 Joel Sherrill <joel@rtems.org>
30770 * config.gcc: Add x86_64-*-rtems*.
30771 * config/i386/rtems-64.h: New file.
30773 2016-02-26 Joel Sherrill <joel@rtems.org>
30775 * config.gcc: Add aarch64-*-rtems*.
30776 * config/aarch64/rtems.h: New file.
30778 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
30781 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
30782 shift amount using %h. Add comment.
30784 2016-02-26 Richard Biener <rguenther@suse.de>
30785 Jeff Law <law@redhat.com>
30787 PR tree-optimization/69740
30788 * cfghooks.c (remove_edge): Request loop fixups if we delete
30789 an edge that might turn an irreducible loop into a natural
30792 2016-02-26 Martin Jambor <mjambor@suse.cz>
30794 PR middle-end/69920
30795 * tree-sra.c (sra_modify_assign): Do not remove loads of
30796 uninitialized aggregates to SSA_NAMEs.
30798 2016-02-26 Richard Henderson <rth@redhat.com>
30801 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
30802 pseudo in case the target rtx matches the source of the left
30805 2016-02-26 Martin Jambor <mjambor@suse.cz>
30808 * hsa.h (hsa_type_packed_p): Declare.
30809 * hsa.c (hsa_type_packed_p): New function.
30810 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
30812 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
30813 * hsa-brig.c (emit_basic_insn): Likewise.
30815 2016-02-26 Martin Jambor <mjambor@suse.cz>
30818 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
30820 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
30822 2016-02-26 Martin Jambor <mjambor@suse.cz>
30824 * hsa.h (is_a_helper): New overload for hsa_op_immed for
30825 hsa_op_with_type operands.
30826 (hsa_unsigned_type_for_type): Declare.
30827 * hsa.c (hsa_unsigned_type_for_type): New function.
30828 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
30829 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
30830 the finalizer. Do not emit extra move.
30832 2016-02-26 Martin Jambor <mjambor@suse.cz>
30834 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
30835 atomic operations in private segment.
30837 2016-02-26 Martin Jambor <mjambor@suse.cz>
30839 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
30840 statements to wi->info. Also disallow omp simd constructs.
30841 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
30842 for not gridifying. Dump special string for omp_for.
30844 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30847 * config/aarch64/aarch64.c (aarch64_set_current_function):
30848 Save/restore target globals when switching to
30849 target_option_default_node.
30851 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30854 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
30855 Return 0 if !SHIFT_COUNT_TRUNCATED.
30857 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30858 Eric Botcazou <ebotcazou@adacore.com>
30860 PR rtl-optimization/69891
30861 * dse.c (scan_insn): If we can't figure out memset arguments
30862 or they are non-constant, call clear_rhs_from_active_local_stores.
30864 2016-02-26 Martin Liska <mliska@suse.cz>
30866 * doc/extend.texi: Mention clog10, clog10f an clog10l
30867 in Builtins section.
30869 2016-02-26 Martin Liska <mliska@suse.cz>
30871 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
30873 (resolve_args_picking_1): Likewise.
30874 * dwarf2out.h (struct GTY): Likewise.
30876 2016-02-26 Martin Liska <mliska@suse.cz>
30878 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
30879 with flag_checking.
30880 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30882 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
30883 Martin Liska <mliska@suse.cz>
30885 * doc/install.texi: Mention --enable-valgrind-annotations.
30887 2016-02-26 Richard Biener <rguenther@suse.de>
30889 PR tree-optimization/69551
30890 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
30891 looking through aliases adjust DECL_PT_UID to refer to the
30892 ultimate alias target.
30894 2016-02-25 Martin Liska <mliska@suse.cz>
30896 PR middle-end/69919
30897 * alloc-pool.c (after_memory_report): New variable.
30898 * alloc-pool.h (base_pool_allocator ::release): Do not use
30899 the infrastructure if after_memory_report.
30900 * toplev.c (toplev::main): Mark after memory report.
30902 2016-02-25 Richard Biener <rguenther@suse.de>
30904 PR tree-optimization/48795
30905 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
30907 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
30910 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
30911 offloading is enabled and -fopenacc or -fopenmp is specified.
30912 (CRTOFFLOADEND): Likewise.
30913 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
30914 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
30915 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
30916 (offload_objects_file_name): New static var.
30917 (tool_cleanup): Remove offload_objects_file_name file.
30918 (find_offloadbeginend): Replace with ...
30919 (find_crtoffloadtable): ... this.
30920 (run_gcc): Remove offload_argc and offload_argv.
30921 Get offload_objects_file_name from -foffload-objects=... option.
30922 Read names of object files with offload from this file, pass them to
30923 compile_images_for_offload_targets. Don't call find_offloadbeginend and
30924 don't pass offloadbegin and offloadend to the linker. Don't pass
30925 offload non-LTO files to the linker, because now they're not claimed.
30927 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
30930 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30931 on builtin_unreachable.
30933 2016-02-25 Jakub Jelinek <jakub@redhat.com>
30935 PR rtl-optimization/69896
30936 * regcprop.c: Include cfgrtl.h.
30937 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
30938 than remembered mode, either delete it (if noop_move_p), or
30939 treat like copy_p but not noop_p instruction.
30941 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30944 * dwarf2out.c (gen_variable_die): Work around buggy LTO
30945 - allow NULL decl for Fortran DW_TAG_common_block variables.
30947 2016-02-24 Jason Merrill <jason@redhat.com>
30949 * common.opt (flifetime-dse): Add -flifetime-dse=1.
30951 2016-02-24 Richard Biener <rguenther@suse.de>
30952 Jakub Jelinek <jakub@redhat.com>
30954 PR middle-end/69760
30955 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
30956 conditionally executed ops to well-defined overflow behavior.
30958 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30960 PR middle-end/69915
30961 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
30964 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30966 PR rtl-optimization/69886
30967 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
30968 argument. Use it when checking validity of set instructions.
30969 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
30970 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
30972 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
30973 * store-motion.c (find_moveable_store): Update
30974 can_assign_to_reg_without_clobbers_p callsite.
30976 2016-02-24 Richard Biener <rguenther@suse.de>
30978 PR middle-end/68963
30979 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
30981 (record_nonwrapping_iv): Do not fall back to the low/high bound
30982 for non-constant IV bases if the stmt is not always executed.
30984 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30986 * config/arm/arm-cores.def (cortex-a32): New entry.
30987 * config/arm/arm-tables.opt: Regenerate.
30988 * config/arm/arm-tune.md: Regenerate.
30989 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
30990 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
30991 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
30992 for -mcpu and -mtune.
30994 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30997 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
30998 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
30999 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
31000 (atomic_loaddi_1): Delete.
31001 (atomic_loaddi): Rewrite expander using the above changes.
31003 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31006 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
31009 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31010 Richard Biener <rguenth@suse.de>
31012 PR middle-end/69909
31013 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
31014 set_mem_attributes if tem is SSA_NAME which got expanded
31017 2016-02-24 Richard Biener <rguenther@suse.de>
31019 PR tree-optimization/69907
31020 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
31021 end of permutations for BB vectorization.
31023 2016-02-24 Christian Bruel <christian.bruel@st.com>
31025 * config/arm/arm-c.c (arm_option_override): Initialize
31026 target_option_current_node.
31027 * config/arm/arm.c (arm_pragma_target_parse): Replace
31028 build_target_option_node call by target_option_current_node.
31029 Set target_option_current_node.
31032 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
31035 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
31036 define_insn_and_split to define_insn.
31037 (zero_extendqi<mode>2_dot2): Same.
31038 (extendqi<mode>2_dot): Same.
31039 (extendqi<mode>2_dot2): Same.
31041 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
31043 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
31044 and add bypass for AES{D,E} and AESMC pairs.
31045 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
31048 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
31050 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
31051 series for reciprocal square root in Exynos M1.
31053 2016-02-23 Martin Sebor <msebor@redhat.com>
31056 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
31057 __builtin_alloca_with_align.
31059 2016-02-23 Richard Henderson <rth@redhat.com>
31061 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
31062 (ix86_register_pragmas): Remove __seg_tls.
31063 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
31064 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
31065 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
31066 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
31067 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
31068 * doc/extend.texi (__seg_tls): Remove item.
31070 2016-02-23 Richard Biener <rguenther@suse.de>
31072 * alloc-pool.h (struct allocation_object): Make id member
31073 conditional on CHECKING_P again.
31074 (get_instance): Adjust.
31075 (base_pool_allocator): Likewise.
31077 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
31079 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
31080 (parallelize_loops): In OpenACC kernels mode, set n_threads to
31082 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
31084 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
31086 2016-02-23 Richard Biener <rguenther@suse.de>
31088 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
31089 * bitmap.h (struct bitmap_usage): Likewise.
31090 (bitmap_move): Declare.
31091 * bitmap.c (register_overhead): Take size_t argument.
31092 (bitmap_move): New function.
31093 * df-problems.c (df_rd_transfer_function): Use bitmap_move
31094 to properly account overhead.
31095 * tree.c (free_node): Use tree_size.
31097 2016-02-23 Jakub Jelinek <jakub@redhat.com>
31100 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
31101 when inverting comparison.
31104 * common.opt (Wunreachable-code): Add Warning flag.
31106 2016-02-23 Mark Wielaard <mjw@redhat.com>
31107 Jakub Jelinek <jakub@redhat.com>
31110 * cgraphunit.c (check_global_declaration): Check main_input_filename
31111 and DECL_SOURCE_FILE are not NULL.
31113 2016-02-23 Martin Jambor <mjambor@suse.cz>
31115 PR tree-optimization/69666
31116 * tree-sra.c (sra_modify_assign): Do not attempt to create
31117 default_def replacements for unscalarizable regions.
31119 2016-02-20 Mark Wielaard <mjw@redhat.com>
31122 * cgraphunit.c (check_global_declaration): Check level of
31123 warn_unused_const_variable and main_input_filename.
31124 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
31125 (-Wunused-variable): For C implies -Wunused-const-variable=1.
31126 (-Wunused-const-variable): Explain levels 1 and 2.
31128 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31131 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
31132 identical arguments. Formatting and spelling fixes.
31135 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
31140 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
31141 and m68k-devices.def.
31142 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
31143 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
31145 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
31147 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
31148 and HImode registers.
31150 2016-02-22 Richard Biener <rguenther@suse.de>
31152 PR tree-optimization/69882
31153 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
31154 preserve permutations present because of gaps.
31155 (vect_supported_load_permutation_p): Always continue checking
31156 permutations after vect_attempt_slp_rearrange_stmts.
31158 2016-02-22 Bin Cheng <bin.cheng@arm.com>
31160 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
31161 min_profitable_estimate, rather than min_profitable_iters.
31163 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31166 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
31167 SImode for last match_operand.
31169 2016-02-22 Martin Liska <mliska@suse.cz>
31171 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
31172 return bitsize - 1 as the return value.
31174 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
31178 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
31179 Handle negative shift counts.
31180 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
31181 force_reg on the shift constant.
31182 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
31183 (lshrsi3_d): Handle negative shift counts.
31185 2016-02-22 Richard Biener <rguenther@suse.de>
31186 Tom de Vries <tom@codesourcery.com>
31188 * graph.c: Include dumpfile.h.
31189 (print_graph_cfg): Split into three overloads.
31190 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
31192 2016-02-22 Tom de Vries <tom@codesourcery.com>
31194 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
31197 2016-02-22 Richard Biener <rguenther@suse.de>
31200 * ipa-inline-transform.c (inline_call): When not updating
31201 overall summaries adjust self size by the growth estimate.
31202 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
31203 hash-set, do not update overall summaries here. Renamed from ...
31204 (inline_to_all_callers): ... this which is now wrapping the
31205 above and performing delayed overall summary update.
31206 (early_inline_small_functions): Delay updating of the overall
31209 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
31211 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
31214 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31217 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
31218 :%* in %:gt() argument.
31219 (greater_than_spec_func): Adjust for expecting only numbers,
31220 if there are more than two numbers, compare the last two.
31222 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
31224 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
31225 -Wnarrowing with -std.
31227 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31230 * expr.c (store_field): Don't use bit-field path if exp is
31231 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
31232 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
31233 and the assignment can be performed by bitwise copy. Formatting
31236 PR middle-end/69838
31237 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
31238 call copy_reg_eh_region_note_forward on before and/or after sequences
31239 and remove note from insn if it no longer can throw.
31242 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
31243 if TARGET_AVX512BW.
31245 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31247 * config/s390/vector.md: Add missing commutative operand markers
31248 to the patterns which qualify for one.
31249 * config/s390/vx-builtins.md: Likewise.
31251 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31253 * config/s390/vector.md (VI, VI_QHS): Add single element vector
31254 types to mode iterators.
31255 (vec_double): ... and mode attribute.
31256 * config/s390/vx-builtins.md (non_vec_int): Likewise.
31258 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31260 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
31261 Change the predicate of op2 from nonimmediate to general and let
31262 reload fix it if necessary.
31264 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31266 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
31268 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31270 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
31273 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31275 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
31276 * config/s390/s390.c (s390_expand_vec_movstr): New function.
31277 * config/s390/s390.md ("movstr<P:mode>"): Call
31278 s390_expand_vec_movstr.
31280 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31282 * config/s390/s390.md: Add missing output modifier for operand 1
31283 to print it as address properly.
31285 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31287 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
31288 * config/s390/2964.md: New file.
31289 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
31290 of insn grouping attributes depending on the CPU level.
31291 (s390_get_unit_mask): New function.
31292 (s390_sched_score): Remove the OOO from the scheduling macros.
31293 Add loop to calculate a score for the instruction mix.
31294 (s390_sched_reorder): Likewise plus improve debug output.
31295 (s390_sched_variable_issue): Rename macros as above. Calculate
31296 the unit distances after actually scheduling an insn. Improve
31298 (s390_sched_init): Clear last_scheduled_unit_distance array.
31299 * config/s390/s390.md: Include 2964.md.
31301 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31304 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
31305 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
31306 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
31307 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
31308 *avx512f_<code>v8div16qi2_mask_1): New insns.
31310 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
31313 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
31316 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
31317 earlyclobber from target. Use wF constraint for fused memory
31319 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
31321 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31322 Martin Liska <mliska@suse.cz>
31325 * cfgexpand.c (asan_sanitize_stack_p): New function.
31326 (partition_stack_vars): Use the function.
31327 (expand_stack_vars): Likewise.
31328 (defer_stack_allocation): Likewise.
31329 (expand_used_vars): Likewise.
31331 2016-02-18 Richard Biener <rguenther@suse.de>
31333 PR middle-end/69553
31334 * fold-const.c (operand_equal_p): Properly compare offsets for
31335 IMAGPART_EXPR and ARRAY_REF.
31337 2016-02-18 Nick Clifton <nickc@redhat.com>
31341 * config/arm/arm.c (arm_option_override_internal): Disable
31342 interworking if the target does not support thumb instructions.
31343 (arm_reload_in_hi): Handle the case where a register to register
31344 move needs reloading because there is no simple pattern to handle
31346 (arm_reload_out_hi): Likewise.
31348 2016-02-18 Richard Biener <rguenther@suse.de>
31350 PR middle-end/69854
31351 * match.pd: Don't use fold_binary or fold_unary for folding
31354 2016-02-17 Jakub Jelinek <jakub@redhat.com>
31357 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
31358 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
31359 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
31360 warn on gimple_no_warning_p statements.
31362 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
31364 * doc/extend.texi (C++ Attributes): Correct description of
31365 warn_unused type attribute.
31367 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31369 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
31370 correct instruction.
31372 2016-02-17 Richard Biener <rguenther@suse.de>
31374 PR rtl-optimization/69609
31375 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
31376 (find_traces_1_round): When ending a trace update cached priority
31378 (bb_to_key): Use cached priority when available.
31379 (copy_bb): Initialize cached priority.
31380 (reorder_basic_blocks_software_trace_cache): Likewise.
31382 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31385 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
31387 (aarch64_comparison_operator): Break overly long line into two.
31388 (aarch64_comparison_operation): Likewise.
31389 * config/aarch64/aarch64.md (cstorecc4): Use
31390 aarch64_comparison_operator_mode instead of
31391 aarch64_comparison_operator.
31392 (cstore<mode>4): Likewise.
31393 (aarch64_cstore<mode>): Likewise.
31394 (*cstoresi_insn_uxtw): Likewise.
31395 (cstore<mode>_neg): Likewise.
31396 (*cstoresi_neg_uxtw): Likewise.
31398 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31401 * config/arm/predicates.md (arm_comparison_operator_mode):
31403 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
31404 instead of arm_comparison_operator.
31405 (*mov_negscc): Likewise.
31406 (*mov_notscc): Likewise.
31407 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
31408 (*thumb2_mov_negscc): Likewise.
31409 (*thumb2_mov_negscc_strict_it): Likewise.
31410 (*thumb2_mov_notscc): Likewise.
31411 (*thumb2_mov_notscc_strict_it): Likewise.
31413 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
31415 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
31416 Add missing return.
31418 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
31420 * config/visium/visium.c (machine_libfunc_index): New enum.
31421 (machine_libfuncs): New structure.
31422 (visium_libfuncs): New static variable.
31423 (TARGET_INIT_LIBFUNCS): Define to...
31424 (visium_init_libfuncs): ...this. New function.
31425 (expand_block_move_4): Use the appropriate libfunc.
31426 (expand_block_move_2): Likewise.
31427 (expand_block_move_1): Likewise.
31428 (expand_block_set_4): Likewise.
31429 (expand_block_set_2): Likewise.
31430 (expand_block_set_1): Likewise.
31431 (visium_trampoline_init): Likewise.
31433 2016-02-17 Nick Clifton <nickc@redhat.com>
31435 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
31436 TI's devices.csv file as of March 2016.
31438 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
31441 * opts-global.c (handle_common_deferred_options): Introduce and
31442 initialize two global variables to remember command-line options
31443 specifying a stack-limiting register.
31444 * opts.h: Add extern declarations of the two new global variables.
31445 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
31446 variable based on the values of the two new global variables.
31448 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31451 * common.opt (Wnonnull-compare): New warning.
31452 * doc/invoke.texi (-Wnonnull): Remove text about comparison
31453 of arguments against NULL.
31454 (-Wnonnull-compare): Document.
31455 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
31456 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
31457 * passes.def (pass_warn_nonnull_compare): Add.
31458 * gimple-ssa-nonnull-compare.c: New file.
31460 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31462 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
31463 AARCH64_EXTRA_TUNE_RECIP_SQRT.
31465 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31467 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
31468 reciprocal sqrt for -mlow-precision-recip-sqrt.
31470 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31471 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31473 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
31474 always use lane loads to construct non-constant vectors.
31476 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31478 * config/aarch64/aarch64.md
31479 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
31480 constraints for operand 3.
31481 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
31483 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31484 Richard Biener <rguenther@suse.de>
31486 PR tree-optimization/69820
31487 * tree-vect-patterns.c (type_conversion_p): Return false if
31488 *orig_type is unsigned single precision or boolean.
31489 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
31492 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31494 PR rtl-optimization/69764
31495 PR rtl-optimization/69771
31496 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
31497 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
31499 2016-02-16 Richard Biener <rguenther@suse.de>
31501 PR tree-optimization/69776
31502 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
31504 (indirect_refs_may_alias_p): Likewise.
31505 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
31506 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
31507 according to tbaa_p.
31508 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
31509 (optimize_stmt): For redundant store discovery do not allow tbaa.
31511 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
31513 PR tree-optimization/69714
31514 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
31515 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
31517 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
31519 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
31520 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
31521 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
31522 * config/arc/arc.c (arc_init): Check FPU options.
31523 (get_arc_condition_code): Handle new CC_FPU* modes.
31524 (arc_select_cc_mode): Likewise.
31525 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
31526 register pair only. Allow access for ARCv2 accumulator.
31527 (gen_compare_reg): Whenever we have FPU support use FPU compare
31529 (arc_reorg): Don't generate brcc insns when FPU compare
31530 instructions are involved.
31531 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
31532 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
31533 floating point emulation.
31534 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
31535 (REVERSE_CONDITION): Add new CC_FPU* modes.
31536 (TARGET_FP_SP_BASE): Define.
31537 (TARGET_FP_DP_BASE): Likewise.
31538 (TARGET_FP_SP_FUSED): Likewise.
31539 (TARGET_FP_DP_FUSED): Likewise.
31540 (TARGET_FP_SP_CONV): Likewise.
31541 (TARGET_FP_DP_CONV): Likewise.
31542 (TARGET_FP_SP_SQRT): Likewise.
31543 (TARGET_FP_DP_SQRT): Likewise.
31544 (TARGET_FP_DP_AX): Likewise.
31545 * config/arc/arc.md (ARCV2_ACC): New constant.
31546 (type): New fpu type attribute.
31547 (SDF): Conditional iterator.
31548 (cstore<mode>, cbranch<mode>): Change expand condition.
31549 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
31550 handles FPU/FPX cases as well.
31551 * config/arc/arc.opt (mfpu): New option.
31552 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
31554 (adddf3, muldf3, subdf3): Removed.
31555 * config/arc/predicates.md (proper_comparison_operator): Recognize
31557 * config/arc/fpu.md: New file.
31558 * doc/invoke.texi (ARC Options): Document mfpu option.
31560 2016-02-16 Richard Biener <rguenther@suse.de>
31562 PR rtl-optimization/69291
31563 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
31564 noce_operand_ok check.
31566 2016-02-16 Tom de Vries <tom@codesourcery.com>
31569 * omp-low.c (simd_clone_create): Remove call to
31570 symtab->call_cgraph_insertion_hooks.
31572 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31574 PR tree-optimization/69802
31575 * tree-ssa-reassoc.c (update_range_test): If op is
31576 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
31577 op == 1 test of precision 1 integral op, otherwise handle
31578 that case as op itself. Fix up formatting.
31579 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
31582 2016-02-16 Richard Biener <rguenther@suse.de>
31584 PR tree-optimization/69586
31585 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
31586 types for conversion sources.
31588 2016-02-16 Richard Biener <rguenther@suse.de>
31590 PR middle-end/69801
31591 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
31592 mask OEP_ADDRESS_OF.
31594 2016-02-16 Alan Modra <amodra@gmail.com>
31597 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
31598 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
31599 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
31601 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
31602 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
31603 (p8_fmrgow_<mode>): Likewise.
31604 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
31606 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
31607 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
31608 to use movdi_internal64. Remove op0_di.
31609 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
31611 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
31613 Add support for the FCCMP insn types
31615 * config/aarch64/aarch64.md (fccmp): Change insn type.
31616 (fccmpe): Likewise.
31617 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
31618 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
31619 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
31620 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
31621 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
31622 * config/arm/types.md (fccmps): Add new insn type.
31623 (fccmpd): Likewise.
31625 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
31627 * alias.c (get_alias_set): Fix a typo in comment.
31629 2016-02-15 Richard Biener <rguenther@suse.de>
31631 PR tree-optimization/69595
31632 * match.pd: Complete range test simplification to true.
31634 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
31636 PR rtl-optimization/69648
31637 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
31638 pic_offset_table_rtx.
31640 PR rtl-optimization/69752
31641 * ira.c (update_equiv_regs): When looking for more than a single SET,
31642 also take other side effects into account.
31644 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31646 * config/s390/s390.c (s390_function_profiler): Add a new sequence
31647 for z900+ CPUs in 31-bit mode.
31649 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31651 * common/config/s390/s390-common.c (s390_supports_split_stack):
31653 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
31654 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
31655 * config/s390/s390.c (struct machine_function): New field
31656 split_stack_varargs_pointer.
31657 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
31658 in s390_emit_prologue.
31659 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
31661 (morestack_ref): New global.
31662 (SPLIT_STACK_AVAILABLE): New macro.
31663 (s390_expand_split_stack_prologue): New function.
31664 (s390_live_on_entry): New function.
31665 (s390_va_start): Use split-stack vararg pointer if appropriate.
31666 (s390_asm_file_end): Emit the split-stack note sections.
31667 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
31668 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
31669 (UNSPECV_SPLIT_STACK_CALL): New unspec.
31670 (UNSPECV_SPLIT_STACK_DATA): New unspec.
31671 (split_stack_prologue): New expand.
31672 (split_stack_space_check): New expand.
31673 (split_stack_data): New insn.
31674 (split_stack_call): New expand.
31675 (split_stack_call_*): New insn.
31676 (split_stack_cond_call): New expand.
31677 (split_stack_cond_call_*): New insn.
31679 2016-02-15 Richard Biener <rguenther@suse.de>
31681 PR tree-optimization/69783
31682 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31683 Add trivially correct cases.
31685 2016-02-15 Tom de Vries <tom@codesourcery.com>
31688 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
31690 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
31692 2016-02-15 Richard Biener <rguenther@suse.de>
31694 PR tree-optimization/69776
31695 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
31696 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
31697 indicate whether we can use TBAA to disambiguate against stores.
31698 Use alias-set zero if not.
31699 (visit_reference_op_store): Do not use TBAA when looking up
31701 * tree-ssa-pre.c (compute_avail): Use TBAA here.
31702 (eliminate_dom_walker::before_dom_children): But not when looking
31703 up redundant stores.
31705 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
31707 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
31709 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31711 * config/i386/znver1.md
31712 (znver1_pop, znver1_pop_mem,
31713 znver1_load_imov_double_store,
31714 znver1_load_imov_direct_store,
31715 znver1_load_imov_direct_load,
31716 znver1_load_imov_double_load): Add new.
31717 (znver1_insn, znver1_insn_load): Add icmov type.
31718 (znver1_sseavx_fma,
31719 znver1_sseavx_fma_load,
31721 znver1_avx256_fma_load): Fix pipe usage.
31723 2016-02-14 Alan Modra <amodra@gmail.com>
31726 * reload.c (find_reloads_address_1): For pre/post-inc/dec
31727 with an invalid hard reg, reload just the reg not the entire
31728 pre/post-inc/dec address expression.
31730 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31733 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
31734 fixed R1_REG scratch reg.
31735 (sibcall_value_pcrel_fdpic): Likewise.
31737 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31741 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
31743 2016-02-12 Walter Lee <walt@tilera.com>
31745 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
31746 * config/tilegx/t-tilegx: Likewise.
31748 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31751 * diagnostic-show-locus.c (struct line_span): New struct.
31752 (layout::get_first_line): Delete.
31753 (layout::get_last_line): Delete.
31754 (layout::get_num_line_spans): New member function.
31755 (layout::get_line_span): Likewise.
31756 (layout::print_heading_for_line_span_index_p): Likewise.
31757 (layout::get_expanded_location): Likewise.
31758 (layout::calculate_line_spans): Likewise.
31759 (layout::m_first_line): Delete.
31760 (layout::m_last_line): Delete.
31761 (layout::m_line_spans): New field.
31762 (layout::layout): Update comment. Replace m_first_line and
31763 m_last_line with m_line_spans, replacing their initialization
31764 with a call to calculate_line_spans.
31765 (diagnostic_show_locus): When printing source lines and
31766 annotations, rather than looping over a single span
31767 of lines, instead loop over each line_span within
31768 the layout, with an inner loop over the lines within them.
31769 Call the context's start_span callback when changing line spans.
31770 * diagnostic.c (diagnostic_initialize): Initialize start_span.
31771 (diagnostic_build_prefix): Break out the building of the location
31772 part of the string into...
31773 (diagnostic_get_location_text): ...this new function, rewriting
31774 it from nested ternary expressions to a sequence of "if"
31776 (default_diagnostic_start_span_fn): New function.
31777 * diagnostic.h (diagnostic_start_span_fn): New typedef.
31778 (diagnostic_context::start_span): New field.
31779 (default_diagnostic_start_span_fn): New prototype.
31781 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31784 * gcc.c (driver::finalize): Fix cleanup of "specs".
31786 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31790 * gcc.c (driver::driver): Initialize m_option_suggestions.
31791 (driver::~driver): Clean up m_option_suggestions.
31792 (suggest_option): Convert to...
31793 (driver::suggest_option): ...this, and split out into
31794 driver::build_option_suggestions and find_closest_string.
31795 (driver::build_option_suggestions): New function, from
31796 first half of suggest_option. Special-case
31797 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
31798 the sanitizer_opts array. For options of enum types, add the
31799 various enum values to the candidate strings.
31800 (driver::handle_unrecognized_options): Remove "const".
31801 * gcc.h (driver::handle_unrecognized_options): Likewise.
31802 (driver::build_option_suggestions): New decl.
31803 (driver::suggest_option): New decl.
31804 (driver::m_option_suggestions): New field.
31805 * opts-common.c (add_misspelling_candidates): New function.
31806 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
31807 and make non-static.
31808 * opts.h (sanitizer_opts): New array decl.
31809 (add_misspelling_candidates): New function decl.
31810 * spellcheck.c (find_closest_string): New function.
31811 * spellcheck.h (find_closest_string): New function decl.
31813 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31815 PR rtl-optimization/69764
31816 PR rtl-optimization/69771
31817 * optabs.c (expand_binop_directly): For shift_optab_p, force
31818 convert_modes with VOIDmode if xop1 has VOIDmode.
31820 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
31823 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
31824 to correctly determine instrumentation thunks.
31826 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31829 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
31830 type by reference, force lhs on the call.
31833 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
31834 Compute retval and retbnd early in all cases if split_part_return_p
31835 and return_bb is not EXIT. Remove all clobber stmts and reset
31836 all debug stmts that refer to SSA_NAMEs defined in split part,
31837 except if it is retval, in that case replace the old retval with the
31838 lhs of the call to the split part.
31840 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31843 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31845 PR middle-end/66726
31846 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31847 whose result is used in PHI.
31848 (maybe_optimize_range_tests): Likewise.
31849 (final_range_test_p): Likweise.
31851 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31853 PR middle-end/66726
31854 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31855 whose result is used in PHI.
31856 (maybe_optimize_range_tests): Likewise.
31857 (final_range_test_p): Likweise.
31859 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31861 * cgraph.c: Spelling fixes - behaviour -> behavior and
31862 neighbour -> neighbor.
31863 * target.def: Likewise.
31864 * sel-sched.c: Likewise.
31865 * config/mips/mips.c: Likewise.
31866 * config/arc/arc.md: Likewise.
31867 * config/arm/cortex-a57.md: Likewise.
31868 * config/arm/arm.c: Likewise.
31869 * config/arm/neon.md: Likewise.
31870 * config/arm/arm-c.c: Likewise.
31871 * config/vms/vms-c.c: Likewise.
31872 * config/s390/s390.c: Likewise.
31873 * config/i386/znver1.md: Likewise.
31874 * config/i386/i386.c: Likewise.
31875 * config/ia64/hpux-unix2003.h: Likewise.
31876 * config/msp430/msp430.md: Likewise.
31877 * config/rx/rx.c: Likewise.
31878 * config/rx/rx.md: Likewise.
31879 * config/aarch64/aarch64-simd.md: Likewise.
31880 * config/aarch64/aarch64.c: Likewise.
31881 * config/nvptx/nvptx.c: Likewise.
31882 * config/bfin/bfin.c: Likewise.
31883 * config/cris/cris.opt: Likewise.
31884 * config/rs6000/rs6000.c: Likewise.
31885 * target.h: Likewise.
31886 * spellcheck.c: Likewise.
31887 * ira-build.c: Likewise.
31888 * tree-inline.c: Likewise.
31889 * builtins.c: Likewise.
31890 * lra-constraints.c: Likewise.
31891 * explow.c: Likewise.
31892 * hwint.h: Likewise.
31893 * targhooks.c: Likewise.
31894 * tree-vect-data-refs.c: Likewise.
31895 * expr.c: Likewise.
31896 * doc/tm.texi: Likewise.
31897 * doc/extend.texi: Likewise.
31898 * doc/install.texi: Likewise.
31899 * doc/md.texi: Likewise.
31900 * tree-ssa-tail-merge.c: Likewise.
31901 * sched-int.h: Likewise.
31902 * match.pd: Likewise.
31903 * sched-ebb.c: Likewise.
31904 * target.def (omit_struct_return_reg): Likewise.
31905 * gimple-ssa-isolate-paths.c: Likewise.
31906 (find_implicit_erroneous_behaviour): Renamed to...
31907 (find_implicit_erroneous_behavior): ... this.
31908 (find_explicit_erroneous_behaviour): Renamed to...
31909 (find_explicit_erroneous_behavior): ... this.
31910 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
31912 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
31914 PR rtl-optimization/64682
31915 PR rtl-optimization/69567
31916 PR rtl-optimization/69737
31917 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
31918 in I2 as well, just lose it.
31920 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31922 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
31924 (aarch64_last_printed_tune_string): Likewise.
31925 (aarch64_declare_function_name): Only output .arch assembler
31926 directive if it will be different from the previously output
31927 directive. Same for .tune comment but only if -dA is set.
31928 (aarch64_start_file): New function.
31929 (TARGET_ASM_FILE_START): Define.
31931 2016-02-11 David Malcolm <dmalcolm@redhat.com>
31934 * Makefile.in (PLUGIN_HEADERS): Add params.list.
31936 2016-02-11 Jakub Jelinek <jakub@redhat.com>
31939 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
31940 -Wmaybe-uninitialized warning.
31942 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
31945 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
31947 2016-02-11 Richard Biener <rguenther@suse.de>
31949 PR rtl-optimization/69291
31950 * ifcvt.c (noce_try_store_flag_constants): Do not allow
31951 subexpressions affected by changing the result.
31953 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
31956 * lra-constraints.c (curr_insn_transform): Find in/out operands
31957 for secondary memory moves. Update dups.
31959 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
31961 PR tree-optimization/69652
31962 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
31963 to nested loop, did source re-formatting, skip debug statements,
31964 add check on statement with volatile operand, remove dead scalar
31967 2016-02-10 Jakub Jelinek <jakub@redhat.com>
31968 Patrick Palka <ppalka@gcc.gnu.org>
31972 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
31973 calls if the return type is TREE_ADDRESSABLE.
31974 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
31975 * ipa-split.c (split_function): Fix doubled "we" in comment.
31976 Use void return type for the split part even if
31977 !split_point->split_part_set_retval.
31979 2016-02-10 Bin Cheng <bin.cheng@arm.com>
31981 PR tree-optimization/68021
31982 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
31983 when computing the value of biv cand by itself.
31985 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31987 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
31988 (cortexa57_tunings): Likewise.
31989 (cortexa72_tunings): Likewise.
31990 (arch_macro_fusion_pair_p): Add support for AES fusion.
31991 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
31992 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
31993 Allow virtual registers before reload so early scheduling works.
31994 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
31995 correct latency and pipeline.
31996 (cortex_a57_crypto_complex): Likewise.
31997 (cortex_a57_crypto_xor): Likewise.
31998 (define_bypass): Add AES bypass.
32000 2016-02-10 Richard Biener <rguenther@suse.de>
32002 PR tree-optimization/69726
32003 * passes.def: Add DCE pass before late uninit.
32004 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
32005 really fixup if-conversions job.
32007 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
32009 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
32010 (arm_cortex_a57_tune): Likewise.
32011 (aarch_macro_fusion_pair_p): Add support for AES fusion.
32012 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
32014 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
32016 * timevar.def (TV_PHASE_DBGINFO): Delete.
32017 (TV_PHASE_CHECK_DBGINFO): Likewise.
32018 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
32020 2016-02-10 Richard Biener <rguenther@suse.de>
32022 PR tree-optimization/69719
32023 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32024 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
32026 2016-02-09 Andrew Pinski <apinski@cavium.com>
32029 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
32030 get_vcond_mask_icode returns false.
32032 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
32035 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
32036 an ADDIS that adds a pointer to a large constant that sets the
32037 upper16 bits with a load operation.
32039 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
32042 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
32044 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
32046 (vzipq_s16): Likewise.
32047 (vzipq_s32): Likewise.
32048 (vzipq_f32): Likewise.
32049 (vzipq_u8): Likewise.
32050 (vzipq_u16): Likewise.
32051 (vzipq_u32): Likewise.
32052 (vzipq_p8): Likewise.
32053 (vzipq_p16): Likewise.
32055 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
32058 * config/arm/arm.c (neon_endian_lane_map): New function.
32059 (neon_vector_pair_endian_lane_map): New function.
32060 (arm_evpc_neon_vuzp): Allow for big endian lane order.
32061 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
32063 (vuzpq_s16): Likewise.
32064 (vuzpq_s32): Likewise.
32065 (vuzpq_f32): Likewise.
32066 (vuzpq_u8): Likewise.
32067 (vuzpq_u16): Likewise.
32068 (vuzpq_u32): Likewise.
32069 (vuzpq_p8): Likewise.
32070 (vuzpq_p16): Likewise.
32072 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
32075 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
32078 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
32080 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
32081 truncate const_int operand 1 to QImode.
32083 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
32085 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
32086 corresponding to an abnormal edge.
32088 2016-02-09 Tom de Vries <tom@codesourcery.com>
32090 PR tree-optimization/69599
32091 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
32093 (find_func_aliases_for_builtin_call, find_func_clobbers)
32094 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
32097 2016-02-09 Richard Biener <rguenther@suse.de>
32099 PR tree-optimization/69715
32100 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
32101 LHS on calls as non-rewritable.
32103 2016-02-09 Tom de Vries <tom@codesourcery.com>
32106 * lto-wrapper.c (append_diag_options): New function.
32107 (compile_offload_image): Call append_diag_options.
32109 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
32112 * doc/extend.texi (Flag Output Operands): Correct sectioning.
32113 Minor copy-edit to fix verb tenses.
32115 2016-02-08 Jakub Jelinek <jakub@redhat.com>
32117 PR tree-optimization/69209
32118 * ipa-split.c (split_function): If split part is not
32119 returning retval, retval has gimple type but is not
32120 gimple value, force it into a SSA_NAME first.
32122 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
32124 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
32127 2016-02-08 Jason Merrill <jason@redhat.com>
32130 * convert.c (convert_to_integer_1): Check dofold on truncation
32132 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
32133 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
32134 Rename from *_nofold.
32135 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
32136 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
32138 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
32141 * tree.c (build_common_tree_nodes): Remove short_double argument.
32142 All callers changed.
32143 * tree.h (build_common_tree_nodes): Adjust declaration.
32144 * doc/invoke.texi (-fshort-double): Remove documentation.
32145 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
32146 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
32147 * lto-wrapper.c (merge_and_complain, append_compiler_options)
32148 (append_linker_options): Don't handle OPT_fshort_double.
32150 PR rtl-optimization/68730
32151 * lra-remat.c (insn_to_cand_activation): New static variable.
32152 (lra_remat): Allocate and free it.
32153 (create_cand): New arg activation. Initialize a field in
32154 insn_to_cand_activation if it is nonnull.
32155 (create_cands): Pass the activation insn to create_cand when making
32156 a candidate involving an output reload. Reorganize code a little.
32157 (do_remat): Keep track of active status of candidates in a separate
32160 2016-02-08 Richard Biener <rguenther@suse.de>
32162 PR tree-optimization/69719
32163 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32164 Properly use absolute of the difference of the two offsets to
32165 compare or adjust the segment length.
32167 2016-02-08 Richard Biener <rguenther@suse.de>
32168 Jeff Law <law@redhat.com>
32171 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
32172 types for anonymous SSA names.
32174 2016-02-08 Richard Biener <rguenther@suse.de>
32176 PR rtl-optimization/69274
32177 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
32179 2016-02-08 Jeff Law <law@redhat.com>
32181 PR tree-optimization/65917
32182 * tree-ssa-dom.c (record_temporary_equivalences): Record both
32183 equivalences from if (x == y) style conditionals.
32184 (loop_depth_of_name): Remove.
32185 (record_equality): Remove loop depth check.
32186 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
32187 (const_and_copies::record_const_or_copy_raw): New member function.
32188 * tree-ssa-scopedtables.c
32189 (const_and_copies::record_const_or_copy_raw): New, factored out of
32190 (const_and_copies::record_const_or_copy): Call new member function.
32192 2016-02-05 Jeff Law <law@redhat.com>
32194 PR tree-optimization/68541
32195 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
32196 (count_stmts_in_block): New function.
32197 (poor_ifcvt_candidate_code): Likewise.
32198 (is_feasible_trace): Add some heuristics to determine when path
32199 splitting is profitable.
32200 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
32201 is a diamond with a single exit.
32203 2016-02-05 Martin Sebor <msebor@redhat.com>
32206 * doc/invoke.texi: Update -Wplacement-new to take an optional
32209 2016-02-06 Richard Henderson <rth@redhat.com>
32212 * tree.c (tree_nop_conversion_p): Do not strip casts into or
32213 out of non-standard address spaces.
32215 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32217 PR rtl-optimization/69691
32218 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
32220 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
32222 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
32223 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
32224 (*ieee128_mfvsrd_64bit): Likewise.
32225 (*ieee128_mfvsrd_32bit): Likewise.
32227 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
32231 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32233 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
32234 instrumented_version.
32236 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
32238 * doc/invoke.texi (Optimize Options): In table of --param options
32239 rename second occurrence of tracer-min-branch-ratio to
32240 tracer-min-branch-probability, rename
32241 tracer-min-branch-ratio-feedback to
32242 tracer-min-branch-probability-feedback and clarify description,
32243 rename sched-spec-state-edge-prob-cutoff to
32244 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
32245 to selsched-insns-to-rename, rename lto-minpartition to
32246 lto-min-partition, delete reorder-blocks-duplicate and
32247 reorder-blocks-duplicate-feedback.
32249 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32251 * config/s390/s390.c (s390_register_info_set_ranges): Remove
32254 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
32256 * doc/extend.texi: S/390: Correct some typos.
32258 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32260 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
32262 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32265 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
32266 (s390_register_info_gprtofpr): Use new macros above.
32267 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
32269 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
32270 its name. Adjust restore and save gpr ranges.
32271 (s390_register_info_set_ranges): New function.
32272 (s390_register_info): Use new macros above. Call
32273 s390_register_info_set_ranges.
32274 (s390_optimize_register_info): Likewise.
32275 (s390_hard_regno_rename_ok): Use new macros.
32276 (s390_hard_regno_scratch_ok): Likewise.
32277 (s390_emit_epilogue): Likewise.
32278 (s390_can_use_return_insn): Likewise.
32279 (s390_optimize_prologue): Likewise.
32280 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
32282 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32285 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
32287 (ix86_option_override_internal): Disable TARGET_STV even for
32288 -m{incoming,preferred}-stack-boundary=3.
32290 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32292 * config.gcc: Mark deprecated rtems targets as obsolete.
32294 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
32296 PR rtl-optimization/64682
32297 PR rtl-optimization/69567
32298 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
32299 before I2 only if the register is both used and set in I2.
32301 2016-02-04 DJ Delorie <dj@redhat.com>
32303 * config/msp430/msp430.c (msp430_start_function): Add function type.
32305 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32308 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
32310 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
32312 PR rtl-optimization/69577
32314 2015-10-29 Richard Henderson <rth@redhat.com>
32318 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
32319 sse check to the exact conditions of PR 67609.
32321 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
32324 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
32325 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
32326 not allowed into the traditional Altivec registers.
32327 (movtd_64bit_nodm): Likewise.
32328 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
32330 2016-02-04 David Malcolm <dmalcolm@redhat.com>
32332 * config/aarch64/cortex-a57-fma-steering.c
32333 (aarch64_register_fma_steering): Remove "static" from arguments
32336 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
32339 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
32340 twice when complex.
32342 2016-02-04 Mike Frysinger <vapier@gentoo.org>
32344 * doc/invoke.texi: Delete -mno-fma4.
32346 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
32348 PR rtl-optimization/69577
32349 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
32350 (find_subregs_of_mode): Update accordingly. Iterate over partial
32353 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
32355 * config/arm/arm-protos.h (neon_reinterpret): Remove.
32356 * config/arm/arm.c (neon_reinterpret): Remove.
32357 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
32358 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
32359 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
32360 vreinterpretti): Remove.
32361 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
32362 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
32363 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
32364 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
32365 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
32366 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
32367 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
32368 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
32369 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
32370 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
32371 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
32372 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
32373 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
32374 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
32375 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
32376 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
32377 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
32378 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
32379 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
32380 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
32381 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
32382 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
32383 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
32384 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
32385 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
32386 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
32387 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
32388 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
32389 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
32390 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
32391 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
32392 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
32393 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
32394 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
32395 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
32396 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
32397 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
32398 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
32399 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
32400 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
32401 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
32402 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
32403 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
32404 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
32405 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
32406 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
32407 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
32408 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
32409 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
32410 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
32411 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
32412 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
32413 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
32414 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
32415 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
32416 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
32417 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
32418 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
32419 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
32420 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
32421 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
32422 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
32423 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
32424 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
32425 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
32426 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
32427 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
32428 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
32429 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
32430 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
32431 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
32432 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
32433 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
32434 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
32435 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
32436 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
32437 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
32438 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
32439 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
32440 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
32441 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
32442 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
32443 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
32444 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
32445 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
32446 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
32447 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
32448 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
32449 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
32450 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
32451 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
32452 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
32453 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
32454 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
32455 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
32456 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
32457 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
32458 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
32459 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
32460 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
32461 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
32462 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
32463 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
32465 2016-02-04 Martin Liska <mliska@suse.cz>
32468 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
32469 that are gimple_store_p.
32470 (maybe_instrument_call): Likewise.
32472 2016-02-04 Bin Cheng <bin.cheng@arm.com>
32474 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
32475 register scaling out of memory reference and comment why.
32477 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32481 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
32482 folding the source of a SET.
32484 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32488 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
32489 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
32491 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
32495 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
32498 2016-02-04 Christian Bruel <christian.bruel@st.com>
32500 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
32501 * config/arm/arm.c (arm_set_current_function): Likewise.
32503 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32504 Ilya Enkovich <enkovich.gnu@gmail.com>
32505 H.J. Lu <hongjiu.lu@intel.com>
32508 * config/i386/i386.c (convert_scalars_to_vector): Remove
32509 stack alignment fixes.
32510 (ix86_option_override_internal): Disable TARGET_STV if stack
32511 might not be aligned enough.
32512 (ix86_minimum_alignment): Assert that TARGET_STV is false.
32514 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
32516 * config/i386/x86-tune.def: Disable default prefetching
32519 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32520 Vladimir Makarov <vmakarov@redhat.com>
32523 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
32524 in validating fused toc addresses.
32526 2016-02-03 Jakub Jelinek <jakub@redhat.com>
32529 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
32530 range->m_caret fields if range->m_show_caret_p is false.
32533 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
32534 Force oldval into register if it does not satisfy reg_or_short_operand
32535 predicate. Fix up formatting.
32537 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
32538 Alexandre Oliva <aoliva@redhat.com>
32541 * lra-constraints.c (simplify_operand_subreg): Check additionally
32542 address validity after potential reloading.
32543 (process_address_1): Check insns validity. In case of failure do
32546 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
32549 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
32552 2016-02-02 Jakub Jelinek <jakub@redhat.com>
32554 * wide-int.cc (canonize_uhwi): New function.
32555 (wi::divmod_internal): Use it.
32557 2016-02-02 James Norris <jnorris@codesourcery.com>
32559 * gimplify.c (omp_notice_variable): Add usage check.
32561 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
32563 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
32564 like LE, GE, LT, GT when emitting relational operator.
32566 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32568 * ira-costs.c (find_costs_and_classes): Add extra argument.
32569 * target.def (ira_change_pseudo_allocno_class): Add parameter.
32570 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
32571 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
32572 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
32573 Add best_class parameter, and return it if not ALL_REGS.
32574 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
32576 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
32577 Update target hook.
32579 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32581 * config/aarch64/aarch64.c
32582 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
32583 (aarch64_ira_change_pseudo_allocno_class): New function.
32585 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
32588 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
32590 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32592 * config/avr/avr.c (avr_option_override): Set
32593 PARAM_ALLOW_STORE_DATA_RACES to 1.
32595 2016-02-02 Richard Biener <rguenther@suse.de>
32597 PR tree-optimization/69595
32598 * match.pd: Add range test simplifications to true/false.
32600 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
32602 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
32603 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
32606 2016-02-02 Richard Biener <rguenther@suse.de>
32608 PR tree-optimization/69606
32609 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
32610 info on the result before moving a stmt.
32612 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
32614 PR middle-end/68542
32615 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
32616 branch with vector comparison.
32617 * config/i386/sse.md (VI48_AVX): New mode iterator.
32618 (define_expand "cbranch<mode>4): Add support for conditional branch
32619 with vector comparison.
32620 * tree-vect-loop.c (optimize_mask_stores): New function.
32621 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
32622 has_mask_store field of vect_info.
32623 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
32624 vectorized loops having masked stores after vec_info destroy.
32625 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
32626 correspondent macros.
32627 (optimize_mask_stores): Add prototype.
32629 2016-02-02 Alan Modra <amodra@gmail.com>
32632 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
32635 2016-02-02 Alan Modra <amodra@gmail.com>
32638 * config/rs6000/rs6000.c (need_toc_init): New var, set it
32639 whenever toc_label_name used.
32640 (rs6000_file_start): Don't set up toc section here,
32641 (rs6000_output_function_epilogue): do so here instead,
32642 (rs6000_xcoff_file_start): and here.
32643 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
32644 (load_toc_aix_di): Likewise.
32646 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32648 PR rtl-optimization/69592
32649 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
32650 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
32651 (num_sign_bit_copies_binary_arith_p): New inline function.
32652 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
32654 2016-02-01 Jeff Law <law@redhat.com>
32656 PR tree-optimization/69580
32657 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
32658 * tree-ssa-threadbackward.c
32659 (fsm_find_control_statement_thread_paths): Do not try to walk
32660 through large PHI nodes.
32662 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32664 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
32665 when count is incremented above limit, don't analyze further
32668 * omp-low.c (oacc_parse_default_dims): Avoid
32669 -Wsign-compare warning, make sure value fits into int
32670 rather than just unsigned int.
32672 2016-02-01 Bin Cheng <bin.cheng@arm.com>
32674 PR tree-optimization/67921
32675 * fold-const.c (split_tree): New parameters. Convert pointer
32676 type variable part to proper type before negating.
32677 (fold_binary_loc): Pass new arguments to split_tree.
32679 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
32681 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
32682 (nvptx_goacc_validate_dims): Extend to handle global defaults.
32683 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
32684 * doc/tm.texti: Rebuilt.
32685 * doc/invoke.texi (fopenacc-dim): Document.
32686 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
32687 (append_compiler_options): Likewise.
32688 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
32689 (oacc_parse_default_dims): New.
32690 (oacc_validate_dims): Add USED arg. Select non-unity default when
32692 (oacc_loop_fixed_partitions): Return mask of used partitions.
32693 (oacc_loop_auto_partitions): Emit dump info.
32694 (oacc_loop_partition): Return mask of used partitions.
32695 (execute_oacc_device_lower): Parse default dimension arg. Adjust
32696 loop partitioning and validation calls.
32698 2016-02-01 Richard Biener <rguenther@suse.de>
32700 PR middle-end/69556
32701 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
32703 2016-02-01 Richard Biener <rguenther@suse.de>
32705 PR tree-optimization/69574
32706 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
32707 of asserting return chrec_dont_know.
32709 2016-02-01 Martin Liska <mliska@suse.cz>
32711 * mem-stats-traits.h: Add copyright header.
32712 * mem-stats.h: Likewise.
32714 2016-02-01 Richard Biener <rguenther@suse.de>
32716 PR tree-optimization/69579
32717 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
32718 Do not propagate through abnormal PHI results.
32720 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
32722 * postreload.c (reload_cse_simplify): Remove dead code.
32724 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32726 PR rtl-optimization/69570
32727 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
32728 if there is more than one set, not if there is a single set.
32730 2016-02-01 Richard Henderson <rth@redhat.com>
32733 * combine.c (make_compound_operation): When looking through a
32734 subreg, make sure to re-extend to the width of the outer mode.
32736 2016-01-30 Jakub Jelinek <jakub@redhat.com>
32738 PR tree-optimization/69546
32739 * wide-int.cc (wi::divmod_internal): For unsigned division
32740 where both operands fit into uhwi, if o1 is 1 and o0 has
32741 msb set, if divident_prec is larger than bits per hwi,
32742 clear another quotient word and return 2 instead of 1.
32743 Similarly for remainder with msb in HWI set, if dividend_prec
32744 is larger than bits per hwi.
32746 2016-01-29 Martin Jambor <mjambor@suse.cz>
32748 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
32749 Use short lowercase names.
32750 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
32751 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
32752 acq_rel one. Protect warning agains segfaults if
32753 get_memory_order_name returns NULL.
32754 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
32755 with release semantics. Do not warn if get_memory_order already did.
32756 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
32757 semantics. Fix check for relaxed or acquire semantics. Do not warn
32758 if get_memory_order already did.
32760 2016-01-29 Sebastian Pop <s.pop@samsung.com>
32762 * doc/install.texi: Document that isl-0.16 is supported.
32764 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
32767 * config/i386/constraints.md (Bm): Describe as special memory
32769 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
32770 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32771 * genpreds.c (struct constraint_data): Add is_special_memory.
32772 (have_special_memory_constraints, special_memory_start): New
32774 (special_memory_end): Ditto.
32775 (add_constraint): Add new arg is_special_memory. Add code to
32776 process its true value. Update have_special_memory_constraints.
32777 (process_define_constraint): Pass the new arg.
32778 (process_define_register_constraint): Ditto.
32779 (choose_enum_order): Process special memory.
32780 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
32781 function insn_extra_special_memory_constraint.
32782 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32783 * gensupport.c (process_rtx): Process
32784 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32785 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
32786 * ira-lives.c (single_reg_class): Use
32787 insn_extra_special_memory_constraint.
32788 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
32789 * lra-constraints.c (process_alt_operands): Ditto.
32790 (curr_insn_transform): Use insn_extra_special_memory_constraint.
32791 * recog.c (asm_operand_ok, preprocess_constraints): Process
32793 * reload.c (find_reloads): Ditto.
32794 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
32795 * stmt.c (parse_input_constraint): Use
32796 insn_extra_special_memory_constraint.
32798 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32801 * lra-splill.c (lra_final_code_change): Revert r229087 by
32802 removing all sub-registers.
32804 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
32807 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
32809 2016-01-29 Jakub Jelinek <jakub@redhat.com>
32812 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
32813 SSE1, copy target into the temporary reg first before recursing
32816 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32818 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
32821 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32823 * ginclude/stdarg.h: Test __cplusplus instead of
32824 __GXX_EXPERIMENTAL_CXX0X__.
32826 2016-01-29 Richard Biener <rguenther@suse.de>
32828 PR tree-optimization/69547
32829 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
32830 Do not mark clobbers necessary.
32831 (mark_all_reaching_defs_necessary_1): Likewise.
32833 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32835 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
32836 declaration name with %qs and print it in both error messages.
32837 Also fix indentation.
32839 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32842 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
32843 trailing blank line from error message.
32845 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32848 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
32851 2016-01-29 Richard Biener <rguenther@suse.de>
32853 PR middle-end/69537
32854 * match.pd: Allow all integral types when simplifying a
32855 widening or sign-changing conversion.
32857 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32859 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
32860 back to setting codegen_error to fail codegen.
32862 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
32865 * config/i386/constraints.md (C): Only accept constant zero operand.
32866 (BC): New constraint.
32867 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
32868 instead of C constraint.
32869 * doc/md.texi (Machine Constraints): Update description
32872 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
32875 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
32877 2016-01-28 Jakub Jelinek <jakub@redhat.com>
32879 PR middle-end/69542
32880 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
32883 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
32885 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
32886 branches if using guessed profile.
32888 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
32890 * graphite-optimize-isl.c (optimize_isl): Fix dump.
32892 2016-01-28 Richard Henderson <rth@redhat.com>
32895 * config/aarch64/aarch64-modes.def (CC_Cmode): New
32896 * config/aarch64/aarch64-protos.h: Update.
32897 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
32898 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
32899 (aarch64_get_condition_code_1): Handle CC_Cmode.
32900 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
32901 (*add<mode>3_compareC_cconly_imm): New.
32902 (*add<mode>3_compareC_cconly): New.
32903 (*add<mode>3_compareC_imm): New.
32904 (add<mode>3_compareC): New.
32905 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
32906 to be first. Use aarch64_carry_operation.
32907 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
32908 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
32909 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
32910 (subti3): Use subdi3_compare1.
32911 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
32912 (sub<mode>3_compare1): New.
32913 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
32914 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
32915 (*subsi3_carryin_uxtw): Likewise.
32916 (*ngc<mode>, *ngcsi_uxtw): Likewise.
32917 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
32918 * config/aarch64/iterators.md (DWI): New.
32919 * config/aarch64/predicates.md (aarch64_carry_operation): New.
32920 (aarch64_borrow_operation): New.
32922 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32924 * graphite-optimize-isl.c (optimize_isl): Print a different debug
32925 message when isl does not return a valid schedule.
32927 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32929 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
32930 Remove comments from class declarations: they are already in the code
32933 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32935 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
32937 (ternary_op_to_tree): Same.
32938 (unary_op_to_tree): Same.
32939 (nary_op_to_tree): Same.
32940 (gcc_expression_from_isl_expr_op): Same.
32941 (gcc_expression_from_isl_expression): Same.
32942 (graphite_create_new_loop): Same.
32943 (graphite_create_new_loop_guard): Same.
32944 (build_iv_mapping): Same.
32945 (graphite_create_new_guard): Same.
32946 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
32947 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
32949 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32951 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
32952 instead of setting codegen_error to fail codegen.
32954 2016-01-28 Jason Merrill <jason@redhat.com>
32956 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
32958 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32960 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
32961 Remove CONST_INT_P check in CCMP cost calculation.
32963 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32965 * config/aarch64/aarch64.c (generic_vector_cost):
32966 Set vec_permute_cost.
32967 (cortexa57_vector_cost): Likewise.
32968 (exynosm1_vector_cost): Likewise.
32969 (xgene1_vector_cost): Likewise.
32970 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
32971 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
32972 Add vec_permute_cost entry.
32974 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32976 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
32978 (add<mode>3_compare0): Likewise.
32979 (addsi3_compare0_uxtw): Likewise.
32980 (add<mode>3nr_compare0): Likewise.
32981 (compare_neg<mode>): Likewise.
32982 (<optab><mode>3): Likewise.
32984 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
32986 * tree-vect-stmts.c (vectorizable_comparison): Add
32987 NULL check for vectype.
32989 2016-01-28 Richard Biener <rguenther@suse.de>
32991 PR tree-optimization/69466
32992 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
32993 Account for PHIs we couldn't duplicate.
32995 2016-01-28 Martin Liska <mliska@suse.cz>
32998 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
32999 instead of ENABLE_VALGRIND_CHECKING.
33001 2016-01-27 Richard Henderson <rth@redhat.com>
33004 * lra-remat.c (subreg_regs): New.
33005 (dump_candidates_and_remat_bb_data): Dump it.
33006 (operand_to_remat): Reject if operand in subreg_regs.
33007 (set_bb_regs): Collect subreg_regs.
33008 (lra_remat): Init and free subreg_regs. Compute
33009 calculate_local_reg_remat_bb_data before create_cands.
33011 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
33014 * config/i386/i386.c (ix86_update_stack_boundary): Don't
33015 change stack_alignment_needed for __tls_get_addr call.
33017 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
33019 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
33021 2016-01-27 Jeff Law <law@redhat.com>
33023 PR tree-optimization/68398
33024 PR tree-optimization/69196
33025 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
33026 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
33027 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33028 Only count PHIs in the last block in the path. The others will
33029 const/copy propagate away. Add heuristic to allow more irreducible
33030 subloops to be created when it is likely profitable to do so.
33032 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33033 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
33034 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
33036 2016-01-27 Jakub Jelinek <jakub@redhat.com>
33039 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
33040 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
33041 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
33042 * tree-streamer-in.c: Include asan.h.
33043 (streamer_get_builtin_tree): For builtins in sanitizer
33044 range call initialize_sanitizer_builtins and retry.
33046 2016-01-27 Ian Lance Taylor <iant@google.com>
33048 * common.opt (fkeep-gc-roots-live): New undocumented option.
33049 * tree-ssa-loop-ivopts.c (add_candidate_1): If
33050 -fkeep-gc-roots-live, skip pointers.
33051 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
33054 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
33057 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
33058 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
33060 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
33063 * configure.ac: NetBSD provides SSP in its C library.
33064 * configure: Updated.
33066 2016-01-27 Richard Biener <rguenther@suse.de>
33068 PR tree-optimization/69166
33069 * tree-vect-loop.c (vect_is_simple_reduction): Always check
33070 reduction code for commutativity / associativity.
33072 2016-01-27 Martin Jambor <mjambor@suse.cz>
33074 PR tree-optimization/69355
33075 * tree-sra.c (analyze_access_subtree): Correct hole detection when
33076 total_scalarization fails.
33078 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
33080 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
33083 2016-01-27 Christian Bruel <christian.bruel@st.com>
33086 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
33087 Move arm_reset_previous_fndecl and set_target_option_current_node in
33088 the conditional part. Call save_restore_target_globals.
33089 * config/arm/arm.c (arm_set_current_function):
33090 Refactor to better support #pragma target and attribute mix.
33091 Call save_restore_target_globals.
33092 * config/arm/arm-protos.h (save_restore_target_globals): New function.
33094 2016-01-27 Martin Liska <mliska@suse.cz>
33096 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
33097 reference for an HSA kernel and its host function.
33099 2016-01-27 Jakub Jelinek <jakub@redhat.com>
33101 PR tree-optimization/69399
33102 * wide-int.h (wi::lrshift): For larger precisions, only
33103 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
33105 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
33107 * config/arc/predicates.md (proper_comparison_operator): Reject
33108 constant-constant comparison.
33110 2016-01-26 Tom de Vries <tom@codesourcery.com>
33112 PR tree-optimization/69110
33113 * tree-data-ref.c (initialize_data_dependence_relation): Handle
33114 DR_NUM_DIMENSIONS == 0.
33116 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
33117 Sebastian Pop <s.pop@samsung.com>
33119 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
33120 isl_ast_op_cond and isl_ast_op_select.
33121 (gcc_expression_from_isl_expr_op): Same.
33123 2016-01-26 Jason Merrill <jason@redhat.com>
33126 * tree.c (recompute_constructor_flags): Split out from
33128 (verify_constructor_flags): New.
33129 * tree.h: Declare them.
33131 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
33133 PR rtl-optimization/69217
33134 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
33135 are no TYPE_FIELDS set for the record type.
33137 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33140 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
33141 toc_label_name unconditionally.
33142 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
33143 SYMBOL_REF string. Use toc_label_name instead of constructing
33145 (rs6000_elf_declare_function_name): Use toc_label_name instead of
33146 constructing LCTOC1.
33148 2016-01-26 Martin Sebor <msebor@redhat.com>
33151 * doc/extend.texi (Common Type Attributes): Move text that talks about
33152 attribute packed from attribute aligned to the section discussing
33153 the former attribute for clarity.
33155 2016-01-26 Richard Henderson <rth@redhat.com>
33157 PR middle-end/60908
33158 * trans-mem.c (tm_region_init): Mark entry block as visited.
33160 2016-01-26 David Malcolm <dmalcolm@redhat.com>
33163 * diagnostic-show-locus.c (layout::print_source_line): Replace
33164 call to pp_newline with call to layout::print_newline.
33165 (layout::print_annotation_line): Likewise.
33166 (layout::move_to_column): Likewise.
33167 (layout::print_any_fixits): After printing any fixits, print a
33168 trailing newline, if necessary.
33169 (layout::print_newline): New method, resetting any colorization
33171 (diagnostic_show_locus): Move the pp_newline to before the
33172 early bailout. Remove dummy block enclosing the layout instance.
33173 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
33174 of pp_newline_and_flush with pp_flush.
33175 (diagnostic_append_note): Delete use of pp_newline.
33176 (diagnostic_append_note_at_rich_loc): Delete.
33177 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
33178 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
33179 when newline characters are added to the buffer.
33181 2016-01-26 Michael Matz <matz@suse.de>
33183 * configure.ac (ac_cv_std_swap_in_utility): New test.
33184 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
33185 * configure: Regenerate.
33186 * config.in: Regenerate.
33188 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
33190 * config/arc/arc.md (cstoresi4): Force operand into register.
33191 (arcset<code>): Fix predicate.
33192 (arcsetltu): Likewise.
33193 (arcsetgeu): Likewise.
33194 (arcsethi): Likewise.
33195 (arcsetls): Likewise.
33197 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33199 PR tree-optimization/69483
33200 * gimple-fold.c (canonicalize_constructor_val): Return NULL
33201 if base has error_mark_node type.
33203 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
33206 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
33207 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
33209 (vget_lane_f16): Handle big-endian.
33210 (vgetq_lane_f16): Likewise.
33211 (vset_lane_f16): Likewise.
33212 (vsetq_lane_f16): Likewise.
33213 * config/arm/iterators.md (VQXMOV): Add V8HF.
33214 (VDQ): Add V4HF and V8HF.
33215 (V_reg): Handle V4HF and V8HF.
33216 (Is_float_mode): Likewise.
33217 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
33218 neon_vdup_nv8hf): New patterns.
33219 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
33220 Use VD_LANE iterator.
33221 (neon_vld1_dup<mode>): Use VQ2 iterator.
33223 2016-01-26 Nathan Sidwell <nathan@acm.org>
33225 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
33226 (set_oacc_fn_attrib): Add IS_KERNEL arg.
33227 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
33228 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
33229 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
33230 (oacc_validate_dims): Add LEVEL arg, don't return level.
33231 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
33232 oacc_validate_dims.
33233 (execute_oacc_device_lower): Adjust, add more dump output.
33234 * tree-ssa-loop.c (gate_oacc_kernels): Use
33235 oacc_fn_attrib_kernels_p.
33236 * tree-parloops.c (create_parallel_loop): Adjust
33237 set_oacc_fn_attrib call.
33239 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33242 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
33243 (append_compiler_options): Handle -fcilkplus.
33244 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
33246 2016-01-26 Nick Clifton <nickc@redhat.com>
33249 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
33250 been marked as DECL_ONE_ONLY but we do not the means to make it
33251 so, then do not allow it to bind locally.
33253 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33256 * opts.h (parse_sanitizer_options): New prototype.
33257 * opts.c (sanitizer_opts): New array.
33258 (parse_sanitizer_options): New function.
33259 (common_handle_option): Use parse_sanitizer_options.
33261 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
33264 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
33265 alignment adjustment to ...
33266 (ix86_update_stack_boundary): Here. Don't over-align stack for
33268 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
33269 if __tls_get_addr is called.
33271 2016-01-26 Christian Bruel <christian.bruel@st.com>
33273 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
33275 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
33277 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
33279 2016-01-26 Richard Biener <rguenther@suse.de>
33281 PR middle-end/69467
33282 * match.pd: Guard X * CST CMP 0 pattern with single_use.
33284 2016-01-26 Richard Biener <rguenther@suse.de>
33286 PR tree-optimization/69452
33287 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
33288 (move_computations_dom_walker::before_dom_children): Rename
33290 (move_computations_worker): This.
33291 (move_computations): Perform an RPO rather than a DOM walk.
33293 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33296 * combine.c (combine_instructions): For REG_EQUAL note with
33297 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
33298 to the underlying register.
33299 * doc/rtl.texi (REG_EQUAL): Document the behavior of
33300 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
33302 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
33305 * config/aarch64/aarch64-builtins.c
33306 (aarch64_init_simd_builtin_types): Do not set structural
33307 equality to __Poly{8,16,64,128}_t types.
33309 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
33311 PR tree-optimization/69400
33312 * wide-int.cc (wi_pack): Take the precision as argument and
33313 perform canonicalization here rather than in the callers.
33314 Use the main loop to handle all full-width HWIs. Add a
33315 zero HWI if in_len isn't a full result.
33316 (wi::divmod_internal): Update accordingly.
33317 (wi::mul_internal): Likewise. Simplify.
33319 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33320 Sebastian Pop <s.pop@samsung.com>
33322 * graphite-poly.c (apply_poly_transforms): Simplify.
33323 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
33324 (print_isl_map): Same.
33325 (print_isl_union_map): Same.
33326 (print_isl_schedule): New.
33327 (debug_isl_schedule): New.
33328 * graphite-dependences.c (scop_get_reads): Do not call
33329 isl_union_map_add_map that is undocumented isl functionality.
33330 (scop_get_must_writes): Same.
33331 (scop_get_may_writes): Same.
33332 (scop_get_original_schedule): Remove.
33333 (scop_get_dependences): Do not call isl_union_map_compute_flow that
33334 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
33335 (compute_deps): Remove.
33336 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
33337 (debug_schedule_ast): New.
33338 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
33339 set_separate_option.
33340 (graphite_regenerate_ast_isl): Add dump.
33341 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
33342 from scop->transformed_schedule.
33343 (graphite_regenerate_ast_isl): Add more dump.
33344 * graphite-optimize-isl.c (optimize_isl): Set
33345 scop->transformed_schedule. Check whether schedules are equal.
33346 (apply_poly_transforms): Move here.
33347 * graphite-poly.c (apply_poly_transforms): ... from here.
33348 (free_poly_bb): Static.
33349 (free_scop): Static.
33350 (pbb_number_of_iterations_at_time): Remove.
33351 (print_isl_ast): New.
33352 (debug_isl_ast): New.
33353 (debug_scop_pbb): New.
33354 * graphite-scop-detection.c (print_edge): Move.
33355 (print_sese): Move.
33356 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
33357 (build_scop_scattering): Remove.
33358 (create_pw_aff_from_tree): Assert instead of bailing out.
33359 (add_condition_to_pbb): Remove unused code, do not fail.
33360 (add_conditions_to_domain): Same.
33361 (add_conditions_to_constraints): Remove.
33362 (build_scop_context): New.
33363 (add_iter_domain_dimension): New.
33364 (build_iteration_domains): Initialize pbb->iterators.
33365 Call add_conditions_to_domain.
33368 (index_outermost_in_loop): New.
33369 (index_pbb_in_loop): New.
33370 (outermost_pbb_in): New.
33371 (add_in_sequence): New.
33372 (add_outer_projection): New.
33373 (outer_projection_mupa): New.
33374 (add_loop_schedule): New.
33375 (build_schedule_pbb): New.
33376 (build_schedule_loop): New.
33377 (embed_in_surrounding_loops): New.
33378 (build_schedule_loop_nest): New.
33379 (build_original_schedule): New.
33380 (build_poly_scop): Call build_original_schedule.
33381 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
33382 (free_poly_dr): Remove.
33383 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
33384 (free_poly_bb): Remove.
33385 (debug_loop_vec): Remove.
33386 (print_isl_ast): Declare.
33387 (debug_isl_ast): Declare.
33388 (scop_do_interchange): Remove.
33389 (scop_do_strip_mine): Remove.
33390 (scop_do_block): Remove.
33391 (flatten_all_loops): Remove.
33392 (optimize_isl): Remove.
33393 (pbb_number_of_iterations_at_time): Remove.
33394 (debug_scop_pbb): Declare.
33395 (print_schedule_ast): Declare.
33396 (debug_schedule_ast): Declare.
33397 (struct scop): Remove schedule. Add original_schedule,
33398 transformed_schedule.
33399 (free_gimple_poly_bb): Remove.
33400 (print_generated_program): Remove.
33401 (debug_generated_program): Remove.
33402 (unify_scattering_dimensions): Remove.
33403 * sese.c (print_edge): ... here.
33404 (print_sese): ... here.
33405 (debug_edge): ... here.
33406 (debug_sese): ... here.
33407 * sese.h (print_edge): Declare.
33408 (print_sese): Declare.
33409 (dump_edge): Declare.
33410 (dump_sese): Declare.
33412 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33413 Sebastian Pop <s.pop@samsung.com>
33415 * Makefile.in: Set ISLVER in site.exp.
33417 2016-01-25 Jakub Jelinek <jakub@redhat.com>
33419 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
33420 DECL_VALUE_EXPR of new_var even for the non-array case. Look
33421 through DECL_VALUE_EXPR for expansion.
33423 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
33425 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
33426 the frame info after reload completed.
33428 2016-01-25 Jeff Law <law@redhat.com>
33430 PR tree-optimization/69196
33431 PR tree-optimization/68398
33432 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
33433 tree-ssa-threadupdate.c.
33434 (determine_bb_domination_status): Prototype
33435 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
33436 (determine_bb_domination_status): No longer static.
33437 (valid_jump_thread_path): Remove code to detect characteristics
33438 of the jump thread path not associated with correctness.
33439 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
33440 Correct test for thread path length. Count PHIs for real operands as
33441 statements that need to be copied. Do not count ASSERT_EXPRs.
33442 Look at all the blocks in the thread path. Compute and selectively
33443 filter thread paths based on threading through the latch, threading
33444 a multiway branch or crossing a multiway branch.
33446 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33448 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
33449 decl with __attribute__ ((unused)) annotation.
33451 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
33454 * tree-vect-stmts.c (vectorizable_condition): Check vectype
33455 of operands is compatible with a statement vectype.
33457 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
33459 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
33460 improve wording for mixed storage order support.
33462 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
33464 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
33465 (vcvt_u64_f64): Likewise.
33466 (vcvta_s64_f64): Likewise.
33467 (vcvta_u64_f64): Likewise.
33468 (vcvtm_s64_f64): Likewise.
33469 (vcvtm_u64_f64): Likewise.
33470 (vcvtn_s64_f64): Likewise.
33471 (vcvtn_u64_f64): Likewise.
33472 (vcvtp_s64_f64): Likewise.
33473 (vcvtp_u64_f64): Likewise.
33475 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
33477 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
33478 (arc_init): Check validity mll64 option.
33479 (arc_save_restore): Use double load/store instruction.
33480 (arc_expand_movmem): Likewise.
33481 (arc_split_move): Don't split if we have double load/store
33482 instructions. Returns a boolean.
33483 (arc_process_double_reg_moves): Change function to return boolean
33484 instead of a sequence of instructions.
33485 (arc_dwarf_register_span): New function.
33486 * config/arc/arc-protos.h (arc_split_move): Change prototype.
33487 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
33488 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
33489 (*movdf_insn): Likewise.
33490 * config/arc/arc.opt (mll64): New option.
33491 * config/arc/predicates.md (even_register_operand): New predicate.
33492 * doc/invoke.texi (ARC Options): Add mll64 documentation.
33494 2016-01-25 Richard Biener <rguenther@suse.de>
33497 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
33498 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
33500 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
33502 2016-01-25 Richard Biener <rguenther@suse.de>
33504 PR tree-optimization/69376
33505 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
33507 (VN_INFO_ANTI_RANGE_P): New inline.
33508 (VN_INFO_RANGE_TYPE): Likewise.
33509 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
33510 SSA_NAME_ANTI_RANGE_P.
33511 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
33512 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33513 Properly query VN_INFO_RANGE_TYPE.
33515 2016-01-25 Nick Clifton <nickc@redhat.com>
33518 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
33520 2016-01-23 Tom de Vries <tom@codesourcery.com>
33522 PR tree-optimization/69426
33523 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
33526 2016-01-23 Jakub Jelinek <jakub@redhat.com>
33528 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
33529 "the the" with "the" in the comments.
33530 * ipa-devirt.c (build_type_inheritance_graph,
33531 update_type_inheritance_graph): Likewise.
33532 * tree.c (build_function_type_list_1): Likewise.
33533 * cfgloopmanip.c (scale_loop_profile): Likewise.
33534 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
33535 * gimple-ssa-split-paths.c
33536 (find_block_to_duplicate_for_splitting_paths): Likewise.
33537 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
33538 * expr.c (convert_move): Likewise.
33539 * var-tracking.c (vt_stack_adjustments): Likewise.
33540 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
33541 * tree-vrp.c (test_for_singularity): Likewise.
33543 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
33544 directly instead of building a temporary tree.
33547 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
33548 remove <algorithm> include.
33550 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33553 * config/i386/i386.c: Include dojump.h.
33554 (expand_small_movmem_or_setmem,
33555 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
33557 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
33558 if dynamic_check != -1.
33560 2016-01-21 Jeff Law <law@redhat.com>
33562 PR middle-end/69347
33563 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
33564 record_temporary_equivalences. Rewritten to avoid unnecessary calls
33565 into dominated_by_p.
33566 (cprop_into_successor_phis): Avoid unnecessary tests.
33568 2016-01-22 Richard Henderson <rth@redhat.com>
33571 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
33572 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
33574 2016-01-22 Michael Matz <matz@suse.de>
33576 * system.h (string, algorithm): Include only conditionally.
33577 (new): Include always under C++.
33578 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
33579 * final.c (toplevel): Ditto.
33580 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
33581 * genconditions.c (write_header): Make gencondmd.c define
33583 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
33585 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
33586 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
33588 2016-01-22 Christian Bruel <christian.bruel@st.com>
33591 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
33593 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33596 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
33597 define_insn_and_split. Ensure operands[1] and operands[0] do not
33598 get assigned the same register.
33600 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
33602 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
33604 2016-01-22 Christian Bruel <christian.bruel@st.com>
33606 * config/arm/arm-c.c (arm_pragma_target_parse):
33607 Remove warn_builtin_macro_redefined overwrite.
33609 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33611 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
33612 flag_non_call_exceptions compatibility.
33614 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33617 * dwarf2out.c (add_child_die_after): New function.
33618 (dwarf_qual_info_t): New type.
33619 (dwarf_qual_info): New variable.
33620 (qualified_die_p): New function.
33621 (modified_type_die): For -fdebug-types-section, ensure
33622 canonical order of qualifiers. Put qualified DIEs adjacent
33623 to the corresponding non-qualified type DIE and search there
33624 for existing qualified DIEs.
33626 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33628 * doc/extend.texi (scalar_storage_order type attribute): Document
33629 restriction on type punning and aliasing, and remove future tense.
33631 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
33634 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
33637 2016-01-21 Jeff Law <law@redhat.com>
33639 PR middle-end/69347
33640 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
33641 useless call to record_temporary_equivalences.
33642 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
33643 allocate 10 slots in the bb_path vector and let it grow as needed.
33644 (fsm_find_control_statement_thread_paths): Similarly for the next_path
33647 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33649 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
33651 * configure: Regenerate.
33653 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
33655 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
33656 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
33658 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
33660 PR middle-end/66178
33661 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
33662 drop EXPAND_INITIALIZER.
33663 * rtl.h (contains_symbolic_reference_p): Declare.
33664 * rtlanal.c (contains_symbolic_reference_p): New function.
33665 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
33666 a subtraction into a NOT if symbolic constants are involved.
33668 2016-01-21 Anton Blanchard <anton@samba.org>
33669 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33672 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
33674 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
33677 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33679 * config/microblaze/microblaze.c
33680 (get_branch_target): New.
33681 (insert_wic_for_ilb_runout): New.
33683 (microblaze_machine_dependent_reorg): New.
33684 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
33685 * config/microblaze/microblaze.md
33686 (UNSPEC_IPREFETCH): Define.
33687 (iprefetch): New pattern
33688 * config/microblaze/microblaze.opt
33689 (mxl-prefetch): New flag.
33691 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33693 * config/microblaze/microblaze.h
33694 (FIXED_REGISTERS): Update in macro.
33695 (CALL_USED_REGISTERS): Update in macro.
33697 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
33699 PR rtl-optimization/68920
33700 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
33703 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
33705 PR rtl-optimization/68990
33706 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
33707 pseudo instead of inheritance ones.
33709 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33710 Nick Clifton <nickc@redhat.com>
33714 * config/mips/mips.c (mips_compute_frame_info): Initialise
33715 args_size and hard_frame_pointer_offset fields of the frame
33716 structure before calling mips_global_pointer.
33718 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33720 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
33722 * configure: Regenerate.
33724 2016-01-21 Richard Biener <rguenther@suse.de>
33726 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
33728 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33730 * config/s390/s390.c (s390_asm_declare_function_size): Add code
33731 to actually emit the .size directive.
33733 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
33734 Jakub Jelinek <jakub@redhat.com>
33738 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
33739 args array size by one to avoid buffer overflow.
33741 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33743 * config/s390/s390.md (pool_section_start): Use switch_to_section
33744 to select proper read-only data section instead of hardcoding
33746 (pool_section_end): Use switch_to_section to match the above.
33748 2016-01-21 Richard Biener <rguenther@suse.de>
33750 PR tree-optimization/69378
33751 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
33752 (set_ssa_val_to): Use it for dominance checks taking into
33753 account not executable edges.
33755 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33758 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
33759 for bitsize instead of GET_MODE_PRECISION (mode).
33761 2016-01-20 Martin Sebor <msebor@redhat.com>
33764 * extend.texi (__sync Builtins): Clarify the semantics of
33765 __sync_fetch_and_OP built-ins on pointers.
33766 (__atomic Builtins): Same.
33768 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33769 Sebastian Pop <s.pop@samsung.com>
33771 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
33772 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
33773 (is_valid_rename): Same.
33774 (translate_isl_ast_to_gimple::get_rename): Same.
33775 (translate_isl_ast_to_gimple::rename_all_uses): Same.
33776 (translate_isl_ast_to_gimple::rename_uses): Same.
33777 (get_new_name): Check for close_phi nodes.
33778 (copy_loop_phi_args): Use phi_node_kind.
33779 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
33780 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
33782 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33783 Sebastian Pop <s.pop@samsung.com>
33785 Revert commit r229783.
33786 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
33787 Remove use of parameter_rename_map.
33788 (copy_def): Remove.
33789 (copy_internal_parameters): Remove.
33790 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
33791 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
33792 (free_sese_info): Do not free parameter_rename_map.
33793 (set_rename): Do not use parameter_rename_map.
33794 (rename_uses): Update call to set_rename.
33795 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
33796 * sese.h (parameter_rename_map_t): Remove.
33797 (struct sese_info_t): Remove field parameter_rename_map.
33799 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33800 Sebastian Pop <s.pop@samsung.com>
33802 * graphite-isl-ast-to-gimple.c: Fix comment.
33803 * graphite-scop-detection.c (defined_in_loop_p): New.
33804 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
33805 names defined in loop.
33807 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33808 Sebastian Pop <s.pop@samsung.com>
33810 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
33811 Discard unstructured if-then-else regions.
33813 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33814 Sebastian Pop <s.pop@samsung.com>
33816 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
33817 (cleanup_loop_iter_dom): Remove.
33818 (build_loop_iteration_domains): Remove.
33819 (build_scop_context): Remove.
33820 (build_scop_iteration_domain): Remove.
33821 (add_loop_constraints): New.
33822 (build_iteration_domains): New.
33823 (build_poly_scop): Call build_iteration_domains.
33825 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33826 Sebastian Pop <s.pop@samsung.com>
33828 * graphite-scop-detection.c
33829 (scop_detection::harmful_loop_in_region): Free dom and loops.
33830 (scop_detection::loop_body_is_valid_scop): Free bbs.
33832 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33833 Sebastian Pop <s.pop@samsung.com>
33835 * graphite-scop-detection.c (record_loop_in_sese): New.
33836 (gather_bbs::before_dom_children): Call record_loop_in_sese.
33837 (build_scops): Remove call to build_sese_loop_nests.
33838 * sese.c (sese_record_loop): Remove.
33839 (build_sese_loop_nests): Remove.
33840 (new_sese_info): Remove region->loops.
33841 (free_sese_info): Same.
33842 * sese.h (sese_contains_loop): Same.
33843 (build_sese_loop_nests): Remove.
33844 (sese_contains_loop): Remove.
33846 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33847 Sebastian Pop <s.pop@samsung.com>
33849 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
33850 loop_is_valid_in_scop.
33851 (scop_detection::harmful_stmt_in_region): Renamed
33852 harmful_loop_in_region.
33853 Call loop_is_valid_in_scop.
33855 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33856 Sebastian Pop <s.pop@samsung.com>
33858 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
33861 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33862 Sebastian Pop <s.pop@samsung.com>
33864 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
33865 * graphite.h (struct poly_bb): Remove field is_reduction.
33866 (PBB_IS_REDUCTION): Remove.
33868 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33869 Sebastian Pop <s.pop@samsung.com>
33871 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
33872 (add_pdr_constraints): Same.
33873 (scop_get_reads): Same.
33874 (scop_get_must_writes): Same.
33875 (scop_get_may_writes): Same.
33876 (scop_get_original_schedule): Same.
33877 (extend_schedule): Same.
33878 (apply_schedule_on_deps): Same.
33879 (carries_deps): Same.
33880 (compute_deps): Same.
33881 (scop_get_dependences): Same.
33882 * graphite-isl-ast-to-gimple.c
33883 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
33884 * graphite-optimize-isl.c (get_schedule_for_band): Same.
33885 (get_schedule_for_band_list): Same.
33886 (get_schedule_map): Same.
33887 (apply_schedule_map_to_scop): Same.
33888 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
33889 (build_loop_iteration_domains): Same.
33890 (add_condition_to_pbb): Same.
33891 (add_param_constraints): Same.
33892 (pdr_add_memory_accesses): Same.
33893 (pdr_add_data_dimensions): Same.
33895 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33897 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
33900 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33902 * common.opt (feliminate-dwarf2-dups): Replace references to
33903 "DWARF 2" with just "DWARF".
33904 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
33905 * doc/extend.texi: Likewise.
33906 * doc/cpp.texi: Likewise.
33907 * doc/invoke.texi: Likewise.
33908 (Option Summary): Add -gdwarf to list of Debugging Options.
33909 (Debugging Options): Document -gdwarf.
33910 * doc/contrib.texi: Spell "DWARF" like that.
33912 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33914 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
33915 warning. Fix up formatting.
33917 PR middle-end/67653
33918 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
33919 attempt to mark memory input operand addressable and
33920 call prepare_gimple_addressable in that case. Don't adjust
33921 input_location for diagnostics, use error_at instead.
33923 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
33925 * config/rs6000/ppc-auxv.h: New file.
33926 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
33927 (cpu_is): Likewise.
33928 (cpu_supports): Likewise.
33929 * config/rs6000/rs6000.c: include "ppc-auxv.h".
33930 (cpu_is_info): New variable.
33931 (cpu_supports_info): Likewise.
33932 (tcb_verification_symbol): Likewise.
33933 (cpu_builtin_p): Likewise.
33934 (cpu_expand_builtin): New function.
33935 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
33936 (rs6000_init_builtins): Likewise.
33937 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
33938 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
33939 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
33940 * configure: Regenerate.
33941 * config.in: Likewise.
33942 * doc/extend.texi (PowerPC Built-in Functions): Document
33943 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
33945 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
33948 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
33950 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
33953 2016-01-20 Richard Henderson <rth@redhat.com>
33959 * tree.c (tm_define_builtin): New.
33960 (find_tm_vector_type): New.
33961 (build_tm_vector_builtins): New.
33962 (build_common_builtin_nodes): Call it.
33964 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
33966 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
33967 (arm_fp_ok): Likewise.
33968 (arm_fp): Likewise.
33969 (arm_crypto): Likewise.
33971 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
33972 Richard Biener <rguenther@suse.de>
33974 PR tree-optimization/69328
33975 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
33976 vectors have same number of elements.
33977 (vectorizable_condition): Fix masked version recognition.
33979 2016-01-20 Richard Biener <rguenther@suse.de>
33981 PR tree-optimization/69345
33982 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
33983 (VN_INFO_PTR_INFO): Likewise.
33984 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
33985 info when it is equal between non-dominating SSA names.
33986 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33987 Make sure to look at original SSA infos.
33989 2016-01-20 Jeff Law <law@redhat.com>
33992 * config/m68k/predicates.md (pow2_m1_operand): New predicate
33994 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
33995 (pc_or_label_operand): New predicate.
33996 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
33997 tests for small integers that are 2^n - 1.
33999 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
34001 * doc/invoke.texi (Options Summary): Add '.' after @xref.
34003 2016-01-19 Jeff Law <law@redhat.com>
34005 PR middle-end/69347
34006 * tree-ssa-threadbackwards.c
34007 (fsm_find_control_statement_thread_paths): Do not try to lookup
34008 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
34010 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
34012 * doc/lto.texi: Remove text that says only Gold has linker plugin
34015 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
34017 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
34018 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
34019 the DIE accordingly.
34020 (modified_type_die): Add REVERSE parameter and pass it recursively,
34021 as well as to base_type_die. Adjust presence check accordingly.
34022 (base_type_for_mode): Adjust call to modified_type_die.
34023 (add_type_attribute): Add REVERSE parameter and pass it to
34025 (generic_parameter_die): Adjust call to add_type_attribute.
34026 (add_scalar_info): Likewise.
34027 (add_subscript_info): Likewise.
34028 (gen_array_type_die): Likewise.
34029 (gen_descr_array_type_die): Likewise.
34030 (gen_entry_point_die): Likewise.
34031 (gen_enumeration_type_die): Likewise.
34032 (gen_formal_parameter_die): Likewise.
34033 (gen_subprogram_die): Likewise.
34034 (gen_variable_die ): Likewise.
34035 (gen_const_die): Likewise.
34036 (gen_field_die): Likewise.
34037 (gen_pointer_type_die): Likewise.
34038 (gen_reference_type_die): Likewise.
34039 (gen_ptr_to_mbr_type_die): Likewise.
34040 (gen_inheritance_die): Likewise.
34041 (gen_subroutine_type_die): Likewise.
34042 (gen_typedef_die): Likewise.
34043 (force_type_die): Adjust call to modified_type_die.
34045 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
34047 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
34048 flow throughout the file. Fix broken link to Objective-C 2.0
34050 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
34053 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34055 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
34057 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34060 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
34061 (maybe_record_node): Record cxa_pure_virtual as the only possible
34062 target if there are not ohter candidates.
34063 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
34065 2016-01-19 Richard Biener <rguenther@suse.de>
34067 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
34068 (get_memory_order): Likewise.
34070 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
34072 * tree-vect-stmts.c (vectorizable_store): Check
34075 2016-01-19 David Malcolm <dmalcolm@redhat.com>
34078 * gcc.c (driver::decode_argv): Add call to
34079 init_opts_obstack before init_options_struct.
34080 * opts.c (init_opts_obstack): Remove idempotency.
34081 (init_options_struct): Replace call to init_opts_obstack
34082 with a gcc_assert to verify that it has already been called.
34083 * toplev.c (toplev::main): Add call to init_opts_obstack before
34084 calls to init_options_struct.
34085 (toplev::finalize): Move cleanup of opts_obstack next to
34086 cleanup of save_decoded_options, clearing the latter, and
34087 save_decoded_options_count.
34089 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34092 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
34093 attribute to unconditional. Remove %? from output template.
34095 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34096 Jiong Wang <jiong.wang@arm.com>
34098 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
34099 generated from different expand order.
34101 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34103 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
34104 Add support for CCMP costing.
34106 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34108 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
34109 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
34110 (fccmpe<mode>): Likewise.
34111 (fcmp): Rename to fcmp and globalize pattern.
34113 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
34114 (aarch64_gen_ccmp_next): Add FP support.
34116 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34118 * target.def (gen_ccmp_first): Update documentation.
34119 (gen_ccmp_next): Likewise.
34120 * doc/tm.texi (gen_ccmp_first): Update documentation.
34121 (gen_ccmp_next): Likewise.
34122 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
34123 expand_ccmp_expr_1. Improve comments.
34124 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
34125 (ccmp_ior<mode>): Remove pattern.
34126 (cmp<mode>): Remove expand.
34127 (cmp): Globalize pattern.
34128 (cstorecc4): Use cc_register.
34129 (mov<mode>cc): Remove ccmp_cc_register check.
34130 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
34131 Simplify after removal of CC_DNE/* modes.
34132 (aarch64_ccmp_mode_to_code): Remove.
34133 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
34134 In 'k' case use integer as condition.
34135 (aarch64_nzcv_codes): Remove inverted cases.
34136 (aarch64_code_to_ccmode): Remove.
34137 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
34138 comparison with CC register to be used in folowing CCMP/branch/CSEL.
34139 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
34140 pattern. Return the comparison with CC register. Invert conditions
34141 when bitcode is OR.
34142 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
34143 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
34145 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34147 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
34148 instrumented_version.
34150 2016-01-19 Richard Biener <rguenther@suse.de>
34152 PR tree-optimization/69336
34153 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
34154 handled components with get_ref_base_and_extent.
34155 (equal_mem_array_ref_p): Adjust.
34157 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34160 * shrink-wrap.c: Include valtrack.h.
34161 (move_insn_for_shrink_wrap): Add DEBUG argument. If
34162 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
34163 in between insn and where it will be moved to. Call
34164 dead_debug_insert_temp.
34165 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
34166 first and dead_debug_local_finish at the end.
34167 For uses and defs bitmap, handle all regs in between REGNO and
34168 END_REGNO, not just the first one.
34170 2016-01-19 Richard Biener <rguenther@suse.de>
34172 PR tree-optimization/69352
34173 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
34174 (equal_mem_array_ref_p): Constrain size and max size properly.
34175 Compare the reverse flag.
34177 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
34179 * ira.c (ira): Update regstat data if we deleted insns.
34181 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34183 PR rtl-optimization/68955
34184 PR rtl-optimization/64557
34185 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
34186 here. Fix up formatting.
34187 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
34189 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34192 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
34193 assume that the node has body.
34194 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
34197 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34199 * lto-streamer-out.c (lto_output): Do not stream instrumentation
34202 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34204 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
34205 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
34207 2016-01-19 Martin Jambor <mjambor@suse.cz>
34208 Martin Liska <mliska@suse.cz>
34209 Michael Matz <matz@suse.de>
34211 * Makefile.in (OBJS): Add new source files.
34212 (GTFILES): Add hsa.c.
34213 * common.opt (disable_hsa): New variable.
34214 (-Whsa): New warning.
34215 * config.in (ENABLE_HSA): New.
34216 * configure.ac: Treat hsa differently from other accelerators.
34217 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
34218 $enable_offloading.
34219 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
34220 * doc/install.texi (Configuration): Document --with-hsa-runtime,
34221 --with-hsa-runtime-include, --with-hsa-runtime-lib and
34222 --with-hsa-kmt-lib.
34223 * doc/invoke.texi (-Whsa): Document.
34224 (hsa-gen-debug-stores): Likewise.
34225 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
34226 to invoke offload compiler for hsa acclerator.
34227 * opts.c (common_handle_option): Determine whether HSA offloading
34228 should be performed.
34229 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
34230 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
34231 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
34232 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
34233 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
34234 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
34235 GF_OMP_FOR_KIND_GRID_LOOP.
34236 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
34237 (pp_gimple_stmt_1): Likewise.
34238 * gimple-walk.c (walk_gimple_stmt): Likewise.
34239 * gimple.c (gimple_build_omp_grid_body): New function.
34240 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
34241 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
34242 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
34243 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
34244 GF_OMP_TEAMS_GRID_PHONY.
34245 (gimple_statement_omp_single_layout): Updated comments.
34246 (gimple_build_omp_grid_body): New function.
34247 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
34248 (gimple_omp_for_grid_phony): New function.
34249 (gimple_omp_for_set_grid_phony): Likewise.
34250 (gimple_omp_parallel_grid_phony): Likewise.
34251 (gimple_omp_parallel_set_grid_phony): Likewise.
34252 (gimple_omp_teams_grid_phony): Likewise.
34253 (gimple_omp_teams_set_grid_phony): Likewise.
34254 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
34255 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
34256 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
34257 (BUILT_IN_GOMP_TARGET): Updated type.
34258 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
34259 (adjust_for_condition): New function.
34260 (get_omp_for_step_from_incr): Likewise.
34261 (extract_omp_for_data): Moved parts to adjust_for_condition and
34262 get_omp_for_step_from_incr.
34263 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
34264 (fixup_child_record_type): Bail out if receiver_decl is NULL.
34265 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
34266 (scan_omp_parallel): Do not create child functions for phony
34268 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
34269 (scan_omp_1_op): Checking assert we are not remapping to
34270 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
34271 (parallel_needs_hsa_kernel_p): New function.
34272 (expand_parallel_call): Register apprpriate parallel child
34273 functions as HSA kernels.
34274 (grid_launch_attributes_trees): New type.
34275 (grid_attr_trees): New variable.
34276 (grid_create_kernel_launch_attr_types): New function.
34277 (grid_insert_store_range_dim): Likewise.
34278 (grid_get_kernel_launch_attributes): Likewise.
34279 (get_target_argument_identifier_1): Likewise.
34280 (get_target_argument_identifier): Likewise.
34281 (get_target_argument_value): Likewise.
34282 (push_target_argument_according_to_value): Likewise.
34283 (get_target_arguments): Likewise.
34284 (expand_omp_target): Call get_target_arguments instead of looking
34285 up for teams and thread limit.
34286 (grid_expand_omp_for_loop): New function.
34287 (grid_arg_decl_map): New type.
34288 (grid_remap_kernel_arg_accesses): New function.
34289 (grid_expand_target_kernel_body): New function.
34290 (expand_omp): Call it.
34291 (lower_omp_for): Do not emit phony constructs.
34292 (lower_omp_taskreg): Do not emit phony constructs but create for them
34293 a temporary variable receiver_decl.
34294 (lower_omp_taskreg): Do not emit phony constructs.
34295 (lower_omp_teams): Likewise.
34296 (lower_omp_grid_body): New function.
34297 (lower_omp_1): Call it.
34298 (grid_reg_assignment_to_local_var_p): New function.
34299 (grid_seq_only_contains_local_assignments): Likewise.
34300 (grid_find_single_omp_among_assignments_1): Likewise.
34301 (grid_find_single_omp_among_assignments): Likewise.
34302 (grid_find_ungridifiable_statement): Likewise.
34303 (grid_target_follows_gridifiable_pattern): Likewise.
34304 (grid_remap_prebody_decls): Likewise.
34305 (grid_copy_leading_local_assignments): Likewise.
34306 (grid_process_kernel_body_copy): Likewise.
34307 (grid_attempt_target_gridification): Likewise.
34308 (grid_gridify_all_targets_stmt): Likewise.
34309 (grid_gridify_all_targets): Likewise.
34310 (execute_lower_omp): Call grid_gridify_all_targets.
34311 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
34312 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
34313 (tree_omp_clause): Added union field dimension.
34314 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
34315 * tree.c (omp_clause_num_ops): Added number of arguments of
34316 OMP_CLAUSE__GRIDDIM_.
34317 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
34318 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
34319 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
34320 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
34321 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
34322 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
34323 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
34324 * tree-pass.h (make_pass_gen_hsail): Declare.
34325 (make_pass_ipa_hsa): Likewise.
34326 * ipa-hsa.c: New file.
34327 * lto-section-in.c (lto_section_name): Add hsa section name.
34328 * lto-streamer.h (lto_section_type): Add hsa section.
34329 * timevar.def (TV_IPA_HSA): New.
34330 * hsa-brig-format.h: New file.
34331 * hsa-brig.c: New file.
34332 * hsa-dump.c: Likewise.
34333 * hsa-gen.c: Likewise.
34336 * toplev.c (compile_file): Call hsa_output_brig.
34337 * hsa-regalloc.c: New file.
34339 2016-01-18 Jeff Law <law@redhat.com>
34341 PR tree-optimization/69320
34342 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
34343 ranged object, do nothing if the RHS constant is not [0..1].
34344 (optimize_stmt): Comparing a boolean ranged object against a
34345 constant outside [0..1] results in a compile-time constant.
34347 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
34350 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
34352 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34353 (Option Summary): Update to reflect new section and moved options.
34354 (C++ Dialect Options): Move -fstats to new section.
34355 (Debugging Options): Move all dump, statistics, and other GCC
34356 developer options to new section. Rewrite section introduction
34357 and re-order remaining options to put the more basic ones first.
34358 (Optimization Options): Move -fira-verbose and -flto-report* to
34360 (Developer Options): New section incorporating moved options.
34361 * doc/cppopts.texi (-dM): Update cross-reference.
34363 2016-01-18 Richard Henderson <rth@redhat.com>
34366 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
34367 operands to pseudo only if CSE is expected. Split long immediate
34368 operands only after reload, and for the stack pointer.
34369 (*add<GPI>3_pluslong): Remove.
34370 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
34371 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
34372 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
34373 (*add<GPI>3 peepholes): New.
34374 (*add<GPI>3 splitters): New.
34375 * config/aarch64/constraints.md (Upl): New.
34376 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
34378 2016-01-18 Richard Biener <rguenther@suse.de>
34380 PR tree-optimization/69297
34381 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
34383 (vect_bb_vectorization_profitable_p): Clear visited flag again.
34385 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
34387 PR middle-end/68542
34388 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
34389 of mixind vector and scalar types.
34390 (fold_relational_const): Add handling of vector
34391 comparison with boolean result.
34392 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
34393 comparison of vector operands with boolean result for EQ/NE only.
34394 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
34395 (verify_gimple_cond): Likewise.
34396 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
34399 2016-01-18 Joseph Myers <joseph@codesourcery.com>
34401 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
34404 2016-01-18 Richard Biener <rguenther@suse.de>
34406 PR middle-end/69308
34407 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
34409 2016-01-18 Tom de Vries <tom@codesourcery.com>
34411 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
34413 2016-01-18 Tom de Vries <tom@codesourcery.com>
34415 * omp-low.c (set_oacc_fn_attrib): Make extern.
34416 * omp-low.h (set_oacc_fn_attrib): Declare.
34417 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
34418 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
34419 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
34420 Add and handle function parameter oacc_kernels_p.
34421 (find_reduc_addr, get_omp_data_i_param): New function.
34422 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
34423 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
34424 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
34425 Calculate dominance info. Skip loops that are not in a kernels region
34426 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
34427 (pass_parallelize_loops::execute): Call parallelize_loops with
34428 oacc_kernels_p argument.
34429 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
34430 New member function.
34431 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
34432 * passes.def: Add argument to pass_parallelize_loops instantation.
34434 2016-01-18 Tom de Vries <tom@codesourcery.com>
34436 * tree-parloops.c (pass_parallelize_loops::execute): Allow
34437 pass_parallelize_loops to be run outside the loop pipeline.
34439 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34441 * tree-scalar-evolution.c (follow_copies_to_constant): New.
34442 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
34444 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34447 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
34448 using get_ref_base_and_extent.
34449 (equal_mem_array_ref_p): New.
34450 (hashable_expr_equal_p): Add call to previous.
34452 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34455 * tree-sra.c (disqualified_constants, constant_decl_p): New.
34456 (sra_initialize): Allocate disqualified_constants.
34457 (sra_deinitialize): Free disqualified_constants.
34458 (disqualify_candidate): Update disqualified_constants when appropriate.
34459 (create_access): Scan for constant-pool entries as we go along.
34460 (scalarizable_type_p): Add check against type_contains_placeholder_p.
34461 (maybe_add_sra_candidate): Allow constant-pool entries.
34462 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
34463 (initialize_constant_pool_replacements): New.
34464 (sra_modify_assign): Avoid mangling assignments created by previous,
34465 and don't generate writes into constant pool.
34466 (sra_modify_function_body): Call initialize_constant_pool_replacements.
34468 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
34470 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
34471 andnot instruction.
34472 (scalar_chain::convert_op): Likewise.
34473 * config/i386/i386.md (*andndi3_doubleword): New.
34475 2016-01-18 Richard Biener <rguenther@suse.de>
34477 PR tree-optimization/69170
34478 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
34479 building a vector from scalar results of a pattern stmt.
34481 2016-01-18 Jakub Jelinek <jakub@redhat.com>
34483 * haifa-sched.c (autopref_multipass_init): Work around
34484 -Wmaybe-uninitialized warning.
34486 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
34488 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
34489 against the constant 0.
34491 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34493 PR tree-optimization/68799
34494 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
34495 look up phi candidates in the statement-candidate map.
34496 (phi_add_costs): Likewise.
34497 (record_phi_increments): Likewise.
34498 (phi_incr_cost): Likewise.
34499 (ncd_with_phi): Likewise.
34500 (all_phi_incrs_profitable): Likewise.
34502 2016-01-17 Jakub Jelinek <jakub@redhat.com>
34504 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
34505 -Wmaybe-uninitialized warning.
34507 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
34509 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34510 (Option Summary): Update to reflect new section and moved options.
34511 (C++ Dialect Options): Move -fvtable-verify and related options.
34512 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
34513 and profiling-related options.
34514 (Optimization Options): Move profile generation options and
34515 -fstack-protector and related options.
34516 (Instrumentation Options): New section incorporating moved options.
34517 (Code Generation Options): Move -finstrument-functions and
34518 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
34520 2016-01-16 Tom de Vries <tom@codesourcery.com>
34522 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
34524 2016-01-16 Tom de Vries <tom@codesourcery.com>
34526 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
34528 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
34530 * hash-table.h (hash_table::empty): Turn into an inline wrapper
34531 that checks whether the table is already empty. Rename the
34532 original implementation to...
34533 (hash_table::empty_slot): ...this new private function.
34535 2016-01-15 David Malcolm <dmalcolm@redhat.com>
34537 PR diagnostic/68899
34538 * diagnostic-show-locus.c (layout::print_source_line): Move x
34539 offset of line until after call to
34540 get_line_width_without_trailing_whitespace.
34542 2016-01-15 Jeff Law <law@redhat.com>
34544 PR tree-optimization/69270
34545 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
34546 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
34547 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
34548 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
34549 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
34550 ssa_name_has_boolean_range and constant_boolean_node.
34552 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
34554 PR rtl-optimization/69030
34555 * lra-spills.c (remove_pseudos): Check nrefs and make the function
34557 (spill_pseudos): Delete debug insn for dead pseudo.
34558 (lra_spill): Initiate spill_hard_reg and slots memory separately.
34560 2016-01-15 Jiong Wang <jiong.wang@arm.com>
34562 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
34564 (TYPES_UNOPUS): Likewise.
34565 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
34566 builtin type, from UNOP to UNOPUS.
34567 (lbtruncuv4sf): Likewise.
34568 (lbtruncuv2df): Likewise.
34569 (lrounduv2sf): Likewise.
34570 (lrounduv4sf): Likewise.
34571 (lrounduv2df): Likewise.
34572 (lroundusf): Likewise.
34573 (lroundusf): Likewise.
34574 (lceiluv2sf): Likewise.
34575 (lceiluv4sf): Likewise.
34576 (lceiluv2df): Likewise.
34577 (lceilusf): Likewise.
34578 (lceiludf): Likewise.
34579 (lflooruv2sf): Likewise.
34580 (lflooruv4sf): Likewise.
34581 (lflooruv2df): Likewise.
34582 (lfloorusf): Likewise.
34583 (lfloorudf): Likewise.
34584 (lfrintnuv2sf): Likewise.
34585 (lfrintnuv4sf): Likewise.
34586 (lfrintnuv2df): Likewise.
34587 (lfrintnusf): Likewise.
34588 (lfrintnudf): Likewise.
34589 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
34591 (vcvtq_u32_f32): Likewise.
34592 (vcvtq_u64_f64): Likewise.
34593 (vcvta_u32_f32): Likewise.
34594 (vcvtaq_u32_f32): Likewise.
34595 (vcvtaq_u64_f64): Likewise.
34596 (vcvtm_u32_f32): Likewise.
34597 (vcvtmq_u32_f32): Likewise.
34598 (vcvtmq_u64_f64): Likewise.
34599 (vcvtn_u32_f32): Likwise.
34600 (vcvtnq_u32_f32): Likewise.
34601 (vcvtnq_u64_f64): Likewise.
34602 (vcvtp_u32_f32): Likewise.
34603 (vcvtpq_u32_f32): Likewise.
34604 (vcvtpq_u64_f64): Likewise.
34605 (vcvtmd_u64_f64): Likewise.
34606 (vcvtms_u32_f32): Likewise.
34607 (vcvtad_u64_f64): Likewise.
34608 (vcvtas_u32_f32): Likewise.
34609 (vcvtnd_u64_f64): Likewise.
34610 (vcvtns_u32_f32): Likewise.
34611 (vcvtpd_u64_f64): Likewise.
34612 (vcvtps_u32_f32): Likewise.
34614 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34616 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
34617 CSEL of zero_extended registers.
34619 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34621 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34622 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
34624 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34626 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
34627 false when argument string is not found in the attributes table
34630 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
34633 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
34634 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
34635 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
34636 precision estimate.
34638 2016-01-15 Richard Biener <rguenther@suse.de>
34640 PR tree-optimization/66856
34641 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
34642 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
34643 (vect_create_new_slp_node): Increment stmt reference count.
34644 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
34645 an SLP tree before swapping operands.
34646 (vect_build_slp_tree): Likewise.
34647 (destroy_bb_vec_info): Free stmt info after SLP instances.
34648 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
34649 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
34650 (STMT_VINFO_NUM_SLP_USES): New macro.
34652 2016-01-15 Richard Biener <rguenther@suse.de>
34655 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
34656 (add_linkage_name): ... here.
34657 (gen_typedef_die): Use add_linkage_name_raw instead of
34658 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
34661 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
34663 * gimplify.c (oacc_default_clause): Decode reference and pointer
34664 types for both kernels and parallel regions.
34666 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
34668 PR middle-end/69246
34669 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
34671 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34673 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
34674 (convert_scalars_to_vector): Likewise.
34676 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
34678 * doc/extend.texi (Type Traits): Fix grammar.
34680 2016-01-15 Martin Jambor <mjambor@suse.cz>
34682 * tree-inline.c (remap_decl): Use existing dclarations if
34683 remapping a type and prevent_decl_creation_for_types.
34684 (replace_locals_stmt): Do an initial remapping of non-VLA typed
34685 decls first. Do real remapping with
34686 prevent_decl_creation_for_types set.
34687 * tree-inline.h (copy_body_data): New field
34688 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
34691 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34693 * config/s390/s390.opt (mmvcle): More verbose help text.
34695 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34697 * config/s390/s390.opt: Add period to -mzvector option text.
34699 2016-01-15 Richard Biener <rguenther@suse.de>
34701 PR tree-optimization/68961
34702 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
34703 of invariants in stores again.
34705 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34707 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
34709 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34711 * config/i386/i386.c (ix86_expand_branch): Don't split
34712 DI mode xor instruction to SI mode.
34714 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34717 * ipa-icf.c (sem_function::merge): Virtual functions may become
34718 reachable even if they address is not taken and there are no
34721 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34723 * lto-streamer-out.c (subtract_estimated_size): New function.
34724 (get_symbol_initial_value): Use it.
34726 2016-01-15 Christian Bruel <christian.bruel@st.com>
34729 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
34730 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
34731 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
34732 use add_builtin_function_ext_scope instead of add_builtin_function.
34733 (neon_set_p, neon_crypto_set_p): Remove.
34734 (arm_init_builtins): Always call arm_init_neon_builtins and
34735 arm_init_crypto_builtins.
34736 (arm_expand_builtin): Check that builtins are allowed for the arch.
34737 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
34738 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
34739 arm_init_neon_builtins call.
34741 2016-01-15 Richard Biener <rguenther@suse.de>
34743 PR tree-optimization/69117
34744 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
34745 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
34746 of the leader conservatively.
34747 (free_scc_vn): Restore original SSA name infos.
34749 2016-01-14 Jeff Law <law@redhat.com>
34751 PR tree-optimization/69270
34752 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
34753 single bit of precision, verify it's also unsigned.
34754 (record_edge_info): Use constant_boolean_node rather than fold_convert
34755 to convert boolean_true/boolean_false to the right type.
34757 2016-01-14 Richard Henderson <rth@redhat.com>
34760 * loop-doloop.c (record_reg_sets): New.
34761 (doloop_optimize): Reject the transform if the sequence
34762 clobbers registers live at the end of the loop block.
34763 (doloop_optimize_loops): Enable df_live if needed.
34765 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34767 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
34768 * config/rs6000/rs6000.c: Likewise.
34769 * config/rs6000/rs6000.h: Likewise.
34770 * config/rs6000/rs6000.md: Likewise.
34771 * doc/extend.texi: Likewsie.
34773 2016-01-14 Jeff Law <law@redhat.com>
34775 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
34778 2016-01-14 Richard Henderson <rth@redhat.com>
34782 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
34783 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
34784 instead of builtin_decl_declared_p to test for declaration.
34786 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
34788 * doc/loop.texi (Loop Analysis and Representation): Document
34789 loop_depth function.
34791 2016-01-14 Tom de Vries <tom@codesourcery.com>
34793 PR tree-optimization/68773
34794 * omp-low.c (expand_omp_target): Don't set force_output.
34795 * varpool.c (varpool_node::get_create): Same.
34796 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
34797 offload_funcs with force_output.
34799 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34802 * lra-eliminations.c (move_plus_up): Don't change anything if either
34803 the outer or inner subreg mode is not MODE_INT.
34804 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
34805 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
34807 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34809 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
34810 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
34811 reduc_uplus_@var{m}): Remove.
34812 * expr.c (expand_expr_real_2): Remove expansion path for
34813 reduc_[us](min|max|plus) optabs.
34814 * optabs-tree.c (scalar_reduc_to_vector): Remove.
34815 * optabs-tree.h (scalar_reduc_to_vector): Remove.
34816 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
34817 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
34818 * tree-vect-loop.c (vectorizable_reduction): Remove test for
34819 reduc_[us](min|max|plus) optabs.
34821 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34823 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
34824 (reduc_plus_scal_v2sf): New.
34825 (reduc_smax_v2sf): Rename to...
34826 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
34827 (reduc_smin_v2sf): Rename to...
34828 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
34830 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
34832 * alias.c (compare_base_symbol_refs): New function.
34833 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
34836 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34838 PR middle-end/68146
34839 PR tree-optimization/69155
34840 * tree-complex.c: Include cfganal.h.
34841 (phis_to_revisit): New variable.
34842 (extract_component): Add phiarg_p argument. Assert that returned
34843 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
34844 (update_phi_components): Partly rewrite to use loop over real/imag
34845 components instead of code duplication. If extract_component returns
34846 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
34847 create_tmp_reg into the PHI node instead, and mention the phi triplet
34848 in phis_to_revisit.
34849 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
34850 in phis_to_revisit at the end.
34852 2016-01-14 Richard Biener <rguenther@suse.de>
34854 PR tree-optimization/68060
34855 * tree-vect-loop.c (vect_is_simple_reduction): Check the
34856 outer loop reduction is only used in the inner loop before
34857 detecting a double reduction.
34859 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34862 * combine.c (expand_field_assignment): Punt if compute_mode is
34863 unsupported scalar mode.
34865 2016-01-14 Richard Biener <rguenther@suse.de>
34867 PR tree-optimization/66856
34868 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
34869 SLP node only if it built successfully.
34870 (vect_analyze_slp_instance): Adjust.
34872 2016-01-14 Jeff Law <law@redhat.com>
34874 PR tree-optimization/69270
34875 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
34876 (record_edge_info): Use it. Convert boolean_{true,false}_node
34877 to the type of op0.
34879 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
34882 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
34883 use block_ultimate_origin
34884 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
34886 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34888 * doc/invoke.texi (Submodel Options): Rename section to
34889 "Machine-Dependent Options" to better reflect its content.
34890 Rewrite introductory text to remove archaic CPU names.
34893 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34895 * doc/invoke.texi (Code Gen Options): Move section up in file,
34896 before target-specific options. Update menu and option summary
34897 to reflect the new section ordering.
34899 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34901 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
34902 (C++ Dialect Options): Add cross-reference to -std option.
34903 * doc/standards.texi (C++ Language): Document C++14 support.
34905 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
34907 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
34908 for pack/unpack functions for __ibm128.
34909 (PACK_IF): Likewise.
34910 (UNPACK_IF): Likewise.
34912 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
34913 support for __ibm128 pack/unpack functions.
34914 (rs6000_invalid_builtin): Likewise.
34915 (rs6000_init_builtins): Likewise.
34916 (rs6000_opt_masks): Likewise.
34918 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
34919 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
34921 (RS6000_BTM_COMMON): Likewise.
34923 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
34924 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
34925 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
34926 128-bit floating point. Add support for the double values to be
34927 in Altivec registers for TF/IF packing and unpacking, but restrict
34928 TD packing sub-fields to be FPR registers. Don't allow overlapped
34929 register support for packing. Allow pack inputs to be memory
34930 locations. Don't build generator functions for unpack<mode>_dm
34931 and unpack<mode>_nodm.
34932 (unpack<mode>_dm): Likewise.
34933 (unpack<mode>_nodm): Likewise.
34934 (pack<mode>): Likewise.
34936 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
34937 built-in functions to pack/unpack explicit __ibm128 values.
34938 (__builtin_unpack_ibm128): Likewise.
34940 * doc/extend.texi (PowerPC Built-in Functions): Document
34941 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
34943 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
34946 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
34947 Add new arg loc and pass it down as context.
34948 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
34949 to the location to use for the warning.
34950 (check_function_arguments): New arg loc. All callers changed. Pass
34951 it to check_function_nonnull.
34952 * c-common.h (check_function_arguments): Adjust declaration.
34954 2016-01-13 Jakub Jelinek <jakub@redhat.com>
34956 PR tree-optimization/69156
34957 * gimple.c (validate_type): Removed.
34958 (gimple_builtin_call_types_compatible_p): Use
34959 useless_type_conversion_p instead of validate_type.
34960 * value-prof.c (gimple_stringop_fixed_value): Fold
34961 icall_size to correct type.
34963 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34965 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
34968 2016-01-13 Richard Henderson <rth@redhat.com>
34971 * target.def (builtin_tm_load, builtin_tm_store): Remove.
34972 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
34973 (ix86_builtin_tm_store): Remove.
34974 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34975 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34976 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34977 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34978 * doc/tm.texi: Rebuild.
34980 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
34981 (BUILT_IN_TM_MEMCPY_RTWN): New.
34982 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
34983 fallback from vector to integer helpers.
34984 (build_tm_load): Handle vector types directly, instead of
34986 (build_tm_store): Likewise.
34987 (expand_assign_tm): Prepare for register types not handled by
34988 the above. Copy them to memory and use memcpy.
34989 * tree.c (tm_define_builtin): New.
34990 (find_tm_vector_type): New.
34991 (build_tm_vector_builtins): New.
34992 (build_common_builtin_nodes): Call it.
34994 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
34996 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
34997 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
34999 2016-01-13 Tom de Vries <tom@codesourcery.com>
35001 PR tree-optimization/69169
35002 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
35003 handled_struct_type param.
35004 (create_variable_info_for, intra_create_variable_infos): Call
35005 create_variable_info_for_1 with extra arg.
35007 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
35009 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
35010 and "armv8.1-a+crc" entries.
35012 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
35015 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
35016 Change first operand predicate from register_or_constm1_operand
35017 to register_operand.
35018 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
35019 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
35020 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
35021 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
35022 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
35023 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
35024 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
35025 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
35026 comparison with constm1_rtx from vec_prefetch_gen part.
35028 2016-01-13 Richard Biener <rguenther@suse.de>
35030 PR tree-optimization/69013
35031 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
35032 Exchange assert for a test.
35034 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35037 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
35039 2016-01-13 Richard Biener <rguenther@suse.de>
35041 PR tree-optimization/69242
35042 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
35043 assert with a check.
35045 2016-01-13 Richard Biener <rguenther@suse.de>
35047 PR tree-optimization/69186
35048 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
35049 Properly guard vect_update_misalignment_for_peel call.
35051 2016-01-12 Jeff Law <law@redhat.com>
35053 PR tree-optimization/pr67755
35054 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
35055 "need_profile_correction".
35056 (thread_block_1): Initialize new field to false by default. If we
35057 have multiple thread paths through a common joiner to different
35058 final targets, then set new field to true.
35059 (compute_path_counts): Only do count adjustment when it's really
35062 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35064 * doc/invoke.texi (Spec Files): Move section down in file, past
35065 all command-line option descriptions.
35067 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35069 PR middle-end/54809
35070 * doc/gty.texi: Remove documentation of mark_hook.
35071 * gengtype.c (struct write_types_data): Remove code to support
35072 mark_hook attribute.
35073 (walk_type): Likewise.
35074 (write_func_for_structure): Likewise.
35076 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35078 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
35079 Directory Options, and -specs= to Overall Options.
35080 (Overall Options): Adjust similarly. Reorder to group related
35081 options together. Make -specs= cross-reference the spec file details.
35082 (Directory Options): Adjust similarly.
35084 2016-01-12 Jeff Law <law@redhat.com>
35086 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
35088 2016-01-12 Olivier Hainque <hainque@adacore.com>
35090 * gcc.c (spec_undefvar_allowed): New global.
35091 (process_command): Set to true when running for --version or --help,
35093 (getenv_spec_function): When the variable is not defined, use the
35094 variable name as the variable value if we're allowed not to issue
35097 2016-01-12 Bin Cheng <bin.cheng@arm.com>
35099 PR tree-optimization/68911
35100 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
35101 information computed for expression "init + nit * step".
35103 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35105 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
35106 about name of GCC executable. Remove deleted node from menu.
35107 (Directory Options) <-B>: Remove cross-reference to deleted node.
35108 (Target Options): Delete section.
35110 2016-01-12 Christian Bruel <christian.bruel@st.com>
35113 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
35114 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
35116 2016-01-12 Jakub Jelinek <jakub@redhat.com>
35119 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
35120 aligned_mem is properly set for AVX512-VL floating point masked
35124 * ifcvt.c (cond_exec_process_if_block): When removing the last
35125 insn from then_bb, remove also any possible barriers that follow it.
35127 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
35131 * config/i386/iamcu.h (SIZE_TYPE): New macro.
35132 (PTRDIFF_TYPE): Likewise.
35133 (WCHAR_TYPE): Likewise.
35134 (WCHAR_TYPE_SIZE): Likewise.
35135 (STDINT_LONG32): Likewise.
35137 2016-01-12 Richard Biener <rguenther@suse.de>
35139 PR tree-optimization/69053
35140 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
35141 convert initial value for cond reductions.
35143 2016-01-12 Richard Biener <rguenther@suse.de>
35145 PR tree-optimization/69007
35146 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
35147 widen_sum after dot_prod and sad.
35149 2016-01-12 Richard Biener <rguenther@suse.de>
35151 PR tree-optimization/69168
35152 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
35153 pattern stmt SLP type.
35154 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
35155 end up unused so cope with that case.
35157 2016-01-12 Richard Biener <rguenther@suse.de>
35159 PR tree-optimization/69157
35160 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
35161 stmts def type only during analyze phase.
35162 (vectorizable_call): Likewise.
35163 (vectorizable_simd_clone_call): Likewise.
35164 (vectorizable_conversion): Likewise.
35165 (vectorizable_assignment): Likewise.
35166 (vectorizable_shift): Likewise.
35167 (vectorizable_operation): Likewise.
35168 (vectorizable_store): Likewise.
35169 (vectorizable_load): Likewise.
35171 2016-01-12 Richard Biener <rguenther@suse.de>
35173 PR tree-optimization/69174
35174 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
35176 (vectorizable_load): Properly compute the number of loads needed
35177 for permuted strided SLP loads and do not spuriously assign
35178 to SLP_TREE_VEC_STMTS.
35180 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
35182 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
35183 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
35184 (MD_EXEC_PREFIX): Remove.
35185 (MD_STARTFILE_PREFIX) Removee.
35186 (FILE_NAME_ABSOLUTE_P): Remove.
35187 (CPP_SPEC): Do not read macros from sys/version.h.
35188 (LINK_COMMAND_SPEC): Remove.
35189 (LOCAL_INCLUDE_DIR): Remove.
35190 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
35191 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
35192 (POST_LINK_SPEC): Define to invoke stubify after linker
35193 (LIBSTDCXX): Remove define
35194 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
35195 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
35196 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
35197 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
35198 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
35199 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
35200 (i386_djgpp_asm_named_section): Add propotype of new procedure
35202 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
35203 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
35204 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
35205 in config/i386/djgpp.h).
35206 (STANDARD_STARTFILE_PREFIX_2): Define identical to
35207 STANDARD_STARTFILE_PREFIX_1.
35208 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
35209 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
35210 installation errors.
35211 (MAX_OFILE_ALIGNMENT): Define to 128.
35212 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
35214 * config/i386/djgpp.c: New file. Add implementation of
35215 i386_djgpp_asm_named_section.
35217 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
35219 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
35220 Add rule for building djgpp.o.
35222 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35224 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
35225 (rtx_is_swappable_p): Reductions are swappable.
35226 (insn_is_swappable_p): V2DF reductions are swappable.
35228 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
35230 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
35231 reloads for other unsupported memory operands.
35233 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
35234 Jim Wilson <jim.wilson@linaro.org>
35237 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
35238 copy_to_mode_reg instead of force_reg.
35240 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35243 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
35244 TARGET_80387 is true.
35246 2016-01-11 Jakub Jelinek <jakub@redhat.com>
35249 * lra-eliminations.c (move_plus_up): Only move plus up
35250 if subreg of the constant can be simplified into constant
35251 and use the simplified subreg of the constant instead of
35252 the original constant.
35254 * fold-const.c (fold_convertible_p): Don't return true
35255 for conversion of VECTOR_TYPE to same sized integral type.
35256 (fold_convert_loc): Fix up formatting. Fold conversion of
35257 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
35258 instead of NOP_EXPR.
35260 PR tree-optimization/69214
35261 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
35262 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
35265 PR tree-optimization/69207
35266 * tree-vect-slp.c (vect_get_constant_vectors): For
35267 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
35268 fold_convertible_p to vector_type's element type, and always
35269 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
35271 2016-01-11 Richard Biener <rguenther@suse.de>
35273 PR tree-optimization/69173
35274 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
35275 fixup the cycle if all stmts are in a pattern.
35277 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
35279 PR middle-end/68999
35280 * alias.c (base_alias_check): Move check for addresses with
35281 alignment ANDs before the call for compare_base_decls.
35282 (memrefs_conflict_p): Return -1 for different decls
35283 that went through alignment adjustments.
35285 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35287 PR rtl-optimization/68796
35288 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
35289 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
35290 and QImode comparisons against zero with CC_NZmode.
35291 * config/aarch64/iterators.md (short_mask): New mode_attr.
35293 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35295 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
35296 (<avx512>_store<mode>_mask): Likewise.
35298 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
35299 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35301 PR rtl-optimization/68841
35302 * ifcvt.c (struct noce_if_info): Add orig_x field.
35303 (bbs_ok_for_cmove_arith): Add to_rename parameter.
35304 Don't record conflicts on to_rename if it's present.
35305 Allow memory destinations in sets.
35306 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
35307 blocks, passing orig_x to the checks.
35308 (noce_process_if_block): Set if_info->orig_x appropriately.
35310 2016-01-11 Tom de Vries <tom@codesourcery.com>
35312 PR tree-optimization/69069
35313 * tree-parloops.c (create_parallel_loop): Add missing phi args.
35315 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
35317 PR rtl-optimization/68920
35318 * config/i386/i386.c (ix86_option_override_internal): Restrict number
35319 of conditional moves for RTL if-conversion to 1 for
35320 TARGET_ONE_IF_CONV_INSN.
35321 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
35322 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
35323 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
35324 parameter to restirct number of conditional moves for
35326 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
35327 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
35330 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
35333 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
35334 onepart vars. Fix typo in comment. Fix reversed condition in
35336 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
35339 * var-tracking.c (dump_onepart_variable_differences): New.
35340 (dataflow_set_different): If a detailed dump is requested,
35341 delay early returns and dump differences between onepart
35342 variables present before and after, and added variables.
35344 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
35347 * expr.c (expand_expr_real_1): For boolean vector constants
35348 with a scalar mode use const_scalar_mask_from_tree.
35349 (const_scalar_mask_from_tree): New.
35350 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
35351 assigned to a mask type to handle constants.
35353 2016-01-11 Martin Jambor <mjambor@suse.cz>
35356 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
35357 useless parameters if we cannot change function signature.
35359 2016-01-11 Martin Jambor <mjambor@suse.cz>
35362 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
35365 2016-01-11 Tom de Vries <tom@codesourcery.com>
35367 PR tree-optimization/69109
35368 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
35371 2016-01-11 Tom de Vries <tom@codesourcery.com>
35373 PR tree-optimization/69108
35374 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
35375 res is not used in a phi.
35377 2016-01-11 Yury Gribov <y.gribov@samsung.com>
35380 * common.opt (frandom-seed): Fix parameter name.
35381 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
35383 2016-01-11 Tom de Vries <tom@codesourcery.com>
35385 PR tree-optimization/69058
35386 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
35389 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
35391 * config/arc/arc.opt (mdiv-rem): Add period to the end.
35392 (mcode-density): Likewise.
35394 2016-01-10 Tom de Vries <tom@codesourcery.com>
35396 PR tree-optimization/69062
35397 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
35398 (parallelize_loops): Don't paralelize loop that has phi with address
35401 2016-01-10 Tom de Vries <tom@codesourcery.com>
35403 PR tree-optimization/69039
35404 * tree-parloops.c (try_create_reduction_list): Only allow single exit
35407 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
35409 PR middle-end/68743
35410 * match.pd: Require target has function_c99_misc before doing
35411 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
35413 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
35415 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
35417 * configure: Regenerate.
35419 2016-01-09 Jakub Jelinek <jakub@redhat.com>
35421 PR middle-end/50865
35422 PR tree-optimization/69097
35423 * fold-const.h (expr_not_equal_to): New prototype.
35424 * fold-const.c: Include stringpool.h and tree-ssanames.h.
35425 (expr_not_equal_to): New function.
35426 * match.pd (X % -Y is the same as X % Y): Don't optimize
35427 unless X is known not to be equal to minimum or Y is known
35428 not to be equal to -1.
35429 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
35430 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
35431 (simplify_stmt_using_ranges): Adjust caller.
35432 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
35433 substitute_and_fold.
35435 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
35437 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
35440 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35442 PR tree-optimization/69167
35443 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
35444 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
35446 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
35448 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35449 Richard Biener <rguenther@suse.de>
35451 PR tree-optimization/68707
35452 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
35453 instances that can be handled via vect_load_lanes.
35455 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
35457 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
35458 if we can't determine address equivalence.
35459 * alias.c (compare_base_decl): Update for changed return value of
35460 symtab_node::equal_address_to.
35462 2016-01-08 Jason Merrill <jason@redhat.com>
35466 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
35467 * expr.c (store_field): Not here.
35468 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
35469 call with TREE_ADDRESSABLE type.
35470 * tree-cfg.c (verify_gimple_call): Adjust.
35472 2016-01-08 Olivier Hainque <hainque@adacore.com>
35474 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
35477 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35479 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
35480 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
35481 (reduc_smin_v2sf): Rename to...
35482 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
35483 (reduc_splus_v2sf): Rename to...
35484 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
35486 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35488 PR tree-optimization/69162
35489 * gimplify.c (gimplify_va_arg_expr): Encode original type of
35490 valist argument in another argument.
35491 (gimplify_modify_expr): Adjust for the above change. Cleanup.
35492 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
35493 to determine the va_list type, build a MEM_REF instead of
35494 build_fold_indirect_ref.
35496 PR tree-optimization/69172
35497 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
35500 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
35502 PR tree-optimization/67781
35503 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
35504 and cmpnop in two steps: first the ones not accessed in original
35505 gimple expression in a endian independent way and then the ones not
35506 accessed in the final result in an endian-specific way.
35508 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35510 PR tree-optimization/69083
35511 * tree-vect-slp.c (vect_get_constant_vectors): For
35512 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
35513 element type. If op is fold_convertible_p to vector_type's element
35514 type, use NOP_EXPR instead of VCE.
35516 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
35518 PR rtl-optimization/67778
35519 PR rtl-optimization/68634
35520 PR rtl-optimization/68909
35521 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
35522 block from the stack until done with it. Remove a superfluous
35523 bitmap set. Remove a superfluous bitmap test.
35525 2016-01-07 Martin Sebor <msebor@redhat.com>
35528 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
35529 constraint on the type of arguments.
35531 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
35533 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
35534 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
35535 unaligned_access on the gcc_options set.
35536 * config/arm/arm.c (arm_option_override_internal): Use
35537 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
35539 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35542 * config/i386/i386.c (ix86_frame_pointer_required): Enable
35543 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
35545 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35548 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35551 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35552 depending on frame_pointer_needed before remaining integer and SSE
35553 registers are saved.
35555 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
35558 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
35560 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
35563 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
35564 Use the "xBm" constraint.
35565 (float<sseintvecmodelower><mode>2<mask_name><round_name):
35567 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
35568 (sse_cvtsi2ssq<round_name>): Likewise.
35569 (sse_cvtss2si<round_name>): Likewise.
35570 (sse_cvtss2siq<round_name>): Likewise.
35571 (sse2_cvtsi2sdq<round_name>): Likewise.
35572 (sse2_cvtsd2si<round_name>): Likewise.
35573 (sse2_cvtsd2siq<round_name>): Likewise.
35574 * config/i386/subst.md (round_nimm_scalar_predicate): New
35577 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
35579 PR middle-end/67639
35580 * varasm.c (make_decl_rtl): Mark invalid register vars as
35583 PR rtl-optimization/66206
35584 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
35585 All callers changed.
35587 2016-01-07 Jakub Jelinek <jakub@redhat.com>
35589 PR tree-optimization/69141
35590 * tree-ssa-pre.c: Include langhooks.h.
35591 (eliminate_dom_walker::before_dom_children): Use
35592 lang_hooks.decl_printable_name instead of
35593 cgraph_node::get ()->name ().
35595 PR middle-end/68960
35596 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
35597 it and DECL_ALIGN too.
35599 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
35601 * config/mips/mips-ftypes.def: Sort to lexicographical order.
35603 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35606 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35607 depending on frame_pointer_needed before remaining integer and SSE
35608 registers are saved.
35610 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35612 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
35613 mode iterator with VSX_M2.
35614 (*p9_vecstore_<mode>): Likewise.
35615 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
35616 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
35617 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
35618 (define_split for VSX_LE128 stores): Likewise.
35619 (define_peephole2 for TImode LE swaps): Likewise.
35620 (define_split for VSX_LE128 post-reload stores): Likewise.
35622 2016-01-06 Marek Polacek <polacek@redhat.com>
35625 * convert.c (convert_to_integer_1): Adjust call to
35626 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
35627 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
35628 EXPR instead of ARG.
35629 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
35631 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35634 * doc/extend.texi (RL78 Variable Attributes): New section.
35636 2016-01-05 Marek Polacek <polacek@redhat.com>
35639 * builtins.c (get_memmodel): Use expansion point location rather than
35640 the input location. Call warning_at rather than warning.
35641 (expand_builtin_atomic_compare_exchange): Likewise.
35642 (expand_builtin_atomic_load): Likewise.
35643 (expand_builtin_atomic_store): Likewise.
35644 (expand_builtin_atomic_clear): Likewise.
35646 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35649 * config/i386/i386.c (ix86_expand_vector_logical_operator):
35650 Replace nonimmediate_operand with vector_operand.
35651 * config/i386/predicates.md (vector_operand): New predicate.
35652 (general_vector_operand): Replace nonimmediate_operand with
35654 * config/i386/sse.md: Replace nonimmediate_operand with
35655 vector_operand and m constraint with Bm constraint on SSE
35656 patterns with 16-byte memory operand.
35657 * config/i386/subst.md (round_nimm_predicate): Replace
35658 nonimmediate_operand with vector_operand.
35659 (round_saeonly_nimm_predicate): Likewise.
35660 (round_saeonly_nimm_scalar_predicate): New.
35662 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35665 * config/i386/constraints.md (Bm): New constraint.
35666 * config/i386/predicates.md (vector_memory_operand): New
35668 * config/i386/sse.md: Replace xm with xBm in plusminus and
35669 any_logic patterns.
35671 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35674 * doc/extend.texi (V850 Function Attributes): New section.
35675 (V850 Variable Attributes): New section.
35677 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35680 * doc/extend.texi (MicroBlaze Function Attributes): Document
35681 interrupt_handler and fast_interrupt attributes.
35683 2016-01-05 Sergei Trofimovich <siarheit@google.com>
35686 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
35687 for local symbolic operands.
35688 * config/ia64/predicates.md (local_symbolic_operand64): New
35691 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35693 PR rtl-optimization/68651
35694 * combine.c (combine_simplify_rtx): Canonicalize x + x into
35697 2016-01-05 Nathan Sidwell <nathan@acm.org>
35699 * alias.c (compare_base_decls): Use symtab_node::get.
35701 2016-01-05 Nick Clifton <nickc@redhat.com>
35704 * ira-costs.c (copy_cost): Initialise the t_icode field of the
35705 secondary_reload_info structure.
35708 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
35709 decls if weak support is available.
35711 2016-01-04 Martin Sebor <msebor@redhat.com>
35713 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
35715 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
35717 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
35718 OPTION_MASK_P9_DFORM.
35720 * config/rs6000/constraints.md (wo constraint): New constraint for
35723 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
35725 (rs6000_init_hard_regno_mode_ok): Likewise.
35727 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
35730 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
35731 expanders not to have constraints. Add support for ISA 3.0 xxperm
35732 instruction. Add support for fusing xxlor with xxperm.
35733 (altivec_vperm_<mode>_internal): Likewise.
35734 (altivec_vperm_v8hiv16qi): Likewise.
35735 (altivec_vperm_<mode>v16q): Likewise.
35736 (altivec_vperm_<mode>_uns): Likewise.
35737 (vperm_v8hiv4si): Likewise.
35738 (vperm_v16qiv8hi): Likewise.
35740 * doc/md.texi (RS/6000 constraints): Document wo constraint.
35742 2016-01-04 Jakub Jelinek <jakub@redhat.com>
35744 Update copyright years.
35746 * gcc.c (process_command): Update copyright notice dates.
35747 * gcov-dump.c (print_version): Ditto.
35748 * gcov.c (print_version): Ditto.
35749 * gcov-tool.c (print_version): Ditto.
35750 * gengtype.c (create_file): Ditto.
35751 * doc/cpp.texi: Bump @copying's copyright year.
35752 * doc/cppinternals.texi: Ditto.
35753 * doc/gcc.texi: Ditto.
35754 * doc/gccint.texi: Ditto.
35755 * doc/gcov.texi: Ditto.
35756 * doc/install.texi: Ditto.
35757 * doc/invoke.texi: Ditto.
35759 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35761 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
35762 modes larger than TImode as TImode if NEON is not enabled.
35764 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35767 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
35768 mode for %f0-%f31 only if TARGET_FPU.
35770 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35773 * config/sparc/sparc.c (scan_record_type): Take into account subfields
35774 to compute the PACKED_P predicate.
35775 (function_arg_record_value): Minor tweaks.
35777 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
35779 * doc/install.texi (--with-multilib-list): Describe the meaning of the
35780 option for arm*-*-* targets.
35782 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
35784 * doc/extend.texi (Common Function Attributes): Move docs for
35785 MSP430-specific attributes to....
35786 (MSP430 Function Attributes): ...here. Delete the redundant
35787 entries and copy-edit the remaining text.
35788 (MSP430 Variable Attributes): Use uniform format for index
35789 entries and add a cross-reference to the corresponding function
35792 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
35794 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
35796 (x86 Options): Likewise.
35798 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35802 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
35803 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
35804 to corresponding attribute.
35806 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35808 * doc/extend.texi (Common Function Attributes) <noplt>: Move
35809 to correct alphabetization of table. Copy-edit and correct
35811 <stack_protect>: Likewise.
35812 <target_clones>: Likewise.
35814 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
35815 Correct punctuation.
35816 (Code Gen Options) <-fno-plt>: Copy-edit.
35818 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35821 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
35822 SI values. Explicitly convert SI to DI and vice-versa.
35824 2016-01-01 Jakub Jelinek <jakub@redhat.com>
35826 PR tree-optimization/69070
35827 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
35828 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
35831 * ubsan.c (ubsan_instrument_float_cast): Call
35832 initialize_sanitizer_builtins.
35835 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
35837 Copyright (C) 2016 Free Software Foundation, Inc.
35839 Copying and distribution of this file, with or without modification,
35840 are permitted in any medium without royalty provided the copyright
35841 notice and this notice are preserved.