1 2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
3 PR rtl-optimization/78580
4 * ira-costs.c (find_costs_and_classes): Make regno_aclass
5 translated into an allocno class.
7 2016-12-21 Jakub Jelinek <jakub@redhat.com>
10 * tree-pass.h (make_pass_post_ipa_warn): Declare.
11 * builtins.c (validate_arglist): Adjust get_nonnull_args call.
12 Check for NULL pointer argument to nonnull arg here.
13 (validate_arg): Revert 2016-12-14 changes.
14 * calls.h (get_nonnull_args): Remove declaration.
15 * tree-ssa-ccp.c: Include diagnostic-core.h.
16 (pass_data_post_ipa_warn): New variable.
17 (pass_post_ipa_warn): New class.
18 (pass_post_ipa_warn::execute): New method.
19 (make_pass_post_ipa_warn): New function.
20 * tree.h (get_nonnull_args): Declare.
21 * tree.c (get_nonnull_args): New function.
22 * calls.c (maybe_warn_null_arg): Removed.
23 (maybe_warn_null_arg): Removed.
24 (initialize_argument_information): Revert 2016-12-14 changes.
25 * passes.def: Add pass_post_ipa_warn after first ccp after IPA.
27 2016-12-21 Pat Haugen <pthaugen@us.ibm.com>
29 PR rtl-optimization/11488
30 * common/config/rs6000/rs6000-common.c
31 (rs6000_option_optimization_table): Enable -fsched-pressure.
32 * config/rs6000/rs6000.c (TARGET_COMPUTE_PRESSURE_CLASSES): Define
34 (rs6000_option_override_internal): Set default -fsched-pressure algorithm.
35 (rs6000_compute_pressure_classes): Implement target hook.
37 2016-12-21 Bill Seurer <seurer@linux.vnet.ibm.com>
40 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
41 -fasynchronous-unwind-tables option when -fsanitize=address is
44 2016-12-21 Bernd Schmidt <bschmidt@redhat.com>
47 * config/i386/i386.md (lea<mode>_general_2b, lea<mode>_general_3b): New
49 * config/i386/predicates.md (const123_operand): New.
51 2016-12-21 Jakub Jelinek <jakub@redhat.com>
52 Martin Liska <mliska@suse.cz>
55 * gcc.c (driver::build_option_suggestions): Do not add
56 -fsanitize=all as a suggestion candidate.
58 2016-12-21 Alexander Monakov <amonakov@ispras.ru>
61 * config/nvptx/nvptx.c (init_softstack_frame): Remove assert. Compute
62 crtl->is_leaf only if unset. Adjust comment.
64 2016-12-21 Andrew Pinski <apinski@cavium.com>
66 * match.pd (max:c @0 (plus@2 @0 INTEGER_CST@1)): New Pattern.
67 (min:c @0 (plus@2 @0 INTEGER_CST@1)) : New Pattern.
69 2016-12-20 James Greenhalgh <james.greenhalghj@arm.com>
71 * common.opt (excess_precision): Tag as SetByCombined.
72 * opts.c (set_fast_math_flags): Also set
73 flag_excess_precision_cmdline.
74 (fast_math_flags_set_p): Also check flag_excess_precision_cmdline.
75 * doc/invoke.texi (-fexcess-precision): Drop text saying the
76 option has no effect under -ffast-math, make it clear that
77 -ffast-math will cause -fexcess-precision=fast by default even for
78 standards compliant modes.
79 (-ffast-math): Document that this sets -fexcess-precision=fast.
81 2016-12-20 Richard Biener <rguenther@suse.de>
83 * passes.c (execute_one_pass): Handle going out of SSA w/o
84 hitting pass_startwith. Handle skipping property providers.
86 2016-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
89 * config/arm/arm.c (dump_minipool): Copy mp->value before emitting it
90 in the minipool to avoid invalid RTL sharing.
92 2016-12-19 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
94 * config/rs6000/rs6000-protos.h (expand_strn_compare): Declare.
95 * config/rs6000/rs6000.md (UNSPEC_CMPB): New unspec.
96 (cmpb<mode>3): pattern for generating cmpb.
97 (cmpstrnsi): pattern to expand strncmp ().
98 * config/rs6000/rs6000.opt (mstring-compare-inline-limit): Add a new
99 target option for controlling how much code inline expansion of
100 strncmp() will be allowed to generate.
101 * config/rs6000/rs6000.c (expand_strncmp_align_check): generate code
102 for runtime page crossing check of strncmp () args.
103 (expand_strn_compare): Function to do builtin expansion of strncmp ().
105 2016-12-19 David Malcolm <dmalcolm@redhat.com>
107 * print-rtl-function.c (print_rtx_function): Update
108 example in comment to reflect current format.
110 2016-12-19 Uros Bizjak <ubizjak@gmail.com>
112 * config/i386/i386.md (*popcounthi2_1): New insn_and_split pattern.
114 2016-12-19 Sandra Loosemore <sandra@codesourcery.com>
116 * doc/cpp.texi: Clean up anachronistic C99 references and remove
117 discussion of very old GCC versions.
118 (Differences from previous versions): Delete entire section.
120 2016-12-19 Will Schmidt <will_schmidt@vnet.ibm.com>
122 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
123 early expansion of vector multiply and subtract builtins.
125 2016-12-19 David Malcolm <dmalcolm@redhat.com>
127 * print-rtl.c (rtx_writer::print_rtx_operand_code_r): For
128 non-virtual pseudos in compact mode, wrap the regno in '<' and '>'
129 rather than using a '%' prefix.
130 * rtl-tests.c (selftest::test_dumping_regs): Update for above change.
132 2016-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
135 * config/s390/s390.md ("*andc_split_<mode>"): Allow memory destination
136 only if it coincides with operand 2.
138 2016-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
140 * combine.c (change_zero_ext): Skip generation of redundant AND.
142 2016-12-19 Krister Walfridsson <krister.walfridsson@gmail.com>
144 * config/netbsd.h (LINK_EH_SPEC): Define.
146 2016-12-18 Eric Botcazou <ebotcazou@adacore.com>
148 * lra-constraints.c (process_address): Add forward declaration.
149 (simplify_operand_subreg): In the MEM case, if the adjusted memory
150 reference is not sufficient aligned and the address was invalid,
151 reload the address before reloading the original memory reference.
152 Fix long lines and add a final return for the sake of clarity.
154 2016-12-17 Jakub Jelinek <jakub@redhat.com>
157 * sanopt.c (sanitize_asan_mark_unpoison): Remove next variable, use
158 continue if gsi_next should be skipped.
159 (sanitize_asan_mark_poison): Remove prev variable, use continue if
160 gsi_prev should be skipped. When removing ASAN_MARK, do gsi_prev
161 first and gsi_remove on a previously made copy of the iterator.
163 2016-12-17 Andrew Senkevich <andrew.senkevich@intel.com>
165 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
166 * config/i386/avx512dqintrin.h: Ditto.
167 * config/i386/avx512fintrin.h: Ditto.
168 * config/i386/i386-builtin.def (__builtin_ia32_kaddqi,
169 __builtin_ia32_kaddhi, __builtin_ia32_kaddsi,
170 __builtin_ia32_kadddi): New.
171 * config/i386/sse.md (kadd<mode>): New.
173 2016-12-17 Uros Bizjak <ubizjak@gmail.com>
175 * config/i386/i386.md (*tzcnt<mode>_1): Merge *tzcnt<mode>_1_falsedep_1
176 and *tzcnt<mode>_1 to define_insn_and_split pattern. Adjust split
177 condition to split after epilogue_completed.
178 (ctz<mode>2): Remove expander.
179 (ctz<mode>2): Merge *ctz<mode>2_falsedep_1 and *ctz<mode>2 to
180 define_insn_and_split pattern. Adjust split condition to split
181 after epilogue_completed.
182 (clz<mode>2_lznct): Remove expander.
183 (clz<mode>2_lzcnt): Merge *clz<mode>2_lzcnt_falsedep_1 and
184 *clz<mode>2 to define_insn_and_split pattern. Adjust split
185 condition to split after epilogue_completed.
186 (<lt_zcnt>_<mode>): Remove expander.
187 (<lt_zcnt>_<mode>): Merge *<lt_zcnt>_<mode>_falsedep_1 and
188 *<lt_zcnt>_<mode> to define_insn_and_split pattern. Adjust split
189 condition to split after epilogue_completed.
190 (<lt_zcnt>_hi): New insn pattern.
191 (popcount<mode>2): Remove expander.
192 (popcount<mode>2): Merge *popcount<mode>2_falsedep_1 and
193 *popcount<mode>2 to define_insn_and_split pattern. Adjust split
194 condition to split after epilogue_completed.
195 (popcounthi2): New insn pattern.
197 2016-12-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
199 * config/rs6000/altivec.md (UNSPEC_CMPRB): New unspec value.
200 (UNSPEC_CMPRB2): New unspec value.
201 (UNSPEC_CMPEQB): New unspec value.
202 (cmprb): New expansion.
203 (*cmprb_internal): New insn.
204 (*setb_internal): New insn.
205 (cmprb2): New expansion.
206 (*cmprb2_internal): New insn.
207 (cmpeqb): New expansion.
208 (*cmpeqb_internal): New insn.
209 * config/rs6000/rs6000-builtin.def (BU_P9_2): New macro.
210 (BU_P9_64BIT_2): Likewise.
211 (BU_P9_OVERLOAD_2): Likewise.
212 (CMPRB): Add byte-in-range built-in function.
213 (CMBRB2): Add byte-in-either-range built-in function.
214 (CMPEQB): Add byte-in-set built-in function.
215 (CMPRB): Add overload support for byte-in-range function.
216 (CMPRB2): Add overload support for byte-in-either-range function.
217 (CMPEQB): Add overload support for byte-in-set built-in function.
218 * config/rs6000/rs6000-c.c (P9_BUILTIN_CMPRB): Macro expansion to
219 define argument types for new builtin.
220 (P9_BUILTIN_CMPRB2): Likewise.
221 (P9_BUILTIN_CMPEQB): Likewise.
222 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Rearrange
223 the order of presentation for certain built-in functions
224 (scalar_extract_exp, scalar_extract_sig, scalar_insert_exp)
225 (scalar_cmp_exp_gt, scalar_cmp_exp_lt, scalar_cmp_exp_eq)
226 (scalar_cmp_exp_unordered, scalar_test_data_class)
227 (scalar_test_neg) to improve locality and flow. Document
228 the new __builtin_scalar_byte_in_set,
229 __builtin_scalar_byte_in_range, and
230 __builtin_scalar_byte_in_either_range functions.
232 2016-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
234 * config/aarch64/aarch64.md: New define_split above bswap<mode>2.
236 2016-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
238 * config/aarch64/aarch64.md: New define_split above insv<mode>.
240 2016-12-16 Jakub Jelinek <jakub@redhat.com>
243 * tree-ssa-ccp.c: Include tree-dfa.h.
244 (optimize_memcpy): New function.
245 (pass_fold_builtins::execute): Use it. Remove useless conditional
246 break after BUILT_IN_VA_*.
248 2016-12-16 Marek Polacek <polacek@redhat.com>
250 PR tree-optimization/78819
251 * tree-vrp.c (find_switch_asserts): Return if the insertion limit is 0.
252 Don't register an assertion if the default case shares a label with
255 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
257 * config/arm/arm.md (subsi3_carryin): Add Thumb-2 RSC #0.
258 (arm_negdi2) Rename to negdi2_insn, allow on Thumb-2.
259 * config/arm/thumb2.md (thumb2_negdi2): Remove pattern.
261 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
263 * config/arm/arm.c (thumb_core_reg_alloc_order): Swap R12 and R14.
265 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
267 * config/arc/arc.md (call_prof): Remove.
268 (call_value_prof): Likewise.
269 (sibcall_prof): Likewise.
270 (sibcall_value_prof): Likewise.
272 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
274 * config/arc/arc.h (LINK_SPEC): Tidy up.
275 (ENDFILE_SPEC): Likewise.
276 (LIB_SPEC): Likewise.
277 (STARTFILE_SPEC): Include gcrt0 when profiling.
278 (FUNCTION_PROFILER): Use __mcount.
279 * config/arc/arc.opt (mucb-mcount): Remove.
280 * doc/invoke.texi (ARC): Remove mucb-mcount doc.
281 * arc/arc-protos.h (arc_profile_call): Remove.
282 * config/arc/arc.c (write_profile_sections): Likewise.
283 (arc_profile_call): Likewise.
284 (unspec_prof_hash): Likewise.
285 (unspec_prof_htab_eq): Likewise.
286 (arc_legitimate_constant_p): Remove UNSPEC_PROF.
287 (arc_reorg): Remove call to write_profile_sections.
288 * config/arc/arc.md (call): Remove call to arc_profile_call.
289 (call_value): Likewise.
291 (sibcall_value): Likewise.
292 (define_constants): Remove UNSPEC_PROF.
294 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
296 * config/arc/arc.md (mulsidi_600): Change to insn_and_split,
297 generate new mul64 insn for core multiplication work.
298 (umulsidi_600): Likewise, but use mulu64 insn.
299 (mul64): New pattern, content taken from old mulsidi_600 insn pattern.
300 (mulu64): Likewise, but using umulsidi_600.
301 (mulsidi3): Remove move to destination, this is now handled by
302 mulsidi_600 insn_and_split.
303 (umulsidi3): Likewise, but using umulsidi_600.
305 2016-12-16 Richard Biener <rguenther@suse.de>
308 * langhooks-def.h (lhd_unit_size_without_reusable_padding): Declare.
309 (LANG_HOOKS_UNIT_SIZE_WITHOUT_REUSABLE_PADDING): Define.
310 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Adjust.
311 * langhooks.h (struct lang_hooks_for_types): Add
312 unit_size_without_reusable_padding.
313 * langhooks.c (lhd_unit_size_without_reusable_padding): New.
314 * stor-layout.c (finish_bitfield_representative): Use
315 unit_size_without_reusable_padding langhook to decide on the
316 last representatives size.
318 2016-12-16 Richard Biener <rguenther@suse.de>
321 * expr.c (expand_cond_expr_using_cmove): Bail out early if
322 we end up recursing via TER.
324 2016-12-15 Martin Sebor <msebor@redhat.com>
327 * vec.h (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Assert
328 a pointer is non-null.
330 2016-12-15 Andrew Senkevich <andrew.senkevich@intel.com>
332 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
333 * config/i386/avx512dqintrin.h: Ditto.
334 * config/i386/avx512fintrin.h: Ditto.
335 * config/i386/i386-builtin.def (__builtin_ia32_kmovb,
336 __builtin_ia32_kmovd, __builtin_ia32_kmovq): New.
337 (__builtin_ia32_kmov16): Rename to __builtin_ia32_kmovw.
338 * config/i386/sse.md (kmov<mskmodesuffix>): New.
340 2016-12-15 Uros Bizjak <ubizjak@gmail.com>
342 * config/i386/i386.md (ffs<mode>2): Generate CCCmode flags register
344 (ffssi2_no_cmove): Ditto.
345 (*tzcnt<mode>_1_falsedep_1): New insn_and_split pattern.
346 (*tzcnt<mode>_1_falsedep): New insn pattern.
348 (LT_ZCNT): New mode iterator.
349 (lt_zcnt): New mode attribute.
350 (lt_zcnt_type): New mode attribute.
351 (<lt_zcnt>_<mode>): Macroize expander from bmi_tzcnt_<mode> and
352 lzcnt_<mode> using LT_ZCNT mode iterator.
353 (*<lt_zcnt>_<mode>_falsedep_1): Macroize insn from
354 *bmi_tzcnt_<mode>_falsedep_1 and *lzcnt_<mode>_falsedep_1
355 using LT_ZCNT mode iterator.
356 (*<lt_zcnt>_<mode>_falsedep): Macroize insn from
357 *bmi_tzcnt_<mode>_falsedep and *lzcnt_<mode>_falsedep
358 using LT_ZCNT mode iterator.
359 (*<lt_zcnt>_<mode>): Macroize insn from *bmi_tzcnt_<mode>
360 and *lzcnt_<mode> using LT_ZCNT mode iterator.
361 * config/i386/i386-builtin.def (__builtin_ia32_tzcnt_u16)
362 (__builtin_ia32_tzcnt_u32, __builtin_ia32_tzcnt_u64, __builtin_ctzs):
365 2016-12-15 Jakub Jelinek <jakub@redhat.com>
367 * ipa-cp.c (class ipcp_bits_lattice): Formatting fixes.
368 (print_ipcp_constant_value): Likewise.
369 (ipcp_cloning_candidate_p): Likewise.
370 (ipcp_bits_lattice::get_value_and_mask): Likewise.
371 (ipcp_bits_lattice::meet_with_1): Likewise.
372 (ipcp_bits_lattice::meet_with): Likewise.
373 (initialize_node_lattices): Likewise.
374 (ipcp_lattice::add_value): Likewise.
375 (propagate_vals_accross_pass_through): Renamed to ...
376 (propagate_vals_across_pass_through): ... this function.
377 (propagate_vals_accross_ancestor): Renamed to ...
378 (propagate_vals_across_ancestor): ... this.
379 (propagate_scalar_accross_jump_function): Renamed to ...
380 (propagate_scalar_across_jump_function): ... this.
381 Adjust calls to above functions.
382 (propagate_context_accross_jump_function): Renamed to ...
383 (propagate_context_across_jump_function): ... this.
384 (propagate_bits_accross_jump_function): Renamed to ...
385 (propagate_bits_accross_jump_function): ... this. Formatting fixes.
386 (propagate_vr_accross_jump_function): Renamed to ...
387 (propagate_vr_across_jump_function): ... this.
388 (merge_agg_lats_step): Formatting fixes.
389 (propagate_constants_accross_call): Renamed to ...
390 (propagate_constants_across_call): ... this. Adjust calls to above
392 (ipa_get_indirect_edge_target_1): Formatting fixes.
393 (gather_context_independent_values): Likewise.
394 (estimate_local_effects): Likewise.
395 (add_all_node_vals_to_toposort): Likewise.
396 (propagate_constants_topo): Adjust calls to above functions.
397 (get_replacement_map): Formatting fixes.
398 (dump_profile_updates): Likewise.
399 (update_profiling_info): Likewise.
400 (update_specialized_profile): Likewise.
401 (create_specialized_node): Likewise.
402 (find_more_contexts_for_caller_subset): Likewise.
403 (decide_whether_version_node): Likewise.
404 (identify_dead_nodes): Likewise.
405 (ipcp_decision_stage): Likewise.
406 (ipcp_store_bits_results): Likewise.
407 (ipcp_store_vr_results): Likewise.
408 (ipcp_driver): Likewise.
410 2016-12-15 David Malcolm <dmalcolm@redhat.com>
412 PR preprocessor/78680
413 PR preprocessor/78811
414 * input.c (struct selftest::lexer_test): Add field
415 m_implicitly_expect_EOF.
416 (selftest::lexer_error_sink): New class.
417 (selftest::lexer_error_sink::s_singleton): New global.
418 (selftest::lexer_test::lexer_test): Initialize new field
419 "m_implicitly_expect_EOF".
420 (selftest::lexer_test::~lexer_test): Conditionalize the
421 check for the EOF token on the new field.
422 (selftest::test_lexer_string_locations_raw_string_unterminated):
424 (selftest::input_c_tests): Call the new test.
426 2016-12-15 Wilco Dijkstra <wdijkstr@arm.com>
428 * config/arm/arm.h (TARGET_BACKTRACE): Use crtl->is_leaf.
429 * config/arm/arm.c (arm_option_check_internal): Improve comment.
430 (thumb_force_lr_save): Use crtl->is_leaf.
431 (arm_get_frame_offsets): Remove comment. Use crtl->is_leaf.
432 (thumb_far_jump_used_p): Remove comment.
433 (arm_frame_pointer_required): Use crtl->is_leaf.
435 2016-12-15 Jakub Jelinek <jakub@redhat.com>
437 * doc/extend.texi: Clean up @xref{...} uses.
438 * doc/invoke.texi: Likewise.
440 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
442 * arm-fpus.def: Add CNAME field to all FPU definitions.
443 * genopt.sh: Use explicit enumeration tags for FPU entries.
444 * arm-tables.opt: Regenerated.
445 * arm.opt (mfpu): Provide initial value.
446 * arm-opts.h (enum fpu_type): Build the enumeration from the list of
447 available FPUs. Add 'auto' entry on the end.
448 * arm.c (arm_configure_build_target): Only do explicit configuration
449 of the FPU features if the selected FPU is not 'auto'.
450 (arm_option_override): Adjust initialization of arm_fpu_index.
451 Emit an error if we have a hard float ABI request, but the processor
452 does not support floating-point.
453 (arm_option_print): Handle -mfpu=auto.
454 (arm_valid_target_attribute_rec): Don't permit fpu=auto in pragmas
455 or function attributes.
456 (arm_identify_fpu_from_isa): Handle effective soft-float when
457 the FPU is automatically detected.
458 * arm-cores.def (arm1136jf-s): Add feature ISA_FP_DBL.
459 (arm1176jzf-s): Likewise.
461 (arm1156t2f-s): Likewise.
463 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
465 * arm-fpus.def (ARM_FPU): Remove features field from all definitions.
466 * arm.h (arm_fpu_feature_set): Delete typedef.
467 (FPU_FL_NONE): Delete.
468 (FPU_FL_NEON): Delete.
469 (FPU_FL_FP16): Delete.
470 (FPU_FL_CRYPTO): Delete.
471 (FPU_FL_DBL): Delete.
472 (FPU_FL_D32): Delete.
473 (FPU_FL_VFPv2): Delete.
474 (FPU_FL_VFPv3): Delete.
475 (FPU_FL_VFPv4): Delete.
476 (FPU_FL_VFPv5): Delete.
477 (FPU_FL_AMRv8): Delete.
486 (FPU_CRYPTO): Delete.
488 (arm_fpu_desc): Delete features field.
489 * arm.c (all_fpus): Don't initialize feature field.
491 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
493 * arm.c (arm_can_inline_p): Use ISA features for determining
496 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
498 * arm-protos.h (arm_configure_build_target): Change second argument
499 to cl_target_options.
500 * arm.c (arm_configure_build_target): Likewise.
501 (arm_option_restore): Update accordingly.
502 (arm_option_override): Create the target_option_default_node before
503 calling arm_configure_build_target. Use it in call of latter.
504 Resynchronize after all other overrides have been calculated.
505 (arm_valid_target_attribute_tree): Use the target options for
506 reconfiguration. Resynchronize after performing override checks.
507 * arm-c.c (arm_pragma_target_parse): Use target optiosn from cur_tree
508 to reconfigure the build target.
510 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
512 * arm.h (TARGET_VFPD32): Use arm_active_target.
513 (TARGET_VFP3): Likewise.
514 (TARGET_VFP5): Likewise.
515 (TARGET_VFP_SINGLE): Likewise.
516 (TARGET_VFP_DOUBLE): Likewise.
517 (TARGET_NEON_FP16): Likewise.
518 (TARGET_FP16): Likewise.
519 (TARGET_FMA): Likewise.
520 (TARGET_FPU_ARMV8): Likewise.
521 (TARGET_CRYPTO): Likewise.
522 (TARGET_NEON): Likewise.
523 (TARGET_FPU_FEATURES): Delete.
524 * arm.c (arm_option_check_internal): Check for iwmmxt conflict with
525 Neon using arm_active_target.
527 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
529 * arm.h (TARGET_FPU_NAME): Delete.
530 * arm.c (arm_identify_fpu_from_isa): New function.
531 (arm_declare_function_name): Use it to get the name for the FPU.
533 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
535 * arm-protos.h: Include sbitmap.h
536 (arm_configure_build_target): Make public.
537 * arm.c (arm_configure_build_target): Now not static.
538 (arm_valid_target_attribute_rec): Move internal option check to...
539 (arm_valid_target_attribute_tree0: ... here. Also reconfingure the
541 (arm_override_options_after_change): Call arm_configure_build_target.
542 (isa_all_fpubits): Renamed from isa_fpubits.
543 (arm_option_restore): New function.
544 (TARGET_OPTION_RESTORE): Register it.
545 (arm_configure_build_target): Initialize the FPU capability bits in
547 (arm_option_override): Move the code that forces the setting of the
548 FPU option before the call to arm_configure_build_target.
549 * arm.opt (march): Mark as Save.
550 (mcpu, mtune): Likewise.
551 * arm-c.c (arm_pragma_target_parse): Reconfigure the build target
552 after pragmas change the target options.
554 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
556 * arm-isa.h (isa_feature): Add bits for VFPv4, FPv5, fp16conv,
557 fP_dbl, fp_d32 and fp_crypto.
558 (ISA_ALL_FPU): Add all the new bits.
559 (ISA_VFPv2, ISA_VFPv3, ISA_VFPv4, ISA_FPv5): New macros.
560 (ISA_FP_ARMv8, ISA_FP_DBL, ISA_FP_D32, ISA_NEON, ISA_CRYPTO): Likewise.
561 * arm-fpus.def: Add ISA features to all FPUs.
562 * arm.h: (arm_fpu_desc): Add new field for ISA bits.
563 * arm.c (all_fpus): Initialize it.
564 * arm-tables.opt: Regenerated.
566 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
568 * arm.h (FPU_FL_VFPv2) New feature bit.
569 (FPU_FL_VFPv3, FPU_FL_VFPv4, FPU_FL_VFPv5, FPU_FL_ARMv8): Likewise.
570 (FPU_VFPv2, FPU_VFPv3, FPU_VFPv4, FPU_VFPv5, FPU_ARMv8): New helper
572 (FPU_DBL, FPU_D32, FPU_NEON, FPU_CRYPTO, FPU_FP16): Likewise.
573 (TARGET_FPU_REV): Delete.
574 (TARGET_VFP3): Use feature bits.
575 (TARGET_VFP5): Likewise.
576 (TARGET_FMA): Likewise.
577 (TARGET_FPU_ARMV8): Likewise.
578 (struct arm_fpu_desc): Delete rev field.
579 * arm-fpus.def: Delete REV entry, use new feature bits and macros.
580 * arm.c (all_fpus): Delete rev field.
582 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
584 * arm.h (vfp_reg_type): Delete.
585 (TARGET_FPU_REGS): Delete.
586 (arm_fpu_desc): Delete regs field.
587 (FPU_FL_NONE, FPU_FL_NEON, FPU_FL_FP16, FPU_FL_CRYPTO): Use unsigned
589 (FPU_FL_DBL, FPU_FL_D32): Define.
590 (TARGET_VFPD32): Use feature test.
591 (TARGET_VFP_SINGLE): Likewise.
592 (TARGET_VFP_DOUBLE): Likewise.
593 * arm-fpus.def: Update all entries for new feature bits.
594 * arm.c (all_fpus): Update initializer macro.
595 (arm_can_inline_p): Remove test on fpu regs.
597 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
599 * arm.h (arm_fp_model): Delete.
601 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
603 * arm-cores.def: Remove FLAGS field from all core definitions.
604 * arm-arches.def: Likewise.
605 * arm-opts.h (enum processor_type): Remove FLAGS parameter from
607 (arm_arch_core_flags): Likewise, plus ARM_ARCH macro.
608 * arm-protos.h (FL_*): Delete.
609 (arm_feature_set): Delete.
610 (ARM_FSET_*): Delete.
611 * arm.c (struct processors): Delete flags field.
612 (all_cores): Delete FLAGS parameter from macro, don't initialize flags.
613 (all architectures): Likewise.
615 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
617 * arm-opts.h (struct arm_arch_core_flag): Add new field ISA.
619 (arm_arch_core_flag): Delete flags field.
620 (arm_arch_core_flags): Don't initialize flags field.
621 * common/config/arm/arm-common.c (check_isa_bits_for): New function.
622 (arm_target_thumb_only): Use new isa bits arrays.
624 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
626 * arm-protos.h (insn_flags): Delete declaration.
627 (arm_arch7ve): Declare.
628 * arm.c (insn_flags): Delete.
629 (arm_arch7ve): New variable.
630 (arm_selected_cpu): Delete.
631 (arm_option_check_internal): Use new ISA bitmap.
632 (arm_option_override_internal): Likewise.
633 (arm_configure_build_target): Declare arm_selected_cpu locally.
634 (arm_option_override): Use new ISA bitmap. Initialize arm_arch7ve.
635 Rearrange variable intialization by general function.
636 * arm.h (TARGET_HAVE_LPAE): Use arm_arch7ve.
638 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
640 * arm-builtins.c: Include sbitmap.h.
641 (def_mbuiltin): Change first parameter to a flag bit. Use it to test
642 available features in the current target.
643 (struct builtin_description): Change type of feature field.
644 (IWMMXT_BUILTIN): Use the isa_features types.
645 (IWMMXT2_BUILTIN): Likewise.
646 (IWMMXT_BUILTIN2): Likewise.
647 (IWMMXT2_BUILTIN2): Likewise.
648 (CRC32_BUILTIN): Likewise.
649 (CRYPTO_BUILTIN): Likewise.
650 (iwmmx_builtin): Likewise.
651 (iwmmx2_builtin): Likewise.
652 (arm_iwmmxt_builtin): Check for specific feature bits.
654 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
656 * arm-isa.h (enum isa_feature): Add isa_quirk_cm3_ldrd.
657 (ISA_ALL_QUIRKS): New macro.
658 * arm-cores.def (cortex-m3): Add isa_quirk_cm3_ldrd to isa feature list.
659 * arm.c (isa_quirkbits): New feature-list bitmap.
660 (arm_configure_build_target): Ignore quirk bits when comparing an
661 architecture feature list with a CPU feature list.
662 (arm_option_override): Initialize_isa_quirkbits. If the user has
663 not specified -m[no-]fix-cortex-m3-ldrd, automatically enable the
664 feature if isa_quirk_cm3_ldrd appears in the isa feature list.
666 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
668 * arm.c (arm_option_override): Use arm_active_target as source of
669 information for arm_base_arch and arm_arch_name.
670 * (arm_file_start): Use arm_active_target for core name.
672 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
674 * arm.c (arm_selected_tune): Delete static variable.
675 (arm_selected_arch): Likewise.
676 (arm_configure_build_target): Declare local versions of arm_selected
677 target and arm_selected_arch. Initialize more fields in target
679 (arm_option_override): Use arm_active_target instead of
680 arm_selected_tune and arm_selected_arch.
681 (asm_file_start): Use arm_active_target.
683 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
685 * arm-protos.h (arm_build_target): New structure.
686 (arm_active_target): Declare it.
687 * arm.c (arm_active_target): New variable.
688 (bitmap_popcount): New function.
689 (feature_count): Delete.
690 (arm_initialize_isa): New function.
691 isa_fpubits): New variable.
692 (arm_configure_build_target): New function.
693 (arm_option_override): Initialize isa_fpubits and arm_active_target.isa.
694 Use arm_configure_build_target.
696 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
698 * arm-isa.h: New file.
699 * arm-protos.h: Include it.
700 * arm-arches.def: Add new ISA field to all entries. Drop bogus
701 armv8.1-a+crc architecture.
702 * arm-cores.def: Similarly. Group ARMv8 cores by profile.
703 * arm-opts.h (enum processor_type): Adjust for new field.
704 * arm.c (struct processors): New field 'isa_bits'.
705 (all_cores, all_architectures): Initialize new field.
706 * arm-tables.opt: Regenerated.
707 * arm-tune.md: Regenerated.
709 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
711 * arm-arches.def (ARM_ARCH): Add extra field TUNE_FLAGS, move
712 tuning properties from architectural FLAGS field.
713 * arm-cores.def (ARM_CORE): Likewise.
714 * arm-protos.h (TF_LDSCHED, TF_WBUF, TF_CO_PROC): New macros.
715 (TF_SMALLMUL, TF_STRONG, TF_SCALE, TF_NOMODE32): New macros.
716 (FL_LDSCHED, FL_STRONG, FL_WBUF, FL_SMALLMUL): Delete.
717 (FL_TUNE): Remove deleted elements.
718 (tune_flags): Convert type to unsigned int.
719 * arm.c (struct processors): Add new field tune_flags.
720 (all_cores, all_arches): Initialize it.
721 (arm_option_override): Adapt uses of tune_flags. Use tune_flags
722 for deciding when we should have slow multiply operations.
724 2016-12-14 Martin Sebor <msebor@redhat.com>
727 * gimple-ssa-sprintf.c (format_string): Handle null pointers.
728 (format_directive): Diagnose null pointer arguments.
729 (pass_sprintf_length::handle_gimple_call): Diagnose null destination
730 pointers. Correct location of null format string in diagnostics.
732 2016-12-14 David Malcolm <dmalcolm@redhat.com>
734 * Makefile.in (SELFTEST_FLAGS): Add path argument to -fself-test.
735 (s-selftest): Add dependency on the selftests data directory.
736 * common.opt (fself-test): Rename to...
737 (fself-test=): ...this, documenting the meaning of the argument.
738 * selftest-run-tests.c (along): Likewise.
739 * selftest-run-tests.c: Include "options.h".
740 (selftest::run_tests): Initialize selftest::path_to_selftest_files
742 * selftest.c (selftest::path_to_selftest_files): New global.
743 (selftest::locate_file): New function.
744 (selftest::test_locate_file): New function.
745 (selftest_c_tests): Likewise.
746 (selftest::selftest_c_tests): Call test_locate_file.
747 * selftest.h (selftest::locate_file): New decl.
748 (selftest::path_to_selftest_files): New decl.
750 2016-12-14 Andrew Pinski <apinski@cavium.com>
752 * config/aarch64/aarch64-cores.def: Add -1 as the variant to all
754 (thunderx): Update to include LSE by default.
755 (thunderxt88p1): New core.
756 (thunderxt88): New core.
757 (thunderxt81): New core.
758 (thunderxt83): New core.
759 * config/aarch64/driver-aarch64.c (struct aarch64_core_data):
761 (ALL_VARIANTS): New define.
762 (AARCH64_CORE): Support VARIANT operand.
763 (cpu_data): Likewise.
764 (host_detect_local_cpu): Parse variant field of /proc/cpuinfo.
765 Combine the arch and single core case and support variant searching.
766 * common/config/aarch64/aarch64-common.c (AARCH64_CORE):
768 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Likewise.
769 * config/aarch64/aarch64.c (AARCH64_CORE): Likewise.
770 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
771 * config/aarch64/aarch64-tune.md: Regenerate.
772 * doc/invoke.texi (AARCH64/mtune): Document thunderxt88,
773 thunderxt88p1, thunderxt81, thunderxt83 as available options.
775 2016-12-14 Martin Jambor <mjambor@suse.cz>
777 * omp-offload.c: Fix coding style.
778 * omp-expand.c: Likewise.
779 * omp-general.c: Likewise.
780 * omp-grid.c: Likewise.
781 * omp-low.c: Fix coding style of parts touched by the
782 previous splitting patch.
784 2016-12-14 Martin Jambor <mjambor@suse.cz>
786 * omp-general.h: New file.
787 * omp-general.c: New file.
788 * omp-expand.h: Likewise.
789 * omp-expand.c: Likewise.
790 * omp-offload.h: Likewise.
791 * omp-offload.c: Likewise.
792 * omp-grid.c: Likewise.
793 * omp-grid.c: Likewise.
794 * omp-low.h: Include omp-general.h and omp-grid.h. Removed includes
795 of params.h, symbol-summary.h, lto-section-names.h, cilk.h, tree-eh.h,
796 ipa-prop.h, tree-cfgcleanup.h, cfgloop.h, except.h, expr.h, stmt.h,
797 varasm.h, calls.h, explow.h, dojump.h, flags.h, tree-into-ssa.h,
798 tree-cfg.h, cfganal.h, alias.h, emit-rtl.h, optabs.h, expmed.h,
799 alloc-pool.h, cfghooks.h, rtl.h and memmodel.h.
800 (omp_find_combined_for): Declare.
801 (find_omp_clause): Renamed to omp_find_clause and moved to
803 (free_omp_regions): Renamed to omp_free_regions and moved to
805 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
807 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
809 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
810 moved to omp-general.h.
811 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
813 (oacc_fn_attrib_kernels_p): Moved to omp-general.h.
814 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
816 (omp_expand_local): Moved to omp-expand.h.
817 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
819 (omp_finish_file): Moved to omp-offload.h.
820 (default_goacc_validate_dims): Renamed to
821 oacc_default_goacc_validate_dims and moved to omp-offload.h.
822 (offload_funcs, offload_vars): Moved to omp-offload.h.
823 * omp-low.c: Include omp-general.h, omp-offload.h and omp-grid.h.
824 (omp_region): Moved to omp-expand.c.
825 (omp_for_data_loop): Moved to omp-general.h.
826 (omp_for_data): Likewise.
827 (oacc_loop): Moved to omp-offload.c.
828 (oacc_loop_flags): Moved to omp-general.h.
829 (offload_funcs, offload_vars): Moved to omp-offload.c.
830 (root_omp_region): Moved to omp-expand.c.
831 (omp_any_child_fn_dumped): Likewise.
832 (find_omp_clause): Renamed to omp_find_clause and moved to
834 (is_combined_parallel): Moved to omp-expand.c.
835 (is_reference): Renamed to omp_is_reference and and moved to
837 (adjust_for_condition): Renamed to omp_adjust_for_condition and moved
839 (get_omp_for_step_from_incr): Renamed to omp_get_for_step_from_incr
840 and moved to omp-general.c.
841 (extract_omp_for_data): Renamed to omp_extract_for_data and moved to
843 (workshare_safe_to_combine_p): Moved to omp-expand.c.
844 (omp_adjust_chunk_size): Likewise.
845 (get_ws_args_for): Likewise.
846 (get_base_type): Removed.
847 (dump_omp_region): Moved to omp-expand.c.
848 (debug_omp_region): Likewise.
849 (debug_all_omp_regions): Likewise.
850 (new_omp_region): Likewise.
851 (free_omp_region_1): Likewise.
852 (free_omp_regions): Renamed to omp_free_regions and moved to
854 (find_combined_for): Renamed to omp_find_combined_for, made global.
855 (build_omp_barrier): Renamed to omp_build_barrier and moved to
857 (omp_max_vf): Moved to omp-general.c.
858 (omp_max_simt_vf): Likewise.
859 (gimple_build_cond_empty): Moved to omp-expand.c.
860 (parallel_needs_hsa_kernel_p): Likewise.
861 (expand_omp_build_assign): Moved declaration to omp-expand.c.
862 (expand_parallel_call): Moved to omp-expand.c.
863 (expand_cilk_for_call): Likewise.
864 (expand_task_call): Likewise.
865 (vec2chain): Likewise.
866 (remove_exit_barrier): Likewise.
867 (remove_exit_barriers): Likewise.
868 (optimize_omp_library_calls): Likewise.
869 (expand_omp_regimplify_p): Likewise.
870 (expand_omp_build_assign): Likewise.
871 (expand_omp_taskreg): Likewise.
872 (oacc_collapse): Likewise.
873 (expand_oacc_collapse_init): Likewise.
874 (expand_oacc_collapse_vars): Likewise.
875 (expand_omp_for_init_counts): Likewise.
876 (expand_omp_for_init_vars): Likewise.
877 (extract_omp_for_update_vars): Likewise.
878 (expand_omp_ordered_source): Likewise.
879 (expand_omp_ordered_sink): Likewise.
880 (expand_omp_ordered_source_sink): Likewise.
881 (expand_omp_for_ordered_loops): Likewise.
882 (expand_omp_for_generic): Likewise.
883 (expand_omp_for_static_nochunk): Likewise.
884 (find_phi_with_arg_on_edge): Likewise.
885 (expand_omp_for_static_chunk): Likewise.
886 (expand_cilk_for): Likewise.
887 (expand_omp_simd): Likewise.
888 (expand_omp_taskloop_for_outer): Likewise.
889 (expand_omp_taskloop_for_inner): Likewise.
890 (expand_oacc_for): Likewise.
891 (expand_omp_for): Likewise.
892 (expand_omp_sections): Likewise.
893 (expand_omp_single): Likewise.
894 (expand_omp_synch): Likewise.
895 (expand_omp_atomic_load): Likewise.
896 (expand_omp_atomic_store): Likewise.
897 (expand_omp_atomic_fetch_op): Likewise.
898 (expand_omp_atomic_pipeline): Likewise.
899 (expand_omp_atomic_mutex): Likewise.
900 (expand_omp_atomic): Likewise.
901 (oacc_launch_pack): and moved to omp-general.c, made public.
902 (OACC_FN_ATTRIB): Likewise.
903 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
905 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
907 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
908 moved to omp-general.c.
909 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
911 (oacc_fn_attrib_kernels_p): Moved to omp-general.c.
912 (oacc_fn_attrib_level): Moved to omp-offload.c.
913 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
915 (get_oacc_ifn_dim_arg): Renamed to oacc_get_ifn_dim_arg and moved to
917 (mark_loops_in_oacc_kernels_region): Moved to omp-expand.c.
918 (grid_launch_attributes_trees): Likewise.
919 (grid_attr_trees): Likewise.
920 (grid_create_kernel_launch_attr_types): Likewise.
921 (grid_insert_store_range_dim): Likewise.
922 (grid_get_kernel_launch_attributes): Likewise.
923 (get_target_argument_identifier_1): Likewise.
924 (get_target_argument_identifier): Likewise.
925 (get_target_argument_value): Likewise.
926 (push_target_argument_according_to_value): Likewise.
927 (get_target_arguments): Likewise.
928 (expand_omp_target): Likewise.
929 (grid_expand_omp_for_loop): Moved to omp-grid.c.
930 (grid_arg_decl_map): Likewise.
931 (grid_remap_kernel_arg_accesses): Likewise.
932 (grid_expand_target_grid_body): Likewise.
933 (expand_omp): Renamed to omp_expand and moved to omp-expand.c.
934 (build_omp_regions_1): Moved to omp-expand.c.
935 (build_omp_regions_root): Likewise.
936 (omp_expand_local): Likewise.
937 (build_omp_regions): Likewise.
938 (execute_expand_omp): Likewise.
939 (pass_data_expand_omp): Likewise.
940 (pass_expand_omp): Likewise.
941 (make_pass_expand_omp): Likewise.
942 (pass_data_expand_omp_ssa): Likewise.
943 (pass_expand_omp_ssa): Likewise.
944 (make_pass_expand_omp_ssa): Likewise.
945 (grid_lastprivate_predicate): Renamed to
946 omp_grid_lastprivate_predicate and moved to omp-grid.c, made public.
947 (grid_prop): Moved to omp-grid.c.
948 (GRID_MISSED_MSG_PREFIX): Likewise.
949 (grid_safe_assignment_p): Likewise.
950 (grid_seq_only_contains_local_assignments): Likewise.
951 (grid_find_single_omp_among_assignments_1): Likewise.
952 (grid_find_single_omp_among_assignments): Likewise.
953 (grid_find_ungridifiable_statement): Likewise.
954 (grid_parallel_clauses_gridifiable): Likewise.
955 (grid_inner_loop_gridifiable_p): Likewise.
956 (grid_dist_follows_simple_pattern): Likewise.
957 (grid_gfor_follows_tiling_pattern): Likewise.
958 (grid_call_permissible_in_distribute_p): Likewise.
959 (grid_handle_call_in_distribute): Likewise.
960 (grid_dist_follows_tiling_pattern): Likewise.
961 (grid_target_follows_gridifiable_pattern): Likewise.
962 (grid_remap_prebody_decls): Likewise.
963 (grid_var_segment): Likewise.
964 (grid_mark_variable_segment): Likewise.
965 (grid_copy_leading_local_assignments): Likewise.
966 (grid_process_grid_body): Likewise.
967 (grid_eliminate_combined_simd_part): Likewise.
968 (grid_mark_tiling_loops): Likewise.
969 (grid_mark_tiling_parallels_and_loops): Likewise.
970 (grid_process_kernel_body_copy): Likewise.
971 (grid_attempt_target_gridification): Likewise.
972 (grid_gridify_all_targets_stmt): Likewise.
973 (grid_gridify_all_targets): Renamed to omp_grid_gridify_all_targets
974 and moved to omp-grid.c, made public.
975 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
977 (add_decls_addresses_to_decl_constructor): Moved to omp-offload.c.
978 (omp_finish_file): Likewise.
979 (oacc_thread_numbers): Likewise.
980 (oacc_xform_loop): Likewise.
981 (oacc_default_dims, oacc_min_dims): Likewise.
982 (oacc_parse_default_dims): Likewise.
983 (oacc_validate_dims): Likewise.
984 (new_oacc_loop_raw): Likewise.
985 (new_oacc_loop_outer): Likewise.
986 (new_oacc_loop): Likewise.
987 (new_oacc_loop_routine): Likewise.
988 (finish_oacc_loop): Likewise.
989 (free_oacc_loop): Likewise.
990 (dump_oacc_loop_part): Likewise.
991 (dump_oacc_loop): Likewise.
992 (debug_oacc_loop): Likewise.
993 (oacc_loop_discover_walk): Likewise.
994 (oacc_loop_sibling_nreverse): Likewise.
995 (oacc_loop_discovery): Likewise.
996 (oacc_loop_xform_head_tail): Likewise.
997 (oacc_loop_xform_loop): Likewise.
998 (oacc_loop_process): Likewise.
999 (oacc_loop_fixed_partitions): Likewise.
1000 (oacc_loop_auto_partitions): Likewise.
1001 (oacc_loop_partition): Likewise.
1002 (default_goacc_fork_join): Likewise.
1003 (default_goacc_reduction): Likewise.
1004 (execute_oacc_device_lower): Likewise.
1005 (default_goacc_validate_dims): Likewise.
1006 (default_goacc_dim_limit): Likewise.
1007 (pass_data_oacc_device_lower): Likewise.
1008 (pass_oacc_device_lower): Likewise.
1009 (make_pass_oacc_device_lower): Likewise.
1010 (execute_omp_device_lower): Likewise.
1011 (pass_data_omp_device_lower): Likewise.
1012 (pass_omp_device_lower): Likewise.
1013 (make_pass_omp_device_lower): Likewise.
1014 (pass_data_omp_target_link): Likewise.
1015 (pass_omp_target_link): Likewise.
1016 (find_link_var_op): Likewise.
1017 (pass_omp_target_link::execute): Likewise.
1018 (make_pass_omp_target_link): Likewise.
1019 * Makefile.in (OBJS): Added omp-offload.o, omp-expand.o, omp-general.o
1021 (GTFILES): Added omp-offload.h, omp-offload.c and omp-expand.c, removed
1023 * gimple-fold.c: Include omp-general.h instead of omp-low.h.
1024 (fold_internal_goacc_dim): Adjusted calls to
1025 get_oacc_ifn_dim_arg and get_oacc_fn_dim_size to use their new names.
1026 * gimplify.c: Include omp-low.h.
1027 (omp_notice_variable): Adjust the call to get_oacc_fn_attrib to use
1029 (gimplify_omp_task): Adjusted calls to find_omp_clause to use its new
1031 (gimplify_omp_for): Likewise.
1032 * lto-cgraph.c: Include omp-offload.h instead of omp-low.h.
1033 * toplev.c: Include omp-offload.h instead of omp-low.h.
1034 * tree-cfg.c: Include omp-general.h instead of omp-low.h. Also
1035 include omp-expand.h.
1036 (make_edges_bb): Adjusted the call to make_gimple_omp_edges to use its
1038 (make_edges): Adjust the call to free_omp_regions to use its new name.
1039 * tree-parloops.c: Include omp-general.h.
1040 (create_parallel_loop): Adjusted the call to set_oacc_fn_attrib to use
1042 (parallelize_loops): Adjusted the call to get_oacc_fn_attrib to use
1044 * tree-ssa-loop.c: Include omp-general.h instead of omp-low.h.
1045 (gate_oacc_kernels): Adjusted the call to get_oacc_fn_attrib to use
1047 * tree-vrp.c: Include omp-general.h instead of omp-low.h.
1048 (extract_range_basic): Adjusted calls to get_oacc_ifn_dim_arg and
1049 get_oacc_fn_dim_size to use their new names.
1050 * varpool.c: Include omp-offload.h instead of omp-low.h.
1051 * gengtype.c (open_base_files): Replace omp-low.h with omp-offload.h in
1053 * config/nvptx/nvptx.c: Include omp-general.c.
1054 (nvptx_expand_call): Adjusted the call to get_oacc_fn_attrib to use
1056 (nvptx_reorg): Likewise.
1057 (nvptx_record_offload_symbol): Likewise.
1059 2016-12-14 Martin Sebor <msebor@redhat.com>
1062 * gimple-ssa-sprintf.c (target_dir_max): New macro.
1063 (get_mpfr_format_length): New function.
1064 (format_integer): Use HOST_WIDE_INT instead of int.
1065 (format_floating_max): Same.
1066 (format_floating): Call get_mpfr_format_length.
1067 (format_directive): Use target_dir_max.
1069 2016-12-14 Jakub Jelinek <jakub@redhat.com>
1072 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_STV_TEMP.
1073 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies,
1074 dimode_scalar_chain::convert_reg): Use SLOT_STV_TEMP instead of
1077 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
1080 * config/i386/i386-builtin.def: Add __builtin_clzs and __builtin_ctzs.
1081 (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
1082 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
1085 2016-12-14 Jakub Jelinek <jakub@redhat.com>
1088 * valtrack.c: Include rtl-iter.h.
1089 (struct rtx_subst_pair): Add insn field.
1090 (propagate_for_debug_subst): If pair->to contains at least 2
1091 regs, create a DEBUG_INSN with a debug temp before pair->insn
1092 and replace from with the debug temp instead of pair->to.
1093 (propagate_for_debug): Initialize p.insn.
1094 * combine.c (insn_uid_check): New inline function.
1095 (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
1096 (find_single_use, combine_instructions,
1097 cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
1100 2016-12-14 Martin Sebor <msebor@redhat.com>
1103 * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
1104 (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
1105 (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
1106 (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
1107 (ATTR_NOTHROW_NONNULL_1_5): Same.
1108 (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
1109 (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
1110 (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
1111 (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
1112 (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
1113 (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
1114 (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
1115 * builtins.c (validate_arg): Add argument. Treat null pointers
1116 passed to nonnull arguments as invalid.
1117 (validate_arglist): Same.
1118 * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
1119 (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
1120 (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
1121 * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
1122 (initialize_argument_information): Diagnose null pointers passed to
1123 arguments declared nonnull.
1124 * calls.h (get_nonnull_args): Declared.
1126 2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1128 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
1129 3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
1131 * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
1132 type constraint registers.
1134 (FL_CONV): New mode iterator for binary floating types that have a
1135 direct conversion from 64-bit integer to floating point.
1136 (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
1137 VEXTU{B,H,W}{L,R}X extract instructions.
1138 (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
1139 extract byte position into the GPR if we are using the
1140 VEXTU{B,H,W}{L,R}X extract instructions.
1141 (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
1142 (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
1143 we can use reg+offset address instructions.
1144 (vsx_extract_<mode>_var): Support extracts to GPRs.
1145 (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
1146 insn to combine vector extracts with zero_extend.
1147 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
1148 extracting a small integer vector element and converting it to a
1149 floating point type.
1150 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
1151 (UNSPEC_XXEXTRACTUW): New unspec.
1152 (UNSPEC_XXINSERTW): Likewise.
1153 (vextract4b): Add support for the vec_vextract4b built-in
1155 (vextract4b_internal): Likewise.
1156 (vinsert4b): Add support for the vec_insert4b built-in function.
1157 Include both a version that inserts element 1 from a V4SI object
1158 and one that inserts a DI object.
1159 (vinsert4b_internal): Likewise.
1160 (vinsert4b_di): Likewise.
1161 (vinsert4b_di_internal): Likewise.
1162 * config/rs6000/predicates.md (const_0_to_11_operand): New
1163 predicate, match 0..11.
1164 * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
1165 type to ternary, not binary.
1166 (BU_P9V_64BIT_VSX_3): Likewise.
1167 (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
1168 vec_extract4b non-overloaded built-in functions.
1169 (P9V_BUILTIN_VINSERT4B): Likewise.
1170 (P9V_BUILTIN_VINSERT4B_DI): Likewise.
1171 (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
1172 3.0 built-in functions.
1173 (P9V_BUILTIN_VEC_VEXTURX): Likewise.
1174 (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
1175 vec_insert4b and vec_extract4 built-in functions.
1176 (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
1177 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1178 overloaded support for vec_vinsert4b and vec_extract4b.
1179 * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
1180 the vec_insert4b and vec_extract4b byte number being a constant in
1182 * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
1183 and vec_extract4b built-in functions.
1184 * doc/extend.doc (PowerPC VSX built-in functions): Document
1185 vec_insert4b and vec_extract4b.
1187 2016-12-14 Martin Liska <mliska@suse.cz>
1189 * gimple-pretty-print.c (dump_probability): New function.
1190 (dump_edge_probability): Use the function.
1191 (dump_gimple_label): Likewise.
1192 (dump_gimple_bb_header): Likewise.
1194 2016-12-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1195 Jakub Jelinek <jakub@redhat.com>
1197 * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
1198 (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
1200 2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
1202 * lra-constraints.c (process_address_1): Do not attempt to decompose
1203 addresses for MEMs that satisfy fixed-form constraints.
1205 2016-12-14 Richard Biener <rguenther@suse.de>
1207 PR tree-optimization/78788
1208 * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
1209 (set_and_canonicalize_value_range): Do not drop the above to
1212 2016-12-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1214 * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
1215 Adjust unaligned load cost.
1217 2016-12-13 Uros Bizjak <ubizjak@gmail.com>
1220 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
1221 Calculate additional gain for andnot for targets without BMI.
1223 2016-12-13 Carl Love <cel@us.ibm.com>
1225 * config/rs6000/rs6000-c.c: Add built-in support for
1226 vector float vec_pack (vector double, vector double)
1227 vector double vec_sld (vector double, vector double)
1228 * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
1229 4-bit unsigned literal.
1230 * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
1231 * doc/extend.texi: Update the built-in documentation file for the
1232 new powerpc vec_pack and vec_sld built-ins.
1234 2016-12-13 Martin Liska <mliska@suse.cz>
1236 * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
1237 (sanopt_optimize): Add new argument.
1238 (sanitize_asan_mark_unpoison): New function.
1239 (maybe_contains_asan_check): Likewise.
1240 (sanitize_asan_mark_poison): Likewise.
1241 (pass_sanopt::execute): Call the new functions.
1243 2016-12-13 Martin Liska <mliska@suse.cz>
1245 PR tree-optimization/78428
1246 * expr.c (store_constructor_field): Add new arguments to the function.
1247 (store_constructor): Set up bitregion_end and add gcc_unreachable to
1248 fields that have either non-constant size or (and) offset.
1250 2016-12-13 Marek Polacek <polacek@redhat.com>
1252 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
1253 parameters' type from int to HOST_WIDE_INT.
1254 (compute_overlap_steps_for_affine_1_2): Change parameters' type from
1255 int to HOST_WIDE_INT.
1256 (build_classic_dist_vector_1): Likewise.
1257 (add_multivariate_self_dist): Likewise.
1259 2016-12-13 Michael Matz <matz@suse.de>
1261 PR tree-optimization/78725
1262 * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
1263 at correct use point.
1265 2016-12-13 Martin Liska <mliska@suse.cz>
1267 * asan.c (asan_expand_mark_ifn): Use renamed
1268 BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
1269 * sanitizer.def: Likewise.
1271 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1273 * doc/extend.texi (Half-Precision): Update to document current
1276 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1278 * doc/extend.texi (Floating Types): Document availability of
1279 _Float16 on ARM/AArch64.
1281 2016-12-13 Richard Biener <rguenther@suse.de>
1283 PR tree-optimization/78699
1284 * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
1287 2016-12-13 Richard Biener <rguenther@suse.de>
1290 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
1291 * tree-object-size.c (compute_builtin_object_size): Use
1293 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
1295 2016-12-13 Martin Liska <mliska@suse.cz>
1297 * asan.c (asan_mark_poison_p): Remove.
1298 (asan_mark_p): New function.
1299 (transform_statements): Use the function.
1300 (asan_expand_mark_ifn): Do not use masked enum.
1301 * asan.h (enum asan_mark_flags): Declare it via a macro.
1302 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
1303 argument of ASAN_MARK.
1304 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
1305 (asan_poison_variable): Likewise.
1307 2016-12-13 Jakub Jelinek <jakub@redhat.com>
1310 * ipa-pure-const.c (cdtor_p): Return true for
1311 DECL_STATIC_{CON,DE}STRUCTOR even when it is
1312 DECL_LOOPING_CONST_OR_PURE_P.
1314 2016-12-12 Jakub Jelinek <jakub@redhat.com>
1316 PR tree-optimization/78777
1317 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
1318 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
1321 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
1324 2016-12-12 Martin Sebor <msebor@redhat.com>
1328 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
1329 rather than res.bounded.
1330 (get_width_and_precision): Set precision to -1 when negative.
1331 (adjust_range_for_overflow): New function.
1332 (format_integer): Correct the handling of the space, plus, and pound
1333 flags, and the special case of zero precision.
1334 Always set res.bounded to true unless either precision or width
1335 is specified and unknown.
1336 Call adjust_range_for_overflow.
1337 Avoid use zero as the shortest value when precision is specified
1339 (format_directive): Remove vestigial quoting. Always inform of
1340 argument value or range when it's available.
1341 (add_bytes): Correct the computation of boundrange used to
1342 decide whether a warning is of a "maybe" or "defnitely" kind.
1344 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
1346 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
1348 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
1351 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
1352 flag_unsafe_math_optimizations.
1353 (X87_ENABLE_FLOAT): Ditto.
1355 2016-12-12 Marek Polacek <polacek@redhat.com>
1358 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
1359 Case 1; check POINTER_TYPE_P instead.
1361 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
1363 PR rtl-optimization/78669
1364 * ira.c (combine_and_move_insns): When deleting an insn, clear the
1365 replace flag for all used regs in that insn.
1367 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1369 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
1370 arm_arch_core_flags to ...
1371 * common/config/arm/arm-common.c: There.
1373 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
1375 * config/sparc/constraints.md (T): Use special memory constraint.
1377 (W): Add TARGET_ARCH64 test.
1378 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
1379 (*movdf_insn_sp32): Likewise.
1380 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
1381 conjunction with offsettable memory references.
1383 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
1385 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
1386 to avoid shared structure error.
1388 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1391 * config/rs6000/rs6000.c (find_alignment_op): Discard from
1392 consideration any artificial definition.
1394 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1396 * configure.ac (CROSS directory tests): Remove the assumption that
1397 Darwin hosts contain suitable target sysroots in "/".
1398 * configure: Regenerate.
1400 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1402 PR rtl-optimization/71496
1403 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
1404 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
1405 reload_macho_picbase_di): Likewise.
1407 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
1409 * config/pa/pa.c (pa_callee_copies): New function.
1410 * config/pa/pa.opt (mcaller-copies): New option.
1411 * doc/invoke.texi (mcaller-copies): Document option.
1413 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
1416 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
1417 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
1419 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
1420 constant shifts larger or equal than 32.
1422 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
1424 * config/i386/x86-64.h: Append --32 to the assembler options when
1425 -m16 is used on non-glibc systems as well.
1427 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
1430 * config/i386/mmintrin.h (__m64_u): New type
1431 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
1432 Make the allowed unaligned memory access explicit.
1434 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
1436 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
1437 Generally use cpu generic.
1439 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1440 Marc Glisse <marc.glisse@inria.fr>
1442 PR tree-optimization/78720
1443 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
1444 is negative, sign extend to @1's type and than AND with C.
1446 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1449 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
1450 non-zero low bound or non-standard element sizes.
1453 * lto-streamer-in.c (input_function): In addition to debug stmts
1454 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
1457 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1459 * config/rs6000/rs6000-passes.def: New file.
1460 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
1461 * config/rs6000/rs6000.c (rs6000_option_override): Remove
1462 registration of machine-specific passes.
1463 (pass_analyze_swaps::clone): New function.
1464 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
1466 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
1469 * ipa-cp.c (propagate_vr_accross_jump_function): Call
1470 drop_tree_overflow after fold_convert.
1472 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1475 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
1476 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
1479 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
1482 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
1483 GET_MODE_BITSIZE. Return 2.
1484 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
1485 TARGET_POPCNTD the same as TARGET_CTZ.
1486 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
1487 (ffs<mode>2): Reimplement.
1489 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
1491 PR rtl-optimization/78255
1492 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
1493 NO_FUNCTION_CSE is true.
1495 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
1498 * ipa-icf.c (sem_function::parse): Don't process functions with
1499 oacc decl attributes, as they may be OpenACC routines.
1501 2016-12-09 David Malcolm <dmalcolm@redhat.com>
1503 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
1506 2016-12-09 Nathan Sidwell <nathan@acm.org>
1509 * convert.c (convert_to_integer_1): Maybe fold conversions to
1510 integral types with fewer bits than its mode.
1512 2016-12-09 Martin Liska <mliska@suse.cz>
1514 * tree-pretty-print.c (pretty_print_string): Escape non-printable
1517 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1519 PR tree-optimization/78726
1520 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
1521 argument. For lhs uses in debug stmts, don't replace lhs with
1522 new_lhs, but with a debug temp set to new_lhs opcode op.
1523 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
1524 OP down to make_new_ssa_for_def.
1525 (zero_one_operation): Call make_new_ssa_for_all_defs even when
1526 stmts_to_fix is empty, if *def has not changed yet. Pass
1527 OPCODE to make_new_ssa_for_all_defs.
1529 2016-12-08 Martin Sebor <msebor@redhat.com>
1532 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1533 identifier tree nodes.
1534 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1535 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1536 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1537 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1538 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1539 * builtins.c (expand_builtin_alloca): Call
1540 maybe_warn_alloc_args_overflow.
1541 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1542 Add attribute alloc_size.
1543 (alloca): Add attribute alloc_size and returns_nonnull.
1544 * calls.h (maybe_warn_alloc_args_overflow): Declare.
1545 * calls.c (alloc_max_size, operand_signed_p): New functions.
1546 (maybe_warn_alloc_args_overflow): Define.
1547 (initialize_argument_information): Diagnose overflow in functions
1548 declared with attaribute alloc_size.
1549 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
1550 -Walloc-size-larger-than.
1552 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
1554 PR rtl-optimization/78671
1555 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
1558 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
1560 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
1561 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
1563 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
1566 * config/aarch64/aarch64.c (aarch64_classify_address):
1567 Set load_store_pair_p for TImode and TFmode.
1569 2016-12-08 David Malcolm <dmalcolm@redhat.com>
1571 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
1572 regno_reg_rtx resizing logic to...
1573 (emit_status::ensure_regno_capacity): ...this new method,
1574 and ensure that the buffers are large enough.
1575 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
1576 rather than ggc_vec_alloc.
1577 * function.h (emit_status::ensure_regno_capacity): New method.
1579 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
1581 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
1582 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
1583 * doc/invoke.texi (-fsanitize=kernel-address):
1584 Don't say that it enables -fsanitize-address-use-after-scope.
1586 2016-12-08 Bin Cheng <bin.cheng@arm.com>
1589 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
1590 sign bit for index step of data reference.
1592 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1594 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1595 Handle SYMBOL_SMALL_TLSGD for ILP32.
1596 * config/aarch64/aarch64.md : tlsgd_small modified into
1597 tlsgd_small_<mode> to support SImode and DImode.
1598 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
1601 2016-12-08 Andrew Pinski <apinski@cavium.com>
1603 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1604 Access the lower part of RTX appropriately.
1606 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1608 * genpreds.c (write_tm_constrs_h): Update for renaming of
1609 rtx_reader_ptr to md_reader_ptr.
1610 (write_tm_preds_h): Likewise.
1611 (write_insn_preds_c): Likewise.
1612 * read-md.c (rtx_reader_ptr): Rename to...
1613 (md_reader_ptr): ...this, and convert from an
1614 rtx_reader * to a md_reader *.
1615 (rtx_reader::set_md_ptr_loc): Rename to...
1616 (md_reader::set_md_ptr_loc): ...this.
1617 (rtx_reader::get_md_ptr_loc): Rename to...
1618 (md_reader::get_md_ptr_loc): ...this.
1619 (rtx_reader::copy_md_ptr_loc): Rename to...
1620 (md_reader::copy_md_ptr_loc): ...this.
1621 (rtx_reader::fprint_md_ptr_loc): Rename to...
1622 (md_reader::fprint_md_ptr_loc): ...this.
1623 (rtx_reader::print_md_ptr_loc): Rename to...
1624 (md_reader::print_md_ptr_loc): ...this.
1625 (rtx_reader::join_c_conditions): Rename to...
1626 (md_reader::join_c_conditions): ...this.
1627 (rtx_reader::fprint_c_condition): ...this.
1628 (rtx_reader::print_c_condition): Rename to...
1629 (md_reader::print_c_condition): ...this.
1630 (fatal_with_file_and_line): Update for renaming of
1631 rtx_reader_ptr to md_reader_ptr.
1632 (rtx_reader::require_char): Rename to...
1633 (md_reader::require_char): ...this.
1634 (rtx_reader::require_char_ws): Rename to...
1635 (md_reader::require_char_ws): ...this.
1636 (rtx_reader::require_word_ws): Rename to...
1637 (md_reader::require_word_ws): ...this.
1638 (rtx_reader::read_char): Rename to...
1639 (md_reader::read_char): ...this.
1640 (rtx_reader::unread_char): Rename to...
1641 (md_reader::unread_char): ...this.
1642 (rtx_reader::peek_char): Rename to...
1643 (md_reader::peek_char): ...this.
1644 (rtx_reader::read_name): Rename to...
1645 (md_reader::read_name): ...this.
1646 (rtx_reader::read_escape): Rename to...
1647 (md_reader::read_escape): ...this.
1648 (rtx_reader::read_quoted_string): Rename to...
1649 (md_reader::read_quoted_string): ...this.
1650 (rtx_reader::read_braced_string): Rename to...
1651 (md_reader::read_braced_string): ...this.
1652 (rtx_reader::read_string): Rename to...
1653 (md_reader::read_string): ...this.
1654 (rtx_reader::read_skip_construct): Rename to...
1655 (md_reader::read_skip_construct): ...this.
1656 (rtx_reader::handle_constants): Rename to...
1657 (md_reader::handle_constants): ...this.
1658 (rtx_reader::traverse_md_constants): Rename to...
1659 (md_reader::traverse_md_constants): ...this.
1660 (rtx_reader::handle_enum): Rename to...
1661 (md_reader::handle_enum): ...this.
1662 (rtx_reader::lookup_enum_type): Rename to...
1663 (md_reader::lookup_enum_type): ...this.
1664 (rtx_reader::traverse_enum_types): Rename to...
1665 (md_reader::traverse_enum_types): ...this.
1666 (rtx_reader::rtx_reader): Rename to...
1667 (md_reader::md_reader): ...this, and update for renaming of
1668 rtx_reader_ptr to md_reader_ptr.
1669 (rtx_reader::~rtx_reader): Rename to...
1670 (md_reader::~md_reader): ...this, and update for renaming of
1671 rtx_reader_ptr to md_reader_ptr.
1672 (rtx_reader::handle_include): Rename to...
1673 (md_reader::handle_include): ...this.
1674 (rtx_reader::handle_file): Rename to...
1675 (md_reader::handle_file): ...this.
1676 (rtx_reader::handle_toplevel_file): Rename to...
1677 (md_reader::handle_toplevel_file): ...this.
1678 (rtx_reader::get_current_location): Rename to...
1679 (md_reader::get_current_location): ...this.
1680 (rtx_reader::add_include_path): Rename to...
1681 (md_reader::add_include_path): ...this.
1682 (rtx_reader::read_md_files): Rename to...
1683 (md_reader::read_md_files): ...this.
1684 * read-md.h (class rtx_reader): Split into...
1685 (class md_reader): ...new class.
1686 (rtx_reader_ptr): Rename to...
1687 (md_reader_ptr): ...this, and convert to a md_reader *.
1688 (class noop_reader): Update base class to be md_reader.
1689 (class rtx_reader): Reintroduce as a subclass of md_reader.
1690 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
1691 (read_char): Update for renaming of rtx_reader_ptr to
1693 (unread_char): Likewise.
1694 * read-rtl.c (rtx_reader_ptr): New global.
1695 (rtx_reader::apply_iterator_to_string): Rename to...
1696 (md_reader::apply_iterator_to_string): ...this.
1697 (rtx_reader::copy_rtx_for_iterators): Rename to...
1698 (md_reader::copy_rtx_for_iterators): ...this.
1699 (rtx_reader::read_conditions): Rename to...
1700 (md_reader::read_conditions): ...this.
1701 (rtx_reader::record_potential_iterator_use): Rename to...
1702 (md_reader::record_potential_iterator_use): ...this.
1703 (rtx_reader::read_mapping): Rename to...
1704 (md_reader::read_mapping): ...this.
1705 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
1707 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
1708 than directly accessing m_string_obstack.
1709 (rtx_reader::rtx_reader): New ctor.
1710 (rtx_reader::~rtx_reader): New dtor.
1712 2016-12-07 Martin Sebor <msebor@redhat.com>
1718 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
1720 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
1721 (check_memop_sizes): Same.
1722 (expand_builtin_memcpy): Call check memop_sizes.
1723 (expand_builtin_mempcpy): Same.
1724 (expand_builtin_memset): Same,
1725 (expand_builtin_bzero): Same.
1726 (expand_builtin_memory_chk): Call check_sizes.
1727 (expand_builtin_strcpy): Same.
1728 (expand_builtin_strncpy): Same.
1729 (maybe_emit_sprintf_chk_warning): Same.
1730 (expand_builtin): Handle strcat and strncat.
1731 (fini_object_sizes): Reset pointers.
1732 (compute_object_size): New function.
1733 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1734 Avoid issuing warnings also issued during built-in expansion.
1735 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
1737 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1740 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
1741 V2DImode elements are SUBREG's convert the result into DImode
1742 rather than failing in emit_move_insn.
1744 2016-12-07 Jakub Jelinek <jakub@redhat.com>
1746 * builtins.c (fold_builtin_strstr): Removed.
1747 (fold_builtin_2): Don't call fold_builtin_strstr.
1748 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
1749 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
1750 (gimple_fold_builtin_strstr): New function.
1751 (gimple_fold_builtin): Call it.
1752 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
1755 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
1756 var to lhs of new_stmt right before noreturn handling rather than to
1757 lhs of e->call_stmt early.
1759 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1761 * read-md.c (rtx_reader::require_char): New method.
1762 (require_char_ws): Convert from function to...
1763 (rtx_reader::require_char_ws): ...method.
1764 (rtx_reader::require_word_ws): New method.
1765 * read-md.h (rtx_reader::require_char): New method decl.
1766 (require_char_ws): Remove global decl in favor of...
1767 (rtx_reader::require_char_ws): ...new method decl.
1768 (rtx_reader::require_word_ws): New method decl.
1769 (rtx_reader::peek_char): New method decl.
1771 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1773 PR rtl-optimization/78617
1774 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
1775 registers, also setting hard registers mapped to pseudo registers.
1777 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1779 * cfgexpand.c (pass_expand::execute): Move stack initializations
1780 to rtl_data::init_stack_alignment and call it.
1781 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
1782 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
1784 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1786 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
1787 (ira): Move initialization of crtl->is_leaf earlier.
1789 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1791 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
1792 (movtf_aarch64): Likewise.
1793 * config/aarch64/aarch64.c (aarch64_classify_address):
1794 Use correct intersection of offsets.
1795 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
1796 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
1797 Use 7-bit signed scaled mode for modes > 16 bytes.
1799 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
1801 PR rtl-optimization/78561
1802 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
1803 constant_pool_empty_p in place of get_pool_size_upper_bound.
1804 (rs6000_stack_info): Likewise.
1805 (rs6000_emit_prologue): Likewise.
1806 (rs6000_elf_declare_function_name): Likewise.
1807 (rs6000_set_up_by_prologue): Likewise.
1808 (rs6000_can_eliminate): Likewise.
1809 * output.h (get_pool_size_upper_bound): Delete.
1810 (constant_pool_empty_p): New.
1811 * varasm.c (get_pool_size_upper_bound): Delete
1812 (constant_pool_empty_p): New.
1814 2016-12-07 Bin Cheng <bin.cheng@arm.com>
1816 PR tree-optimization/78691
1817 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
1818 Require integral type for the outer expression.
1820 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1822 * config/aarch64/aarch64.c
1823 (aarch64_builtin_support_vector_misalignment): New.
1824 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
1826 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1829 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
1830 Conditionalize the string comparison on Pmode == DImode.
1832 2016-12-06 Tom de Vries <tom@codesourcery.com>
1834 PR tree-optimization/67955
1835 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
1836 (stmt_kills_ref_p): Use it.
1838 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1841 * calls.c (expand_call): Move back call to prepare_call_address.
1843 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1846 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
1847 ?* constraints for the ISA 3.0 patterns, so the register allocator
1848 is more likely to allocate QImode/HImode to vector registers for
1849 conversion to floating point unless a reload is needed.
1850 (zero_extendhi<mode>2): Likewise.
1851 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
1852 first alternative which is converting QImode/HImode to floating
1853 point and the QImode/HImode value is in a vector register, and
1854 does not allocate the second pseudo register. Remove zero
1855 extending into traditional floating point registers, since the
1856 instruction used only works on traditional altivec registers.
1857 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1859 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1861 * config/i386/i386.c: Include print-rtl.h.
1862 (selftest::ix86_test_dumping_memory_blockage): New function.
1863 (selftest::ix86_run_selftests): Call it.
1864 * print-rtl-function.c (print_rtx_function): Create an
1865 rtx_reuse_manager and use it.
1866 * print-rtl.c: Include "rtl-iter.h".
1867 (rtx_writer::rtx_writer): Add reuse_manager param.
1868 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
1869 (uses_rtx_reuse_p): New function.
1870 (rtx_reuse_manager::preprocess): New function.
1871 (rtx_reuse_manager::has_reuse_id): New function.
1872 (rtx_reuse_manager::seen_def_p): New function.
1873 (rtx_reuse_manager::set_seen_def): New function.
1874 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
1875 prefix the first time in_rtx is seen, and print reuse_rtx
1877 (print_inline_rtx): Supply NULL for new reuse_manager param.
1878 (debug_rtx): Likewise.
1879 (print_rtl): Likewise.
1880 (print_rtl_single): Likewise.
1881 (rtx_writer::print_rtl_single_with_indent): Likewise.
1882 * print-rtl.h: Include bitmap.h when building for host.
1883 (rtx_writer::rtx_writer): Add reuse_manager param.
1884 (rtx_writer::m_rtx_reuse_manager): New field.
1885 (class rtx_reuse_manager): New class.
1886 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
1887 param and use it when constructing rtx_writer.
1888 (selftest::test_dumping_rtx_reuse): New function.
1889 (selftest::rtl_tests_c_tests): Call it.
1890 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
1891 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
1892 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
1893 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
1895 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
1898 * lra-lives.c (process_bb_lives): Update biggest mode for
1899 implicitly used hard reg.
1901 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
1903 * config/i386/predicates.md (general_gr_operand): New predicate.
1904 * config/i386/i386.md (TImode and DImode push_operand splitter):
1905 Use general_gr_operand. Macroize using DWI mode macro.
1906 (TImode and DImode nonimmediate_operand splitter): Use
1907 nonimmediate_gr_operand and general_gr_operand. Macroize using
1909 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
1910 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
1911 and general_gr_operand.
1912 (XFmode nonimmediate_operand splitter): Ditto.
1913 (DFmode nonimmediate_operand splitter): Ditto.
1914 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
1916 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1918 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
1919 alphabetical order with respect to other ARMv8 processors.
1920 * config/arm/arm-tables.opt: Regenerate.
1921 * config/arm/arm-tune.md: Likewise.
1923 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
1925 * config/mips/mips.c (mips_expand_builtin_insn): Check input
1926 ranges of literal integer arguments.
1928 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1931 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
1932 destroy_predicate_vecs.
1933 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
1935 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1938 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
1939 argument type to a pred_chain.
1940 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
1942 (flatten_out_predicate_chains): Remove.
1943 (uninit_uses_cannot_happen): Rename from
1944 uninit_ops_invalidate_phi_use.
1945 Change logic so that we are checking that the PHI use will
1946 invalidate _ALL_ possibly uninitialized operands.
1947 (is_use_properly_guarded): Rename call to
1948 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
1950 2016-12-06 Tamar Christina <tamar.christina@arm.com>
1952 * gcc/config/aarch64/arm_neon.h
1953 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
1954 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
1955 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
1956 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
1957 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
1958 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
1959 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
1960 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
1961 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
1962 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
1963 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
1964 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
1965 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
1966 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
1968 2016-12-06 Jakub Jelinek <jakub@redhat.com>
1971 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
1972 plus offset is non-zero. For maybe_nonzero_address decl base0,
1973 require indirect_base0.
1976 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
1977 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
1978 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
1979 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
1980 and arguments have no side-effects, return 0.
1981 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
1984 * fold-const-call.c (fold_const_call): Handle
1985 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
1987 PR tree-optimization/78675
1988 * tree-vect-loop.c (vectorizable_live_operation): For
1989 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
1990 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
1992 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1995 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
1996 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
1997 (copy_insn_1) <CLOBBER>: Likewise.
1999 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2002 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
2003 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
2004 comparing signed to unsigned values.
2005 (FUNCTION_ARG_REGNO_P): Likewise.
2007 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2008 Stefan Freudenberger <stefan@reservoir.com>
2010 PR tree-optimization/78646
2011 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
2012 addition used for the memory base expression should have the type
2015 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
2018 * config.gcc (*-*-uclinux*): Enable posix threads.
2020 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
2022 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
2023 * config/i386/avx512dqintrin.h: Ditto.
2024 * config/i386/avx512fintrin.h: Ditto.
2025 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
2026 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
2027 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
2028 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
2029 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
2030 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
2032 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
2033 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
2034 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
2035 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
2036 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
2037 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
2038 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
2039 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
2040 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
2042 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
2044 * combine.c: Revert r243162.
2046 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
2048 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
2049 X tests a single bit.
2051 2016-12-05 Nathan Sidwell <nathan@acm.org>
2053 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
2054 (diagnostic_action_after_output): ... here.
2055 (diagnostic_report_diagnostic): Call it for non-notes.
2056 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
2057 (diagnostic_check_max_errors): Declare.
2059 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
2061 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
2062 (ENDFILE_SPEC): Likewise.
2064 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
2066 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
2067 * config/arc/arc.c (arc_unspec_offset): New function.
2068 (arc_finalize_pic): Change.
2069 (arc_emit_call_tls_get_addr): Likewise.
2070 (arc_legitimize_tls_address): Likewise.
2071 (arc_legitimize_pic_address): Likewise.
2072 (insn_is_tls_gd_dispatch): Remove.
2073 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
2074 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
2075 (tls_gd_dispatch): Likewise.
2077 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
2079 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
2082 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
2084 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
2085 (sparc_split_reg_mem_legitimate): ...this.
2086 (sparc_split_reg_mem): Declare.
2087 (sparc_split_mem_reg): Likewise.
2088 (sparc_split_regreg_legitimate): Rename to...
2089 (sparc_split_reg_reg_legitimate): ...this.
2090 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
2091 (sparc_split_reg_mem_legitimate): ...this.
2092 (sparc_split_reg_mem): New function.
2093 (sparc_split_mem_reg): Likewise.
2094 (sparc_split_regreg_legitimate): Rename to...
2095 (sparc_split_reg_reg_legitimate): ...this.
2096 (sparc_split_reg_reg): New function.
2097 * config/sparc/sparc.md (lra): Remove "none" value.
2098 (enabled): Adjust to above change.
2099 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
2100 (DImode splitters): Adjust to above renamings and use new functions.
2101 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
2102 (DFmode splitters): Adjust to above renamings and use new functions.
2103 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
2104 constraint in conjunction with e.
2105 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
2106 alternative and reorder others.
2107 (VM64:mode splitters): Adjust to above renamings and use new functions.
2109 2016-12-04 Martin Sebor <msebor@redhat.com>
2112 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
2113 identifier tree nodes.
2114 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
2115 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
2116 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
2117 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
2118 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
2119 * builtins.def (aligned_alloc, calloc, malloc, realloc):
2120 Add attribute alloc_size.
2121 (alloca): Add attribute alloc_size and returns_nonnull.
2123 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
2126 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
2127 (dimode_scalar_chain::compute_convert_gain): Ditto.
2128 (dimode_scalar_chain::convert_insn): Ditto.
2130 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
2132 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
2133 cases to build a lowpart SUBREG.
2135 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
2136 David S. Miller <davem@davemloft.net>
2138 * config/sparc/constraints.md (U): Adjust comment.
2139 * config/sparc/sparc.md (lra): New attribute.
2140 (enabled): For base instructions, if the lra attribute is set,
2141 return 1 if it is in keeping with TARGET_LRA.
2142 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
2143 constraint and duplicate them with U replaced by r.
2144 (*movdf_insn_sp32): Likewise.
2145 (*mov<VM64:mode>_insn_sp32): Likewise.
2146 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
2148 2016-12-02 Jeff Law <law@redhat.com>
2150 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
2151 variable main_variant.
2153 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2155 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
2156 default on PowerPC linux systems.
2158 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
2160 PR rtl-optimization/78638
2161 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
2162 GET_MODE (op). Fix this.
2164 2016-12-02 David Malcolm <dmalcolm@redhat.com>
2167 * selftest.c (selftest::assert_strndup_eq): Rename to...
2168 (selftest::assert_xstrndup_eq): ...this, and remove call to
2170 (selftest::test_strndup): Rename to...
2171 (selftest::test_xstrndup): ...this, updating for above renaming.
2172 (selftest::test_libiberty): Update for renaming.
2174 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2177 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
2178 subversion id 242679 that causes the wrong store instruction to be
2179 generated if a DImode is in an Altivec register using REG+REG
2182 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
2185 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
2186 and corresponding post-reload splitter.
2188 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2190 * config/aarch64/aarch64.h (machine_function): Add
2191 reg_is_wrapped_separately field.
2192 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
2193 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
2195 (aarch64_save_callee_saves): Don't save registers that are wrapped
2197 (aarch64_restore_callee_saves): Don't restore registers that are
2199 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
2200 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
2201 (aarch64_get_separate_components): New function.
2202 (aarch64_get_next_set_bit): Likewise.
2203 (aarch64_components_for_bb): Likewise.
2204 (aarch64_disqualify_components): Likewise.
2205 (aarch64_emit_prologue_components): Likewise.
2206 (aarch64_emit_epilogue_components): Likewise.
2207 (aarch64_set_handled_components): Likewise.
2208 (aarch64_process_components): Likewise.
2209 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
2210 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
2211 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
2212 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
2213 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
2214 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
2216 2016-12-02 Martin Jambor <mjambor@suse.cz>
2218 * passes.def: Move pass_rebuild_cgraph_edges to the end of
2219 pass_build_ssa_passes.
2221 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
2223 * config/alpha/alpha.md (exception_receiver): Copy
2224 alpha_gp_ave_rtx return value.
2226 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
2228 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
2229 for several include directories that may be relative to sysroot.
2230 * config/i386/x-mingw32 (gplus_includedir): Define.
2231 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
2232 (native_system_includedir): Likewise.
2233 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
2234 override if TARGET_SYSTEM_ROOT is defined.
2235 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
2237 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2240 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
2241 (dimode_scalar_chain::compute_convert_gain): Likewise.
2242 (dimode_scalar_chain::convert_insn): Likewise.
2243 * config/i386/i386.md (*one_cmpldi2_doubleword): New
2244 define_insn_and_split.
2245 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
2248 * rtl.c (copy_rtx): Don't clear used flag here.
2249 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
2251 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
2252 'E' in format, copy all vectors.
2253 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
2254 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2255 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
2257 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2258 Thomas Preud'homme <thomas.preudhomme@arm.com>
2260 * config/arm/arm-builtins.c (arm_builtins): Define
2261 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
2262 (bdesc_2arg): Add line for cmse_nonsecure_caller.
2263 (arm_init_builtins): Handle cmse_nonsecure_caller.
2264 (arm_expand_builtin): Likewise.
2265 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
2267 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2268 Thomas Preud'homme <thomas.preudhomme@arm.com>
2270 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
2271 (cmse_nonsecure_call_clear_caller_saved): New.
2272 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
2273 (arm_function_ok_for_sibcall): Disable sibcalls for
2274 cmse_nonsecure_call.
2275 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
2276 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
2277 (call_value): Likewise.
2278 (nonsecure_call_internal): New.
2279 (nonsecure_call_value_internal): New.
2280 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
2281 (*nonsecure_call_value_reg_thumb1_v5): New.
2282 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
2283 (*nonsecure_call_value_reg_thumb2): New.
2284 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
2286 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2287 Thomas Preud'homme <thomas.preudhomme@arm.com>
2289 * config/arm/arm.c (gimplify.h): New include.
2290 (arm_handle_cmse_nonsecure_call): New.
2291 (arm_attribute_table): Added cmse_nonsecure_call.
2292 (arm_comp_type_attributes): Deny compatibility of function types
2293 with without the cmse_nonsecure_call attribute.
2294 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2296 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2297 Thomas Preud'homme <thomas.preudhomme@arm.com>
2299 * config/arm/arm.c (output_return_instruction): Clear
2301 (thumb2_expand_return): Likewise.
2302 (thumb1_expand_epilogue): Likewise.
2303 (thumb_exit): Likewise.
2304 (arm_expand_epilogue): Likewise.
2305 (cmse_nonsecure_entry_clear_before_return): New.
2306 (comp_not_to_clear_mask_str_un): New.
2307 (compute_not_to_clear_mask): New.
2308 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
2309 * config/arm/thumb2.md (*thumb2_return): Disable for
2310 cmse_nonsecure_entry functions.
2311 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
2312 cmse_nonsecure_entry functions.
2314 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2315 Thomas Preud'homme <thomas.preudhomme@arm.com>
2317 * config/arm/arm.c (use_return_insn): Change to return with bxns
2318 when cmse_nonsecure_entry.
2319 (output_return_instruction): Likewise.
2320 (arm_output_function_prologue): Likewise.
2321 (thumb_pop): Likewise.
2322 (thumb_exit): Likewise.
2323 (thumb2_expand_return): Assert that entry functions always have simple
2325 (arm_expand_epilogue): Handle entry functions.
2326 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
2327 (arm_asm_declare_function_name): New.
2328 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
2329 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
2330 use arm_asm_declare_function_name.
2332 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2333 Thomas Preud'homme <thomas.preudhomme@arm.com>
2335 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
2336 (arm_attribute_table): Added cmse_nonsecure_entry
2337 (arm_compute_func_type): Handle cmse_nonsecure_entry.
2338 (cmse_func_args_or_return_in_stack): New.
2339 (arm_handle_cmse_nonsecure_entry): New.
2340 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
2341 (IS_CMSE_ENTRY): Likewise.
2342 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2344 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2345 Thomas Preud'homme <thomas.preudhomme@arm.com>
2347 * config.gcc (extra_headers): Added arm_cmse.h.
2348 * config/arm/arm-arches.def (ARM_ARCH):
2349 (armv8-m): Add FL2_CMSE.
2350 (armv8-m.main): Likewise.
2351 (armv8-m.main+dsp): Likewise.
2352 * config/arm/arm-c.c
2353 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
2354 * config/arm/arm-flags.h: Define FL2_CMSE.
2355 * config/arm.c (arm_arch_cmse): New.
2356 (arm_option_override): New error for unsupported cmse target.
2357 * config/arm/arm.h (arm_arch_cmse): New.
2358 * config/arm/arm.opt (mcmse): New.
2359 * config/arm/arm_cmse.h: New file.
2360 * doc/invoke.texi (ARM Options): Add -mcmse.
2361 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
2362 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
2364 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2366 * config/avr/avr.c: Fix coding rule glitches.
2368 2016-12-02 Martin Jambor <mjambor@suse.cz>
2370 * hsa.c (hsa_callable_function_p): Return false for artificial
2373 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2375 PR rtl-optimization/78561
2376 * varasm.c (recompute_pool_offsets): New.
2377 (output_constant_pool): Call it.
2379 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2381 PR rtl-optimization/78561
2382 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
2383 get_pool_size to get_pool_size_upper_bound.
2384 (rs6000_stack_info): Likewise.
2385 (rs6000_emit_prologue): Likewise.
2386 (rs6000_elf_declare_function_name): Likewise.
2387 (rs6000_set_up_by_prologue): Likewise.
2388 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
2389 * output.h (get_pool_size): Rename to...
2390 (get_pool_size_upper_bound): ...This.
2391 * varasm.c (get_pool_size): Rename to...
2392 (get_pool_size_upper_bound): ...This.
2394 2016-12-02 Bin Cheng <bin.cheng@arm.com>
2396 * match.pd: Add new pattern:
2397 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
2399 2016-12-02 Nathan Sidwell <nathan@acm.org>
2401 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
2404 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
2407 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
2410 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2412 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
2415 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2417 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
2418 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
2419 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
2420 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
2421 avr_mcu_types.flash_size to compute default value.
2422 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
2423 mcu->flash_size to compute value for spec.
2425 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2427 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
2428 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
2429 about linker description to avoid progmem altogether.
2430 [absdata]: Point to -mabsdata option.
2432 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2434 PR rtl-optimization/78547
2435 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
2436 DECL_INCOMING_RTL is not shared.
2437 * config/i386/i386.c (convert_scalars_to_vectors): If any
2438 insns have been converted, adjust all parameter's DEC_RTL and
2439 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
2442 PR rtl-optimization/78575
2443 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
2444 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
2445 if not already wrapped in a subreg. Make sure df_insn_rescan does not
2446 affect further iterations.
2448 2016-12-02 Martin Liska <mliska@suse.cz>
2451 * sreal.c (sreal::to_int): Make absolute value before shifting.
2452 (sreal::operator/): Likewise.
2453 (sreal_verify_negative_division): New test.
2454 (void sreal_c_tests): Call the new test.
2455 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
2457 (sreal::normalize_down): Likewise.
2459 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2461 * combine.c (combine_simplify_rtx): Suppress replacement of
2462 "(and (reg) (const_int bit))" with "if_then_else".
2464 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2467 * config/s390/s390.md ("extzv")
2468 ("*extzv<mode><clobbercc_or_nocc>")
2469 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
2470 ("*<risbg_n>_ior_and_sr_ze")
2471 ("*extract1bitdi<clobbercc_or_nocc>")
2472 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
2473 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
2474 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
2475 to validate the arguments of zero_extract and sign_extract.
2477 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2480 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
2482 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2484 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
2486 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
2489 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2491 * config/s390/vector.md (vec_halfhalf): New mode iterator.
2492 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
2493 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
2494 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
2495 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
2496 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
2497 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
2498 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
2499 ("vec_unpacku_lo_v4si"): New pattern definitions.
2500 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
2503 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2505 * config/s390/s390-protos.h (s390_reverse_condition): New
2507 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
2509 (s390_reverse_condition): New function.
2510 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
2513 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2515 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
2516 (CCVHUANY): Remove modes.
2517 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
2519 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
2520 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
2522 (s390_branch_condition_mask): Adjust to use the new cc consumer
2523 modes. The new modes allow for proper reversal in the middle-end.
2524 (s390_expand_vec_compare_cc): Determine the proper cc producer and
2525 consumer modes for a comparison.
2526 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
2527 throughout the file.
2528 * config/s390/vx-builtins.md: Likewise.
2530 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
2532 * asan.c (asan_global_struct): Refactor.
2533 (create_odr_indicator): New function.
2534 (asan_needs_odr_indicator_p): Likewise.
2535 (is_odr_indicator): Likewise.
2536 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
2538 (asan_protect_global): Do not protect odr indicators.
2540 2016-12-01 Jeff Law <law@redhat.com>
2542 * tree-ssa-threadedge.c
2543 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
2544 propagation of operands if there are no operands.
2546 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2548 PR tree-optimization/78586
2549 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
2550 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
2551 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
2552 type is INTEGER_TYPE or POINTER_TYPE.
2554 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2557 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
2558 (vextuhrx): Likewise.
2559 (vextuwlx): Likewise.
2560 (vextuwrx): Likewise.
2562 2016-12-01 David Malcolm <dmalcolm@redhat.com>
2564 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
2565 early_dwarf_finished.
2567 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
2568 David S. Miller <davem@davemloft.net>
2570 * config/sparc/sparc.opt (mlra): New target option.
2571 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
2572 (sparc_lra_p): ...this. New function.
2573 (D_MODES, DF_MODES): Add missing cast.
2574 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2575 provide these insns when flag_pic.
2576 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
2577 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
2578 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
2579 embmedany_textulo, embmedany_textlo): Likewise.
2580 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
2582 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
2586 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
2588 2016-12-01 Richard Biener <rguenther@suse.de>
2589 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2591 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
2592 memset if len-oldlen != 0.
2593 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
2595 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
2597 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
2599 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2601 * config/avr/avr.c: Fix coding rule glitches.
2603 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2605 PR tree-optimization/78598
2606 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
2609 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2611 PR rtl-optimization/78596
2612 * combine.c (simplify_comparison): Cast to unsigned to avoid
2613 left shifting of negative value.
2615 2016-12-01 Matthias Klose <doko@ubuntu.com>
2617 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
2619 2016-12-01 Richard Biener <rguenther@suse.de>
2621 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
2622 treat arrays with same type as objects that cannot overlap.
2624 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2626 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
2627 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
2628 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
2630 2016-12-01 Jakub Jelinek <jakub@redhat.com>
2633 * dwarf2out.c (loc_descr_plus_const): For negative offset use
2634 uint_loc_descriptor instead of int_loc_descriptor and perform negation
2635 in unsigned HOST_WIDE_INT type.
2636 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
2639 * config/rs6000/rs6000.c (rs6000_frame_related): Call
2640 set_used_flags (pat) before any simplifications. Clear used flag on
2641 PARALLEL copy. Don't guard add_reg_note call. Call
2642 copy_rtx_if_shared on pat before storing it into
2643 REG_FRAME_RELATED_EXPR.
2645 2016-12-01 Alan Modra <amodra@gmail.com>
2647 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
2648 look inside UNSPEC_VSX_XXSPLTW vec.
2650 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2652 PR rtl-optimization/78607
2653 * combine.c (try_combine): Emit a barrier after a unconditional trap.
2655 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2658 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
2659 element is not a constant or in a register, force it to a
2663 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
2664 that will be set to a vector element to be in a register.
2665 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
2666 the wrong multiplier to convert the element number to a byte
2669 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
2671 PR tree-optimization/77856
2672 * lra-constraints.c (inherit_in_ebb): Check original regno for
2673 invalid invariant regs too. Set only clobbered hard regs for the
2674 invalid invariant regs.
2676 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
2678 Commit files forgotten in r242966.
2680 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
2681 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
2682 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
2683 prefix check to find wrap-around value, instead use MCU flash size.
2684 For 8k flash devices, update link_pmem_wrap spec string to
2685 add --pmem-wrap-around=8k.
2686 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
2688 (LINK_SPEC): ...to here.
2690 2016-11-30 David Malcolm <dmalcolm@redhat.com>
2693 * selftest.c (selftest::assert_strndup_eq): New function.
2694 (selftest::test_strndup): New function.
2695 (selftest::test_libiberty): New function.
2696 (selftest::selftest_c_tests): Call test_libiberty.
2698 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2700 PR rtl-optimization/78610
2701 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
2704 2016-11-30 Bin Cheng <bin.cheng@arm.com>
2706 PR tree-optimization/78574
2707 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
2708 header PHI that doesn't define biv.
2710 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2712 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
2715 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
2716 sharing the SUBREG rtx between move and following insn.
2718 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
2719 for REG_EQUIV argument.
2721 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
2723 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
2725 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2728 * real.c (real_hash): Add cast to avoid left
2729 shifting of negative values.
2731 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2734 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
2735 from a subreg in operands[1] and don't call REGNO on a non-reg
2736 expression when deciding to force operands[2] into a reg.
2738 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
2739 Andrew Burgess <andrew.burgess@embecosm.com>
2741 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
2742 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
2743 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
2744 * config/arc/arc700.md: Add define_bypass for store/load.
2746 2016-11-30 Martin Liska <mliska@suse.cz>
2748 * cgraph.c (symbol_table::initialize): Initialize
2749 ipa_clones_dump_file.
2750 (cgraph_node::remove): Report to ipa_clones_dump_file.
2751 * cgraph.h: Add new argument (suffix) to cloning methods.
2752 * cgraphclones.c (dump_callgraph_transformation): New function.
2753 (cgraph_node::create_clone): New argument.
2754 (cgraph_node::create_virtual_clone): Likewise.
2755 (cgraph_node::create_version_clone): Likewise.
2756 * dumpfile.c: Add .ipa-clones dump file.
2757 * dumpfile.h (enum tree_dump_index): Add TDI_clones
2758 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
2759 to dump_callgraph_transformation.
2761 2016-11-30 Martin Liska <mliska@suse.cz>
2764 * asan.c (asan_expand_mark_ifn): Properly
2765 select a VAR_DECL from FRAME.* component reference.
2767 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2769 PR rtl-optimization/78583
2770 * simplify-rtx.c (simplify_truncation): Add check missing from the
2773 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2775 PR rtl-optimization/78590
2776 * combine.c (change_zero_ext): Transform zero_extend of subregs only
2777 if the subreg_reg is a scalar integer mode.
2779 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2781 PR tree-optimization/78586
2782 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
2783 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
2784 Don't build_int_cst min/max twice. Formatting fix.
2786 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2788 PR rtl-optimization/78588
2789 * combine.c (if_then_else_cond): Also guard against BLKmode.
2790 * rtlanal.c (num_sign_bit_copies1): Add assert.
2792 2016-11-29 Jeff Law <law@redhat.com>
2794 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
2797 * lra-constraints.c (check_and_process_move): Constrain the
2798 range of DCLASS and SCLASS to avoid false positive out of bounds
2799 array index warning.
2801 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2803 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
2805 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2807 PR preprocessor/78569
2808 * input.c (get_substring_ranges_for_loc): Fail gracefully if
2809 line directives were present.
2811 2016-11-30 Matthias Klose <doko@ubuntu.com>
2813 * doc/install.texi: Document configure options --enable-objc-gc
2814 and --with-target-bdw-gc.
2816 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2819 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
2820 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
2821 residing in traditional altivec registers can be stored
2824 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
2827 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
2828 overhead loop start between a call and its CALL_ARG_LOCATION
2831 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
2833 * config/bfin/linux.h (CPP_SPEC): Define.
2835 2016-11-29 Martin Sebor <msebor@redhat.com>
2837 PR tree-optimization/78512
2838 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
2839 * config/rs6000/linux.h: Same.
2840 * config/rs6000/linux64.h: Same.
2841 * config/sol2.h: Same.
2842 * config/sol2.c (solaris_printf_pointer_format): Remove.
2843 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
2844 * doc/tm.texi: Regenerate.
2845 * gimple-ssa-sprintf.c (format_pointer): Rempove.
2846 (pass_sprintf_length::compute_format_length): Return bool.
2847 (pass_sprintf_length::handle_gimple_call): Adjust.
2848 * target.def (printf_pointer_format): Remove.
2849 * targhooks.c (default_printf_pointer_format): Remove.
2850 (linux_printf_pointer_format): Same.
2851 * targhooks.h (default_printf_pointer_format): Remove.
2852 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
2854 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
2856 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
2858 (SWI1248_AVX512BWDQ): Ditto.
2859 (SWI1248_AVX512BW): Ditto.
2860 (k<any_logic:code><mode>): Ditto.
2861 (kandn<mode>): Ditto.
2862 (kxnor<mode>): Ditto.
2863 (knot<mode>): Ditto.
2864 (*k<any_lshift:code><mode>): Ditto.
2865 (kortestzhi, kortestchi): Ditto.
2866 (kunpckhi, kunpcksi, kunpckdi): Ditto.
2868 2016-11-29 Andrew Pinski <apinski@cavium.com>
2870 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
2873 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
2876 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
2877 to stack before call mcount.
2878 (tilegx_can_use_return_insn_p): Clean up code.
2880 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2882 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
2884 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2890 * spellcheck.c (selftest::test_find_closest_string): Verify that
2891 we don't offer the goal string as a suggestion.
2892 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
2893 offer the goal string as a suggestion.
2896 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2898 * config/arc/arc.c (arc_override_options): Avoid selection of
2899 compact casesi for ARCv2.
2901 2016-11-29 Richard Biener <rguenther@suse.de>
2903 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
2904 PHIs after a regular stmt.
2905 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
2908 2016-11-29 Martin Liska <mliska@suse.cz>
2910 PR gcov-profile/78582
2911 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
2912 to prevent PHI argument clash.
2914 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2916 * config/arc/arc.opt (marclinux): Fix typo.
2917 (marclinux_prof): Likewise.
2919 2016-11-29 Jiong Wang <jiong.wang@arm.com>
2921 * target.def (stack_protect_runtime_enabled_p): New.
2922 * function.c (expand_function_end): Guard stack_protect_epilogue with
2923 targetm.stack_protect_runtime_enabled_p.
2924 * cfgexpand.c (pass_expand::execute): Likewise.
2925 * calls.c (expand_call): Likewise.
2926 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
2927 * doc/tm.texi: Regenerate.
2929 2016-11-29 Richard Biener <rguenther@suse.de>
2932 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
2934 2016-11-29 Janus Weil <janus@gcc.gnu.org>
2936 * doc/contrib.texi: Add a few missing gfortran contributors.
2938 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2940 * combine.c (change_zero_ext): Also handle extends from a subreg
2941 to a mode bigger than that of the operand of the subreg.
2943 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2946 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
2947 stack_restore_tie insn instead of stack_tie, for the SVR4 and
2949 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
2951 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2953 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
2954 head_components and tail_components.
2955 (spread_components): New algorithm.
2956 (emit_common_tails_for_components): Clear head_components and
2958 (insert_prologue_epilogue_for_components): Write extra output to the
2959 dump file for sibcalls and abnormal exits.
2961 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2963 PR rtl-optimization/78342
2964 * combine.c: Include "cfghooks.h".
2965 (try_combine): If we create an unconditional trap, break the basic
2966 block in two just after it, and remove the edge between; also, set
2967 the *new_direct_jump_p flag so that cleanup_cfg is run.
2969 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2971 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
2974 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2976 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
2977 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
2978 output template string.
2979 (*anddi_1): Use multi-line output template string.
2982 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2985 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
2986 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
2987 note has been removed.
2988 * postreload.c (reload_combine_recognize_pattern): If
2989 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
2991 2016-11-28 Martin Sebor <msebor@redhat.com>
2994 * gimple-ssa-sprintf.c (target_max_value): Remove.
2995 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
2996 (get_width_and_precision): New function.
2997 (format_integer, format_floating, get_string_length, format_string):
2998 Correct handling of width and precision with unknown value.
2999 (format_directive): Add warning.
3000 (pass_sprintf_length::compute_format_length): Allow for precision
3001 to consist of a sole period with no asterisk or digits after it.
3003 2016-11-28 Jakub Jelinek <jakub@redhat.com>
3005 PR rtl-optimization/78546
3006 * simplify-rtx.c (neg_const_int): When negating most negative
3007 number in mode wider than HOST_BITS_PER_WIDE_INT, use
3008 simplify_const_unary_operation to produce CONST_DOUBLE or
3010 (simplify_plus_minus): Handle the case where neg_const_int
3011 doesn't return a CONST_INT.
3013 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
3016 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
3017 left shifting of negative values.
3019 2016-11-28 Jakub Jelinek <jakub@redhat.com>
3022 * tree-nested.c (convert_local_reference_stmt): After adding
3023 shared (FRAME.NN) clause to omp parallel, task or target,
3024 add it also to all outer omp parallel, task or target constructs.
3026 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
3028 * config/i386/i386.md (UNSPEC_KMASKOP): New.
3029 (UNSPEC_KMOV): Remove.
3030 (kmovw): Expand to plain HImode move.
3031 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
3032 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
3033 Remove corresponding clobber-removing splitter.
3034 (*anddi_1): Remove mask register alternatives.
3038 (*<any_or:code><mode>_1): Ditto.
3039 (*<any_or:code>qi_1): Ditto.
3040 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
3041 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
3042 Remove corresponding splitter to operation with general registers.
3043 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
3044 (*andn<SWI12:mode>): New pattern.
3045 (*kxnor<mode>): Remove general register alternatives. Tag pattern
3046 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
3047 with general registers.
3048 (knot<mode>): New insn pattern.
3049 (*one_cmpl<mode>2_1): Remove mask register alternatives.
3050 (one_cmplqi2_1): Ditto.
3051 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
3052 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
3053 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
3054 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
3055 to generate kmaskop shift.
3056 (vec_unpacks_hi_<mode>): Ditto.
3057 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
3058 Use CODE_FOR_kandhi.
3059 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
3060 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
3061 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
3063 2016-11-28 Richard Biener <rguenther@suse.de>
3065 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
3066 to SSA names via extract_range_from_ssa_name if allowed.
3068 2016-11-28 Richard Biener <rguenther@suse.de>
3070 PR tree-optimization/78542
3071 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
3074 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
3076 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
3077 isolates a single bit, even if the condition involves subregs.
3079 2016-11-28 Tamar Christina <tamar.christina@arm.com>
3081 * config/aarch64/aarch64-simd-builtins.def
3082 (BSL_P): Added di and v2di mode.
3083 * config/aarch64/arm_neon.h
3084 (vsriq_n_p64, vsri_n_p64): Added poly type.
3085 (vextq_p64, vext_p64): Likewise.
3086 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
3088 2016-11-28 Tamar Christina <tamar.christina@arm.com>
3090 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
3091 (TYPES_GETREGP): Likewise.
3092 (TYPES_SHIFTINSERTP): Likewise.
3093 (TYPES_COMBINEP): Likewise.
3094 (TYPES_STORE1P): Likewise.
3095 * config/aarch64/aarch64-simd-builtins.def
3096 (combine): Added poly generator.
3097 (get_dregoi): Likewise.
3098 (get_dregci): Likewise.
3099 (get_dregxi): Likewise.
3103 * config/aarch64/arm_neon.h
3104 (poly64x1x2_t, poly64x1x3_t): New.
3105 (poly64x1x4_t, poly64x2x2_t): Likewise.
3106 (poly64x2x3_t, poly64x2x4_t): Likewise.
3107 (poly64x1_t): Likewise.
3108 (vcreate_p64, vcombine_p64): Likewise.
3109 (vdup_n_p64, vdupq_n_p64): Likewise.
3110 (vld2_p64, vld2q_p64): Likewise.
3111 (vld3_p64, vld3q_p64): Likewise.
3112 (vld4_p64, vld4q_p64): Likewise.
3113 (vld2_dup_p64, vld3_dup_p64): Likewise.
3114 (vld4_dup_p64, vsli_n_p64): Likewise.
3115 (vsliq_n_p64, vst1_p64): Likewise.
3116 (vst1q_p64, vst2_p64): Likewise.
3117 (vst3_p64, vst4_p64): Likewise.
3118 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
3119 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
3120 (vget_lane_p64, vgetq_lane_p64): Likewise.
3121 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
3122 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
3123 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
3124 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
3125 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
3126 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
3127 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
3128 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
3129 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
3130 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
3131 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
3132 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
3133 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
3134 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
3135 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
3136 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
3137 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
3138 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
3139 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
3140 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
3141 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
3142 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
3143 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
3144 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
3145 (vset_lane_p64, vsetq_lane_p64): Likewise.
3146 (vget_low_p64, vget_high_p64): Likewise.
3147 (vcombine_p64, vst2_lane_p64): Likewise.
3148 (vst3_lane_p64, vst4_lane_p64): Likewise.
3149 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
3150 (vst4q_lane_p64, vget_lane_p64): Likewise.
3151 (vget_laneq_p64, vset_lane_p64): Likewise.
3152 (vset_laneq_p64, vcopy_lane_p64): Likewise.
3153 (vcopy_laneq_p64, vdup_n_p64): Likewise.
3154 (vdupq_n_p64, vdup_lane_p64): Likewise.
3155 (vdup_laneq_p64, vld1_p64): Likewise.
3156 (vld1q_p64, vld1_dup_p64): Likewise.
3157 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
3158 (vmov_n_p64, vmovq_n_p64): Likewise.
3159 (vst3q_p64, vst4q_p64): Likewise.
3160 (vld1_lane_p64, vld1q_lane_p64): Likewise.
3161 (vst1_lane_p64, vst1q_lane_p64): Likewise.
3162 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
3163 (vdupq_laneq_p64): Likewise.
3165 2016-11-28 Tamar Christina <tamar.christina@arm.com>
3167 * config/arm/arm_neon.h (vget_lane_p64): New.
3169 2016-11-28 Iain Sandoe <iain@codesourcery.com>
3172 * configure.ac (with_ld64): Use portable method to extract the
3173 major part of the version number.
3174 * configure: Regenerated.
3176 2016-11-28 Jakub Jelinek <jakub@redhat.com>
3178 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
3179 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
3180 intmax_t couldn't be determined.
3181 (format_integer): Make {,u}intmax_type_node no longer static,
3182 initialize them only when needed. For z and t use
3183 signed_or_unsigned_type_for instead of assuming size_t and
3184 ptrdiff_t have the same precision.
3187 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
3188 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
3189 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
3190 vector instead of traversing m_classes hash table. Release
3192 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
3194 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
3195 add it also to m_classes_vec vector.
3196 (sem_item_optimizer::remove_symtab_node,
3197 sem_item_optimizer::build_hash_based_classes,
3198 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
3199 (sem_item_optimizer::subdivide_classes_by_equality,
3200 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
3201 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
3202 instead of traversing m_classes hash table. Formatting fixes.
3203 (sem_item_optimizer::traverse_congruence_split,
3204 sem_item_optimizer::do_congruence_step_for_index,
3205 sem_item_optimizer::do_congruence_step): Formatting fixes.
3206 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
3207 vector instead of traversing m_classes hash table.
3208 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
3209 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
3210 instead of traversing m_classes hash table.
3212 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
3214 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
3215 X is not unused after.
3217 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
3219 PR rtl-optimization/78120
3220 * rtlanal.c (insn_rtx_cost): Revert previous change.
3222 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
3225 * config/avr/avr.md (SPLIT34): New mode iterator.
3226 (bitop): New code iterator.
3227 (*iorhi3.ashift8-*). New insn-and-split patterns.
3228 (*movhi): Post-reload split reg = 0.
3229 [!MOVW]: Post-reload split reg = reg.
3230 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
3231 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
3232 (iorhi3, iorpsi3, iorsi3): Same.
3233 (xorhi3, xorpsi3, xorsi3): Same.
3234 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
3235 costs to *iorhi3.ashift8-* patterns.
3237 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3238 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3241 * config.in: Regenerate
3242 * config/darwin-driver.c (darwin_driver_init): Emit a version string
3244 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
3245 * config/darwin.opt(asm_macosx_version_min): New.
3246 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
3247 * configure: Regenerate
3248 * configure.ac: Check for mmacosx-version-min handling.
3250 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3253 * config/i386/i386.c (ix86_code_end): Note that we emitted code
3254 where the function might otherwise appear empty for picbase thunks.
3255 (ix86_output_function_epilogue): If we find a zero-sized function
3256 assume that reaching it is UB and trap. If we find a trailing label
3258 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
3259 find a zero-sized function assume that reaching it is UB and trap.
3260 If we find a trailing label, append a nop.
3262 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3265 * config/darwin-sections.def (picbase_thunk_section): New.
3266 * config/darwin.c (darwin_init_sections): Set up picbase thunk
3267 section. (darwin_rodata_section, darwin_objc2_section,
3268 machopic_select_section, darwin_asm_declare_constant_name,
3269 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
3270 coalesced with newer linkers.
3271 (darwin_override_options): Decide on usage of coalesed sections
3272 on the basis of the target linker version.
3273 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
3274 * config/darwin.opt (mtarget-linker): New.
3275 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
3276 a coalesced section, instead use a thunks section.
3278 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3281 * configure.ac (with-ld64): New var, set for Darwin, set on
3282 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
3283 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
3284 * config/darwin10.h(DEF_LD64): Update for this target version.
3285 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
3286 (DEF_LD64): Update for this target version.
3287 * configure: Regenerated.
3288 * config.in: Regenerated.
3290 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3293 * config/darwin.c (imachopic_indirection_name): Make data
3294 section indirections linker-visible.
3295 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
3296 constant labels linker-visible.
3298 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3300 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
3301 (free_lang_data): Remove assignment to ptrdiff_type_node.
3303 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3305 PR rtl-optimization/78526
3306 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
3307 beyond val's precision.
3309 PR rtl-optimization/78527
3310 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
3311 out of bounds shift count.
3313 2016-11-25 Martin Liska <mliska@suse.cz>
3316 * doc/invoke.texi (-fprofile-use): Fix reference to a section
3317 where -fprofile-generate is documented.
3319 2016-11-25 Martin Liska <mliska@suse.cz>
3321 PR gcov-profile/78086
3322 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
3323 not supported by a target. Set priority to 100 if possible.
3324 (build_gcov_exit_decl): Likewise.
3326 2016-11-25 Richard Biener <rguenther@suse.de>
3329 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
3330 unary, binary and single RHSs.
3331 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
3333 2016-11-25 Bin Cheng <bin.cheng@arm.com>
3338 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
3339 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
3340 and set it to result code if transformation is valid. Use code EQ
3341 directly in last simplification case.
3343 2016-11-25 Richard Biener <rguenther@suse.de>
3345 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
3346 before valueizing return stmts.
3348 2016-11-24 Richard Biener <rguenther@suse.de>
3350 PR tree-optimization/78343
3351 * passes.def: Add CD-DCE pass after loop splitting.
3352 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
3353 SCEV init/finalize ...
3354 (perform_tree_ssa_dce): ... here. Deal with being
3355 executed inside the loop pipeline in aggressive mode.
3357 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3359 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
3361 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3363 PR tree-optimization/77673
3364 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
3365 (init_symbolic_number): Initialize src field from src parameter.
3366 (perform_symbolic_merge): Select most dominated statement as the
3367 source statement. Set src field of resulting n structure from the
3368 input src with the lowest address.
3369 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
3370 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
3371 of load from src field rather than insertion statement. Cancel
3372 optimization if statement analyzed is not dominated by the insertion
3374 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
3375 dominance information.
3377 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
3380 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3382 2016-11-25 Martin Jambor <mjambor@suse.cz>
3384 PR tree-optimization/70965
3385 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
3387 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
3390 * config/i386/i386.c (i386_excess_precision): Do not return
3391 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3392 EXCESS_PRECISION_TYPE_STANDARD.
3393 * target.def (excess_precision): Document that targets should
3394 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3395 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
3396 Fix typo in first sentence.
3397 * doc/tm.texi: Regenerate.
3399 2016-11-25 Richard Biener <rguenther@suse.de>
3401 PR tree-optimization/78396
3402 * tree-vectorizer.c (vectorize_loops): When the if-converted
3403 body contains masked loads or stores do not attempt to
3404 basic-block-vectorize it.
3406 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3407 Alan Hayward <alan.hayward@arm.com>
3408 David Sherwood <david.sherwood@arm.com>
3410 * function.h (spill_slot_alignment): Declare.
3411 * function.c (spill_slot_alignment): New function.
3412 * lra-spills.c (slot): Add align and size fields.
3413 (assign_mem_slot): Use them in the call to assign_stack_local.
3414 (add_pseudo_to_slot): Update the fields.
3415 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
3417 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3418 Alan Hayward <alan.hayward@arm.com>
3419 David Sherwood <david.sherwood@arm.com>
3421 * stor-layout.c (layout_type): Allow the caller to set the mode of
3422 a float type. Only choose one here if the mode is still VOIDmode.
3423 * tree.c (build_common_tree_nodes): Set the type mode of decimal
3424 floats before calling layout_type.
3425 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
3427 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3429 * tree-tailcall.c (find_tail_calls): Allow calls to reference
3430 local variables if all references are known to be direct.
3432 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3433 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3436 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
3437 non null and it's precision matches precision of lhs's type.
3439 2016-11-24 Martin Sebor <msebor@redhat.com>
3441 PR tree-optimization/78476
3442 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
3444 (handle_gimple_call): Adjust signature.
3445 (try_substitute_return_value): Remove calls to bounded functions
3446 with zero buffer size whose result is known.
3447 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
3449 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3451 * varasm.c (assemble_start_function): Wrap align_log definition in
3452 ASM_OUTPUT_MAX_SKIP_ALIGN.
3454 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
3456 * config/i386/i386.md (wide AND insn to QImode splitter): Use
3457 explicit mode macros.
3458 (wide OR insn to QImode splitter): Ditto.
3460 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
3462 PR rtl-optimization/77541
3463 * lra-constraints.c (struct input_reload): Add field match_p.
3464 (get_reload_reg): Check modes of input reloads to generate unique
3465 value reload pseudo.
3466 (match_reload): Add input reload pseudo for the current insn.
3468 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3470 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
3471 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
3472 architecture levels.
3473 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
3474 the aarch64_fp16_type_node, not all HFmode types.
3475 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
3476 (aarch64_scalar_mode_supported_p): Likewise.
3477 (aarch64_excess_precision): New.
3478 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3479 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
3480 (TARGET_C_EXCESS_PRECISION): Likewise.
3482 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3484 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
3485 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3487 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3489 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
3490 (<optab>dihf2): Likewise.
3491 (aarch64_fp16_<optab><mode>hf2): New.
3493 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
3496 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
3498 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3500 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
3501 Enable REE at -O2 and higher.
3502 * config/sparc/sparc.c (sparc_option_override): Disable it by default
3505 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3509 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
3510 (new_temp_expr_table): Initialise reg_vars_cnt.
3511 (free_temp_expr_table): Release reg_vars_cnt.
3512 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
3514 (find_replaceable_in_bb): Use the above to record register variable
3515 write occurrences and cancel replacement across them.
3517 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3519 PR rtl-optimization/78437
3520 * ree.c (get_uses): New function.
3521 (combine_reaching_defs): When a copy is needed, return false if any
3522 reaching use of the source register reads it in a mode larger than
3523 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
3525 2016-11-24 Martin Liska <mliska@suse.cz>
3527 * gimple-pretty-print.c (dump_edge_probability): New function.
3528 (dump_gimple_switch): Dump label edge probabilities.
3529 (dump_gimple_cond): Likewise.
3530 (dump_gimple_label): Dump
3531 (dump_gimple_bb_header): Dump basic block frequency.
3532 (pp_cfg_jump): Replace e->dest argument with e.
3533 (dump_implicit_edges): Likewise.
3534 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
3535 Use gimple_bb (at) instead of at->bb.
3537 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3539 * common.opt (flimit-function-alignment): New.
3540 * doc/invoke.texi (-flimit-function-alignment): Document.
3541 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
3542 * final.c (shorten_branches): Set it.
3543 * varasm.c (assemble_start_function): Limit alignment if
3546 2016-11-24 Richard Biener <rguenther@suse.de>
3548 PR tree-optimization/71595
3549 * cfgloopmanip.h (remove_path): Add irred_invalidated and
3550 loop_closed_ssa_invalidated parameters, defaulted to NULL.
3551 * cfgloopmanip.c (remove_path): Likewise, pass them along to
3552 called functions. Only fix irred flags if the caller didn't
3554 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
3555 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
3558 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3560 PR rtl-optimization/78120
3561 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
3562 cases, and additionally test against max_seq_cost for speed
3564 (noce_process_if_block): Compute an estimate for the original cost when
3565 optimizing for speed, using the minimum of then and else block costs.
3567 PR rtl-optimization/78120
3568 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
3570 PR rtl-optimization/78120
3571 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
3573 2016-11-24 Bin Cheng <bin.cheng@arm.com>
3575 * match.pd: Refine type conversion in result expr for below pattern:
3576 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3578 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3581 * tree.h (wi::fits_to_boolean_p): New predicate.
3582 (wi::fits_to_tree_p): Use it for boolean types.
3583 * tree.c (int_fits_type_p): Likewise.
3585 2016-11-24 Martin Liska <mliska@suse.cz>
3587 * print-tree.c (struct bucket): Remove.
3588 (print_node): Add new argument which drives whether a tree node
3589 is printed briefly or not.
3590 (debug_tree): Replace a custom hash table with hash_set<T>.
3591 * print-tree.h (print_node): Add the argument.
3593 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
3595 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
3597 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
3600 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
3601 if it is at least NREGS wide.
3603 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3605 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
3606 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
3607 TFmode, IFmode and KFmode.
3609 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3611 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
3614 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3616 * combine.c (change_zero_ext): Only change the mode of a hard register
3617 destination if can_change_dest_mode holds for that.
3619 2016-11-23 Jeff Law <law@redhat.com>
3621 * varasm.c (assemble_name): Increase buffer size for name.
3623 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
3625 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
3627 * doc/extend.texi: Constify first argument to __builtin_object_size.
3629 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3631 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
3632 to be used. Add brackets around macro argument.
3634 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3636 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
3638 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3641 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
3642 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
3644 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3647 * omp-low.c (build_outer_var_ref): Change lastprivate argument
3648 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
3649 on worksharing constructs, treat it like clauses on simd construct.
3651 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
3652 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
3653 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
3654 of true as last argument to build_outer_var_ref.
3656 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3658 * config/i386/i386.md (*movqi_internal): Calculate mode
3659 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
3660 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
3661 (*k<logic><mode>): Calculate mode attribute depending on
3662 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
3663 (*andqi_1): Calculate mode attribute of alternative 3 depending
3664 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
3665 (kandn<mode>): Calculate mode attribute of alternative 2 depending
3666 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
3667 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
3668 iterator. Calculate mode attribute of alternative 1 depending
3669 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
3670 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
3671 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
3673 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3676 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
3677 * tree-vrp.c (extract_range_basic): Handle case for
3678 CFN_BUILT_IN_STRLEN.
3680 2016-11-23 Jeff Law <law@redhat.com>
3682 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
3684 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
3685 in boolean context warning.
3687 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
3689 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3692 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
3693 (arm_fp16_type_node): ...This, make visibile.
3694 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
3696 (arm_init_simd_builtin_types): Likewise.
3697 (arm_init_fp16_builtins): Likewise.
3698 * config/arm/arm.c (arm_excess_precision): New.
3699 (arm_floatn_mode): Likewise.
3700 (TARGET_C_EXCESS_PRECISION): Likewise.
3701 (TARGET_FLOATN_MODE): Likewise.
3702 (arm_promoted_type): Only promote arm_fp16_type_node.
3703 * config/arm/arm.h (arm_fp16_type_node): Declare.
3705 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3707 * config/arm/arm.c (arm_convert_to_type): Delete.
3708 (TARGET_CONVERT_TO_TYPE): Delete.
3709 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
3710 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
3711 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
3712 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
3713 are in fast math mode, and have no single step hardware instruction.
3714 (extendhfdf2): Only expand through SFmode if we don't have a
3715 single-step hardware instruction.
3716 * config/arm/vfp.md (*truncdfhf2): New.
3717 (extendhfdf2): Likewise.
3719 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3721 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
3724 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3726 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
3727 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
3728 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
3729 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
3730 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
3731 * doc/tm.texi: Regenerate.
3732 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
3734 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3736 * toplev.c (init_excess_precision): Delete most logic.
3737 * tree.c (excess_precision_type): Rewrite to use
3738 TARGET_EXCESS_PRECISION.
3739 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
3740 more generic fashion.
3741 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
3742 __STDC_WANT_IEC_60559_TYPES_EXT__.
3744 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3746 * common.opt (fpermitted-flt-eval-methods): New.
3747 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
3748 * flag_types.h (permitted_flt_eval_methods): New.
3750 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3752 * config/m68k/m68k.c (m68k_excess_precision): New.
3753 (TARGET_C_EXCESS_PRECISION): Define.
3755 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3757 * config/s390/s390.c (s390_excess_precision): New.
3758 (TARGET_C_EXCESS_PRECISION): Define.
3760 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3762 * config/i386/i386.c (ix86_excess_precision): New.
3763 (TARGET_C_EXCESS_PRECISION): Define.
3765 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3767 * target.def (excess_precision): New hook.
3768 * target.h (flt_eval_method): New.
3769 (excess_precision_type): Likewise.
3770 * targhooks.c (default_excess_precision): New.
3771 * targhooks.h (default_excess_precision): New.
3772 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
3773 * doc/tm.texi: Regenerate.
3775 2016-11-23 Martin Sebor <msebor@redhat.com>
3778 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
3779 set the minimum number of bytes for an unknown string to zero.
3781 2016-11-23 Martin Jambor <mjambor@suse.cz>
3782 Martin Liska <mliska@suse.cz>
3784 * hsa-builtins.def: New file.
3785 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
3786 * builtins.def: Include hsa-builtins.def.
3787 (DEF_HSA_BUILTIN): New macro.
3788 * dumpfile.h (OPTGROUP_OPENMP): Define.
3789 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
3790 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
3791 GF_OMP_FOR_GRID_GROUP_ITER.
3792 (gimple_omp_for_grid_phony): Added checking assert.
3793 (gimple_omp_for_set_grid_phony): Likewise.
3794 (gimple_omp_for_grid_intra_group): New function.
3795 (gimple_omp_for_set_grid_intra_group): Likewise.
3796 (gimple_omp_for_grid_group_iter): Likewise.
3797 (gimple_omp_for_set_grid_group_iter): Likewise.
3798 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
3799 previosuly only distribute loop was permitted.
3800 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
3801 (grid_get_kernel_launch_attributes): Support multiple HSA grid
3803 (grid_expand_omp_for_loop): Likewise and also support standalone
3804 distribute constructs. New parameter INTRA_GROUP, updated both users.
3805 (grid_expand_target_grid_body): Support standalone distribute
3807 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
3808 (pass_data_expand_omp_ssa): Likewise.
3809 (pass_data_omp_device_lower): Likewsie.
3810 (pass_data_lower_omp): Likewise.
3811 (pass_data_diagnose_omp_blocks): Likewise.
3812 (pass_data_oacc_device_lower): Likewise.
3813 (pass_data_omp_target_link): Likewise.
3814 (grid_lastprivate_predicate): New function.
3815 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
3817 (lower_omp_for): Support standalone distribute constructs.
3818 (grid_prop): New type.
3819 (grid_safe_assignment_p): Check for assignments to group_sizes, new
3821 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
3823 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
3824 optimization info messages.
3825 (grid_find_single_omp_among_assignments): Likewise.
3826 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
3827 (grid_parallel_clauses_gridifiable): New function.
3828 (grid_inner_loop_gridifiable_p): Likewise.
3829 (grid_dist_follows_simple_pattern): Likewise.
3830 (grid_gfor_follows_tiling_pattern): Likewise.
3831 (grid_call_permissible_in_distribute_p): Likewise.
3832 (grid_handle_call_in_distribute): Likewise.
3833 (grid_dist_follows_tiling_pattern): Likewise.
3834 (grid_target_follows_gridifiable_pattern): Support standalone
3835 distribute constructs.
3836 (grid_var_segment): New enum.
3837 (grid_mark_variable_segment): New function.
3838 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
3839 if a new argument says so.
3840 (grid_process_grid_body): New function.
3841 (grid_eliminate_combined_simd_part): Likewise.
3842 (grid_mark_tiling_loops): Likewise.
3843 (grid_mark_tiling_parallels_and_loops): Likewise.
3844 (grid_process_kernel_body_copy): Support standalone distribute
3846 (grid_attempt_target_gridification): New grid variable holding overall
3847 gridification state. Support standalone distribute constructs and
3849 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
3850 * hsa.h (hsa_bb): Add method method append_phi.
3851 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
3852 occurences in all files too.
3853 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
3854 (is_a_helper <hsa_insn_br *>::test): New function.
3855 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
3856 branch instructions.
3857 (hsa_insn_signal): Make a direct descendant of
3858 hsa_insn_basic. Add memorder constructor parameter and
3859 m_memory_order and m_signalop member variables.
3860 (hsa_insn_queue): Changed constructor parameters to common form.
3861 Added m_segment and m_memory_order member variables.
3862 (hsa_summary_t): Add private member function
3863 process_gpu_implementation_attributes.
3864 (hsa_function_summary): Rename m_binded_function to
3866 (hsa_insn_basic_p): Remove typedef.
3867 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
3868 (hsa_op_reg_p): Remove typedef.
3869 (hsa_function_representation): Change hsa_op_reg_p into plain
3871 (hsa_insn_phi): Removed new and delete operators.
3872 (hsa_insn_br): Likewise.
3873 (hsa_insn_cbr): Likewise.
3874 (hsa_insn_sbr): Likewise.
3875 (hsa_insn_cmp): Likewise.
3876 (hsa_insn_mem): Likewise.
3877 (hsa_insn_atomic): Likewise.
3878 (hsa_insn_signal): Likewise.
3879 (hsa_insn_seg): Likewise.
3880 (hsa_insn_call): Likewise.
3881 (hsa_insn_arg_block): Likewise.
3882 (hsa_insn_comment): Likewise.
3883 (hsa_insn_srctype): Likewise.
3884 (hsa_insn_packed): Likewise.
3885 (hsa_insn_cvt): Likewise.
3886 (hsa_insn_alloca): Likewise.
3887 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
3888 (process_gpu_implementation_attributes): New function.
3889 (link_functions): Move some functionality into it. Adjust after
3890 renaming m_binded_functions to m_bound_functions.
3891 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
3892 to the list of instructions with no output registers.
3893 (get_in_type): Return this if it is a register of
3895 (hsa_get_declaration_name): Moved to...
3896 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
3897 temporary string on an obstack instead from ggc.
3898 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
3899 down to two overloads.
3900 (hsa_allocp_operand_address): Removed.
3901 (hsa_allocp_operand_immed): Likewise.
3902 (hsa_allocp_operand_reg): Likewise.
3903 (hsa_allocp_operand_code_list): Likewise.
3904 (hsa_allocp_operand_operand_list): Likewise.
3905 (hsa_allocp_inst_basic): Likewise.
3906 (hsa_allocp_inst_phi): Likewise.
3907 (hsa_allocp_inst_mem): Likewise.
3908 (hsa_allocp_inst_atomic): Likewise.
3909 (hsa_allocp_inst_signal): Likewise.
3910 (hsa_allocp_inst_seg): Likewise.
3911 (hsa_allocp_inst_cmp): Likewise.
3912 (hsa_allocp_inst_br): Likewise.
3913 (hsa_allocp_inst_sbr): Likewise.
3914 (hsa_allocp_inst_call): Likewise.
3915 (hsa_allocp_inst_arg_block): Likewise.
3916 (hsa_allocp_inst_comment): Likewise.
3917 (hsa_allocp_inst_queue): Likewise.
3918 (hsa_allocp_inst_srctype): Likewise.
3919 (hsa_allocp_inst_packed): Likewise.
3920 (hsa_allocp_inst_cvt): Likewise.
3921 (hsa_allocp_inst_alloca): Likewise.
3922 (hsa_allocp_bb): Likewise.
3924 (hsa_init_data_for_cfun): Initialize obstack.
3925 (hsa_deinit_data_for_cfun): Release memory of the obstack.
3926 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
3927 (hsa_op_reg::operator new): Likewise.
3928 (hsa_op_address::operator new): Likewise.
3929 (hsa_op_code_list::operator new): Likewise.
3930 (hsa_op_operand_list::operator new): Likewise.
3931 (hsa_insn_basic::operator new): Likewise.
3932 (hsa_insn_phi::operator new): Likewise.
3933 (hsa_insn_br::operator new): Likewise.
3934 (hsa_insn_sbr::operator new): Likewise.
3935 (hsa_insn_cmp::operator new): Likewise.
3936 (hsa_insn_mem::operator new): Likewise.
3937 (hsa_insn_atomic::operator new): Likewise.
3938 (hsa_insn_signal::operator new): Likewise.
3939 (hsa_insn_seg::operator new): Likewise.
3940 (hsa_insn_call::operator new): Likewise.
3941 (hsa_insn_arg_block::operator new): Likewise.
3942 (hsa_insn_comment::operator new): Likewise.
3943 (hsa_insn_srctype::operator new): Likewise.
3944 (hsa_insn_packed::operator new): Likewise.
3945 (hsa_insn_cvt::operator new): Likewise.
3946 (hsa_insn_alloca::operator new): Likewise.
3947 (hsa_init_new_bb): Likewise.
3948 (hsa_bb::append_phi): New function.
3949 (gen_hsa_phi_from_gimple_phi): Use it.
3950 (get_symbol_for_decl): Fix dinstinguishing between
3951 global and local functions. Put local variables into a segment
3952 according to their attribute or static flag, if there is one.
3953 (hsa_insn_br::hsa_insn_br): New.
3954 (hsa_insn_br::operator new): Likewise.
3955 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
3956 (query_hsa_grid_nodim): New function.
3957 (multiply_grid_dim_characteristics): Likewise.
3958 (gen_get_num_threads): Likewise.
3959 (gen_get_num_teams): Reimplemented.
3960 (gen_get_team_num): Likewise.
3961 (gen_hsa_insns_for_known_library_call): Updated calls to the above
3963 (get_memory_order_name): Removed.
3964 (get_memory_order): Likewise.
3965 (hsa_memorder_from_tree): New function.
3966 (gen_hsa_ternary_atomic_for_builtin): Renamed to
3967 gen_hsa_atomic_for_builtin, can also create signals.
3968 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
3969 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
3970 (hsa_insn_atomic): Fix function comment.
3971 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
3972 ancestor constructor and initialization of new member variables.
3973 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
3975 (hsa_get_host_function): Handle functions with no bound CPU
3976 implementation. Fix binded to bound.
3977 (get_brig_function_name): Likewise.
3978 (HSA_SORRY_ATV): Remove semicolon after macro.
3979 (HSA_SORRY_AT): Likewise.
3980 (omp_simple_builtin::generate): Add missing semicolons.
3981 (hsa_insn_phi::operator new): Removed.
3982 (hsa_insn_br::operator new): Likewise.
3983 (hsa_insn_cbr::operator new): Likewise.
3984 (hsa_insn_sbr::operator new): Likewise.
3985 (hsa_insn_cmp::operator new): Likewise.
3986 (hsa_insn_mem::operator new): Likewise.
3987 (hsa_insn_atomic::operator new): Likewise.
3988 (hsa_insn_signal::operator new): Likewise.
3989 (hsa_insn_seg::operator new): Likewise.
3990 (hsa_insn_call::operator new): Likewise.
3991 (hsa_insn_arg_block::operator new): Likewise.
3992 (hsa_insn_comment::operator new): Likewise.
3993 (hsa_insn_srctype::operator new): Likewise.
3994 (hsa_insn_packed::operator new): Likewise.
3995 (hsa_insn_cvt::operator new): Likewise.
3996 (hsa_insn_alloca::operator new): Likewise.
3997 (get_symbol_for_decl): Accept CONST_DECLs, put them to
3999 (gen_hsa_addr): Also process CONST_DECLs.
4000 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
4002 (gen_hsa_unary_operation): Make sure the function does
4003 not use bittype source type for firstbit and lastbit operations.
4004 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
4006 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
4008 (emit_branch_insn): Renamed to emit_cond_branch_insn.
4009 Emit the width stored in the class.
4010 (emit_generic_branch_insn): New function.
4011 (emit_insn): Call emit_generic_branch_insn.
4012 (emit_signal_insn): Remove obsolete comment. Update
4013 member variable name, pick a type according to profile.
4014 (emit_alloca_insn): Remove obsolete comment.
4015 (emit_atomic_insn): Likewise.
4016 (emit_queue_insn): Get segment and memory order from the IR object.
4017 (hsa_brig_section): Make allocate_new_chunk, chunks
4018 and cur_chunk provate, add a default NULL parameter to add method.
4019 (hsa_brig_section::add): Added a new parameter, store pointer to
4020 output data there if it is non-NULL.
4021 (emit_function_directives): Use this new parameter instead of
4022 calculating the pointer itself, fix function comment.
4023 (hsa_brig_emit_function): Add forgotten endian conversion.
4024 (hsa_output_kernels): Remove unnecessary building of
4025 kernel_dependencies_vector_type.
4026 (emit_immediate_operand): Declare.
4027 (emit_directive_variable): Also emit initializers of CONST_DECLs.
4028 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
4029 (verify_function_arguments): Properly detect variadic
4031 * hsa-dump.c (hsa_width_specifier_name): New function.
4032 (dump_hsa_insn_1): Dump generic branch instructions, update signal
4033 member variable name. Special dumping for queue objects.
4034 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
4035 m_binded_functions to m_bound_functions. Copy externally visible flag
4037 (ipa_hsa_write_summary): Likewise.
4038 (ipa_hsa_read_section): Likewise.
4040 2016-11-23 Richard Biener <rguenther@suse.de>
4042 PR tree-optimization/78396
4043 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
4044 vectorize try vectorizing an if-converted body using BB vectorization.
4046 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
4047 Alan Hayward <alan.hayward@arm.com>
4048 David Sherwood <david.sherwood@arm.com>
4050 * rtlanal.c (subreg_get_info): Use more local variables.
4051 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
4052 occupies at least one register. Assume that full hard registers
4053 have consistent endianness. Share previously-duplicated if block.
4054 Rework the main handling so that it operates on independently-
4055 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
4056 to check lowpart offsets, without trying to find an equivalent
4057 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
4058 as a final register-endianness correction.
4060 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
4066 * combine.c (make_compound_operation_int): Do not convert a subreg of
4067 a non-constant logical shift right to a zero_extract. Handle the case
4068 where some zero bits have been shifted into the range covered by that
4071 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
4072 Alan Hayward <alan.hayward@arm.com>
4073 David Sherwood <david.sherwood@arm.com>
4075 * rtl.h (subreg_size_offset_from_lsb): Declare.
4076 (subreg_offset_from_lsb): New function.
4077 (subreg_size_lowpart_offset): Declare.
4078 (subreg_lowpart_offset): Turn into an inline function.
4079 (subreg_size_highpart_offset): Declare.
4080 (subreg_highpart_offset): Turn into an inline function.
4081 * emit-rtl.c (subreg_size_lowpart_offset): New function.
4082 (subreg_size_highpart_offset): Likewise
4083 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
4085 2016-11-23 Richard Biener <rguenther@suse.de>
4087 PR tree-optimization/78482
4088 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
4089 (remove_forwarder_block_with_phi): When merging with a loop
4090 header creates a new latch reset number of iteration information
4093 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
4095 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
4096 (*ashrsi3_extend0): ...this. Accept constant integers.
4097 (*ashrsi3_extend2): Rename to...
4098 (*ashrsi3_extend1): ...this.
4099 (*ashrsi3_extend2): New pattern.
4100 (*lshrsi3_extend1): Accept constant integers.
4101 (*lshrsi3_extend2): Fix condition on operand 2.
4103 2016-11-23 Martin Liska <mliska@suse.cz>
4105 * config/i386/i386.c: Initialize function pointer to NULL.
4107 2016-11-23 Bin Cheng <bin.cheng@arm.com>
4109 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
4110 for A == C1 ? A : C2 to below.
4111 * match.pd: Move from above to here:
4112 (cond (eq (convert1? x) c1) (convert2? x) c2)
4113 -> (cond (eq x c1) c1 c2).
4115 2016-11-23 Bin Cheng <bin.cheng@arm.com>
4117 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
4118 for A cmp C1 ? A : C2 to below, also simplify remaining code.
4119 * match.pd: Move and extend simplification from above to here:
4120 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
4121 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
4122 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
4124 2016-11-23 Martin Liska <mliska@suse.cz>
4125 Martin Jambor <mjambor@suse.cz>
4127 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
4129 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
4132 * opts.c (finish_options): Set -fsyntax-only if running self tests.
4134 2016-11-23 Richard Biener <rguenther@suse.de>
4137 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
4138 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
4140 2016-11-23 Richard Biener <rguenther@suse.de>
4143 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
4146 2016-11-23 Richard Biener <rguenther@suse.de>
4147 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
4149 PR tree-optimization/78154
4150 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
4151 returns it's argument and the argument is nonnull.
4152 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
4153 ATT_RETNONNULL_NOTHROW_LEAF.
4154 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
4155 ATTR_RETNONNULL_NOTHROW_LEAF.
4156 (BUILT_IN_STPCPY): Likewise.
4157 (BUILT_IN_STPNCPY): Likewise.
4158 (BUILT_IN_MEMPCPY_CHK): Likewise.
4159 (BUILT_IN_STPCPY_CHK): Likewise.
4160 (BUILT_IN_STPNCPY_CHK): Likewise.
4161 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
4162 (BUILT_IN_STRNCAT): Likewise.
4163 (BUILT_IN_STRNCPY): Likewise.
4164 (BUILT_IN_MEMSET_CHK): Likewise.
4165 (BUILT_IN_STRCAT_CHK): Likewise.
4166 (BUILT_IN_STRCPY_CHK): Likewise.
4167 (BUILT_IN_STRNCAT_CHK): Likewise.
4168 (BUILT_IN_STRNCPY_CHK): Likewise.
4170 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4172 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
4173 * fold-const.h (tree_expr_nonzero_p) : Declare.
4174 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
4176 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
4178 * system.h (HAVE_DESIGNATED_INITIALIZERS,
4179 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
4180 "defined" in macros.
4181 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
4182 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
4183 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
4185 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
4188 * config/avr/constraints.md (Csp): Widen range to [-11..6].
4189 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
4190 of RCALLs in prologue to 3.
4192 2016-11-22 Michael Collison <michael.collison@arm.com>
4194 * config/aarch64/aarch64-protos.h
4195 (aarch64_and_split_imm1, aarch64_and_split_imm2)
4196 (aarch64_and_bitmask_imm): New prototypes
4197 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
4198 New overloaded function to create bit mask covering the
4199 lowest to highest bits set.
4200 (aarch64_and_split_imm2): New overloaded functions to create bit
4201 mask of zeros between first and last bit set.
4202 (aarch64_and_bitmask_imm): New function to determine if a integer
4203 is a valid two instruction "and" operation.
4204 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
4205 allowing wider range of constants with "and" operations.
4206 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
4207 "and" operator from matching restricted constant range used for
4208 ior and xor operators.
4209 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
4210 for constants in "and" operantions.
4211 (UsP constraint): New DImode constraint for constants
4212 in "and" operations.
4213 * config/aarch64/iterators.md (lconst2): New mode iterator.
4214 (LOGICAL2): New code iterator.
4215 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
4217 (aarch64_logical_and_operand): New predicate allowing extended
4218 constants for "and" operations.
4220 2016-11-22 Walter Lee <walt@tilera.com>
4222 * config/tilegx/tilegx.md (trap): New pattern.
4223 * config/tilepro/tilepro.md (trap): Likewise.
4225 2016-11-22 Walter Lee <walt@tilera.com>
4227 * config/tilegx/tilegx.md (*zero_extract): Use
4228 define_insn_and_split instead of define_insn; Handle pos + size >
4230 (*sign_extract): Likewise.
4232 2016-11-22 Marek Polacek <polacek@redhat.com>
4234 PR tree-optimization/78455
4235 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
4237 2016-11-22 Ian Lance Taylor <iant@golang.org>
4241 * godump.c (go_format_type): Always pass alignment as 1 when
4242 calling go_append_padding at end of struct/union.
4244 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4247 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
4248 _mm512_setzero_hi): Removed.
4249 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
4250 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
4251 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
4252 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
4253 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
4254 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
4255 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
4256 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
4257 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
4258 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
4259 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
4260 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
4261 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
4262 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
4263 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
4264 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
4265 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
4266 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
4267 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
4268 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
4269 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
4270 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
4271 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
4272 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
4273 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
4274 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
4275 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
4276 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
4277 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
4278 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
4279 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
4280 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
4281 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
4282 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
4283 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
4284 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
4285 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4286 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4287 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4288 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
4289 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
4290 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
4291 _mm512_setzero_qi or _mm512_setzero_hi.
4292 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
4293 _mm512_maskz_dbsad_epu8): Formatting fixes.
4294 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
4295 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4296 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4297 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4298 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
4299 _mm512_setzero_qi or _mm512_setzero_hi.
4301 2016-11-22 Nathan Sidwell <nathan@acm.org>
4303 * gcc-ar.c (main): Fix indentation.
4304 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
4305 * ggc-page.c (move_ptes_to_front): Fix formatting.
4306 * hsa-dump.c (dump_has_cfun): Fix indentation.
4307 * sel-sched-ir.h: Remove trailing blank lines.
4309 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4310 Alexander Monakov <amonakov@ispras.ru>
4312 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
4313 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
4314 (omp_clause_code_name): Add _simt_ name.
4315 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
4316 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
4317 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
4318 (scan_omp_simd): New function.
4319 (scan_omp_1_stmt): Use it in target regions if needed.
4320 (omp_max_vf): Don't max with omp_max_simt_vf.
4321 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
4322 OMP_CLAUSE__SIMT_ is present.
4323 (lower_rec_input_clauses): Compute maybe_simt from presence of
4325 (lower_lastprivate_clauses): Likewise.
4326 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
4327 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
4328 * internal-fn.def (GOMP_USE_SIMT): New internal function.
4329 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
4331 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
4333 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
4334 (expand_GOMP_SIMT_VF): New.
4335 (expand_GOMP_SIMT_LAST_LANE): New.
4336 (expand_GOMP_SIMT_ORDERED_PRED): New.
4337 (expand_GOMP_SIMT_VOTE_ANY): New.
4338 (expand_GOMP_SIMT_XCHG_BFLY): New.
4339 (expand_GOMP_SIMT_XCHG_IDX): New.
4340 * internal-fn.def (GOMP_SIMT_LANE): New.
4341 (GOMP_SIMT_VF): New.
4342 (GOMP_SIMT_LAST_LANE): New.
4343 (GOMP_SIMT_ORDERED_PRED): New.
4344 (GOMP_SIMT_VOTE_ANY): New.
4345 (GOMP_SIMT_XCHG_BFLY): New.
4346 (GOMP_SIMT_XCHG_IDX): New.
4347 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
4348 (create_omp_child_function): ...here. Set "omp target entrypoint"
4349 or "omp declare target" attribute based on is_gimple_omp_offloaded.
4350 (omp_max_simt_vf): New. Use it...
4351 (omp_max_vf): ...here.
4352 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
4353 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
4354 (lower_omp_ordered): Likewise, for "ordered" lowering.
4355 (expand_omp_simd): Add SIMT transforms.
4356 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
4357 (execute_omp_device_lower): New.
4358 (pass_data_omp_device_lower): New.
4359 (pass_omp_device_lower): New pass.
4360 (make_pass_omp_device_lower): New.
4361 * passes.def (pass_omp_device_lower): Position new pass.
4362 * tree-pass.h (PROP_gimple_lomp_dev): Define.
4363 (make_pass_omp_device_lower): Declare.
4365 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4368 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
4369 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
4371 (_mm_maskz_load_epi64): Likewise.
4372 (_mm_setzero_hi): Removed.
4373 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
4375 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
4376 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
4377 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
4378 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
4379 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
4380 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
4381 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
4382 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
4383 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4384 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
4385 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
4387 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
4388 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
4389 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
4390 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
4391 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
4392 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
4393 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
4394 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
4395 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
4396 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
4397 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
4398 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4399 instead of _mm_setzero_hi.
4400 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
4401 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
4402 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
4403 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
4404 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
4405 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
4406 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
4407 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
4408 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
4409 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
4410 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
4411 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
4412 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
4413 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
4414 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
4415 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
4416 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
4417 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
4418 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
4419 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
4420 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
4421 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
4422 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
4423 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
4424 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4425 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
4427 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4428 instead of _mm_setzero_hi.
4429 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
4430 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
4431 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
4432 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4433 _mm_setzero_si128 instead of _mm_setzero_di.
4434 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
4435 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
4436 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
4437 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
4438 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
4439 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
4440 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
4441 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
4442 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
4443 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
4444 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
4445 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
4446 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
4447 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
4448 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
4449 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
4450 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
4451 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
4452 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
4453 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
4454 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
4455 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
4456 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
4457 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
4458 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
4459 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
4460 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
4461 _mm512_maskz_insertf32x8): Formatting fixes.
4462 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4463 _mm_setzero_si128 instead of _mm_setzero_di.
4464 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
4465 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
4466 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
4467 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
4468 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
4469 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
4470 _mm_setzero_si128 instead of _mm_setzero_di.
4471 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
4473 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
4474 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
4475 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
4476 _mm_setzero_si128 instead of _mm_setzero_hi.
4477 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
4478 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
4479 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
4480 instead of _mm_setzero_di.
4481 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
4482 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
4484 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
4485 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
4487 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
4489 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
4490 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
4491 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
4493 2016-11-22 Carl Love <cel@us.ibm.com>
4495 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
4496 equal and vector compare not equal. The vector compares take two
4497 arguments of type vector bool char, vector bool short, vector bool int,
4498 vector bool long long with the same return type.
4499 * doc/extend.texi: Update built-in documentation file for the new
4502 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
4504 * Makefile.in ($(lang_checks_parallelized)): Fix detection
4507 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4509 * config.gcc: Allow new rmprofile value for configure option
4510 --with-multilib-list.
4511 * config/arm/t-rmprofile: New file.
4512 * doc/install.texi (--with-multilib-list): Document new rmprofile value
4515 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4518 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
4519 register operand in alternatives 4,5,6.
4521 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4524 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
4525 in save register mask if it is needed.
4527 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4529 PR tree-optimization/78436
4530 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
4531 (shift_bytes_in_array, shift_bytes_in_array_right,
4532 merged_store_group::apply_stores): Formatting fixes.
4533 (clear_bit_region): Likewise. Use memset.
4534 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
4535 instead of EXPR and inerted instead of inserted. Use memset instead
4536 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
4540 * expmed.c (expand_divmod): Use wide_int for computation of
4541 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
4542 Use size <= HOST_BITS_PER_WIDE_INT instead of
4543 HOST_BITS_PER_WIDE_INT >= size.
4545 PR tree-optimization/78445
4546 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
4547 any_complicated_phi, version loop even if flag_tree_loop_if_convert
4548 is 1. Formatting fix.
4550 2016-11-22 Martin Liska <mliska@suse.cz>
4553 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
4554 (sem_function::get_hash): Use the new field.
4555 (sem_function::parse): Remove an argument from ctor.
4556 (sem_variable::parse): Likewise.
4557 (sem_variable::get_hash): Use the new field.
4558 (sem_item_optimizer::read_section): Use new ctor and set hash.
4559 * ipa-icf.h: _hash is removed from sem_item::sem_item,
4560 sem_variable::sem_variable, sem_function::sem_function.
4562 2016-11-21 Jeff Law <law@redhat.com>
4565 * config/cris/cris.md: Don't call copy_to_mode_reg unless
4566 can_create_pseudo_p is true.
4568 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4571 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
4572 *rotldi3_insert_7): New define_insns.
4574 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4576 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
4577 so that DImode can be allocated to FP/vector registers in more
4578 cases, and we can avoid direct move operations. If the register
4579 needs reloading, prefer GPRs over FP/vector registers. In the
4580 case of FPR vs. Altivec registers, prefer FPR registers unless we
4581 have the ISA 3.0 reg+offset scalar instructions.
4582 (movdi_internal64): Likewise.
4584 2016-11-21 Jakub Jelinek <jakub@redhat.com>
4587 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
4588 for tmp simd array if DECL_NAME (parm) is NULL.
4590 2016-11-20 Jeff Law <law@redhat.com>
4593 * config/m68k/predicates.md (swap_peephole_relational_operator): New
4595 * config/m68k/m68k.md (relational tests against 65535/65536): New
4598 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4600 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
4602 2016-11-21 Martin Sebor <msebor@redhat.com>
4604 * doc/invoke.texi (-fprintf-return-value): Document that option
4605 is enabled by default.
4607 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4609 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
4610 for-loop declaration of loop variable.
4611 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
4612 * config/avr/avr.c (avr_popcount_each_byte)
4613 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
4614 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
4615 (avr_expand_epilogue, avr_function_arg_advance)
4616 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
4617 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
4618 (avr_adjust_reg_alloc_order, output_reload_in_const)
4619 (avr_conditional_register_usage, avr_find_unused_d_reg)
4620 (avr_map_decompose, avr_fold_builtin): Same.
4622 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4624 * config/avr/avr.c (avr_popcount): Remove static function.
4625 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
4627 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
4629 * arm.opt (mapcs-float): Delete option.
4630 * arm.c (arm_option_override): Remove hunk relating to
4632 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
4634 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
4636 * tree-tailcall.c (process_assignment): Simplify the check for
4637 a valid copy, allowing the source to be a local variable as
4638 well as an SSA name.
4639 (find_tail_calls): Allow copies between local variables to follow
4640 the call. Allow the result to be stored in any local variable,
4641 even if it's an aggregate.
4642 (eliminate_tail_call): Check whether the result is an SSA name
4643 before updating its SSA_NAME_DEF_STMT.
4645 2016-11-21 David Malcolm <dmalcolm@redhat.com>
4647 PR preprocessor/78324
4648 * input.c (get_substring_ranges_for_loc): Fail gracefully if
4649 -ftrack-macro-expansion has a value other than 2.
4651 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4653 PR rtl-optimization/78400
4654 * shrink-wrap.c (try_shrink_wrapping_separate): Call
4655 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
4656 and df_update_exit_block_uses.
4658 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4661 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
4662 new default-enabled warning..
4663 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
4664 (BT_PTR_CONST_STRING): Updated.
4665 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
4666 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
4667 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
4668 (strftime): Update builtin function.
4669 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
4670 * tree.h (const_tm_ptr_type_node): New type node.
4671 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
4672 const_tm_ptr_type_node.
4674 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4676 PR tree-optimization/78413
4677 * tree-if-conv.c (versionable_outer_loop_p): Require that both
4678 inner and outer loop latches have single predecessors.
4680 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4683 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
4684 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
4686 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4688 * rtl.h: Adjust prototype.
4689 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
4690 (dead_or_set_regno_p): Likewise.
4692 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4694 * rtl.h: Adjust prototype.
4695 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
4697 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4699 * function.c (contains): Change argument type to rtx_insn *.
4700 (prologue_contains): Likewise.
4701 (epilogue_contains): Likewise.
4702 (prologue_epilogue_contains): Likewise.
4703 * function.h: Adjust prototype.
4705 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4707 * optabs.c (emit_libcall_block): Change argument type to
4709 * optabs.h: Adjust prototype.
4711 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4713 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
4714 (fixup_reorder_chain): Adjust.
4715 * cfgrtl.h: Adjust prototype.
4717 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4719 * rtl.h: Adjust prototype.
4720 * rtlanal.c (replace_label_in_insn): Change argument type to
4723 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4725 * config/v850/v850.c (expand_prologue): Adjust.
4726 (expand_epilogue): Likewise.
4727 * expr.c (init_expr_target): Likewise.
4728 * genrecog.c (print_subroutine): Always make the argument type
4730 * recog.h: Adjust prototype.
4732 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4734 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
4735 up variables to make some rtx_insn *.
4736 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4737 * config/arc/arc.c: Likewise.
4738 * config/arm/arm.c: Likewise.
4739 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
4740 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
4742 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4744 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4746 * config/arm/arm.c (legitimize_pic_address): Change to use
4747 rtx_insn * as the type of variables.
4748 (arm_pic_static_addr): Likewise.
4749 (arm_emit_movpair): Likewise.
4750 * config/c6x/c6x.c (reorg_split_calls): Likewise.
4751 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
4752 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
4753 * config/frv/frv.md: Likewise.
4754 * config/i386/i386-protos.h: Likewise.
4755 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4756 (ix86_split_fp_branch): Likewise.
4757 (predict_jump): Likewise.
4758 * config/ia64/ia64.c: Likewise.
4759 * config/mcore/mcore.c: Likewise.
4760 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
4761 * config/s390/s390.c: Likewise.
4762 * config/s390/s390.md: Likewise.
4763 * config/spu/spu.md: Likewise.
4764 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
4765 * lower-subreg.c (resolve_simple_move): Likewise.
4767 2016-11-20 Jeff Law <law@redhat.com>
4770 * reload.h (struct target_reload): Make x_double_reg_address_ok
4772 * reload.c (find_reloads_address): Check if double_reg_address_ok
4773 is true for the mode of the memory reference.
4774 * reload1.c (init_reload): Initialize double_reg_address_ok for
4777 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
4780 * tree-ssa-uninit.c: Define new global max_phi_args.
4781 (compute_uninit_opnds_pos): Use max_phi_args.
4782 (prune_uninit_phi_opnds): Same.
4783 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
4784 missing NUM_PREDS in function comment.
4785 (can_one_predicate_be_invalidated_p): New.
4786 (can_chain_union_be_invalidated_p): New.
4787 (flatten_out_predicate_chains): New.
4788 (uninit_ops_invalidate_phi_use): New.
4789 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
4791 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4793 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
4794 * match.pd (A /[ex] B CMP C): New simplifications.
4796 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4798 * match.pd (0 / X, X / X, X % X): New simplifications.
4800 2016-11-19 Jakub Jelinek <jakub@redhat.com>
4802 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
4803 when checking if callee's isa flags are subset of caller's isa flags.
4804 Fix comment wording.
4806 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
4807 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
4808 instead and using = 0 instead of &= 0.
4810 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
4811 ix86_add_new_builtins): Formatting fixes.
4812 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
4813 (ix86_get_builtin): Likewise.
4815 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
4816 don't initialize it, don't use it for the case where it isn't
4817 provable %{z} nor using the same argument, instead move merge
4818 argument into a new pseudo and use that as target. Formatting fixes.
4820 2016-11-19 Jeff Law <law@redhat.com>
4823 * config/m68k/m68k.md (bsetdreg): New pattern.
4824 (bchgdreg, bclrdreg): Likewise.
4826 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
4829 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
4830 instead of force_reg.
4831 (sh_expand_setmem): Likewise.
4833 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
4835 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
4837 2016-11-18 Walter Lee <walt@tilera.com>
4839 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
4840 end-of-bundle marker for consecutive barriers.
4842 2016-11-18 Walter Lee <walt@tilera.com>
4844 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
4846 2016-11-18 Jakub Jelinek <jakub@redhat.com>
4849 * multiple_target.c (get_attr_len): Start with argnum and increment
4850 argnum on every arg. Use strchr in a loop instead of counting commas
4852 (get_attr_str): Increment argnum for every comma in the string.
4853 (separate_attrs): Use for instead of while loop, simplify.
4854 (expand_target_clones): Rename defenition argument to definition.
4855 Free attrs and attr_str even when diagnosing errors. Temporarily
4856 change input_location around targetm.target_option.valid_attribute_p
4857 calls. Don't emit warning or errors if that function fails.
4859 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
4862 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
4863 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
4864 abbrev_opt_base_type_end only by increasing die_abbrev, before
4866 (optimize_abbrev_table): Don't change abbrev numbers of
4867 base types and CU or optimize implicit consts in them if
4868 calc_base_type_die_sizes has been called during build_abbrev_table.
4869 (calc_base_type_die_sizes): If abbrev_opt_start, set
4870 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
4872 2016-11-18 Jeff Law <law@redhat.com>
4875 * config/m68k/m68k.c (moveq feeding equality comparison): New
4877 * config/m68k/predicates.md (addq_subq_operand): New predicate.
4878 (equality_comparison_operator): Likewise.
4880 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4882 * rtlanal.c (load_extend_op): Move to...
4883 * rtl.h: ...here and make inline.
4885 2016-11-18 Terry Guo <terry.guo@arm.com>
4886 Thomas Preud'homme <thomas.preudhomme@arm.com>
4888 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
4889 * config/arm/arm-opts.h: Include arm-flags.h.
4890 (struct arm_arch_core_flag): Define.
4891 (arm_arch_core_flags): Define.
4892 * config/arm/arm-protos.h: Include arm-flags.h
4893 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
4894 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
4895 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
4896 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
4897 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
4898 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
4899 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
4900 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
4901 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
4902 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
4903 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
4904 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
4905 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
4906 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
4907 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
4908 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
4909 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
4910 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
4911 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
4912 ARM_FSET_CPU_SUBSET): Move to ...
4913 * config/arm/arm-flags.h: This new file.
4914 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
4915 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
4916 (TARGET_MODE_SPECS): Define.
4917 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
4919 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
4921 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
4922 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
4923 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
4924 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
4925 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
4926 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
4927 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
4928 missing and make value unsigned.
4929 (arm_feature_set): Use unsigned entries instead of unsigned long.
4931 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4933 Re-apply after PR bootstrap/77359 is fixed:
4934 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4936 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4937 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
4940 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4943 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
4944 variables in functions calling alloca. Also update the ASCII
4946 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
4947 (STACK_DYNAMIC_OFFSET): Likewise.
4948 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
4949 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
4952 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4953 Alan Hayward <alan.hayward@arm.com>
4954 David Sherwood <david.sherwood@arm.com>
4956 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
4957 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
4958 (add_const_value_attribute): Likewise.
4959 * explow.c (plus_constant): Likewise.
4960 * expmed.c (expand_mult, make_tree): Likewise.
4961 * expr.c (convert_modes): Likewise.
4962 * loop-doloop.c (doloop_optimize): Likewise.
4963 * postreload.c (reload_cse_simplify_set): Likewise.
4964 * simplify-rtx.c (simplify_const_unary_operation): Likewise
4965 (simplify_binary_operation_1, simplify_const_binary_operation):
4967 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
4968 * wide-int.h: Update documentation to recommend rtx_mode_t
4969 instead of std::make_pair.
4971 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4972 Alan Hayward <alan.hayward@arm.com>
4973 David Sherwood <david.sherwood@arm.com>
4975 * tree.h (SET_DECL_MODE): New macro.
4976 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
4977 (expand_gimple_basic_block): Likewise.
4978 * function.c (split_complex_args): Likeise.
4979 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4980 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
4981 * stor-layout.c (layout_decl, relayout_decl): Likewise.
4982 (finish_bitfield_representative): Likewise.
4983 * tree.c (make_node_stat): Likewise.
4984 * tree-inline.c (remap_ssa_name): Likewise.
4985 (tree_function_versioning): Likewise.
4986 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
4987 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4988 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4989 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
4990 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
4991 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4992 * varasm.c (make_debug_expr_from_rtl): Likewise.
4994 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
4996 PR rtl-optimization/71785
4997 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
4998 (duplicate_computed_gotos): New function.
4999 (pass_duplicate_computed_gotos::execute): Rewrite.
5001 2016-11-17 Jeff Law <law@redhat.com>
5004 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
5005 barrier prior to deallocating the stack.
5007 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
5009 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
5010 to make better use of cmem loads in the case where a single bit is
5012 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
5014 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
5016 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
5018 (isa_names_table): Handle new features.
5020 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
5021 Andrew Senkevich <andrew.senkevich@intel.com>
5023 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
5024 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
5025 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
5026 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
5027 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
5028 * config/i386/avx5124fmapsintrin.h: New file.
5029 * config/i386/avx5124vnniwintrin.h: Ditto.
5030 * config/i386/constraints.md (h): New constraint.
5031 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
5032 * config/i386/driver-i386.c (host_detect_local_cpu):
5033 Detect avx5124fmaps, avx5124vnniw.
5034 * config/i386/i386-builtin-types.def: Add types
5035 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
5036 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
5037 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
5038 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
5039 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
5040 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
5041 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
5042 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
5043 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
5044 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
5045 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
5046 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
5047 __builtin_ia32_vp4dpwssds_mask): New.
5048 * config/i386/i386-c.c (ix86_target_macros_internal):
5049 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
5050 * config/i386/i386-modes.def: Fixed comment typos, added new
5051 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
5052 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
5054 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
5055 (ix86_option_override_internal): Handle new options.
5056 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
5058 (ix86_expand_builtin): Handle new builtins.
5059 (ix86_additional_allocno_class_p): New.
5060 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
5061 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
5062 (reg_class): Add MOD4_SSE_REGS.
5063 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
5064 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
5065 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
5066 avx5124vnniwintrin.h.
5067 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
5068 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
5069 (define_mode_iterator IMOD4): New.
5070 (define_mode_attr imod4_narrow): Ditto.
5071 (define_insn "mov<mode>"): Ditto.
5072 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
5073 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
5074 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
5075 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
5076 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
5077 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
5078 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
5079 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
5080 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
5081 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
5082 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
5083 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
5084 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
5085 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
5086 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
5087 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
5088 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
5089 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
5090 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
5091 * genmodes.c (mode_size_inline): Extend return type.
5092 * machmode.h (mode_size, mode_base_align): Extend type.
5094 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
5097 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
5098 the appropriate checks for SFmode/DFmode load/stores in GPR
5100 (fusion_addis_mem_combo_store): Likewise.
5101 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
5102 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
5103 d-form instructions for traditional Altivec registers.
5104 (emit_fusion_p9_load): Likewise.
5105 (emit_fusion_p9_store): Likewise.
5106 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
5107 early clobber from scratch register. Do not match if the register
5108 being stored is the scratch register.
5109 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
5110 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
5111 instructions for traditional Altivec registers.
5112 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
5113 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5114 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5116 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
5119 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
5120 being live in the function and lr needing to be saved. Distinguish
5121 between already saved pushable registers and registers to push.
5122 Check for LR being an available pushable register.
5124 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5126 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
5127 string input is a string constant.
5128 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
5129 via cmpstrnsi even if neither string is constant.
5131 2016-11-17 Jakub Jelinek <jakub@redhat.com>
5134 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
5135 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
5136 instead, return false if it is NULL, or doesn't fit into uhwi, or
5137 is larger or equal to targetm.max_anchor_offset.
5139 2016-11-17 Pip Cet <pipcet@gmail.com>
5140 Eric Botcazou <ebotcazou@adacore.com>
5142 PR rtl-optimization/78355
5143 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
5144 needs to deal with unaligned accesses.
5145 * doc/tm.texi: Regenerate.
5146 * lra-constraints.c (simplify_operand_subreg): Only invoke
5147 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
5149 2016-11-17 David Malcolm <dmalcolm@redhat.com>
5151 * input.c (selftest::test_lexer_string_locations_long_line): New
5153 (selftest::test_lexer_string_locations_raw_string_multiline): New
5155 (selftest::input_c_tests): Call the new functions, via
5156 for_each_line_table_case.
5158 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5160 * config/aarch64/aarch64.md (mov<mode>): Call
5161 aarch64_split_dimode_const_store on DImode constant stores.
5162 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
5164 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
5167 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5168 Richard Biener <rguenther@suse.de>
5170 PR tree-optimization/77848
5171 * tree-if-conv.c (tree_if_conversion): Always version loops unless
5172 the user specified -ftree-loop-if-convert.
5174 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
5177 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
5178 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
5179 *thumb2_strd_base_neg): Recognize insn regardless of
5180 current_tune->prefer_ldrd_strd.
5181 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
5184 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
5186 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
5189 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
5191 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
5193 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
5194 * config/arc/arc-cpus.def (quarkse_em): Add.
5195 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
5196 * config/arc/arc-opts.h (FPX_QK): Define.
5197 * config/arc/arc-tables.opt: Regenerate.
5198 * config/arc/arc.c (gen_compare_reg): Change.
5199 (arc_register_move_cost): Avoid Dy,Dx moves.
5200 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
5201 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
5202 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
5204 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
5205 (fix_truncsfsi2_fpu): Rename.
5206 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
5207 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
5208 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
5209 * config/arc/t-multilib: Regenerate.
5211 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
5213 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
5215 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
5216 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
5217 (avr_rtx_costs_1, extra_constraint_Q): Same.
5218 (avr_address_cost): Use SUBREG_P if possible.
5220 2016-11-17 Richard Biener <rguenther@suse.de>
5223 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
5224 non-local goto into CFG.
5226 2016-11-17 Richard Biener <rguenther@suse.de>
5228 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
5229 backward compatibility.
5230 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
5231 * tree-if-conv.c (pass_if_conversion::gate): Do not test
5232 flag_tree_loop_if_convert_stores.
5233 (pass_if_conversion::execute): Likewise.
5235 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5237 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
5238 const_double code before calling aarch64_float_const_zero_rtx_p.
5240 2016-11-17 Richard Biener <rguenther@suse.de>
5242 PR tree-optimization/78306
5243 * ipa-inline-analysis.c (initialize_inline_failed): Do not
5244 inhibit inlining if function calls cilk_spawn.
5245 (can_inline_edge_p): Likewise.
5247 2016-11-17 Richard Biener <rguenther@suse.de>
5250 * fold-const.c (negate_expr_p): Fix multiplication case.
5252 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
5255 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
5257 (TARGET_INIT_LIBFUNCS): Delete definition and...
5258 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
5261 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
5263 * config/netbsd-stdint.h: New.
5264 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
5265 (x86_64-*-netbsd*): Likewise.
5267 2016-11-16 Andrew PInski <apinski@cavium.com>
5269 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
5270 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
5271 flag_aarch64_verbose_cost instead of checking for details dump.
5272 (aarch64_rtx_costs_wrapper): Likewise.
5274 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5276 PR rtl-optimization/78378
5277 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
5278 inner only if pos is 0. Fix up formatting.
5280 2016-11-17 Alan Modra <amodra@gmail.com>
5282 PR rtl-optimization/78325
5283 PR rtl-optimization/70890
5284 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
5287 2016-11-16 Jason Merrill <jason@redhat.com>
5289 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
5291 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5292 Richard Biener <rguenther@suse.de>
5294 PR tree-optimization/77848
5295 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
5296 an outer loop, only save basic block aux information for the inner
5298 (versionable_outer_loop_p): New function.
5299 (tree_if_conversion): Version the outer loop instead of the inner
5300 one if the pattern will be recognized for outer-loop
5303 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5305 * gcc/bb-reorder.c: Remove 'toplev.h' include.
5306 (pass_partition_blocks::gate): No longer check
5307 user_defined_section_attribute, instead check the function decl
5308 for a section attribute.
5309 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
5310 set user_defined_section_attribute.
5311 * gcc/final.c (rest_of_handle_final): Likewise.
5312 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
5313 * gcc/toplev.h: Remove declaration of
5314 user_defined_section_attribute.
5316 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5318 * config/mips/mips.md (casesi_internal_mips16_<mode>):
5319 Explicitly switch between JR and JRC for the table jump. Adjust
5322 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5324 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
5325 `insn_count' to 11 rather than 16.
5327 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5329 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
5330 `ltu' rather than `leu' operation in the RTL pattern
5332 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5334 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
5335 missing <d> instruction prefixes throughout. Correct
5338 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5340 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
5341 rather than R_MIPS_JALR relocation in microMIPS code. Do not
5342 cancel short delay slots in PIC call relaxation.
5344 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
5346 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
5347 general register with general register or ARM constant into SP
5350 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5353 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
5354 that loop->header == body_bb if broken_loop.
5356 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
5358 * tree-ssa-math-opts.c (bswap_replace): Remove test
5359 of SLOW_UNALIGNED_ACCESS.
5361 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
5363 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
5364 is selected. Pass -mgomp to offload compiler in OpenMP case.
5365 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
5366 declaration from nvptx.c.
5367 (nvptx_gen_shuffle): Declare.
5368 (nvptx_output_set_softstack): Declare.
5369 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
5370 (need_softstack_decl): New variable.
5371 (need_unisimt_decl): New variable.
5372 (diagnose_openacc_conflict): New. Use it...
5373 (nvptx_option_override): ...here. Handle TARGET_GOMP.
5374 (nvptx_encode_section_info): Handle "shared" attribute.
5375 (write_as_kernel): Restrict to OpenACC target regions.
5376 (init_softstack_frame): New.
5377 (nvptx_init_unisimt_predicate): New.
5378 (write_omp_entry): New. Use it...
5379 (nvptx_declare_function_name): ...here to emit OpenMP target region
5380 entrypoints. Handle TARGET_SOFT_STACK. Call
5381 nvptx_init_unisimt_predicate.
5382 (nvptx_output_set_softstack): New.
5383 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
5384 (nvptx_gen_shuffle): Export.
5385 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
5387 (nvptx_print_operand): Fix handling of instruction predicates.
5388 (nvptx_get_unisimt_master): New helper function.
5389 (nvptx_get_unisimt_predicate): Ditto.
5390 (nvptx_call_insn_is_syscall_p): Ditto.
5391 (nvptx_unisimt_handle_set): Ditto.
5392 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
5393 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
5394 (nvptx_handle_shared_attribute): New. Use it...
5395 (nvptx_attribute_table): ... here (new entry).
5396 (nvptx_record_offload_symbol): Handle NULL attributes.
5397 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
5398 (nvptx_simt_vf): New.
5399 (TARGET_SIMT_VF): Define.
5400 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
5401 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
5402 -muniform-simt option is active.
5403 (STACK_SIZE_MODE): Define.
5404 (FIXED_REGISTERS): Adjust.
5405 (SOFTSTACK_SLOT_REGNUM): New.
5406 (SOFTSTACK_PREV_REGNUM): New.
5407 (REGISTER_NAMES): Adjust.
5408 (struct machine_function): New fields.
5409 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
5410 (UNSPEC_VOTE_BALLOT): Ditto.
5411 (UNSPEC_LANEID): Ditto.
5412 (UNSPECV_NOUNROLL): Ditto.
5413 (atomic): New attribute.
5414 (predicable): New attribute. Generate predicated forms via
5416 (br_true): Mark as not predicable.
5418 (br_true_uni): Ditto.
5419 (br_false_uni): Ditto.
5421 (trap_if_true): Ditto.
5422 (trap_if_false): Ditto.
5423 (nvptx_fork): Ditto.
5424 (nvptx_forked): Ditto.
5425 (nvptx_joining): Ditto.
5426 (nvptx_join): Ditto.
5427 (nvptx_barsync): Ditto.
5428 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
5429 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
5430 (allocate_stack_<mode>): Remove unused pattern.
5431 (set_softstack_insn): New pattern.
5432 (restore_stack_block): Handle for TARGET_SOFT_STACK.
5433 (nvptx_vote_ballot): New pattern.
5434 (omp_simt_lane): Ditto.
5435 (omp_simt_last_lane): Ditto.
5436 (omp_simt_ordered): Ditto.
5437 (omp_simt_vote_any): Ditto.
5438 (omp_simt_xchg_bfly): Ditto.
5439 (omp_simt_xchg_idx): Ditto.
5440 (nvptx_nounroll): Ditto.
5441 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
5442 (atomic_exchange<mode>): Ditto.
5443 (atomic_fetch_add<mode>): Ditto.
5444 (atomic_fetch_addsf): Ditto.
5445 (atomic_fetch_<logic><mode>): Ditto.
5446 * config/nvptx/nvptx.opt (msoft-stack): New option.
5447 (muniform-simt): Ditto.
5449 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
5450 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
5451 * doc/invoke.texi (msoft-stack): Document.
5452 (muniform-simt): Document
5454 * doc/tm.texi: Regenerate.
5455 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
5456 * target.def: Define it.
5457 * target-insns.def (omp_simt_lane): New.
5458 (omp_simt_last_lane): New.
5459 (omp_simt_ordered): New.
5460 (omp_simt_vote_any): New.
5461 (omp_simt_xchg_bfly): New.
5462 (omp_simt_xchg_idx): New.
5464 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5466 * config/mips/mips-protos.h (mips_set_text_contents_type): New
5468 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
5469 (ASM_OUTPUT_CASE_END): Likewise.
5470 * config/mips/mips.c (mips_set_text_contents_type): New function.
5471 (mips16_emit_constants): Record the pool's initial label number
5472 with the `consttable' insn. Emit a `consttable_end' insn at the end.
5473 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
5474 for `consttable' insns.
5475 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
5476 for `consttable_end' insns.
5477 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
5478 (consttable): Add operand.
5479 (consttable_end): New insn.
5481 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
5483 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
5484 * tree-if-conv.c (tree_if_conversion): Make public.
5485 * * tree-if-conv.h: New file.
5486 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
5487 dynamic alias checks for epilogues.
5488 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
5489 * tree-vect-loop.c: include tree-if-conv.h.
5490 (new_loop_vec_info): Add zeroing orig_loop_info field.
5491 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
5492 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
5493 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
5494 using passed argument.
5495 (vect_transform_loop): Check if created epilogue should be returned
5496 for further vectorization with less vf. If-convert epilogue if
5497 required. Print vectorization success for epilogue.
5498 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
5499 if it is required, pass loop_vinfo produced during vectorization of
5500 loop body to vect_analyze_loop.
5501 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5503 (LOOP_VINFO_ORIG_LOOP_INFO): New.
5504 (LOOP_VINFO_EPILOGUE_P): New.
5505 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
5506 (vect_do_peeling): Change prototype to return epilogue.
5507 (vect_analyze_loop): Add argument of loop_vec_info type.
5508 (vect_transform_loop): Return created loop.
5510 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
5512 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
5513 component as used also if LR_REGNO is a live input to the bb.
5514 * df-scan.c (df_get_entry_block_def_set): Return immediately after
5515 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
5516 (df_get_exit_block_use_set): Ditto.
5517 * df.h (df_scan_flags): New enum.
5518 * shrink-wrap.c (try_shrink_wrapping_separate): Set
5519 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
5520 df_update_entry_block_defs and df_update_exit_block_uses
5521 at the start; clear the flag and call those functions at the end.
5523 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5524 Alan Hayward <alan.hayward@arm.com>
5525 David Sherwood <david.sherwood@arm.com>
5527 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
5528 nb_iterations to the number of latch iterations rather than the
5529 number of loop iterations.
5531 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5532 Alan Hayward <alan.hayward@arm.com>
5533 David Sherwood <david.sherwood@arm.com>
5535 * combine.c (maybe_swap_commutative_operands): New function.
5536 (combine_simplify_rtx): Use it.
5537 (change_zero_ext): Likewise.
5538 (make_compound_operation_int): New function, split out of...
5539 (make_compound_operation): ...here. Use
5540 maybe_swap_commutative_operands for both.
5542 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
5544 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
5545 (neon-vfpv3): New FPU, currently an alias for 'neon'.
5546 * arm/arm-tables.opt: Regenerated.
5547 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
5549 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
5550 and 'neon' are aliases for specific implementations.
5552 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5553 Alan Hayward <alan.hayward@arm.com>
5554 David Sherwood <david.sherwood@arm.com>
5556 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
5557 and use it in the final call to gen_rtx_fmt_ee.
5558 (expand_vec_cond_expr): Update accordingly.
5559 (expand_vec_cmp_expr): Likewise.
5561 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5562 Alan Hayward <alan.hayward@arm.com>
5563 David Sherwood <david.sherwood@arm.com>
5565 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
5567 2016-11-16 Richard Biener <rguenther@suse.de>
5570 * gimplify.c (gimplify_function_tree): Do not instrument
5571 GNU extern inline functions.
5573 2016-11-16 Martin Liska <mliska@suse.cz>
5576 * gimplify.c (gimplify_switch_expr): Always save previous
5577 gimplify_ctxp->live_switch_vars.
5579 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5581 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
5582 zero_extract operations to allow a movb to occur.
5583 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
5584 * testsuite/gcc.target/arc/movb-2.c: Likewise.
5585 * testsuite/gcc.target/arc/movb-5.c: Likewise.
5586 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
5589 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5590 Alan Hayward <alan.hayward@arm.com>
5591 David Sherwood <david.sherwood@arm.com>
5593 * expr.c (emit_group_load_1): Tighten check for whether an
5594 access involves only one operand of a CONCAT. Use extract_bit_field
5595 for constants if the bit range does span the whole operand.
5597 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5598 Alan Hayward <alan.hayward@arm.com>
5599 David Sherwood <david.sherwood@arm.com>
5601 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
5603 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5604 Alan Hayward <alan.hayward@arm.com>
5605 David Sherwood <david.sherwood@arm.com>
5607 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
5608 all three iteration counts with an any_* test. Use a single update
5609 for each count. Fix the calculation of nb_iterations_estimate.
5611 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5613 * config/pdp11/pdp11.c: Include dbxout.h.
5615 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5617 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
5619 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5622 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
5623 proper ranges for an SBFX instruction.
5624 (extzv_t2): Likewise for UBFX.
5626 2016-11-16 Richard Biener <rguenther@suse.de>
5628 PR tree-optimization/78348
5629 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
5630 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
5631 (classify_partition): Set PKIND_MEMCPY if dependence analysis
5632 revealed no dependency, PKIND_MEMMOVE otherwise.
5634 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5637 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
5638 it points to non-NULL tree, use it instead of ubsan_create_data.
5639 (instrument_si_overflow): Handle vector signed integer overflow
5641 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
5642 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
5643 vector IFN_UBSAN_CHECK_*.
5644 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
5645 pass it through to ubsan_build_overflow_builtin.
5646 (expand_neg_overflow, expand_mul_overflow): Likewise.
5647 (expand_vector_ubsan_overflow): New function.
5648 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
5649 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
5650 (expand_arith_overflow): Adjust expand_*_overflow callers.
5652 2016-11-16 Matthias Klose <doko@ubuntu.com>
5654 * doc/install.texi: Remove references to java/libjava.
5656 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
5658 * tree-ssa-coalesce.c (register_default_def): Remove
5659 register_ssa_partition.
5660 (create_outofssa_var_map): Likewise.
5661 * tree-ssa-live.c (register_ssa_partition_check): Remove.
5662 * tree-ssa-live.h (register_ssa_partition): Likewise.
5664 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5666 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
5667 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
5668 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
5669 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
5670 rtx when all sub-rtx are also permanent.
5671 (attr_eq): Simplify.
5672 (attr_copy_rtx): Remove.
5673 (make_canonical, get_attr_value): Use attr_equal_p.
5674 (copy_boolean): Rehash NOT.
5675 (simplify_test_exp_in_temp,
5676 optimize_attrs): Remove call to attr_copy_rtx.
5677 (attr_alt_intersection, attr_alt_union,
5678 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
5679 (make_automaton_attrs): Use attr_eq.
5681 2016-11-15 Matthias Klose <doko@ubuntu.com>
5683 * doc/install.texi: Remove references to java/libjava.
5684 * doc/sourcebuild.texi: Likewise.
5685 * doc/invoke.texi: Likewise.
5686 * doc/standards.texi: Likewise.
5688 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5689 Alan Hayward <alan.hayward@arm.com>
5690 David Sherwood <david.sherwood@arm.com>
5692 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
5694 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5695 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5696 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5697 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5698 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5699 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5700 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5702 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5703 Alan Hayward <alan.hayward@arm.com>
5704 David Sherwood <david.sherwood@arm.com>
5706 * dce.c (check_argument_store): Pass the size instead of
5707 the memory reference.
5708 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
5710 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5711 Alan Hayward <alan.hayward@arm.com>
5712 David Sherwood <david.sherwood@arm.com>
5714 * alias.c (canon_rtx): Use simplify_gen_binary.
5716 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5717 Alan Hayward <alan.hayward@arm.com>
5718 David Sherwood <david.sherwood@arm.com>
5720 * rtl.h (load_extend_op): Declare.
5721 * rtlanal.c (load_extend_op): New function.
5722 (nonzero_bits1): Use it.
5723 (num_sign_bit_copies1): Likewise.
5724 * cse.c (cse_insn): Likewise.
5725 * fold-const.c (fold_single_bit_test): Likewise.
5726 (fold_unary_loc): Likewise.
5727 * fwprop.c (free_load_extend): Likewise.
5728 * postreload.c (reload_cse_simplify_set): Likewise.
5729 (reload_cse_simplify_operands): Likewise.
5730 * combine.c (try_combine): Likewise.
5731 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
5732 subreg_lowpart_p checks.
5734 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5735 Alan Hayward <alan.hayward@arm.com>
5736 David Sherwood <david.sherwood@arm.com>
5738 * combine.c (simplify_shift_const_1): Use the number of bits
5739 in the inner mode to determine the range of the shift.
5740 When handling shifts of vectors, skip any rules that apply
5743 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5744 Alan Hayward <alan.hayward@arm.com>
5745 David Sherwood <david.sherwood@arm.com>
5747 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
5750 2016-11-15 Matthias Klose <doko@ubuntu.com>
5752 * doc/install.texi: Remove references to gcj/libjava.
5753 * doc/invoke.texi: Likewise.
5755 2016-11-15 Jeff Law <law@redhat.com>
5757 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
5758 parameter. Callers changed.
5759 (check-subpath_and_update_thread_path): Extracted from
5760 fsm_find_control_statement_thread_paths.
5761 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
5762 (handle_phi, handle_assignment): Allow any constant node, not
5765 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
5767 * config/arc/arc-arch.h: New file.
5768 * config/arc/arc-arches.def: Likewise.
5769 * config/arc/arc-cpus.def: Likewise.
5770 * config/arc/arc-options.def: Likewise.
5771 * config/arc/t-multilib: Likewise.
5772 * config/arc/genmultilib.awk: Likewise.
5773 * config/arc/genoptions.awk: Likewise.
5774 * config/arc/arc-tables.opt: Likewise.
5775 * config/arc/driver-arc.c: Likewise.
5776 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
5777 * common/config/arc/arc-common.c (arc_handle_option): Trace
5779 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
5780 options; check for supported cpu against arc-cpus.def file.
5781 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
5782 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
5783 * config/arc/arc-c.def: Add emacs local variables.
5784 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
5785 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
5786 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
5787 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
5788 (DEFAULT_arc_fpu_build): Define.
5789 (DEFAULT_arc_mpy_option): Define.
5790 * config/arc/arc-protos.h (arc_init): Delete.
5791 * config/arc/arc.c (arc_cpu_name): New variable.
5792 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
5793 (arc_arc700, arc_arc600, arc_arc601): New variable.
5794 (arc_init): Add static; remove selection of default tune value,
5795 cleanup obsolete error messages.
5796 (arc_override_options): Make use of .def files for selecting the
5797 right cpu and option configurations.
5798 * config/arc/arc.h (stdbool.h): Include.
5799 (TARGET_CPU_DEFAULT): Define.
5800 (CPP_SPEC): Remove mcpu=NPS400 handling.
5801 (arc_cpu_to_as): Declare.
5802 (EXTRA_SPEC_FUNCTIONS): Define.
5803 (OPTION_DEFAULT_SPECS): Likewise.
5804 (ASM_DEFAULT): Remove.
5805 (ASM_SPEC): Use arc_cpu_to_as.
5806 (DRIVER_SELF_SPECS): Remove deprecated options.
5807 (arc_base_cpu): Declare.
5808 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
5809 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
5811 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
5812 * config/arc/arc.md (attr_cpu): Remove.
5813 * config/arc/arc.opt (mno-mpy): Deprecate.
5814 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
5815 (mcpu=ARCHS): Remove.
5816 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
5818 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
5819 (arc_fpu): Use new defines.
5820 (mpy-option): Change to use numeric or string like inputs.
5821 * config/arc/t-arc (driver-arc.o): New target.
5822 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
5823 * config/arc/t-arc-newlib: Delete.
5824 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
5825 * doc/invoke.texi (ARC): Update arc options.
5827 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
5829 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
5830 insn at the beginning of the constant pool.
5831 (mips_insert_insn_pseudos): New function.
5832 (mips_machine_reorg2): Call it.
5833 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
5834 UNSPEC_INSN_PSEUDO enum values.
5835 (insn_pseudo, consttable): New insns.
5837 2016-11-15 Michael Matz <matz@suse.de>
5839 PR missed-optimization/77881
5840 * combine.c (simplify_comparison): Remove useless subregs
5841 also inside the loop, not just after it.
5842 (make_compound_operation): Recognize some subregs as being
5845 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5846 Alan Hayward <alan.hayward@arm.com>
5847 David Sherwood <david.sherwood@arm.com>
5849 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
5852 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5854 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
5855 for using xxinsertw and vinsert{b,h} on ISA 3.0.
5857 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
5858 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
5859 vinsert{b,h} on ISA 3.0.
5861 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5863 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5864 and cmpnop in two steps: first the ones not accessed in original gimple
5865 expression in a endian independent way and then the ones not accessed
5866 in the final result in an endian-specific way.
5867 (bswap_replace): Stop doing big endian adjustment.
5869 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
5871 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
5872 (*ashl<mode>3_doubleword): Ditto.
5874 2016-11-14 Martin Liska <mliska@suse.cz>
5876 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
5878 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
5879 Richard Biener <rguenther@suse.de>
5881 * doc/invoke.texi (fgimple): Document.
5882 * dumpfile.h (TDF_GIMPLE): Add.
5883 * dumpfile.c (dump_options): Add gimple.
5884 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
5886 (dump_gimple_label): Likewise.
5887 (dump_gimple_phi): Likewise.
5888 (dump_gimple_bb_header): Likewise.
5889 (dump_phi_nodes): Likewise.
5890 (pp_cfg_jump): Likewise. Pass in dump flags.
5891 (dump_implicit_edges): Adjust.
5892 * passes.c (pass_init_dump_file): Do not dump function header
5894 * tree-cfg.c (dump_function_to_file): Dump function return type
5895 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
5897 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
5898 (dump_generic_node): Likewise.
5899 * function.h (struct function): Add pass_startwith member.
5900 * passes.c (execute_one_pass): Implement startwith.
5901 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
5902 and assign proper version for parsed ssa names.
5903 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
5904 * internal-fn.c (expand_PHI): New function.
5905 * internal-fn.h (expand_PHI): Declared here.
5906 * internal-fn.def: New defination for PHI.
5907 * tree-cfg.c (lower_phi_internal_fn): New function.
5908 (build_gimple_cfg): Call it.
5909 (verify_gimple_call): Condition for passing label as arg in internal
5911 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
5912 present PHIs with arguments.
5914 2016-11-14 Martin Liska <mliska@suse.cz>
5917 * common.opt: Add prefer-atomic as a new enum value for
5919 * coretypes.h: Likewise.
5920 * doc/invoke.texi: Document the new option value.
5921 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
5922 * tree-profile.c (tree_profiling): Select default value
5923 of -fprofile-update when 'prefer-atomic' is selected.
5925 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5927 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
5928 (cortex_a57_alu_shift): ...here.
5930 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5932 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
5934 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5935 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5936 (<optab>si3_insn_uxtw): Likewise.
5937 (<optab><mode>3_insn): Likewise.
5938 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
5939 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
5940 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
5941 (<optab><mode>): Likewise.
5942 (insv<mode>): Likewise.
5943 (andim_ashift<mode>_bfiz): Likewise.
5944 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
5945 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
5946 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
5947 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
5948 (exynos_m1_alu_p): Likewise.
5949 * config/arm/types.md: Add bfx.
5950 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
5952 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5954 * config/aarch64/aarch64.c (cortexa57_vector_cost):
5955 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
5957 2016-11-14 Richard Biener <rguenther@suse.de>
5959 PR tree-optimization/78312
5960 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
5961 flow-sensitive info.
5963 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
5966 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
5967 * config/avr/avr.opt (-mabsdata): New option.
5968 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
5969 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
5970 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
5971 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
5972 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
5973 spec depending on AVR_ISA_LDS.
5974 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
5976 2016-11-13 Jakub Jelinek <jakub@redhat.com>
5978 * match.pd: Don't try to compare addresses of variables with
5981 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
5983 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
5984 (propagate_vr_accross_jump_function): Handle unary expressions.
5985 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5986 (load_from_param_1): New.
5987 (load_from_unmodified_param): Factor common part into load_from_param_1.
5988 (load_from_param): New.
5989 (compute_complex_assign_jump_func): Handle unary expressions.
5990 (update_jump_functions_after_inlining): Likewise.
5991 (ipa_write_jump_function): Likewise.
5992 (ipa_read_jump_function): Likewise.
5994 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5997 * doc/invoke.texi: Document Wrestrict.
5998 * pretty-print.c (pp_format): Add case for "Z" specifier.
5999 (test_pp_format): Test "Z" specifier.
6001 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
6003 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
6004 original function needs a static chain.
6006 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
6009 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
6012 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
6015 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
6016 return early if !optional_tbtab.
6018 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
6020 PR rtl-optimization/59461
6021 * doc/rtl.texi (paradoxical subregs): Add missing word.
6022 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
6023 in modes with precision larger than that of last_set_mode.
6024 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
6025 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
6026 REGs to paradoxical SUBREGs.
6027 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
6028 larger than a word before invoking LOAD_EXTEND_OP on it.
6030 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6033 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
6034 element order for little endian ordering.
6036 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
6037 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
6040 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
6043 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
6044 when calculating operand 2.
6045 (rotate to rotatex zext splitter): Ditto.
6047 2016-11-11 Jeff Law <law@redhat.com>
6049 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
6051 (stmt_uses_name_in_undefined_way): New function, extracted from
6052 find_implicit_erroneous_behavior and extended for div/mod case.
6053 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
6054 find_explicit_erroneous_behavior and extended for div/mod case.
6055 (find_implicit_erroneous_behavior): Use new helper function.
6056 (find_explicit_erroneous_behavior): Use new helper function.
6058 2016-11-11 Richard Biener <rguenther@suse.de>
6060 PR tree-optimization/71575
6061 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
6064 2016-11-11 Richard Biener <rguenther@suse.de>
6067 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
6068 about uninitialized destination arg of BIT_INSERT_EXPR.
6070 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
6073 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
6074 terminology. Expand to remove ambiguity.
6076 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
6078 PR rtl-optimization/78232
6079 * combine.c (try_combine): Add a big comment about why reusing i2dest
6081 (change_zero_ext): Do not call simplify_gen_binary, do the
6082 simplifications manually.
6084 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6086 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
6087 enable HImode and QImode to go in vector registers by default if
6088 the -mvsx-small-integer option is enabled.
6089 (rs6000_secondary_reload_simple_move): Likewise.
6090 (rs6000_preferred_reload_class): Don't force integer constants to
6091 be loaded into vector registers that we can easily make into
6092 memory (or being created in the GPRs and moved over with direct move).
6093 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
6094 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
6095 vector extraction on ISA 3.0 when the scalar integer can be
6096 allocated in vector registers. Generate the VEC_SELECT directy,
6097 and don't use UNSPEC's to avoid having the scalar type in a vector
6098 register. Make the expander target registers, and let the
6099 combiner fold in results storing to memory, if the machine
6101 (vsx_extract_<mode>_di): Likewise.
6102 (vsx_extract_<mode>_p9): Likewise.
6103 (vsx_extract_<mode>_di_p9): Likewise.
6104 (vsx_extract_<mode>_store_p9): Likewise.
6105 (vsx_extract_si): Likewise.
6106 (vsx_extract_<mode>_p8): Likewise.
6107 (p9_lxsi<wd>zx): Delete, no longer used.
6108 (p9_stxsi<wd>x): Likewise.
6109 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
6110 integers in vector registers for ISA 3.0.
6111 (QHI): Update comment.
6112 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
6113 vector extract instructions in sign/zero extend.
6114 (zero_extendhi<mode>): Likewise.
6115 (extendqi<mode>): Likewise.
6116 (extendhi<mode>2): Likewise.
6117 (HImode splitter for load/sign extend in vector register): Likewise.
6118 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
6119 optimizing floating point conversions to/from small data types and
6120 rewrite it to support QImode/HImode being allowed in vector
6121 registers on ISA 3.0.
6122 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6123 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
6124 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6125 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
6126 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6127 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
6128 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6129 VSPLITISW on ISA 2.07.
6130 (movhi_internal): Combine movhi_internal and movqi_internal into
6131 one mov<mode>_internal with an iterator. Add support for QImode
6132 and HImode being allowed in vector registers. Make large number
6133 of attributes and constraints easier to read.
6134 (movqi_internal): Likewise.
6135 (mov<mode>_internal): Likewise.
6136 (movdi_internal64): Fix constraint to allow loading -16..15 with
6137 VSPLITISW on ISA 2.07.
6138 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
6141 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
6143 PR rtl-optimization/78241
6144 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
6145 but emit initial peel copy if niter expr is not reliable.
6147 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
6149 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
6150 (maybe_record_trace_start): If the CFI is different on the new and
6151 old paths, print out both to the dump file before ICEing.
6153 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
6155 * target.def (additional_allocno_class_p): New.
6156 * hooks.h (hook_bool_reg_class_t_false): New prototype.
6157 * hooks.c (hook_bool_reg_class_t_false): New.
6158 * ira.c (setup_allocno_and_important_classes): Use the new hook.
6159 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
6160 * doc/tm.texi: Update.
6162 2016-11-10 Jason Merrill <jason@redhat.com>
6164 * gengtype.c (new_structure): Append to structures list.
6165 (find_structure): Likewise.
6167 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
6169 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
6170 this_dir is 2. Check for this_dir non-zero before dir != this_dir
6173 2016-11-10 Jakub Jelinek <jakub@redhat.com>
6175 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
6176 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
6178 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
6179 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
6180 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
6181 teams distribute parallel for simd even to distribute and teams
6182 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
6183 OMP_CLAUSE_DEPEND_SINK case.
6184 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
6185 (omp_no_lastprivate): Removed.
6186 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
6187 (gimplify_omp_for): Likewise.
6188 (computable_teams_clause): Fail for automatic vars from current
6189 function not yet seen in bind expr.
6190 * langhooks.c (lhd_omp_scalar_p): New function.
6191 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
6192 * varpool.c (varpool_node::get_create): Set node->offloading
6193 even for DECL_EXTERNAL decls.
6194 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
6195 (LANG_HOOKS_OMP_SCALAR_P): Define.
6196 (LANG_HOOKS_DECLS): Use it.
6198 2016-11-10 Martin Liska <mliska@suse.cz>
6201 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
6202 only when SWITCH_BODY is a BIND_EXPR.
6204 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
6207 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
6208 on the context only when it has no DIE yet.
6210 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
6212 * arm.h (target_cpus): Delete.
6213 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
6214 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
6215 (all_architectures): Likewise.
6216 (arm_option_override): Adjust use of CPU enums.
6217 (arm_sched_reorder): Likewise.
6218 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
6219 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
6220 * arm/genopt.sh (processor_type): Prefix enumeration entries with
6222 * arm-tables.opt: Regenerated.
6224 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
6226 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
6228 * config/aarch64/aarch64-tune.md: Regenerated.
6229 * config/arm/arm-cores.def (falkor): New core.
6230 * config/arm/arm-tables.opt: Regenerated.
6231 * config/arm/arm-tune.md: Regenerated.
6232 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
6233 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
6234 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
6235 (ARM Options/-mtune): Likewise.
6237 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
6240 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6242 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6243 (propagate_vr_accross_jump_function): Likewise.
6244 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6245 (load_from_param_1): New.
6246 (load_from_unmodified_param): Factor common part into load_from_param_1.
6247 (load_from_param): New.
6248 (compute_complex_assign_jump_func): Handle unary expressions.
6249 (ipa_write_jump_function): Likewise.
6250 (ipa_read_jump_function): Likewise.
6252 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
6254 * simplify-rtx.c (simplify_binary_operation_1): Simplify
6255 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
6256 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
6259 2016-11-09 David Malcolm <dmalcolm@redhat.com>
6261 * print-rtl-function.c: Include varasm.h.
6262 (print_any_param_name): New function.
6263 (print_param): New function.
6264 (print_rtx_function): Call print_param for each argument.
6265 * print-rtl.c (rtx_writer::finish_directive): New function.
6266 * print-rtl.h (rtx_writer::finish_directive): New decl.
6268 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
6271 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
6272 operand 0 as earlyclobber.
6273 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
6275 2016-11-09 Martin Liska <mliska@suse.cz>
6277 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
6279 2016-11-09 Jakub Jelinek <jakub@redhat.com>
6282 * builtins.c (expand_builtin_memcmp): Formatting fix.
6284 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
6285 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
6286 or of them, renumber other enumerators.
6287 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
6288 * doc/invoke.texi: Document -fsanitize=shift-base and
6289 -fsanitize-shift-exponent, document -fsanitize=shift as
6290 having those 2 suboptions.
6292 2016-11-09 Richard Biener <rguenther@suse.de>
6294 * fold-const.c (tree_swap_operands_p): Remove unused arg.
6295 * fold-const.c (tree_swap_operands_p): Likewise.
6296 (fold_binary_loc): Adjust.
6297 (fold_ternary_loc): Likewise.
6298 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
6299 * gimple-fold.c (fold_stmt_1): Likewise.
6300 * gimple-match-head.c (gimple_resimplify2): Likewise.
6301 (gimple_resimplify3): Likewise.
6302 (gimple_simplify): Likewise.
6303 * tree-ssa-dom.c (record_equality): Likewise.
6304 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
6305 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
6306 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
6308 2016-11-09 Richard Biener <rguenther@suse.de>
6310 * tree-ssa-dom.c (canonicalize_comparison): Remove.
6311 (optimize_stmt): Remove redundant pre-propagation canonicalization
6312 of comparison operand order.
6314 2016-11-09 Martin Liska <mliska@suse.cz>
6316 * fold-const-call.c (fold_const_call): Fix the folding.
6318 2016-11-09 Richard Biener <rguenther@suse.de>
6320 * common.opt (flag_evaluation_order): Remove.
6321 * expr.c (expand_operands): Remove code guarded by
6322 flag_evaluation_order.
6323 * fold-const.c (reorder_operands_p): Remove, it always returns
6325 (negate_expr_p): Remove calls to reorder_operands_p.
6326 (fold_negate_expr): Likewise.
6327 (tree_swap_operands_p): Likewise.
6328 (fold_binary_loc): Likewise.
6330 2016-11-09 Andreas Schwab <schwab@suse.de>
6333 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
6334 insns operating on a register.
6336 2016-11-09 Richard Biener <rguenther@suse.de>
6338 PR tree-optimization/78007
6339 * tree-vect-stmts.c (vectorizable_bswap): New function.
6340 (vectorizable_call): Call vectorizable_bswap for
6341 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
6343 2016-11-09 Richard Biener <rguenther@suse.de>
6345 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6346 Look at the DR_BASE_ADDRESS object for forcing alignment.
6348 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6350 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6351 (propagate_vr_accross_jump_function): Likewise.
6352 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6353 (load_from_param_1): New.
6354 (load_from_unmodified_param): Factor common part into load_from_param_1.
6355 (load_from_param): New.
6356 (compute_complex_assign_jump_func): Handle unary expressions.
6357 (ipa_write_jump_function): Likewise.
6358 (ipa_read_jump_function): Likewise.
6360 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6363 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
6364 Also fold constant passed as argument while computing value range.
6365 (propagate_constants_accross_call): Pass param type.
6366 * ipa-prop.c: export ipa_get_callee_param_type.
6367 * ipa-prop.h: export ipa_get_callee_param_type.
6369 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6371 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
6372 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
6374 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6376 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
6377 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
6378 ASAN_STACK_MAGIC_MIDDLE.
6379 (asan_global_struct): Increase the size of fields.
6380 (asan_add_global): Add new field constructor.
6381 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
6382 __asan_version_mismatch_check_v8.
6384 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
6386 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
6389 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
6392 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
6393 Handle ASHIFT and LSHIFTRT.
6394 (dimode_scalar_chain::compute_convert_gain): Ditto.
6395 (dimode_scalar_chain::convert_insn): Ditto.
6397 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6399 * gimple-ssa-store-merging.c: Include selftest.h
6400 (verify_array_eq): New function.
6401 (verify_shift_bytes_in_array): Likewise.
6402 (verify_shift_bytes_in_array_right): Likewise.
6403 (verify_clear_bit_region): Likewise.
6404 (verify_clear_bit_region_be): Likewise.
6405 (store_merging_c_tests): Likewise.
6406 * selftest.h (store_merging_c_tests): Declare prototype.
6407 * selftest-run-tests.c (selftest::run_tests): Run
6408 store_merging_c_tests.
6410 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6412 * config/arm/arm.opt (mold-rtx-costs): Delete.
6413 (mnew-generic-costs): Delete.
6414 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
6415 * config/arm/arm.c (arm_rtx_costs_1): Delete.
6416 (arm_size_rtx_costs): Likewise.
6417 (arm_slowmul_rtx_costs): Likewise.
6418 (arm_fastmul_rtx_costs): Likewise.
6419 (arm_xscale_rtx_costs): Likewise.
6420 (arm_9e_rtx_costs): Likewise.
6421 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
6422 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
6423 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
6424 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
6425 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
6426 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
6427 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
6428 arm_cortex_m7_tune):
6429 Delete rtx_costs field.
6430 (arm_new_rtx_costs): Rename to...
6431 (arm_rtx_costs_internal): ... This.
6432 (arm_rtx_costs): Remove old way of doing rtx costs.
6434 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6436 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
6437 (arm_fastmul_tune): Likewise.
6438 (arm_strongarm_tune): Likewise.
6439 (arm_xscale_tune): Likewise.
6440 (arm_9e_tune): Likewise.
6441 (arm_marvell_pj4_tune): Likewise.
6442 (arm_v6t2_tune): Likewise.
6443 (arm_v6m_tune): Likewise.
6444 (arm_fa726te_tune): Likewise.
6446 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6448 PR tree-optimization/78234
6449 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
6452 2016-11-08 Martin Liska <mliska@suse.cz>
6455 * dbgcnt.def: Add new debug counter asan_use_after_scope.
6456 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
6457 with a value expr. Do not add artificial variables to
6458 live_switch_vars. Use the debug counter.
6459 (gimplify_target_expr): Use the debug counter.
6460 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
6461 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
6462 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
6464 2016-11-08 Richard Biener <rguenther@suse.de>
6466 * tree-vect-stmts.c (get_group_load_store_type): If the
6467 access is aligned do not trigger peeling for gaps.
6468 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
6469 force alignment of vars with DECL_USER_ALIGN.
6471 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6473 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
6475 2016-11-08 Richard Biener <rguenther@suse.de>
6477 PR tree-optimization/78205
6478 * tree-vect-stmts.c (vectorizable_load): Move check whether
6479 we may run into gaps when BB vectorizing SLP permutations ...
6480 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
6481 here where we can do a more precise check.
6483 2016-11-08 Richard Biener <rguenther@suse.de>
6485 PR tree-optimization/78224
6486 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6487 Split the fallthru edge in case its successor may have PHIs.
6488 Do not free dominance info.
6490 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6493 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6494 EH info even for bzhi and pdep/pext.
6496 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
6498 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
6499 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
6501 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
6503 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
6505 * config/rs6000/vector.md (div<mode>3): Ditto.
6507 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
6509 * configure.ac (.hidden): Change to conftest_s string. Provide string
6511 (gcc_cv_ld_hidden): Yes for AIX.
6512 * configure: Regenerate.
6514 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
6516 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
6517 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
6518 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
6519 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6520 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
6521 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
6523 (rs6000_xcoff_visibility): New.
6524 (rs6000_xcoff_declare_function_name): Add visibility support.
6525 (rs6000_xcoff_asm_globalize_decl_name): New.
6526 (rs6000_xcoff_asm_output_aligned_decl_common): New.
6527 (rs6000_asm_weaken_decl): New.
6528 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
6529 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
6532 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
6535 * incpath.c (remove_dup): Also silently ignore EPERM.
6537 2016-11-07 Martin Jambor <mjambor@suse.cz>
6539 * tree.c (verify_type_variant): Use pointer comparison to check that
6540 TYPE_SIZE_UNIT match.
6542 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6545 * dse.c (dse_step5): Call scan_reads even if just
6546 insn_info->frame_read. Improve and fix dump file messages.
6549 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
6550 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
6552 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6555 * match.pd: Add following two patterns:
6556 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
6557 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
6559 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
6561 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
6562 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
6563 * rtl.h (duplicate_reg_notes): Declare.
6564 * rtlanal.c (duplicate_reg_note): New function.
6566 PR rtl-optimization/77309
6567 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
6568 don't assume an equality comparison for plain COMPARE.
6569 (simplify_comparison): Pass a more accurate code to
6570 make_compound_operation.
6572 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
6574 * target.def (compute_pressure_classes): New target hook.
6575 * doc/tm.texi.in: Document it.
6576 * doc/tm.texi: Regenerate.
6577 * ira.c (setup_pressure_classes): Call target hook if defined.
6579 2016-11-07 David Malcolm <dmalcolm@redhat.com>
6581 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
6583 (rtx_writer::print_rtx): In compact mode, omit trailing operands
6584 that have the default values.
6585 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
6587 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
6588 label string from expected dump.
6589 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
6592 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6595 * alias.c (nonoverlapping_memrefs_p): If one decl is
6596 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
6598 2016-11-07 Richard Biener <rguenther@suse.de>
6601 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6604 2016-11-07 Richard Biener <rguenther@suse.de>
6606 PR tree-optimization/78218
6607 * gimple-ssa-store-merging.c
6608 (pass_store_merging::terminate_all_aliasing_chains):
6609 Drop unused argument, fix alias check to also consider uses.
6610 (pass_store_merging::execute): Adjust.
6612 2016-11-07 Richard Biener <rguenther@suse.de>
6614 PR tree-optimization/78228
6615 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
6618 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6621 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
6622 aarch64_simd_shift_imm_<mode> predicate for operand 1.
6623 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
6624 to restrict them to an appropriate range and add FAIL check if the
6625 region they specify is out of range. Delete useless constraint
6627 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
6628 2 and 3 to restrict their range and add pattern predicate.
6630 2016-11-07 Martin Liska <mliska@suse.cz>
6632 * asan.c (enum asan_check_flags): Move the enum to header file.
6633 (asan_init_shadow_ptr_types): Make type creation more generic.
6634 (shadow_mem_size): New function.
6635 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
6636 Rewritten stack unpoisoning code.
6637 (build_shadow_mem_access): Add new argument return_address.
6638 (instrument_derefs): Instrument local variables if use after scope
6639 sanitization is enabled.
6640 (asan_store_shadow_bytes): New function.
6641 (asan_expand_mark_ifn): Likewise.
6642 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
6643 * asan.h (enum asan_mark_flags): Moved here from asan.c
6644 (asan_protect_stack_decl): Protect all declaration that need
6646 (asan_sanitize_use_after_scope): New function.
6647 (asan_no_sanitize_address_p): Likewise.
6648 * cfgexpand.c (partition_stack_vars): Consider
6649 asan_sanitize_use_after_scope in condition.
6650 (expand_stack_vars): Likewise.
6651 * common.opt (-fsanitize-address-use-after-scope): New option.
6652 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
6653 Explain the parameter.
6654 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
6655 * gimplify.c (build_asan_poison_call_expr): New function.
6656 (asan_poison_variable): Likewise.
6657 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
6658 variables that have address taken.
6659 (gimplify_decl_expr): Likewise.
6660 (gimplify_target_expr): Likewise for C++ temporaries.
6661 (sort_by_decl_uid): New function.
6662 (gimplify_expr): Unpoison all variables for a label we can jump
6663 from outside of a scope.
6664 (gimplify_switch_expr): Unpoison variables defined in the switch
6666 (gimplify_function_tree): Clear asan_poisoned_variables.
6667 (asan_poison_variables): New function.
6668 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
6669 * internal-fn.c (expand_ASAN_MARK): New function.
6670 * internal-fn.def (ASAN_MARK): Declare.
6671 * opts.c (finish_options): Handle -fstack-reuse if
6672 -fsanitize-address-use-after-scope is enabled.
6673 (common_handle_option): Enable address sanitization if
6674 -fsanitize-address-use-after-scope is enabled.
6675 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
6677 * params.h: Likewise.
6678 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
6679 * sanitizer.def: Define __asan_poison_stack_memory and
6680 __asan_unpoison_stack_memory functions.
6681 * asan.c (asan_mark_poison_p): New function.
6682 (transform_statements): Handle asan_mark_poison_p calls.
6683 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
6685 2016-11-07 Tamar Christina <tamar.christina@arm.com>
6688 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
6690 2016-11-07 Martin Liska <mliska@suse.cz>
6692 * tree-profile.c (gimple_gen_time_profiler): Set proper type
6693 to time_profiler_counter_ptr.
6695 2016-11-07 Richard Biener <rguenther@suse.de>
6697 PR tree-optimization/37150
6698 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
6700 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
6701 (vect_analyze_slp_cost_1): Account for the real number of
6702 permutations emitted and for dead loads.
6703 (vect_transform_slp_perm_load): Add n_perms parameter counting
6704 the number of emitted permutations.
6705 * tree-vect-stmts.c (vectorizable_load): Adjust.
6707 2016-11-07 Richard Biener <rguenther@suse.de>
6709 PR tree-optimization/78189
6710 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
6711 alignment computation.
6713 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6715 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
6717 2016-11-05 Martin Sebor <msebor@redhat.com>
6719 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
6722 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
6726 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
6728 2016-11-04 Jakub Jelinek <jakub@redhat.com>
6731 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
6732 doesn't have rtl set.
6734 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6736 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
6737 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
6738 rs6000_gimple_fold_builtin.
6739 (rs6000_gimple_fold_builtin): New function. Add handling for
6740 early expansion of vector addition builtins.
6742 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6744 * expr.h (copy_blkmode_from_reg): Delete.
6745 * expr.c (copy_blkmode_from_reg): Make static.
6747 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6749 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
6750 * combine.c (LOAD_EXTEND_OP): Delete.
6751 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
6752 * cse.c (LOAD_EXTEND_OP): Delete.
6753 * fold-const.c (LOAD_EXTEND_OP): Likewise.
6754 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
6755 * postreload.c (LOAD_EXTEND_OP): Delete.
6756 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
6757 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
6758 (find_reloads): Likewise.
6759 * reload1.c (eliminate_regs_1): Likewise.
6760 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
6761 (num_sign_bit_copies1): Likewise.
6763 2016-11-04 David Malcolm <dmalcolm@redhat.com>
6765 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
6766 (selftest::ix86_test_dumping_hard_regs): New function.
6767 (selftest::ix86_run_selftests): New function.
6768 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
6769 selftest::ix86_run_selftests.
6770 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
6771 * doc/tm.texi: Regenerate
6772 * selftest-rtl.h: New file.
6773 * rtl-tests.c: Include "selftest-rtl.h".
6774 (selftest::assert_rtl_dump_eq): Make non-static.
6775 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
6776 (selftest::test_dumping_regs): Update comment.
6777 * selftest-run-tests.c: Include "target.h".
6778 (selftest::run_tests): If non-NULL, call
6779 targetm.run_target_selftests.
6780 * target.def (run_target_selftests): New hook.
6782 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6784 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
6785 representative core for this architecture.
6786 * config/arm/arm-cores.def (cortex-m33): Define new processor.
6787 * config/arm/arm-tables.opt: Regenerate.
6788 * config/arm/arm-tune.md: Likewise.
6789 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
6790 valid -mcpu options.
6791 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
6793 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6795 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
6796 representative core for this architecture.
6797 * config/arm/arm-cores.def (cortex-m23): Define new processor.
6798 * config/arm/arm-tables.opt: Regenerate.
6799 * config/arm/arm-tune.md: Likewise.
6800 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
6801 this tuning parameters apply to in the comment.
6802 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
6803 valid -mcpu options.
6804 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
6806 2016-11-04 Bin Cheng <bin.cheng@arm.com>
6808 * fold-const.c (fold_cond_expr_with_comparison): Remove call
6809 to pedantic_non_lvalue_loc. Remove useless code for lvalue
6810 where cond_expr can't be a lvalue.
6812 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
6814 * config/arc/arc.c (arc_process_double_reg_moves): Use
6816 * config/arc/arc.md (movsi_insn): Disable unsupported move
6817 instructions for ARCv2 cores.
6818 (movdi): Use prepare_move_operands.
6819 (movsf, movdf): Use move_dest_operand predicate.
6820 * config/arc/constraints.md (Chs): Enable when barrel shifter is
6822 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
6823 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
6825 (dexcl_3op_peep2_insn_nores): Likewise.
6826 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
6827 (LINK_COMMAND_SPEC): Remove.
6829 2016-11-04 Richard Biener <rguenther@suse.de>
6832 * loop-invariant.c (find_exits): Record entering inner
6833 loops as possibly exiting to handle infinite sub-loops.
6834 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
6835 (fill_always_executed_in_1): Honor infinite child loops.
6837 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6840 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
6841 has already been adjusted for endianness, so don't adjust it any
6845 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
6846 ICmode unless we have standard PowerPC floating point.
6847 * config/rs6000/rs6000.md (FP iterator): Likewise.
6848 (FMOVE128 iterator): Likewise.
6850 2016-11-03 Jakub Jelinek <jakub@redhat.com>
6851 Alexandre Oliva <aoliva@redhat.com>
6852 Jason Merrill <jason@redhat.com>
6856 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
6858 * langhooks.c (lhd_type_dwarf_attribute): New function.
6859 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
6860 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
6861 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
6862 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
6863 (check_qualified_type, check_aligned_type): Call it.
6864 * dwarf2out.c (modified_type_die): Don't use type_main_variant
6865 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6866 check_base_type and check_lang_type.
6867 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
6868 return early. For pointer-to-data-member add DW_AT_use_location
6870 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
6872 (gen_type_die_with_usage): Don't use type_main_variant
6873 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6874 check_base_type and check_lang_type. Formatting fixes. Call
6875 get_debug_type langhook.
6877 2016-11-03 Jason Merrill <jason@redhat.com>
6879 * tree.c (check_lang_type): New.
6880 (check_qualified_type): Use it.
6881 (check_aligned_type): Use it.
6882 * tree.h: Declare it.
6884 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
6886 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
6887 (arm*-freebsd*): Likewise.
6888 (arm*-*-netbsdelf*): Likewise.
6889 (arm*-*-linux*): Likewise.
6890 (arm*-*-uclinux*eabi*): Likewise.
6891 (arm*-*-phoenix*): Likewise.
6892 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
6893 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
6894 specified. Default to arm6 if target_cpu_cname is not set.
6895 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
6896 default cpu has been correctly configured.
6897 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
6898 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
6899 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
6900 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
6901 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6902 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
6903 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6905 2016-11-03 Jiong Wang <jiong.wang@arm.com>
6907 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
6908 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
6909 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
6910 (output_cfa_loc): Support DW_CFA_val_expression.
6911 (output_cfa_loc_raw): Likewise.
6912 (output_cfi): Likewise.
6913 (output_cfi_directive): Likewise.
6914 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
6915 (dw_cfi_oprnd2_desc): Likewise.
6916 (mem_loc_descriptor): Recognize new pattern generated for value
6919 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
6921 PR rtl-optimization/78186
6922 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
6923 well, when converting to IOR.
6925 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
6927 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
6928 (vec_interleave_highv8qi): Likewise.
6930 2016-11-03 Martin Liska <mliska@suse.cz>
6932 * profile.c (instrument_values): Fix coding style.
6933 (branch_prob): Use renamed function.
6934 * tree-profile.c (init_ic_make_global_vars): Likewise.
6935 (gimple_init_edge_profiler): Rename to
6936 gimple_init_gcov_profiler.
6937 tree_time_profiler_counter variable declaration.
6938 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
6940 * value-prof.h: Remove an argument.
6942 2016-11-03 Richard Biener <rguenther@suse.de>
6944 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
6945 symtab_node::get_create.
6947 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6949 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
6950 Move comments into more natural position.
6952 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
6954 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
6955 (PTRDIFF_TYPE): Define as int.
6957 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6959 * ccmp.c (expand_ccmp_expr_1): Adjust.
6960 (expand_ccmp_expr): Likewise.
6961 (expand_ccmp_next): Likewise.
6962 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
6963 (aarch64_gen_ccmp_first): Likewise.
6964 * doc/tm.texi: Regenerate.
6965 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
6966 (gen_ccmp_next): Likewise.
6968 2016-11-03 Bin Cheng <bin.cheng@arm.com>
6970 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
6971 (vect_is_simple_reduction): Swap cond_reduction by inversion.
6973 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
6975 * config/i386/i386.c (ix86_init_libfuncs): New. Call
6976 darwin_rename_builtins here.
6977 (ix86_expand_divmod_libfunc): New.
6978 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
6979 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
6981 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
6982 Nathan Sidwell <nathan@acm.org>
6984 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
6986 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
6988 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
6990 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
6991 to format MODE_INT and MODE_PARTIAL_INT literals.
6993 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
6996 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
6997 NULL if TARGET_SPE_ABI.
6999 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7001 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
7002 clear padding bits even when they're less than a byte.
7004 2016-11-02 Richard Biener <rguenther@suse.de>
7006 * gimple-ssa-store-merging.c: Include gimplify-me.h.
7007 (imm_store_chain_info::output_merged_stores): Force base_addr
7008 to be proper GIMPLE for a MEM_REF address.
7009 (pass_store_merging::execute): Restrict negative bitpos
7010 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
7011 check. Take into account non-NULL_TREE offset if the base
7012 is already addressable.
7014 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
7016 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
7018 (aarch64_be_crypto_sha1hv4si): New pattern.
7020 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
7022 * config/aarch64/aarch64.md (add<mode>3): Remove
7023 redundant code. Don't split frame based additions.
7025 2016-11-02 Richard Biener <rguenther@suse.de>
7027 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
7028 redundant val and dest members.
7029 (store_immediate_info::store_immediate_info): Adjust.
7030 (merged_store_group::merged_store_group): Adjust.
7031 (merged_store_group::apply_stores): Likewise.
7032 (struct imm_store_chain_info): Add base_addr field.
7033 (imm_store_chain_info::imm_store_chain_info): New constructor.
7034 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
7035 (imm_store_chain_info::output_merged_store): Likewise. Use
7036 addr_base which is already the address.
7037 (imm_store_chain_info::output_merged_stores): Likewise.
7038 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
7039 imm_store_chain_info instead of base. Fix alias check.
7040 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
7041 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
7042 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
7043 use the address of the base and adjust for other changes.
7045 2016-11-02 Martin Liska <mliska@suse.cz>
7047 * fold-const-call.c (host_size_t_cst_p): Test whether
7048 t is convertible to size_t.
7050 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7052 PR tree-optimization/78170
7053 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
7054 introduced by native_encode_expr on little-endian as well.
7056 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7058 PR tree-optimization/78162
7059 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
7062 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7064 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
7066 (aarch64_next_callee_save): Likewise.
7067 (aarch64_pushwb_single_reg): Likewise.
7068 (aarch64_gen_storewb_pair): Likewise.
7069 (aarch64_push_regs): Likewise.
7070 (aarch64_gen_loadwb_pair): Likewise.
7071 (aarch64_pop_regs): Likewise.
7072 (aarch64_gen_store_pair): Likewise.
7073 (aarch64_gen_load_pair): Likewise.
7074 (aarch64_save_callee_saves): Likewise.
7075 (aarch64_restore_callee_saves): Likewise.
7077 2016-11-02 Richard Biener <rguenther@suse.de>
7079 PR tree-optimization/78035
7080 PR tree-optimization/77964
7081 * gimple-pretty-print.c (pp_points_to_solution): Print
7082 vars_contains_interposable.
7083 * tree-ssa-alias.c: Include varasm.h.
7084 (ptrs_compare_unequal): Check vars_contains_interposable and
7085 decl_binds_to_current_def_p.
7086 (dump_points_to_solution): Dump vars_contains_interposable.
7087 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
7089 * tree-ssa-structalias.c: Include varasm.h.
7090 (set_uids_in_ptset): Record whether vars contains a
7091 not decl_binds_to_current_def_p variable in vars_contains_interposable.
7092 (ipa_escaped_pt): Update initializer.
7094 2016-11-02 Richard Biener <rguenther@suse.de>
7096 PR tree-optimization/78047
7097 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
7098 fake field at offset zero conservatively regarding to may_have_pointers.
7100 2016-11-02 Richard Biener <rguenther@suse.de>
7102 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
7103 infer_value_range on stmt ops and update value-ranges.
7104 Dump visited stmts and blocks.
7105 (evrp_dom_walker::push_value_range): Dump changes.
7106 (evrp_dom_walker::pop_value_range): Likewise.
7107 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
7109 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7111 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
7113 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
7115 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7117 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
7118 and adjust for that.
7119 * cfgrtl.h (delete_insn_chain): Adjust prototype.
7121 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7123 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
7125 (transcode_memory_rtx): Likewise.
7126 (move_to_acc): Likewise.
7127 (move_from_acc): Likewise.
7128 (move_acc_to_reg): Likewise.
7129 (move_to_x): Likewise.
7130 (move_to_hl): Likewise.
7131 (move_to_de): Likewise.
7132 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
7133 (rs6000_emit_savres_rtx): Likewise.
7134 (rs6000_emit_prologue): Likewise.
7135 * reorg.c (update_reg_unused_notes): Likewise.
7136 * rtl.h (remove_note): Adjust prototype.
7137 * rtlanal.c (remove_note): Make argument type rtx_insn *.
7139 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7141 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
7142 variables so some can be rtx_insn *.
7143 (alpha_emit_xfloating_libcall): Likewise.
7144 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
7145 (mips_legitimize_tls_address): Likewise.
7146 * optabs.c (expand_binop): Likewise.
7147 * reload1.c (gen_reload): Likewise.
7149 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7151 * reorg.c (relax_delay_slots): Split up the trial variable.
7153 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7155 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
7156 of variables rtx_insn *.
7157 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
7158 (legitimize_tls_address): Likewise.
7159 * config/bfin/bfin.c (hwloop_optimize): Likewise.
7160 (bfin_gen_bundles): Likewise.
7161 * config/c6x/c6x.c (reorg_split_calls): Likewise.
7162 (c6x_reorg): Likewise.
7163 * config/frv/frv.c (frv_reorder_packet): Likewise.
7164 * config/i386/i386.c (ix86_split_idivmod): Likewise.
7165 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
7166 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
7167 * config/mn10300/mn10300.c: Likewise.
7168 * config/rl78/rl78.c: Likewise.
7169 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
7170 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
7171 (sh_expand_cmpnstr): Likewise.
7172 (sh_expand_strlen): Likewise.
7173 (sh_expand_setmem): Likewise.
7174 * config/sh/sh.md: Likewise.
7175 * emit-rtl.c (emit_pattern_before): Likewise.
7176 * except.c: Likewise.
7177 * final.c: Likewise.
7180 2016-11-01 Jason Merrill <jason@redhat.com>
7182 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
7183 a COND_EXPR with constant condition.
7185 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7187 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
7188 and its initialization.
7190 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7192 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
7195 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7197 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
7198 argument, don't call add_linkage_name if it is true.
7199 (gen_variable_die): For C++ inline static data members, consider the
7200 initial call when old_die is NULL to be declaration and call
7201 add_name_and_src_coords_attributes in that case with true as
7202 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
7203 (gen_member_die): For C++ inline static data members, emit a
7204 definition DIE right away in DW_TAG_compile_unit context.
7206 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
7209 * config/pa/pa.md: Add new shift/add patterns to handle
7210 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
7212 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
7214 * config/xtensa/xtensa-protos.h
7215 (xtensa_use_return_instruction_p): New prototype.
7216 * config/xtensa/xtensa.c (xtensa_current_frame_size,
7217 xtensa_callee_save_size): Remove.
7218 (struct machine_function): Add new fields: current_frame_size,
7219 callee_save_size, frame_laid_out and epilogue_done.
7220 (compute_frame_size, xtensa_expand_prologue,
7221 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
7222 cfun->machine->callee_save_size and xtensa_current_frame_size
7223 with cfun->machine->current_frame_size.
7224 (compute_frame_size): Update cfun->machine->frame_laid_out and
7225 don't update frame layout after reload completion.
7226 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
7227 instead of zeroing xtensa_current_frame_size.
7228 (xtensa_use_return_instruction_p): New function.
7229 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
7231 (INITIAL_ELIMINATION_OFFSET): Use return value of
7232 compute_frame_size instead of xtensa_current_frame_size value.
7233 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
7234 function xtensa_use_return_instruction_p instead of inline code.
7236 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7238 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
7239 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
7240 * dwarf2out.c (rnglist_idx): New variable.
7241 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
7242 (DEBUG_RNGLISTS_SECTION): Define.
7243 (ranges_base_label): New variable.
7244 (size_of_die) <case dw_val_class_range_list>: If using
7245 DW_FORM_rnglistx, count size of uleb128 of range list index.
7246 (value_format) <case dw_val_class_range_list>: For
7247 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
7248 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
7249 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
7250 (add_ranges_num): Remove useless prototype. Don't multiply
7251 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
7252 for new fields added to dw_ranges struct.
7253 (add_ranges): Add maybe_new_sec argument and pass it
7254 through to add_ranges_num.
7255 (note_rnglist_head): New function.
7256 (add_ranges_by_labels): Pass true as maybe_new_sec to
7257 add_ranges_num, call note_rnglist_head on the head of the list.
7258 (output_ranges): Add function comment. Switch to
7259 .debug_ranges section here and emit .Ldebug_ranges0 label.
7260 (index_rnglists, output_rnglists): New functions.
7261 (gen_subprogram_die): Formatting fixes.
7262 (add_high_low_attributes): Don't divide offsets
7263 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
7264 first list element or when pointing into the middle of
7265 a list. Pass true as second argument to add_ranges on the
7266 first block fragment after cold/hot section switch.
7267 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
7268 section instead of .debug_ranges. Initialize
7269 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
7270 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
7271 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
7272 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
7273 Call output_rnglists for -gdwarf-5.
7274 (dwarf2out_c_finalize): Clear rnglist_idx.
7276 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
7278 * combine.c (simplify_compare_const): Add gcc_fallthrough.
7280 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
7281 Tamar Christina <tamar.christina@arm.com>
7283 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
7284 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
7285 (vmaxnmq_f32): Likewise.
7286 (vminnm_f32): Likewise.
7287 (vminnmq_f32): Likewise.
7288 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
7290 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
7293 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
7295 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
7296 binary floating point types supported by the hardware except for
7298 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
7299 vector instruction for optimizing extracting a SImode from a
7300 V4SImode vector and converting it to floating point.
7301 (vsx_xvcvuxwdp_df): Likewise.
7302 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
7303 registers to be any VSX register. Move stores to the end of the
7305 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
7306 to optimize extracting a SImode from a V4SImode vector and
7307 converting it to a binary floating point type supported by the
7308 hardware. Use the vector converts instead of extracting the
7309 element, sign extending it, and then converting it to double.
7310 Other floating point types than double first convert to double,
7311 then the double is converted to that type.
7312 (vsx_extract_si_<uns>float_<mode>): Likewise.
7314 2016-10-31 Andrew Pinski <apinski@cavium.com>
7316 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
7317 Rewrite handling of part num to handle the case where
7318 multiple implementers share the same part num.
7320 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7321 Jakub Jelinek <jakub@redhat.com>
7323 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
7324 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
7326 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7328 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
7329 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
7330 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
7331 (is_cu_die, is_unit_die): Likewise.
7332 (should_move_die_to_comdat, break_out_comdat_types): Adjust
7333 comments for DWARF5 DW_UT_type units.
7334 (output_compilation_unit_header): Add UT argument, output
7335 start of DWARF5 .debug_info section header.
7336 (output_comp_unit): Add dwo_id argument. Adjust
7337 output_compilation_unit_header caller, for DW_UT_split_compile
7338 emit dwo_id field, otherwise padding1. Emit padding2 field.
7339 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
7340 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
7341 (output_skeleton_debug_sections): Add dwo_id argument, for
7342 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
7343 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
7344 DW_UT_type or DW_UT_split_type units rather than .debug_types.
7345 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
7346 DW_TAG_compile_unit for skeleton unit die. Don't add
7347 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
7348 address to output_comp_unit and output_skeleton_debug_sections.
7350 * dwarf2out.c (debug_line_str_section): New variable.
7351 (debug_line_str_hash): Likewise.
7352 (DEBUG_LINE_STR_SECTION): Define.
7353 (set_indirect_string): Handle DW_FORM_line_strp like
7355 (find_string_form): Fix up formatting.
7356 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
7358 (output_die): Handle DW_FORM_line_strp.
7359 (DWARF5_USE_DEBUG_LINE_STR): Define.
7360 (output_line_string): New function.
7361 (output_file_names): Add -gdwarf-5 support.
7362 (output_line_info): Likewise.
7363 (init_sections_and_labels): Initialize debug_line_str_section.
7364 (output_indirect_string): Change 2nd argument from void *
7365 to enum dwarf_form form, compare with form rather than
7367 (output_indirect_strings): Pass DW_FORM_strp to
7368 output_indirect_string traversion.
7369 (dwarf2out_finish): Output .debug_line_str strings.
7370 (dwarf2out_c_finalize): Clear debug_line_str_section and
7371 debug_line_str_hash.
7373 2016-10-31 Tom Tromey <tom@tromey.com>
7376 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
7377 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
7378 DW_OP_GNU_push_tls_address case.
7379 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
7381 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7383 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
7384 for frame_offset_rel bit.
7385 (struct array_descr_info): Add rank field.
7386 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
7387 and placeholder_seen fields.
7388 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
7389 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
7390 DW_OP_pick 1 into DW_OP_over.
7391 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
7392 gen_variant_part): Clear placeholder_{arg,seen}.
7393 (loc_list_from_tree_1): Drop const from context argument.
7394 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
7395 (loc_list_for_address_of_addr_expr_of_indirect_ref,
7396 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
7398 (add_scalar_info): Drop const from context argument. Handle
7399 context->placeholder_arg.
7400 (add_bound_info): Drop const from context argument.
7401 (gen_descr_array_type_die): Drop const from ctx variable.
7402 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
7403 attribute and use a single DW_TAG_generic_subrange instead of
7404 7 DW_TAG_subrange_type for assumed rank arrays.
7406 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
7407 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
7408 from bool to 1-bit uchar bitfield. Add num_assigned and
7409 offset_emitted bitfields.
7410 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
7411 for dw_val_class_lineptr and dw_val_class_macptr. Handle
7412 dw_val_class_loclistsptr.
7413 (new_addr_loc_descr): Fix up formatting.
7414 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
7415 (add_AT_low_high_pc): Fix up formatting.
7416 (add_AT_loclistsptr): New function.
7417 (AT_lbl): Allow dw_val_class_loclistsptr.
7418 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
7419 Handle dw_val_class_loclistsptr.
7420 (loc_list_idx): New variable.
7421 (output_loclists_offsets, assign_location_list_indexes): New
7423 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
7424 add size_of_uleb128 of the index. Drop never used
7425 dwarf_split_debug_info AT_index handling. Handle
7426 dw_val_class_loclistsptr.
7427 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
7428 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
7429 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
7430 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
7431 DW_FORM_loclistx indexes.
7432 (output_attr_index_or_value): Fix up formatting. Don't handle
7433 dw_val_class_loc_list here.
7434 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
7435 For dw_val_class_loc_list call output_loc_list_offset rather than
7436 output_attr_index_or_value.
7437 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
7438 or .debug_loclists.dwo section name for debug_loc_section.
7439 (resolve_addr_in_expr): Formatting fix.
7440 (index_location_lists): Likewise.
7441 (dwarf2out_finish): If there are any location lists, for
7442 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
7443 index_location_lists only if have_location_lists. Call
7444 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
7445 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
7446 -gsplit-dwarf also emit offset table.
7448 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
7449 (size_of_die, value_format, output_die): Use
7450 DW_FORM_data16 for 128-bit dw_val_class_const_double or
7451 dw_val_class_wide_int.
7453 * dwarf2out.c (dwarf_op): Renamed to ...
7454 (dwarf_OP): ... this.
7455 (convert_descriptor_to_mode, scompare_loc_descriptor,
7456 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7457 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
7459 (dwarf_AT, dwarf_TAG): New functions.
7460 (check_die): Disallow DW_AT_call_all_calls next to
7461 DW_AT_GNU_all_call_sites.
7462 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
7463 and attributes instead of the corresponding GNU tag and attributes.
7464 (gen_subprogram_die): Likewise. Emit call site information even
7465 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
7466 DW_AT_defaulted in comment.
7467 (resolve_addr): Handle DW_AT_call_origin attribute on
7468 DW_TAG_call_site DIE like DW_AT_abstract_origin on
7469 DW_TAG_GNU_call_site DIE.
7471 * dwarf2out.c (dwarf_op): New function.
7472 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
7473 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
7474 (output_loc_operands, output_loc_operands_raw): Likewise.
7475 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
7476 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
7477 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
7478 if dwarf_version < 5.
7479 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
7481 (scompare_loc_descriptor, ucompare_loc_descriptor,
7482 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7483 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
7484 optimize_location_into_implicit_ptr): Likewise. Only punt for
7485 !dwarf_strict if dwarf_version < 5.
7486 (string_cst_pool_decl): Adjust comment.
7487 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
7489 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
7490 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7491 (struct dw_val_node): Add val_file_implicit field.
7492 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
7493 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
7494 output_die): Handle dw_val_class_const_implicit,
7495 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7496 (abbrev_die_table): Change into va_gc vec.
7497 (abbrev_die_table_allocated, abbrev_die_table_in_use,
7498 ABBREV_DIE_TABLE_INCREMENT): Remove.
7499 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
7500 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
7502 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
7503 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
7505 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
7507 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
7509 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
7511 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
7512 unit. Call optimize_abbrev_table.
7513 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
7514 abbrev_die_table being a va_gc vec.
7516 PR tree-optimization/77860
7517 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
7518 also integral complex and vector constants.
7520 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
7521 optimize_macinfo_range, save_macinfo_strings): Replace
7522 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
7523 (output_macinfo): Likewise. Emit .debug_macro* rather than
7524 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
7525 (init_sections_and_labels): Use .debug_macro* labels rather than
7526 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
7527 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
7528 or DW_AT_GNU_macros for -gdwarf-5.
7530 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
7532 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
7534 2016-09-11 Le-Chun Wu <lcwu@google.com>
7535 Mark Wielaard <mjw@redhat.com>
7537 * common.opt (Wshadow=global): New option. Default for -Wshadow.
7538 (Wshadow=local): New option.
7539 (Wshadow-local): Hidden alias for -Wshadow=local.
7540 (Wshadow=compatible-local): New option.
7541 (Wshadow-compatible-local): Hidden alias for
7542 -Wshadow=compatible-local.
7543 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
7544 Wshadow=compatible-local.
7546 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7548 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
7549 Check slp defs for COND_EXPR by swapping/inverting operands if the
7550 new parameter SWAP indicates so.
7551 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
7552 is isomorphic to the first stmt via swapping/inverting. Store swap
7553 information in the new parameter SWAP.
7554 (vect_build_slp_tree): New local array SWAP and pass it to function
7555 vect_build_slp_tree_1. Cleanup result handling code for function
7556 call to vect_get_and_check_slp_defs. Skip operand swapping if the
7557 order of operands has been fixed as indicated by SWAP[i].
7559 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7561 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
7562 unnecessary data dependence check after visited store stmt.
7564 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7566 PR tree-optimization/71915
7567 PR tree-optimization/71490
7568 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
7570 (find_basis_for_base_expr): Require stride types to match when
7572 (alloc_cand_and_find_basis): Record the stride type.
7573 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
7574 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
7575 the expressions having those types.
7576 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
7577 (create_mul_ssa_cand): Likewise.
7578 (create_mul_imm_cand): Likewise.
7579 (create_add_ssa_cand): Likewise.
7580 (create_add_imm_cand): Likewise.
7581 (legal_cast_p_1): Change interface to accept types rather than the
7582 expressions having those types.
7583 (legal_cast_p): Pass types to legal_cast_p_1.
7584 (slsr_process_cast): Pass stride type to
7585 alloc_cand_and_find_basis.
7586 (slsr_process_copy): Likewise.
7587 (dump_candidate): Display stride type when a cast exists.
7588 (create_add_on_incoming_edge): Introduce a cast when necessary for
7590 (analyze_increments): Change the code checking for invalid casts
7591 to rely on the stride type, and update the documentation and
7592 example. Change the code checking for pointer multiplies to rely
7594 (insert_initializers): Introduce a cast when necessary for the
7595 stride type. Use the stride type for the type of the initializer.
7597 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7599 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
7601 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7603 PR rtl-optimization/77919
7604 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
7605 into memory if both modes are complex and their inner modes have the
7606 same precision. If the two modes are different complex modes, convert
7607 each part separately and generate a new CONCAT.
7609 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7611 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
7613 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7616 * gimple-ssa-store-merging.c
7617 (imm_store_chain_info::output_merged_store): Use build_aligned_type
7618 instead of SET_TYPE_ALIGN on shared integral type.
7620 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7622 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7623 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
7626 2016-10-28 Jeff Law <law@redhat.com>
7628 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
7629 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
7631 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7633 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
7635 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7637 * target.def (min_arithmetic_precision): New hook.
7638 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
7639 * doc/tm.texi: Regenerate.
7640 * internal-fn.c (expand_arith_overflow): Adjust handling of target
7641 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
7642 * targhooks.c (default_min_arithmetic_precision): New function.
7643 * targhooks.h (default_min_arithmetic_precision): Declare.
7644 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
7645 (sparc_min_arithmetic_precision): New function.
7647 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7650 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
7651 Swap commutative operands in new RTL if needed. Handle zero_ext
7653 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
7656 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7657 Kugan Vivekanandarajah <kuganv@linaro.org>
7658 Jim Wilson <jim.wilson@linaro.org>
7660 PR tree-optimization/43721
7661 * target.def: New hook expand_divmod_libfunc.
7662 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
7663 * doc/tm.texi: Regenerate.
7664 * internal-fn.def: Add new entry for DIVMOD ifn.
7665 * internal-fn.c (expand_DIVMOD): New.
7666 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
7668 (widen_mul_stats): Add new field divmod_calls_inserted.
7669 (target_supports_divmod_p): New.
7670 (divmod_candidate_p): Likewise.
7671 (convert_to_divmod): Likewise.
7672 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
7673 renumber_gimple_stmt_uids at beginning of function. Call
7674 convert_to_divmod and record stats for divmod.
7675 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
7676 TARGET_EXPAND_DIVMOD_LIBFUNC.
7677 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
7680 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7681 Segher Boessenkool <segher@kernel.crashing.org>
7683 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
7684 swapping the arms of the branch.
7685 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
7686 sequence for the generic signed-signed-signed case.
7688 2016-10-28 Jeff Law <law@redhat.com>
7690 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
7692 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7694 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7696 PR rtl-optimization/78029
7697 * function.c (prologue_contains, epilogue_contains): New functions.
7698 (record_prologue_seq, record_epilogue_seq): New functions.
7699 * function.h (prologue_contains, epilogue_contains,
7700 record_prologue_seq, record_epilogue_seq): New declarations.
7701 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
7702 mixing prologue and epilogue insns.
7703 (init_deps): Initialize the new fields in struct deps_desc.
7704 * sched-int.h (struct deps_desc): New fields last_prologue,
7705 last_epilogue, and last_logue_was_epilogue.
7706 * shrink-wrap.c (emit_common_heads_for_components): Record all
7707 emitted prologue and epilogue insns.
7708 (emit_common_tails_for_components): Ditto.
7709 (insert_prologue_epilogue_for_components): Ditto.
7711 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7714 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
7715 * common.opt (fstore-merging): New Optimization option.
7716 * opts.c (default_options_table): Add entry for
7717 OPT_ftree_store_merging.
7718 * fold-const.h (can_native_encode_type_p): Declare prototype.
7719 * fold-const.c (can_native_encode_type_p): Define.
7720 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
7721 (PARAM_MAX_STORES_TO_MERGE): Likewise.
7722 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
7723 * passes.def: Insert pass_tree_store_merging.
7724 * tree-pass.h (make_pass_store_merging): Declare extern
7726 * gimple-ssa-store-merging.c: New file.
7727 * doc/invoke.texi (Optimization Options): Document
7729 (--param documentation): Document store-merging-allow-unaligned
7730 and max-stores-to-merge.
7732 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
7735 * gimplify.c (gimplify_init_constructor): Move emit of constructor
7736 assignment to earlier in the if/else logic.
7738 2016-10-28 Richard Biener <rguenther@suse.de>
7742 * fold-const.c (make_bit_field_ref): Only adjust alias set
7743 when the original alias set was zero.
7745 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7747 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
7748 (s390_adjust_loops): New function.
7749 (s390_reorg): Invoke s390_adjust_loops.
7750 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
7751 ("osc_break"): New insn definition.
7753 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7755 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
7756 * config.gcc: Support alternate archXX cpu levels with
7757 --with-arch= and --with-tune=.
7758 * config/s390/linux.h: Translate new archXX cpu levels to the
7759 original names when calling GAS.
7760 * config/s390/tpf.h: Likewise.
7761 * doc/invoke.texi: Document the alternate cpu level names.
7763 2016-10-28 Jakub Jelinek <jakub@redhat.com>
7765 PR rtl-optimization/77919
7766 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
7767 MEM if mode1 is not a complex mode.
7769 PR rtl-optimization/78132
7770 * ree.c (combine_reaching_defs): Give up if copy_needed and
7771 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
7773 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
7775 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
7777 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7779 * config/rs6000/constraints.md (wH constraint): Add new
7780 constraints for allowing 32-bit integers (and eventually 8/16-bit
7781 integers) into the vector registers.
7782 (wI constraint): Likewise.
7783 (wJ constraint): Likewise.
7784 (wK constraint): Likewise.
7785 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
7786 -mvsx-small-integer as a default option for ISA 2.07
7788 (POWERPC_MASKS): Likewise.
7789 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
7790 switch to turn off small integer support in vector registers.
7791 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
7792 test for -mupper-regs-di, since it is already done with the
7793 reg_add[mode].scalar_in_vsx_p. Add support for the switch
7794 -mvsx-small-integer.
7795 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
7797 (rs6000_setup_reg_addr_masks): Likewise.
7798 (rs6000_init_hard_regno_mode_ok): Likewise.
7799 (rs6000_option_override_internal): Add consistency checks for
7800 -mvsx-small-integer.
7801 (rs6000_secondary_reload_simple_move): SImode is a simple move if
7802 -mvsx-small-integer.
7803 (rs6000_secondary_reload): Use std::swap.
7804 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
7805 VSX_REGS for small integers in vector registers, since there is no
7806 D-FORM address mode for such types.
7807 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
7808 (rs6000_opt_masks): Add -mvsx-small-integer.
7809 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
7811 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
7812 extracts can be done on ISA 2.07.
7813 (vsx_extract_<mode>): Add support for small integers in vsx
7815 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
7816 longer support V4SImode in this pattern.
7817 (vsx_extract_si): New insn to support extraction of SImode in ISA
7818 2.07 using either xxextractuw or vspltw.
7819 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
7820 longer support V4SImode in this pattern.
7821 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
7822 wJ, and wK constraints.
7823 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
7824 storing SDmode with VSX instructions.
7825 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
7826 GPR load and before the FPR and VSX loads. Remove ??, ! from the
7827 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
7828 small integers in vector registers.
7829 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
7830 load and before the FPR and VSX loads. Remove ??, ! from the
7831 constraints. Add VEXTSW2D support for small integers in vector
7833 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
7834 integers in vector registers.
7835 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
7836 move instead of using an UNSPEC.
7837 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
7838 integers in vector registers.
7839 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
7840 move instead of using an UNSPEC.
7841 (movsi_internal1): Add support for -mvsx-small-integer. Align
7842 columns so that it is more readable.
7843 (SImode splitter for ISA 3.0 constants): Add splitter for
7844 -128..127 constants that can easily be constructed on ISA 3.0.
7845 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
7848 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7851 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
7854 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
7856 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
7857 PIC_OFFSET_TABLE_REGNUM twice.
7859 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7861 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
7862 support for constant operand for OP.
7864 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7866 * dwarf2out.c (gen_member_die): Only reparent_child instead of
7867 splice_child_die if child doesn't have DW_AT_specification attribute.
7869 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7871 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
7872 (TARGET_HAVE_LDREXBH): Likewise.
7873 (TARGET_HAVE_LDACQ): Likewise.
7875 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7877 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
7878 logic to to decide whether to copy over old value to register for new
7880 * config/arm/sync.md: Add comments explaning why mode and code
7881 attribute are not defined in iterators.md
7882 (thumb1_atomic_op_str): New code attribute.
7883 (thumb1_atomic_newop_str): Likewise.
7884 (thumb1_atomic_fetch_op_str): Likewise.
7885 (thumb1_atomic_fetch_newop_str): Likewise.
7886 (thumb1_atomic_fetch_oldop_str): Likewise.
7887 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
7888 mirror the more restrictive constraints of the Thumb-1 insns after
7889 split compared to Thumb-2 counterpart insns.
7890 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
7891 in sync with non atomic version.
7892 (atomic_nand<mode>): Likewise.
7893 (atomic_fetch_<sync_optab><mode>): Likewise.
7894 (atomic_fetch_nand<mode>): Likewise.
7895 (atomic_<sync_optab>_fetch<mode>): Likewise.
7896 (atomic_nand_fetch<mode>): Likewise.
7897 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
7898 in sync with atomic version.
7899 (thumb1_subsi3_insn): Likewise.
7900 (thumb1_andsi3_insn): Likewise.
7901 (thumb1_iorsi3_insn): Likewise.
7902 (thumb1_xorsi3_insn): Likewise.
7904 2016-10-27 Nick Clifton <nickc@redhat.com>
7906 * plugin.c (register_plugin_info): Produce an error message if the
7907 plugin is not found in the hash table.
7909 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7911 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
7914 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
7917 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
7918 define builtin functions from the bdesc_spe_predicates or
7919 bdesc_spe_evsel arrays if the builtin mask is not compatible with
7920 the current compiler configuration.
7921 (paired_init_builtins): Modify loop to not define define builtin
7922 functions from the bdesc_paried_preds array if the builtin mask is
7923 not compatible with the current compiler configuration.
7924 (altivec_init_builtins): Modify loops to not define the
7925 __builtin_altivec_stxvl function nor the builtin functions from
7926 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
7927 builtin mask is not compatible with the current compiler
7930 2016-10-26 Jeff Law <law@redhat.com>
7932 * config/sh/sh.c (output_branch): Add missing fallthru comments.
7933 (gen_shl_and): Likewise.
7934 * config/sh/sh.md (movsicc): Add missing fallthru comments.
7936 * config/mips/mips.c (mips16_constant_cost): Add missing
7938 (mips16_build_call_stub): Increase buffer size. Adjust
7941 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7943 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
7944 INSN_UIDs for all insns in compact mode.
7945 (rtx_writer::print_rtx): Likewise.
7946 * print-rtl.h (rtx_writer::flag_compact): Update comment.
7947 * rtl-tests.c (selftest::test_dumping_insns): Update expected
7948 output to include INSN_UID.
7949 (selftest::test_uncond_jump): Likewise.
7951 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
7953 * haifa-sched.c (call_used_regs_num): Rename to...
7954 (call_saved_regs_num): ...this.
7955 (fixed_regs_num): New variable.
7956 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
7958 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
7960 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7962 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
7964 * print-rtl.c (outfile): Delete global.
7965 (sawclose): Likewise.
7967 (in_call_function_usage): Likewise.
7968 (flag_compact): Likewise.
7969 (flag_simple): Likewise.
7970 (rtx_writer::rtx_writer): New ctor.
7971 (print_rtx_operand_code_0): Convert to...
7972 (rtx_writer::print_rtx_operand_code_0): ...this.
7973 (print_rtx_operand_code_e): Convert to...
7974 (rtx_writer::print_rtx_operand_code_e): ...this.
7975 (print_rtx_operand_codes_E_and_V): Convert to...
7976 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
7977 (print_rtx_operand_code_i): Convert to...
7978 (rtx_writer::print_rtx_operand_code_i): ...this.
7979 (print_rtx_operand_code_r): Convert to...
7980 (rtx_writer::print_rtx_operand_code_r): ...this.
7981 (print_rtx_operand_code_u): Convert to...
7982 (rtx_writer::print_rtx_operand_code_u): ...this.
7983 (print_rtx_operand): Convert to...
7984 (rtx_writer::print_rtx_operand): ...this.
7985 (print_rtx): Convert to...
7986 (rtx_writer::print_rtx): ...this.
7987 (print_inline_rtx): Rewrite in terms of class rtx_writer.
7988 (debug_rtx): Likewise.
7989 (print_rtl): Convert to...
7990 (rtx_writer::print_rtl): ...this.
7991 (print_rtl): Reimplement in terms of class rtx_writer.
7992 (print_rtl_single): Rewrite in terms of class rtx_writer.
7993 (print_rtl_single_with_indent): Convert to..
7994 (rtx_writer::print_rtl_single_with_indent): ...this.
7995 (print_simple_rtl): Rewrite in terms of class rtx_writer.
7996 * print-rtl.h (flag_compact): Delete decl.
7997 (class rtx_writer): New class.
7998 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
8001 2016-10-26 Jeff Law <law@redhat.com>
8003 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
8006 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
8007 (check_if_valid_sleep_operand): Add missing fallthru comment.
8008 (arc_register_move_cost): Increase buffer size.
8009 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
8011 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
8013 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
8014 comment. Add gcc_unreachable for path that should never happen.
8016 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
8019 2016-10-26 Jakub Jelinek <jakub@redhat.com>
8020 Martin Liska <mliska@suse.cz>
8023 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
8024 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
8025 on outer context if any.
8027 2016-10-26 Jakub Jelinek <jakub@redhat.com>
8029 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
8030 by increment rather than double it.
8031 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
8032 emit a space before args[4].
8033 (END): Don't emit a space before with_arg.
8035 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
8037 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
8038 Baseline only alternatives to (i) hold store atomic success value in a
8039 return register rather than a scratch register, (ii) use a low register
8040 for it and to (iii) ensure the cbranchsi insn generated by the split
8041 respect the constraints of Thumb-1 cbranchsi4_insn and
8043 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
8044 constraints must match those in atomic_compare_and_swap.
8045 (cbranchsi4_scratch): Likewise.
8047 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
8049 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
8050 variable. Add the new parameter to the insn generator. Set that
8051 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
8052 return value from the negation of that parameter for Thumb-1, keeping
8053 the logic unchanged otherwise except for using bdst as the destination
8054 register of the compare_and_swap insn.
8055 (arm_split_compare_and_swap): Add explanation about how is the value
8056 returned to the function comment. Rename scratch variable to
8057 neg_bval. Adapt initialization of variables holding operands to the
8058 new operand numbers. Use return register to hold result of store
8059 exclusive for Thumb-1, scratch register otherwise. Construct the
8060 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
8061 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
8062 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
8063 for strongly ordered compare_and_swap.
8064 * config/arm/predicates.md (cc_register_operand): New predicate.
8065 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
8066 match_operand with the new predicate to accept either the CC flag or a
8067 destination register for the boolean return value, restricting it to
8068 CC flag only via constraint. Adapt operand numbers accordingly.
8070 2016-10-26 Jeff Law <law@redhat.com>
8072 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
8074 * config/frv/frv.c (comparison_string): Do not fall through after
8077 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
8079 (expand_one_builtin): Add missing break.
8081 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
8082 (m32c_legitimate_address_p): Likewise.
8084 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
8086 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
8088 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
8091 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
8094 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
8096 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
8098 (rl78_asm_ctor_dtor): Increase buffer size.
8100 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
8102 (xstormy16_asm_output_constructor): Likewise.
8104 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
8107 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
8108 comment to silence warning.
8110 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
8111 (spu_legitimate_address_p): Fix logic error and add missing fallthru
8114 2016-10-26 Michael Matz <matz@suse.de>
8116 PR tree-optimization/78060
8117 PR tree-optimization/78061
8118 PR tree-optimization/78088
8119 * tree-ssa-loop-split.c (easy_exit_values): New function.
8120 (tree_ssa_split_loops): Use it.
8121 (compute_new_first_bound): Change order of operations,
8122 fix invalid use of types.
8124 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
8126 gen-pass-instances.awk is sensitive to the order in which
8127 passes are added; passes that appear later have to be added first.
8131 * config/avr/avr-passes.def: Swap order of directives for
8132 gen-pass-instances.awk.
8134 2016-10-25 Jeff Law <law@redhat.com>
8136 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
8137 (vax_notice_update_cc): Likewise.
8139 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
8141 * config.gcc (sparc*-*-solaris2*): Adjust.
8142 (sparc64-*-linux*): Likewise.
8143 * config/sparc/default-64.h: Rename to...
8144 * config/sparc/default64.h: ...this.
8145 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
8147 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
8148 * config/sparc/sparc.h: Minor tweaks.
8149 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
8150 TARGET_ARCH32 throughout. Minor various tweaks throughout.
8152 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8154 * input.c (fcache::file_patch): Add comment about lifetime.
8155 (selftest::cpp_reader_ptr): New class.
8156 (selftest::lexer_test): Convert m_parser from cpp_reader *
8157 to a cpp_reader_ptr, and move m_tempfile to after it.
8158 (selftest::lexer_test::lexer_test): Update for above reordering.
8159 (lexer_test::~lexer_test): Move cleanup of m_parser to
8160 cpp_reader_ptr's dtor.
8162 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8164 * toplev.c (toplev::main): Remove call to
8165 location_adhoc_data_fini.
8167 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
8169 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
8170 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
8172 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8174 * ggc-tests.c (forcibly_ggc_collect): Rename to...
8175 (selftest::forcibly_ggc_collect): ...this, and remove "static".
8176 (test_basic_struct): Update for above renaming.
8177 (test_length): Likewise.
8178 (test_union): Likewise.
8179 (test_finalization): Likewise.
8180 (test_deletable_global): Likewise.
8181 (test_inheritance): Likewise.
8182 (test_chain_next): Likewise.
8183 (test_user_struct): Likewise.
8184 (test_tree_marking): Likewise.
8185 * selftest-run-tests.c (selftest::run_tests): Call
8186 selftest::forcibly_ggc_collect at the end of the selftests.
8187 * selftest.h (selftest::forcibly_ggc_collect): New decl.
8189 2016-10-25 Jakub Jelinek <jakub@redhat.com>
8192 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
8193 * optabs.c (expand_vec_cond_expr): For comparison codes
8194 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
8195 (expand_vec_cmp_expr): For comparison codes
8196 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
8197 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
8198 Add enum tree_code argument.
8199 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
8201 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
8202 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
8204 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
8205 NE_EXPR, attempt to use vcondeq_optab as fallback.
8206 * tree-vect-generic.c (expand_vector_comparison,
8207 expand_vector_divmod, expand_vector_condition): Adjust
8208 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
8209 * tree-vect-stmts.c (vectorizable_condition,
8210 vectorizable_comparison): Likewise.
8211 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
8212 check_bool_pattern, search_type_for_mask_1): Likewise.
8213 * expr.c (do_store_flag): Likewise.
8214 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
8215 @code{vcondeq@var{m}@var{n}}): Document.
8216 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
8219 2016-10-25 Jeff Law <law@redhat.com>
8221 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
8223 (v850_output_aligned_bss): Add missing break.
8225 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
8227 2016-10-25 Martin Liska <mliska@suse.cz>
8230 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
8231 statements as they can also contain possibly a freeing call.
8233 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
8234 Martin Liska <mliska@suse.cz>
8237 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
8238 * ipa-icf.c (sem_function::get_hash): Add target optimization
8241 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
8244 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
8245 Remove partial overlap check for shift by 1.
8246 (ashldi3_neon): Likewise.
8248 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
8250 * config/arm/constraints.md (Q constraint): Document its use for
8252 (Pf constraint): New constraint for relaxed, consume or relaxed memory
8254 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
8255 alternatives to allow any register when memory model matches Pf and
8256 thus lda is used, but only low registers otherwise. Use unpredicated
8257 output template for Thumb-1 targets.
8258 (atomic_store<mode>): Likewise for stl.
8259 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
8260 whose output template does not have predication.
8261 (arm_load_acquire_exclusive<mode>): Likewise.
8262 (arm_load_exclusivesi): Likewise.
8263 (arm_load_acquire_exclusivesi): Likewise.
8264 (arm_store_release_exclusive<mode>): Likewise.
8265 (arm_store_exclusive<mode>): Use unpredicated output template for
8268 2016-10-25 Jakub Jelinek <jakub@redhat.com>
8270 * internal-fn.def (LAUNDER): New internal function.
8271 * internal-fn.c (expand_LAUNDER): New function.
8273 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8274 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8276 New avr target pass to work around performance loss by PR fix.
8280 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
8281 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
8282 * config/avr/predicates.md (extend_operator): New.
8283 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
8284 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
8285 (make_avr_pass_casesi): New prototypes.
8286 * config/avr/avr.c (print-rtl.h): Include it.
8287 (pass_data avr_pass_data_casesi): Data for new pass.
8288 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
8289 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
8290 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
8291 (avr_optimize_casesi): New functions.
8293 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8294 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8298 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
8300 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8302 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
8303 DW_AT_rvalue_reference attributes.
8305 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
8307 * doc/invoke.text (Wint-in-bool-context): Update documentation.
8308 * value-prof.c (stringop_block_profile): Fix a warning.
8310 2016-10-24 Martin Sebor <msebor@redhat.com>
8313 * builtins.c (string_length): New function.
8314 (c_strlen): Use string_length. Correctly handle wide strings.
8315 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
8317 (target_int_max): Call target_max_value.
8318 (format_result::knownrange): New data member.
8319 (fmtresult::fmtresult): Define default constructor.
8320 (format_integer): Use it and set format_result::knownrange.
8321 Handle global constants.
8322 (format_floating_max): Add third argument.
8323 (format_floating): Recompute maximum value for %a for each argument.
8324 (get_string_length): Use fmtresult default ctor.
8325 (format_string): Set format_result::knownrange.
8326 (format_directive): Check format_result::knownrange.
8327 (add_bytes): Same. Correct caret placement in diagnostics.
8328 (pass_sprintf_length::compute_format_length): Set
8329 format_result::knownrange.
8330 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
8332 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8334 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
8335 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
8337 2016-10-24 Ximin Luo <infinity0@pwned.gg>
8340 * dwarf2out.c (file_table_relative_p): Remove.
8341 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
8342 also for absolute paths.
8343 * doc/tm.texi: Update.
8344 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
8345 * target.def (force_at_comp_dir): Remove hook.
8346 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
8348 2016-10-24 Richard Biener <rguenther@suse.de>
8350 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
8351 backedges when identifying the single predecessor to take
8352 conditional info from. Use SCEV to get at ranges for loop IVs.
8353 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
8354 avoid false warning.
8356 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
8359 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
8360 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
8361 (avr_address_tiny_absdata_p): New static function.
8362 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
8363 it to determine validity of constant addresses.
8364 (avr_attribute_table) [absdata]: New variable attribute...
8365 (avr_handle_absdata_attribute): ...and handler.
8366 (avr_decl_absdata_p): New static function.
8367 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
8368 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
8369 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
8371 2016-10-24 Richard Biener <rguenther@suse.de>
8373 PR tree-optimization/78076
8374 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
8375 also on the loop tree root.
8377 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8379 * config/i386/i386.c (ix86_fold_builtin): Handle
8380 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
8381 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8382 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
8383 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8385 2016-10-24 Martin Liska <mliska@suse.cz>
8388 * opts.c (finish_options): Skip conditionally.
8390 2016-10-23 Martin Sebor <msebor@redhat.com>
8393 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
8394 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
8396 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8398 * config/sparc/sparc.md (cpu_feature): Minor tweak.
8399 (enabled): Likewise.
8400 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
8401 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
8402 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
8403 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
8404 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
8405 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
8407 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8409 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
8410 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
8412 2016-10-21 Andrew Pinski <apinski@cavium.com>
8414 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
8416 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
8417 implementer_id to unsigned char.
8418 Change part_no to unsigned int.
8419 (AARCH64_BIG_LITTLE): New define.
8420 (INVALID_IMP): New define.
8421 (INVALID_CORE): New define.
8422 (cpu_data): Change the last element's implementer_id and part_no to
8424 (valid_bL_string_p): Rewrite to ..
8425 (valid_bL_core_p): this for integers instead of strings.
8426 (parse_field): New function.
8427 (contains_string_p): Rewrite to ...
8428 (contains_core_p): this for integers and only for the part_no.
8429 (host_detect_local_cpu): Rewrite handling of implementation and
8430 par num to be integers; simplifying the code.
8432 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8434 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
8435 value range for pointers in more cases.
8437 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8439 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
8440 Add extra argument to allow emitting the move immediate.
8441 Use add/sub with positive immediate.
8442 (aarch64_add_constant): Add inline function.
8443 (aarch64_add_sp): Likewise.
8444 (aarch64_sub_sp): Likewise.
8445 (aarch64_expand_prologue): Call aarch64_sub_sp.
8446 (aarch64_expand_epilogue): Call aarch64_add_sp.
8447 Decide when to leave out move.
8448 (aarch64_output_mi_thunk): Call aarch64_add_constant.
8450 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8452 * config/aarch64/aarch64.c (aarch64_layout_frame):
8453 Align FP callee-saves.
8455 2016-10-21 Jakub Jelinek <jakub@redhat.com>
8457 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
8458 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
8460 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
8461 _rdseed64_step): Likewise.
8462 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
8465 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
8466 and tree-ssanames.h.
8467 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
8468 with INTEGER_CST argument.
8469 (ix86_gimple_fold_builtin): New function.
8470 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
8472 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
8473 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
8474 (ranges_table_allocated, ranges_table_in_use,
8475 ranges_by_label_allocated, ranges_by_label_in_use,
8476 RANGES_TABLE_INCREMENT): Removed.
8477 (add_ranges_num): Use vec_safe_push into ranges_table.
8478 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
8479 (output_ranges): Adjust for ranges_table and ranges_by_label
8480 conversion from arrays to vec.
8481 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
8482 conversion from arrays to vec.
8483 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
8484 ranges_table_in_use, ranges_by_label_allocated and
8485 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
8487 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
8488 if needed. Re-add origin_die variable and its initialization.
8490 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
8491 even for -fstack-reuse=none, or for volatile vars etc.
8493 2016-10-21 David Malcolm <dmalcolm@redhat.com>
8495 * print-rtl-function.c (flag_compact): Move extern decl to...
8496 * print-rtl.h (flag_compact): ...here.
8497 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
8498 (ASSERT_RTL_DUMP_EQ): New macro.
8499 (selftest::test_dumping_regs): New function.
8500 (selftest::test_dumping_insns): New function.
8501 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
8503 (selftest::rtl_tests_c_tests): Call the new test functions.
8505 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8507 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8508 (outgoing_edges_match): Likewise.
8509 (try_crossjump_to_edge): Likewise.
8510 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8511 (rtl_tidy_fallthru_edge): Likewise.
8512 * rtl.h (tablejump_p): Adjust prototype.
8513 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
8515 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8517 * rtl.h (label_ref_label): New function.
8518 (set_label_ref_label): New function.
8519 (LABEL_REF_LABEL): Delete.
8520 * alias.c (rtx_equal_for_memref_p): Adjust.
8521 * cfgbuild.c (make_edges): Likewise.
8522 (purge_dead_tablejump_edges): Likewise.
8523 * cfgexpand.c (convert_debug_memory_address): Likewise.
8524 * cfgrtl.c (patch_jump_insn): Likewise.
8525 * combine.c (distribute_notes): Likewise.
8526 * cse.c (hash_rtx_cb): Likewise.
8527 (exp_equiv_p): Likewise.
8528 (fold_rtx): Likewise.
8529 (check_for_label_ref): Likewise.
8530 * cselib.c (rtx_equal_for_cselib_1): Likewise.
8531 (cselib_hash_rtx): Likewise.
8532 * emit-rtl.c (mark_label_nuses): Likewise.
8533 * explow.c (convert_memory_address_addr_space_1): Likewise.
8534 * final.c (output_asm_label): Likewise.
8535 (output_addr_const): Likewise.
8536 * gcse.c (add_label_notes): Likewise.
8537 * genconfig.c (walk_insn_part): Likewise.
8538 * genrecog.c (validate_pattern): Likewise.
8539 * ifcvt.c (cond_exec_get_condition): Likewise.
8540 (noce_emit_store_flag): Likewise.
8541 (noce_get_alt_condition): Likewise.
8542 (noce_get_condition): Likewise.
8543 * jump.c (maybe_propagate_label_ref): Likewise.
8544 (mark_jump_label_1): Likewise.
8545 (redirect_exp_1): Likewise.
8546 (rtx_renumbered_equal_p): Likewise.
8547 * lra-constraints.c (operands_match_p): Likewise.
8548 * print-rtl.c (print_value): Likewise.
8549 * reload.c (find_reloads): Likewise.
8550 * reload1.c (set_label_offsets): Likewise.
8551 * reorg.c (get_branch_condition): Likewise.
8552 * rtl-tests.c (test_uncond_jump): Likewise.
8553 * rtl.c (rtx_equal_p_cb): Likewise.
8554 (rtx_equal_p): Likewise.
8555 * rtlanal.c (reg_mentioned_p): Likewise.
8556 (rtx_referenced_p): Likewise.
8557 (get_condition): Likewise.
8558 * varasm.c (const_hash_1): Likewise.
8559 (compare_constant): Likewise.
8560 (const_rtx_hash_1): Likewise.
8561 (output_constant_pool_1): Likewise.
8563 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8566 * reload.c (find_valid_class_1): Allow regclass if atleast one
8567 regno in regclass is ok. Compute and use rclass size based on
8568 actually available regnos for mode in rclass.
8570 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
8572 * config/sparc/sparc-modes.def (CCV): New.
8574 * config/sparc/predicates.md (v_comparison_operator): New.
8575 (icc_comparison_operator): Add support for CCV/CCXV.
8576 (xcc_comparison_operator): Likewise.
8577 * config/sparc/sparc.c (output_cbranch): Likewise.
8578 (sparc_print_operand): Likewise.
8579 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8580 (uaddvdi4): New expander.
8581 (addvdi4): Likewise.
8582 (uaddvdi4_sp32): New instruction.
8583 (addvdi4_sp32): Likewise.
8584 (uaddvsi4): New expander.
8585 (addvsi4): Likewise.
8586 (cmp_ccc_plus_sltu_set): New instruction.
8587 (cmp_ccv_plus): Likewise.
8588 (cmp_ccxv_plus): Likewise.
8589 (cmp_ccv_plus_set): Likewise.
8590 (cmp_ccxv_plus_set): Likewise.
8591 (cmp_ccv_plus_sltu_set): Likewise.
8592 (uaddvdi4): New expander.
8593 (subvdi4): Likewise.
8594 (usubdi4_sp32): New instruction.
8595 (subvdi4_sp32): Likewise.
8596 (usubvsi4): New expander.
8597 (subvsi4): Likewise.
8598 (cmpsi_minus_sltu_set): New instruction.
8599 (cmp_ccv_minus): Likewise.
8600 (cmp_ccxv_minus): Likewise.
8601 (cmp_ccv_minus_set): Likewise.
8602 (cmp_ccxv_minus_set): Likewise.
8603 (cmp_ccv_minus_sltu_set): Likewise.
8604 (unegvdi3): New expander.
8605 (negvdi3): Likewise.
8606 (unegdi3_sp32): New instruction.
8607 (negvdi3_sp32): Likewise.
8608 (unegvsi3): New expander.
8609 (negvsi3): Likewise.
8610 (cmp_ccc_neg_sltu_set): New instruction.
8611 (cmp_ccv_neg): Likewise.
8612 (cmp_ccxv_neg): Likewise.
8613 (cmp_ccv_neg_set): Likewise.
8614 (cmp_ccxv_neg_set): Likewise.
8615 (cmp_ccv_neg_sltu_set): Likewise.
8617 * tree-ssa-loop-split.c: Remove trailing spaces.
8618 * match.pd: Likewise.
8620 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8622 PR rtl-optimization/78038
8623 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
8624 be deduced to set REG through the RTL structure.
8625 (make_defs_and_copies_lists): Return false on a failing get_defs call.
8627 2016-10-21 Richard Biener <rguenther@suse.de>
8629 PR tree-optimization/78051
8630 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
8631 and mark replaced if folding did something.
8633 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
8635 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
8636 and "protected" in visibility types.
8637 (rs6000_xcoff_declare_function_name): Fix formatting.
8638 (rs6000_xcoff_declare_object_name): Fix formatting.
8640 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
8642 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
8643 and IX86_BUILTIN_HUGE_VALQ here ...
8644 (ix86_expand_builtin): ... not here.
8646 2016-10-20 Jakub Jelinek <jakub@redhat.com>
8648 * doc/gty.texi (for_user): Use @item next to @findex.
8650 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
8653 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
8654 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
8655 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
8656 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
8657 __builtin_ia32_lzcnt_u16.
8658 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
8659 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
8660 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
8661 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
8662 (bmi_tzcnt_<mode>): New expander.
8663 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8664 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
8665 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
8666 (lzcnt_<mode>): New expander.
8667 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8668 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
8669 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
8670 (UINT64_FTYPE_UINT64): New.
8671 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
8672 (__builtin_ia32_lzcnt_u16): New description.
8673 (__builtin_ia32_lzcnt_u32): Ditto.
8674 (__builtin_ia32_lzcnt_u64): Ditto.
8675 (__builtin_ctzs): Remove description.
8676 (__builtin_ia32_tzcnt_u16): New description.
8677 (__builtin_ia32_tzcnt_u32): Ditto.
8678 (__builtin_ia32_tzcnt_u64): Ditto.
8679 * config/i386/i386.c (ix86_expand_args_builtin): Handle
8680 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
8682 2016-10-20 Martin Liska <mliska@suse.cz>
8685 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
8686 comparison with STMT_UID_NOT_IN_RANGE.
8687 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
8690 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
8692 * compare-elim.c (conforming_compare): Accept UNSPECs.
8693 (find_comparison_dom_walker::before_dom_children): Deal with
8694 instructions both using and killing the flags register.
8695 (equivalent_reg_at_start): New function extracted from...
8696 (try_eliminate_compare): ...here. Use it and add support for
8697 registers and UNSPECs as second operand of the compare.
8698 * config/visium/visium-modes.def (CCV): New.
8699 * config/visium/predicates.md (visium_v_comparison_operator): New.
8700 (visium_branch_operator): Deal with CCV mode.
8701 * config/visium/visium.c (visium_select_cc_mode): Likewise.
8702 (output_cbranch): Likewise.
8703 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8704 (uaddv<mode>4): New expander.
8705 (addv<mode>4): Likewise.
8706 (add<mode>3_insn_set_carry): New instruction.
8707 (add<mode>3_insn_set_overflow): Likewise.
8708 (addsi3_insn_set_overflow): Likewise.
8709 (usubv<mode>4): New expander.
8710 (subv<mode>4): Likewise.
8711 (sub<mode>3_insn_set_carry): New instruction.
8712 (sub<mode>3_insn_set_overflow): Likewise.
8713 (subsi3_insn_set_overflow): Likewise.
8714 (unegv<mode>3): New expander.
8715 (negv<mode>3): Likewise.
8716 (neg<mode>2_insn_set_overflow): New instruction.
8717 (addv_tst<mode>): Likewise.
8718 (subv_tst<mode>): Likewise.
8719 (negv_tst<mode>): Likewise.
8720 (cbranch<mode>4_addv_insn): New splitter and instruction.
8721 (cbranch<mode>4_subv_insn): Likewise.
8722 (cbranch<mode>4_negv_insn): Likewise.
8724 2016-10-20 Richard Biener <rguenther@suse.de>
8726 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
8727 Handle decls possibly not bound.
8728 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
8729 nothing_id for decls that might not be bound if we are interested
8731 (get_constraint_for_component_ref): Deal with that.
8733 2016-10-20 Michael Matz <matz@suse.de>
8736 * common.opt (-fsplit-loops): New flag.
8737 * passes.def (pass_loop_split): Add.
8738 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
8739 (enable_fdo_optimizations): Add loop splitting.
8740 * timevar.def (TV_LOOP_SPLIT): Add.
8741 * tree-pass.h (make_pass_loop_split): Declare.
8742 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
8743 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
8744 * tree-ssa-loop-split.c: New file.
8745 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
8746 * doc/invoke.texi (fsplit-loops): Document.
8747 * doc/passes.texi (Loop optimization): Add paragraph about loop
8750 2016-10-20 Richard Biener <rguenther@suse.de>
8752 * cgraphunit.c (analyze_functions): Set node->definition to
8753 false to signal symbol removal to debug_hooks->late_global_decl.
8754 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
8755 WPA signal symbol removal to the debuginfo machinery.
8756 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
8757 using early_finised to guard the we're called for symbol
8758 removal case look at the symtabs definition flag.
8759 (gen_variable_die): Remove redundant check.
8761 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8763 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
8765 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8767 PR tree-optimization/53979
8768 * match.pd ((a ^ b) | a -> a | b): New pattern.
8770 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
8772 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
8773 config/pa/pa64-hpux-lib.h.
8774 (PA_CRTBEGIN_HACK): Likewise.
8775 (DTOR_LIST_BEGIN): Likewise.
8777 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
8779 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8780 register only if "in" and "out" are different registers.
8782 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
8784 * omp-low.c (pass_oacc_device_lower::gate): New method.
8785 (execute): Always call execute_oacc_device_lower.
8787 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8789 PR tree-optimization/77916
8790 PR tree-optimization/77937
8791 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
8793 (insert_initializers): Requirement of initializer for -1 should be
8794 based on pointer-typedness of the candidate basis.
8796 2016-10-19 Bin Cheng <bin.cheng@arm.com>
8798 PR tree-optimization/78005
8799 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
8800 upper (included) bound for niters of prolog loop.
8801 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
8802 Compute niters of scalar loop above which vectorized loop is
8803 preferred, as well as the upper (included) bound for the niters.
8804 (vect_do_peeling): Record niter bound for loops accordingly.
8806 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8809 * tree-core.h (enum tree_index): Put the complex types after their
8811 * tree-streamer.c (verify_common_node_recorded): New function.
8812 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
8814 2016-10-19 Martin Liska <mliska@suse.cz>
8816 * cgraph.h (cgraph_edge::binds_to_current_def_p):
8817 Replace NULL with false as a return value.
8819 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8821 PR tree-optimization/78024
8822 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
8823 don't clear BB_VISITED after processing.
8825 2016-10-19 Richard Biener <rguenther@suse.de>
8827 * domwalk.c (dom_walker::walk): Use RPO order.
8829 2016-10-19 Richard Biener <rguenther@suse.de>
8831 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
8833 (evrp_dom_walker::~evrp_dom_walker): Free it.
8834 (evrp_dom_walker::stmts_to_remove): Add.
8835 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
8836 whose output we fully propagate for removal. Propagate
8837 into BB destination PHI arguments.
8838 (execute_early_vrp): Remove queued stmts. Dump value ranges
8839 before stmt removal.
8841 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
8843 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
8844 * passes.def: Add two instances of pass_walloca.
8845 * tree-pass.h (make_pass_walloca): New.
8846 * gimple-ssa-warn-alloca.c: New file.
8847 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
8848 -Wvla-larger-than= options.
8850 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
8852 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
8853 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
8855 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
8857 * config/rs6000/altivec.h (vec_xl_len): New macro.
8858 (vec_xst_len): New macro.
8859 (vec_cmpnez): New macro.
8860 (vec_cntlz_lsbb): New macro.
8861 (vec_cnttz_lsbb): New macro.
8862 (vec_xlx): New macro.
8863 (vec_xrx): New macro.
8864 (vec_all_nez): New C++ predicate template.
8865 (vec_any_eqz): New C++ predicate template.
8866 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
8867 conditional compilation.
8868 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
8869 conditional compilation.
8870 (vec_all_nez): New macro.
8871 (vec_any_eqz): New macro.
8872 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
8874 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
8876 * config/rs6000/vector.md (VI): Moved this mode iterator
8877 definition from altivec.md to vector.md.
8878 (UNSPEC_NEZ_P): New value.
8879 (vector_ne_<mode>_p): New expansion for implementation of
8880 vec_all_ne and vec_any_eq built-in functions.
8881 (vector_nez_<mode>_p): New expansion for implementation of
8882 vec_all_nez and vec_any_eqz built-in functions.
8883 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
8884 and vec_any_eq built-in function.
8885 (cr6_test_for_zero): New commentary to explain this expansion.
8886 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
8887 (cr6_test_for_lt): New commentary to explain this expansion.
8888 (cr6_test_for_lt_reverse): New commentary to explain this
8890 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8891 overloaded function prototypes for vec_all_ne, vec_all_nez,
8892 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
8893 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
8895 (altivec_resolve_overloaded_builtin): Modify the handling of
8896 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
8897 the compiler is configured to support TARGET_P9_VECTOR.
8898 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
8899 to explain the special processing that is given to predicate
8900 built-ins introduced using this macro.
8901 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
8902 the special processing given to predicate built-ins introduced
8904 (BU_VSX_P): Likewise.
8905 (BU_P8V_AV_P): Likewise.
8906 (BU_P9V_AV_P): Likewise.
8907 (BU_P9V_AV_X): New macro.
8908 (BU_P9V_64BIT_AV_X): New macro.
8909 (BU_P9V_VSX_3): New macro.
8910 (BU_P9V_OVERLOAD_P): New macro.
8911 (LXVL): New BU_P9V_64BIT_VSX_2.
8912 (VEXTUBLX): New BU_P9V_AV_2.
8913 (VEXTUBRX): Likewise.
8914 (VEXTUHLX): Likewise.
8915 (VEXTUHRX): Likewise.
8916 (VEXTUWLX): Likewise.
8917 (VEXTUWRX): Likewise.
8918 (STXVL): New BU_P9V_64BIT_AV_X.
8919 (VCLZLSBB): New BU_P9V_AV_1.
8920 (VCTZLSBB): Likewise.
8921 (CMPNEB): New BU_P9V_AV_2.
8926 (VCMPNEB_P): New BU_P9V_AV_P.
8927 (VCMPNEH_P): Likewise.
8928 (VCMPNEW_P): Likewise.
8929 (VCMPNED_P): Likewise.
8930 (VCMPNEFP_P): Likewise.
8931 (VCMPNEDP_P): Likewise.
8932 (CMPNEZB): New BU_P9V_AV_2.
8933 (CMPNEZH): Likewise.
8934 (CMPNEZW): Likewise.
8935 (VCMPNEZB_P): New BU_P9V_AV_P.
8936 (VCMPNEZH_P): Likewise.
8937 (VCMPNEZW_P): Likewise.
8938 (LXVL): New BU_P9V_OVERLOAD_2.
8939 (STXVL): New BU_P9V_OVERLOAD_3.
8940 (VEXTULX): New BU_P9V_OVERLOAD_2.
8941 (VEXTURX): Likewise.
8943 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
8944 (VCMPNE_P): Likewise.
8945 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
8946 (VCTZLSBB): Likewise.
8947 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
8948 comment to explain mode used for scratch register.
8949 (altivec_expand_stxvl_builtin): New function.
8950 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
8951 (altivec_init_builtins): Add initialized variable
8952 void_ftype_v16qi_pvoid_long and use this type to define the
8953 built-in function __builtin_altivec_stxvl.
8954 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
8955 (UNSPEC_STXVL): New value.
8956 (UNSPEC_VCLZLSBB): New value.
8957 (UNSPEC_VCTZLSBB): New value.
8958 (UNSPEC_VEXTUBLX): New value.
8959 (UNSPEC_VEXTUHLX): New value.
8960 (UNSPEC_VEXTUWLX): New value.
8961 (UNSPEC_VEXTUBRX): New value.
8962 (UNSPEC_VEXTUHRX): New value.
8963 (UNSPEC_VEXTUWRX): New value.
8964 (UNSPEC_VCMPNEB): New value.
8965 (UNSPEC_VCMPNEZB): New value.
8966 (UNSPEC_VCMPNEH): New value.
8967 (UNSPEC_VCMPNEZH): New value.
8968 (UNSPEC_VCMPNEW): New value.
8969 (UNSPEC_VCMPNEZW): New value.
8970 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8971 vector of integer modes.
8972 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8973 vector of float or double modes.
8974 (*vector_nez_<mode>_p): New insn for vector test all not equal or
8976 (lxvl): New expand for load VSX vector with length.
8977 (*lxvl): New insn for load VSX vector with length.
8978 (stxvl): New expand for store VSX vector with length.
8979 (*stxvl): New insn for store VSX vector with length.
8980 (vcmpneb): New insn for vector of byte compare not equal.
8981 (vcmpnezb): New insn for vector of byte compare not equal or zero.
8982 (vcmpneh): New insn for vector of half word compare not equal.
8983 (vcmpnezh): New insn for vector of half word compare not equal or
8985 (vcmpnew): New insn for vector of word compare not equal.
8986 (vcmpne<VSs>): New insn for vector of float or double compare not
8988 (vcmpnezw): New insn for vector of word compare not equal or zero.
8989 (vclzlsbb): New insn for vector count leading zero
8990 least-significant bits byte.
8991 (vctzlsbb): New insn for vector count trailing zero least
8992 signficant bits byte.
8993 (vextublx): New insn for vector extract unsigned byte left
8995 (vextubrx): New insn for vector extract unsigned byte right
8997 (vextuhlx): New insn for vector extract unsigned half word left
8999 (vextuhrx): New insn for vector extract unsigned half word right
9001 (vextuwlx): New insn for vector extract unsigned word left
9003 (vextuwrx): New insn for vector extract unsigned word right
9005 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
9006 clarify intent of this constant.
9007 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
9008 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
9009 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
9010 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
9011 and vec_xrx functions.
9013 2016-10-18 Andrew Pinski <apinski@cavium.com>
9016 * predict.c (is_exit_with_zero_arg): New function.
9017 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
9020 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
9023 * config/i386/i386.c (legitimize_tls_address)
9024 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
9025 convert dest to Pmode if different than Pmode.
9027 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9029 PR tree-optimization/77916
9030 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
9031 stopgap fix, as pointers with -1 increment are still broken.
9033 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
9035 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
9036 mapping class decoration from here...
9037 (rs6000_xcoff_encode_section): ...to here.
9039 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
9040 if shrink-wrapping and optimizing for speed.
9042 2016-10-18 Richard Biener <rguenther@suse.de>
9044 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
9045 not visited but non-executable predecessors. Return taken edge.
9046 Simplify conditions and refactor propagation vs. folding step.
9048 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
9050 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
9051 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
9052 (rs6000_get_separate_components): Assert we do not have those
9053 strategies selected.
9055 2016-10-18 Richard Biener <rguenther@suse.de>
9057 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
9058 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
9060 (substitute_and_fold_dom_walker): Adjust constructor.
9061 (substitute_and_fold_dom_walker::before_dom_children): Remove
9062 do_dce flag and handling (always true).
9063 (substitute_and_fold): Likewise.
9064 * tree-vrp.c (vrp_finalize): Adjust.
9065 (execute_early_vrp): Remove final BB_VISITED clearing.
9066 * tree-ssa-ccp.c (ccp_finalize): Adjust.
9067 * tree-ssa-copy.c (fini_copy_prop): Likewise.
9068 * ira.c (ira): Call clear_bb_flags.
9070 2016-10-18 Richard Biener <rguenther@suse.de>
9072 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
9073 get at the operand to look at with TREE_OPERAND for generic
9076 2016-10-18 David Malcolm <dmalcolm@redhat.com>
9078 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
9080 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
9081 (write_test_expr): Use rtx_reader_ptr for calls to
9083 (write_attr_value): Likewise.
9084 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
9085 call to print_md_ptr_loc.
9086 (write_one_condition): Likewise for calls to print_c_condition.
9087 * genconstants.c: Include "statistics.h" and "vec.h".
9088 (main): Update for conversion to member functions.
9089 * genemit.c (emit_c_code): Use rtx_reader_ptr for
9090 call to print_md_ptr_loc.
9091 * genenums.c: Include "statistics.h" and "vec.h".
9092 (main): Update for conversion of traverse_enum_types to a method.
9093 * genmddeps.c: Include "statistics.h" and "vec.h".
9094 * genoutput.c (process_template): Use rtx_reader_ptr for call to
9096 * genpreds.c (write_predicate_subfunction): Likewise.
9097 (write_predicate_expr): Likewise for calls to print_c_condition.
9098 * genrecog.c (print_test): Likewise.
9099 * gensupport.c (process_rtx): Likewise for calls to
9100 copy_md_ptr_loc and join_c_conditions.
9101 (alter_test_for_insn): Likewise for call to join_c_conditions.
9102 (process_substs_on_one_elem): Likewise.
9103 (gen_mnemonic_setattr): Update for move of string_obstack to a
9104 field of rtx_reader.
9105 (mnemonic_htab_callback): Likewise. Fix formatting.
9106 (gen_mnemonic_attr): Likewise.
9107 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
9108 to print_c_condition.
9109 * read-md.c: Include "statistics.h" and "vec.h".
9110 (string_obstack): Convert this global to field "m_string_obstack"
9111 of class rtx_reader.
9112 (ptr_locs): Likewise, as "m_ptr_locs".
9113 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
9114 (joined_conditions): Likewise, as "m_joined_conditions".
9115 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
9116 (md_constants): Likewise, as "m_md_constants".
9117 (enum_types): Likewise, as "m_enum_types".
9118 (set_md_ptr_loc): Convert to...
9119 (rtx_reader::set_md_ptr_loc): ...member function.
9120 (get_md_ptr_loc): Convert to...
9121 (rtx_reader::get_md_ptr_loc): ...member function.
9122 (copy_md_ptr_loc): Convert to...
9123 (rtx_reader::copy_md_ptr_loc): ...member function.
9124 (fprint_md_ptr_loc): Convert to...
9125 (rtx_reader::fprint_md_ptr_loc): ...member function.
9126 (print_md_ptr_loc): Convert to...
9127 (rtx_reader::print_md_ptr_loc): ...member function.
9128 (join_c_conditions): Convert to...
9129 (rtx_reader::join_c_conditions): ...member function.
9130 (fprint_c_condition): Convert to...
9131 (rtx_reader::fprint_c_condition): ...member function.
9132 (print_c_condition): Convert to...
9133 (rtx_reader::print_c_condition): ...member function.
9134 (read_name): Convert to...
9135 (rtx_reader::read_name): ...member function.
9136 (read_escape): Convert to...
9137 (rtx_reader::read_escape): ...member function.
9138 (read_quoted_string): Convert to...
9139 (rtx_reader::read_quoted_string): ...member function.
9140 (read_braced_string): Convert to...
9141 (rtx_reader::read_braced_string): ...member function.
9142 (read_string): Convert to...
9143 (rtx_reader::read_string): ...member function.
9144 (read_skip_construct): Convert to...
9145 (rtx_reader::read_skip_construct): ...member function.
9146 (handle_constants): Convert to...
9147 (rtx_reader::handle_constants): ...member function.
9148 (traverse_md_constants): Convert to...
9149 (rtx_reader::traverse_md_constants): ...member function.
9150 (handle_enum): Convert to...
9151 (rtx_reader::handle_enum): ...member function.
9152 (lookup_enum_type): Convert to...
9153 (rtx_reader::lookup_enum_type): ...member function.
9154 (traverse_enum_types): Convert to...
9155 (rtx_reader::traverse_enum_types): ...member function.
9156 (rtx_reader::rtx_reader): Move initializations
9157 of various former global data from rtx_reader::read_md_files to
9158 here, as fields, along with the call to unlock_std_streams.
9159 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
9161 (rtx_reader::read_md_files): Move initializations of various
9162 global data from here to the ctor.
9163 * read-md.h (read_name): Convert to...
9164 (rtx_reader::read_name): ...member function.
9165 (rtx_reader::read_escape): New method decl.
9166 (read_quoted_string): Convert to...
9167 (rtx_reader::read_quoted_string): ...member function.
9168 (rtx_reader::read_braced_string): New method decl.
9169 (read_string): Convert to...
9170 (rtx_reader::read_string): ...member function.
9171 (rtx_reader::read_skip_construct): New method decl.
9172 (rtx_reader::set_md_ptr_loc): New method decl.
9173 (rtx_reader::get_md_ptr_loc): New method decl.
9174 (copy_md_ptr_loc): Convert to...
9175 (rtx_reader::copy_md_ptr_loc): ...member function.
9176 (fprint_md_ptr_loc): Convert to...
9177 (rtx_reader::fprint_md_ptr_loc): ...member function.
9178 (print_md_ptr_loc): Convert to...
9179 (rtx_reader::print_md_ptr_loc): ...member function.
9180 (rtx_reader::lookup_enum_type): New method decl.
9181 (rtx_reader::traverse_enum_types): New method decl.
9182 (rtx_reader::handle_constants): New method decl.
9183 (traverse_md_constants): Convert to...
9184 (rtx_reader::traverse_md_constants): ...member function.
9185 (rtx_reader::handle_enum): New method decl.
9186 (rtx_reader::join_c_conditions): New method decl.
9187 (fprint_c_condition): Convert to...
9188 (rtx_reader::fprint_c_condition): ...member function.
9189 (print_c_condition): Convert to...
9190 (rtx_reader::print_c_condition): ...member function.
9191 (rtx_reader::apply_iterator_to_string): New method decl.
9192 (rtx_reader::copy_rtx_for_iterators): New method decl.
9193 (rtx_reader::read_conditions): New method decl.
9194 (rtx_reader::record_potential_iterator_use): New method decl.
9195 (rtx_reader::read_mapping): New method decl.
9196 (rtx_reader::read_rtx): New method decl.
9197 (rtx_reader::read_rtx_code): New method decl.
9198 (rtx_reader::read_rtx_operand): New method decl.
9199 (rtx_reader::read_nested_rtx): New method decl.
9200 (rtx_reader::read_rtx_variadic): New method decl.
9201 (rtx_reader::get_string_obstack): New method.
9202 (rtx_reader::get_md_constants): New method.
9203 (string_obstack): Convert global variable decl to...
9204 (rtx_reader::m_string_obstack): ...this new field.
9205 (rtx_reader::m_ptr_locs): New field.
9206 (rtx_reader::m_ptr_loc_obstack): New field.
9207 (rtx_reader::m_joined_conditions): New field.
9208 (rtx_reader::m_joined_conditions_obstack): New field.
9209 (rtx_reader::m_md_constants): New field.
9210 (rtx_reader::m_enum_types): New field.
9211 * read-rtl.c (apply_iterator_to_string): Convert to...
9212 (rtx_reader::apply_iterator_to_string): ...member function.
9213 (copy_rtx_for_iterators): Convert to...
9214 (rtx_reader::copy_rtx_for_iterators): ...member function.
9215 (add_condition_to_string): Use rtx_reader_ptr for
9216 calls join_c_conditions.
9217 (apply_iterators): Use rtx_reader_ptr for calls to
9218 join_c_conditions and copy_rtx_for_iterators.
9219 (read_conditions): Convert to...
9220 (rtx_reader::read_conditions): ...member function.
9221 (record_potential_iterator_use): Convert to...
9222 (rtx_reader::record_potential_iterator_use): ...member function.
9223 (read_mapping): Convert to...
9224 (rtx_reader::read_mapping): ...member function.
9225 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
9226 (read_rtx): Convert to...
9227 (rtx_reader::read_rtx): ...member function.
9228 (read_rtx_code): Convert to...
9229 (rtx_reader::read_rtx_code): ...member function.
9230 (read_rtx_operand): Convert to...
9231 (rtx_reader::read_rtx_operand): ...member function. Update for move
9232 of string_obstack to a field.
9233 (read_nested_rtx): Convert to..
9234 (rtx_reader::read_nested_rtx): ...member function.
9235 (read_rtx_variadic): Convert to..
9236 (rtx_reader::read_rtx_variadic): ...member function.
9238 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9240 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
9242 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9244 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
9245 for pointer type too.
9246 (ipcp_update_vr): set_ptr_nonnull for pointer.
9248 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9250 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
9251 pt_solution_singleton_p.
9252 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
9253 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
9254 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
9255 pointer nonnull computed by VRP.
9256 Also Conservatively set pt.null to 1.
9257 (pt_solution_reset): Conservatively set pt.null to 1.
9258 (pt_solution_singleton_or_null_p): Renamed from
9259 pt_solution_singleton_p.
9260 * tree-ssanames.h (set_ptr_nonnull): Declare.
9261 (get_ptr_nonnull): Likewise.
9262 * tree-ssanames.c (set_ptr_nonnull): New.
9263 (get_ptr_nonnull): Likewise.
9264 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
9265 (evrp_dom_walker::before_dom_children): Likewise.
9267 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9269 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9270 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9271 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9272 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9273 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
9274 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9275 (rs6000_option_override_internal): Clear it if ABI_AIX.
9276 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9277 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
9279 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9281 * gimple-ssa-strength-reduction.c (record_increment): Remove
9284 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9286 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
9287 that the result is non-zero if it is true.
9288 (maybe_expand_shift): New wrapper around expand_shift_1.
9289 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
9291 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9293 PR tree-optimization/77916
9294 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
9295 Don't allow a MINUS_EXPR for pointer arithmetic for either known
9297 (record_increment): Increments of -1 for unknown strides just use
9298 a multiply initializer like other negative values.
9299 (analyze_increments): Remove stopgap solution for -1 increment
9300 applied to pointer arithmetic.
9302 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
9304 * dominance.c (dom_info::dom_info): Add new constructor for region
9305 which is vector of basic blocks.
9306 (dom_init): New method to initialize members common for both
9308 (dom_info::dom_info): Invoke dom_init for partial initialization.
9309 (dom_info::get_idom): Add check to corner cases on basic blocks which
9311 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
9312 to detect unreachable bbs.
9313 (dom_info::calc_idoms): Likewise.
9314 (compute_dom_fast_query_in_region): New function.
9315 (calculate_dominance_info_for_region): Likewise.
9316 (free_dominance_info_for_region): Likewise.
9317 * dominance.h: Add prototypes for introduced region-based functions
9318 * tree-if-conv.c (build_region): New function.
9319 (if_convertible_loop_p_1): Invoke local version of post-dominators
9320 calculation before basic block predication with subsequent freeing
9321 post-dominator info.
9322 (tree_if_conversion): Remove free of post-dominator info
9323 (pass_if_conversion::execute): Delete detection of infinite loops
9324 and fake edges to exit block since post-dominator calculation is
9325 performed per if-converted loop only.
9327 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
9330 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
9331 register explicitly.
9332 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
9333 optimizing for size.
9335 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9337 * config/aarch64/aarch64.c: Delete inclusion of
9338 cortex-a57-fma-steering.h.
9339 (aarch64_override_options): Delete call
9340 to aarch64_register_fma_steering.
9341 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
9342 * config/aarch64/cortex-a57-fma-steering.h: Delete.
9343 * config/aarch64/aarch64-passes.def: New file.
9344 * config/aarch64/cortex-a57-fma-steering.c
9345 (aarch64_register_fma_steering): Delete definition.
9346 (make_pass_fma_steering): Remove static qualifier.
9347 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
9348 (cortex-a57-fma-steering.o): Remove dependency on
9349 cortex-a57-fma-steering.h.
9351 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9353 * explow.c (validize_mem): Do not modify the argument in-place.
9355 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
9357 * tree-streamer.c (record_common_node): Explicitly list expected
9360 2016-10-17 Richard Biener <rguenther@suse.de>
9362 PR tree-optimization/77988
9363 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
9365 2016-10-17 Marek Polacek <polacek@redhat.com>
9367 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
9369 2016-10-17 Richard Biener <rguenther@suse.de>
9371 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
9374 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9376 PR tree-optimization/71636
9377 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
9379 2016-10-17 Richard Biener <rguenther@suse.de>
9381 * gimplify.c (gimplify_function_tree): Do not move the outer
9384 2016-10-17 Jakub Jelinek <jakub@redhat.com>
9386 * langhooks.h (struct lang_hooks_for_decls): Remove
9387 function_decl_explicit_p, function_decl_deleted_p and
9388 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
9389 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
9390 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9391 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
9392 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
9393 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
9394 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9395 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
9396 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
9397 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
9398 * langhooks.c (lhd_decl_dwarf_attribute): New function.
9399 * dwarf2out.c (gen_subprogram_die): Use
9400 lang_hooks.decls.decl_dwarf_attribute instead of
9401 lang_hooks.decls.function_decl_*.
9403 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9407 * common.opt (-ftrampolines): New option.
9408 * doc/invoke.texi (Code Gen Options): Document it.
9409 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
9410 * doc/tm.texi: Regenerate.
9411 * builtins.def: Add init_descriptor and adjust_descriptor.
9412 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
9413 on platforms with descriptors.
9414 (expand_builtin_init_descriptor): New function.
9415 (expand_builtin_adjust_descriptor): Likewise.
9416 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
9417 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
9418 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
9419 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
9420 Set STATIC_CHAIN_REG_P on the static chain register, if any.
9421 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
9422 (expand_call): Likewise. Move around call to prepare_call_address
9423 and pass all flags to it.
9424 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
9425 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
9426 (gimple_call_set_by_descriptor): New setter.
9427 (gimple_call_by_descriptor_p): New getter.
9428 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
9429 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
9430 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
9431 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9432 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
9433 * rtl.h (STATIC_CHAIN_REG_P): New macro.
9434 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
9435 * target.def (custom_function_descriptors): New POD hook.
9436 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
9437 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
9438 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
9439 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
9440 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
9441 (build_common_builtin_nodes): Initialize init_descriptor and
9443 * tree-nested.c: Include target.h.
9444 (struct nesting_info): Add 'any_descr_created' field.
9445 (get_descriptor_type): New function.
9446 (lookup_element_for_decl): New function extracted from...
9447 (create_field_for_decl): Likewise.
9448 (lookup_tramp_for_decl): ...here. Adjust.
9449 (lookup_descr_for_decl): New function.
9450 (convert_tramp_reference_op): Deal with descriptors.
9451 (build_init_call_stmt): New function extracted from...
9452 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
9453 * defaults.h (FUNCTION_ALIGNMENT): Define.
9454 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
9455 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9456 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9457 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
9458 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9460 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9462 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
9463 constants in CONST_VECTORs.
9465 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9467 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
9468 register as destination of bmask.
9469 (vector_init_bshuffle): Likewise.
9470 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
9471 (bmaskdi_vis): Enable only in 64-bit mode.
9473 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9475 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
9476 make LR a separately shrink-wrapped component unless savres_strategy
9477 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
9478 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
9479 wrapping when not both {SAVE,REST}_INLINE_GPRS.
9481 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9483 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
9484 and keep looping on failure.
9486 2016-10-14 David Malcolm <dmalcolm@redhat.com>
9488 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
9490 (print_rtx_function): Update example in comment for...
9491 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
9492 non-virtual pseudos with a '%' sigil followed by the regno, offset
9493 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
9494 pseudo is dumped as "%0".
9496 2016-10-14 Jakub Jelinek <jakub@redhat.com>
9499 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
9502 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
9504 * config/sparc/sparc-passes.def: New file.
9505 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
9506 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
9507 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
9509 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9511 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
9512 loop peel to loops with exit test at the beginning.
9514 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9516 PR rtl-optimization/68212
9517 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
9518 frequency when computing scale factor for peeled copies.
9519 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
9520 values for switch/peel blocks/edges.
9522 2016-10-14 Pedro Alves <palves@redhat.com>
9524 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
9526 2016-10-14 Catherine Moore <clm@codesourcery.com>
9528 * config/mips/mips.c (mips_prepare_pch_save): Initialize
9529 micromips_globals to zero.
9531 2016-10-14 Richard Biener <rguenther@suse.de>
9533 PR tree-optimization/77979
9534 * tree-vrp.c (compare_name_with_value): Handle released SSA names
9535 in the equivalency sets.
9536 (compare_names): Likewise.
9538 2016-10-14 Martin Liska <mliska@suse.cz>
9540 * builtins.h(target_char_cst_p): Declare the function.
9541 * builtins.c (fold_builtin_memchr): Remove.
9542 (target_char_cst_p): Move the function from gimple-fold.c.
9543 (fold_builtin_3): Do not call the function.
9544 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
9545 (gimple_fold_builtin): Call the function.
9546 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
9548 2016-10-14 Martin Liska <mliska@suse.cz>
9550 * builtins.c (fold_builtin_strcmp): Remove function.
9551 (fold_builtin_strncmp): Likewise.
9552 (fold_builtin_2): Remove call of the function.
9553 (fold_builtin_3): Likewise.
9554 * fold-const-call.c (fold_const_call): Add constant folding
9555 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
9556 * fold-const-call.h (build_cmp_result): Declare the function.
9557 * gimple-fold.c (gimple_load_first_char): New function.
9558 (gimple_fold_builtin_string_compare): Likewise.
9559 (gimple_fold_builtin): Call the function.
9561 2016-10-14 Nathan Sidwell <nathan@acm.org>
9563 * gcov-io.c (gcov_open): Deconstify 'mode'.
9565 2016-10-14 Martin Liska <mliska@suse.cz>
9567 * fold-const.c (c_getstr): Support of properly \0-terminated
9568 string constants. New argument is added.
9569 * fold-const.h: New argument is added.
9571 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9573 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
9575 (aarch64_print_hint_for_core): Likewise.
9576 (aarch64_print_hint_for_arch): Likewise.
9577 (aarch64_validate_march): Use it. Fix indentation in type signature.
9578 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
9579 (aarch64_validate_mtune): Likewise.
9580 (aarch64_handle_attr_arch): Likewise.
9581 (aarch64_handle_attr_cpu): Likewise.
9582 (aarch64_handle_attr_tune): Likewise.
9584 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9586 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
9589 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
9591 * config/m68k/m68k.c (m68k_option_override): Check
9592 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
9593 instead of stack_limit_rtx.
9595 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9597 * dwarf2out.c (gen_member_die): Handle inline static data member
9600 2016-10-13 Nathan Sidwell <nathan@acm.org>
9602 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
9603 gcov_var.mode. Remove unnecessary fstat.
9605 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
9608 * function.c (thread_prologue_and_epilogue_insns): Call all
9609 make_*logue_seq in the same order as traditional. Call them
9610 all a second time if shrink_wrapped_separate.
9612 2016-10-13 Marek Polacek <polacek@redhat.com>
9614 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9615 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
9618 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9620 PR tree-optimization/77937
9621 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
9622 to infinite when we have a pointer with an increment of -1.
9624 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9626 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
9628 * memmodel.h: This file.
9629 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9630 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
9631 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
9632 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
9633 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
9634 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
9635 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
9636 compare-elim.c, config/aarch64/aarch64-builtins.c,
9637 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
9638 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
9639 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
9640 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
9641 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
9642 config/darwin.c, config/epiphany/epiphany.c,
9643 config/epiphany/mode-switch-use.c,
9644 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
9645 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
9646 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
9647 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9648 config/m68k/m68k.c, config/mcore/mcore.c,
9649 config/microblaze/microblaze.c, config/mmix/mmix.c,
9650 config/mn10300/mn10300.c, config/moxie/moxie.c,
9651 config/msp430/msp430.c, config/nds32/nds32-cost.c,
9652 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
9653 config/nds32/nds32-memory-manipulation.c,
9654 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
9655 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
9656 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
9657 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
9658 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
9659 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
9660 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9661 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9662 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
9663 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
9664 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
9665 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
9666 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
9667 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
9668 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
9669 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
9670 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
9671 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
9672 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
9673 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9674 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
9675 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9676 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
9677 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
9678 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
9679 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
9680 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
9681 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
9682 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
9683 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
9684 var-tracking.c, varasm.c: Include memmodel.h.
9685 * genattrtab.c (write_header): Include memmodel.h in generated file.
9686 * genautomata.c (main): Likewise.
9687 * gengtype.c (open_base_files): Likewise.
9688 * genopinit.c (main): Likewise.
9689 * genconditions.c (write_header): Include memmodel.h earlier in
9691 * genemit.c (main): Likewise.
9692 * genoutput.c (output_prologue): Likewise.
9693 * genpeep.c (main): Likewise.
9694 * genpreds.c (write_insn_preds_c): Likewise.
9695 * genrecog.c (write_header): Likewise.
9696 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
9698 2016-10-13 David Malcolm <dmalcolm@redhat.com>
9700 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
9701 for new "compact" param of print_rtx_function. Check for "cinsn"
9703 * print-rtl-function.c (flag_compact): New decl.
9704 (print_rtx_function): Add param "compact" and use it to set
9705 flag_compact, adding a description of the effect to the leading
9706 comment, and updating the example output.
9707 * print-rtl.c (flag_compact): New variable.
9708 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
9710 (print_rtx_operand_code_i): When printing source locations, wrap
9711 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
9712 (print_rtx_operand_code_r): Don't print regnos for hard regs and
9713 virtuals in compact mode.
9714 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
9715 apart from in LABEL_REFs.
9716 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
9717 Don't print basic block ids in compact mode.
9718 (print_rtx): In compact mode, prefix the code of insns with "c",
9719 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
9720 * print-rtl.h (print_rtx_function): Add "compact" param.
9722 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9724 * arm.h (TARGET_VFP): Delete.
9725 (TARGET_VFPD32): Remove references to TARGET_VFP.
9726 (TARGET_VFP3, TARGET_VFP5): Likewise.
9727 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
9728 (TARGET_NEON_FP16): Likewise.
9729 (TARGET_FMA): Likewise.
9730 (TARGET_CRYPTO): Likewise.
9731 (TARGET_NEON): Likewise.
9732 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9733 (FUNCTION_ARG_REGNO_P): Likewise.
9734 * arm.c (arm_option_check_internal): Likewise.
9735 (arm_option_override): Likewise.
9736 (use_return_insn): Likewise.
9737 (arm_function_value_regno_p): Likewise.
9738 (arm_apply_result_size): Likewise.
9739 (use_vfp_abi): Likewise.
9740 (arm_legitimate_address_outer_p): Likewise.
9741 (thumb2_legitimate_address_p): Likewise.
9742 (arm_legitimate_index_p): Likewise.
9743 (thumb2_legitimate_index_p): Likewise.
9744 (arm_legitimate_address): Likewise.
9745 (arm_get_vfp_saved_size): Likewise.
9746 (arm_emit_vfp_multi_reg_pop): Likewise.
9747 (arm_get_frame_offsets): Likewise.
9748 (arm_save_coproc_regs): Likewise.
9749 (arm_hard_regno_mode_ok): Likewise.
9750 (arm_expand_epilogue_apcs_frame): Likewise.
9751 (arm_expand_epilogue): Likewise.
9752 (arm_file_start): Likewise.
9753 (arm_conditional_register_usage): Likewise.
9754 (arm_validize_comparison): Use vfp_compare_operand directly.
9755 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
9756 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
9758 (arm_atomic_assign_expand_fenv): Likewise.
9759 * arm.md (divsf3): Likewise.
9760 (arm_negsi2): Likewise.
9762 (arm_movdi): Likewise.
9763 (arm_movt): Likewise.
9764 (cbranchsf4): Change predicate to vfp_compare_operand.
9765 (cbranchdf4): Change predicate to vfp_compare_operand.
9766 (cstorehf4): Change predicate to vfp_compare_operand.
9767 (cstoresf4): Change predicate to vfp_compare_operand.
9768 (cstoredf4): Change predicate to vfp_compare_operand.
9769 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
9770 (movhi_insn_arch4, movhi_bytes): Likewise.
9771 * constraints.md (Dt): Likewise.
9773 * iterators.md (SDF): Likewise.
9774 * predicates.md (arm_float_compare_operand): Delete.
9775 (const_double_vcvt_power_of_two_reciprocal): Remove references to
9777 (const_double_vcvt_power_of_two): Likewise.
9778 * thumb2.md thumb2_movsi_insn): Likewise.
9779 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
9780 (movhf_vfp): Likewise.
9781 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
9782 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
9783 (movsf_vfp, thumb2_movsf_vfp): Likewise.
9784 (movdf_vfp, thumb2_movdf_vfp): Likewise.
9785 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
9786 (subsf3_vfp, divsf3_vfp): Likewise.
9787 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
9788 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
9789 (mulsf3negsfsubsf_vfp): Likewise.
9790 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
9791 (floatunssisf2, sqrtsf2_vfp): Likewise.
9792 (movcc_vfp): Likewise.
9793 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
9794 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
9795 (push_multi_vfp): Likewise.
9796 (set_fpscr, get_fpscr): Likewise.
9797 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
9799 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9801 * arm.h (TARGET_VFP): Unconditionally define to 1.
9802 (arm_fpu_desc): Remove 'model' field.
9803 (TARGET_FPU_MODEL): Delete.
9804 * arm.c (all_fpus): Don't initialize the model field.
9805 (arm_can_inline_p): Don't check the FPU model.
9806 * arm-fpus.def: Remove redundant model field from all FPU
9809 2016-10-13 Richard Biener <rguenther@suse.de>
9812 * genmatch.c (struct capture): Add value_match member.
9813 (commutate): Preserve value_match.
9814 (lower_opt_convert): Likewise.
9815 (lower_cond): Likewise.
9816 (replace_id): Likewise.
9817 (struct dt_operand): Add value_match member.
9818 (decision_tree::cmp_node): Compare it.
9819 (decision_tree::insert_operand): Honor it when finding and
9820 when appending a DT_MATCH.
9821 (dt_operand::gen_match_op): Generate a type check after
9822 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
9823 (parser::get_internal_capture_id): New helper.
9824 (parser::finish_match_operand): New function lowering @@<id>.
9825 (parser::parse_capture): Parse @@<id> as value-match.
9826 (parser::parse_expr): Use get_internal_capture_id.
9827 (parser::parse_simplify): Call finish_match_operand.
9828 (walk_captures): New helper.
9829 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
9831 ((X /[ex] A) * A -> X): Likewise.
9832 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
9833 convert[12] and value-matching.
9834 ((A | B) & (A | C) -> A | (B & C)): Likewise.
9835 ((X | Y) | Y -> X | Y): Likewise.
9836 ((X ^ Y) ^ Y -> X): Likewise.
9837 (A - (A & B) -> ~B & A): Likewise.
9838 ((T)(P + A) - (T)P -> (T) A): Likewise.
9839 ((T)P - (T)(P + A) -> -(T) A): Likewise.
9840 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
9841 * doc/match-and-simplify.texi: Amend capture section.
9843 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9845 * config/arc/arc.md (umul_600): Remove predicated variant.
9846 (umul64_600): Likewise.
9848 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9850 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
9852 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9854 * tree-vect-loop.c (loop_niters_no_overflow): New func.
9855 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
9856 no-overflow information to vect_do_peeling_for_loop_bound and
9857 vect_gen_vector_loop_niters.
9859 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9861 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
9864 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9866 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
9867 adjust_vec automatically.
9868 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
9869 param exit_bb to guard_to.
9870 (slpeel_checking_verify_cfg_after_peeling):
9871 (set_prologue_iterations):
9872 (create_lcssa_for_virtual_phi): New func which is factored out from
9873 slpeel_tree_peel_loop_to_edge.
9874 (slpeel_tree_peel_loop_to_edge):
9875 (iv_phi_p): New func.
9876 (vect_can_advance_ivs_p): Call iv_phi_p.
9877 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
9878 new gimple stmts in basic block.
9879 (vect_gen_niters_for_prolog_loop): Rename to...
9880 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
9881 adjust implementation.
9882 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
9883 sizetype if necessary.
9884 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
9885 it to external function.
9886 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
9887 (vect_gen_vector_loop_niters_mult_vf): New.
9888 (slpeel_update_phi_nodes_for_loops): New.
9889 (slpeel_update_phi_nodes_for_guard1): Reimplement.
9890 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
9891 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
9892 * tree-vect-loop.c (vect_build_loop_niters): Move to file
9893 tree-vect-loop-manip.c
9894 (vect_generate_tmps_on_preheader): Delete.
9895 (vect_transform_loop): Rename vectorization_factor to vf. Call
9896 vect_do_peeling instead of vect_do_peeling-* functions.
9897 * tree-vectorizer.h (vect_do_peeling): New decl.
9898 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
9899 (vect_do_peeling_for_loop_bound): Delete.
9900 (vect_do_peeling_for_alignment): Delete.
9902 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9904 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
9905 duplicated loop after its preheader and after the original loop.
9907 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9909 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
9910 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
9912 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9914 * tree-vect-loop.c (vectorizable_live_operation): Support handling
9915 for live variable outside loop but not in lcssa form.
9917 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9919 * cfg.c (reset_original_copy_tables): New func.
9920 * cfg.h (reset_original_copy_tables): New decl.
9922 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9925 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
9927 * varasm.c (default_binds_local_p_3): Formatting fix.
9929 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9931 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
9933 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
9934 Remove useless code.
9936 2016-10-13 Martin Liska <mliska@suse.cz>
9938 PR tree-optimization/77943
9939 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
9940 a different EH landing pads.
9942 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9945 * hooks.h (hook_tree_void_null): Declare.
9946 * hooks.c (hook_tree_void_null): New function.
9947 * langhooks.c (lhd_return_null_tree_v): Remove.
9948 * langhooks-def.h (lhd_return_null_tree_v): Remove.
9949 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
9950 set y to const0_rtx.
9951 * function.c (stack_protect_epilogue): Likewise.
9952 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
9953 if TARGET_THREAD_SSP_OFFSET is defined.
9954 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9955 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9956 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9957 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9958 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9959 (ix86_stack_protect_guard): New function.
9961 2016-10-13 Richard Biener <rguenther@suse.de>
9963 * dwarf2out.c (tree_add_const_value_attribute): Do not try
9964 rtl_for_decl_init during early phase.
9965 (gen_variable_die): Do not create locations during early phase.
9966 (gen_label_die): Likewise.
9967 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
9970 2016-10-12 Richard Biener <rguenther@suse.de>
9972 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
9973 try_add_new_range and made to eturn new range.
9974 (evrp_dom_walker::before_dom_children): Push op1 value range before
9975 pushing op0 value range.
9977 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9979 PR tree-optimization/77937
9980 * gimple-ssa-strength-reduction.c (analyze_increments): Use
9981 POINTER_TYPE_P on the candidate type to determine whether
9982 candidates in this chain require pointer arithmetic.
9984 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
9986 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
9987 correction if the type is smaller than a word.
9988 (visium_select_cc_mode): Add ... fall through ... comment.
9990 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9992 * config/rs6000/rs6000.c (machine_function): Add new fields
9993 gpr_is_wrapped_separately and lr_is_wrapped_separately.
9994 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
9995 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
9996 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
9997 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
9998 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
9999 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
10000 (rs6000_get_separate_components): New function.
10001 (rs6000_components_for_bb): New function.
10002 (rs6000_disqualify_components): New function.
10003 (rs6000_emit_prologue_components): New function.
10004 (rs6000_emit_epilogue_components): New function.
10005 (rs6000_set_handled_components): New function.
10006 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
10007 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
10008 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
10009 (rs6000_emit_epilogue): Don't emit GPR restores if
10010 gpr_is_wrapped_separately for that register. Don't make a
10011 REG_CFA_RESTORE note for registers we did not restore, either.
10013 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
10015 * function.c (thread_prologue_and_epilogue_insns): Call
10016 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
10017 if it has possibly changed. Compute the split_prologue_seq and
10018 epilogue_seq later, too.
10019 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
10020 (dump_components): New function.
10021 (struct sw): New struct.
10022 (SW): New function.
10023 (init_separate_shrink_wrap): New function.
10024 (fini_separate_shrink_wrap): New function.
10025 (place_prologue_for_one_component): New function.
10026 (spread_components): New function.
10027 (disqualify_problematic_components): New function.
10028 (emit_common_heads_for_components): New function.
10029 (emit_common_tails_for_components): New function.
10030 (insert_prologue_epilogue_for_components): New function.
10031 (try_shrink_wrapping_separate): New function.
10032 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
10034 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
10036 * regrename.c (build_def_use): Invalidate chains that have a
10037 REG_CFA_RESTORE on some instruction.
10039 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
10041 * dce.c (delete_unmarked_insns): Don't delete instructions with
10042 a REG_CFA_RESTORE note.
10044 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
10046 * common.opt (-fshrink-wrap-separate): New flag.
10047 * doc/invoke.texi: Document it.
10048 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
10049 * doc/tm.texi: Regenerate.
10050 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
10051 * target.def (shrink_wrap): New hook vector.
10052 (get_separate_components, components_for_bb, disqualify_components,
10053 emit_prologue_components, emit_epilogue_components,
10054 set_handled_components): New hooks.
10056 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
10058 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
10059 vector return by reference only if -Wpsabi.
10060 (rs6000_pass_by_reference): Similarly, for argument passing.
10062 2016-10-12 David Malcolm <dmalcolm@redhat.com>
10064 * function-tests.c: Include "print-rtl.h".
10065 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
10066 function, and verify what is dumped.
10067 * print-rtl-function.c (print_edge): New function.
10068 (begin_any_block): New function.
10069 (end_any_block): New function.
10070 (can_have_basic_block_p): New function.
10071 (print_rtx_function): Track the basic blocks of insns in the
10072 chain, wrapping those that are within blocks within "(block)"
10073 directives. Remove the "(cfg)" directive.
10075 2016-10-12 David Malcolm <dmalcolm@redhat.com>
10077 * selftest.c (selftest::read_file): New function.
10078 (selftest::test_read_file): New function.
10079 (selftest::selftest_c_tests): Call test_read_file.
10080 * selftest.h (selftest::read_file): New decl.
10082 2016-10-12 Richard Biener <rguenther@suse.de>
10085 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
10088 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
10090 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
10092 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
10093 dwarf2out_assembly_start.
10095 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
10097 * Makefile.in (SELFTEST_FLAGS): New variable.
10098 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
10100 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
10103 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
10105 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
10106 dumped in RTL dumps.
10108 2016-10-12 Martin Liska <mliska@suse.cz>
10110 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
10111 (gimple_fold_builtin_memory_op): Use the function.
10112 (gimple_fold_builtin_strchr): Likewise.
10113 (gimple_fold_builtin_strcat): Likewise.
10114 (gimple_build): Likewise.
10116 2016-10-12 Nathan Sidwell <nathan@acm.org>
10118 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
10120 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
10122 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
10123 equivalent 32-bit constant (modulo 2**32) when that yields
10124 smaller instructions.
10125 (size_of_int_loc_descriptor): Update accordingly.
10127 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
10129 * dwarf2out.c (dwarf2out_early_global_decl): For nested
10130 functions, call dwarf2out_decl on the parent function first.
10132 2016-10-12 Richard Biener <rguenther@suse.de>
10134 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
10137 2016-10-12 Richard Biener <rguenther@suse.de>
10139 * tree-ssa-propagate.c
10140 (substitute_and_fold_dom_walker::before_dom_children): Do not
10141 ignore ASSERT_EXPRs but only preserve them.
10142 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
10143 that have been propagated into.
10144 (vrp_finalize): Enable DCE for substitute_and_fold.
10146 2016-10-12 Richard Biener <rguenther@suse.de>
10148 PR tree-optimization/77920
10149 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
10150 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
10151 (simplify_abs_using_ranges): Likewise.
10152 (simplify_conversion_using_ranges): Likewise.
10153 (simplify_stmt_using_ranges): Adjust.
10155 2016-10-12 Jakub Jelinek <jakub@redhat.com>
10157 PR tree-optimization/77929
10158 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
10159 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
10161 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10164 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
10165 needs a base register for arg 1.
10167 2016-10-12 Jakub Jelinek <jakub@redhat.com>
10169 * common.opt (Wimplicit-fallthrough) Turn into alias to
10170 -Wimplicit-fallthrough=3. Remove EnabledBy.
10171 (Wimplicit-fallthrough=): New option.
10172 * gimplify.c (warn_implicit_fallthrough_r): Use
10173 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
10174 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
10175 to -Wimplicit-fallthrough=3.
10176 (-Wimplicit-fallthrough=): Document.
10178 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10180 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
10181 and GEU in DImode if TARGET_SUBXC.
10182 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
10183 (seqdi<W:mode>_zero_subxc): Delete.
10184 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
10185 (neg_seqdi<W:mode>_zero_vis3): Delete.
10186 (plus_seqdi<W:mode>_zero): Likewise.
10187 (minus_seqdi<W:mode>_zero): Likewise.
10188 (plus_plus_sltu<W:mode>): Accept only register.
10189 (addx<W:mode>): Likewise.
10190 (plus_sltu<W:mode>_vis3): Likewise.
10191 (plus_plus_sltu<W:mode>_vis3): Likewise.
10192 (neg_sgeu<W:mode>_vis3): Delete.
10193 (minus_sgeu<W:mode>_vis3): Likewise.
10194 (addxc<W:mode>): Accept only registers.
10195 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10196 (minus_neg_sltu<W:mode>_subxc): Accept only register.
10197 (neg_plus_sltu<W:mode>_subxc): Likewise.
10198 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10199 (minus_minus_sltu<W:mode>_subxc): Accept only register.
10200 (sgeu<W:mode>_insn_subxc): Delete.
10201 (plus_sgeu<W:mode>_subxc): Likewise.
10202 (subxc<W:mode>): Accept only register.
10203 (scc splitter): Split always GEU again.
10205 2016-10-11 Jeff Law <law@redhat.com>
10207 PR tree-optimization/77424
10208 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
10209 dead conditionals. Assert that all e->aux fields are NULL.
10211 2016-10-11 David Malcolm <dmalcolm@redhat.com>
10213 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
10214 operand-printing "switch" statement into...
10215 (print_rtx_operand_code_0): ...this new function, ...
10216 (print_rtx_operand_code_e): ...this new function, ...
10217 (print_rtx_operand_codes_E_and_V): ...this new function, ...
10218 (print_rtx_operand_code_i): ...this new function, ...
10219 (print_rtx_operand_code_r): ...this new function, ...
10220 (print_rtx_operand_code_u): ...this new function, ...
10221 (print_rtx_operand): ...and this new function.
10223 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
10225 * config/alpha/alpha-passes.def: New file.
10226 * config/alpha/t-alpha: New file.
10227 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
10228 (make_pass_handle_trap_shadows): New prototype.
10229 (make_pass_align_insns): Ditto.
10230 * config/alpha/alpha.c (alpha_option_override): Don't register
10232 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
10234 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10237 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
10238 distinct __ibm128 IBM extended double type if long doubles are
10239 128-bits and the default format for long double is IEEE 128-bit.
10241 2016-10-11 Richard Biener <rguenther@suse.de>
10243 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
10244 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
10245 (verify_die): New function.
10246 (dwarf2out_finish): Call it.
10247 (output_line_info): Handle case of -gsplit-dwarf without
10248 DWARF2_ASM_LINE_DEBUG_INFO.
10250 2016-10-11 Richard Biener <rguenther@suse.de>
10253 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
10254 sub-chains of BLOCK_VARS and gimple_bind_vars.
10256 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10258 * config/i386/znver1.md : Fix imov/imovx load type reservations.
10260 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10262 * config/sparc/sparc.opt (msubxc): New option.
10263 * doc/invoke.texi (SPARC options): Document it and tidy up.
10264 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
10265 * doc/tm.texi: Regenerate.
10266 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
10268 (CCX_NOOV): Rename into...
10272 * config/sparc/predicates.m (fcc_register_operand): Simplify.
10273 (fcc0_register_operand): Likewise.
10274 (icc_register_operand): New.
10275 (icc_or_fcc_register_operand): Simplify.
10276 (nz_comparison_operator): New.
10277 (c_comparison_operator): Likewise.
10278 (noov_compare_operator): Rename into...
10279 (icc_comparison_operator): ...this. Use above predicates.
10280 (noov_compare64_operator): Rename into...
10281 (v9_comparison_operator): ...this and tidy up.
10282 (fcc_comparison_operator): New.
10283 (icc_or_fcc_comparison_operator): Likewise.
10284 (v9_register_compare_operator): Rename info...
10285 (v9_register_comparison_operator): ...this.
10286 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10287 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
10289 (sparc_fixed_condition_code_regs): New function.
10290 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
10291 renaming and add support for CCC/CCXC.
10292 (output_cbranch): Likewise.
10293 (sparc_print_operand): Likewise.
10294 (gen_v9_scc): Remove obsolete assertion.
10295 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
10296 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
10297 (output_cbcond): Remove bogus handling of CC modes.
10298 (sparc_register_move_cost): Return 100 for NO_REGS.
10299 * config/sparc/sparc.md (W): New mode iterator.
10300 (length): Adjust for noov_compare64_operator renaming.
10301 (cmpsi_sne): New instruction.
10302 (cmpdi_sne): Likewise.
10303 (seqdi_special): Delete.
10304 (seqdi_special): Likewise.
10305 (snesi<P:mode>_special): Likewise.
10306 (snedi_special): Likewise.
10307 (snedi_special_vis3): Likewise.
10308 (snesi patterns): Use W iterator.
10309 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
10310 (sltu patterns): Likewise.
10311 (sgeu patterns): Likewise.
10312 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
10313 (normal_branch): Use icc_comparison_operator predicate.
10314 (inverted_branch): Likewise.
10315 (cbcond_sp32): Use comparison_operator predicate.
10316 (cbcond_sp64): Likewise.
10317 (normal_int_branch_sp64): Adjust for renaming
10318 (inverted_int_branch_sp64): Likewise.
10319 (mov<I:mode>_cc_reg_sp64): Likewise.
10320 (movsf_cc_reg_sp6): Likewise.
10321 (movdf_cc_reg_sp64): Likewise.
10322 (movtf_cc_reg_hq_sp64): Likewise.
10323 (movtf_cc_reg_sp64): Likewise.
10324 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
10325 (movsf_cc_v9): Likewise.
10326 (movdf_cc_v9): Likewise.
10327 (movtf_cc_hq_v9): Likewise.
10328 (movtf_cc_v9): Likewise.
10329 (adddi3): Call gen_adddi3_sp32.
10330 (adddi3_insn_sp32): Rename to...
10331 (adddi3_sp32): ...this. Accept only register_operand as operand #1
10332 and use CCCmode for the carry.
10333 (addx_extend_sp32): Use CCCmode for the carry.
10334 (addx_extend_sp64): Delete.
10335 (adddi3_extend_sp32): Use CCCmode for the carry.
10336 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
10337 (subdi3): Call gen_subdi3_sp32.
10338 (subdi3_insn_sp32): Rename to...
10339 (subdi3_sp32): ...this and use CCmode for the carry.
10340 (subx_extend_sp32): Use CCCmode for the carry.
10341 (subx_extend_sp64): Delete.
10342 (subdi3_extend_sp32): Use CCmode for the carry.
10343 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
10344 (negdi3): Call gen_negdi3_sp32.
10345 (negdi3_sp32): Use CCCmode for the carry.
10346 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
10347 (cmp_nz_ashift_1): Use CCNZ mode.
10348 (cmp_nz_set_ashift_1): Likewise.
10349 (ctrapsi4): Use comparison_operator predicate.
10350 (ctrapdi4): Likewise.
10351 (trapsi_insn): Use icc_comparison_operator predicate.
10352 (trapdi_insn): Likewise.
10353 (edge8 patterns): Use CCNZmode.
10354 (edge16 patterns): Likewise.
10355 (edge32 patterns): Likewise.
10357 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10359 * config/visium/visium-modes.def (CC_NOOV): Rename into...
10361 (CC_BTST): Rename into...
10363 * config/visium/predicates.md (real_add_operand): New.
10364 (visium_btst_operator): Rename into...
10365 (visium_equality_comparison_operator): ...this.
10366 (visium_noov_operator): Rename into...
10367 (visium_nz_comparison_operator): ...this.
10368 (visium_c_comparison_operator): New.
10369 (visium_branch_operator): Adjust and deal with all CC modes.
10370 * config/visium/visium.c (visium_adjust_cost): Adjust.
10371 (visium_split_double_add): Use the *_set_carry patterns.
10372 (visium_select_cc_mode): Add support for CCC mode and adjust.
10373 (output_cbranch): Adjust and use the carry-based operators for
10374 floating-point comparisons.
10375 * config/visium/visium.md (flags_subst_arith): Adjust.
10376 (addsi3_insn_set_carry): New instruction.
10377 (subsi3_insn_set_carry): Likewise.
10378 (negsi2_insn_set_carry): Likewise.
10380 (cmp<mode>_sne): Likewise.
10381 (cbranch<mode>4): Use ordered_comparison_operator.
10382 (cbranch<mode>4_insn): Likewise.
10383 (cbranchsi4_btst_insn): Adjust.
10385 2016-10-11 Tom de Vries <tom@codesourcery.com>
10387 PR middle-end/77558
10388 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
10391 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10393 * tree.h (build_complex_type): Add second parameter with default.
10394 * tree.c (build_complex_type): Add NAMED second parameter and adjust
10395 recursive call. Create a TYPE_DECL only if NAMED is true.
10396 (build_common_tree_nodes): Pass true in calls to build_complex_type.
10398 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
10400 New avr-passes.def to register AVR specific passes.
10402 * config/avr/avr-passes.def: New file.
10403 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
10404 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
10405 (make_avr_pass_recompute_note): New proto.
10406 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
10407 (avr_pass_recompute_notes): Use anonymous namespace.
10408 (avr_register_passes): Remove function...
10409 (avr_option_override): ...and its call.
10411 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
10413 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
10414 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
10415 PTF_AVOID_BRANCHLIKELY_SPEED for others.
10416 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
10418 * config/mips/mips.c (mips_option_override): Enable the branch
10419 likely depending on the tune flags and optimization level.
10420 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
10421 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
10422 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
10423 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
10425 2016-10-11 Richard Biener <rguenther@suse.de>
10427 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
10428 (output_function): Properly stream the whole block tree.
10429 * lto-streamer-in.c (input_function): Likewise.
10431 2016-10-11 Marek Polacek <polacek@redhat.com>
10433 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
10435 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10437 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
10438 (evrp_dom_walker::before_dom_children): Infer and push new value
10439 ranges for x in y < x.
10441 2016-10-10 Joseph Myers <joseph@codesourcery.com>
10444 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
10445 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10446 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10447 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10448 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
10449 (IA64_NO_LIBGCC_TFMODE): Likewise.
10451 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10453 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
10456 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
10458 * config.gcc: Add aarch64-*-freebsd* support.
10459 * config.host: Likewise.
10460 * config/aarch64/aarch64-freebsd.h: New file.
10461 * config/aarch64/t-aarch64-freebsd: Ditto.
10463 2016-10-10 Jeff Law <law@redhat.com>
10465 PR tree-optimization/71947
10466 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
10467 B with A within a single statement.
10469 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10471 PR tree-optimization/77824
10472 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
10473 zero cost for copies.
10474 (find_candidates_dom_walker::before_dom_children): Replace
10475 MODIFY_EXPR with SSA_NAME.
10476 (replace_mult_candidate): Likewise.
10477 (replace_profitable_candidates): Likewise.
10479 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10481 * config/s390/s390.h: Wrap more macros args in brackets and fix
10483 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
10485 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
10487 2016-10-10 Andreas Schwab <schwab@suse.de>
10490 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
10491 pseudo is not DImode.
10493 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
10495 * common/config/arc/arc-common.c (arc_option_optimization_table):
10496 Remove compact casesi option.
10497 * config/arc/arc.c (arc_override_options): Use compact casesi
10498 option only for pre-ARCv2 cores.
10499 * doc/invoke.texi (mcompact-casesi): Update text.
10501 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10503 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
10504 Add macro to say we can efficiently handle overlapping unaligned
10506 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
10507 poor code for processors older than p8.
10509 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
10511 * gen-pass-instances.awk: Remove GNUism.
10513 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10515 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
10516 NULL of (*ipcp_transformations)][node->uid].
10518 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
10520 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
10521 (MALLOC_ABI_ALIGNMENT): Define.
10523 2016-10-09 Jakub Jelinek <jakub@redhat.com>
10525 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
10526 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
10527 VAR_OR_FUNCTION_DECL_P macros.
10528 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
10529 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
10530 chkp_find_bounds_1): Likewise.
10531 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
10532 * hsa-gen.c (get_symbol_for_decl): Likewise.
10533 * cgraphunit.c (check_global_declaration, analyze_functions,
10534 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
10536 * gimple-fold.c (can_refer_decl_in_current_unit_p,
10537 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
10539 * tree.c (set_decl_section_name, copy_node_stat,
10540 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
10541 merge_dllimport_decl_attributes, handle_dll_attribute,
10542 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
10543 verify_type): Likewise.
10544 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
10545 find_explicit_erroneous_behavior): Likewise.
10546 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
10547 * ipa.c (process_references): Likewise.
10548 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
10549 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
10550 notice_global_symbol, assemble_variable, mark_decl_referenced,
10551 build_constant_desc, output_constant_def_contents, do_assemble_alias,
10552 make_decl_one_only, default_section_type_flags,
10553 categorize_decl_for_section, default_encode_section_info): Likewise.
10554 * trans-mem.c (requires_barrier): Likewise.
10555 * gimple-expr.c (mark_addressable): Likewise.
10556 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
10557 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
10558 expand_debug_expr): Likewise.
10559 * tree-dump.c (dequeue_and_dump): Likewise.
10560 * ubsan.c (instrument_bool_enum_load): Likewise.
10561 * tree-pretty-print.c (print_declaration): Likewise.
10562 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10563 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
10564 * asan.c (asan_protect_global, instrument_derefs): Likewise.
10565 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
10566 pass_build_ssa::execute): Likewise.
10567 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
10568 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
10570 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
10572 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
10573 can_be_nonlocal, remap_decls, copy_debug_stmt,
10574 initialize_inlined_parameters, add_local_variables,
10575 reset_debug_binding, replace_locals_op): Likewise.
10576 * dse.c (can_escape): Likewise.
10577 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
10579 * tree-diagnostic.c (default_tree_printer): Likewise.
10580 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
10581 unpack_ts_decl_with_vis_value_fields,
10582 lto_input_ts_decl_common_tree_pointers): Likewise.
10583 * builtins.c (builtin_save_expr, fold_builtin_expect,
10584 readonly_data_expr): Likewise.
10585 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
10586 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
10588 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
10589 * gimplify.c (force_constant_size, gimplify_bind_expr,
10590 gimplify_decl_expr, gimplify_var_or_parm_decl,
10591 gimplify_compound_lval, gimplify_init_constructor,
10592 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
10593 gimplify_type_sizes): Likewise.
10594 * cgraphbuild.c (record_reference, record_type_list, mark_address,
10595 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
10596 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
10597 remove_unused_locals): Likewise.
10598 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
10599 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
10600 * function.c (instantiate_expr, instantiate_decls_1,
10601 setjmp_vars_warning, add_local_decl): Likewise.
10602 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
10604 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
10605 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
10606 optimize_va_list_gpr_fpr_size): Likewise.
10607 * tree-nrv.c (pass_nrv::execute): Likewise.
10608 * tsan.c (instrument_expr): Likewise.
10609 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
10610 * vtable-verify.c (verify_bb_vtables): Likewise.
10611 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
10612 get_ref_base_and_extent): Likewise.
10613 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
10615 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
10616 analyze_all_variable_accesses): Likewise.
10617 * tree-nested.c (get_nonlocal_debug_decl,
10618 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
10619 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
10620 get_local_debug_decl, convert_local_omp_clauses,
10621 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
10623 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
10624 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
10625 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
10626 dbxout_symbol, dbxout_common_check): Likewise.
10627 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
10628 string_constant): Likewise.
10629 * hsa.c (hsa_get_declaration_name): Likewise.
10630 * passes.c (rest_of_decl_compilation): Likewise.
10631 * tree-ssanames.c (make_ssa_name_fn): Likewise.
10632 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
10633 pack_ts_decl_with_vis_value_fields,
10634 write_ts_decl_common_tree_pointers): Likewise.
10635 * stor-layout.c (place_field): Likewise.
10636 * symtab.c (symtab_node::maybe_create_reference,
10637 symtab_node::verify_base, symtab_node::make_decl_local,
10638 symtab_node::copy_visibility_from,
10639 symtab_node::can_increase_alignment_p): Likewise.
10640 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
10641 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
10642 fortran_common, add_location_or_const_value_attribute,
10643 add_scalar_info, add_linkage_name, set_block_abstract_flags,
10644 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
10645 optimize_one_addr_into_implicit_ptr,
10646 optimize_location_into_implicit_ptr): Likewise.
10647 * gimple-low.c (record_vars_into): Likewise.
10648 * ipa-visibility.c (update_vtable_references): Likewise.
10649 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
10651 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
10652 DFS::DFS_write_tree_body, write_symbol): Likewise.
10653 * langhooks.c (lhd_warn_unused_global_decl,
10654 lhd_set_decl_assembler_name): Likewise.
10655 * attribs.c (decl_attributes): Likewise.
10656 * except.c (output_ttype): Likewise.
10657 * varpool.c (varpool_node::get_create, ctor_for_folding,
10658 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
10659 * fold-const.c (fold_unary_loc): Likewise.
10660 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
10661 ipa_find_agg_cst_from_init): Likewise.
10662 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
10663 expand_omp_target, lower_omp_regimplify_p,
10664 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
10665 find_link_var_op): Likewise.
10666 * tree-chrec.c (chrec_contains_symbols): Likewise.
10667 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
10668 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
10669 execute_fixup_cfg): Likewise.
10671 PR tree-optimization/77901
10672 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
10673 if ranges[i].exp is SSA_NAME when looking for >= and only when
10674 ranges[i].exp is NULL or SSA_NAME when looking for the other
10677 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10679 * ipa-cp.c (ipcp_alignment_lattice): Remove.
10680 (ipcp_param_lattices): Remove field alignment.
10681 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
10682 (set_all_contains_variable): Remove call to
10683 ipcp_alignment_lattice::set_to_bottom.
10684 (initialize_node_lattices): Likewise.
10685 (propagate_alignment_accross_jump_function): Remove.
10686 (propagate_constants_accross_call): Remove call to
10687 propagate_alignment_accross_jump_function.
10688 (ipcp_store_alignment_results): Remove.
10689 (ipcp_driver): Remove call to ipcp_store_alignment_results.
10690 (propagate_bits_accross_jump_function): Handle ancestor jump function.
10691 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
10692 pretty-printing of alignment jump function.
10693 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
10694 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
10695 alignments and remove computing ipa_alignment jump function.
10696 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
10697 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
10698 (ipa_read_jump_function): Remove reading of ipa_alignment.
10699 (write_ipcp_transformation_info): Remove streaming for alignment
10700 propagation summary.
10701 (read_ipcp_transformation_info): Remove reading of alignment
10702 propagation summary.
10703 (ipcp_update_alignments): Remove.
10704 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
10706 (ipcp_transform_function): Remove call to ipcp_update_alignments()
10707 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
10708 * ipa-prop.h (ipa_alignment): Remove.
10709 (ipa_jump_func): Remove field alignment.
10710 (ipcp_transformation_summary): Remove field alignments.
10711 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
10712 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
10713 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
10715 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
10717 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
10719 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
10721 (visium_expand_fp_cstore): Likewise.
10723 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10725 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
10726 * diagnostic.c (warning_at_rich_loc_n): New function.
10727 (diagnostic_n_impl_richloc): Likewise.
10728 (diagnostic_n_impl): Move most of the function to
10729 diagnostic_n_impl_richloc and call it.
10731 2016-10-08 Jakub Jelinek <jakub@redhat.com>
10733 * gen-pass-instances.awk: Rewritten.
10734 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
10735 $(PASSES_EXTRA) after passes.def to the script.
10736 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
10737 * config/i386/i386-passes.def: New file.
10738 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
10739 make_pass_stv): Declare.
10740 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
10742 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
10744 (pass_stv::clone, pass_stv::set_pass_param): New methods.
10745 (pass_stv::timode_p): New non-static data member.
10746 (ix86_option_override): Don't register passes here.
10748 * doc/invoke.texi: Document accepting Else, fallthrough.
10750 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
10753 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
10754 FALLTHRU comment styles.
10756 2016-10-07 Andrew Pinski <apinski@cavium.com>
10758 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
10759 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
10760 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
10762 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
10764 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
10766 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
10767 (AARCH64_ARCH): Likewise.
10768 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
10770 (AARCH64_CORE): Likewise.
10771 (AARCH64_ARCH): Likewise.
10772 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
10773 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10774 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
10775 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10776 (AARCH64_ARCH): Likewise.
10777 (AARCH64_CORE): Likewise.
10778 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
10779 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
10780 (AARCH64_CORE): Likewise.
10781 (AARCH64_ARCH): Likewise.
10783 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10785 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
10786 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
10787 floating point type infrastructre, and -mfloat128 that enables the
10788 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
10789 if -mfloat128-type. Define __ibm128 to be long double by default.
10790 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
10791 the IEEE 128-bit floating point type infrastructure should
10792 automatically be enabled.
10793 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
10794 instead of -mfloat128 to enable KFmode.
10795 (rs6000_option_override_internal): Split the option -mfloat128
10796 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
10797 systems, automatically set -mfloat128-type, but don't enable it on
10798 other operating systems. Move setting the long double size and
10799 IEEE quad support before the IEEE 128-bit floating point changes.
10800 (rs6000_init_builtins): Do not create a unique type for __ibm128
10801 if long double is IBM extended double, instead rely on __ibm128
10802 being defined as 'long double'. If -mfloat128-type and not
10803 -mfloat128, create the KFmode type with an undocumented __ieee128
10805 (rs6000_init_libfuncs): Use -mfloat128-type instead of
10806 -mfloat128 for tests about the types, but keep tests for
10807 -mfloat128 to enable the keyword support.
10808 (rs6000_complex_function_value): Likewise.
10809 (rs6000_scalar_mode_supported_p): Likewise.
10810 (rs6000_floatn_mode): Likewise.
10811 (rs6000_c_mode_for_suffix): Likewise.
10812 (rs6000_opt_masks): Add -mfloat128-type.
10813 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
10814 -mfloat128-type being split from -mfloat128. Add
10815 -mfloat128-hardware, which was missing.
10816 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
10817 -mfloat128 and -mfloat128-type:
10818 (-mfloat128-type): Likewise.
10819 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
10820 that 64-bit Linux systems with enable -mfloat128-type by default
10822 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
10823 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
10824 -mfloat128-type instead of -mfloat128.
10825 (FLOAT128_2REG_P): Likewise.
10826 (MASK_FLOAT128_TYPE): Likewise.
10827 (ALTIVEC_ARG_MAX_RETURN): Likewise.
10828 (RS6000_BTM_FLOAT128): Likewise.
10829 (TARGET_FLOAT128): Poison old identifiers.
10830 (OPTION_MASK_FLOAT128): Likewise.
10831 (MASK_FLOAT128): Likewise.
10832 * config/rs6000/rs6000.md (FP): Likewise.
10833 (FLOAT128): Likewise.
10834 (fix_trunc<mode>di2): Likewise.
10835 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10836 (floatdi<mode>2): Likewise.
10837 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
10838 (neg<mode>2, FLOAT128 iterator): Likewise.
10839 (abs<mode>2, FLOAT128 iterator): Likewise.
10840 (ieee_128bit_negative_zero): Likewise.
10841 (ieee_128bit_vsx_neg<mode>2): Likewise.
10842 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10843 (ieee_128bit_vsx_abs<mode>2): Likewise.
10844 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10845 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10846 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10847 (extendiftf2): Likewise.
10848 (extendifkf2): Likewise.
10849 (extendtfkf2): Likewise.
10850 (trunciftf2): Likewise.
10851 (truncifkf2): Likewise.
10852 (trunckftf2): Likewise.
10853 (trunctfif2): Likewise.
10854 (extendkftf2): Likewise.
10855 (trunctfkf2): Likewise.
10857 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10859 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
10860 before merging in bytes to pass down to real_from_target.
10862 2016-10-07 Richard Biener <rguenther@suse.de>
10864 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
10866 (substitute_and_fold_dom_walker::before_dom_children):
10867 Substitute and fold before pass specific folding to avoid
10868 feeding that with SSA names that will be later released.
10869 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
10870 introduced by folding and visited by evaluate_stmt called during
10872 (likely_value): Likewise.
10873 (evaluate_stmt): Likewise.
10874 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
10875 (simplify_div_or_mod_using_ranges): Likewise.
10876 (simplify_min_or_max_using_ranges): Likewise.
10877 (simplify_abs_using_ranges): Likewise.
10878 (simplify_conversion_using_ranges): Likewise.
10879 (simplify_float_conversion_using_ranges): Likewise.
10880 (simplify_stmt_using_ranges): Likewise.
10882 2016-10-07 Marek Polacek <polacek@redhat.com>
10884 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
10885 FALLTHROUGH_LABEL_P here...
10886 (warn_implicit_fallthrough_r): ...not here.
10888 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
10890 PR tree-optimization/77880
10891 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
10894 2016-10-07 Marek Polacek <polacek@redhat.com>
10897 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
10899 2016-10-07 Richard Biener <rguenther@suse.de>
10901 * bitmap.h: Document constraints on bitmap modification while
10904 2016-10-07 Richard Biener <rguenther@suse.de>
10906 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
10907 * bitmap.h (bmp_iter_set): When advancing to the next element
10908 check that we didn't remove the current one.
10909 (bmp_iter_and): Likewise.
10910 (bmp_iter_and_compl): Likewise.
10911 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
10912 we currently iterate on but keep a one-level queue.
10913 * sched-deps.c (remove_from_deps): Do not clear current bit
10914 but keep a one-level queue.
10916 2016-10-07 Jakub Jelinek <jakub@redhat.com>
10918 PR tree-optimization/77664
10919 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
10920 for the other ranges.
10921 (optimize_range_tests_diff): Fix up formatting.
10922 (optimize_range_tests_var_bound): New function.
10923 (optimize_range_tests): Use it.
10925 2016-10-07 Martin Liska <mliska@suse.cz>
10927 * coverage.c (build_gcov_exit_decl): Fix priority what
10928 should be really 99.
10930 2016-10-07 Richard Biener <rguenther@suse.de>
10932 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
10933 vars in gimple_bind_vars but not in BLOCK_VARS.
10935 2016-10-07 Richard Biener <rguenther@suse.de>
10937 PR tree-optimization/77879
10938 * tree-ssa-structalias.c (handle_const_call): Properly handle
10940 (handle_pure_call): Likewise.
10942 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10944 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
10945 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
10948 2016-10-06 Andrew Pinski <apinski@cavium.com>
10950 * config/aarch64/aarch64-cores.def: Add a comment before each
10953 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10955 PR tree-optimization/77862
10956 * tree-vrp.c (add_equivalence): Use get_value_range so that
10957 num_vr_values is checked before accessing vr_values.
10959 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10961 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
10964 2016-10-05 Jeff Law <law@redhat.com>
10966 PR tree-optimization/71661
10967 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
10968 removal of a forwarder exposes a new natural loop.
10970 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
10972 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
10973 Introduce ssesuffix variable.
10974 (<mask_codefor><code><mode>3<mask_name>): Ditto.
10975 (*<code><mode>3): Ditto.
10977 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
10979 * postreload.c (reload_cse_simplify): Skip also USE when detecting
10982 2016-10-06 Richard Biener <rguenther@suse.de>
10984 PR tree-optimization/77855
10985 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
10986 instead of removing the current item while iterating over the set
10989 2016-10-06 James Clarke <jrtc27@jrtc27.com>
10990 Eric Botcazou <ebotcazou@adacore.com>
10993 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
10994 (classify_registers): Don't set it
10995 (function_arg_slotno): Don't initialize and test it. Tidy up.
10997 2016-10-06 Richard Biener <rguenther@suse.de>
10999 PR tree-optimization/77839
11000 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
11001 lattice transition.
11003 2016-10-06 Martin Liska <mliska@suse.cz>
11005 * gcc.c: Set -fprofile-update=atomic when profiling is
11006 enabled and -pthread is set. Warn when one combines
11007 -pthread and -fprofile-update=single for an app using
11010 2016-10-06 Martin Liska <mliska@suse.cz>
11013 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
11014 * gimple-ssa-strength-reduction.c (slsr_process_cast):
11015 Initialize a pointer to NULL.
11016 (slsr_process_copy): Likewise.
11017 * input.c (location_get_source_line): Likewise.
11018 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
11020 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
11022 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
11023 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
11024 (ix86_handle_option): Deleted handle of OPT_mpcommit.
11025 * config.gcc: Deleted pcommitintrin.h
11026 * config/i386/pcommitintrin.h: Deleted file.
11027 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
11028 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
11030 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
11032 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
11033 (PTA_PCOMMIT): Deleted define.
11034 (ix86_option_override_internal): Deleted handle of option.
11035 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
11036 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
11037 __builtin_ia32_pcommit): Deleted.
11038 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
11039 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
11040 (pcommit): Deleted instruction.
11041 * config/i386/i386.opt: Mention -mpcommit deprecation.
11042 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
11044 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
11047 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
11048 Remove wrong assert.
11049 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
11050 Use <round_constraint> as operand 1 constraint.
11052 2016-10-05 Jakub Jelinek <jakub@redhat.com>
11055 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
11056 (ubsan_instrument_float_cast): And not here.
11059 * ubsan.c (ubsan_ids): New GTY(()) array.
11060 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
11061 instead of static local counters.
11063 2016-10-05 Martin Sebor <msebor@redhat.com>
11066 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
11067 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
11068 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
11069 (default_printf_pointer_format): Define function.
11070 * targhooks.c (linux_printf_pointer_format): Define new function.
11071 * targhooks.h (linux_printf_pointer_format): Declare.
11072 (gnu_libc_printf_pointer_format): Remove declaration.
11074 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11076 * fold-const.c (native_encode_real): Fix logic for selecting offset
11077 to write to when BYTES_BIG_ENDIAN.
11079 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
11081 * builtins.c (fold_builtin_strchr): Remove function.
11082 (fold_builtin_strrchr): Likewise.
11083 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
11084 * gimple-fold.c (target_char_cst_p): New function.
11085 (gimple_fold_builtin_strchr) Add more foldings.
11086 (gimple_fold_builtin): Add index, strrchr, rindex cases.
11088 2016-10-05 Richard Biener <rguenther@suse.de>
11090 PR middle-end/77863
11091 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
11092 capture ids in c-exprs.
11094 2016-10-05 Richard Biener <rguenther@suse.de>
11096 PR middle-end/77826
11097 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
11098 with types_match for GIMPLE code gen to handle type mismatched
11099 constants properly.
11100 (dt_operand::gen): Adjust.
11101 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
11104 2016-10-05 Richard Biener <rguenther@suse.de>
11106 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
11108 2016-10-05 Richard Biener <rguenther@suse.de>
11110 PR middle-end/77842
11111 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
11113 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
11115 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
11116 version check to protect only DW_TAG_imported_module generation.
11118 2016-10-05 Richard Biener <rguenther@suse.de>
11120 PR middle-end/55152
11121 * match.pd (min(a,-a) -> -abs(a)): New pattern.
11123 2016-10-04 Ian Lance Taylor <iant@golang.org>
11125 * explow.c (allocate_dynamic_stack_space): Call
11126 do_pending_stack_adjust before handling flag_split_stack.
11128 2016-10-04 David Malcolm <dmalcolm@redhat.com>
11130 * genattrtab.c (make_internal_attr): Supply dummy column number to
11131 file_location ctor.
11133 * genoutput.c (init_insn_for_nothing): Likewise.
11134 * gensupport.c (add_define_attr): Likewise.
11135 * read-md.c (message_at_1): Print column number.
11136 (fatal_with_file_and_line): Likewise.
11137 (rtx_reader::read_char): Track column numbers.
11138 (rtx_reader::unread_char): Likewise.
11139 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
11140 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
11141 (rtx_reader::handle_file): Initialize m_read_md_colno.
11142 (rtx_reader::get_current_location): Supply column number to
11143 file_location ctor.
11144 * read-md.h (struct file_location): Add field "colno".
11145 (file_location::file_location): Likewise.
11146 (rtx_reader::get_colno): New accessor.
11147 (rtx_reader::m_read_md_colno): New field.
11148 (rtx_reader::m_last_line_colno): New field.
11150 2016-10-04 Jakub Jelinek <jakub@redhat.com>
11152 * doc/extend.texi (Java Exceptions): Remove.
11153 (java_interface): Remove.
11155 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
11157 PR tree-optimization/77808
11158 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
11159 and addr are different before copying points-to information.
11161 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
11163 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
11164 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
11165 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
11166 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
11168 2016-10-04 Richard Biener <rguenther@suse.de>
11170 PR tree-optimization/77399
11171 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
11172 verify the target can convert.
11174 2016-10-04 Richard Biener <rguenther@suse.de>
11176 PR middle-end/77833
11177 * explow.c (plus_constant): Verify the mode of the constant
11178 pool offset before calling plus_constant.
11180 2016-10-04 Richard Biener <rguenther@suse.de>
11182 PR middle-end/77407
11183 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
11184 type support, mark with :C.
11185 (X / -X -> -1): Mark with :C.
11187 2016-10-04 Jakub Jelinek <jakub@redhat.com>
11189 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
11190 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
11191 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
11192 * doc/tm.texi: Regenerated.
11193 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
11194 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
11195 * config/darwin.h (JCR_SECTION_NAME): Remove.
11196 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
11197 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
11198 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
11199 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
11200 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
11201 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
11203 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11205 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
11206 between "because" and "param" in dump message in call to fprintf.
11208 2016-10-03 Jeff Law <law@redhat.com>
11210 PR tree-optimization/71550
11211 PR tree-optimization/71403
11212 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
11213 (profitable_jump_thread_path): Also return boolean indicating if
11214 the realized path will create an irreducible loop.
11215 Remove loop depth tests from 71403.
11216 (fsm_find_control_statement_thread_paths): Remove loop depth tests
11217 from 71403. If threading will create an irreducible loop, then
11218 throw away loop iteration and related information.
11220 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
11222 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
11223 -Woverloaded-virtual checks for warning options.
11224 * configure: Regenerate.
11226 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11228 PR preprocessor/77699
11229 * input.c (maybe_grow): Don't allocate one byte extra headroom.
11230 (get_next_line): Return false on error.
11231 (read_next_line): Removed, use get_next_line instead.
11232 (read_line_num): Don't copy the line.
11233 (location_get_source_line): Don't use static data.
11234 (selftest::test_reading_source_line): Add more test cases.
11236 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11239 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11241 * ifcvt.c (noce_try_avoid_const_materialization): New function.
11242 (noce_process_if_block): Use it.
11244 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11246 * doc/invoke.texi: Update -Wint-in-bool-context.
11248 2016-10-02 Jakub Jelinek <jakub@redhat.com>
11250 * dwarf2out.c (output_fde, output_call_frame_info,
11251 dwarf2out_do_cfi_startproc, set_indirect_string,
11252 gen_internal_sym, output_die, output_line_info): Use
11253 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
11254 ASM_GENERATE_INTERNAL_LABEL output.
11256 2016-10-01 Richard Biener <rguenther@suse.de>
11258 PR middle-end/77798
11259 * genmatch.c (get_operand_type): Add operand position arg
11260 and handle COND_EXPR comparison operand with fixed boolean_type_node.
11261 (expr::gen_transform): Adjust.
11262 (dt_simplify::gen_1): Likewise.
11264 2016-10-01 Jakub Jelinek <jakub@redhat.com>
11266 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
11267 comments. Simplify asserts, remove unnecessary conditions.
11269 (*<code><mode>3): Likewise.
11271 2016-09-30 Jakub Jelinek <jakub@redhat.com>
11273 * doc/invoke.texi (-Wregister): Document.
11275 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11277 * configure.ac: Split CHECKING_P into CHECKING_P and
11278 ENABLE_EXTRA_CHECKING.
11279 * configure: Regenerated.
11280 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
11281 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
11283 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
11286 * gcc.c (process_command): For @filename handling, output
11287 the correct name if the file does not exist.
11289 2016-09-30 Marek Polacek <polacek@redhat.com>
11291 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
11292 * config/alpha/predicates.md: Likewise.
11294 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11296 * ifcvt.c (noce_try_avoid_const_materialization): New function.
11297 (noce_process_if_block): Use it.
11299 2016-09-30 Martin Liska <mliska@suse.cz>
11301 * doc/invoke.texi: Document asan-use-after-return that
11302 it's disabled by default in runtime.
11304 2016-09-30 Richard Biener <rguenther@suse.de>
11306 * tree-vrp.c (intersect_ranges): If we failed to handle
11307 the intersection choose a constant singleton range if available.
11309 2016-09-30 Richard Biener <rguenther@suse.de>
11311 PR tree-optimization/77399
11312 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
11313 float <-> int conversions.
11315 2016-09-30 Alan Modra <amodra@gmail.com>
11317 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
11319 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11321 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
11322 ext_level before calling CPUID with 0x80000008.
11323 Simplify xgetbv checks.
11325 2016-09-29 David Malcolm <dmalcolm@redhat.com>
11327 * Makefile.in (OBJS): Add print-rtl-function.o.
11328 * print-rtl-function.c: New file.
11329 * print-rtl.h (print_rtx_function): New decl.
11331 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11334 * config/i386/cpuid.h (__get_cpuid_count): New.
11335 (__get_cpuid): Rename __level to __leaf.
11337 2016-09-29 Marek Polacek <polacek@redhat.com>
11339 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
11341 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
11344 * builtins.c (expand_builtin_memcmp): Don't swap args unless
11345 result is only being compared with zero.
11347 2016-09-29 Marek Polacek <polacek@redhat.com>
11349 * dwarf2out.c (loc_descriptor): Add fall through comment.
11350 (add_const_value_attribute): Likewise.
11352 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
11354 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
11355 with "v6t2". Move "arch" attribute above "pool_range".
11356 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
11358 (*thumb2_movhi_vfp): Likewise.
11359 (*arm_movhi_fp16): Likewise.
11360 (*thumb2_movhi_fp16): Likewise.
11361 (*arm_movsi_vfp): Remove "arch" attribute.
11362 (*thumb2_movsi_vfp): Likewise.
11364 2016-09-29 Martin Liska <mliska@suse.cz>
11366 * doc/extend.texi: Remove limitation of Objective C for
11367 __attribute__((constructor)) and __attribute__((destructor)).
11369 2016-09-29 Richard Biener <rguenther@suse.de>
11371 PR tree-optimization/77768
11372 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11373 Handle stores to readonly memory when removing redundant stores.
11375 2016-09-29 Richard Biener <rguenther@suse.de>
11377 PR middle-end/77407
11378 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
11379 X / -X -> -1 simplifications.
11381 2016-09-29 Richard Biener <rguenther@suse.de>
11383 PR middle-end/55152
11384 * match.pd: Add max(a,-a) -> abs(a) pattern.
11385 * tree-ssa-phiopt.c (minmax_replacement): Disable for
11386 HONOR_SIGNED_ZEROS types.
11388 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
11390 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
11391 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
11393 2016-09-29 Richard Biener <rguenther@suse.de>
11395 * tree-vrp.c (set_defs_to_varying): New helper avoiding
11396 writing to vr_const_varying.
11397 (vrp_initialize): Call it.
11398 (vrp_visit_stmt): Likewise.
11399 (evrp_dom_walker::before_dom_children): Likewise.
11401 2016-09-29 Richard Biener <rguenther@suse.de>
11403 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
11404 constructors with vector elements.
11406 2016-09-29 Richard Biener <rguenther@suse.de>
11408 PR tree-optimization/77768
11409 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
11410 with stores to a place we know has a constant value.
11412 2016-09-29 Alan Modra <amodra@gmail.com>
11414 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
11415 * doc/invoke.texi: Document it.
11416 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
11417 (rs6000_passes_float): Comment.
11418 (rs6000_passes_long_double): New static var.
11419 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
11420 (init_cumulative_args): Set up to emit fp .gnu_attribute for
11421 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
11422 to include fp values returned in vectors.
11423 Set rs6000_passes_long_double.
11424 (rs6000_function_arg_advance_1): Likewise for function args.
11425 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
11426 and SPE. Emit long double tag value too.
11427 (rs6000_opt_vars): Add gnu-attr.
11428 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
11429 * configure: Regenerate.
11430 * config.in: Regenerate.
11432 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11434 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
11436 (format_floating, format_string, format_directive,
11437 get_destination_size, pass_sprintf_length::handle_gimple_call):
11440 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11442 * gimple-ssa-sprintf.c: Fix comment formatting.
11443 (format_integer): Use is_gimple_assign.
11444 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
11445 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
11446 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
11447 (pass_sprintf_length::execute): Use is_gimple_call.
11449 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11451 * gimple-fold.c (gimple_fold_builtin): After failing to fold
11452 strchr, also try the generic folding.
11454 2016-09-28 Martin Sebor <msebor@redhat.com>
11457 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
11460 2016-09-28 Martin Sebor <msebor@redhat.com>
11462 PR middle-end/77683
11463 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
11464 length modifier is not expected.
11465 (format_floating): Ignore l length modifier and fail gracefuly
11466 when it isn't one of the other expected ones.
11468 2016-09-28 Martin Sebor <msebor@redhat.com>
11471 * varasm.c (assemble_addr_to_section): Increase local buffer size.
11473 2016-09-27 Richard Biener <rguenther@suse.de>
11475 * dwarf2out.c (cu_die_list): New global.
11476 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
11477 main_comp_unit_die to cu_die_list if we created it.
11478 Move break_out_includes ...
11479 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
11482 2016-09-28 Richard Biener <rguenther@suse.de>
11484 * dwarf2out.c (struct die_struct): Add removed flag.
11485 (lookup_type_die): If the DIE is marked as removed, clear
11486 TYPE_SYMTAB_DIE and return NULL.
11487 (lookup_decl_die): If the DIE is marked as removed, remove it
11488 from the hash and return NULL.
11489 (mark_removed): New helper.
11490 (prune_unused_types_prune): Call it for removed DIEs.
11491 (gen_subprogram_die): Move the premark_used_types call to after
11492 DIEs for the functions scopes are generated.
11493 (process_scope_var): Do not re-create pruned types or type decls.
11494 Make sure to also re-parent type decls.
11495 (dwarf2out_finish): Move unused type pruning and debug_types
11497 (dwarf2out_early_finish): ... here.
11499 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11501 * config/arc/arc-c.c: New file.
11502 * config/arc/arc-c.def: Likewise.
11503 * config/arc/t-arc: Likewise.
11504 * config.gcc: Include arc-c.o as c and cpp object.
11505 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
11506 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
11507 arc_cpu_cpp_builtins.
11509 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11511 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
11512 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
11514 2016-09-28 Nathan Sidwell <nathan@acm.org>
11516 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
11519 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11521 PR tree-optimization/61056
11522 * gimple-fold.c (gimple_fold_builtin_strchr):
11523 New function to optimize strchr (s, 0) to strlen.
11524 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
11526 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
11528 PR tree-optimization/77724
11529 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
11530 Add tree_fits_shwi_p check.
11532 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11534 * auto-inc-dec.c (try_merge): Remove break after return.
11535 * cselib.c (autoinc_split): Likewise.
11536 * explow.c (promote_mode): Likewise.
11537 * fixed-value.c (fixed_arithmetic): Likewise.
11538 * hsa.c (hsa_internal_fn::get_arity): Likewise.
11539 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
11540 * trans-mem.c (get_attrs_for): Likewise.
11541 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
11542 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
11543 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
11544 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
11545 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
11546 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
11547 * config/cris/cris.c (cris_op_str): Likewise.
11548 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
11549 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
11551 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
11553 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
11554 IFN_GOACC_REDUCTION_CODES): New.
11555 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
11556 ifn_goacc_reduction_kind): Use them.
11557 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
11558 of internal functions, when applicable.
11560 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
11562 * config/mips/constraints.md (d): Fix documentation.
11563 * doc/md.texi (Machine Constraints): Update accordingly.
11565 2016-09-27 Richard Biener <rguenther@suse.de>
11567 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
11568 cur_line_info_table initialization ...
11569 (dwarf2out_assembly_start): ... here.
11571 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
11573 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
11574 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
11575 (*thumb2_movhi_vfp): Likewise.
11576 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
11577 template. Expand predicable attribute to mark VMOV.F16 as not
11578 predicable. Add "arch" attribute.
11579 (*thumb2_movhi_fp16): Likewise.
11580 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
11581 (*thumb2_movsi_vfp): Add "arch" attribute.
11583 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
11585 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
11588 2016-09-27 Marek Polacek <polacek@redhat.com>
11590 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
11593 * config/c6x/c6x.h: Adjust fall through comment.
11594 * config/sh/sh.c (final_prescan_insn): Likewise.
11595 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
11596 (visium_expand_fp_cstore): Likewise.
11598 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11600 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
11601 expected by -Wimplicit-fallthrough.
11602 (thumb1_size_rtx_costs): Likewise.
11603 (thumb2_reorg): Likewise.
11604 (tls_mentioned_p): Add "Fall through" comment.
11605 (thumb2_reorg): Likewise.
11606 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
11607 comment form expected by -Wimplicit-fallthrough.
11609 2016-09-27 Martin Liska <mliska@suse.cz>
11611 PR gcov-profile/46266
11612 * input.h (RESERVED_LOCATION_P): New macro.
11613 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
11614 instread of comparison with UNKNOWN_LOCATION.
11616 2016-09-27 Richard Biener <rguenther@suse.de>
11618 PR tree-optimization/77745
11619 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11620 When removing redundant stores make sure to check compatibility
11621 of the TBAA state for downstream accesses.
11622 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
11623 value-numbering virtual operands for store matches.
11625 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11628 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
11629 movrt patterns. Match them before anything else in the SET case.
11631 2016-09-27 Martin Liska <mliska@suse.cz>
11633 PR gcov-profile/7970
11634 PR gcov-profile/16855
11635 PR gcov-profile/44779
11636 * coverage.c (build_gcov_exit_decl): New function.
11637 (coverage_obj_init): Call the function and generate __gcov_exit
11639 * doc/gcov.texi: Document when __gcov_exit function is called.
11641 2016-09-27 Marek Polacek <polacek@redhat.com>
11644 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11645 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
11646 -Wno-error instead of -Wno-implicit-fallthrough.
11648 2016-09-27 Martin Liska <mliska@suse.cz>
11651 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
11653 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11655 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
11656 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
11657 comments. Remove break after return.
11658 (ix86_fp_compare_code_to_integer, has_dispatch,
11659 ix86_simd_clone_usable): Remove break after return.
11661 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11663 PR rlt-optimization/77714
11664 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
11667 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
11670 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
11671 extract_range_from_unary_expr to convert value_range.
11672 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
11673 (extract_range_from_unary_expr): This.
11674 * tree-vrp.h (extract_range_from_unary_expr): Declare.
11676 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
11678 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
11680 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11682 * config/i386/i386.c (ix86_print_operand)
11683 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
11684 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
11685 (epilogue_renumber): Likewise.
11687 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
11689 PR middle-end/77719
11690 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
11691 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
11693 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
11695 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11696 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
11697 is_mm_seq_cst, is_mm_sync): Move to ...
11698 * memmodel.h: This. New file.
11699 * builtins.c: Include memmodel.h.
11700 * optabs.c: Likewise.
11701 * tsan.c: Likewise.
11702 * config/aarch64/aarch64.c: Likewise.
11703 * config/alpha/alpha.c: Likewise.
11704 * config/arm/arm.c: Likewise.
11705 * config/i386/i386.c: Likewise.
11706 * config/ia64/ia64.c: Likewise.
11707 * config/mips/mips.c: Likewise.
11708 * config/rs6000/rs6000.c: Likewise.
11709 * config/sparc/sparc.c: Likewise.
11710 * genconditions.c: Include memmodel.h in generated file.
11711 * genemit.c: Likewise.
11712 * genoutput.c: Likewise.
11713 * genpeep.c: Likewise.
11714 * genpreds.c: Likewise.
11715 * genrecog.c: Likewise.
11717 2016-09-26 David Malcolm <dmalcolm@redhat.com>
11719 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
11720 "c" instead when parsing characters. Move operand parsing into...
11721 (read_rtx_operand): ...this new function, renaming "i" to "idx",
11722 and tightening the scope of various locals.
11724 2016-09-26 Liu Hao <lh_mouse@126.com>
11726 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
11728 2016-09-26 Marek Polacek <polacek@redhat.com>
11730 * system.h: Use __has_attribute to check whether the fallthrough
11731 attribute is supported.
11733 2016-09-26 Marek Polacek <polacek@redhat.com>
11735 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
11736 gimple_call_internal_p.
11737 * ipa-split.c (find_return_bb): Likewise.
11738 (execute_split_functions): Likewise.
11739 * omp-low.c (dump_oacc_loop_part): Likewise.
11740 (oacc_loop_xform_head_tail): Likewise.
11741 * predict.c (predict_loops): Likewise.
11742 * sanopt.c (pass_sanopt::execute): Likewise.
11743 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
11744 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
11745 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
11746 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
11747 (expand_ifn_va_arg): Likewise.
11748 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11749 (optimize_mask_stores): Likewise.
11750 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
11751 (vect_transform_stmt): Likewise.
11752 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
11753 * tsan.c (instrument_memory_accesses): Likewise.
11755 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11756 Alexander Monakov <amonakov@ispras.ru>
11758 * regrename.c (rename_chains): Check
11759 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
11760 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
11761 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11763 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11765 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
11766 (s390_sched_score): Likewise.
11768 2016-09-26 Martin Liska <mliska@suse.cz>
11770 * doc/gcov.texi: Update program output of gcov tool.
11772 2016-09-26 Martin Liska <mliska@suse.cz>
11774 PR gcov-profile/23332
11775 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
11776 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
11777 * value-prof.c (dump_histogram_value): Do not handle
11778 HIST_TYPE_CONST_DELTA.
11779 (stream_in_histogram_value): Likewise.
11780 (gimple_find_values_to_profile): Likewise.
11781 * value-prof.h (enum hist_type): Likewise.
11783 2016-09-26 Martin Liska <mliska@suse.cz>
11785 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
11786 from default sanitize recover values.
11787 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
11788 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
11789 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
11791 * opts.c (finish_options): Do a generic loop over options
11792 that can be recovered.
11793 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
11795 (common_handle_option): Likewise.
11796 * opts.h: Declare can_recover to sanitizer_opts_s.
11798 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
11800 * target.def(elf_flags_numeric): Change documentation to present tense.
11801 * doc/tm.texi: Regenerate.
11803 2016-09-26 Marek Polacek <polacek@redhat.com>
11806 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11807 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
11808 -Wno-switch-fallthrough.
11809 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
11810 (expand_builtin): Likewise.
11811 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
11812 * convert.c (convert_to_real_1): Likewise.
11813 (convert_to_integer_1): Likewise.
11814 * final.c (output_alternate_entry_point): Likewise.
11815 * genattrtab.c (make_canonical): Likewise.
11816 (write_test_expr): Likewise.
11817 * genpreds.c (validate_exp): Likewise.
11818 * gimple-ssa-strength-reduction.c
11819 (find_candidates_dom_walker::before_dom_children): Likewise.
11820 * godump.c (go_format_type): Likewise.
11821 * reload1.c (elimination_effects): Likewise.
11822 * resource.c (mark_referenced_resources): Likewise.
11823 (mark_set_resources): Likewise.
11824 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
11825 * varasm.c (output_addressed_constants): Likewise.
11827 2016-09-26 Marek Polacek <polacek@redhat.com>
11830 * common.opt (Wimplicit-fallthrough): New option.
11831 * doc/extend.texi: Document statement attributes and the fallthrough
11833 * doc/invoke.texi: Document -Wimplicit-fallthrough.
11834 * gimple.h (gimple_call_internal_p): New function.
11835 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
11836 (struct label_entry): New struct.
11837 (find_label_entry): New function.
11838 (case_label_p): New function.
11839 (collect_fallthrough_labels): New function.
11840 (last_stmt_in_scope): New function.
11841 (should_warn_for_implicit_fallthrough): New function.
11842 (warn_implicit_fallthrough_r): New function.
11843 (maybe_warn_implicit_fallthrough): New function.
11844 (expand_FALLTHROUGH_r): New function.
11845 (expand_FALLTHROUGH): New function.
11846 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
11847 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
11848 (gimplify_label_expr): New function.
11849 (gimplify_case_label_expr): Set location.
11850 (gimplify_expr): Call gimplify_label_expr.
11851 * internal-fn.c (expand_FALLTHROUGH): New function.
11852 * internal-fn.def (FALLTHROUGH): New internal function.
11853 * langhooks.c (lang_GNU_OBJC): New function.
11854 * langhooks.h (lang_GNU_OBJC): Declare.
11855 * system.h (gcc_fallthrough): Define.
11856 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
11857 * tree.h (FALLTHROUGH_LABEL_P): Define.
11859 2016-09-26 Richard Biener <rguenther@suse.de>
11861 * dwarf2out.c (stripattributes): Remove unused function.
11862 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
11863 Push dwarf_split_debug_info handling into init_sections_and_labels.
11864 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
11865 (DEBUG_MACRO_SECTION_FLAGS): Remove.
11866 (debug_macinfo_section_name): New global.
11867 (output_macinfo): Use debug_macinfo_section_name.
11868 (init_sections_and_labels): Split out section and label generation
11869 from dwarf2out_init. Set debug_macinfo_section_name.
11870 (dwarf2out_init): Move text section label generation and emission
11872 (dwarf2out_assembly_start): ... here.
11873 (dwarf2out_finish): Call init_sections_and_labels before DWARF
11876 2016-09-26 Richard Biener <rguenther@suse.de>
11879 * cgraphunit.c (analyze_functions): Before early removing
11880 global vars calls the late_global_decl debug handler mark
11881 the variable as readonly.
11883 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11886 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
11887 (sh_rtx_costs): Handle SET of movt and movrt patterns.
11888 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
11889 declare new overloads.
11890 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
11893 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11895 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
11896 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
11898 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
11900 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
11901 * configure: Regenerate.
11903 2016-09-24 Marek Polacek <polacek@redhat.com>
11906 * doc/invoke.texi: Document -Wbool-operation.
11908 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11910 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
11911 * config/rs6000/rs6000.c (expand_block_compare): New function used by
11912 cmpmemsi pattern to do builtin expansion of memcmp ().
11913 (compute_current_alignment): Add helper function for
11914 expand_block_compare used to compute alignment as the compare proceeds.
11915 (select_block_compare_mode): Used by expand_block_compare to select
11916 the mode used for reading the next chunk of bytes in the compare.
11917 (do_load_for_compare): Used by expand_block_compare to emit the load
11918 insns for the compare.
11919 (rs6000_emit_dot_insn): Moved this function to avoid a forward
11920 reference from expand_block_compare ().
11921 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
11922 prototype for this function.
11923 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
11924 target option for controlling how much code inline expansion of
11925 memcmp() will be allowed to generate.
11927 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11929 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
11930 hook_bool_mode_false, hook_bool_mode_true,
11931 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
11932 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
11933 hook_bool_const_rtx_insn_const_rtx_insn_true,
11934 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
11935 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
11936 hook_bool_const_tree_hwi_hwi_const_tree_false,
11937 hook_bool_const_tree_hwi_hwi_const_tree_true,
11938 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
11939 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
11940 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
11941 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
11942 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
11943 hook_bool_const_tree_true, hook_bool_tree_tree_false,
11944 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
11945 hook_bool_rtx_insn_true, hook_bool_rtx_false,
11946 hook_bool_uintp_uintp_false,
11947 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
11948 hook_rtx_tree_int_null, hook_uint_mode_0,
11949 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
11950 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
11951 hook_constcharptr_const_rtx_insn_null,
11952 hook_constcharptr_const_tree_const_tree_null,
11953 hook_constcharptr_int_const_tree_null,
11954 hook_constcharptr_int_const_tree_const_tree_null,
11955 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
11956 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
11957 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
11959 * vec.h (vNULL): Extend comment to say = vNULL initialization
11960 isn't needed for static vars.
11962 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
11963 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
11964 = vNULL initialization of file scope vec.
11965 * passes.c (pass_tab, enabled_pass_uid_range_tab,
11966 disabled_pass_uid_range_tab): Likewise.
11967 * haifa-sched.c (sched_luids, h_i_d): Likewise.
11968 * tree-chkp-opt.c (check_infos): Likewise.
11969 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
11971 * vec.h (vnull::operator vec): Add constexpr keyword for
11974 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
11976 PR tree-optimization/77654
11977 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
11978 to duplicate_ssa_name_ptr_info.
11980 2016-09-23 David Malcolm <dmalcolm@redhat.com>
11982 PR preprocessor/77672
11983 * input.c (selftest::test_lexer_string_locations_simple): Update
11984 test to expect location information of the terminator character
11985 at the location of the final closing quote.
11986 (selftest::test_lexer_string_locations_hex): Likewise.
11987 (selftest::test_lexer_string_locations_oct): Likewise.
11988 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
11989 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
11990 (selftest::test_lexer_string_locations_ucn4): Likewise.
11991 (selftest::test_lexer_string_locations_ucn8): Likewise.
11992 (selftest::test_lexer_string_locations_u8): Likewise.
11993 (selftest::test_lexer_string_locations_utf8_source): Likewise.
11994 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
11995 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
11996 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
11997 (selftest::test_lexer_string_locations_macro): Likewise.
11998 (selftest::test_lexer_string_locations_long_line): Likewise.
12000 2016-09-23 Richard Biener <rguenther@suse.de>
12002 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
12003 virtual definition to virtual use if the call devirtualizes
12004 to a const or pure function.
12005 (visit_use): Also visit calls we can devirtualize to a
12006 const or pure function.
12008 2016-09-23 Richard Biener <rguenther@suse.de>
12010 PR tree-optimization/77697
12011 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
12012 signal error if we have sth ternary or unhandled.
12014 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12016 * config/arm/arm_neon.h (vabd_f16): New.
12050 (vcvt_f16_s16): New.
12051 (vcvt_f16_u16): New.
12052 (vcvt_s16_f16): New.
12053 (vcvt_u16_f16): New.
12054 (vcvtq_f16_s16): New.
12055 (vcvtq_f16_u16): New.
12056 (vcvtq_s16_f16): New.
12057 (vcvtq_u16_f16): New.
12058 (vcvta_s16_f16): New.
12059 (vcvta_u16_f16): New.
12060 (vcvtaq_s16_f16): New.
12061 (vcvtaq_u16_f16): New.
12062 (vcvtm_s16_f16): New.
12063 (vcvtm_u16_f16): New.
12064 (vcvtmq_s16_f16): New.
12065 (vcvtmq_u16_f16): New.
12066 (vcvtn_s16_f16): New.
12067 (vcvtn_u16_f16): New.
12068 (vcvtnq_s16_f16): New.
12069 (vcvtnq_u16_f16): New.
12070 (vcvtp_s16_f16): New.
12071 (vcvtp_u16_f16): New.
12072 (vcvtpq_s16_f16): New.
12073 (vcvtpq_u16_f16): New.
12074 (vcvt_n_f16_s16): New.
12075 (vcvt_n_f16_u16): New.
12076 (vcvtq_n_f16_s16): New.
12077 (vcvtq_n_f16_u16): New.
12078 (vcvt_n_s16_f16): New.
12079 (vcvt_n_u16_f16): New.
12080 (vcvtq_n_s16_f16): New.
12081 (vcvtq_n_u16_f16): New.
12089 (vmaxnmq_f16): New.
12093 (vminnmq_f16): New.
12095 (vmul_lane_f16): New.
12098 (vmulq_lane_f16): New.
12099 (vmulq_n_f16): New.
12106 (vrecpeq_f16): New.
12119 (vrsqrte_f16): New.
12120 (vrsqrteq_f16): New.
12122 (vrecpsq_f16): New.
12123 (vrsqrts_f16): New.
12124 (vrsqrtsq_f16): New.
12128 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12130 * config.gcc (extra_headers): Add arm_fp16.h
12131 * config/arm/arm_fp16.h: New.
12132 * config/arm/arm_neon.h: Include "arm_fp16.h".
12134 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12136 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
12138 (vmulf): New (v8hf, v4hf variants).
12139 (vfma): New (v8hf, v4hf variants).
12140 (vfms): New (v8hf, v4hf variants).
12141 (vsub): New (v8hf, v4hf variants).
12142 (vcage): New (v8hf, v4hf variants).
12143 (vcagt): New (v8hf, v4hf variants).
12144 (vcale): New (v8hf, v4hf variants).
12145 (vcalt): New (v8hf, v4hf variants).
12146 (vceq): New (v8hf, v4hf variants).
12147 (vcgt): New (v8hf, v4hf variants).
12148 (vcge): New (v8hf, v4hf variants).
12149 (vcle): New (v8hf, v4hf variants).
12150 (vclt): New (v8hf, v4hf variants).
12151 (vceqz): New (v8hf, v4hf variants).
12152 (vcgez): New (v8hf, v4hf variants).
12153 (vcgtz): New (v8hf, v4hf variants).
12154 (vcltz): New (v8hf, v4hf variants).
12155 (vclez): New (v8hf, v4hf variants).
12156 (vabd): New (v8hf, v4hf variants).
12157 (vmaxf): New (v8hf, v4hf variants).
12158 (vmaxnm): New (v8hf, v4hf variants).
12159 (vminf): New (v8hf, v4hf variants).
12160 (vminnm): New (v8hf, v4hf variants).
12161 (vpmaxf): New (v4hf variant).
12162 (vpminf): New (v4hf variant).
12163 (vpadd): New (v4hf variant).
12164 (vrecps): New (v8hf, v4hf variants).
12165 (vrsqrts): New (v8hf, v4hf variants).
12166 (vabs): New (v8hf, v4hf variants).
12167 (vneg): New (v8hf, v4hf variants).
12168 (vrecpe): New (v8hf, v4hf variants).
12169 (vrnd): New (v8hf, v4hf variants).
12170 (vrnda): New (v8hf, v4hf variants).
12171 (vrndm): New (v8hf, v4hf variants).
12172 (vrndn): New (v8hf, v4hf variants).
12173 (vrndp): New (v8hf, v4hf variants).
12174 (vrndx): New (v8hf, v4hf variants).
12175 (vrsqrte): New (v8hf, v4hf variants).
12176 (vmul_lane): Add v4hf and v8hf variants.
12177 (vmul_n): Add v4hf and v8hf variants.
12178 (vext): New (v8hf, v4hf variants).
12179 (vcvts): New (v8hi, v4hi variants).
12180 (vcvts): New (v8hf, v4hf variants).
12181 (vcvtu): New (v8hi, v4hi variants).
12182 (vcvtu): New (v8hf, v4hf variants).
12183 (vcvts_n): New (v8hf, v4hf variants).
12184 (vcvtu_n): New (v8hi, v4hi variants).
12185 (vcvts_n): New (v8hi, v4hi variants).
12186 (vcvtu_n): New (v8hf, v4hf variants).
12187 (vbsl): New (v8hf, v4hf variants).
12188 (vcvtas): New (v8hf, v4hf variants).
12189 (vcvtau): New (v8hf, v4hf variants).
12190 (vcvtms): New (v8hf, v4hf variants).
12191 (vcvtmu): New (v8hf, v4hf variants).
12192 (vcvtns): New (v8hf, v4hf variants).
12193 (vcvtnu): New (v8hf, v4hf variants).
12194 (vcvtps): New (v8hf, v4hf variants).
12195 (vcvtpu): New (v8hf, v4hf variants).
12197 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12199 * config/arm/arm-builtins.c (hf_UP): New.
12201 (vfp_builtin_data): New. Update comment.
12202 (enum arm_builtins): Include "arm_vfp_builtins.def".
12203 (ARM_BUILTIN_VFP_PATTERN_START): New.
12204 (arm_init_vfp_builtins): New.
12205 (arm_init_builtins): Add arm_init_vfp_builtins.
12206 (arm_expand_vfp_builtin): New.
12207 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
12209 * config/arm/arm_vfp_builtins.def: New file.
12210 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
12211 (arm-builtins.o): Likewise.
12213 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12216 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
12217 from constant while creating value range.
12219 2016-09-23 Renlin Li <renlin.li@arm.com>
12221 * ira.c (ira): Move ira_use_lra_p initialization code to ...
12222 (ira_init_once): Here.
12224 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
12225 Jakub Jelinek <jakub@redhat.com>
12227 * hooks.h (hook_uint_uintp_false): Rename to...
12228 (hook_bool_uint_uintp_false): ... this.
12229 * hooks.c (hook_uint_uintp_false): Rename to...
12230 (hook_bool_uint_uintp_false): ... this.
12231 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
12232 instead of hook_uint_uintp_false.
12234 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12236 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
12237 (arm_init_builtins): Move body of a loop to the standalone
12238 function arm_init_neon_builtin.
12239 (arm_expand_neon_builtin_1): New. Update comment. Function body
12240 moved from arm_neon_builtin with some white-space fixes.
12241 (arm_expand_neon_builtin): Move code into the standalone function
12242 arm_expand_neon_builtin_1.
12244 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12246 * config/arm/iterators.md (VCVTHI): New.
12247 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
12248 (NEON_VAGLTE): New.
12249 (VFM_LANE_AS): New.
12251 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
12252 (V_HALF): Add V4HF. Fix white-space.
12253 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
12254 (V_s_elem): Likewise.
12255 (V_sz_elem): Fix white-space.
12256 (V_elem_ch): Likewise.
12258 (scalar_mul_constraint): Add V8HF and V4HF.
12259 (Is_float_mode): Fix white-space.
12260 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
12261 (q): Add HF. Fix white-space.
12264 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
12265 (neon_vfm_lane_as): New.
12266 * config/arm/neon.md (add<mode>3_fp16): New.
12267 (sub<mode>3_fp16): New.
12268 (mul<mode>3add<mode>_neon): New.
12269 (fma<VH:mode>4_intrinsic): New.
12270 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
12271 (fmsub<VH:mode>4_intrinsic): New.
12272 (<absneg_str><mode>2): New.
12273 (neon_v<absneg_str><mode>): New.
12274 (neon_v<fp16_rnd_str><mode>): New.
12275 (neon_vrsqrte<mode>): New.
12276 (neon_vpaddv4hf): New.
12277 (neon_vadd<mode>): New.
12278 (neon_vsub<mode>): New.
12279 (neon_vmulf<mode>): New.
12280 (neon_vfma<VH:mode>): New.
12281 (neon_vfms<VH:mode>): New.
12282 (neon_vc<cmp_op><mode>): New.
12283 (neon_vc<cmp_op><mode>_fp16insn): New
12284 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
12285 (neon_vca<cmp_op><mode>): New.
12286 (neon_vca<cmp_op><mode>_fp16insn): New.
12287 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
12288 (neon_vc<cmp_op>z<mode>): New.
12289 (neon_vabd<mode>): New.
12290 (neon_v<maxmin>f<mode>): New.
12291 (neon_vp<maxmin>fv4hf: New.
12292 (neon_<fmaxmin_op><mode>): New.
12293 (neon_vrecps<mode>): New.
12294 (neon_vrsqrts<mode>): New.
12295 (neon_vrecpe<mode>): New (VH variant).
12296 (neon_vdup_lane<mode>_internal): New.
12297 (neon_vdup_lane<mode>): New.
12298 (neon_vcvt<sup><mode>): New (VCVTHI variant).
12299 (neon_vcvt<sup><mode>): New (VH variant).
12300 (neon_vcvt<sup>_n<mode>): New (VH variant).
12301 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
12302 (neon_vcvt<vcvth_op><sup><mode>): New.
12303 (neon_vmul_lane<mode>): New.
12304 (neon_vmul_n<mode>): New.
12305 * config/arm/unspecs.md (UNSPEC_VCALE): New
12306 (UNSPEC_VCALT): New.
12307 (UNSPEC_VFMA_LANE): New.
12308 (UNSPECS_VFMS_LANE): New.
12310 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12312 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
12313 ("*extzv<mode><clobbercc_or_nocc>"):
12314 Correct a typo in a comment.
12316 ("*insv<mode>_zEC12", "*insv<mode>_z10")
12317 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
12318 ("*insv<mode>_zEC12_appendbitsleft")
12319 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
12320 ("*insv<mode>_z10_appendbitsleft"): Ditto.
12321 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
12322 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
12323 Provide pattern with operands switched.
12324 ("*pre_z10_extv<mode>"):
12325 Use new subst patterns.
12326 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
12327 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
12328 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
12329 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
12330 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
12331 ("*<risbg_n>_sidi_ior_and_lshiftrt")
12332 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
12334 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
12335 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
12336 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
12338 ("SINT"): New mode_iterator with SI, HI, QI.
12339 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
12340 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
12343 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12345 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
12346 new interface of s390_contiguous_bitmask_p.
12347 ("contiguous_bitmask_nowrap_operand"): New predicate.
12348 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
12349 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
12350 of s390_contiguous_bitmask_p.
12351 ("NxxDw"): Rename NxxDq constraint to NxxDw.
12352 ("NxxSw"): New constraint.
12353 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
12354 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
12356 (s390_contiguous_bitmask_nowrap_p): Export.
12357 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
12358 former s390_contiguous_bitmask_p.
12359 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
12360 detect contiguous bit ranges with wraparound. Change signature to
12361 return START and END position instead of POS and LENGTH.
12362 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
12363 ranges with wraparound.
12364 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
12365 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
12366 Adapt to new signature of s390_contiguous_bitmask_p.
12368 2016-09-23 Bin Cheng <bin.cheng@arm.com>
12370 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
12371 (create_intersect_range_checks): New.
12372 (vect_create_cond_for_alias_checks): Call above function.
12374 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12376 * config/arm/iterators.md (Code iterators): Fix some white-space
12380 (FCVT): Moved from vfp.md.
12381 (VCVT_HF_US_N): New.
12382 (VCVT_SI_US_N): New.
12387 (FCVTI32typename): Moved from vfp.md.
12388 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
12389 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
12390 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
12391 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
12392 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
12394 (fp16_rnd_str): New.
12395 (fp16_rnd_insn): New.
12396 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
12397 (UNSPEC_VCVT_HF_U_N): New.
12398 (UNSPEC_VCVT_SI_S_N): New.
12399 (UNSPEC_VCVT_SI_U_N): New.
12400 (UNSPEC_VCVTH_S): New.
12401 (UNSPEC_VCVTH_U): New.
12402 (UNSPEC_VCVTA_S): New.
12403 (UNSPEC_VCVTA_U): New.
12404 (UNSPEC_VCVTM_S): New.
12405 (UNSPEC_VCVTM_U): New.
12406 (UNSPEC_VCVTN_S): New.
12407 (UNSPEC_VCVTN_U): New.
12408 (UNSPEC_VCVTP_S): New.
12409 (UNSPEC_VCVTP_U): New.
12410 (UNSPEC_VCVTP_S): New.
12411 (UNSPEC_VCVTP_U): New.
12412 (UNSPEC_VRND): New.
12413 (UNSPEC_VRNDA): New.
12414 (UNSPEC_VRNDI): New.
12415 (UNSPEC_VRNDM): New.
12416 (UNSPEC_VRNDN): New.
12417 (UNSPEC_VRNDP): New.
12418 (UNSPEC_VRNDX): New.
12419 * config/arm/vfp.md (<absneg_str>hf2): New.
12420 (neon_vabshf): New.
12421 (neon_v<fp16_rnd_str>hf): New.
12422 (neon_vrndihf): New.
12427 (*mulsf3neghf_vfp): New.
12428 (*negmulhf3_vfp): New.
12429 (*mulsf3addhf_vfp): New.
12430 (*mulhf3subhf_vfp): New.
12431 (*mulhf3neghfaddhf_vfp): New.
12432 (*mulhf3neghfsubhf_vfp): New.
12434 (neon_vfmahf): New.
12435 (fmsubhf4_fp16): New.
12436 (neon_vfmshf): New.
12439 (neon_vsqrthf): New.
12440 (neon_vrsqrtshf): New.
12441 (FCVT): Move to iterators.md.
12442 (FCVTI32typename): Likewise.
12443 (neon_vcvth<sup>hf): New.
12444 (neon_vcvth<sup>si): New.
12445 (neon_vcvth<sup>_nhf_unspec): New.
12446 (neon_vcvth<sup>_nhf): New.
12447 (neon_vcvth<sup>_nsi_unspec): New.
12448 (neon_vcvth<sup>_nsi): New.
12449 (neon_vcvt<vcvth_op>h<sup>si): New.
12450 (neon_<fmaxmin_op>hf): New.
12452 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12454 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
12455 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
12456 ("*insv<mode>_zEC12_appendbitsleft")
12457 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
12458 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
12460 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12462 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
12463 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
12464 construct values without normalization.
12465 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
12466 static local lhs_ops to vNULL.
12468 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12469 Jiong Wang <jiong.wang@arm.com>
12471 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
12472 available when FP16 instructions are available.
12473 (output_move_vfp): Add support for 16-bit data moves.
12474 (arm_validize_comparison): Fix some white-space. Support HFmode
12475 by conversion to SFmode.
12476 * config/arm/arm.md (truncdfhf2): Fix a comment.
12477 (extendhfdf2): Likewise.
12479 (movsicc): Fix some white-space.
12481 (movsfcc): Fix some white-space.
12483 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
12484 instructions are available.
12485 (*thumb2_movhi_vfp): Likewise.
12486 (*arm_movhi_fp16): New.
12487 (*thumb2_movhi_fp16): New.
12488 (*movhf_vfp_fp16): New.
12489 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
12490 (*movhf_vfp): Likewise.
12491 (extendhfsf2): Enable when VFP FP16 instructions are available.
12492 (truncsfhf2): Enable when VFP FP16 instructions are available.
12494 2016-09-23 Martin Liska <mliska@suse.cz>
12496 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
12498 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12500 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
12502 (arm_evpc_neon_vtrn): Likewise.
12503 (arm_evpc_neon_vrev): Likewise.
12504 (arm_evpc_neon_vext): Likewise.
12505 * config/arm/arm_neon.h (vbsl_f16): New.
12508 (vdupq_n_f16): New.
12509 (vdup_lane_f16): New.
12510 (vdupq_lane_f16): New.
12514 (vmovq_n_f16): New.
12516 (vrev64q_f16): New.
12523 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
12524 (vdup_lane): New (v8hf, v4hf variants).
12525 (vext): New (v8hf, v4hf variants).
12526 (vbsl): New (v8hf, v4hf variants).
12527 * config/arm/iterators.md (VDQWH): New.
12529 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
12530 (Scalar_mul_8_16): Fix white-space.
12531 (Is_d_reg): Add V4HF and V8HF.
12532 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
12533 (neon_vdup_lane<mode>): New.
12534 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
12535 (*neon_vtrn<mode>_insn): Likewise.
12536 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
12537 (*neon_vzip<mode>_insn): Likewise
12538 (neon_vuzp<mode>_internal): Likewise.
12539 (*neon_vuzp<mode>_insn): Likewise
12540 * config/arm/vec-common.md (vec_perm_const<mode>): New.
12542 2016-09-23 Jiong Wang <jiong.wang@arm.com>
12543 Matthew Wahab <matthew.wahab@arm.com>
12545 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
12546 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
12547 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
12548 available. Also fix some white-space.
12549 * config/arm/vfp.md (*arm_movhi_vfp): New.
12550 (*thumb2_movhi_vfp): New.
12552 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12554 * config/arm/arm-c.c (arm_cpu_builtins): Define
12555 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
12556 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
12558 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12560 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
12561 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
12562 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
12563 arm_v8_2a_fp16_neon_hw.
12564 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
12567 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12569 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
12570 arm_fp16_alternative_ok and arm_fp16_none_ok.
12572 2016-09-23 Martin Liska <mliska@suse.cz>
12574 * ipa-icf.c (sem_variable::merge): Replace adress with address.
12576 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12578 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
12579 ("armv8.2-a"): New.
12580 ("armv8.2-a+fp16"): New.
12581 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
12582 (FL2_FP16INST): New.
12583 (FL2_FOR_ARCH8_2A): New.
12584 * config/arm/arm-tables.opt: Regenerate.
12585 * config/arm/arm.c (arm_arch8_2): New.
12586 (arm_fp16_inst): New.
12587 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
12588 for incompatible fp16-format settings.
12589 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
12590 (TARGET_NEON_FP16INST): New.
12591 (arm_arch8_2): Declare.
12592 (arm_fp16_inst): Declare.
12593 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
12594 march=armv8.2-a and march=armv8.2-a+fp16.
12595 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
12596 and armv8.2-a+fp16.
12597 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
12598 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
12600 2016-09-23 Martin Liska <mliska@suse.cz>
12602 * doc/extend.texi: Remove fused-madd from i386 target options.
12604 2016-09-23 Martin Liska <mliska@suse.cz>
12606 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12609 2016-09-23 Martin Liska <mliska@suse.cz>
12611 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12614 2016-09-23 Martin Liska <mliska@suse.cz>
12617 * config/i386/i386.c (ix86_option_override_internal): Change
12618 signature and return false when there's an error related to
12620 (release_options_strings): New function.
12621 (ix86_valid_target_attribute_tree): Call the function.
12623 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12625 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
12626 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
12627 (gen_hsa_ctor_assignment): Likewise.
12628 * print-tree.c (print_node): Likewise.
12629 * tree-dump.c (dequeue_and_dump): Likewise.
12630 * tree-sra.c (sra_modify_constructor_assign): Likewise.
12631 * expr.c (store_constructor): Likewise.
12632 * fold-const.c (operand_equal_p): Likewise.
12633 * tree-pretty-print.c (dump_generic_node): Likewise.
12634 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
12635 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
12637 2016-09-23 Richard Biener <rguenther@suse.de>
12639 * hooks.h (hook_uint_uintp_false): Declare.
12641 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12643 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
12644 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
12646 2016-09-22 Martin Sebor <msebor@redhat.com>
12649 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
12650 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
12651 (target_int_min): Correct computation.
12652 (format_integer): Use long long as the argument for the ll length
12654 (format_floating): Use target_int_max().
12655 (get_string_length): Same.
12656 (format_string): Avoid setting the bounded flag for strings
12658 (try_substitute_return_value): Avoid setting range info when
12659 the result isn't bounded.
12660 * varasm.c (assemble_name): Increase buffer size.
12662 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
12663 Terry Guo <terry.guo@arm.com>
12665 * target.def (elf_flags_numeric): New target hook.
12666 * targhooks.h (default_asm_elf_flags_numeric): New.
12667 * varasm.c (default_asm_elf_flags_numeric): New.
12668 (default_elf_asm_named_section): Use new target hook.
12669 * config/arm/arm.opt (mpure-code): New.
12670 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
12671 * config/arm/arm.c (arm_asm_init_sections): Add section
12672 attribute to default text section if -mpure-code.
12673 (arm_option_check_internal): Diagnose use of option with
12674 non supported targets and/or options.
12675 (arm_asm_elf_flags_numeric): New.
12676 (arm_function_section): New.
12677 (arm_elf_section_type_flags): New.
12678 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
12680 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
12681 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
12683 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
12685 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
12687 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12689 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
12690 * rtl.h: Adjust prototype.
12692 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12694 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
12695 (prev_active_insn): Likewise.
12696 (active_insn_p): Likewise.
12697 * rtl.h: Adjust prototypes.
12698 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
12699 * config/arc/arc.md: Likewise.
12700 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
12701 (branch_needs_nop_p): Likewise.
12702 (use_skip_p): Likewise.
12703 * config/sh/sh.c (gen_block_redirect): Likewise.
12704 (split_branches): Likewise.
12705 * reorg.c (optimize_skip): Likewise.
12706 (fill_simple_delay_slots): Likewise.
12707 (fill_slots_from_thread): Likewise.
12708 (relax_delay_slots): Likewise.
12709 * resource.c (mark_target_live_regs): Likewise.
12711 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12713 * config/cris/cris.c (cris_asm_output_case_end): Change argument
12714 type to rtx_insn *.
12715 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
12716 (prev_nonnote_nondebug_insn): Likewise.
12717 * config/cris/cris-protos.h: Adjust prototype.
12719 * jump.c (rtx_renumbered_equal_p): Adjust.
12721 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12723 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
12724 * rtl.h: Adjust prototype.
12725 * config/sh/sh.md: Adjust.
12726 * dwarf2out.c (add_var_loc_to_decl): Likewise.
12728 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12730 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
12731 (prev_nondebug_insn): Likewise.
12732 * loop-doloop.c (doloop_condition_get): Likewise.
12733 * rtl.h: Adjust prototype.
12734 * cfgloop.h: Likewise.
12736 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12738 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
12739 (prev_nonnote_insn): Likewise.
12740 * jump.c (reversed_comparison_code_parts): Likewise.
12741 (reversed_comparison): Likewise.
12742 * rtl.h: Adjust prototypes.
12743 * config/arc/arc.md: Adjust.
12744 * cse.c (find_comparison_args): Likewise.
12745 * reorg.c (redundant_insn): Change return type to rtx_insn *.
12746 (fix_reg_dead_note): Change argument type to rtx_insn *.
12747 (delete_prior_computation): Likewise.
12748 (delete_computation): Likewise.
12749 (fill_slots_from_thread): Adjust.
12750 (relax_delay_slots): Likewise.
12751 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12752 (simplify_relational_operation_1): Likewise.
12753 (simplify_ternary_operation): Likewise.
12755 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12757 * config/arc/arc-protos.h (arc_label_align): Change type of
12758 variables from rtx to rtx_insn *.
12759 * config/arc/arc.c (arc_label_align): Likewise.
12760 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
12761 * config/bfin/bfin.c (workaround_speculation): Likewise.
12762 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
12763 (find_last_same_clock): Likewise.
12764 (reorg_split_calls): Likewise.
12765 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
12766 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
12767 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
12768 (same_cmp_following_p): Likewise.
12769 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
12770 (same_cmp_following_p): Likwise.
12771 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
12772 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
12773 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
12774 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
12775 (rl78_alloc_physical_registers_cmp): Likewise.
12776 (rl78_alloc_physical_registers_umul): Likewise.
12777 (rl78_calculate_death_notes): Likewise.
12778 * config/s390/s390-protos.h (s390_label_align): Likewise.
12779 * config/s390/s390.c (s390_label_align): Likewise.
12780 * config/sh/sh.c (barrier_align): Likewise.
12781 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
12782 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
12783 (emit_cbcond_nop): Likewise.
12785 2016-09-22 Martin Liska <mliska@suse.cz>
12788 * ipa-icf.c (sem_variable::merge): Yield merge operation if
12789 alias address matters, not necessarily address of original.
12791 2016-09-22 Richard Biener <rguenther@suse.de>
12793 PR middle-end/77697
12794 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
12797 2016-09-22 Richard Biener <rguenther@suse.de>
12799 PR middle-end/77677
12800 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
12801 from constant folding results.
12802 (gimple_resimplify2): Likewise.
12803 (gimple_resimplify3): Likewise.
12805 2016-09-22 Richard Biener <rguenther@suse.de>
12807 PR middle-end/77678
12808 * expr.c (expand_expr_real_1): Guard array access against negative
12811 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12813 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
12815 (format_floating): Likewise.
12817 2016-09-22 Jakub Jelinek <jakub@redhat.com>
12820 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
12821 for all IFN_GOMP_SIMD_* internal fns, not just for
12822 IFN_GOMP_SIMD_ORDERED_*.
12824 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12827 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
12828 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
12829 instructions when you want to invert the test.
12830 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
12831 correct order for XXSEL.
12832 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
12833 for using XSCMP{EQ,GT,GE}DP.
12835 2016-09-21 David Malcolm <dmalcolm@redhat.com>
12837 * genconstants.c (main): Introduce noop_reader and convert call
12838 to read_md_files to a method call.
12839 * genenums.c (main): Likewise.
12840 * genmddeps.c (main): Likewise.
12841 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
12842 rtx_reader_ptr->get_top_level_filename ().
12843 (write_tm_preds_h): Likewise.
12844 (write_insn_preds_c): Likewise.
12845 * gensupport.c (class gen_reader): New subclass of rtx_reader.
12846 (rtx_handle_directive): Convert to...
12847 (gen_reader::handle_unknown_directive): ...this.
12848 (init_rtx_reader_args_cb): Convert return type from bool to
12849 rtx_reader *. Create a gen_reader instance, using it for the
12850 call to read_md_files. Return it if no errors occur.
12851 (init_rtx_reader_args): Convert return type from bool to
12853 * gensupport.h (init_rtx_reader_args_cb): Likewise.
12854 (init_rtx_reader_args_cb): Likewise.
12855 * read-md.c (struct file_name_list): Move to class rtx_reader.
12856 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
12857 (read_md_filename): Delete in favor of
12858 rtx_reader::m_read_md_filename.
12859 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
12860 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
12861 (base_dir): Delete in favor of rtx_reader::m_base_dir.
12862 (first_dir_md_include): Delete in favor of
12863 rtx_reader::m_first_dir_md_include.
12864 (last_dir_md_include_ptr): Delete in favor of
12865 rtx_reader::m_last_dir_md_include_ptr.
12866 (max_include_len): Delete.
12867 (rtx_reader_ptr): New.
12868 (fatal_with_file_and_line): Use get_filename and get_lineno
12869 accessors of rtx_reader_ptr.
12870 (require_char_ws): Likewise.
12871 (rtx_reader::read_char): New method, based on ::read_char.
12872 (rtx_reader::unread_char): New method, based on ::unread_char.
12873 (read_escape): Use get_filename and get_lineno accessors of
12875 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
12876 (read_string): Use get_filename and get_lineno accessors of
12878 (rtx_reader::rtx_reader): New ctor.
12879 (rtx_reader::~rtx_reader): New dtor.
12880 (handle_include): Convert from a function to...
12881 (rtx_reader::handle_include): ...this method, converting
12882 handle_directive from a callback to a virtual function.
12883 (handle_file): Likewise, converting to...
12884 (rtx_reader::handle_file): ...this method.
12885 (handle_toplevel_file): Likewise, converting to...
12886 (rtx_reader::handle_toplevel_file): ...this method.
12887 (rtx_reader::get_current_location): New method.
12888 (parse_include): Convert from a function to...
12889 (rtx_reader::add_include_path): ...this method, dropping redundant
12890 update to unused max_include_len.
12891 (read_md_files): Convert from a function to...
12892 (rtx_reader::read_md_files): ...this method, converting
12893 handle_directive from a callback to a virtual function.
12894 (noop_reader::handle_unknown_directive): New method.
12895 * read-md.h (directive_handler_t): Delete this typedef.
12896 (in_fname): Delete.
12897 (read_md_file): Delete.
12898 (read_md_lineno): Delete.
12899 (read_md_filename): Delete.
12900 (class rtx_reader): New class.
12901 (rtx_reader_ptr): New decl.
12902 (class noop_reader): New subclass of rtx_reader.
12903 (read_char): Reimplement in terms of rtx_reader::read_char.
12904 (unread_char): Reimplement in terms of rtx_reader::unread_char.
12905 (read_md_files): Delete.
12906 * read-rtl.c (read_rtx_code): Update for deletion of globals
12907 read_md_filename and read_md_lineno.
12909 2016-09-21 Jason Merrill <jason@redhat.com>
12911 * input.h (from_macro_definition_at): New.
12913 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12915 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
12917 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12919 PR tree-optimization/77550
12920 * tree-vect-stmts.c (create_array_ref): Change parameters.
12921 (get_group_alias_ptr_type): New function.
12922 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
12924 2016-09-21 Marek Polacek <polacek@redhat.com>
12926 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
12927 Add falls through comment.
12929 2016-09-21 Richard Biener <rguenther@suse.de>
12931 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
12932 (replace_child): Likewise.
12933 (remove_child_TAG): Adjust.
12934 (move_marked_base_types): Likewise.
12935 (prune_unused_types_prune): Clear die_sib of removed children.
12937 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
12940 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
12941 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
12943 2016-09-21 Richard Biener <rguenther@suse.de>
12945 PR tree-optimization/77648
12946 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
12948 (make_transitive_closure_constraints): Adjust comment.
12949 (make_any_offset_constraints): New function.
12950 (handle_rhs_call): Make sure to first expand a pointer to all
12951 subfields before transitively closing it.
12952 (handle_const_call): Likewise. Properly expand returned
12954 (handle_pure_call): Likewise.
12956 2016-09-21 Richard Biener <rguenther@suse.de>
12957 Jakub Jelinek <jakub@redhat.com>
12959 PR tree-optimization/77621
12960 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12961 group at non-vectorizable stmts.
12963 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12965 PR tree-optimization/72835
12966 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
12967 (make_new_ssa_for_all_defs): Likewise.
12968 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
12970 2016-09-20 Martin Sebor <msebor@redhat.com>
12972 PR middle-end/49905
12973 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
12974 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
12975 * config/linux.c (gnu_libc_printf_pointer_format): New function.
12976 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
12977 * config/sol2.c (solaris_printf_pointer_format): New function.
12978 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
12980 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
12981 * doc/tm.texi: Regenerate.
12982 * gimple-fold.h (get_range_strlen): New function.
12983 (get_maxval_strlen): Declare existing function.
12984 * gimple-fold.c (get_range_strlen): Add arguments and compute both
12985 maximum and minimum.
12986 (get_range_strlen): Define overload.
12987 (get_maxval_strlen): Adjust.
12988 * gimple-ssa-sprintf.c: New file and pass.
12989 * passes.def (pass_sprintf_length): Add new pass.
12990 * targhooks.h (default_printf_pointer_format): Declare new function.
12991 (gnu_libc_printf_pointer_format): Same.
12992 (solaris_libc_printf_pointer_format): Same.
12993 * targhooks.c (default_printf_pointer_format): Define new function.
12994 * tree-pass.h (make_pass_sprintf_length): Declare new function.
12995 * print-tree.c: Increase buffer size.
12997 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12999 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
13001 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
13003 * common.opt: New option -fipa-vrp.
13004 * ipa-cp.c (ipa_get_vr_lat): New.
13005 (ipcp_vr_lattice::print): Likewise.
13006 (print_all_lattices): Call ipcp_vr_lattice::print.
13007 (ipcp_vr_lattice::meet_with): New.
13008 (ipcp_vr_lattice::meet_with_1): Likewise.
13009 (ipcp_vr_lattice::top_p): Likewise.
13010 (ipcp_vr_lattice::bottom_p): Likewsie.
13011 (ipcp_vr_lattice::set_to_bottom): Likewise.
13012 (set_all_contains_variable): Call VR set_to_bottom.
13013 (initialize_node_lattices): Init VR lattices.
13014 (propagate_vr_accross_jump_function): New.
13015 (propagate_constants_accross_call): Call
13016 propagate_vr_accross_jump_function.
13017 (ipcp_store_vr_results): New.
13018 (ipcp_driver): Handle VR.
13019 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
13020 (ipa_set_jf_unknown): Likewise.
13021 (ipa_compute_jump_functions_for_edge): Likewise.
13022 (ipa_node_params_t::duplicate): Likewise.
13023 (ipa_write_jump_function): Likewise.
13024 (ipa_read_jump_function): Likewise.
13025 (write_ipcp_transformation_info): Likewise.
13026 (read_ipcp_transformation_info): Likewise.
13027 (ipcp_update_vr): New.
13028 (ipcp_transform_function): Handle VR.
13029 * ipa-prop.h (struct ipa_vr): New.
13030 * cgraph.c: Include tree-vrp.h.
13031 * cgraphunit.c: Likewise.
13032 * ipa-utils.c: Likewise.
13034 * opts.c: Likewise.
13035 * toplev.c: Likewise.
13036 * ipa-devirt.c: Likewise.
13037 * ipa-inline-transform.c: Likewise.
13038 * ipa-inline.c: Likewise.
13039 * ipa-profile.c: Likewise.
13041 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
13043 * doc/invoke.texi: Document -fdump-tree-evrp.
13044 * passes.def: Define new pass_early_vrp.
13045 * timevar.def: Define new TV_TREE_EARLY_VRP.
13046 * tree-pass.h (make_pass_early_vrp): New.
13047 * tree-ssa-propagate.c: Make replace_uses_in non static.
13048 * tree-ssa-propagate.h: Export replace_uses_in.
13049 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
13050 (extract_range_from_assert): Factor out
13051 extract_range_for_var_from_comparison_expr.
13052 (vrp_initialize_lattice): New.
13053 (vrp_initialize): Factor out vrp_initialize_lattice.
13054 (vrp_valueize): Fix it to reject complex value ranges.
13055 (vrp_free_lattice): New.
13056 (evrp_dom_walker::before_dom_children): Likewise.
13057 (evrp_dom_walker::after_dom_children): Likewise.
13058 (evrp_dom_walker::push_value_range): Likewise.
13059 (evrp_dom_walker::pop_value_range): Likewise.
13060 (execute_early_vrp): Likewise.
13061 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
13062 (make_pass_early_vrp): New.
13064 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
13066 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
13067 instead of exact_log2.
13069 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
13072 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
13073 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
13074 (ix86_add_stmt_cost): Penalize DFmode vector operations
13075 for !TARGET_VECTORIZE_DOUBLE.
13077 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
13079 * doc/invoke.texi (Warning Options): Simplify language.
13080 (Optimize Options): Complete sentence.
13082 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
13084 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
13087 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
13090 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
13091 inits on power8 and above, use the VMRGEW instruction instead of a
13094 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
13095 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
13098 2016-09-20 Tamar Christina <tamar.christina@arm.com>
13100 * config/aarch64/arm_neon.h
13101 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
13102 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
13103 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
13105 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13107 * config/var/vax.h (ELIMINABLE_REGS): Define.
13108 (INITIAL_ELIMINATION_OFFSET): Define.
13110 2016-09-20 Jakub Jelinek <jakub@redhat.com>
13112 PR middle-end/77624
13113 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
13114 cast to void * if the cast is from some other pointer type.
13116 2016-09-20 Richard Biener <rguenther@suse.de>
13118 PR tree-optimization/77646
13119 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
13122 2016-09-20 Tamar Christina <tamar.christina@arm.com>
13124 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
13125 attributes to all inlined functions and make them extern.
13127 2016-09-20 Richard Biener <rguenther@suse.de>
13129 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
13131 * debug.c (do_nothing_debug_hooks): Adjust.
13132 * dbxout.c (dbx_debug_hooks): Likewise.
13133 * sdbout.c (sdb_debug_hooks): Likewise.
13134 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
13135 (dwarf2out_finish): Move producer, filename and
13136 path annotation ...
13137 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
13138 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
13140 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
13143 * doc/invoke.texi: Document -Wint-in-bool-context.
13145 PR middle-end/77421
13146 * dwarf2out.c (output_loc_operands): Fix an assertion.
13148 2016-09-19 Joseph Myers <joseph@codesourcery.com>
13150 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
13151 (CR_DECIMAL_DIG): New macro.
13153 2016-09-19 Joseph Myers <joseph@codesourcery.com>
13155 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
13158 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
13160 PR rtl-optimization/77416
13161 * lra-remat.c (operand_to_remat): Process hard coded insn
13164 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13166 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
13167 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
13169 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
13171 * target.def (lra_p): Wordsmithing.
13172 * doc/tm.texi: Regenerate.
13174 2016-09-19 Jakub Jelinek <jakub@redhat.com>
13175 Jan Hubicka <jh@suse.cz>
13178 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
13179 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
13180 Call ultimate_alias_target just once, not up to 4 times.
13182 2016-09-19 Richard Biener <rguenther@suse.de>
13184 * dwarf2out.c (early_dwarf_finished): New global.
13185 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
13187 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
13188 if called from LTO exit early.
13189 (dwarf2out_late_global_decl): When being during the early
13190 debug phase do not add locations but only const value attributes.
13191 Adjust the way we generate early DIEs for LTO.
13193 2016-09-19 Richard Biener <rguenther@suse.de>
13195 PR middle-end/77605
13196 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
13197 proper niter to bound the loops.
13199 2016-09-19 Richard Biener <rguenther@suse.de>
13201 PR tree-optimization/77514
13202 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
13203 search for folded stmt.
13205 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
13207 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
13208 * tree-pass.h (make_pass_early_thread_jumps): Declare.
13209 * tree-ssa-threadbackward.c (fsm_find_thread_path,
13210 fsm_find_thread_path, profitable_jump_thread_path,
13211 fsm_find_control_statement_thread_paths,
13212 find_jump_threads_backwards): Add speed_p parameter.
13213 (pass_data_early_thread_jumps): New pass.
13214 (make_pass_early_thread_jumps): New function.
13216 2016-09-17 Andreas Schwab <schwab@suse.de>
13218 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
13219 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13221 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
13223 * recog.c (rest_of_handle_split_after_reload): Delete.
13224 (pass_split_after_reload::gate): New method.
13225 (pass_split_after_reload::execute): Call split_all_insns directly.
13227 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
13229 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
13230 parameters for functions taking long long arguments.
13232 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13235 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
13236 splat with truncate.
13238 2016-09-16 Jason Merrill <jason@redhat.com>
13240 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
13242 * hwint.c (exact_log2): Use pow2p_hwi.
13243 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
13244 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
13245 * builtins.c (get_object_alignment_2, get_object_alignment)
13246 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
13248 * calls.c (compute_argument_addresses, store_one_arg): Use
13250 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
13251 * combine.c (force_to_mode): Use least_bit_hwi.
13252 (contains_muldiv, find_split_point, combine_simplify_rtx)
13253 (simplify_if_then_else, simplify_set, force_to_mode)
13254 (if_then_else_cond, simplify_and_const_int_1)
13255 (simplify_compare_const): Use pow2p_hwi.
13256 * cse.c (fold_rtx): Use pow2p_hwi.
13257 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
13259 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
13260 (init_expmed_one_conv): Use pow2p_hwi.
13261 * expr.c (is_aligning_offset): Use pow2p_hwi.
13262 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
13263 (fold_binary_loc): Use pow2p_hwi.
13264 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
13265 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
13266 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
13267 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
13269 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
13270 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
13271 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
13272 * omp-low.c (oacc_loop_fixed_partitions)
13273 (oacc_loop_auto_partitions): Use least_bit_hwi.
13274 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
13275 * stor-layout.c (place_field): Use least_bit_hwi.
13276 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
13277 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
13278 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
13279 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
13280 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
13281 * tree-vect-data-refs.c (vect_analyze_group_access_1)
13282 (vect_grouped_store_supported, vect_grouped_load_supported)
13283 (vect_permute_load_chain, vect_shift_permute_load_chain)
13284 (vect_transform_grouped_load): Use pow2p_hwi.
13285 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
13286 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
13287 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
13289 * tsan.c (instrument_expr): Use least_bit_hwi.
13290 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
13292 2016-09-16 Andreas Schwab <schwab@suse.de>
13294 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
13295 OFFSET, not offset.
13296 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13298 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13301 * combine.c (rest_of_handle_combine): If any edges have been purged,
13302 free dominators if available.
13304 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13305 Eric Botcazou <ebotcazou@adacore.com>
13307 PR middle-end/77594
13308 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
13309 through into expand_addsub_overflow after expand_neg_overflow.
13311 2016-09-15 David Malcolm <dmalcolm@redhat.com>
13313 * diagnostic-show-locus.c
13314 (selftest::test_fixit_insert_containing_newline): New function.
13315 (selftest::test_fixit_replace_containing_newline): New function.
13316 (selftest::diagnostic_show_locus_c_tests): Call the above.
13318 2016-09-15 Bin Cheng <bin.cheng@arm.com>
13320 PR tree-optimization/77503
13321 * tree-vect-loop.c (vectorizable_reduction): Record reduction
13322 code for CONST_COND_REDUCTION at analysis stage and use it at
13324 * tree-vectorizer.h (struct _stmt_vec_info): New field.
13325 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
13326 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
13329 2016-09-15 Richard Biener <rguenther@suse.de>
13331 PR middle-end/77544
13332 * fold-const.c (split_tree): Do not split constant ~X.
13334 2016-09-15 Jakub Jelinek <jakub@redhat.com>
13336 PR rtl-optimization/77425
13337 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
13340 PR middle-end/77475
13341 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
13342 use %qs instead of %s where desirable, use argument instead of arg in
13343 the diagnostic wording, add list of supported strategies and
13345 (ix86_option_override_internal): Emit target("m...") instead of
13346 option("m...") in the diagnostic. Use %qs instead of %s in invalid
13347 -march/-mtune option diagnostic. Add list of supported arches/tunings
13348 and spellcheck hint. Remove prefix, suffix and sw variables, use
13349 main_args_p ? "..." : "..." in diagnostics to make translation
13352 2016-09-15 Richard Biener <rguenther@suse.de>
13354 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
13355 extra offset argument.
13356 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
13357 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
13358 to reflect new offset parameter.
13359 * doc/tm.texi: Regenerate.
13360 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13361 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
13363 (darwin_asm_output_dwarf_offset): Likewise.
13364 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
13366 (darwin_asm_output_dwarf_offset): Pass offset argument through.
13367 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13368 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13370 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
13373 * ipa-icf.c (set_alias_uids): New function.
13374 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
13375 all the merged variable's referring aliases.
13377 2016-09-15 Richard Biener <rguenther@suse.de>
13379 PR tree-optimization/77514
13380 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
13381 only forced_stmts sequence.
13383 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
13385 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
13386 * cfgexpand.c (update_alias_info_with_stack_vars): Use
13387 FOR_EACH_SSA_NAME to iterate over SSA variables.
13388 (pass_expand::execute): Likewise.
13389 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
13390 * tree-cfg.c (dump_function_to_file): Likewise.
13391 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
13392 (update_ssa): Likewise.
13393 * tree-ssa-alias.c (dump_alias_info): Likewise.
13394 * tree-ssa-ccp.c (ccp_finalize): Likewise.
13395 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
13396 (create_outofssa_var_map): Likewise.
13397 (coalesce_ssa_name): Likewise.
13398 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
13399 * tree-ssa-pre.c (compute_avail): Likewise.
13400 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
13401 (scc_vn_restore_ssa_info): Likewise.
13402 (free_scc_vn): Likwise.
13403 (run_scc_vn): Likewise.
13404 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
13405 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
13406 * tree-ssa-copy.c (fini_copy_prop): Likewise.
13407 * tree-ssa.c (verify_ssa): Likewise.
13409 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
13411 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
13412 and mips64r2 as default 32-bit and 64-bit architectures.
13413 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
13414 as default 32-bit and 64-bit architectures.
13416 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
13418 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
13421 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13423 * target.def (lra_p): Change commentary (for the manual) for the
13425 * doc/tm.texi: Regenerate.
13427 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13429 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
13430 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
13431 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
13432 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
13434 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13436 * targhooks.c (default_lra_p): Return true instead of false.
13438 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13440 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
13441 hook_bool_void_false.
13442 * config/avr/avr.c: Ditto.
13443 * config/bfin/bfin.c: Ditto.
13444 * config/c6x/c6x.c: Ditto.
13445 * config/cr16/cr16.c: Ditto.
13446 * config/cris/cris.c: Ditto.
13447 * config/epiphany/epiphany.c: Ditto.
13448 * config/fr30/fr30.c: Ditto.
13449 * config/frv/frv.c: Ditto.
13450 * config/h8300/h8300.c: Ditto.
13451 * config/ia64/ia64.c: Ditto.
13452 * config/iq2000/iq2000.c: Ditto.
13453 * config/lm32/lm32.c: Ditto.
13454 * config/m32c/m32c.c: Ditto.
13455 * config/m32r/m32r.c: Ditto.
13456 * config/m68k/m68k.c: Ditto.
13457 * config/mcore/mcore.c: Ditto.
13458 * config/microblaze/microblaze.c: Ditto.
13459 * config/mmix/mmix.c: Ditto.
13460 * config/mn10300/mn10300.c: Ditto.
13461 * config/moxie/moxie.c: Ditto.
13462 * config/msp430/msp430.c: Ditto.
13463 * config/nios2/nios2.c: Ditto.
13464 * config/nvptx/nvptx.c: Ditto.
13465 * config/pa/pa.c: Ditto.
13466 * config/pdp11/pdp11.c: Ditto.
13467 * config/rl78/rl78.c: Ditto.
13468 * config/sparc/sparc.c: Ditto.
13469 * config/spu/spu.c: Ditto.
13470 * config/stormy16/stormy16.c: Ditto.
13471 * config/tilegx/tilegx.c: Ditto.
13472 * config/tilepro/tilepro.c: Ditto.
13473 * config/v850/v850.c: Ditto.
13474 * config/vax/vax.c: Ditto.
13475 * config/visium/visium.c: Ditto.
13476 * config/xtensa/xtensa.c: Ditto.
13478 2016-09-14 Jakub Jelinek <jakub@redhat.com>
13481 * tsan.c: Include target.h.
13482 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
13483 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
13484 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
13485 BUILT_IN_ATOMIC_TEST_AND_SET entries.
13486 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
13488 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13489 Martin Liska <mliska@suse.cz>
13491 PR middle-end/77574
13492 * predict.c (force_edge_cold): Add braces to a condition.
13494 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13496 PR rtl-optimization/77289
13497 * lra-constraints.c (get_final_hard_regno): Removed.
13498 (get_hard_regno): Add new parameter final_p.
13499 (get_reg_class): Directly call lra_get_elimination_hard_regno.
13500 (operands_match_p): Adjust call to get_hard_regno.
13501 (uses_hard_regs_p): Likewise.
13502 (process_alt_operands): Likewise.
13504 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
13507 * config/msp430/msp430.c (msp430_start_function): Emit an error
13508 if a function is both weak and specifies an interrupt number.
13510 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13512 PR tree-optimization/77454
13513 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
13514 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
13517 2016-09-13 Tamar Christina <tamar.christina@arm.com>
13519 * config/aarch64/aarch64-builtins.c
13520 (aarch64_init_simd_builtins): Fix builtin type signature printing.
13522 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
13524 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
13525 SFmode and SCmode arguments by reference.
13527 2016-09-13 David Malcolm <dmalcolm@redhat.com>
13529 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
13531 (selftest::test_one_liner_fixit_insert_before): ...this, and update
13532 for renaming of add_fixit_insert to add_fixit_insert_before.
13533 (selftest::test_one_liner_fixit_insert_after): New function.
13534 (selftest::test_one_liner_fixit_validation_adhoc_locations):
13535 Update for renaming of add_fixit_insert to add_fixit_insert_before.
13536 (selftest::test_one_liner_many_fixits): Likewise.
13537 (selftest::test_diagnostic_show_locus_one_liner): Update for
13538 renaming, call new test function.
13539 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
13540 renaming of add_fixit_insert to add_fixit_insert_before.
13541 (selftest::test_fixit_consolidation): Likewise.
13542 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
13544 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
13545 (selftest::test_applying_fixits_insert_before): ...this.
13546 (selftest::test_applying_fixits_insert): Update for renaming of
13547 add_fixit_insert to add_fixit_insert_before.
13548 (selftest::test_applying_fixits_insert_after): New function.
13549 (selftest::test_applying_fixits_insert_after_at_line_end): New
13551 (selftest::test_applying_fixits_insert_after_failure): New function.
13552 (selftest::test_applying_fixits_multiple): Update for renaming of
13553 add_fixit_insert to add_fixit_insert_before.
13554 (selftest::change_line): Likewise.
13555 (selftest::test_applying_fixits_unreadable_file): Likewise.
13556 (selftest::test_applying_fixits_line_out_of_range): Likewise.
13557 (selftest::test_applying_fixits_column_validation): Likewise.
13558 (selftest::test_applying_fixits_column_validation): Likewise.
13559 (selftest::edit_context_c_tests): Update for renamed test function;
13560 call new test functions.
13562 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
13564 PR tree-optimization/77536
13565 PR rtl-optimization/68212
13566 * config/rs6000/rs6000.md (div->recip splitter): Remove
13567 optimize_insn_for_speed_p condition.
13569 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
13571 * optabs.c (prepare_cmp_insn): Update documentation comment.
13573 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13574 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13576 PR middle-end/77475
13577 * opts.h (candidates_list_and_hint): Declare.
13578 * opts-common.c (candidates_list_and_hint): New function.
13579 (cmdline_handle_error): Use it.
13581 2016-09-12 David Malcolm <dmalcolm@redhat.com>
13583 * edit-context.c (edited_line::get_len): New accessor.
13584 (edited_file::print_diff): Split out hunk-printing into...
13585 (edited_file::print_diff_hunk): New method.
13586 (edited_file::print_diff_line): New method.
13588 2016-09-12 Andrew Pinski <apinski@cavium.com>
13590 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
13592 * config/aarch64/aarch64.c (thunderx_tunings): Enable
13593 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
13594 (aarch64_operands_ok_for_ldpstp): Return false if
13595 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
13596 was SImode and the alignment is less than 8 byte.
13597 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13599 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
13602 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
13604 2016-09-12 Marek Polacek <polacek@redhat.com>
13606 * doc/extend.texi: Use lowercase "boolean".
13607 * doc/invoke.texi: Likewise.
13608 * doc/md.texi: Likewise.
13609 * target.def: Likewise.
13610 * doc/tm.texi: Regenerated.
13612 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13614 PR middle-end/77426
13615 * expmed.c (synth_mult): Delete duplicate mode check.
13617 2016-09-10 Tom de Vries <tom@codesourcery.com>
13620 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
13622 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
13623 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
13625 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
13627 PR rtl-optimization/77289
13628 * lra-constraints.c (get_final_hard_regno): Add support for non hard
13629 register numbers. Remove support for subregs.
13630 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
13631 (get_reg_class): Delete removed get_final_hard_regno() argument.
13632 (uses_hard_regs_p): Call get_final_hard_regno().
13634 2016-09-09 Martin Sebor <msebor@redhat.com>
13638 * pretty-print.c (pp_quoted_string): New function.
13639 (pp_format): Call it for %c and %s directives.
13641 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13643 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
13644 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
13645 INITIAL_ELIMINATION_OFFSET) : Update documentation.
13646 * target.def (frame_pointer_required, can_eliminate): Likewise.
13647 * doc/tm.texi: Regenerated.
13648 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
13650 * df-scan.c (df_hard_reg_init): Likewise.
13651 * ira.c (ira_setup_eliminable_regset): Likewise.
13652 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
13653 init_elim_table): Likewise.
13654 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
13655 set_initial_elim_offsets, update_eliminables,
13656 init_elim_table): Likewise.
13657 * rtlanal.c (get_initial_register_offset): Likewise.
13658 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13659 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13660 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13661 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13662 * config/fr30/fr30.h: Fix comment.
13663 * config/frv/frv.c: Likewise.
13664 * config/frv/frv.h: Likewise.
13665 * config/ft32/ft32.h: Likewise.
13666 * config/visium/visium.h: Likewise.
13667 * config/pa/pa64-linux.h: Likewise.
13668 * config/v850/v850.h: Likewise.
13669 * config/cris/cris.c: Likewise.
13670 * config/ia64/ia64.h: Likewise.
13671 * config/moxie/moxie.h: Likewise.
13672 * config/m32r/m32r.h: Likewise.
13674 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13677 * config.in: Regenerate.
13678 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
13680 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
13681 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
13682 static-libmpxwrappers case.
13683 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
13684 MPX_LD_AS_NEEDED_GUARD_POP.
13685 * configure: Regenerate.
13686 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
13687 defined if linker support "--push-state"/"--pop-state".
13689 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13691 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
13693 2016-09-09 Joseph Myers <joseph@codesourcery.com>
13695 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
13696 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
13697 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
13698 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
13699 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
13700 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
13701 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
13703 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
13704 width macros from TS 18661-1.
13705 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
13707 2016-09-08 Jakub Jelinek <jakub@redhat.com>
13710 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
13711 OMP_CLAUSE_SAFELEN_EXPR.
13713 2016-09-07 David Malcolm <dmalcolm@redhat.com>
13715 * Makefile.in (OBJS): Add substring-locations.o.
13716 * langhooks-def.h (class substring_loc): New forward decl.
13717 (lhd_get_substring_location): New decl.
13718 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
13719 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
13720 * langhooks.c (lhd_get_substring_location): New function.
13721 * langhooks.h (class substring_loc): New forward decl.
13722 (struct lang_hooks): Add field get_substring_location.
13723 * substring-locations.c: New file, taking definition of
13724 format_warning_va and format_warning_at_substring from
13725 c-family/c-format.c, making them non-static.
13726 * substring-locations.h (class substring_loc): Move class here
13727 from c-family/c-common.h. Add and rewrite comments.
13728 (format_warning_va): New decl.
13729 (format_warning_at_substring): New decl.
13730 (get_source_location_for_substring): Add comment.
13732 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
13734 * config/i386/i386.c: Add 'U' suffix to processor feature bits
13735 to avoid -Wnarrowing warning.
13736 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
13737 * opts.c: Likewise for SANITIZER_OPT bitmasks.
13739 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
13741 * config/aarch64/aarch64.c (aarch64_legitimize_address):
13742 Avoid use of base_offset if offset already in range.
13744 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
13746 * config/sh/sh-protos.h (struct sh_atomic_model,
13747 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13748 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13749 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
13750 * config/sh/sh.h (struct sh_atomic_model,
13751 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13752 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13753 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
13754 Guard with __cplusplus.
13756 2016-09-06 Jakub Jelinek <jakub@redhat.com>
13759 * config/i386/i386.c (ix86_expand_builtin): For builtin with
13760 unsupported or unknown ISA, use expand_call.
13762 2016-09-06 Martin Liska <mliska@suse.cz>
13764 PR gcov-profile/77378
13765 PR gcov-profile/77466
13766 * tree-profile.c (tree_profiling): Detect whether target can use
13767 -fprofile-update=atomic.
13769 2016-09-06 Richard Biener <rguenther@suse.de>
13771 PR tree-optimization/77479
13772 * tree-vrp.c (update_value_range): Extend overflow handling to
13775 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13778 * config/i386/i386.md (isa): Add x64_avx512bw.
13779 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
13780 (kmov_isa): New mode attr.
13781 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
13782 (*zero_extend<mode>si2): Likewise.
13783 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
13785 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
13787 * doc/invoke.texi (SPU Options): nops -> NOPs.
13788 (x86 Options): Ditto.
13790 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13792 PR middle-end/77475
13793 * toplev.c (process_options): Temporarily set input_location
13794 to UNKNOWN_LOCATION around targetm.target_option.override () call.
13796 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
13798 PR rtl-optimization/77452
13799 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
13800 inner-mode reference to a CONST_VECTOR constant in the constant pool.
13802 2016-09-05 Marek Polacek <polacek@redhat.com>
13805 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
13807 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13810 * gensupport.c (alter_output_for_subst_insn): Remove redundant
13811 *insn_out == '*' test. Don't copy unnecessary to yet another
13812 memory buffer, and don't leak it.
13814 PR rtl-optimization/77425
13815 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
13817 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
13819 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
13821 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13823 * common.opt (fdiagnostics-generate-patch): New option.
13824 * diagnostic.c: Include "edit-context.h".
13825 (diagnostic_initialize): Initialize context->edit_context_ptr.
13826 (diagnostic_finish): Delete context->edit_context_ptr.
13827 (diagnostic_report_diagnostic): Add fix-it hints from the
13828 diagnostic to context->edit_context_ptr, if any.
13829 * diagnostic.h (class edit_context): Add forward decl.
13830 (struct diagnostic_context): Add field "edit_context_ptr".
13831 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
13832 -fdiagnostics-generate-patch.
13833 (-fdiagnostics-generate-patch): New item.
13834 * toplev.c: Include "edit-context.h".
13835 (process_options): Set global_dc->edit_context_ptr to a new
13836 edit_context if the options need one.
13837 (toplev::main): Handle -fdiagnostics-generate-patch by using
13838 global_dc->edit_context_ptr.
13840 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13843 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
13844 map and firstprivate clauses on target construct for _Atomic
13846 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
13847 on target construct for _Atomic qualified decls.
13848 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
13850 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
13851 _Atomic qualified arguments not mentioned in uniform clause.
13853 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13855 * Makefile.in (OBJS-libcommon): Add edit-context.o.
13856 * diagnostic-color.c (color_dict): Add "diff-filename",
13857 "diff-hunk", "diff-delete", and "diff-insert".
13858 (parse_gcc_colors): Update default value of GCC_COLORS in comment
13859 to reflect above changes.
13860 * doc/invoke.texi (-fdiagnostics-color): Update description of
13861 default GCC_COLORS, and of the supported capabilities.
13862 * edit-context.c: New file.
13863 * edit-context.h: New file.
13864 * input.c (struct fcache): Add field "missing_trailing_newline".
13865 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
13867 (add_file_to_cache_tab): Likewise.
13868 (fcache::fcache): Likewise.
13869 (get_next_line): Update c->missing_trailing_newline.
13870 (location_missing_trailing_newline): New function.
13871 * input.h (location_missing_trailing_newline): New decl.
13872 * selftest-run-tests.c (selftest::run_tests): Call
13873 edit_context_c_tests.
13874 * selftest.h (edit_context_c_tests): New decl.
13876 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13877 Richard Biener <rguenth@suse.de>
13879 PR tree-optimization/77444
13880 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
13881 as steptype, remove redundant initialization.
13883 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13886 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
13887 (sanopt_optimize_walker): Optimize away
13888 __asan_before_dynamic_init (...) followed by
13889 __asan_after_dynamic_init () without intervening memory loads/stores.
13890 * ipa-pure-const.c (special_builtin_state): Handle
13891 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
13892 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
13894 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13896 * cfg.c (free_original_copy_tables): Replace second assignment of
13897 bb_copy = NULL by bb_original = NULL.
13899 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13902 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
13903 assignment added in r216794.
13905 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13907 * Makefile.in (OBJS): Add typed-splay-tree.o.
13908 * selftest-run-tests.c (selftest::run_tests): Call
13909 typed_splay_tree_c_tests.
13910 * selftest.h (typed_splay_tree_c_tests): New decl.
13911 * typed-splay-tree.c: New file.
13912 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
13913 (typed_splay_tree::max): New method.
13914 (typed_splay_tree::min): New method.
13915 (typed_splay_tree::foreach): New method.
13916 (typed_splay_tree::closure): New struct.
13917 (typed_splay_tree::inner_foreach_fn): New function.
13919 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13921 * ipa-cp.c (ipcp_store_bits_results): Change option name from
13922 -fipa-cp-bit to -fipa-bit-cp.
13924 2016-09-01 Martin Sebor <msebor@redhat.com>
13926 PR tree-optimization/71831
13927 * tree-object-size.h: Return bool instead of the size and add
13928 argument for the size.
13929 * tree-object-size.c (compute_object_offset): Update signature.
13930 (addr_object_size): Same.
13931 (compute_builtin_object_size): Return bool instead of the size
13932 and add argument for the size. Handle POINTER_PLUS_EXPR when
13933 optimization is disabled.
13934 (expr_object_size): Adjust.
13935 (plus_stmt_object_size): Adjust.
13936 (pass_object_sizes::execute): Adjust.
13937 * builtins.c (fold_builtin_object_size): Adjust.
13938 * doc/extend.texi (Object Size Checking): Update.
13939 * ubsan.c (instrument_object_size): Adjust.
13941 2016-09-01 Martin Sebor <msebor@redhat.com>
13943 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
13944 it fits the output of the formatted function regardless of its
13946 * genmodes.c (parser::parse_expr): Same.
13947 * gimplify.c (gimplify_asm_expr): Same.
13948 * passes.c (pass_manager::register_one_dump_file): Same.
13949 * print-tree.c (print_node): Same.
13951 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13953 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
13955 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13957 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
13959 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13961 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
13962 * config/rs6000/vector.md: Ditto.
13963 * config/rs6000/vsx.md: Ditto.
13965 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13967 * ipa-inline-analysis.c (param_change_prob): Get to the base object
13968 first in all cases.
13970 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13972 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
13973 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
13974 *return_and_restore_gpregs_<mode>_r11,
13975 *return_and_restore_gpregs_<mode>_r12,
13976 *return_and_restore_gpregs_<mode>_r1,
13977 *return_and_restore_fpregs_<mode>_r11,
13978 *return_and_restore_fpregs_<mode>_r12,
13979 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
13980 directly instead of via the "l" constraint. Renumber operands.
13983 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13985 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
13986 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
13987 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
13988 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
13989 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
13990 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
13991 *call_value_nonlocal_darwin64, reload_macho_picbase,
13992 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
13993 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
13994 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
13995 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
13996 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
13997 *save_fpregs_<mode>_r1): Ditto.
13998 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
13999 *return_and_restore_gpregs_spe): Ditto.
14001 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
14003 * config/rs6000/rs6000.md
14004 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
14005 the use of the link register.
14006 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
14008 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14009 Michael Meissner <meissner@linux.vnet.ibm.com>
14012 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
14013 reg+reg addressing for TImode.
14014 (rs6000_legitimate_address_p): Only allow register indirect
14015 addressing for TImode, even without TARGET_QUAD_MEMORY.
14017 2016-09-01 Richard Biener <rguenther@suse.de>
14019 PR middle-end/77436
14020 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
14021 check whether the result fits the desired result type.
14023 2016-09-01 Nathan Sidwell <nathan@acm.org>
14025 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
14027 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
14029 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
14031 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
14033 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14035 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
14036 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
14037 for comparisons of integer ZERO_EXTEND against zero.
14039 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
14041 * config/i386/i386.c (ix86_option_override_internal): Also disable the
14042 STV pass if -mstackrealign is enabled.
14044 2016-08-31 Ilya Verbin <iverbin@gmail.com>
14046 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
14049 2016-08-31 David Malcolm <dmalcolm@redhat.com>
14051 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
14052 (layout_range::intersects_line_p): New method.
14053 (test_range_contains_point_for_single_point): Rename to...
14054 (test_layout_range_for_single_point): ...this, and add testing
14055 for layout_range::intersects_line_p.
14056 (test_range_contains_point_for_single_line): Rename to...
14057 (test_layout_range_for_single_line): ...this, and add testing
14058 for layout_range::intersects_line_p.
14059 (test_range_contains_point_for_multiple_lines): Rename to...
14060 (test_layout_range_for_multiple_lines): ...this, and add testing
14061 for layout_range::intersects_line_p.
14062 (layout::layout): Populate m_fixit_hints.
14063 (layout::get_expanded_location): Handle the case of a line-span
14065 (layout::validate_fixit_hint_p): New method.
14066 (get_line_span_for_fixit_hint): New function.
14067 (layout::calculate_line_spans): Add spans for fixit-hints.
14068 (layout::should_print_annotation_line_p): New method.
14069 (layout::print_any_fixits): Drop param "richloc", instead using
14070 validated fixits in m_fixit_hints. Add "const" to hint pointers.
14071 (diagnostic_show_locus): Avoid printing blank annotation lines.
14072 (selftest::test_diagnostic_context::test_diagnostic_context):
14073 Initialize show_column and start_span.
14074 (selftest::test_diagnostic_context::start_span_cb): New static
14076 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
14077 (selftest::diagnostic_show_locus_c_tests): Update for function
14078 renamings. Call test_diagnostic_show_locus_fixit_lines.
14080 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
14082 PR tree-optimization/73714
14083 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
14085 2016-08-31 David Malcolm <dmalcolm@redhat.com>
14087 * selftest.c: Move "namespace selftest {" to top of file,
14088 removing explicit "selftest::" qualifiers throughout.
14090 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
14092 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
14094 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
14095 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
14096 Replace builtin with vector extension.
14097 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
14099 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
14100 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
14101 Replace builtin with vector extension.
14102 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
14103 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
14104 Replace builtin with vector extension.
14105 * config/i386/xmmintrin.h (__m128_u): New type.
14106 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
14107 (_mm_load_ps, _mm_store_ps): Simplify.
14109 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
14111 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
14113 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14115 * diagnostic-show-locus.c (colorizer::begin_state): Support more
14116 than 3 ranges per diagnostic by alternating between color 1 and
14118 (layout::layout): Replace use of rich_location::MAX_RANGES
14119 with richloc->get_num_locations ().
14120 (layout::calculate_line_spans): Replace use of
14121 rich_location::MAX_RANGES with m_layout_ranges.length ().
14122 (layout::print_annotation_line): Handle arbitrary numbers of
14123 ranges in caret-printing by defaulting to '^'.
14124 (selftest::test_one_liner_many_fixits): New function.
14125 (test_diagnostic_show_locus_one_liner): Call it.
14126 * diagnostic.c (diagnostic_initialize): Update for renaming
14127 of rich_location::MAX_RANGES to
14128 rich_location::STATICALLY_ALLOCATED_RANGES.
14129 * diagnostic.h (struct diagnostic_context): Likewise.
14131 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14133 * selftest.c (selftest::named_temp_file::named_temp_file): New
14135 (selftest::temp_source_file::~temp_source_file): Move to...
14136 (selftest::named_temp_file::~named_temp_file): ...here.
14137 (selftest::test_named_temp_file): New function.
14138 (selftest::selftest_c_tests): Call test_named_temp_file.
14139 * selftest.h (class named_temp_file): New class.
14140 (class temp_source_file): Convert to a subclass of named_temp_file.
14142 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
14144 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
14145 USEs of LR_REGNO in returns and sibcalls.
14146 (rs6000_output_mi_thunk): Similar.
14147 (rs6000_sibcall_aix): Similar.
14148 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
14149 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
14150 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
14151 Remove the USE of LR_REGNO from the patterns as well. Delete an
14153 (return_internal_<mode>): Delete.
14155 2016-08-30 Tamar Christina <tamar.christina@arm.com>
14157 * config/aarch64/aarch64-simd.md
14158 (aarch64_ld2<mode>_dreg_le): New.
14159 (aarch64_ld2<mode>_dreg_be): New.
14160 (aarch64_ld2<mode>_dreg): Removed.
14161 (aarch64_ld3<mode>_dreg_le): New.
14162 (aarch64_ld3<mode>_dreg_be): New.
14163 (aarch64_ld3<mode>_dreg): Removed.
14164 (aarch64_ld4<mode>_dreg_le): New.
14165 (aarch64_ld4<mode>_dreg_be): New.
14166 (aarch64_ld4<mode>_dreg): Removed.
14167 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
14169 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14171 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
14172 redundant location param.
14173 (test_one_liner_fixit_remove): Likewise.
14174 (test_one_liner_fixit_replace): Likewise.
14175 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
14176 * gcc-rich-location.c
14177 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
14178 get_range_from_loc. Drop overload taking a const char *.
14179 * gcc-rich-location.h
14180 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
14183 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
14185 * config/linux.c (linux_libc_has_function): Return true on musl.
14187 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
14189 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
14191 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
14193 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
14194 used for abnormal egdes.
14196 2016-08-30 Jakub Jelinek <jakub@redhat.com>
14198 PR tree-optimization/72866
14199 * tree-vect-patterns.c (search_type_for_mask): Turn into
14200 a small wrapper, move all code to ...
14201 (search_type_for_mask_1): ... this new function. Add caching
14202 and adjust recursive calls.
14205 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
14206 instead of lookup_type_die (type_main_variant (type)) even for array
14209 PR middle-end/77377
14210 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
14211 constant pool reference return x instead of c.
14213 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
14215 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
14218 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14221 (selftest::test_make_location_nonpure_range_endpoints): Fix
14224 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14226 * diagnostic-show-locus.c
14227 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
14229 (selftest::test_diagnostic_show_locus_one_liner): Call it.
14230 * input.c (get_pure_location): Move to libcpp/line-map.c.
14231 * input.h (get_pure_location): Convert decl to an inline function
14232 calling implementation in libcpp.
14234 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
14237 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
14238 template for intel asm dialect.
14239 (vec_set_hi_<mode><mask_name>): Ditto.
14241 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14243 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
14244 (selftest::fail_formatted): Likewise.
14246 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14248 * input.c (make_location): Call get_start and get_finish
14249 on the endpoints to avoid storing packed ranges or ad-hoc
14251 (selftest::test_make_location_nonpure_range_endpoints): New function.
14252 (selftest::input_c_tests): Call it.
14253 * input.h (get_start): New inline function.
14255 2016-08-29 Tom de Vries <tom@codesourcery.com>
14258 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
14261 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
14263 * Makefile.in (gcov-iov.h): Add dummy recipe.
14265 2016-08-29 Nathan Sidwell <nathan@acm.org>
14267 * config/nvptx/nvptx.c: #include tree-vrp.h.
14269 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
14272 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
14273 HIGH+LO construct during reload.
14275 2016-08-28 Tom de Vries <tom@codesourcery.com>
14278 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
14279 'sysv_abi va_list' attribute.
14280 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
14281 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
14284 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14286 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
14287 * emit-rtl.c (unshare_all_rtl_1): Adjust.
14288 (unshare_all_rtl_again): Likewise.
14289 * function.c (assign_stack_local_1): Likewise.
14290 (assign_stack_temp_for_type): Likewise.
14292 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14294 * cfgbuild.c (make_edges): Adjust.
14295 * cfgrtl.c (can_delete_label_p): Likewise.
14296 * dwarf2cfi.c (create_trace_edges): Likewise.
14297 * except.c (sjlj_emit_dispatch_table): Likewise.
14298 * function.h (struct expr_status): make x_forced_labels a vector.
14299 * jump.c (rebuild_jump_labels_1): Adjust.
14300 * reload1.c (set_initial_label_offsets): Likewise.
14301 * stmt.c (force_label_rtx): Likewise.
14302 (expand_label): Likewise.
14304 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14306 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
14308 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
14310 PR tree-optimization/71077
14311 PR tree-optimization/68542
14312 * fold-const.c (fold_relational_const): Fix folding of
14313 VECTOR_CST comparisons that have a scalar boolean result type.
14314 (selftest::test_vector_folding): New static function.
14315 (selftest::fold_const_c_tests): Call it.
14317 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
14319 * doc/extend.texi (SPU Built-in Functions): Remove stale
14320 references to material formerly at IBM and Sony.
14322 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
14325 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
14327 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14329 * diagnostic-show-locus.c
14330 (selftest::test_fixit_consolidation): New function.
14331 (selftest::diagnostic_show_locus_c_tests): Call it.
14332 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
14333 constructor based on source_range.
14335 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14337 * diagnostic-color.c (color_dict): Add "fixit-insert" and
14339 (parse_gcc_colors): Update description of default GCC_COLORS.
14340 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
14341 (colorizer::set_fixit_insert): New method.
14342 (colorizer::set_fixit_delete): New method.
14343 (colorizer::get_color_by_name): New method.
14344 (colorizer::STATE_FIXIT_INSERT): New constant.
14345 (colorizer::STATE_FIXIT_DELETE): New constant.
14346 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
14347 fields in favor of new field "m_stop_color". Add fields
14348 "m_fixit_insert" and "m_fixit_delete".
14349 (colorizer::colorizer): Update for above changes. Replace
14350 colorize_start calls with calls to get_color_by_name.
14351 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
14352 STATE_FIXIT_DELETE. Update for field renamings.
14353 (colorizer::finish_state): Simplify by using m_stop_color,
14354 rather than multiple identical "*_ce" fields.
14355 (colorizer::get_color_by_name): New method.
14356 (layout::print_any_fixits): Print insertions and replacements
14357 using the "fixit-insert" color, and deletions using the
14358 "fixit-delete" color.
14359 * doc/invoke.texi (-fdiagnostics-color): Update description of
14360 default GCC_COLORS, and of the supported capabilities.
14362 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
14364 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
14365 current_function_static_stack_size variable with the static
14366 stack frame size of the current function when
14367 flag_stack_usage_info is enabled.
14369 2016-08-26 Nathan Sidwell <nathan@acm.org>
14371 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
14372 assignment inside if condition.
14374 2016-08-26 Richard Biener <rguenther@suse.de>
14376 PR tree-optimization/69047
14377 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
14378 extracts similar to what FRE does.
14379 (non_rewritable_mem_ref_base): Likewise.
14381 2016-08-26 Joseph Myers <joseph@codesourcery.com>
14383 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
14384 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
14385 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14386 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14387 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
14389 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14390 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14391 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14392 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
14393 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14395 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14398 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
14399 reservation duration to 15 cycles.
14400 (cortex_a8_vfp_macs): Likewise.
14401 (cortex_a8_vfp_macd): Likewise.
14402 (cortex_a8_vfp_divs): Likewise.
14403 (cortex_a8_vfp_divd): Likewise.
14405 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14407 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
14408 (aarch_macro_fusion_pair_p): Use above to avoid early return.
14410 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14411 Martin Jambhor <mjambor@suse.cz>
14413 * common.opt: New option -fipa-bit-cp.
14414 * doc/invoke.texi: Document -fipa-bit-cp.
14415 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
14416 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
14417 * tree-ssa-ccp.h: New header file.
14418 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
14419 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
14420 Replace all occurences of tree parameter by two new params: signop, int.
14421 (bit_value_unop_1): Change to bit_value_unop and export it.
14422 Replace all occurences of tree parameter by two new params: signop,
14424 (bit_value_binop): Change call from bit_value_binop_1 to
14426 (bit_value_assume_aligned): Likewise.
14427 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
14428 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
14430 (ccp_finalize): Skip processing if val->mask == 0.
14431 * ipa-cp.c: Include tree-ssa-ccp.h
14432 (ipcp_bits_lattice): New class.
14433 (ipcp_param_lattice (bits_lattice): New member.
14434 (print_all_lattices): Call ipcp_bits_lattice::print.
14435 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
14436 (initialize_node_lattices): Likewise.
14437 (propagate_bits_accross_jump_function): New function.
14438 (propagate_constants_accross_call): Call
14439 propagate_bits_accross_jump_function.
14440 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
14441 (ipcp_store_bits_results): New function.
14442 (ipcp_driver): Call ipcp_store_bits_results.
14443 * ipa-prop.h (ipa_bits): New struct.
14444 (ipa_jump_func): Add new member bits of type ipa_bits.
14445 (ipa_param_descriptor): Change decl to decl_or_type.
14446 (ipa_get_param): Change decl to decl_or_type and assert on
14448 (ipa_get_type): New function.
14449 (ipcp_transformation_summary): New member bits.
14450 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
14451 (ipa_populate_param_decls): Likewise.
14452 (ipa_dump_param): Likewise.
14453 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
14455 (ipa_set_jf_unknown): Set ipa_bits::known to false.
14456 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
14458 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
14459 (ipa_write_jump_function): Add streaming for ipa_bits.
14460 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
14461 (write_ipcp_transformation_info): Add streaming for ipa_bits
14462 summary for ltrans.
14463 (read_ipcp_transfomration_info): Add support for reading streamed
14465 (ipcp_update_bits): New function.
14466 (ipcp_transform_function): Call ipcp_update_bits.
14468 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
14470 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
14471 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
14473 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
14475 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
14477 2016-08-25 Richard Biener <rguenther@suse.de>
14479 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
14480 Only add locations in late dwarf.
14481 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
14482 (dwarf2out_early_finish): But do it here.
14484 2016-08-24 Michael Collison <michael.collison@linaro.org>
14485 Michael Collison <michael.collison@arm.com>
14487 * config/arm/arm-modes.def: Add new condition code mode CC_V
14488 to represent the overflow bit.
14489 * config/arm/arm.c (maybe_get_arm_condition_code):
14490 Add support for CC_Vmode.
14491 (arm_gen_unlikely_cbranch): New function to generate common
14492 rtl conditional branches for overflow patterns.
14493 * config/arm/arm-protos.h: Add prototype for
14494 arm_gen_unlikely_cbranch.
14495 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
14496 addsi3_compareV_upper): New patterns to support signed
14497 builtin overflow add operations.
14498 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
14499 New patterns to support unsigned builtin add overflow operations.
14500 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
14501 builtin overflow subtract operations,
14502 (usubv<mode>4): New patterns to support unsigned builtin subtract
14503 overflow operations.
14504 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
14505 to support builtin overflow negate operations.
14507 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14510 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14512 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14513 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14516 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14518 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
14519 MULTILIB_OPTIONS should be used. Small wording fixes.
14520 * genmultilib: Memorize set of all option combinations in
14521 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
14522 found in MULTILIB_OPTIONS by checking if option set is listed in
14523 combination_space. Output new and existing error message to stderr.
14525 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14527 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
14528 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
14529 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
14530 (MULTILIB_REUSE): Remove reuse rules for option set including
14531 -mfpu=fp-armv8 and -mfpu=vfpv4
14533 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
14535 * config/arm/t-rtems: Add vfp multilib.
14537 2016-08-23 Ian Lance Taylor <iant@golang.org>
14539 * config/s390/s390.c (s390_asm_file_start): Call
14540 default_file_start.
14542 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14544 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
14545 initialization of all 0's to the 0 constant, instead of directly
14546 generating XOR. Add support for V4SImode vector initialization on
14547 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
14548 initialization. Change variables used in V4SFmode vector
14549 intialization. For V4SFmode vector splat on ISA 3.0, make sure
14550 any memory addresses are in index form. Add support for using
14551 VSPLTH/VSPLTB to initialize vector short and vector char vectors
14552 with all of the same element.
14553 (regno_or_subregno): New helper function to return a register
14554 number for either REG or SUBREG.
14555 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
14556 Use regno_or_subregno where possible.
14557 (rs6000_split_v4si_init_di_reg): New helper function to build up a
14558 DImode value from two SImode values in order to generate V4SImode
14559 vector initialization on 64-bit systems with direct move.
14560 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
14562 (rtx_is_swappable_p): V4SImode vector initialization insn is not
14564 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
14566 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
14567 attributes to initialize V8HImode and V16QImode vectors with the
14569 (VSX_SPLAT_COUNT): Likewise.
14570 (VSX_SPLAT_SUFFIX): Likewise.
14571 (UNSPEC_VSX_VEC_INIT): New unspec.
14572 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
14573 Allow SFmode values to come from Altivec registers.
14574 (vsx_init_v4si): New insn/split for V4SImode vector initialization
14575 on 64-bit systems with direct move.
14576 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
14577 vector initializations, to allow V4SImode vector initializations
14578 on 64-bit systems with direct move.
14579 (vsx_splat_v4si): Likewise.
14580 (vsx_splat_v4si_di): Likewise.
14581 (vsx_splat_v4sf): Likewise.
14582 (vsx_splat_v4sf_internal): Likewise.
14583 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
14585 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
14586 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
14587 initializing V8HImode and V16QImode vectors with the same
14589 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
14590 optimization if -maltivec=be.
14592 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
14594 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
14595 attribute for alternatives 3 and 4.
14597 2016-08-23 David Malcolm <dmalcolm@redhat.com>
14599 * selftest.c (selftest::assert_str_contains): New function.
14600 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
14601 * selftest.h (selftest::assert_str_contains): New decl.
14602 (ASSERT_STR_CONTAINS): New macro.
14604 2016-08-23 Richard Biener <rguenther@suse.de>
14606 PR tree-optimization/77286
14607 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
14609 (vect_transform_loop): Split exit edges of loop and scalar
14610 loop if required and at the appropriate time.
14612 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14614 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14615 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14617 Correct a typo in a comment.
14619 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14621 * config/s390/s390.md ("*andc_split"): New splitter for and with
14624 2016-08-23 Richard Biener <rguenther@suse.de>
14626 PR tree-optimization/27336
14627 * tree-vrp.c (infer_value_range): Handle stmts that can throw
14628 by looking for a non-EH edge.
14629 (process_assert_insertions_for): Likewise.
14631 2016-08-23 Richard Biener <rguenther@suse.de>
14633 PR middle-end/77305
14634 * statistics.c (statistics_counter_event): Robustify against
14637 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14639 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
14640 for targets amdfam10 and barcelona.
14642 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
14644 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
14645 (zero_extend<mode>di2): Ditto.
14646 (*zero_extend<mode>si2): Ditto.
14647 (*zero_extendqihi2): Ditto.
14649 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14651 PR middle-end/77269
14652 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
14653 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
14655 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
14657 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
14658 identical consecutive elements.
14659 [SSA_NAME]: Print the name's def stmt on its own line. When printing
14660 the node's def stmt, avoid printing an unwanted trailing newline by
14661 replacing the call to print_gimple_stmt() with its inlined body and
14662 adjusting it to not set pp_needs_newline and to call pp_flush()
14663 instead of pp_newline_and_flush().
14665 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14667 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
14668 (float32_type_node, float64_type_node, float32x_type_node)
14669 (float128x_type_node): New macros.
14670 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
14671 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
14672 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
14673 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
14674 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
14675 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
14676 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
14677 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
14678 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
14679 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
14680 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
14681 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
14682 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
14683 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
14684 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
14685 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
14686 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
14687 (copysign, fabs, huge_val, inf, nan, nans): Use it.
14688 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
14690 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
14691 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
14692 * doc/extend.texi (Other Builtins): Document these built-in
14694 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
14697 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
14699 * doc/install.texi (Binaries): www.opencsw.org now uses https.
14701 2016-08-22 Richard Biener <rguenther@suse.de>
14703 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
14705 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
14708 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
14709 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
14710 non-SSE2 athlons only, otherwise prefer SSE prefetches.
14712 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14714 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
14715 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
14716 (vrp_visit_switch_stmt): Likewise.
14717 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
14718 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
14719 (vrp_visit_stmt): Use extract_range_from_stmt.
14720 (vrp_visit_phi_node): Use extract_range_from_phi_node.
14722 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14724 * Makefile.in: Add tree-vrp.h to GTFILES.
14725 * gengtype.c (open_base_files): Add tree-vrp.h.
14726 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
14727 * builtins.c: Likewise.
14728 * fold-const.c: Likewise.
14729 * gimple-builder.c: Likewise.
14730 * gimple-laddress.c: Likewise.
14731 * hsa-gen.c: Likewise.
14732 * internal-fn.c: Likewise.
14734 * targhooks.c: Liewise,
14735 * tree-ssa-address.c: Likewise.
14736 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
14737 * tree-vrp.c (struct value_range): Move to tree-vrp.h
14738 * tree-vrp.h: New file.
14740 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14742 PR tree-optimization/61839
14743 * tree-vrp.c (two_valued_val_range_p): New.
14744 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
14745 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
14746 Also Convert VAR BINOP CST where VAR is two-valued to
14747 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
14749 2016-08-19 David Malcolm <dmalcolm@redhat.com>
14751 * diagnostic-show-locus.c
14752 (layout::annotation_line_showed_range_p): New method.
14753 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
14754 Reimplement case fixit_hint::REPLACE to cover removals, and
14755 replacements where the range of the replacement isn't one
14756 of the ranges in the rich_location.
14757 (test_one_liner_fixit_replace): Likewise.
14758 (selftest::test_one_liner_fixit_replace_non_equal_range): New
14760 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
14762 (selftest::test_diagnostic_show_locus_one_liner): Call the new
14764 * diagnostic.c (print_parseable_fixits): Remove case
14765 fixit_hint::REMOVE.
14767 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
14770 * config/i386/i386.c (ix86_option_override_internal): Remove
14771 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
14772 Enable SSE prefetch also for TARGET_PREFETCHWT1.
14773 Do not try to enable TARGET_PRFCHW ISA flag here.
14774 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
14775 Rewrite expander function body.
14776 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
14778 2016-08-19 Joseph Myers <joseph@codesourcery.com>
14781 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
14782 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
14783 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
14784 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
14785 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
14786 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
14787 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
14788 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
14789 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
14791 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
14793 (struct floatn_type_info): New structure type.
14794 (floatn_nx_types): New variable declaration.
14795 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
14796 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
14797 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
14798 * tree.c (floatn_nx_types): New variable.
14799 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
14800 corresponding complex types.
14801 * target.def (floatn_mode): New hook.
14802 * targhooks.c: Include "real.h".
14803 (default_floatn_mode): New function.
14804 * targhooks.h (default_floatn_mode): New prototype.
14805 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
14807 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
14808 effective-target and dg-add-options keywords.
14809 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
14810 Document new effective-target keywords.
14811 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
14812 * doc/tm.texi: Regenerate.
14813 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
14814 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
14815 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
14817 * real.h (struct real_format): Add field ieee_bits.
14818 * real.c (ieee_single_format, mips_single_format)
14819 (motorola_single_format, spu_single_format, ieee_double_format)
14820 (mips_double_format, motorola_double_format)
14821 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
14822 (ieee_extended_intel_128_format)
14823 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
14824 (mips_extended_format, ieee_quad_format, mips_quad_format)
14825 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
14826 (decimal_double_format, decimal_quad_format, ieee_half_format)
14827 (arm_half_format, real_internal_format: Initialize ieee_bits
14829 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
14830 float128_type_node. Set float80_type_node to float64x_type_node
14831 if appropriate and long_double_type_node not appropriate.
14832 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
14833 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
14834 Initialize ieee_bits field.
14835 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
14836 (rs6000_init_builtins): Set ieee128_float_type_node to
14837 float128_type_node.
14838 (rs6000_floatn_mode): New function.
14840 2016-08-19 Jakub Jelinek <jakub@redhat.com>
14842 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
14843 _rdseed64_step): Uglify argument names and/or local variable names
14844 in inline functions.
14845 * config/i386/rtmintrin.h (_xabort): Likewise.
14846 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
14847 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
14848 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
14849 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
14850 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
14851 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
14852 _mm_maskz_ternarylogic_epi32): Likewise.
14853 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
14854 __lwpins32, __lwpins64): Likewise.
14855 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
14856 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
14857 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
14858 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
14859 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
14860 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
14861 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
14862 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
14863 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
14864 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
14865 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
14866 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
14867 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
14868 _mm256_mask_i64gather_epi32): Likewise.
14869 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14870 * config/i386/ia32intrin.h (__writeeflags): Likewise.
14871 * config/i386/pkuintrin.h (_wrpkru): Likewise.
14872 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
14873 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
14874 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
14875 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
14876 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
14877 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
14878 _mm512_mask_prefetch_i64scatter_ps): Likewise.
14879 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14880 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
14881 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
14882 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
14883 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
14884 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
14885 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
14886 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
14888 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
14890 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
14891 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
14893 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
14894 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
14896 (_rdpkru_u32): Add space after function name.
14898 * config/i386/t-i386 (i386-c.o): Don't depend on
14899 i386-builtin-types.inc.
14900 (i386.o): Depend on i386-builtin-types.inc.
14902 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
14905 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
14906 Use const_vec_duplicate to check for duplicated elements.
14908 2016-08-19 Richard Biener <rguenther@suse.de>
14910 PR tree-optimization/77290
14911 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14912 Fix flag_tree_parallelize_loops check.
14914 2016-08-19 Richard Biener <rguenther@suse.de>
14916 * match.pd (x | 0 -> x): Add.
14918 2016-08-19 Richard Biener <rguenther@suse.de>
14920 PR tree-optimization/77286
14921 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
14922 Deal with virtual PHIs being out-of-order.
14924 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14926 * doc/invoke.texi (fverbose-asm): Note that source code lines
14927 are emitted, and provide an example.
14928 * final.c (asm_show_source): New function.
14929 (final_scan_insn): Call asm_show_source.
14931 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14933 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
14934 param with diagnostic_kind.
14935 (class colorizer): Similarly replace field m_diagnostic with
14937 (colorizer::colorizer): Replace diagnostic
14938 param with diagnostic_kind.
14939 (colorizer::begin_state): Update for above field change.
14940 (layout::layout): Replace diagnostic param with rich_location *
14941 and diagnostic_kind.
14942 (diagnostic_show_locus): Replace diagnostic param with richloc
14943 and diagnostic_kind.
14944 (class selftest::test_diagnostic_context): New class.
14945 (selftest::test_diagnostic_show_locus_unknown_location): New
14947 (selftest::test_one_liner_simple_caret): New function.
14948 (selftest::test_one_liner_caret_and_range): New function.
14949 (selftest::test_one_liner_multiple_carets_and_ranges): New
14951 (selftest::test_one_liner_fixit_remove): New function.
14952 (selftest::test_one_liner_fixit_replace): New function.
14953 (selftest::test_diagnostic_show_locus_one_liner): New function.
14954 (selftest::diagnostic_show_locus_c_tests): Call the new test
14956 * diagnostic.c (diagnostic_initialize): Initialize
14957 colorize_source_p, show_ruler_p and parseable_fixits_p.
14958 (default_diagnostic_finalizer): Update for change to
14959 diagnostic_show_locus.
14960 (diagnostic_append_note): Likewise.
14961 * diagnostic.h (diagnostic_show_locus): Replace
14962 const diagnostic_info * param with location * and diagnostic_t.
14964 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14966 * input.c (saved_line_table): New global.
14967 (class selftest::temp_line_table): Rename to line_table_test and
14968 move declaration to selftest.h, and drop field m_old_line_table.
14969 (selftest::temp_line_table::temp_line_table): Rename ctor to...
14970 (selftest::line_table_test::line_table_test): ...this. Add a
14971 default ctor. Store current value of line_table within
14973 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
14974 (selftest::line_table_test::~line_table_test): ...this, and
14975 restore line_table from the saved_line_table, rather than
14977 (selftest::test_accessing_ordinary_linemaps): Update for above
14979 (selftest::test_lexer): Likewise.
14980 (struct selftest::lexer_test): Likewise.
14981 (selftest::lexer_test::lexer_test): Likewise.
14982 (selftest::input_c_tests): Move the looping over test cases from
14984 (selftest::for_each_line_table_case): New function.
14985 * input.h (saved_line_table): New decl.
14986 * selftest.h (struct selftest::line_table_case): New forward decl.
14987 (class selftest::line_table_test): New class, moved here from
14988 selftest::temp_line_table in input.c, and renamed.
14989 (selftest::for_each_line_table_case): New decl.
14991 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
14994 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
14996 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
14998 PR middle-end/70895
14999 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
15000 enclosing parallel construct for reduction variables on OpenACC loop
15003 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
15005 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
15006 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
15008 (function_to_dwarf_procedure): Update comment.
15010 2016-08-18 David Malcolm <dmalcolm@redhat.com>
15012 * input.c (diagnostics_file_cache_forcibly_evict_file): New
15014 * input.h (diagnostics_file_cache_forcibly_evict_file): New
15016 * selftest.c (selftest::temp_source_file::~temp_source_file):
15017 Evict m_filename from the diagnostic file cache.
15019 2016-08-18 Richard Biener <rguenther@suse.de>
15021 * tree-pass.h (make_pass_materialize_all_clones): Declare.
15022 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
15023 make_pass_materialize_all_clones): New simple IPA pass encapsulating
15024 clone materialization.
15025 * passes.def (all_late_ipa_passes): Start with
15026 pass_materialize_all_clones.
15027 * cgraphunit.c (symbol_table::compile): Remove call to
15028 materialize_all_clones.
15029 * tree-into-ssa.c: Include statistics.h.
15030 (update_ssa): Count number of times we do incremental/rewrite
15033 2016-08-18 Richard Biener <rguenther@suse.de>
15035 PR tree-optimization/77282
15036 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15037 When doing auto-parallelizing also prevent use of PHIs that
15038 carry dependences across loop backedges.
15040 2016-08-18 Tamar Christina <tamar.christina@arm.com>
15041 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15043 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
15045 2016-08-18 Richard Biener <rguenther@suse.de>
15047 * ssa-iterators.h (ssa_vuse_operand): New inline.
15048 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
15049 (predicate_all_scalar_phis): Use remove_phi_node to remove
15050 phi nodes predicated. Delay removing virtual PHIs.
15051 (predicate_mem_writes): Update virtual operands.
15052 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
15053 (tree_if_conversion): Do not rewrite virtual SSA form.
15054 * tree-phinodes.c (release_phi_node): Make static.
15055 * tree-phinodes.h (release_phi_node): Remove.
15057 2016-08-18 Jakub Jelinek <jakub@redhat.com>
15059 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
15060 codes that appear in bdesc_* arrays, instead include i386-builtin.def
15061 twice to define those.
15062 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
15063 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
15064 bdesc_multi_arg): Define by including i386-builtin.def the third time.
15065 * config/i386/i386-builtin.def: New file.
15067 2016-08-17 David Malcolm <dmalcolm@redhat.com>
15069 * input.c (get_source_range_for_char): Rename to...
15070 (selftest::get_source_range_for_char): ...this, and move within
15071 the #if CHECKING_P guard.
15072 (get_num_source_ranges_for_substring): Rename to...
15073 (selftest::get_num_source_ranges_for_substring): ...this, move
15074 within the #if CHECKING_P guard, and make static.
15075 (selftest::assert_num_substring_ranges): Initialize
15078 2016-08-18 Alan Modra <amodra@gmail.com>
15080 PR rtl-optimization/72771
15081 * reload.c (find_reloads): Don't assume that a subreg mem is OK
15082 when find_reloads_toplev returns address_reloaded==-1.
15083 (alternative_allows_const_pool_ref): Update comment.
15085 2015-08-17 Alan Hayward <alan.hayward@arm.com>
15087 PR tree-optimization/71752
15088 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
15089 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
15091 2016-08-17 Jakub Jelinek <jakub@redhat.com>
15093 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
15094 instead of testing ECF_NORETURN bit in gimple_call_flags.
15095 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
15096 * predict.c (tree_bb_level_predictions): Likewise.
15097 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
15099 PR middle-end/77259
15100 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
15101 turning a call into __builtin_unreachable-like noreturn call, adjust
15102 gimple_call_set_fntype.
15103 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
15104 gimple_call_fntype has void return type.
15106 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
15108 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
15109 maybe_lookup_decl, to handle nested acc loop directives.
15111 2016-08-17 Richard Biener <rguenther@suse.de>
15113 PR tree-optimization/76490
15114 * tree-vrp.c (update_value_range): Preserve overflow infinities
15115 when intersecting with ranges from get_range_info.
15116 (operand_less_p): Handle overflow infinities correctly.
15117 (value_range_constant_singleton): Use vrp_operand_equal_p
15118 to handle overflow max/min correctly.
15119 (vrp_valueize): Likewise.
15120 (union_ranges): Likewise.
15121 (intersect_ranges): Likewise.
15122 (vrp_visit_phi_node): Improve iteration limitation to only
15123 apply when we'll possibly re-visit the PHI via a changed argument
15126 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
15128 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
15129 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
15130 rather than those that should not be built.
15132 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
15135 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
15137 2016-08-17 Richard Biener <rguenther@suse.de>
15139 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
15140 (verify_vssa): New function verifying virtual SSA form.
15141 (verify_ssa): Call it.
15142 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
15143 Do not apply loop-closed SSA handling to virtuals.
15144 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
15145 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
15146 when rewriting their symbol.
15147 (prepare_def_site_for): Likewise.
15148 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
15149 operands of moved stmts.
15151 2016-08-17 Richard Biener <rguenther@suse.de>
15153 PR tree-optimization/23855
15154 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
15155 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
15156 find guards to hoist. Do not update SSA form but rewrite virtuals
15157 into loop closed SSA.
15158 (find_loop_guard): Adjust to skip already hoisted guards. Do
15159 not mark virtuals for renaming or update SSA form.
15161 2016-08-17 Martin Liska <mliska@suse.cz>
15163 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
15164 a LONG_LONG_TYPE_SIZE comparison.
15165 * gcov-io.h: Remove macro definitions.
15166 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
15167 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
15170 2016-08-16 Jakub Jelinek <jakub@redhat.com>
15172 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
15173 that builtins not mentioned in bdesc_* arrays come first, then
15174 the ones mentioned in bdesc_* arrays in the order they appear in
15175 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
15176 IX86_BUILTIN__BDESC_*_LAST enumerator.
15177 (bdesc_mpx): Fix up a comment typo.
15178 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
15179 __builtin_ia32_vpcomneu[bwdq] builtins.
15180 (BDESC_VERIFY, BDESC_VERIFYS): Define.
15181 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
15182 enum ix86_builtins ordering.
15183 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
15184 for direct bdesc_* array member access instead of searching all the
15185 arrays until an fcode match is found.
15187 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
15189 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
15190 pattern as define_insn_and_split. Split insn before reload to
15192 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
15193 <shift_insn><mode>3_1.
15194 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
15195 <rotate_insn><mode>3_1.
15197 2016-08-16 David Malcolm <dmalcolm@redhat.com>
15200 * input.c (get_source_range_for_substring): Rename to...
15201 (get_source_location_for_substring): ...this, adding param
15202 "caret_idx", and converting output param from source_range * to
15204 (get_source_range_for_char): New function.
15205 (get_num_source_ranges_for_substring): Update comment to reflect
15207 (assert_char_at_range): Update to use get_source_range_for_char
15208 rather than get_source_range_for_substring.
15209 (test_lexer_string_locations_concatenation_2): Likewise.
15210 * substring-locations.h (get_source_range_for_substring): Rename
15212 (get_source_location_for_substring): ...this, and adding param
15213 "caret_idx", and converting output param from source_range * to
15216 2016-08-16 David Malcolm <dmalcolm@redhat.com>
15218 * input.c (class selftest::temp_source_file): Move to
15220 (selftest::temp_source_file::temp_source_file): Move to
15222 (selftest::temp_source_file::~temp_source_file): Likewise.
15223 * selftest.c (selftest::temp_source_file::temp_source_file): Move
15225 (selftest::temp_source_file::~temp_source_file): Likewise.
15226 * selftest.h (class selftest::temp_source_file): Move here from
15229 2016-08-16 Jakub Jelinek <jakub@redhat.com>
15232 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
15233 inlining, add cgraph edge for the added __builtin_unreachable call.
15235 PR middle-end/67485
15236 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
15237 only cast it to SHWI for the final comparison.
15239 2016-08-16 Martin Liska <mliska@suse.cz>
15241 PR gcov-profile/36412
15242 * doc/gcov.texi: Document --hash-filenames(-x).
15243 * gcov.c (print_usage): Add the option.
15244 (process_args): Process the option, sort options alphabetically.
15245 (md5sum_to_hex): New function.
15246 (make_gcov_file_name): Do the md5sum and append it to a
15249 2016-08-16 Bin Cheng <bin.cheng@arm.com>
15251 PR tree-optimization/69848
15252 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
15253 and swtich operands to avoid additional NOT instruction.
15254 (vcond<v_cmp_mixed><mode>): Ditto.
15255 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15257 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
15259 * doc/install.texi (*-*-solaris2*): Adjust latest change.
15261 2016-08-16 Richard Biener <rguenther@suse.de>
15263 PR tree-optimization/76783
15264 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
15265 BB visited flags at start.
15267 2016-08-16 Bin Cheng <bin.cheng@arm.com>
15269 PR tree-optimization/72817
15270 PR tree-optimization/73450
15271 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
15272 multiple_of_p for adjusted IV.base.
15274 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
15277 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
15278 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
15279 for !flag_finite_math_only or flag_signed_zeros.
15280 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
15281 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
15282 depend on flag_finite_math_only.
15283 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
15285 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
15286 (*ieee_smin<mode>3): Ditto.
15287 (*ieee_smax<mode>3): Ditto.
15288 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
15289 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
15291 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
15292 depend on flag_finite_math_only.
15293 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
15294 (*mmx_<code>v2sf3): Remove.
15295 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
15296 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
15297 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
15299 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
15301 PR rtl-optimization/73650
15302 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
15303 it is not a simple move.
15305 2016-08-15 Martin Liska <mliska@suse.cz>
15308 * gcc.c (do_spec_1): Call save_string with the right size.
15309 (save_string): Do an assert about string we copy.
15311 2016-08-15 Richard Biener <rguenther@suse.de>
15313 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
15314 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
15316 (pass_data_stv): Likewise.
15318 2016-08-15 Richard Biener <rguenther@suse.de>
15320 PR tree-optimization/73434
15321 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
15322 TBAA info on the base when forwarding a non-invariant address.
15324 2016-08-15 Jakub Jelinek <jakub@redhat.com>
15326 * dwarf2out.c (struct checksum_attributes): Add
15327 at_string_length_bit_size and at_string_length_byte_size fields.
15328 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
15329 and DW_AT_string_length_byte_size.
15330 (die_checksum_ordered): Handle at_string_length_bit_size and
15331 at_string_length_byte_size.
15332 (gen_array_type_die): For dwarf_version >= 5 emit
15333 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15334 (adjust_string_types): For dwarf_version >= 5 remove
15335 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15336 (resolve_addr): Likewise.
15339 * dwarf2out.c (string_types): New variable.
15340 (gen_array_type_die): Change early_dwarf handling of
15341 DW_AT_string_length, create DW_OP_call4 referencing the
15342 length var temporarily. Handle parameters that are pointers
15344 (adjust_string_types): New function.
15345 (gen_subprogram_die): Temporarily set string_types to local var,
15346 call adjust_string_types if needed.
15347 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
15349 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
15351 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
15353 * doc/install.texi (*-*-solaris2*): Fix version number and document
15354 requirement on GNU make for building libjava with the Solaris linker.
15356 2016-08-15 Martin Liska <mliska@suse.cz>
15357 Jakub Jelinek <jakub@redhat.com>
15359 PR tree-optimization/72824
15360 * tree-loop-distribution.c (const_with_all_bytes_same)
15361 <case VECTOR_CST>: Fix a typo.
15363 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
15366 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
15367 Renamed from _mm512_undefined_si512.
15368 (_mm_undefined_si512): New definition.
15370 2016-08-13 Richard Biener <rguenther@suse.de>
15372 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
15373 into PHIs and update the lattice for its def.
15375 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15378 * ubsan.c (instrument_si_overflow): Pass true instead of false
15380 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
15381 of bbs. Return TODO_cleanup_cfg if any returned true.
15383 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15385 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
15386 ISA 3.0 MTVSRDD instruction.
15387 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
15390 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
15392 PR tree-optimization/71083
15393 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
15394 bitfield access when possible.
15396 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
15398 PR middle-end/71654
15399 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
15400 sign-changing cast from a shorter unsigned type to a wider
15403 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15405 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
15406 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
15407 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
15409 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15411 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
15412 Correct costs for vec_construct.
15414 2016-08-12 Bin Cheng <bin.cheng@arm.com>
15416 PR tree-optimization/69848
15417 * tree-vectorizer.h (enum vect_def_type): New condition reduction
15418 type CONST_COND_REDUCTION.
15419 * tree-vect-loop.c (vectorizable_reduction): Support new condition
15420 reudction type CONST_COND_REDUCTION.
15422 2016-08-12 Richard Biener <rguenther@suse.de>
15424 PR tree-optimization/57326
15425 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
15426 returning an SSA name.
15427 (phi_translate_1): When fully_constant_expression returns a NAME
15428 make sure we have a leader for it.
15430 2016-08-12 Martin Liska <mliska@suse.cz>
15431 Adam Fineman <afineman@afineman.com>
15433 * gcov.c (process_file): Create .gcov file when .gcda
15436 2016-08-12 Marek Polacek <polacek@redhat.com>
15439 * alias.c (find_base_value): Adjust fall through comment.
15440 * cfgexpand.c (expand_debug_expr): Likewise.
15441 * combine.c (find_split_point): Likewise.
15442 (expand_compound_operation): Likewise. Add FALLTHRU.
15443 (make_compound_operation): Adjust fall through comment.
15444 (canon_reg_for_combine): Add FALLTHRU.
15445 (force_to_mode): Adjust fall through comment.
15446 (simplify_shift_const_1): Likewise.
15447 (simplify_comparison): Likewise.
15448 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
15450 * config/aarch64/predicates.md: Likewise.
15451 * config/i386/i386.c (function_arg_advance_32): Likewise.
15452 (ix86_gimplify_va_arg): Likewise.
15453 (print_reg): Likewise.
15454 (ix86_print_operand): Likewise.
15455 (ix86_build_const_vector): Likewise.
15456 (ix86_expand_branch): Likewise.
15457 (ix86_sched_init_global): Adjust fall through comment.
15458 (ix86_expand_args_builtin): Add FALLTHRU.
15459 (ix86_expand_builtin): Likewise.
15460 (ix86_expand_vector_init_one_var): Likewise.
15461 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
15462 (rs6000_adjust_cost): Likewise.
15463 (insn_must_be_first_in_group): Likewise.
15464 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
15465 * dbxout.c (dbxout_symbol): Adjust fall through comment.
15466 * df-scan.c (df_uses_record): Likewise.
15467 * dojump.c (do_jump): Add FALLTHRU.
15468 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
15470 (resolve_args_picking_1): Adjust fall through comment.
15471 (loc_list_from_tree_1): Likewise.
15472 * expmed.c (make_tree): Likewise.
15473 * expr.c (expand_expr_real_2): Add FALLTHRU.
15474 (expand_expr_real_1): Likewise. Adjust fall through comment.
15475 * fold-const.c (const_binop): Adjust fall through comment.
15476 (fold_truth_not_expr): Likewise.
15477 (fold_cond_expr_with_comparison): Add FALLTHRU.
15478 (fold_binary_loc): Likewise.
15479 (contains_label_1): Adjust fall through comment.
15480 (multiple_of_p): Likewise.
15481 * gcov-tool.c (process_args): Add FALLTHRU.
15482 * genattrtab.c (check_attr_test): Likewise.
15483 (write_test_expr): Likewise.
15484 * genconfig.c (walk_insn_part): Likewise.
15485 * genpreds.c (validate_exp): Adjust fall through comment.
15486 (needs_variable): Likewise.
15487 * gensupport.c (get_alternatives_number): Add FALLTHRU.
15488 (subst_dup): Likewise.
15489 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
15490 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
15491 (gimplify_scan_omp_clauses): Add FALLTHRU.
15492 (goa_stabilize_expr): Likewise.
15493 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
15495 * hsa-gen.c (get_address_from_value): Likewise.
15496 * ipa-icf.c (sem_function::hash_stmt): Likewise.
15497 * ira.c (ira_setup_alts): Add FALLTHRU.
15498 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
15500 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
15501 * opts.c (common_handle_option): Likewise.
15502 * read-rtl.c (read_rtx_code): Likewise.
15503 * real.c (round_for_format): Likewise.
15504 * recog.c (asm_operand_ok): Likewise.
15505 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
15506 * reload1.c (set_label_offsets): Likewise.
15507 (eliminate_regs_1): Likewise.
15508 (reload_reg_reaches_end_p): Likewise.
15509 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
15510 (rtx_cost): Likewise.
15511 * sched-rgn.c (is_exception_free): Likewise.
15512 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
15513 * stor-layout.c (int_mode_for_mode): Likewise.
15514 * toplev.c (print_to_asm_out_file): Likewise.
15515 (print_to_stderr): Likewise.
15516 * tree-cfg.c (gimple_verify_flow_info): Likewise.
15517 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
15518 (chrec_fold_multiply): Likewise.
15519 (evolution_function_is_invariant_rec_p): Likewise.
15520 (for_each_scev_op): Likewise.
15521 * tree-data-ref.c (siv_subscript_p): Likewise.
15522 (get_references_in_stmt): Likewise.
15523 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
15524 (substitute_in_expr): Likewise.
15525 (type_cache_hasher::equal): Likewise.
15526 (walk_type_fields): Likewise.
15527 * var-tracking.c (adjust_mems): Add FALLTHRU.
15528 (set_dv_changed): Adjust fall through comment.
15529 * varasm.c (default_function_section): Add FALLTHRU.
15531 2016-08-12 Marek Polacek <polacek@redhat.com>
15534 * tree-complex.c (expand_complex_division): Add missing break.
15536 2016-08-12 Richard Biener <rguenther@suse.de>
15538 * passes.c (execute_todo): Do not push/pop TV_TODO.
15539 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
15540 (execute_one_pass): Likewise.
15541 * common.opt (ftime-report-details): New switch.
15542 * doc/invoke.texi (ftime-report-details): Document.
15543 * timevar.h (timer::print_row): Adjust signature.
15544 (timer::all_zero): New static helper.
15545 (timer::child_map_t): New typedef.
15546 (timer::time_var_def): Add children field.
15547 * timevar.c (timer::named_items::print): Adjust.
15548 (timer::~timer): Free timevar recorded children.
15549 (timer::pop_internal): When -ftime-report-details record
15550 time spent in sub-timevars.
15551 (timer::print_row): Adjust.
15552 (timer::print): Print sub-timevar stats, use all_zero.
15553 * timevar.def (TV_TODO): Remove.
15555 2016-08-12 Richard Biener <rguenther@suse.de>
15557 PR tree-optimization/72851
15558 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
15559 worklists to use bitmaps indexed in execution order.
15560 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
15561 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
15562 (cfg_blocks): Make a bitmap.
15563 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
15565 (cfg_blocks_empty_p): Adjust.
15566 (cfg_blocks_add): Likewise.
15567 (cfg_blocks_get): Likewise.
15568 (add_ssa_edge): Likewise.
15569 (add_control_edge): Likewise.
15570 (simulate_stmt): Likewise.
15571 (process_ssa_edge_worklist): Likewise.
15572 (simulate_block): Likewise.
15573 (ssa_prop_init): Compute PRE order and stmt UIDs.
15574 (ssa_prop_fini): Adjust.
15575 (ssa_propagate): Adjust.
15577 2016-08-12 Richard Biener <rguenther@suse.de>
15579 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
15580 the currently executable edges have fixed ranges. Always
15581 go through update_value_range.
15583 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
15587 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
15588 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
15589 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
15590 (LANG_HOOKS_DECLS): Add it.
15591 * langhooks.h (struct lang_hooks_for_decls): Add
15592 function_decl_defaulted. Const_tree-ify
15593 function_decl_explicit_p and function_decl_deleted_p.
15594 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
15595 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
15596 also at strict DWARF v5.
15599 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
15600 TYPE_QUAL_CONST in reference-typed decls.
15603 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
15604 in DW_OP_pieces, just enough to handle pointers to member
15606 (gen_remaining_tmpl_value_param_die_attribute): Use a location
15607 expression on DWARFv5 if a constant value doesn't work.
15609 2016-08-11 David Malcolm <dmalcolm@redhat.com>
15611 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
15612 * selftest.c (selftest::test_assertions): New function.
15613 (selftest::selftest_c_tests): New function.
15614 * selftest.h (selftest::selftest_c_tests): New declaration.
15616 2016-08-11 Richard Biener <rguenther@suse.de>
15617 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15619 PR rtl-optimization/72855
15620 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
15622 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15625 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
15626 (vsx_store_<mode>): Likewise.
15628 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15630 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
15631 TImode CONST_WIDE_INT store.
15632 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
15634 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15636 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
15637 mode if unaligned SSE load and store are optimal.
15639 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
15641 PR tree-optimization/71083
15642 * tree-predcom.c (ref_at_iteration): Correctly align the
15645 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15647 * config/s390/s390-builtin-types.def: Add INT128 types.
15648 * config/s390/s390-builtins.def: Add INT128 variants for the add
15649 sub low-level builtins dealing with TImode.
15650 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
15651 via subreg when expanding a builtin.
15652 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
15653 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
15655 * config/s390/vecintrin.h: Adjust builtin names accordingly.
15656 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
15657 ("vec_addc<mode>", "vec_addc_u128"): Merge to
15658 "vacc<bhfgq>_<mode>".
15659 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
15660 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
15661 ("vec_subc<mode>", "vec_subc_u128"): Merge to
15662 "vscbi<bhfgq>_<mode>".
15663 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
15664 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
15666 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15668 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
15670 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15672 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
15673 unused declaration.
15674 (vcond<v_cmp_mixed><mode>): Ditto.
15675 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15677 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15679 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
15680 variable explicitly, also assert on it before use.
15682 2016-08-11 Richard Biener <rguenther@suse.de>
15684 PR tree-optimization/72772
15685 * cfgloopmanip.c (create_preheader): Use split_edge if there
15686 is a single loop entry, avoiding degenerate PHIs.
15688 2016-08-11 Richard Biener <rguenther@suse.de>
15690 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
15691 unconditional TODO_cleanup_cfg.
15692 (pass_thread_jumps::execute): Initialize loops, perform a CFG
15693 cleanup only if we threaded a jump.
15695 2016-08-11 Alan Modra <amodra@gmail.com>
15698 * lra-constraints.c (simplify_operand_subreg): Allow subreg
15699 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
15700 slow. Emit two reloads for slow mem case, first loading in
15701 fast innermode, then converting to required mode.
15703 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
15705 * config/rs6000/altivec.h (vec_extract_exp): New macro.
15706 (vec_extract_sig): New macro.
15707 (vec_insert_exp): New macro.
15708 (vec_test_data_class): New macro.
15709 (scalar_extract_exp): New macro.
15710 (scalar_extract_sig): New macro.
15711 (scalar_insert_exp): New macro.
15712 (scalar_test_data_class): New macro.
15713 (scalar_test_neg): New macro.
15714 (scalar_cmp_exp_gt): New macro.
15715 (scalar_cmp_exp_lt): New macro.
15716 (scalar_cmp_exp_eq): New macro.
15717 (scalar_cmp_exp_unordered): New macro.
15718 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
15719 to enforce constraint that operand is a 7-bit unsigned literal.
15720 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
15721 for power9 built-ins.
15722 (BU_P9V_VSX_2): Likewise.
15723 (BU_P9V_64BIT_VSX_2): Likewise.
15724 (VSEEDP): Add scalar extract exponent support.
15725 (VSEESP): Add scalar extract signature support.
15726 (VSTDCNDP): Add scalar test negative support.
15727 (VSTDCNSP): Likewise.
15728 (VSIEDP): Add scalar insert exponent support.
15729 (VSCEDPGT): Add scalar compare exponent greater than support.
15730 (VSCEDPLT): Add scalar compare exponent less than support.
15731 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
15732 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
15733 (VSTDCDP): Add scalar test data class support.
15734 (VSTDCSP): Likewise.
15735 (VSEEDP): Add overload support for scalar extract exponent
15737 (VSESDP): Add overload support for scalar extract signature
15739 (VSTDCN): Add overload support for scalar test negative
15741 (VSTDCNDP): Add overload support for scalar test negative
15743 (VSTDCNSP): Add overload support for scalar test negative
15745 (VSIEDP): Add overload support for scalar insert exponent
15747 (VSTDC): Add overload support for scalar test data class
15749 (VSTDCDP): Add overload support for scalar test data class
15751 (VSTDCSP): Add overload support for scalar test data class
15753 (VSCEDPGT): Add overload support for scalar compare exponent
15754 greater than operation.
15755 (VSCEDPLT): Add overload support for scalar compare exponent
15756 less than operation.
15757 (VSCEDPEQ): Add overload support for scalar compare exponent
15758 test-for-equality operation.
15759 (VSCEDPUO): Add overload support for scalar compare exponent
15760 test-for-unordered operation.
15761 (VEEDP): Add vector extract exponent support.
15763 (VESDP): Add vector extract significand support.
15765 (VIEDP): Add vector insert exponent support.
15767 (VTDCDP): Add vector test data class support.
15768 (VTDCSP): Likewise.
15769 (VES): Add overload support for vector extract significand operation.
15772 (VEE): Add overload support for vector extract exponent operation.
15775 (VTDC): Add overload support for vector test data class operation.
15776 (VTDCDP): Likewise.
15777 (VTDCSP): Likewise.
15778 (VIE): Add overload support for vector insert exponent operation.
15781 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15782 overloaded binary floating point functions.
15783 (altivec_resolve_overloaded_builtin): Improve error messages to
15784 distinguish between functions not supported in the current
15785 compiler configuration and functions that were invoked with an
15786 invalid parameter combination, and include the built-in function
15787 name in both error messages.
15788 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
15790 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
15792 (rs6000_expand_binop_builtin): Add check to enforce that argument
15793 2 of the test data class operations is a 7-bit unsigned literal.
15794 (rs6000_invalid_builtin): Add code to issue an error message if a
15795 built-in function that requires the power9_vector and -m32
15796 command-line options is compiled without these options.
15797 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
15798 (UNSPEC_VSX_SXSIGDP): New value.
15799 (UNSPEC_VSX_SXSIGPDP): New value.
15800 (UNSPEC_VSX_SIEXPDP): New value.
15801 (UNSPEC_VSX_SCMPEXPDP): New value.
15802 (UNSPEC_VSX_STSTDC): New value.
15803 (UNSPEC_VSX_VXEXP): New value.
15804 (UNSPEC_VSX_VXSIG): New value.
15805 (UNSPEC_VSX_VIEXP): New value.
15806 (UNSPEC_VSX_VTSTDC): New value.
15807 (xsxexpdp): New insn for scalar extract exponent.
15808 (xsxsigdp): New insn for scalar extract significand.
15809 (xsiexpdp): New insn for scalar insert exponent.
15810 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
15811 (*xscmpexpdp): New insn for scalar compare exponents.
15812 (xststdc<Fvsx): New expansion for both single- and
15813 double-precision scalar test data class operations.
15814 (xststdcneg<Fvsx>): New expansion for both single- and
15815 double-precision scalar test for negative value operations.
15816 (*xststdc<Fvsx>): New insn for scalar test data class
15818 (xvxexp<VSs>): New insn for single- and double-precision
15819 vector extract exponent operation.
15820 (xvxsig<VSs>): New insn for single- and double-precision
15821 vector extract significand operation.
15822 (xviexp<VSs>): New insn for single- and double-precision
15823 vector insert exponent operation.
15824 (xvtstdc<VSs>): New insn for single- and double-precision
15825 vector test data class operation.
15826 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15827 built-in functions to represent the Power9 binary floating-point
15828 support instructions.
15830 2016-08-10 bin cheng <bin.cheng@arm.com>
15832 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
15834 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15835 Renlin Li <renlin.li@arm.com>
15836 Bin Cheng <bin.cheng@arm.com>
15838 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
15839 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
15840 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
15841 (aarch64_vcond_internal<mode><mode>): Delete pattern.
15842 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
15843 (vcond<v_cmp_result><mode>): Ditto.
15844 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
15845 (vcondu<mode><mode>): Ditto.
15846 (vcond<v_cmp_mixed><mode>): New pattern.
15847 (vcondu<mode><v_cmp_mixed>): New pattern.
15848 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
15849 of aarch64_vcond_internal.
15851 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15852 Renlin Li <renlin.li@arm.com>
15853 Bin Cheng <bin.cheng@arm.com>
15855 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
15856 (vec_cmp<mode><v_cmp_result>): New pattern.
15857 (vec_cmpu<mode><mode>): New pattern.
15858 (vcond_mask_<mode><v_cmp_result>): New pattern.
15860 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15862 PR tree-optimization/71734
15863 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
15864 REF_LOOP, invoke ref_indep_loop_p_1.
15865 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
15866 to ref_indep_loop_p.
15867 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
15868 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
15869 is inside LOOP, do not cache dpendence value for loops with
15871 (ref_indep_loop_p_2): Delete function.
15872 (can_sm_ref_p): Pass LOOP as additional argument to
15875 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15878 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
15879 being an offsettable address.
15881 2016-08-10 Martin Liska <mliska@suse.cz>
15883 PR gcov-profile/58306
15884 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
15885 atomic variants of profile update functions.
15887 2016-08-10 Martin Liska <mliska@suse.cz>
15889 Cherry picked (and modified) from google-4_7 branch
15890 2012-12-26 Rong Xu <xur@google.com>
15891 * common.opt (fprofile-update): Add new flag.
15892 * coretypes.h: Define enum profile_update.
15893 * doc/invoke.texi: Document -fprofile-update.
15894 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
15895 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
15896 * tree-profile.c (gimple_init_edge_profiler): Generate
15897 also atomic profiler update.
15898 (gimple_gen_edge_profiler): Likewise.
15900 2016-08-10 David Malcolm <dmalcolm@redhat.com>
15902 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
15903 stack_usage_file to NULL after fclose calls.
15905 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15908 * reload.c (push_reload): Compute subreg_in_class for
15909 subregs of constants and plus expressions. Remove special
15910 handling of SYMBOL_REFs.
15912 2016-08-10 Alan Modra <amodra@gmail.com>
15915 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
15916 SImode for TARGET_E500_DOUBLE when given SImode.
15918 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
15920 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
15921 unused variable __O.
15923 2016-08-09 Martin Liska <mliska@suse.cz>
15925 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
15926 _gcov_reset to __gcov_reset.
15927 * doc/gcov-tool.texi: Fix typo.
15929 2016-08-09 Martin Liska <mliska@suse.cz>
15931 * value-prof.c (gimple_divmod_values_to_profile): Do not
15932 instrument MOD histogram if a value is not a SSA name.
15934 2016-08-09 Martin Liska <mliska@suse.cz>
15936 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
15939 2016-08-09 Renlin Li <renlin.li@arm.com>
15941 PR middle-end/64971
15942 * calls.c (prepare_call_address): Convert funexp to Pmode when
15944 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
15945 (sibcall_value): Likewise.
15947 2016-08-09 Marek Polacek <polacek@redhat.com>
15950 * cselib.c (cselib_expand_value_rtx_1): Add return.
15951 * gengtype.c (dbgprint_count_type_at): Likewise.
15952 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
15953 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
15955 2016-08-09 Martin Jambor <mjambor@suse.cz>
15958 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
15959 if instance is a MEM_REF.
15961 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
15964 * config/i386/i386.md (*movtf_internal): Use
15965 lra_in_progress || reload_completed instead of !can_create_pseudo_p
15966 in the insn constraint.
15967 (*movxf_internal): Ditto.
15968 (*movdf_internal): Ditto.
15969 (*movsf_internal): Ditto.
15971 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15973 PR tree-optimization/72772
15974 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
15977 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15979 PR tree-optimization/72772
15980 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
15982 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
15983 parameter STOP and update calls. Move expand_simple_operations
15984 function call from here...
15985 (simplify_using_initial_conditions): ...to here. Delete parameter
15987 (tree_simplify_using_condition): Delete parameter STOP.
15988 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
15989 simplify_using_initial_conditions.
15991 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
15994 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
15995 Use create_tmp_var_raw instead of create_tmp_var.
15997 2016-08-09 Richard Biener <rguenther@suse.de>
15999 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
16000 Treat same SSA names related.
16002 2016-08-09 Jakub Jelinek <jakub@redhat.com>
16004 PR tree-optimization/72824
16005 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
16006 real_zerop is not negative.
16008 2016-08-09 Richard Biener <rguenther@suse.de>
16010 PR tree-optimization/71802
16011 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
16012 all merge opportunities with the predecessor.
16014 2016-08-09 Richard Biener <rguenther@suse.de>
16017 * ipa-prop.c (ipa_modify_formal_parameters): Build
16018 parameter types with natural alignment also for the
16021 2016-08-08 Andi Kleen <ak@linux.intel.com>
16023 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
16025 2016-08-08 David Malcolm <dmalcolm@redhat.com>
16028 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
16029 do-nothing langhook.
16030 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
16031 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
16032 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
16033 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
16035 2016-08-08 David Malcolm <dmalcolm@redhat.com>
16038 * input.c: Ensure that HAVE_ICONV is defined.
16040 2016-08-08 Jakub Jelinek <jakub@redhat.com>
16042 PR middle-end/72781
16043 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
16044 private vars for lastprivate and for linear iterator.
16046 PR middle-end/68762
16047 * omp-simd-clone.c: Include varasm.h.
16048 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
16049 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
16050 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
16051 update function name.
16053 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16055 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
16056 (avr_diagnose_devicespecs_error): Remove.
16057 (avr_devicespecs_file): Remove composing absolute path for specfile
16058 and its verbose info. Remove conditions to check specs-file,
16060 2016-08-08 Jakub Jelinek <jakub@redhat.com>
16062 PR rtl-optimization/72821
16063 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
16064 just return false for them.
16066 2016-08-08 Alan Modra <amodra@gmail.com>
16069 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
16070 toc refs created during reload. Update function comment.
16072 2016-08-08 Alan Modra <amodra@gmail.com>
16075 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
16076 alternatives. Put loads first, then stores, and reg/reg moves
16077 within same class later. Delete attr length.
16079 2016-08-08 Alan Modra <amodra@gmail.com>
16082 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
16083 (mem_operand_ds_form): New predicate.
16084 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
16085 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
16086 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
16087 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
16088 (extendsfdf2_fpr): Replace o constraint with wY.
16090 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
16092 * tree-ssa-threadbackward.c: Include tree-inline.h
16093 (profitable_jump_thread_path): Use estimate_num_insns to estimate
16094 size of copied block; for cold paths reduce duplication.
16095 (find_jump_threads_backwards): Remove redundant tests.
16096 (pass_thread_jumps::gate): Enable for -Os.
16098 2016-08-07 Jakub Jelinek <jakub@redhat.com>
16101 * stor-layout.c (layout_decl): Fix up formatting.
16102 (relayout_decl): Allow DECL to be FIELD_DECL.
16104 2016-08-07 Alan Modra <amodra@gmail.com>
16106 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
16108 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16110 * data-streamer-in.c (streamer_read_wide_int): New.
16111 (streamer_read_widest_int): Renamed function.
16112 * data-streamer-out.c (streamer_write_wide_int): New
16113 (streamer_write_widest_int): Renamed function.
16114 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
16116 (input_cfg): Call renamed function.
16117 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
16119 (output_cfg): Call renamed function.
16120 * data-streamer.h: Add declarations.
16122 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16124 * tree-ssa-ccp.c (extend_mask): New param sgn.
16125 Remove ORing with wi::mask.
16126 (get_default_value): Adjust call to extend_mask to pass sign.
16127 (evaluate_stmt): Likewise.
16129 2016-08-06 Jakub Jelinek <jakub@redhat.com>
16131 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
16134 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16136 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
16137 transform if operand's type is pointer to function or method.
16139 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
16141 PR tree-optimization/18046
16142 * tree-ssa-threadedge.c: Include cfganal.h.
16143 (simplify_control_statement_condition): If simplifying a
16144 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
16145 with the dominating ASSERT_EXPR before handing it off to VRP.
16146 Mention that a CASE_LABEL_EXPR may be returned.
16147 (thread_around_empty_blocks): Adjust to handle
16148 simplify_control_statement_condition() returning a
16150 (thread_through_normal_block): Likewise.
16151 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
16152 a switch statement by trying to determine which case label
16155 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
16157 PR rtl-optimization/69847
16158 * lra-constraints.c (process_invariant_for_inheritance): Save
16159 pattern instead of src.
16160 (remove_inheritance_pseudos): Use the pattern. Add assert.
16162 2016-08-05 David Malcolm <dmalcolm@redhat.com>
16164 * input.c (string_concat::string_concat): New constructor.
16165 (string_concat_db::string_concat_db): New constructor.
16166 (string_concat_db::record_string_concatenation): New method.
16167 (string_concat_db::get_string_concatenation): New method.
16168 (string_concat_db::get_key_loc): New method.
16169 (class auto_cpp_string_vec): New class.
16170 (get_substring_ranges_for_loc): New function.
16171 (get_source_range_for_substring): New function.
16172 (get_num_source_ranges_for_substring): New function.
16173 (class selftest::lexer_test_options): New class.
16174 (struct selftest::lexer_test): New struct.
16175 (class selftest::ebcdic_execution_charset): New class.
16176 (selftest::ebcdic_execution_charset::s_singleton): New variable.
16177 (selftest::lexer_test::lexer_test): New constructor.
16178 (selftest::lexer_test::~lexer_test): New destructor.
16179 (selftest::lexer_test::get_token): New method.
16180 (selftest::assert_char_at_range): New function.
16181 (ASSERT_CHAR_AT_RANGE): New macro.
16182 (selftest::assert_num_substring_ranges): New function.
16183 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
16184 (selftest::assert_has_no_substring_ranges): New function.
16185 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
16186 (selftest::test_lexer_string_locations_simple): New function.
16187 (selftest::test_lexer_string_locations_ebcdic): New function.
16188 (selftest::test_lexer_string_locations_hex): New function.
16189 (selftest::test_lexer_string_locations_oct): New function.
16190 (selftest::test_lexer_string_locations_letter_escape_1): New function.
16191 (selftest::test_lexer_string_locations_letter_escape_2): New function.
16192 (selftest::test_lexer_string_locations_ucn4): New function.
16193 (selftest::test_lexer_string_locations_ucn8): New function.
16194 (selftest::uint32_from_big_endian): New function.
16195 (selftest::test_lexer_string_locations_wide_string): New function.
16196 (selftest::uint16_from_big_endian): New function.
16197 (selftest::test_lexer_string_locations_string16): New function.
16198 (selftest::test_lexer_string_locations_string32): New function.
16199 (selftest::test_lexer_string_locations_u8): New function.
16200 (selftest::test_lexer_string_locations_utf8_source): New function.
16201 (selftest::test_lexer_string_locations_concatenation_1): New
16203 (selftest::test_lexer_string_locations_concatenation_2): New
16205 (selftest::test_lexer_string_locations_concatenation_3): New
16207 (selftest::test_lexer_string_locations_macro): New function.
16208 (selftest::test_lexer_string_locations_stringified_macro_argument):
16210 (selftest::test_lexer_string_locations_non_string): New function.
16211 (selftest::test_lexer_string_locations_long_line): New function.
16212 (selftest::test_lexer_char_constants): New function.
16213 (selftest::input_c_tests): Call the new test functions once per
16214 case within the line_table test matrix.
16215 * input.h (struct string_concat): New struct.
16216 (struct location_hash): New struct.
16217 (class string_concat_db): New class.
16218 * substring-locations.h: New header.
16220 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
16222 PR tree-optimization/72810
16223 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
16224 the type of the case labels when truncating.
16226 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16229 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
16230 (aarch64_fp16_ptr_type_node): Likewise.
16231 * config/aarch64/aarch64-simd-builtins.c
16232 (aarch64_fp16_ptr_type_node): Define.
16233 (aarch64_init_fp16_types): New, refactored out of...
16234 (aarch64_init_builtins): ...here, update to call
16235 aarch64_init_fp16_types.
16236 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
16238 (aapcs_vfp_sub_candidate): Likewise.
16240 2016-08-05 Martin Liska <mliska@suse.cz>
16241 Joshua Cranmer <Pidgeot18@gmail.com>
16243 * gcov.c (line_t::has_block): New function.
16244 (enum loop_type): New enum.
16245 (handle_cycle): New function.
16246 (unblock): Likewise.
16247 (circuit): Likewise.
16248 (get_cycles_count): Likewise.
16249 (accumulate_line_counts): Use new loop detection algorithm.
16251 2016-08-05 Martin Liska <mliska@suse.cz>
16253 * gcov.c (output_intermediate_file): Rename
16254 function_info::line_next to next_file_fn.
16255 (process_file): Likewise.
16256 (read_graph_file): Likewise.
16257 (accumulate_line_counts): Likewise.
16258 (output_lines): Likewise.
16260 2016-08-05 Richard Biener <rguenther@suse.de>
16262 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
16263 restriction on threading to a loop header.
16265 2016-08-05 Richard Biener <rguenther@suse.de>
16267 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
16268 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
16269 adjust loop info accordingly.
16271 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16273 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
16274 before folding call to __builtin_constant_p with parameters to false.
16276 2016-08-05 Alan Modra <amodra@gmail.com>
16278 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
16279 code accidentally committed 2016-05-02 providing class when given
16282 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16284 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
16285 the case label ranges that partially overlap with OP's value
16288 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
16291 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
16292 Cast builtin function result to __mmask16 instead of __mmask8.
16293 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16294 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
16295 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16297 2016-08-04 David Malcolm <dmalcolm@redhat.com>
16299 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
16300 (ASSERT_TRUE_AT): New macro.
16301 (ASSERT_FALSE): Reimplement in terms of...
16302 (ASSERT_FALSE_AT): New macro.
16303 (ASSERT_STREQ_AT): Fix typo in comment.
16305 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16307 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
16308 labels are exhaustive, designate the label with the widest
16309 range to be the default label.
16311 2016-08-04 Andrew Pinski <apinski@cavium.com>
16313 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
16314 (thunderx_tunings): Use thunderx_vector_cost instead of
16315 generic_vector_cost.
16317 2016-08-04 Martin Liska <mliska@suse.cz>
16319 * gcov.c (main): Fix GNU coding style.
16320 (output_intermediate_file): Likewise.
16321 (process_file): Likewise.
16322 (generate_results): Likewise.
16323 (release_structures): Likewise.
16324 (create_file_names): Likewise.
16325 (find_source): Likewise.
16326 (read_graph_file): Likewise.
16327 (find_exception_blocks): Likewise.
16328 (canonicalize_name): Likewise.
16329 (make_gcov_file_name): Likewise.
16330 (mangle_name): Likewise.
16331 (accumulate_line_counts): Likewise.
16332 (output_branch_count): Likewise.
16333 (read_line): Likewise.
16335 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16337 PR rtl-optimization/71779
16338 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
16339 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
16340 or if it was truncated.
16342 PR rtl-optimization/70903
16343 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
16345 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16347 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
16348 accessing SSA_NAME_PTR_INFO.
16350 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16353 * common/config/avr/avr-common.c (avr_option_optimization_table)
16354 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
16356 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16359 * config/avr/avr.md: New pattern to work around do_store_flag
16360 generating shift instructions for bit extractions.
16362 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16364 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
16366 (add_equivalence): Likewise.
16367 (get_value_range): Allocate value range with vrp_value_range_pool.
16368 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
16369 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
16371 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
16373 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
16374 the default for the rs6000 port.
16376 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16378 PR middle-end/71876
16379 * calls.c (special_function_p): Remove special handling of
16380 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
16381 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
16382 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
16384 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
16386 PR middle-end/72778
16387 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
16388 Don't stop on regular insns.
16390 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
16392 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
16393 size to DImode boundary.
16394 (nvptx_propagate): Likewise.
16396 2016-08-03 Alan Modra <amodra@gmail.com>
16398 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
16399 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
16400 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
16401 from -mefficient-unaligned-vector. Note that this affects fp too.
16403 2016-08-03 Alan Modra <amodra@gmail.com>
16405 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
16408 2016-08-03 Alan Modra <amodra@gmail.com>
16410 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
16411 to a reg. Localize vars.
16413 2016-08-03 Alan Modra <amodra@gmail.com>
16415 * config/rs6000/rs6000.opt: Remove negatives from help strings
16418 2016-08-03 Alan Modra <amodra@gmail.com>
16420 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
16421 Delete duplicated code.
16423 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16425 PR middle-end/72778
16426 * lra-spills.c (regno_in_use_p): New.
16427 (lra_final_code_change): Use it.
16429 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16431 PR rtl-optimization/69847
16432 * lra-int.h (struct lra-reg): Use restore_rtx instead of
16434 (lra_rtx_hash): New.
16435 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
16437 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
16438 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
16439 * lra-spills.c (lra_final_code_change): Don't delete insn when the
16440 next insn is USE with the same reg as the current insn source.
16441 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
16443 (lra_constraints_init): Call initiate_invariants.
16444 (lra_constraints_finish): Call finish_invariants.
16445 (struct invariant, invariant_t, invariant_ptr_t): New.
16446 (const_invariant_ptr_t, invariants, invariants_pool): New.
16447 (invariant_table, invariant_hash, invariant_eq_p): New.
16448 (insert_invariant, initiate_invariants, finish_invariants): New.
16449 (clear_invariants, invalid_invariant_regs): New.
16450 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
16451 instead of restore_regno.
16452 (invariant_p, process_invariant_for_inheritance): New.
16453 (inherit_in_ebb): Implement invariant inheritance.
16454 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
16455 (remove_inheritance_pseudos): Implement undoing invariant
16457 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
16458 instead of restore_regno.
16459 * lra-assigns.c (regno_live_length): New.
16460 (reload_pseudo_compare_func): Use regno_live_length.
16461 (assign_by_spills): Use restore_rtx instead of restore_regno.
16462 (lra_assign): Ditto. Initiate regno_live_length.
16464 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
16466 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
16467 __builtin_aarch64_fmindf.
16469 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16471 PR tree-optimization/34114
16472 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
16473 information for more control IVs.
16475 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16477 PR tree-optimization/34114
16478 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
16479 PLUS_EXPR case. Handle SSA_NAME case.
16481 2016-08-02 Tamar Christina <tamar.christina@arm.com>
16483 * config/aarch64/aarch64-simd-builtins.def
16484 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
16485 (__builtin_aarch64_fmaxdf): Likewise.
16486 (__builtin_aarch64_smin_nandf): Likewise.
16487 (__builtin_aarch64_smax_nandf): Likewise.
16488 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
16489 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
16490 (<fmaxmin><mode>3): ...this.
16491 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
16492 (vminnm_f64): Likewise.
16493 (vmin_f64): Likewise.
16494 (vmax_f64): Likewise.
16495 * config/aarch64/iterators.md (FMAXMIN): Merge with...
16496 (FMAXMIN_UNS): ...this.
16497 (fmaxmin): Merged with
16498 (fmaxmin_op): ...this...
16499 (maxmin_uns_op): ...in to this.
16501 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16503 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16504 Add support for vec_extract on vector float, vector int, vector
16505 short, and vector char vector types.
16506 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16507 vector float, vector int, vector short, and vector char
16508 optimizations on 64-bit ISA 2.07 systems for both constant and
16509 variable element numbers.
16510 (rs6000_split_vec_extract_var): Likewise.
16511 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
16512 Altivec registers on ISA 2.07 and above.
16513 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
16514 which never was matched due to the split occuring before register
16515 allocation (and the code would not have worked on little endian
16516 systems if it did match). Allow extracts to go to the Altivec
16517 registers if ISA 2.07 (power8). Change from using "" around the
16518 C++ code to using {}'s.
16519 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
16520 vec_extracts when the vector is in memory.
16521 (vsx_extract_v4sf_var): New insn to optimize vector float
16522 vec_extracts when the element number is variable on 64-bit ISA
16524 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
16525 for 64-bit ISA 2.07 as well as ISA 3.0.
16526 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
16527 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
16528 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
16529 optimize vector int, vector short, and vector char vec_extracts
16530 when the vector is in memory.
16531 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
16532 optimize vector int, vector short, and vector char vec_extracts
16533 when the element number is variable.
16535 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16538 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
16539 does not overlap with other symbol flags.
16541 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
16543 * config/aarch64/aarch64.h (aarch64_frame):
16544 Remove padding0 and hardfp_offset. Add locals_offset,
16545 initial_adjust, callee_adjust, callee_offset and final_adjust.
16546 * config/aarch64/aarch64.c (aarch64_layout_frame):
16547 Remove unused padding0 and hardfp_offset initializations.
16548 Choose frame layout and set frame variables accordingly.
16549 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
16550 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
16551 (aarch64_pop_regs): Likewise.
16552 (aarch64_expand_prologue): Remove all decision code, just emit
16553 prolog according to frame variables.
16554 (aarch64_expand_epilogue): Remove all decision code, just emit
16555 epilog according to frame variables.
16556 (aarch64_initial_elimination_offset): Use offset to local/arg area.
16558 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
16561 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
16562 fix_debug_reg_uses after changing source register mode to
16563 V1TImode if source register is undefined.
16565 2015-08-01 Alan Hayward <alan.hayward@arm.com>
16567 PR tree-optimization/71818
16568 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
16569 with non invariant evolutions
16571 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16574 * config/avr/avr.md (length) [branch]: Correct insn length
16575 attribute for forward branches.
16577 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16579 * doc/extend.texi (AVR Built-in Functions): Document
16580 __builtin_avr_nops.
16581 * config/avr/builtins.def (NOPS): New.
16582 * config/avr/avr.c (avr_expand_nops): New static function.
16583 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
16585 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16587 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
16588 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
16591 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
16593 * config/aarch64/aarch64.c (vulcan_tunings): Update
16594 vulcan L1 cache_line_size.
16596 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
16598 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
16599 function that takes a vector memory address, a hard register, an
16600 element number and a temporary base register, and recreates an
16601 address that points to the appropriate element within the vector.
16602 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
16603 (rs6000_split_vec_extract_var): Add support for the target of a
16604 vec_extract with variable element number being a scalar memory
16606 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
16608 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
16609 vsx_extract_<mode>_load insn with a new insn that optimizes
16610 storing either element to a memory location, using scratch
16611 registers to pick apart the vector and reconstruct the address.
16612 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
16613 (vsx_extract_<mode>_store): Rework alternatives to more correctly
16614 support Altivec registers. Add support for ISA 3.0 Altivec d-form
16616 (vsx_extract_<mode>_var): Add support for extracting a variable
16617 element number from memory.
16619 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16621 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
16622 when testing for compares against constants of the form 0xabab.
16624 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16626 PR tree-optimization/57558
16627 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
16629 (vect_loop_versioning): Support versioning with niter assumptions.
16630 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
16631 (vect_get_loop_niters): New parameter. Reimplement to support
16632 assumptions in loop niter info.
16633 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
16634 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
16635 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
16636 Support loop versioning for niters.
16637 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
16638 (vect_free_loop_info_assumptions): New function.
16639 (vectorize_loops): Free loop niter info for loops with flag
16640 LOOP_F_ASSUMPTIONS set if vectorization failed.
16641 * tree-vectorizer.h (struct _loop_vec_info): New field
16642 num_iters_assumptions.
16643 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
16644 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
16645 (LOOP_REQUIRES_VERSIONING): New macro.
16646 (vect_free_loop_info_assumptions): New decl.
16648 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16650 * cfgloop.h (struct loop): New field constraints.
16651 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
16652 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
16654 * cfgloop.c (alloc_loop): Initialize new field.
16655 * cfgloopmanip.c (copy_loop_info): Copy constraints.
16656 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
16657 Adjust niter analysis wrto loop constraints.
16658 * doc/loop.texi (@node Number of iterations): Add description for loop
16661 2016-07-29 Marek Polacek <polacek@redhat.com>
16664 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
16665 (ix86_expand_round_builtin): Likewise.
16667 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16668 Georg-Johann Lay <avr@gjlay.de>
16670 PR rtl-optimization/71976
16671 * combine.c (get_last_value): Return 0 if the argument for which
16672 the function is called has a wider mode than the recorded value.
16674 2016-07-29 Marek Polacek <polacek@redhat.com>
16677 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
16678 (altivec_expand_st_builtin): Likewise.
16680 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16682 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
16683 introduced in r238381.
16685 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16687 PR middle-end/68217
16688 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
16689 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
16691 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
16693 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
16695 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16696 Add support for vec_extract of vector double or vector long having
16697 a variable element number on 64-bit ISA 2.07 systems or newer.
16698 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
16700 (rs6000_split_vec_extract_var): New function to split a
16701 vec_extract built-in function with variable element number.
16702 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
16704 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
16705 (UNSPEC_VSX_EXTRACT): Likewise.
16706 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
16707 direct move instructions to be generated on 64-bit ISA 2.07
16708 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
16710 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
16711 arguments for vec_extract variable element.
16712 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
16713 vec_extract with variable element on V2DFmode and V2DImode
16715 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
16716 -mupper-regs-df requirement, since it isn't needed.
16717 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
16718 do direct moves on 64-bit systems, which allows optimization of
16719 vec_extract on 64-bit ISA 2.07 systems and newer.
16721 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16722 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16724 * config/aarch64/aarch64.md
16725 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
16726 statement and type.
16727 (<optab>qihi2_aarch64): Likewise, and split into two.
16728 (extendqihi2_aarch64): New.
16729 (zero_extendqihi2_aarch64): New.
16730 * config/aarch64/iterators.md (ldrxt): Remove.
16731 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
16734 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16736 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
16738 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16740 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
16741 (aarch64_push_reg): New function to push 1 or 2 registers.
16742 (aarch64_pop_reg): New function to pop 1 or 2 registers.
16743 (aarch64_expand_prologue): Use aarch64_push_regs.
16744 (aarch64_expand_epilogue): Use aarch64_pop_regs.
16746 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
16748 PR tree-optimization/71734
16749 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
16750 attribute instead of REF_LOOP and use it.
16751 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
16752 set it for Loops having non-zero safelen attribute.
16753 (ref_indep_loop_p): Pass zero as initial value for safelen.
16755 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
16757 PR middle-end/72657
16759 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
16760 call using chkp_gimple_call_builtin_p.
16761 (chkp_copy_bounds_for_assign): Likewise.
16763 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16765 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
16766 * config/arm/arm-protos.h (struct tune_params): Likewise.
16767 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16768 (cortex_a9_sched_adjust_cost): Likewise.
16769 (fa726te_sched_adjust_cost): Likewise.
16770 (arm_adjust_cost): Likewise.
16771 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
16772 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
16773 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
16774 * config/i386/i386.c (ix86_adjust_cost): Likewise.
16775 * config/ia64/ia64.c: Likewise.
16776 * config/m68k/m68k.c: Likewise.
16777 * config/mep/mep.c (mep_adjust_cost): Likewise.
16778 * config/microblaze/microblaze.c (microblaze_adjust_cost):
16780 * config/mips/mips.c (mips_adjust_cost): Likewise.
16781 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
16783 * config/pa/pa.c (pa_adjust_cost): Likewise.
16784 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
16785 (rs6000_debug_adjust_cost): Likewise.
16786 * config/sh/sh.c (sh_adjust_cost): Likewise.
16787 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
16788 (hypersparc_adjust_cost): Likewise.
16789 (sparc_adjust_cost): Likewise.
16790 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
16791 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
16792 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
16794 * config/visium/visium.c (visium_adjust_cost): Likewise.
16795 * doc/tm.texi: Regenerate.
16796 * haifa-sched.c (dep_cost_1): Adjust.
16797 * target.def: Merge adjust_cost and adjust_cost_2.
16799 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16801 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
16803 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16805 * store-motion.c (struct st_expr): Make pattern_regs a vector.
16806 (extract_mentioned_regs): Append to a vector instead of
16807 returning a rtx_expr_list.
16808 (st_expr_entry): Adjust.
16809 (free_st_expr_entry): Likewise.
16810 (store_ops_ok): Likewise.
16811 (store_killed_in_insn): Likewise.
16812 (find_moveable_store): Likewise.
16814 2016-07-28 Martin Liska <mliska@suse.cz>
16816 PR gcov-profile/68025
16817 * tree-profile.c (tree_profiling): Respect
16818 no_profile_instrument_function attribute.
16819 * doc/extend.texi: Document no_profile_instrument_function
16822 2016-07-28 Martin Liska <mliska@suse.cz>
16824 PR rtl-optimization/70944
16825 * combine.c (make_compound_operation):
16826 Do not allow make_compound_operation for vector mode
16828 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
16830 PR middle-end/71994
16831 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
16832 before calling get_ops.
16834 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16836 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
16837 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
16838 (BITS_PER_UNIT_LOG): Remove.
16839 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
16840 * expr.c (expand_assignment): Likewise.
16841 * stor-layout.c (initialize_sizetypes): Likewise.
16843 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16845 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
16846 signature of rs6000_expand_vector_extract so that the element
16847 number is a RTX instead of a constant integer.
16848 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
16850 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
16851 (altivec_expand_vec_ext_builtin): Likewise.
16852 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
16853 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
16854 MFVSRLD instruction.
16856 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16858 * input.c (get_pure_location): Move here from tree.c.
16859 (make_location): Likewise. Add header comment.
16860 (selftest::test_accessing_ordinary_linemaps): Verify
16861 pure_location_p, make_location, get_location_from_adhoc_loc and
16862 get_range_from_loc.
16863 * input.h (get_pure_location): Move declaration here from tree.h.
16864 (get_finish): Likewise for inline function.
16865 (make_location): Likewise for declaration.
16866 * tree.c (get_pure_location): Move to input.c.
16867 (make_location): Likewise.
16868 * tree.h (get_pure_location): Move declaration to tree.h.
16869 (get_finish): Likewise for inline function.
16870 (make_location): Likewise for declaration.
16872 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16874 PR middle-end/71078
16875 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
16877 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16879 * system.h (STATIC_ASSERT): Use static_assert if building
16880 with C++11 onwards.
16882 2016-07-27 Richard Biener <rguenther@suse.de>
16884 PR tree-optimization/72517
16885 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
16886 Revert change to not compute read-read dependences.
16888 2016-07-27 Richard Biener <rguenther@suse.de>
16890 * predict.c (set_even_probabilities): Make nedges unsigned.
16892 2016-07-27 Martin Liska <mliska@suse.cz>
16894 * predict.c (set_even_probabilities): Handle unlikely edges.
16895 (combine_predictions_for_bb): Likewise.
16897 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16900 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
16901 __float128 support when we don't have hardware support, so that
16902 the IEEE built-in functions like isgreater, first call __unordkf3
16903 to make sure neither operand is a NaN, and if both operands are
16904 ordered, do the normal comparison.
16906 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16908 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
16910 (extract_code_and_val_from_cond_with_ops): Verify that name is
16911 either cond_op0 or cond_op1.
16913 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16915 PR tree-optimization/18046
16916 * genmodes.c (emit_mode_size_inline): Emit an assert that
16917 verifies that mode is a valid array index.
16918 (emit_mode_nuinits_inline): Likewise.
16919 (emit_mode_inner_inline): Likewise.
16920 (emit_mode_unit_size_inline): Likewise.
16921 (emit_mode_unit_precision_inline): Likewise.
16922 * tree-vrp.c: Include params.h.
16923 (find_switch_asserts): Register edge assertions for the default
16924 label which correspond to the anti-ranges of each case label.
16925 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
16926 * doc/invoke.texi: Document it.
16928 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16930 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
16931 and unnecessary call to gimple_bb.
16933 2016-07-26 Richard Biener <rguenther@suse.de>
16935 PR rtl-optimization/71984
16936 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
16939 2016-07-26 Richard Biener <rguenther@suse.de>
16941 PR middle-end/72517
16942 * expmed.c (extract_bit_field_1): Constrain the vector mode
16943 with element size matching the extraction mode size when
16944 choosing a better vector mode to do the extraction from.
16946 2016-07-26 Richard Biener <rguenther@suse.de>
16947 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16949 PR middle-end/70920
16950 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
16953 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16955 * tree-ssa-structalias.c (struct scc_info): Change types of
16956 members to auto_sbitmap and auto_vec.
16957 (scc_info::scc_info): New constructor.
16958 (scc_info::~scc_info): New destructor.
16959 (init_scc_info): Remove.
16960 (free_scc_info): Remove.
16961 (find_indirect_cycles): Adjust.
16962 (perform_var_substitution): Likewise.
16963 (free_var_substitution_info): Likewise.
16965 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16967 * tree-outof-ssa.c (struct elim_graph): Change type of members
16968 to auto_vec and auto_sbitmap.
16969 (elim_graph::elim_graph): New constructor.
16970 (delete_elim_graph): Remove.
16971 (expand_phi_nodes): Adjust.
16973 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16975 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
16976 (new_elim_graph): Adjust.
16977 (clear_elim_graph): Likewise.
16978 (delete_elim_graph): Likewise.
16979 (elim_graph_size): Likewise.
16980 (elim_graph_add_node): Likewise.
16981 (elim_graph_add_edge): Likewise.
16982 (elim_graph_remove_succ_edge): Likewise.
16983 (eliminate_name): Likewise.
16984 (eliminate_build): Likewise.
16985 (elim_forward): Likewise.
16986 (elim_unvisited_predecessor): Likewise.
16987 (elim_backward): Likewise.
16988 (elim_create): Likewise.
16989 (eliminate_phi): Likewise.
16990 (expand_phi_nodes): Likewise.
16992 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16994 * bt-load.c (compute_out): Use auto_sbitmap class.
16995 (link_btr_uses): Likewise.
16996 * cfganal.c (mark_dfs_back_edges): Likewise.
16997 (post_order_compute): Likewise.
16998 (inverted_post_order_compute): Likewise.
16999 (pre_and_rev_post_order_compute_fn): Likewise.
17000 (single_pred_before_succ_order): Likewise.
17001 * cfgexpand.c (pass_expand::execute): Likewise.
17002 * cfgloop.c (verify_loop_structure): Likewise.
17003 * cfgloopmanip.c (fix_bb_placements): Likewise.
17004 (remove_path): Likewise.
17005 (update_dominators_in_loop): Likewise.
17006 * cfgrtl.c (break_superblocks): Likewise.
17007 * ddg.c (check_sccs): Likewise.
17008 (create_ddg_all_sccs): Likewise.
17009 * df-core.c (df_worklist_dataflow): Likewise.
17010 * dse.c (dse_step3): Likewise.
17011 * except.c (eh_region_outermost): Likewise.
17012 * function.c (thread_prologue_and_epilogue_insns): Likewise.
17013 * gcse.c (prune_expressions): Likewise.
17014 (prune_insertions_deletions): Likewise.
17015 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
17016 * graph.c (draw_cfg_nodes_no_loops): Likewise.
17017 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
17018 * lcm.c (compute_earliest): Likewise.
17019 (compute_farthest): Likewise.
17020 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
17021 (unroll_loop_runtime_iterations): Likewise.
17022 (unroll_loop_stupid): Likewise.
17023 * lower-subreg.c (decompose_multiword_subregs): Likewise.
17024 * lra-lives.c: Likewise.
17025 * lra.c (lra): Likewise.
17026 * modulo-sched.c (schedule_reg_moves): Likewise.
17027 (optimize_sc): Likewise.
17028 (get_sched_window): Likewise.
17029 (sms_schedule_by_order): Likewise.
17030 (check_nodes_order): Likewise.
17031 (order_nodes_of_sccs): Likewise.
17032 (order_nodes_in_scc): Likewise.
17033 * recog.c (split_all_insns): Likewise.
17034 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
17035 * reload1.c (reload): Likewise.
17036 * sched-rgn.c (haifa_find_rgns): Likewise.
17037 (split_edges): Likewise.
17038 (compute_trg_info): Likewise.
17039 * sel-sched.c (init_seqno): Likewise.
17040 * store-motion.c (remove_reachable_equiv_notes): Likewise.
17041 * tree-into-ssa.c (update_ssa): Likewise.
17042 * tree-ssa-live.c (live_worklist): Likewise.
17043 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
17044 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
17046 (try_peel_loop): Likewise.
17047 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
17049 * tree-ssa-pre.c (compute_antic): Likewise.
17050 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
17051 * tree-stdarg.c (reachable_at_most_once): Likewise.
17052 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
17053 * var-tracking.c (vt_find_locations): Likewise.
17055 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17057 * sbitmap.h (auto_sbitmap): New class.
17059 2016-07-26 Alan Modra <amodra@gmail.com>
17062 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
17065 2016-07-25 David Malcolm <dmalcolm@redhat.com>
17067 * input.c (selftest::temp_source_file::temp_source_file): Fix
17068 missing "%s" in fprintf.
17070 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
17072 PR middle-end/71732
17073 * cselib.c (cselib_process_insn): Invalidate argument slots for
17076 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17078 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
17079 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
17080 vmulxh_lane_f16, vmulxh_laneq_f16): New.
17082 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17084 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17085 * config/aarch64/aarch64.md (fma, fnma): Support HF.
17086 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
17088 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17090 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17091 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
17093 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
17094 (add<mode>3): Likewise.
17095 (sub<mode>3): Likewise.
17096 (mul<mode>3): Likewise.
17097 (div<mode>3): Likewise.
17098 (*div<mode>3): Likewise.
17099 (<fmaxmin><mode>3): Extend to HF.
17100 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
17101 (fabd<mode>3): Likewise.
17102 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
17103 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
17104 (aarch64_fmulx<mode>): Likewise.
17105 (aarch64_fac<optab><mode>): Likewise.
17106 (aarch64_frecps<mode>): Likewise.
17107 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
17108 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
17109 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
17110 (VSDQ_HSDI): Support HI.
17111 (fcvt_target, FCVT_TARGET): Likewise.
17112 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
17113 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
17114 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
17115 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
17116 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
17117 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
17118 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
17119 vrsqrtsh_f16): New.
17121 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17123 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
17124 * config/aarch64/aarch64-builtins.c (hi_UP): New.
17125 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17126 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
17128 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
17129 (aarch64_cm<optab><mode>): Likewise.
17130 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
17131 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
17132 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
17133 (sqrt<mode>2): Likewise.
17134 (*sqrt<mode>2): Likewise.
17135 (abs<mode>2): Likewise.
17136 (<optab><mode>hf2): New pattern for HF mode.
17137 (<optab>hihf2): Likewise.
17138 * config/aarch64/arm_neon.h: Include arm_fp16.h.
17139 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
17140 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
17142 * config/aarch64/arm_fp16.h: New file.
17143 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
17144 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
17145 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
17146 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
17147 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
17148 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
17149 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
17150 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
17151 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
17152 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
17153 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
17154 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
17157 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17159 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
17160 reduc_smin_scal_): Use VDQIF_F16.
17161 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
17162 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
17164 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
17165 * config/aarch64/iterators.md (VDQIF_F16): New.
17166 (vp): Support HF modes.
17167 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
17168 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
17170 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17172 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
17173 "*aarch64_mulx_elt_from_dup<mode>".
17174 (*aarch64_mul3_elt<mode>): Update schedule type.
17175 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
17176 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
17177 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
17178 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
17179 (f, fp): Support HF modes.
17180 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
17181 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
17182 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
17183 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
17184 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
17185 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
17187 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17189 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17190 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
17192 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
17195 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17197 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17198 * config/aarch64/aarch64-simd.md
17199 (aarch64_rsqrts<mode>): Extend to HF modes.
17200 (fabd<mode>3): Likewise.
17201 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
17202 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
17203 (aarch64_<maxmin_uns>p<mode>): Likewise.
17204 (<su><maxmin><mode>3): Likewise.
17205 (<maxmin_uns><mode>3): Likewise.
17206 (<fmaxmin><mode>3): Likewise.
17207 (aarch64_faddp<mode>): Likewise.
17208 (aarch64_fmulx<mode>): Likewise.
17209 (aarch64_frecps<mode>): Likewise.
17210 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
17211 (add<mode>3): Extend to HF modes.
17212 (sub<mode>3): Likewise.
17213 (mul<mode>3): Likewise.
17214 (div<mode>3): Likewise.
17215 (*div<mode>3): Likewise.
17216 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
17218 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
17219 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
17220 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
17221 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
17222 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
17223 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
17224 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
17225 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
17226 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
17227 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
17228 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
17229 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
17230 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
17231 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
17233 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17235 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
17236 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17237 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
17238 (neg<mode>2): Likewise.
17239 (abs<mode>2): Likewise.
17240 (<frint_pattern><mode>2): Likewise.
17241 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
17242 (<optab><VDQF:mode><fcvt_target>2): Likewise.
17243 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
17244 (ftrunc<VDQF:mode>2): Likewise.
17245 (<optab><fcvt_target><VDQF:mode>2): Likewise.
17246 (sqrt<mode>2): Likewise.
17247 (*sqrt<mode>2): Likewise.
17248 (aarch64_frecpe<mode>): Likewise.
17249 (aarch64_cm<optab><mode>): Likewise.
17250 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
17252 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
17253 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
17255 * config/aarch64/arm_neon.h (vdup_n_f16): New.
17256 (vdupq_n_f16): Likewise.
17257 (vld1_dup_f16): Use vdup_n_f16.
17258 (vld1q_dup_f16): Use vdupq_n_f16.
17259 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
17260 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
17261 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
17262 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
17263 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
17264 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
17265 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
17266 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
17267 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
17268 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
17269 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
17270 vsqrt_f16, vsqrtq_f16): New.
17272 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17274 * config/aarch64/aarch64-simd.md
17275 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
17276 (aarch64_ext<mode>): Likewise.
17277 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
17278 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
17279 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
17281 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
17283 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
17284 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
17285 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
17286 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
17287 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
17288 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
17289 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
17291 (vmov_n_f16): Reimplement using vdup_n_f16.
17292 (vmovq_n_f16): Reimplement using vdupq_n_f16..
17294 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17296 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
17297 "frame_related_p". Generate CFA annotation when it's necessary.
17298 (aarch64_expand_prologue): Use aarch64_add_constant.
17299 (aarch64_expand_epilogue): Likewise.
17300 (aarch64_output_mi_thunk): Pass "false" when calling
17301 aarch64_add_constant.
17303 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17305 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
17308 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17310 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
17311 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
17312 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
17313 (aarch64_build_constant): Delete.
17315 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
17318 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17320 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17321 flag_toplevel_reorder.
17323 2016-07-25 Richard Biener <rguenther@suse.de>
17325 * cgraph.c (cgraph_node::verify_node): Compare against builtin
17326 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
17327 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
17328 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
17329 (streamer_get_builtin_tree): Likewise.
17330 (streamer_write_builtin): Likewise.
17331 * lto-streamer.h (LTO_builtin_decl): Remove.
17332 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
17333 (lto_input_scc): Remove LTO_builtin_decl handling.
17334 (lto_input_tree_1): Liekwise.
17335 * lto-streamer-out.c (lto_output_tree_1): Remove special
17336 handling of builtins.
17337 (DFS::DFS): Likewise.
17338 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
17339 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
17341 (streamer_write_builtin): Remove.
17343 2016-07-25 Martin Liska <mliska@suse.cz>
17345 * lto-cgraph.c (input_symtab): Don't call get_working_sets
17346 if flag_auto_profile is set to true.
17348 2016-07-25 Martin Liska <mliska@suse.cz>
17350 PR gcov-profile/71868
17351 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
17352 have a function with multiple latches, count them all.
17354 2016-07-25 Martin Liska <mliska@suse.cz>
17356 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
17358 2016-07-25 Martin Liska <mliska@suse.cz>
17360 PR tree-optimization/71987
17361 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
17362 just for SSA_NAMEs. Fix GNU coding style.
17364 2016-07-25 Martin Liska <mliska@suse.cz>
17366 PR gcov-profile/64874
17367 * gcov-io.h: Update command about file format.
17368 * gcov-iov.c (main): Adapt the numbering scheme.
17370 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
17372 PR middle-end/66726
17373 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
17374 whose result is used in PHI.
17375 (final_range_test_p): Likewise.
17376 (maybe_optimize_range_tests): Likewise.
17378 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
17380 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17381 Reformat two multi-line strings.
17383 2016-07-22 Martin Sebor <msebor@redhat.com>
17385 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
17387 2016-07-22 Martin Sebor <msebor@redhat.com>
17390 * doc/extend.texi (Compound Literals): Correct and clarify.
17391 (Cast to Union): Same.
17393 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
17395 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17396 comments to explain why certain error messages make mention of
17397 undocumented options.
17398 (rs6000_invalid_builtin): Change error messages to replace mention
17399 of undocumented options with mention of the -mcpu=power9 option
17400 that enables those undocumented options.
17401 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
17402 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
17403 definition of this macro to correct an existing error.
17404 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
17405 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
17406 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
17407 descriptions of built-in functions so that they depend on
17408 -mcpu=power9 instead of on the corresponding undocumented flags.
17409 * doc/invoke.texi (Option Summary): Remove all mention of newly
17410 undocumented flags.
17411 (IBM RS/6000 and PowerPC Options): Likewise.
17412 * doc/md.texi (Constraints for Particuliar Machines): Remove all
17413 mention of newly undocumented flags.
17415 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
17417 * ipa-cp.c (determine_versionability): Do not create constprop clones,
17418 when target_clones attribute is set.
17420 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17422 * common.opt (funsafe-loop-optimizations): Mark ignore.
17423 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
17424 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
17426 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
17427 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
17429 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17431 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17433 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17435 (number_of_iterations_exit): Warn missed loop optimization for
17436 possible infinite loops.
17438 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
17441 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
17442 when to emit a ".machine" pseudo-op.
17444 2016-07-22 Martin Liska <mliska@suse.cz>
17446 PR gcov-profile/69028
17447 PR gcov-profile/62047
17448 * coverage.c (coverage_compute_lineno_checksum): Do not
17449 calculate checksum for fns w/o xloc.file.
17450 (coverage_compute_profile_id): Likewise.
17452 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
17454 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
17455 (avr_secondary_reload): ...and implementation.
17456 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
17457 * config/avr/avr.md (reload_in<mode>): Remove insns.
17458 (adjust_len) [lpm]: Remove insn attribute value.
17459 * config/avr/predicates.md (flash_operand): Remove insn predicate.
17461 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17463 PR middle-end/71876
17464 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
17466 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
17467 * calls.c (special_function_p): Remove the special handling of the
17468 "__builtin_" prefix.
17470 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17472 PR middle-end/71876
17473 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
17474 if STMT may be an alloca call.
17475 (gimple_alloca_call_p, alloca_call_p): Return only true for the
17476 builtin alloca call.
17477 * calls.h (gimple_maybe_alloca_call_p): New function.
17478 * tree-inline.c (inline_forbidden_p_stmt): Use
17479 gimple_maybe_alloca_call_p here.
17481 2016-07-21 David Malcolm <dmalcolm@redhat.com>
17483 * spellcheck-tree.c (best_macro_match::best_macro_match):
17484 Explictly specify the template arguments when invoking the base
17485 class constructor, to help older C++ compilers.
17487 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17490 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
17491 before builtin_decl_implicit.
17493 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17495 * optabs.c (emit_condiitonal_move): Short circuit for identical
17498 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17500 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
17501 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
17502 (noce_conversion_profitable_p): New.
17503 (noce_try_store_flag_constants): Use it.
17504 (noce_try_addcc): Likewise.
17505 (noce_try_store_flag_mask): Likewise.
17506 (noce_try_cmove): Likewise.
17507 (noce_try_cmove_arith): Likewise.
17508 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
17510 (noce_convert_multiple_sets): Move cost model to here, from...
17511 (bb_ok_for_noce_convert_multiple_sets) ...here.
17512 (noce_process_if_block): Update calls for above changes.
17513 (noce_find_if_block): Record new noce_if_info parameters.
17515 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17517 * target.def (max_noce_ifcvt_seq_cost): New.
17518 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
17519 * doc/tm.texi: Regenerate.
17520 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
17521 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
17522 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
17523 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
17524 * doc/invoke.texi: Document new params.
17526 2016-07-21 Richard Biener <rguenther@suse.de>
17528 PR tree-optimization/71947
17529 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
17530 ranges have useful limit_vr information.
17532 2016-07-21 Richard Biener <rguenther@suse.de>
17534 * function-tests.c (build_trivial_generic_function): Set
17535 BLOCK_SUPERCONTEXT of DECL_INITIAL.
17536 * omp-low.c (create_omp_child_function): Likewise.
17537 (grid_expand_target_grid_body): Likewise.
17538 * cgraphunit.c (init_lowered_empty_function): Likewise.
17539 (cgraph_node::expand_thunk): Likewise.
17540 * tree-parloops.c (create_loop_fn): Likewise.
17541 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
17543 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17545 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
17548 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
17550 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
17551 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
17552 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
17553 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
17554 values for insn attribute.
17555 * config/avr/avr.c (avr_out_insert_notbit): New function.
17556 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
17557 ADJUST_LEN_INSV_NOTBIT_0/_7.
17558 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
17560 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17562 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
17563 (chrec_convert_1, chrec_convert): Ditto.
17564 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
17565 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
17566 * tree-vrp.c (adjust_range_with_scev): Ditto.
17567 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
17568 (scev_var_range_cant_overflow): New function.
17569 (scev_probably_wraps_p): New parameter. Call above function.
17570 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
17572 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17574 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
17575 by removing computation of may_be_zero.
17577 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17579 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
17581 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
17583 Improving concepts performance and diagnostics.
17584 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
17585 for constraint satisfaction and subsumption.
17586 * timevar.h (auto_timevar): New constructor that matches the push/pop
17587 pattern of usage in pt.c.
17589 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17591 * hwint.h (HOST_WIDE_INT_0): New define.
17592 (HOST_WIDE_INT_0U): Ditto.
17593 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
17594 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
17595 * simplify-rtx.c: Ditto.
17596 * tree-object-size.c: Ditto.
17598 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17600 * config/s390/s390.c (s390_encode_section_info): Remove mode size
17603 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17605 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
17606 * combine.c: Use HOST_WIDE_INT_M1U instead of
17607 ~(unsigned HOST_WIDE_INT) 0.
17608 * double-int.h: Ditto.
17610 * dwarf2asm.c:Ditto.
17612 * genmodes.c: Ditto.
17614 * read-rtl.c: Ditto.
17615 * tree-ssa-loop-ivopts.c: Ditto.
17616 * tree-ssa-loop-prefetch.c: Ditto.
17617 * tree-vect-generic.c: Ditto.
17618 * tree-vect-patterns.c: Ditto.
17621 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17623 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
17624 constant addresses outside [0,0xc0] into a register.
17625 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
17626 cases where the base address register is unused after.
17627 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
17628 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
17629 (avr_out_store_psi_reg_disp_tiny): Same.
17631 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17633 Implement attribute progmem on reduced Tiny cores by adding
17634 flash offset 0x4000 to respective symbols.
17637 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
17638 documentation how it works on reduced Tiny cores.
17639 (AVR Named Address Spaces): No support for reduced Tiny.
17640 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
17641 (avr_address_tiny_pm_p): New static function.
17642 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
17643 if the address is in progmem.
17644 (avr_assemble_integer): Same.
17645 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
17646 for symbol_ref in progmem.
17647 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
17648 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
17649 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
17651 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
17653 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
17654 * configure: Regenerate.
17655 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
17656 (USE_THIN_ARCHIVES): New variable.
17657 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
17658 this archive as a thin archive.
17660 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17662 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
17663 same location as last time, don't skip if we have fix-it hints.
17664 Clarify the skipping logic by converting it from one "if" clause
17665 to repeated "if" clauses.
17666 * spellcheck-tree.c: Include "cpplib.h".
17667 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
17668 (best_macro_match::best_macro_match): New constructor.
17669 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
17670 Move here from c/c-decl.c.
17671 (class best_macro_match): Move here from c/c-decl.c, converting
17672 from a typedef to a subclass, gaining a ctor.
17674 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17676 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
17677 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
17679 (avr_addr_space_diagnose_usage): ...and implementation.
17680 (avr_addr_space_supported_p): New function.
17681 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
17682 report bad address space usage if that space is supported.
17683 (avr_insert_attributes): Same. No more complain about unsupported
17685 * config/avr/avr-c.c (tm_p.h): Include it.
17686 (avr_cpu_cpp_builtins): Only define addr-space related built-in
17687 macro if avr_addr_space_supported_p.
17689 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17691 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17692 flag_toplevel_reorder.
17694 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17696 * gcc-rich-location.c
17697 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
17699 * gcc-rich-location.h
17700 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
17702 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17704 * target.def (addr_space): Add new diagnose_usage to hook vector.
17705 * targhooks.c (default_addr_space_diagnose_usage): Add default
17706 implementation and...
17707 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
17708 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
17709 is some address space, call targetm.addr_space.diagnose_usage.
17710 * doc/tm.texi.in (Named Address Spaces): Add anchor for
17711 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
17712 * doc/tm.texi: Regenerate.
17714 2016-07-20 Martin Liska <mliska@suse.cz>
17716 PR middle-end/71898
17717 * graphite-isl-ast-to-gimple.c (later_of_the_two):
17718 Properly handly PHI stmts.
17720 2016-07-20 Bin Cheng <bin.cheng@arm.com>
17722 PR tree-optimization/71503
17723 PR tree-optimization/71683
17724 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
17727 2016-07-20 Martin Liska <mliska@suse.cz>
17729 * doc/invoke.texi (-fipa-ra): Document when the option is
17730 disabled. Fix a typo.
17732 2016-07-20 Martin Liska <mliska@suse.cz>
17734 * Makefile.in: Include fibonacci_heap.c
17735 * fibonacci_heap.c: New file.
17736 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
17737 (fibonacci_heap::union_with): Fix deletion of the second heap.
17738 * selftest-run-tests.c (selftest::run_tests): Incorporate
17739 fibonacci heap tests.
17740 * selftest.h: Declare fibonacci_heap_c_tests.
17742 2016-07-20 Martin Liska <mliska@suse.cz>
17744 * selftest-run-tests.c (selftest::run_tests): New function.
17745 * selftest.h (sreal_c_tests): Declare.
17746 * sreal.c (sreal_verify_basics): New function.
17747 (verify_aritmetics): Likewise.
17748 (sreal_verify_arithmetics): Likewise.
17749 (verify_shifting): Likewise.
17750 (sreal_verify_shifting): Likewise.
17751 (void sreal_c_tests): Likewise.
17753 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17755 PR rtl-optimization/71916
17756 * cfgrtl.c (contains_no_active_insn_p): Return false also for
17757 bb which have a single succ fake edge.
17759 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
17762 * dwarf2out.c (gen_subprogram_die): Only call
17763 gen_unspecified_parameters_die while dumping early dwarf.
17765 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17767 PR middle-end/71874
17768 * gimple-fold.c (fold_builtin_memory_op): Use
17769 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
17771 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
17773 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
17774 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
17775 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
17776 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
17777 * combine.c: Ditto.
17780 * double-int.c: Ditto.
17782 * dwarf2out.c: Ditto.
17785 * fold-const.c: Ditto.
17786 * function.c: Ditto.
17788 * genmodes.c: Ditto.
17792 * loop-doloop.c: Ditto.
17793 * loop-invariant.c: Ditto.
17794 * loop-iv.c: Ditto.
17799 * rtlanal.c: Ditto.
17800 * simplify-rtx.c: Ditto.
17801 * stor-layout.c: Ditto.
17803 * tree-ssa-loop-ivopts.c: Ditto.
17804 * tree-vect-generic.c: Ditto.
17805 * tree-vect-patterns.c: Ditto.
17810 * wide-int-print.cc: Ditto.
17811 * wide-int.cc: Ditto.
17812 * wide-int.h: Ditto.
17814 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17816 * selftest.c (selftest::assert_streq): Handle NULL values of
17817 val_actual and val_expected.
17819 2016-07-19 Martin Jambor <mjambor@suse.cz>
17822 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
17823 rather than cgraph_create_node to get a call graph node.
17825 2016-07-19 Richard Biener <rguenther@suse.de>
17827 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
17828 handle all tcc_constant bases and valueize SSA names.
17829 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
17830 tcc_constant bases.
17832 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17834 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
17835 the flags of the exit block and bb2, not just the entry block.
17837 2016-07-19 Richard Biener <rguenther@suse.de>
17839 PR tree-optimization/71901
17840 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17841 align member, group stuff with the bitfield.
17842 (vn_ref_op_align_unit): New inline.
17843 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
17844 record element alignment and operand 3 unchanged.
17845 (ao_ref_init_from_vn_reference): Adjust.
17846 (valueize_refs_1): Likewise.
17847 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17849 2016-07-19 Richard Biener <rguenther@suse.de>
17851 PR tree-optimization/71908
17852 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
17853 symbolic constants in a more reliable way.
17855 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
17857 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
17859 (vect_update_inits_of_drs): Likewise.
17860 (vect_create_cond_for_alias_checks): Likewise.
17861 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
17863 2016-07-19 Richard Biener <rguenther@suse.de>
17866 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
17867 with an abstract origin that is not an inlined function outer
17868 scope add a self-reference as abstract origin.
17869 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
17871 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17874 * config/rs6000/rs6000.c (rs6000_function_value): Fix
17875 unintentional System V.4 structure return breakage for structures
17876 with a single floating point element.
17878 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17880 PR tree-optimization/71734
17881 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
17882 contains REF, use it to check safelen, assume that safelen value
17883 must be greater 1, fix style.
17884 (ref_indep_loop_p_2): Add REF_LOOP argument.
17885 (ref_indep_loop_p): Pass LOOP as additional argument to
17886 ref_indep_loop_p_2.
17888 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
17890 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
17891 allocation in the prologue.
17892 * explow.c (get_dynamic_stack_base): New function to return an address
17893 expression for the dynamic stack base.
17894 (get_dynamic_stack_size): New function to do the required dynamic stack
17895 space size calculations.
17896 (allocate_dynamic_stack_space): Use new functions.
17897 (align_dynamic_address): Move some code from
17898 allocate_dynamic_stack_space to new function.
17899 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
17901 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17903 * config/s390/s390.c (s390_encode_section_info): Always set
17904 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
17907 2016-07-18 Richard Biener <rguenther@suse.de>
17909 PR tree-optimization/71893
17910 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
17911 for sizetype cast added by array_ref_element_size.
17912 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17914 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
17916 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
17917 register parameters. Remove code to initialize argument pointer
17918 on TARGET_64BIT. Optimize call to _mcount when it can be reached
17919 using a pc-relative branch. Cleanup conditional code.
17920 * config/pa/pa.md (call_mcount): New expander.
17921 (call_mcount_nonpic): New insn.
17922 (call_mcount_pic): New insn and split.
17923 (call_mcount_pic_post_reload): New insn.
17924 (call_mcount_64bit): New insn and split.
17925 (call_mcount_64bit_post_reload): New insn.
17927 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
17929 * config/avr/predicates.md (const_m255_to_m1_operand): New.
17930 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
17931 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
17932 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
17933 (*usum_widenqihi3, *udiff_widenqihi3)
17934 (*addhi3_zero_extend.const): New combiner insns.
17935 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
17936 just 1 bit is affected.
17937 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
17938 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
17940 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
17942 * omp-low.c (lower_omp_target): Mark data clauses with
17943 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
17944 zero-length subarrays.
17946 2016-07-15 Richard Biener <rguenther@suse.de>
17948 PR tree-optimization/71881
17949 * tree-loop-distribution.c (destroy_loop): Remove blocks in
17950 reverse DOM order to make debug temp generation happy.
17952 2016-07-15 Richard Biener <rguenther@suse.de>
17954 PR tree-optimization/71887
17955 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
17956 verify it is not zero for division / modulo handling.
17957 (value_replacement): Adjust.
17959 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
17960 Julian Brown <julian@codesourcery.com>
17962 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
17963 * config/aarch64/aarch64-cost-tables.h
17964 (vulcan_extra_costs): New variable.
17965 * config/aarch64/aarch64.c
17966 (vulcan_addrcost_table): Likewise.
17967 (vulcan_regmove_cost): Likewise.
17968 (vulcan_vector_cost): Likewise.
17969 (vulcan_branch_cost): Likewise.
17970 (vulcan_tunings): Likewise.
17972 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
17974 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
17975 (output_in_order): Loop over undefined variables too. Output them
17976 via assemble_undefined_decl. Skip variables that correspond to hard
17977 registers or have value-exprs.
17978 * varpool.c (symbol_table::output_variables): Handle undefined
17979 variables together with defined ones.
17981 2016-07-15 Richard Biener <rguenther@suse.de>
17983 * tree-ssa-pre.c (get_representative_for): Make sure to return
17984 the value number of SSA names.
17985 (phi_translate_1): get_representative_for cannot return NULL.
17986 (do_pre_regular_insertion): Remove redundant call to
17987 fully_constant_expression.
17988 (do_pre_partial_partial_insertion): Likewise.
17990 2016-07-15 Bin Cheng <bin.cheng@arm.com>
17992 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
17993 (derive_simple_iv_with_niters): New function.
17994 (simple_iv): Rewrite using simple_iv_with_niters.
17995 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
17996 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17998 (number_of_iterations_exit): Rewrite using above function.
17999 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
18002 2016-07-15 Richard Biener <rguenther@suse.de>
18004 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
18005 vec_construct cost.
18007 2016-07-14 Jakub Jelinek <jakub@redhat.com>
18009 PR tree-optimization/71872
18010 * tree-data-ref.c (get_references_in_stmt): Ignore references
18011 with is_gimple_constant get_base_address.
18013 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
18015 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
18016 (TARGET_HAVE_LDACQD): New macro.
18017 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
18018 than TARGET_HAVE_LDACQ.
18019 (arm_load_acquire_exclusivedi): Likewise.
18020 (arm_store_release_exclusivedi): Likewise.
18022 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
18024 PR rtl-optimization/71878
18025 * lra-constraints.c (match_reload): Pass information about other
18026 output operands. Create new unique register value if matching input
18027 operand shares same register value as output operand being considered.
18028 (curr_insn_transform): Record output operands already processed.
18030 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18033 PR tree-optimization/70923
18034 * tree-vect-patterns.c: Include mult-synthesis.h.
18035 (target_supports_mult_synth_alg): New function.
18036 (synth_lshift_by_additions): Likewise.
18037 (apply_binop_and_append_stmt): Likewise.
18038 (vect_synth_mult_by_constant): Likewise.
18039 (target_has_vecop_for_code): Likewise.
18040 (vect_recog_mult_pattern): Use above functions to synthesize vector
18041 multiplication by integer constants.
18043 2016-07-14 Alan Modra <amodra@gmail.com>
18045 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
18046 gpr alternatives. Correct '*' placement on Y,r alternative.
18047 Add '*' on operand 1 of r,r alternative.
18049 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18051 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
18052 * expmed.h: ... Here.
18054 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
18056 * gimple.h (stmt_can_terminate_bb_p): New function.
18057 * tree-cfg.c (need_fake_edge_p): Rename to ...
18058 (stmt_can_terminate_bb_p): ... this; return true if stmt can
18059 throw external; handle const and pure calls.
18060 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
18062 2016-07-14 Richard Biener <rguenther@suse.de>
18064 PR tree-optimization/71866
18065 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
18066 (do_hoist_insertion): Avoid endless recursion when we
18067 didn't insert anything because we managed to simplify
18068 things down to a constant or SSA name.
18069 (fully_constant_expression): Re-write in terms of ...
18070 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
18071 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
18072 vn_nary_build_or_lookup_1.
18073 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
18074 (vn_nary_build_or_lookup): ... this which now wraps it.
18076 2016-07-14 Alan Modra <amodra@gmail.com>
18079 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
18080 with p9_vector override before power9-dform override.
18082 2016-07-13 Andi Kleen <ak@linux.intel.com>
18084 * value-prof.c (gimple_value_profile_transformations): Don't run
18085 when auto_profile is on.
18087 2016-07-13 Andi Kleen <ak@linux.intel.com>
18089 * auto-profile.c (update_inlined_ind_target,
18090 afdo_indirect_call): Print information to dump file.
18092 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
18094 * genrecog.c (special_predicate_operand_p): New function.
18095 (predicate_name): Move function.
18096 (validate_pattern): Don't warn about missing mode for all
18097 define_special_predicate predicates.
18099 2016-07-13 Bin Cheng <bin.cheng@arm.com>
18101 * tree-vect-data-refs.c (vect_no_alias_p): New function.
18102 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
18103 resolve alias checks which are known at compilation time.
18104 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
18105 alias checks are resolved. Move dump info for too many runtime
18106 alias checks to here...
18107 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
18109 2016-07-13 Richard Biener <rguenther@suse.de>
18111 PR tree-optimization/24574
18112 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
18113 position and add shift, rotate, divison and modulo support
18115 (value_replacement): Pass in argument position to absorbing_element_p.
18117 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
18120 * ipa-inline-transform.c (inline_call): Support
18121 instrumented thunks.
18123 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18125 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
18126 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
18128 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
18129 Baseline. Make initial alternative TARGET_32BIT only.
18130 (udivsi3): Likewise.
18131 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
18132 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
18135 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18137 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
18138 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
18139 availability with TARGET_HAVE_MOVT.
18140 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
18141 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
18142 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
18144 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
18145 extra instruction if MOVW is available. Use a cost variable
18146 incremented by COSTS_N_INSNS (1) when the condition match rather than
18147 returning an arithmetic expression based on COSTS_N_INSNS. Make
18148 constant with bottom half word zero cost 2 instruction if MOVW is
18150 * config/arm/arm.md (define_attr "arch"): Add v8mb.
18151 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
18152 target is ARMv8-M Baseline.
18153 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
18154 (arm_movtas_ze): Likewise.
18155 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
18156 alternative for constants satisfying j constraint.
18157 (thumb1_movsi_insn): Likewise.
18158 (movsi splitter for K alternative): Tighten condition to not trigger
18159 if movt is available and j constraint is satisfied.
18160 (Pe immediate splitter): Likewise.
18161 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
18162 constant fitting in an halfword to use MOVW.
18163 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
18166 2016-07-13 Richard Biener <rguenther@suse.de>
18168 PR middle-end/71104
18169 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
18170 gimplifying the LHS. Make sure to gimplify a returning twice
18171 call LHS without using SSA names.
18173 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18175 * tree-data-ref.c (find_data_references_in_stmt): Remove
18176 unnecessary call to vec::release.
18177 (graphite_find_data_references_in_stmt): Likewise.
18178 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
18179 * tree-vect-stmts.c (vectorizable_condition): Likewise.
18181 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18183 * cfgexpand.c (expand_used_vars): Make the type of a local
18185 * genmatch.c (lower_for): Likewise.
18186 * haifa-sched.c (haifa_sched_init): Likewise.
18187 (add_to_speculative_block): Likewise.
18188 (create_check_block_twin): Likewise.
18189 * predict.c (handle_missing_profiles): Likewise.
18190 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
18191 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
18192 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
18194 (maybe_lower_iteration_bound): Likewise.
18195 * tree-ssa-sccvn.c (DFS): Likewise.
18196 * tree-stdarg.c (reachable_at_most_once): Likewise.
18197 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
18198 (vectorizable_store): Likewise.
18200 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18202 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
18203 (sccvn_dom_walker): make cond_stack an auto_vec.
18205 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18207 * ree.c (struct ext_state): Make type of members auto_vec.
18208 (find_and_remove_re): Adjust.
18210 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18212 * cfgexpand.c (struct stack_vars_data): Make type of fields
18214 (expand_used_vars): Adjust.
18216 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18218 * ipa.c (record_cdtor_fn): Adjust.
18219 (build_cdtor_fns): Likewise.
18220 (ipa_cdtor_merge): Make static_ctors and static_dtors local
18223 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18225 * genextract.c (struct accum_extract): Add constructor and make
18227 (gen_insn): Adjust.
18229 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18231 * tree.c (struct free_lang_data_d): Add constructor and change
18232 types of members to ones that automatically manage resources.
18233 (fld_worklist_push): Adjust.
18234 (find_decls_types): Likewise.
18235 (find_decls_types_in_eh_region): Likewise.
18236 (free_lang_data_in_cgraph): Stop manually creating and
18237 destroying members of free_lang_data_d.
18239 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
18241 PR rtl-optimization/68961
18242 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
18243 peephole variant. Use sse_reg_operand predicates.
18245 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
18247 * config/i386/predicates.md (x86_64_immediate_operand)
18248 <case CONST_INT>: Remove unneeded truncation to DImode.
18249 <case CONST>: Ditto.
18250 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18252 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18255 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
18256 The xxperm and xxpermr instructions require that the 2nd input
18257 operand overlap with the output operand, and not the 1st.
18258 (altivec_vperm_v8hiv16qi): Likewise.
18259 (altivec_vperm_<mode>_uns_internal): Likewise.
18260 (altivec_vpermr_<mode>_internal): Likewise.
18261 (vperm_v8hiv4si): Likewise.
18262 (vperm_v16qiv8hi): Likewise.
18264 2016-07-12 Nathan Sidwell <nathan@acm.org>
18266 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
18267 when -mno-pic-data-is-text-relative is in effect, by default.
18268 * doc/invoke.texi (mpic-data-is-text-relative): Document new
18269 behavior and clarify.
18271 2016-07-12 Martin Liska <mliska@suse.cz>
18273 * params.def: Add avg-loop niter.
18274 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
18275 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
18276 * doc/invoke.texi: Document the new parameter.
18278 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18280 PR middle-end/71700
18281 * expr.c (store_constructor): Mask sign-extended bits when widening
18282 sub-word constructor element at the start of a word.
18284 2016-07-12 Martin Liska <mliska@suse.cz>
18286 * Makefile.in: Append rule for params-options.h.
18287 * params-options.h: New file.
18289 2016-07-12 Martin Liska <mliska@suse.cz>
18291 * ira-build.c (mark_loops_for_removal): Properly iterate
18294 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
18295 Richard Biener <rguenther@suse.de>
18297 PR tree-optimization/23286
18298 PR tree-optimization/70159
18299 * doc/invoke.texi: Document -fcode-hoisting.
18300 * common.opt (fcode-hoisting): New flag.
18301 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
18302 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
18303 (do_regular_insertion): Rename to ...
18304 (do_pre_regular_insertion): ... this and amend general comments
18305 on insertion strathegy.
18306 (do_partial_partial_insertion): Rename to ...
18307 (do_pre_partial_partial_insertion): ... this.
18308 (do_hoist_insertion): New function.
18309 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
18310 and call do_hoist_insertion properly.
18312 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
18313 (pass_pre::execute): Register hoist_insert stats.
18315 2016-07-12 Jakub Jelinek <jakub@redhat.com>
18317 PR middle-end/71716
18318 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
18319 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
18320 is different from mode's bitsize. Small cleanup.
18322 2016-07-12 Richard Biener <rguenther@suse.de>
18324 PR rtl-optimization/68961
18325 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
18326 to simplify to a non-constant.
18328 2016-07-11 Jakub Jelinek <jakub@redhat.com>
18330 PR middle-end/71758
18331 * omp-low.c (expand_omp_target): Gimplify device.
18333 PR tree-optimization/71823
18334 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
18335 to get vec_oprnds2 from op2.
18337 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
18339 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
18340 Hoist common subexpressions.
18341 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18343 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
18346 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
18347 prevent generation of 'stxsiwx' on pre Power8 hardware.
18349 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18351 * input.c: Include cpplib.h.
18352 (selftest::temp_source_file): New class.
18353 (selftest::temp_source_file::temp_source_file): New ctor.
18354 (selftest::temp_source_file::~temp_source_file): New dtor.
18355 (selftest::should_have_column_data_p): New function.
18356 (selftest::test_should_have_column_data_p): New function.
18357 (selftest::temp_line_table): New class.
18358 (selftest::temp_line_table::temp_line_table): New ctor.
18359 (selftest::temp_line_table::~temp_line_table): New dtor.
18360 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
18361 it to create a temp_line_table.
18362 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
18363 locations that are known to have column data.
18364 (selftest::line_table_case): New struct.
18365 (selftest::test_reading_source_line): Move tempfile handling
18366 to class temp_source_file.
18367 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
18368 (selftest::assert_token_loc_eq): New function.
18369 (ASSERT_TOKEN_LOC_EQ): New macro.
18370 (selftest::test_lexer): New function.
18371 (selftest::boundary_locations): New array.
18372 (selftest::input_c_tests): Call test_should_have_column_data_p.
18373 Loop over a test matrix of interesting values of location and
18374 default_range_bits, calling test_lexer on each case in the matrix.
18375 Move call to test_accessing_ordinary_linemaps into the matrix.
18376 * selftest.h (ASSERT_EQ): Reimplement in terms of...
18377 (ASSERT_EQ_AT): New macro.
18379 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
18382 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
18383 Don't convert TImode in debug insn.
18385 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
18387 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
18388 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
18389 (tree_type_common::lang_flag_7): New.
18390 (tree_type_common::spare): Reduce size.
18391 * tree.h (TYPE_ALIGN_OK): Remove.
18392 (TYPE_LANG_FLAG_7): New.
18393 (get_inner_reference): Adjust header.
18394 * print-tree.c (print_node): Adjust.
18395 * expr.c (get_inner_reference): Remove parameter keep_aligning.
18396 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
18397 calls to get_inner_reference.
18398 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
18399 handling of TYPE_ALIGN_OK.
18400 * builtins.c (get_object_alignment_2): Adjust call to
18401 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
18402 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
18404 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
18405 * cfgexpand.c (expand_debug_expr): Likewise.
18406 * dbxout.c (dbxout_expand_expr): Likewise.
18407 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
18408 loc_list_from_tree, fortran_common): Likewise.
18409 * fold-const.c (optimize_bit_field_compare,
18410 decode_field_reference, fold_unary_loc, fold_comparison,
18411 split_address_to_core_and_offset): Likewise.
18412 * gimple-laddress.c (execute): Likewise.
18413 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
18414 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
18415 * hsa-gen.c (gen_hsa_addr): Likewise.
18416 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
18417 * tsan.c (instrument_expr): Likewise.
18418 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
18419 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
18420 * tree-affine.c (tree_to_aff_combination,
18421 get_inner_reference_aff): Adjust calls to get_inner_reference.
18422 * tree-data-ref.c (split_constant_offset_1,
18423 dr_analyze_innermost): Likewise.
18424 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
18425 * tree-sra.c (ipa_sra_check_caller): Likewise.
18426 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
18427 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
18428 bswap_replace): Likewise.
18429 * tree-vect-data-refs.c (vect_check_gather,
18430 vect_analyze_data_refs): Likewise.
18431 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
18432 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
18435 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18437 * Makefile.in (selftest-valgrind): New phony target.
18438 * function-tests.c (selftest::build_cfg): Delete pass instances
18439 created by the test.
18440 (selftest::convert_to_ssa): Likewise.
18441 (selftest::test_expansion_to_rtl): Likewise.
18442 * tree-cfg.c (selftest::test_linear_chain): Release dominator
18444 (selftest::test_diamond): Likewise.
18446 2016-07-11 Richard Biener <rguenther@suse.de>
18448 PR tree-optimization/71816
18449 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
18450 than replacing all of its operands.
18452 2016-07-11 Alan Modra <amodra@gmail.com>
18454 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
18455 (ctr<mode>): Add unspec.
18456 (ctr<mode>_internal*): Likewise.
18458 2016-07-08 James Bowman <james.bowman@ftdichip.com>
18460 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
18461 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
18463 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
18465 PR rtl-optimization/71621
18466 * lra-constraints.c (process_alt_operands): Check combination of
18467 reg class and mode.
18469 2016-07-08 Jason Merrill <jason@redhat.com>
18470 Richard Biener <rguenther@suse.de>
18472 P0145: Refining Expression Order for C++.
18473 * gimplify.c (initial_rhs_predicate_for): New.
18474 (gimplfy_modify_expr): Gimplify RHS before LHS.
18476 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18479 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18480 Allow standard error handling to take over when a wrong number
18481 of arguments is presented to __builtin_vec_ld () or
18482 __builtin_vec_st ().
18484 2016-07-08 Jiong Wang <jiong.wang@arm.com>
18486 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
18491 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
18492 __builtin_aarch64_fmaxv2sf.
18493 (vmaxnmq_f32): Likewise.
18494 (vmaxnmq_f64): Likewise.
18495 (vminnm_f32): Likewise.
18496 (vminnmq_f32): Likewise.
18497 (vminnmq_f64): Likewise.
18499 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18502 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
18503 enable -mfloat128-hardware by default.
18504 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
18505 that IEEE 128-bit hardware support needs.
18506 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18507 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
18508 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
18509 floating point requires.
18510 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18511 -mfloat128 and -mfloat128-hardware changes.
18513 2016-07-08 Alan Hayward <alan.hayward@arm.com>
18515 PR tree-optimization/71667
18516 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
18518 2016-07-08 Martin Liska <mliska@suse.cz>
18520 PR middle-end/71606
18521 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
18522 folding produces SAVE_EXPRs, thus return false for the type.
18524 2016-07-07 Martin Liska <mliska@suse.cz>
18526 * file-find.c (remove_prefix): New function.
18527 * file-find.h (remove_prefix): Declare the function.
18528 * gcc-ar.c (main): Skip a folder of the wrapper if
18529 a wrapped binary would point to the same file.
18531 2016-07-07 Jan Hubicka <jh@suse.cz>
18533 * tree-scalar-evolution.c (iv_can_overflow_p): export.
18534 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
18535 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
18537 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
18540 * ipa-inline-analysis.c (compute_inline_parameters): Set
18541 local.can_change_signature to false for intrumentation
18544 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18546 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
18547 with TARGET_HAVE_MOVT.
18548 (TARGET_HAVE_MOVT): Define.
18549 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
18550 availability with TARGET_HAVE_MOVT.
18551 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
18553 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
18555 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
18556 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
18557 * config/arm/constraints.md (define_constraint "j"): Use
18558 TARGET_HAVE_MOVT to check MOVT availability.
18560 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18562 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
18564 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18566 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
18567 (armv8-m.main): Likewise.
18568 (armv8-m.main+dsp): Likewise.
18569 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
18570 (FL_FOR_ARCH8M_MAIN): Likewise.
18571 * config/arm/arm-tables.opt: Regenerate.
18572 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
18573 armv8-m.main+dsp to BE8_LINK_SPEC.
18574 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
18575 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
18576 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
18577 Baseline and Mainline.
18578 (arm_option_override_internal): Also disable arm_restrict_it when
18579 !arm_arch_notm. Update comment for -munaligned-access to also cover
18581 (arm_file_start): Increase buffer size for printing architecture name.
18582 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
18583 and armv8-m.main+dsp.
18584 (mno-unaligned-access): Clarify that this is disabled by default for
18585 ARMv8-M Baseline architectures as well.
18587 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18589 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
18590 decide whether to prevent some libgcc routines being included for some
18591 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
18592 link between this condition and the one in
18593 libgcc/config/arm/lib1func.S.
18595 2016-07-07 Richard Biener <rguenther@suse.de>
18597 * tree-ssa-pre.c: Include alias.h.
18598 (compute_avail): If we have multiple VN_REFERENCEs with the
18599 same hashtable entry adjust that to make it a valid replacement
18600 for all of them with respect to alignment and aliasing
18601 when doing insertion.
18602 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
18603 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
18605 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
18609 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18610 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
18613 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18615 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
18616 (adjust_mems): Adjust.
18617 (adjust_insn): Likewise.
18618 (prepare_call_arguments): Likewise.
18620 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18622 * gcse.c (struct ls_expr): Make stores field a vector.
18623 (ldst_entry): Adjust.
18624 (free_ldst_entry): Likewise.
18625 (print_ldst_list): Likewise.
18626 (compute_ld_motion_mems): Likewise.
18627 (update_ld_motion_stores): Likewise.
18629 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18631 * gcse.c (struct ls_expr): Remove loads field.
18632 (ldst_entry): Adjust.
18633 (free_ldst_entry): Likewise.
18634 (print_ldst_list): Likewise.
18635 (compute_ld_motion_mems): Likewise.
18637 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18639 * store-motion.c (struct st_expr): Make antic_stores a vector.
18640 (st_expr_entry): Adjust.
18641 (free_st_expr_entry): Likewise.
18642 (print_store_motion_mems): Likewise.
18643 (find_moveable_store): Likewise.
18644 (compute_store_table): Likewise.
18645 (remove_reachable_equiv_notes): Likewise.
18646 (replace_store_insn): Likewise.
18647 (build_store_vectors): Likewise.
18649 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18651 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
18652 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
18654 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
18656 PR tree-optimization/71518
18657 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
18658 misalign also for outer loops with negative step.
18660 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
18662 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
18663 (cortex_a53_shift): Add mov_shift.
18664 (cortex_a53_shift_reg): Add new reservation for register shifts.
18665 (cortex_a53_alu): Remove bfm.
18666 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
18667 (cortex_a53_alu_extr): Add new reservation for EXTR.
18668 (bypasses): Improve bypass modelling.
18670 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18673 * config/avr/avr.c (avr_asm_select_section): Strip off
18674 SECTION_DECLARED from flags when calling get_section.
18676 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18678 * tree-vectorizer.h (vect_memory_access_type): Add
18679 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
18680 * tree-vect-stmts.c (compare_step_with_zero): New function.
18681 (perm_mask_for_reverse): Move further up file.
18682 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
18684 (get_negative_load_store_type): New function.
18685 (get_load_store_type): Call it. Add an ncopies argument.
18686 (vectorizable_mask_load_store): Update call accordingly and
18687 remove tests for negative steps.
18688 (vectorizable_store, vectorizable_load): Likewise. Handle new
18689 memory_access_types.
18691 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18693 * tree-vectorizer.h (vect_memory_access_type): New enum.
18694 (_stmt_vec_info): Add a memory_access_type field.
18695 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
18696 (vect_model_store_cost): Take an access type instead of a boolean.
18697 (vect_model_load_cost): Likewise.
18698 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
18699 vect_model_store_cost and vect_model_load_cost.
18700 * tree-vect-stmts.c (vec_load_store_type): New enum.
18701 (vect_model_store_cost): Take an access type instead of a
18702 store_lanes_p boolean. Simplify tests.
18703 (vect_model_load_cost): Likewise, but for load_lanes_p.
18704 (get_group_load_store_type, get_load_store_type): New functions.
18705 (vectorizable_store): Use get_load_store_type. Record the access
18706 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
18707 (vectorizable_load): Likewise.
18708 (vectorizable_mask_load_store): Likewise. Replace is_store
18709 variable with vls_type.
18711 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18713 * tree-vectorizer.h (vect_grouped_load_supported): Add a
18714 single_element_p parameter.
18715 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18716 Check the PR65518 case here rather than in vectorizable_load.
18717 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
18718 * tree-vect-stmts.c (vectorizable_load): Likewise.
18720 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18722 * tree-vectorizer.h (gather_scatter_info): New structure.
18723 (vect_check_gather_scatter): Return a bool rather than a decl.
18724 Replace return-by-pointer arguments with a single
18725 gather_scatter_info *.
18726 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
18727 (vect_analyze_data_refs): Update call accordingly.
18728 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18729 (vectorizable_mask_load_store): Likewise. Also record the
18730 offset dt and vectype in the gather_scatter_info.
18731 (vectorizable_store): Likewise.
18732 (vectorizable_load): Likewise.
18734 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18736 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
18737 strided groups, use the cost of N scalar accesses instead
18738 of ncopies vector accesses.
18739 (vect_model_load_cost): Likewise.
18741 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18743 * tree-vect-stmts.c (vect_cost_group_size): Delete.
18744 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
18745 variable to indicate when once-per-group costs are being used.
18746 (vect_model_load_cost): Likewise. Fix comment and misindented code.
18748 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18750 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
18751 peeling-for-gaps condition.
18753 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18755 * config/s390/s390.c (s390_expand_vec_init): Force initializer
18756 element to register if it doesn't match general_operand.
18758 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
18759 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18761 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
18763 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
18764 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
18765 (SIGNBIT): New mode iterator.
18766 (Fsignbit): New mode attribute.
18767 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
18768 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
18769 when direct moves are available.
18770 (signbit<mode>2_dm): New define_insn_and_split).
18771 (signbit<mode>2_dm2): New define_insn.
18773 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18775 PR rtl-optimization/71594
18776 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
18777 into subregs of appropriate mode before trying to emit a conditional
18780 2016-07-05 Jan Hubicka <jh@suse.cz>
18782 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
18783 (simple_iv): Use it.
18785 2016-07-05 Jan Hubicka <jh@suse.cz>
18787 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
18789 2016-07-05 Jiong Wang <jiong.wang@arm.com>
18791 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
18794 2016-07-05 Jan Hubicka <jh@suse.cz>
18796 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
18799 2016-07-05 Richard Biener <rguenther@suse.de>
18801 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
18802 Handle empty else block.
18803 (is_feasible_trace): Likewise.
18804 (split_paths): Likewise.
18806 2016-07-05 Richard Biener <rguenther@suse.de>
18808 * tree-loop-distribution.c (distribute_loop): Fix issue with
18809 the cost model loop.
18811 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
18813 * config/arm/neon-testgen.ml: Delete.
18814 * config/arm/neon.ml: Delete.
18816 2016-07-04 Jakub Jelinek <jakub@redhat.com>
18819 * tree.c (attribute_value_equal): Use get_attribute_name instead of
18820 directly using TREE_PURPOSE.
18822 2016-07-04 Jiong Wang <jiong.wang@arm.com>
18824 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
18825 * config/aarch64/aarch64_neon.h: Likewise.
18826 * config/aarch64/arm_neon.h: Likewise.
18827 * config/aarch64/atomics.md: Likewise.
18828 * config/aarch64/aarch64-simd-builtins.def: Likewise.
18829 * doc/invoke.texi: Likewise.
18831 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18833 * config/s390/s390.md: Add "z13" cpu_facility.
18834 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
18835 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
18836 condition" type instructions.
18838 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18839 Jeff Law <law@redhat.com>
18841 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
18842 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
18844 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
18846 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
18847 permutation for TARGET_AVX512F.
18848 (ix86_expand_vec_one_operand_perm_avx512): New function.
18849 (expand_vec_perm_1): Invoke introduced function.
18850 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18851 it may be not valid after vectorization.
18853 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18856 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
18857 typo in comment. Only force to memory if it is a weak
18858 external reference.
18860 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
18861 Jiong Wang <jiong.wang@arm.com>
18863 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
18864 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
18865 (AARCH64_FL_F16): New.
18866 (AARCH64_FL_FOR_ARCH8_2): New.
18867 (AARCH64_ISA_8_2): New.
18868 (AARCH64_ISA_F16): New.
18869 (TARGET_FP_F16INST): New.
18870 (TARGET_SIMD_F16INST): New.
18871 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
18872 ("fp"): Disabling "fp" also disables "fp16".
18873 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
18874 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
18875 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
18876 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
18878 2016-07-04 Jan Beulich <jbeulich@suse.com>
18880 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
18882 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18885 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
18886 the insns, use an insn form that does not adjust the offset on
18887 little endian systems.
18889 2016-07-01 Jan Beulich <jbeulich@suse.com>
18891 * varasm.c (get_variable_section): Validate initializer in
18892 named .bss-like sections.
18894 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18896 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
18897 Exchange the order of the second and third operands in the vpermr
18898 instruction tmeplate.
18900 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
18903 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
18904 Disallow TDmode values.
18906 2016-07-01 Alan Modra <amodra@gmail.com>
18908 PR rtl-optimization/71709
18909 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
18910 being set, not referenced.
18912 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18914 PR tree-optimization/70729
18915 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
18916 of loop since it can be not valid after transformation.
18918 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18920 * config/arm/arm.c (thumb_reload_in_hi): Delete.
18921 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
18923 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
18925 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
18928 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
18931 * config/rs6000/constraints.md (wY constraint): New constraint to
18932 match the requirements for the LXSD and STXSD instructions.
18933 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
18934 predicate to match the requirements for the LXSD and STXSD
18936 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
18937 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
18938 to make sure that the bottom 2 bits of offset are 0, the address
18939 form is offsettable, and no updating is done in the address mode.
18940 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
18941 (movdi_internal32): Likewise
18942 (movdi_internal64): Likewise.
18944 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18946 PR tree-optimization/71707
18947 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
18948 strinfo even for ADDR_EXPR ptr.
18950 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18952 * config/rs6000/altivec.md (darn_32): Change the condition to
18953 TARGET_P9_MISC instead of TARGET_MODULO.
18954 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
18955 condition expression.
18956 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
18957 condition expression.
18958 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
18959 (DFP_TEST): New code iterator.
18960 (dfptstsfi_<code>_mode>): New define_expand.
18961 (*dfp_sgnfcnc_<mode>): New define_insn.
18962 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
18963 definition next to BU_P9_MISC_1 definition and change the MASK
18964 value to RS6000_BTM_P9_MISC.
18965 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
18966 (BU_P9_64BIT_MISC_0): Likewise.
18967 (BU_P9_DFP_MISC_0): New macro definition.
18968 (BU_P9_DFP_MISC_1): New macro definition.
18969 (BU_P9_DFP_MISC_2): New macro definition.
18970 (BU_P9_DFP_OVERLOAD_1): New macro definition.
18971 (BU_P9_DFP_OVERLOAD_2): New macro definition.
18972 (BU_P9_DFP_OVERLOAD_3): New macro definition.
18973 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
18974 (TSTSFI_LT_TD): Likewise.
18975 (TSTSFI_EQ_DD): Likewise.
18976 (TSTSFI_EQ_TD): Likewise.
18977 (TSTSFI_GT_DD): Likewise.
18978 (TSTSFI_GT_TD): Likewise.
18979 (TSTSFI_OV_DD): Likewise.
18980 (TSTSFI_OV_TD): Likewise.
18981 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
18982 (TSTSFI_LT_DD): Likewise.
18983 (TSTSFI_LT_TD): Likewise.
18984 (TSTSFI_EQ): Likewise.
18985 (TSTSFI_EQ_DD): Likewise.
18986 (TSTSFI_EQ_TD): Likewise.
18987 (TSTSFI_GT): Likewise.
18988 (TSTSFI_GT_DD): Likewise.
18989 (TSTSFI_GT_TD): Likewise.
18990 (TSTSFI_OV): Likewise.
18991 (TSTSFI_OV_DD): Likewise.
18992 (TSTSFI_OV_TD): Likewise.
18993 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18994 overloaded test significance functions.
18995 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18996 OPTION_MASK_P9_MISC into the representation of this mask.
18997 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
18999 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
19000 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
19002 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
19003 argument is a 6-bit unsigned literal value if the icode argument
19004 represents a DFP test significance built-in call.
19005 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
19006 flag used independently and in combination with the
19007 RS6000_BTM_64BIT flag.
19008 (rs6000_opt_masks): Add entry for power9-misc command-line option.
19009 (rs6000_builtin_mask_names): Add entry for power9-misc
19010 command-line option.
19011 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
19012 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
19013 RS6000_BTM_P9_MISC macros.
19014 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
19015 option and change the description of the -mpower9-vector option to
19016 enable only vector instructions, removing its erroneously claimed
19017 support for scalar instructions.
19018 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19019 the ISA 3.0 digital floating point test significance built-in
19022 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
19024 * config/aarch64/aarch64.c (cortexa35_tunings):
19025 Enable AES fusion. Use cortexa57_branch_cost.
19026 (cortexa53_tunings): Use cortexa57_branch_cost.
19027 (cortexa72_tunings): Use cortexa57_branch_cost.
19028 Use AUTOPREFETCHER_WEAK.
19029 (cortexa73_tunings): Use cortexa57_branch_cost.
19031 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19032 James Greenhalgh <james.greenhalgh@arm.com>
19034 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
19035 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
19036 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
19037 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
19038 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
19039 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
19040 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
19041 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
19042 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
19043 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
19044 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
19045 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
19046 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
19049 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
19050 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19052 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
19054 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
19056 2016-06-30 David Malcolm <dmalcolm@redhat.com>
19059 * gcc.c (driver::build_option_suggestions): Pass "option" to
19060 add_misspelling_candidates.
19061 * opts-common.c (add_misspelling_candidates): Add "option" param;
19062 use it to avoid adding negated forms for options marked with
19064 * opts.h (add_misspelling_candidates): Add "option" param.
19066 2016-06-30 Jakub Jelinek <jakub@redhat.com>
19068 PR middle-end/71693
19069 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
19070 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
19071 first when permuting bitwise operation with rotate. Cast
19072 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
19074 2016-06-29 David Malcolm <dmalcolm@redhat.com>
19076 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
19077 for misspelled param names.
19078 * params.c: Include spellcheck.h.
19079 (find_param_fuzzy): New function.
19080 * params.h (find_param_fuzzy): New prototype.
19081 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
19082 * spellcheck.h (struct edit_distance_traits<const char *>):
19085 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
19087 * config/rs6000/predicates.md (const_0_to_7_operand): New
19088 predicate, recognize 0..7.
19089 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19090 support for doing extracts from V16QImode, V8HImode, V4SImode
19092 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
19093 vector extract support.
19094 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
19095 for ISA 3.0 vector extract.
19096 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
19097 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
19098 extracts of a constant element number from small integer vectors
19099 on 64-bit ISA 3.0 systems.
19100 (vsx_extract_<mode>_di): Likewise.
19101 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
19102 say when we can do ISA 3.0 vector extracts.
19103 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
19104 registers, using the stxsiwx instruction.
19106 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
19108 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
19109 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
19110 qdf24xx_regmove_cost, qdf24xx_tunings): New.
19111 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
19112 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
19113 * config/arm/arm.c (arm_qdf24xx_tune): New.
19115 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
19117 * config/aarch64/aarch64.c (cortexa53_tunings):
19118 Increase loop alignment to 8. Set function alignment to 16.
19119 (cortexa35_tunings): Likewise.
19120 (cortexa57_tunings): Increase loop alignment to 8.
19121 (cortexa72_tunings): Likewise.
19122 (cortexa73_tunings): Likewise.
19124 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
19126 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
19127 for arm_fp16_ok and arm_fp16_hw.
19128 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
19129 arm_fp16_alternative.
19131 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
19133 PR tree-optimization/71655
19134 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
19135 types when swapping operands.
19137 2016-06-29 Martin Liska <mliska@suse.cz>
19139 PR middle-end/71585
19140 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
19141 * ipa-inline-transform.c (inline_call): Remove unnecessary call
19142 of build_optimization_node.
19144 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
19146 PR tree-optimization/70729
19147 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
19148 independent in loops having positive safelen value.
19149 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
19150 it may be not valid after vectorization.
19152 2016-06-29 Jakub Jelinek <jakub@redhat.com>
19154 PR tree-optimization/71625
19155 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
19156 is sorted by ascending list->offset. If PTR is non-NULL and there is
19157 previous strinfo, call get_stridx_plus_constant.
19158 (get_stridx): Pass exp as second argument to get_addr_stridx.
19159 (addr_stridxptr): Add missing list = list->next, so that there can be
19160 more than one entries in the list. Bump limit from 16 to 32. Ensure
19161 the list is sorted by ascending list->offset.
19162 (get_stridx_plus_constant): Adjust so that it can be also called with
19163 ADDR_EXPR instead of SSA_NAME as PTR.
19164 (handle_char_store): Pass NULL_TREE as second argument to
19167 2016-06-29 Richard Biener <rguenther@suse.de>
19169 PR rtl-optimization/68961
19170 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
19172 2016-06-29 Richard Biener <rguenther@suse.de>
19174 PR middle-end/71002
19175 * alias.c (component_uses_parent_alias_set_from): Handle
19176 type punning through union accesses by using the union alias set.
19177 * gimple.c (gimple_get_alias_set): Remove union type punning case.
19179 2016-07-29 Richard Biener <rguenther@suse.de>
19181 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
19182 precision not matching mode precision.
19184 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
19186 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
19187 pa_output_arg_descriptor.
19188 (call_val_symref_64bit_post_reload): Likewise.
19189 (call_val_powf_64bit_post_reload): Likewise.
19190 (sibcall_internal_symref_64bit): Likewise.
19191 (sibcall_value_internal_symref_64bit): Likewise.
19193 2016-06-28 Jakub Jelinek <jakub@redhat.com>
19195 PR middle-end/71626
19196 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
19197 a constant, force its SUBREG_REG into memory or register instead
19200 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19203 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
19204 * doc/invoke.texi (AVR Options): Document it.
19206 2016-06-28 Walter Lee <walt@tilera.com>
19208 * config/tilegx/linux.h: Do not include arch/icache.h
19209 (CLEAR_INSN_CACHE): Provide inlined definition directly.
19210 * config/tilepro/linux.h: Do not include arch/icache.h
19211 (CLEAR_INSN_CACHE): Provide inlined definition directly.
19213 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
19215 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
19216 for big-endian BIT_FIELD_REF.
19218 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
19220 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
19221 ('size' attribute): Add '128'.
19223 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
19224 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
19225 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
19226 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
19227 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
19228 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
19229 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
19230 *trunc<mode>df2_odd): Set size attribute to '128'.
19231 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
19232 * config/rs6000/power6.md (power6-fp): Include dfp type.
19233 * config/rs6000/power7.md (power7-fp): Likewise.
19234 * config/rs6000/power8.md (power8-fp): Likewise.
19235 * config/rs6000/power9.md: New file.
19236 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
19237 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
19238 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
19240 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
19241 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
19242 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
19243 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
19244 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
19245 dfp_dscri_<mode>): Change type attribute to dfp.
19246 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
19247 attribute to vecsimple.
19248 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
19249 and prefetch streams.
19250 (rs6000_option_override_internal): Remove temporary code setting
19251 tuning to power8. Don't set rs6000_sched_groups for power9.
19252 (last_scheduled_insn): Change to rtx_insn *.
19253 (divide_cnt, vec_load_pendulum): New variables.
19254 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
19255 (rs6000_issue_rate): Set issue rate for Power9.
19256 (is_power9_pairable_vec_type): New.
19257 (power9_sched_reorder2): New.
19258 (rs6000_sched_reorder2): Call new function for Power9 specific
19260 (insn_must_be_first_in_group): Remove Power9.
19261 (insn_must_be_last_in_group): Likewise.
19262 (force_new_group): Likewise.
19263 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
19264 Initialize divide_cnt/vec_load_pendulum.
19265 (_rs6000_sched_context, rs6000_init_sched_context,
19266 rs6000_set_sched_context): Handle context save/restore of new
19269 2016-06-28 Richard Biener <rguenther@suse.de>
19271 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19272 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
19273 COMPONENT_REF operand.
19274 (nonoverlapping_component_refs_p): Likewise.
19275 * stor-layout.c (start_bitfield_representative): Mark
19276 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
19278 2016-06-28 Jakub Jelinek <jakub@redhat.com>
19280 * Makefile.in: Don't cat ../stage_current if it does not exist.
19282 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
19283 last argument is a bit-field.
19285 PR rtl-optimization/71673
19286 * internal-fn.c (expand_arith_overflow_result_store): Use
19287 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
19288 expand_simple_binop.
19290 PR middle-end/66867
19291 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
19292 expand_ifn_atomic_compare_exchange): New functions.
19293 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
19294 * tree.h (build_call_expr_internal_loc): Rename to ...
19295 (build_call_expr_internal_loc_array): ... this. Fix up type of
19297 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
19298 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
19299 ATOMIC_COMPARE_EXCHANGE result.
19300 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
19301 * gimple-fold.h (optimize_atomic_compare_exchange_p,
19302 fold_builtin_atomic_compare_exchange): New prototypes.
19303 * gimple-fold.c (optimize_atomic_compare_exchange_p,
19304 fold_builtin_atomic_compare_exchange): New functions..
19305 * tree-ssa.c (execute_update_addresses_taken): If
19306 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
19307 of call when finding addressable vars, and if such var becomes
19308 non-addressable, call fold_builtin_atomic_compare_exchange.
19310 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
19313 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
19314 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
19316 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
19318 * config/rs6000/rs6000.md ('type' attribute): Add
19319 veclogical,veccmpfx,vecexts,vecmove insn types.
19320 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
19321 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
19322 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
19323 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
19324 *nabs<mode>2_hw): Change type to vecmove.
19325 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
19326 *boolcc<mode>3_internal, *eqv<mode>3_internal,
19327 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
19328 *ieee_128bit_vsx_abs<mode>2_internal,
19329 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
19330 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
19331 *ieee128_mtvsrd_32bit): Change type to veclogical.
19332 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19333 *movdi_internal32, *movdi_internal64): Update insn types.
19334 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
19335 vsx_extract_<mode>): Change type to veclogical.
19336 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
19337 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
19338 *vsx_sign_extend_si_v2di): Change type to vecexts.
19339 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
19340 type to veclogical.
19341 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
19342 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
19343 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
19344 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
19345 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
19346 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
19347 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
19348 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
19349 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
19350 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
19351 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
19352 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
19353 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
19354 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
19355 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
19356 (ppc7450-vecsimple): Add veclogical, vecmove.
19357 (ppc7450-veccmp): Add veccmpfx.
19358 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
19360 (ppc8540_vector_compare): Add veccmpfx.
19361 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
19362 * config/rs6000/cell.md (cell-fp): Add fpsimple.
19363 (cell-vecsimple): Add veclogical, vecmove.
19364 (cell-veccmp): Add veccmpfx.
19365 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
19366 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
19368 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
19369 * config/rs6000/power4.md (power4-fp): Add fpsimple.
19370 (power4-vecsimple): Add veclogical, vecmove.
19371 (power4-veccmp): Add veccmpfx.
19372 * config/rs6000/power5.md (power5-fp): Add fpsimple.
19373 * config/rs6000/power6.md (power6-fp): Add fpsimple.
19374 (power6-vecsimple): Add veclogical, vecmove.
19375 (power6-veccmp): Add veccmpfx.
19376 * config/rs6000/power7.md (power7-fp): Add fpsimple.
19377 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
19378 * config/rs6000/power8.md (power8-fp): Add fpsimple.
19379 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
19380 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
19381 * config/rs6000/titan.md (titan_fp): Add fpsimple.
19382 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
19384 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
19386 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
19389 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19390 OPTION_MASK_P9_DFORM_VECTOR.
19391 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
19392 disable -mpower9-dform-vector when using reload.
19393 (quad_address_p): Remove 'gpr_p' argument and all associated code.
19394 New 'strict' argument. Update all callers. Add strict addressing
19396 (rs6000_legitimate_offset_address_p): Remove call to
19397 virtual_stack_registers_memory_p.
19398 (rs6000_legitimize_reload_address): Add quad address support.
19399 (rs6000_legitimate_address_p): Move call to quad_address_p above
19400 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
19401 to account for new strict usage.
19402 (rs6000_output_move_128bit): Adjust quad_address_p args to account
19403 for new strict usage.
19404 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
19406 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
19413 * config/i386/i386.c (ix86_spill_class): Disable condition to
19414 always return NO_REGS.
19416 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
19418 * predict.c: Include gimple-pretty-print.h
19419 (predicted_by_loop_heuristics_p): Check also
19420 PRED_LOOP_EXIT_WITH_RECURSION
19421 (predict_loops): Find self recursive calls and use special purpose
19422 predictors for them; dump log about decisions.
19423 (pass_profile::execute): Dump info about #of iterations.
19424 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
19425 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
19427 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
19429 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
19430 output_asm_insn calls and shorten long lines. Output .CALL
19431 argument descriptor using pa_output_arg_descriptor. Add various
19432 inline $$dyncall and other optimizations.
19433 (pa_attr_length_indirect_call): Adjust ordering and lengths.
19435 2016-06-25 Jakub Jelinek <jakub@redhat.com>
19437 PR tree-optimization/71643
19438 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
19441 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
19442 leak a bitmap if dep_bb is NULL.
19444 PR tree-optimization/71631
19445 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
19446 to rewrite_expr_tree even if negate_result, move new_lhs var
19447 declaration and initialization earlier, for powi_result set afterwards
19448 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
19449 if new_lhs != lhs, and don't shadow gsi var.
19451 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19453 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
19454 Add in_loop parameter.
19455 (predict_loops): Add loop guard heuristics.
19456 * predict.def (PRED_LOOP_GUARD): New heuristics.
19458 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19460 * predict.c: Include ipa-utils.h
19461 (tree_bb_level_prediction): Predict recursive calls.
19462 (tree_estimate_probability_bb): Skip inexpensive calls for call
19464 * predict.def (PRED_RECURSIVE_CALL): New.
19466 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19468 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
19469 (BU_FLOAT128_1): Likewise.
19471 (COPYSIGNQ): Likewise.
19472 (RS6000_BUILTIN_NANQ): Likewise.
19473 (RS6000_BUILTIN_NANSQ): Likewise.
19474 (RS6000_BUILTIN_INFQ): Likewise.
19475 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
19476 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
19477 (TARGET_FOLD_BUILTIN): New #define.
19478 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
19479 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
19480 (rs6000_fold_builtin): New target hook implementation, handling
19481 folding of 128-bit NaNs and infinities.
19482 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
19483 entries are filled in to avoid problems during bootstrap
19484 self-test; define builtins for 128-bit NaNs and infinities.
19485 (rs6000_opt_mask): Add entry for float128.
19486 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
19487 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
19488 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
19489 (const_str_type_node): New #define.
19490 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
19491 to a define_expand that dispatches to either copysign<mode>3_soft
19492 or copysign<mode>3_hard.
19493 (copysign<mode>3_hard): Rename from copysign<mode>3.
19494 (copysign<mode>3_soft): New define_insn.
19495 * doc/extend.texi: Document new builtins.
19497 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19499 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
19500 PRIu64 instead of lu.
19502 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
19505 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
19506 copy the type name.
19508 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19510 PR tree-optimization/71647
19511 * omp-low.c (lower_rec_input_clauses): Convert
19512 omp_clause_aligned_alignment (c) to size_type_node for the
19513 last argument of __builtin_assume_aligned.
19515 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
19517 * configure.ac (calling ___tls_get_addr via GOT): New
19518 assembler/linker check.
19519 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
19520 assembler and linker supports calling ___tls_get_addr via GOT.
19521 Otherise, defined to 0.
19522 * config.in: Regenerated.
19523 * configure: Likewise.
19524 * config/i386/constraints.md (Yb): New constraint.
19525 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
19526 (REG_CLASS_NAMES): Likewise.
19527 (REG_CLASS_CONTENTS): Likewise.
19528 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
19529 the b constraint with the Yb constraint. Call ___tls_get_addr
19530 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
19532 (*tls_local_dynamic_base_32_gnu): Likewise.
19533 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
19534 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
19535 (*tls_local_dynamic_base_64_<mode>): Likewise.
19537 2016-06-24 Martin Liska <mliska@suse.cz>
19539 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
19540 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
19542 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
19543 argument to true if the expected number of iterations is
19546 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
19548 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
19549 assemble for 32bit target.
19550 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
19551 and $ld_ix86_gld_32_opt to link for 32bit target.
19552 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
19553 * configure: Regenerate.
19555 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19557 * config/arm/arm.c (int_log2): Delete definition and prototype.
19558 (shift_op): Use exact_log2 instead of int_log2.
19559 (vfp3_const_double_for_fract_bits): Likewise.
19561 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19563 * internal-fn.c (expand_arith_set_overflow): New function.
19564 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
19566 (expand_arith_overflow_result_store): Likewise. Handle precision
19567 smaller than mode precision.
19568 * tree-vrp.c (extract_range_basic): For imag part, handle
19569 properly signed 1-bit precision result.
19570 * doc/extend.texi (__builtin_add_overflow): Document that last
19571 argument can't be pointer to enumerated or boolean type.
19572 (__builtin_add_overflow_p): Document that last argument can't
19573 have enumerated or boolean type.
19575 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19576 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19578 * config/rs6000/predicates.md (splat_input_operand): Rework.
19579 Don't allow constants, since the insns that use this predicate
19580 don't support constants. Constants are handled by other insns
19581 that are created via combine. During and after register
19582 allocation, only allow indexed or indirect addresses, and not
19583 general addresses. Only allow modes supported by the hardware.
19584 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
19585 comment. Move check for using VSPLTIS<x> to a common location,
19586 instead of doing it in two different places.
19588 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
19590 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19591 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
19592 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
19593 signature_CENTAUR_ebx.
19595 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
19599 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
19600 (as_ix86_gas_32_opt): This.
19601 (ld_ix86_tls_ldm_opt): Renamed to ...
19602 (ld_ix86_gld_32_opt): This.
19603 (R_386_TLS_LDM reloc): Updated.
19604 (R_386_GOT32X reloc): New assembler/linker check.
19605 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
19606 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
19608 * config.in: Regenerated.
19609 * configure: Likewise.
19610 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
19611 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
19612 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
19613 if ix86_force_load_from_GOT_p returns true.
19614 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
19615 ix86_force_load_from_GOT_p returns true.
19616 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
19617 the external function address via the GOT slot.
19618 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
19619 HAVE_AS_IX86_GOT32X before returning false.
19620 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
19621 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
19623 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
19625 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
19627 2016-06-23 Andi Kleen <ak@linux.intel.com>
19629 * Makefile.in: Regenerate.
19630 * doc/install.texi: Document autoprofiledbootstrap.
19632 2016-06-23 Andi Kleen <ak@linux.intel.com>
19634 * config/i386/gcc-auto-profile: New file.
19636 2016-06-23 Martin Liska <mliska@suse.cz>
19638 PR middle-end/71619
19639 * predict.c (predict_loops): Revert the hunk that was removed
19642 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
19644 * config.gcc: Add support for arm*-*-phoenix* targets.
19645 * config/arm/t-phoenix: New.
19646 * config/phoenix.h: New.
19648 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
19649 H.J. Lu <hongjiu.lu@intel.com>
19652 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
19653 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
19654 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
19655 ix86_force_load_from_GOT_p returns true.
19656 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
19657 ix86_force_load_from_GOT_p returns true.
19658 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
19659 ix86_force_load_from_GOT_p returns true.
19660 (ix86_expand_move): Load the external function address via the
19661 GOT slot if ix86_force_load_from_GOT_p returns true.
19662 * config/i386/predicates.md (x86_64_immediate_operand): Return
19663 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
19664 (x86_64_zext_immediate_operand): Ditto.
19666 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
19668 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
19670 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19673 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
19674 * diagnostic.c (pedwarn_at_rich_loc): New function.
19675 * spellcheck.h (best_match::best_match): Add a
19676 "best_distance_so_far" optional parameter.
19677 (best_match::set_best_so_far): New method.
19678 (best_match::get_best_distance): New accessor.
19679 (best_match::get_best_candidate_length): New accessor.
19681 2016-06-22 Nick Clifton <nickc@redhat.com>
19683 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
19684 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
19685 modes are accepted as well.
19686 (ucompare_loc_descriptor): Likewise.
19687 (minmax_loc_descriptor): Likewise.
19688 (clz_loc_descriptor): Likewise.
19689 (popcount_loc_descriptor): Likewise.
19690 (bswap_loc_descriptor): Likewise.
19691 (rotate_loc_descriptor): Likewise.
19692 (mem_loc_descriptor): Likewise.
19693 (loc_descriptor): Likewise.
19695 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19697 * common.opt (fdiagnostics-parseable-fixits): New option.
19698 * diagnostic.c: Include "selftest.h".
19699 (print_escaped_string): New function.
19700 (print_parseable_fixits): New function.
19701 (diagnostic_report_diagnostic): Call print_parseable_fixits.
19702 (selftest::assert_print_escaped_string): New function.
19703 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
19704 (selftest::test_print_escaped_string): New function.
19705 (selftest::test_print_parseable_fixits_none): New function.
19706 (selftest::test_print_parseable_fixits_insert): New function.
19707 (selftest::test_print_parseable_fixits_remove): New function.
19708 (selftest::test_print_parseable_fixits_replace): New function.
19709 (selftest::diagnostic_c_tests): New function.
19710 * diagnostic.h (struct diagnostic_context): Add field
19711 "parseable_fixits_p".
19712 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19713 -fdiagnostics-parseable-fixits.
19714 (-fdiagnostics-parseable-fixits): New option.
19715 * opts.c (common_handle_option): Handle
19716 -fdiagnostics-parseable-fixits.
19717 * selftest-run-tests.c (selftest::run_tests): Call
19718 selftest::diagnostic_c_tests.
19719 * selftest.h (selftest::diagnostic_c_tests): New prototype.
19721 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
19723 PR tree-optimization/71488
19724 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
19725 comparison of boolean vectors.
19726 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
19727 of boolean vectors using bitwise operations.
19729 2016-06-22 Andreas Schwab <schwab@suse.de>
19731 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
19732 Remove declaration.
19734 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
19736 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
19738 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
19740 * config/i386/i386.c (print_reg): Emit an error message on attempt to
19743 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19745 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
19746 * config/arm/arm-cores.def (cortex-a73): New entry.
19747 (cortex-a73.cortex-a35): Likewise.
19748 (cortex-a73.cortex-a53): Likewise.
19749 * config/arm/arm-tables.opt: Regenerate.
19750 * config/arm/arm-tune.md: Likewise.
19751 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
19752 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19753 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
19754 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19755 * doc/invoke.texi (ARM Options): Document cortex-a73,
19756 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
19758 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19760 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
19761 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
19762 (cortex-a73.cortex-a35): Likewise.
19763 (cortex-a73.cortex-a53): Likewise.
19764 * config/aarch64/aarch64-tune.md: Regenerate.
19765 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
19766 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
19769 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19771 * configure.ac (gcc_cv_as_compress_debug): Remove
19772 --compress-debug-sections as extra as switch.
19773 Handle gas --compress-debug-sections=type.
19774 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
19775 Handle gld --compress-debug-sections=type.
19776 * configure: Regenerate.
19778 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
19780 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
19782 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
19784 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
19785 (do_rewrite): likewise.
19787 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19789 * common/config/mep/mep-common.c: Remove.
19790 * config.gcc: Remove mep-* support.
19791 * config/mep/constraints.md: Remove.
19792 * config/mep/default.h: Remove.
19793 * config/mep/intrinsics.h: Remove.
19794 * config/mep/intrinsics.md: Remove.
19795 * config/mep/ivc2-template.h: Remove.
19796 * config/mep/mep-c5.cpu: Remove.
19797 * config/mep/mep-core.cpu: Remove.
19798 * config/mep/mep-default.cpu: Remove.
19799 * config/mep/mep-ext-cop.cpu: Remove.
19800 * config/mep/mep-intrin.h: Remove.
19801 * config/mep/mep-ivc2.cpu: Remove.
19802 * config/mep/mep-pragma.c: Remove.
19803 * config/mep/mep-protos.h: Remove.
19804 * config/mep/mep.c: Remove.
19805 * config/mep/mep.cpu: Remove.
19806 * config/mep/mep.h: Remove.
19807 * config/mep/mep.md: Remove.
19808 * config/mep/mep.opt: Remove.
19809 * config/mep/predicates.md: Remove.
19810 * config/mep/t-mep: Remove.
19811 * doc/install.texi: Remove mep-* documentation.
19812 * doc/md.texi: Likewise.
19814 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19816 * config.gcc: Remove support for avr-rtems.
19817 * config/avr/gen-avr-mmcu-specs.c: Likewise.
19818 * config/avr/rtems.h: Remove.
19819 * config/avr/t-rtems: Remove.
19821 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19823 * config.gcc: Remove m32r-rtems support.
19824 * config/m32r/rtems.h: Remove.
19826 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19828 * config.gcc: Remove h8300-rtems support.
19829 * config/h8300/rtems.h: Remove.
19830 * config/h8300/t-rtems: Remove.
19832 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19834 * config.gcc: Remove support for knetbsd.
19835 * configure.ac: Likewise.
19836 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
19837 * config/knetbsd-gnu.h: Remove.
19838 * configure: Regenerate.
19840 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19842 * config.gcc: Remove support for openbsd 2 and 3.
19843 * config/openbsd-oldgas.h: Remove.
19845 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19847 * config.gcc: Remove interix support.
19848 * config/i386/i386-interix.h: Remove.
19849 * config/i386/interix.opt: Remove.
19850 * config/i386/t-interix: Remove.
19851 * configure: Regenerate.
19852 * configure.ac: Remove interix support.
19853 * doc/install.texi: Remove interix documentation.
19855 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
19857 * config/rs6000/rs6000.h: Add conditional preprocessing directives
19858 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
19861 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19863 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
19864 they are both PLACEHOLDER_EXPRs.
19866 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19868 * stor-layout.c (layout_type): Move setting complex MODE to
19869 layout_type, instead of setting it ahead of time by the caller.
19870 * tree.c (build_complex_type): Likewise.
19872 2016-06-21 Martin Liska <mliska@suse.cz>
19874 * predict.c (force_edge_cold): Replace imposisble with
19877 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19879 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
19880 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
19882 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19884 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
19886 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
19887 Ilya Enkovich <ilya.enkovich@intel.com>
19890 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
19891 New member function to convert V1TImode register to SUBREG
19892 TImode in debug insn.
19893 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
19894 after changing register mode to V1TImode.
19896 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
19898 * config/aarch64/aarch64-cores.def (vulcan): New core.
19899 * config/aarch64/aarch64-tune.md: Regenerate.
19900 * doc/invoke.texi: Document vulcan as an available option.
19902 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19904 * cse.c (canon_asm_operands): New function extracted from...
19905 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
19906 either standalone or member of a PARALLEL.
19908 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19911 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
19912 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
19913 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
19915 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19918 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
19919 constant addresses if can_create_pseudo_p.
19921 2016-06-21 Jakub Jelinek <jakub@redhat.com>
19923 PR tree-optimization/71588
19924 * tree-ssa-strlen.c (valid_builtin_call): New function.
19925 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
19928 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19930 PR middle-end/71581
19931 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
19932 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
19933 for conversion of scalar user var to complex type and use the
19934 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
19937 PR rtl-optimization/71591
19938 * toplev.c (toplev::run_self_tests): If no_backend, complain and
19939 don't run any tests.
19941 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
19944 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
19945 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
19946 space for PIC with non-v32 and the common non-PIC "jump".
19948 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19951 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
19952 returned values and add UN*/LTGT/*ORDERED cases with values matching
19953 D operand modifier on vcmp for AVX.
19955 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19957 * config/aarch64/aarch64.opt
19958 (mpc-relative-literal-loads): Rename internal option name.
19959 * config/aarch64/aarch64.c
19960 (aarch64_nopcrelative_literal_loads): Rename to
19961 aarch64_pcrelative_literal_loads.
19962 (aarch64_expand_mov_immediate): Likewise.
19963 (aarch64_secondary_reload): Likewise.
19964 (aarch64_can_use_per_function_literal_pools_p): Likewise.
19965 (aarch64_override_options_after_change_1): Rename and simplify logic.
19966 (aarch64_classify_symbol): Merge large model checks into switch,
19967 remove pc-relative load check.
19969 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19971 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
19972 costs relative to the cost of a register move.
19974 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19976 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
19977 (vcvt_n_f64_u64): Likewise.
19978 (vcvt_n_s64_f64): Likewise.
19979 (vcvt_n_u64_f64): Likewise.
19980 (vcvt_f64_s64): Likewise.
19981 (vrecpe_f64): Likewise.
19982 (vcvt_f64_u64): Likewise.
19983 (vrecps_f64): Likewise.
19985 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19987 * config/aarch64/aarch64.md
19988 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
19990 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
19992 * config/aarch64/aarch64-builtins.c
19993 (aarch64_types_binop_uss_qualifiers): Delete.
19994 (TYPES_BINOP_USS): Likewise.
19995 (aarch64_types_binop_sus_qualifiers): Likewise.
19996 (TYPES_BINOP_SUS): Likewise.
19997 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
19998 (TYPES_FCVTIMM_SUS): Likewise.
19999 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
20001 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
20002 (fcvtzs): Use SHIFTIMM rather than BINOP.
20003 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
20005 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
20007 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
20008 costs relative to the cost of a register move.
20010 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
20012 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
20013 Allow scalar/single vector modes to be tieable.
20015 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
20017 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
20019 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20021 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
20023 * tree.h (TYPE_ALIGN): Likewise.
20025 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
20028 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
20030 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
20032 * config/avr/avr.c (avr_print_operand): Fix "format not a string
20033 literal" build warnings.
20034 (avr_print_operand_address): Dito.
20036 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
20039 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
20040 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
20042 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
20044 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
20046 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
20049 * reload1.c (reload): Pass 0 to finish_spills when called because
20050 update_eliminables_and_spill returns true and remove did_spill.
20051 (finish_spills): Adjust comment and document GLOBAL parameter.
20053 2016-06-17 DJ Delorie <dj@redhat.com>
20056 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
20057 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
20058 (umulqihi3_virt): Likewise.
20059 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
20060 (umulqihi3_real): Likewise.
20062 2016-06-17 Martin Liska <mliska@suse.cz>
20064 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
20066 2016-06-17 Martin Liska <mliska@suse.cz>
20068 * predict.def: PRED_LOOP_EXIT from 92 to 85.
20070 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
20072 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
20074 (vaddq_f32): Likewise.
20075 (vmul_f32): Likewise.
20076 (vmulq_f32): Likewise.
20077 (vsub_f32): Likewise.
20078 (vsubq_f32): Likewise.
20080 2016-06-17 Bin Cheng <bin.cheng@arm.com>
20082 PR tree-optimization/71347
20083 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
20084 cost for all uses in group.
20086 2016-06-17 Bin Cheng <bin.cheng@arm.com>
20088 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
20089 insert gimple seq if it's not empty.
20091 2016-06-17 Bin Cheng <bin.cheng@arm.com>
20093 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
20095 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
20096 rather than OFFSET.
20097 (comp_dr_with_seg_len_pair): Ditto.
20098 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
20099 struct dr_with_seg_len_pair against DR_OFFSET.
20100 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
20101 DR_OFFSET directly.
20103 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
20105 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
20107 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
20109 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
20110 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
20111 (pa_output_millicode_call): Likewise.
20112 (pa_output_call): Likewise.
20113 (pa_output_indirect_call): Likewise.
20114 (pa_asm_output_mi_thunk): Likewise.
20116 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20118 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
20120 2016-06-16 Martin Liska <mliska@suse.cz>
20122 * predict.c (combine_predictions_for_insn): When we find a first
20123 match predictor, we should consider just predictors with
20124 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
20125 DS theory predictor.
20126 (combine_predictions_for_bb): Likewise.
20128 2016-06-16 Jakub Jelinek <jakub@redhat.com>
20130 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
20131 with base of reference to struct.
20133 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
20135 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
20137 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20140 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
20141 progmem_swtable_section.
20142 (progmem_swtable_section): Remove.
20143 (avr_asm_function_rodata_section): Remove.
20144 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
20145 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
20147 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
20149 * config/i386/driver-i386.c (host_detect_local_cpu): Set
20150 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
20151 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
20152 signature_CENTAUR_ebx.
20153 * config/i386/i386.c (ix86_option_override_internal): Add
20154 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
20155 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
20156 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
20158 2016-06-16 Martin Liska <mliska@suse.cz>
20160 * predict.def: Add fortran loop preheader predictor.
20161 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
20162 fold IFN_BUILTIN_EXPECT with a known constant argument.
20164 2016-06-16 Martin Liska <mliska@suse.cz>
20166 * predict.def: Add 'Fortran' to display text of all
20167 PRED_FORTRAN_* predictors.
20169 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
20172 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
20173 [IA64_BUILTIN_NANSQ]: Ditto.
20174 (ia64_fold_builtin): New function.
20175 (TARGET_FOLD_BUILTIN): New define.
20176 (ia64_init_builtins) Declare const_string_type node.
20177 Add __builtin_nanq and __builtin_nansq builtin functions.
20178 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
20180 2016-06-16 Nick Clifton <nickc@redhat.com>
20182 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
20183 MSP430_HWMULT_ prefix to enum values.
20184 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
20185 * config/msp430/msp430.c: Update use of enum values.
20186 * config/msp430/msp430.md: Likewise.
20187 * config/msp430/msp430.opt: Likewise.
20189 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
20191 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
20192 of comparsions in the last iteration.
20194 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
20195 Joern Rennecke <joern.rennecke@embecosm.com>
20197 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
20199 (arc_needs_pcl_p): Add GOTOFFPC.
20200 (arc_legitimate_pic_addr_p): Likewise.
20201 (arc_output_pic_addr_const): Likewise.
20202 (arc_legitimize_pic_address): Generate a pc-relative address using
20204 (arc_output_libcall): Use @pcl syntax.
20205 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
20206 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
20207 (*movsi_insn): Use @pcl syntax.
20208 (doloop_begin_i): Likewise.
20210 2016-06-16 Martin Liska <mliska@suse.cz>
20212 * predict.def: Define a new predictor.
20214 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
20216 * config/arc/arc.opt (mtp-regno): Update text.
20218 2016-06-16 Renlin Li <renlin.li@arm.com>
20220 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
20222 2016-06-16 Jakub Jelinek <jakub@redhat.com>
20225 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
20226 (setcc + and peephole2): Likewise.
20228 PR rtl-optimization/71532
20229 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
20232 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
20234 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
20235 DImode constants with XXSPLTIB in vector registers.
20236 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
20237 vsx_extract_<mode>_internal{1,2} into a single insn that handles
20238 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
20239 extraction of the element at the top of the register as a scalar
20241 (vsx_extract_<mode>_internal1): Likewise.
20242 (vsx_extract_<mode>_internal2): Likewise.
20243 * config/rs6000/constraints.md (wi constraint): Remove a comment
20244 about DImode not being allowed in Altivec registers.
20245 (wB constraint): New constraint for constants that can be
20246 generated in Altivec registers with VSPLTISW/VUPKHSW.
20247 * config/rs6000/predicates.md (xxspltib_constant_split): Update
20249 (xxspltib_constant_nosplit): Likewise.
20250 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
20251 support for -mupper-regs-di to enable DImode to go into Altivec
20253 (POWERPC_MASKS): Likewise.
20254 (power7 cpu): Likewise.
20255 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
20256 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
20257 for DImode being allowed in Altivec registers. Update wi/wj
20258 constraints. Set scalar_in_vmx_p flag.
20259 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
20260 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
20261 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
20262 (rs6000_opt_masks): Add -mupper-regs-di.
20263 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
20264 direct move to use wi and not wj.
20265 (lfiwzx): Likewise.
20266 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
20268 (floatunssi<mode>2_lfiwzx_mem): Likewise.
20269 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
20270 any VSX register, instead of just Altivec registers, to allow
20271 either operand to be an Altivec register or both.
20272 (fixuns_trunc<mode>di2_fctiduz): Likewise.
20273 (movdi_internal32): Add support for -mupper-regs-di. Add support
20274 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
20275 the alternatives and attributes to be lined up to be easier to
20277 (movdi_internal64): Likewise.
20278 (64-bit DImode splitters): Change predicates to only split loading
20279 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
20280 load constants in ISA 3.0 or ISA 2.07 respectively.
20281 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20282 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
20283 mention -mcpu=power9 sets these options.
20284 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
20287 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20290 * config/avr/avr.c (avr_set_current_function): Warn misspelled
20291 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
20292 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
20293 by default to warn misspelled interrupt/ signal handler.
20294 * doc/invoke.texi (AVR Options): Document it. Update description
20295 for -nodevicelib option.
20297 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20299 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
20300 up parentheses. Use GET_MODE_UNIT_BITSIZE.
20301 (aarch64_<sur>shll2_n<mode>): Likewise.
20303 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
20305 PR middle-end/71529
20306 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
20307 DECL_CONTEXT for copied arguments.
20309 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20311 PR tree-optimization/71483
20312 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
20315 2016-06-15 Martin Liska <mliska@suse.cz>
20317 * predict.c (tree_predict_by_opcode): Call predict_edge_def
20318 instead of predict_edge w/o a probability.
20320 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20322 PR tree-optimization/71439
20323 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
20326 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20328 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
20329 register subregs in SET_SRC.
20331 2016-06-15 Richard Biener <rguenther@suse.de>
20333 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
20334 store restrictions.
20336 2016-06-15 Richard Biener <rguenther@suse.de>
20338 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
20339 not consider dependences between accesses that belong to the
20341 (vect_analyze_data_ref_dependences): Do not analyze read-read
20342 or self-dependences.
20344 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20346 * spellcheck-tree.c: Include spellcheck-tree.h rather than
20348 (find_closest_identifier): Reimplement in terms of
20349 best_match<tree,tree>.
20350 * spellcheck-tree.h: New file.
20351 * spellcheck.c (struct edit_distance_traits<const char *>): New
20353 (find_closest_string): Reimplement in terms of
20354 best_match<const char *, const char *>.
20355 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
20356 overload to spellcheck-tree.h.
20357 (find_closest_identifier): Likewise.
20358 (struct edit_distance_traits<T>): New template.
20359 (class best_match): New class.
20361 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20363 * selftest-run-tests.c (selftest::run_tests): Call
20364 selftest::spellcheck_tree_c_tests.
20365 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
20366 * spellcheck-tree.c: Include selftest.h and stringpool.h.
20367 (selftest::test_find_closest_identifier): New function.
20368 (selftest::spellcheck_tree_c_tests): New function.
20369 * spellcheck.c (selftest::test_find_closest_string): Verify that
20370 the order of the vec does not affect the results for this case.
20371 (selftest::test_data): New array.
20372 (selftest::test_metric_conditions): New function.
20373 (selftest::spellcheck_c_tests): Add a test of case-comparison.
20374 Call selftest::test_metric_conditions.
20376 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20378 * config/rs6000/rs6000-builtin.def (commentary): Typo.
20379 (BU_P9_MISC_1): Likewise.
20380 (BU_P9_64BIT_MISC_0): Likewise.
20381 (BU_P9_MISC_0): Likewise.
20383 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20385 * gcc-rich-location.c
20386 (gcc_rich_location::add_fixit_misspelled_id): New method.
20387 * gcc-rich-location.h
20388 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
20390 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
20392 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
20393 FreeBSD 11 and above.
20395 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
20397 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
20399 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20401 * expmed.h: Close parenthesis in "at your option" in copyright
20403 * lower-subreg.h: Likewise.
20405 2016-06-14 Richard Biener <rguenther@suse.de>
20407 PR middle-end/71526
20408 * genmatch.c (expr::gen_transform): Use in_type for comparisons
20411 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20413 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
20415 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
20416 mask+shift version.
20417 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
20419 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
20420 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
20422 2016-06-14 Richard Biener <rguenther@suse.de>
20424 PR tree-optimization/71522
20425 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
20426 copying into float copying.
20428 2016-06-14 Jakub Jelinek <jakub@redhat.com>
20430 PR tree-optimization/71520
20431 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
20432 (replace_block_by): Move user labels from bb1 to bb2.
20434 2016-06-14 Richard Biener <rguenther@suse.de>
20436 PR middle-end/71310
20438 * expr.h (get_bit_range): Declare.
20439 * expr.c (get_bit_range): Export.
20440 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
20441 word_mode again to constrain the bitfield access.
20443 2016-06-14 Richard Biener <rguenther@suse.de>
20445 PR tree-optimization/71521
20446 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
20447 division int_const_binop against zero divisor.
20449 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20451 * config/i386/i386.md (signbittf2): New expander.
20452 * config/i386/sse.md (ptesttf2): New insn pattern.
20454 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20457 * input.c (selftest::test_reading_source_line): Avoid reading from
20458 __FILE__ by creating a tempfile with known content and reading
20461 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20463 * pretty-print.c (assert_pp_format_colored): Skip the test if
20465 (test_pp_format): Remove comment about GCC_COLORS.
20467 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20469 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
20470 * pretty-print.c (assert_pp_format_va): Add location param and use
20471 it with ASSERT_STREQ_AT.
20472 (assert_pp_format): Add location param and pass it to
20473 assert_pp_format_va.
20474 (assert_pp_format_colored): Likewise.
20475 (ASSERT_PP_FORMAT_1): New.
20476 (ASSERT_PP_FORMAT_2): New.
20477 (ASSERT_PP_FORMAT_3): New.
20478 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
20479 explicitly, or implicitly via the above macros.
20480 * selftest.c (selftest::pass): Use a selftest::location rather
20481 than file and line.
20482 (selftest::fail): Likewise. Print the function name.
20483 (selftest::fail_formatted): Likewise.
20484 (selftest::assert_streq): Use a selftest::location rather than
20486 * selftest.h (selftest::location): New struct.
20487 (SELFTEST_LOCATION): New macro.
20488 (selftest::pass): Accept a const location & rather than file
20490 (selftest::fail): Likewise.
20491 (selftest::fail_formatted): Likewise.
20492 (selftest::assert_streq): Likewise.
20493 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
20494 (ASSERT_FALSE): Likewise.
20495 (ASSERT_EQ): Likewise.
20496 (ASSERT_NE): Likewise.
20497 (ASSERT_STREQ): Likewise.
20498 (ASSERT_PRED1): Likewise.
20499 (ASSERT_STREQ_AT): New macro.
20501 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20503 * selftest.c (selftest::fail_formatted): New function.
20504 (selftest::assert_streq): New function.
20505 * selftest.h (selftests::fail_formatted): New decl.
20506 (selftest::assert_streq): New decl.
20507 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
20509 2016-06-13 Jeff Law <law@redhat.com>
20511 PR tree-optimization/71403
20512 * tree-ssa-threadbackward.c
20513 (convert_and_register_jump_thread_path): No longer accept reference
20514 to path. Do not pop items off the path anymore.
20515 (fsm_find_control_statement_thread_paths): Do not allow threading
20516 to a deeper loop nest. Pop the last item off the path here rather
20517 than in convert_and_register_jump_thread_path.
20519 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20520 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
20522 [AArch64] Emit division using the Newton series
20524 * config/aarch64/aarch64-protos.h
20525 (cpu_approx_modes): Add new member "division".
20526 (aarch64_emit_approx_div): Declare new function.
20527 * config/aarch64/aarch64.c
20528 (generic_approx_modes): New member "division".
20529 (exynosm1_approx_modes): Likewise.
20530 (xgene1_approx_modes): Likewise.
20531 (aarch64_emit_approx_div): Define new function.
20532 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
20533 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
20534 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
20535 * doc/invoke.texi (-mlow-precision-div): Describe new option.
20537 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20538 Wilco Dijkstra <wilco.dijkstra@arm.com>
20540 [AArch64] Emit square root using the Newton series
20542 * config/aarch64/aarch64-protos.h
20543 (aarch64_emit_approx_rsqrt): Replace with new function
20544 "aarch64_emit_approx_sqrt".
20545 (cpu_approx_modes): New member "sqrt".
20546 * config/aarch64/aarch64.c
20547 (generic_approx_modes): New member "sqrt".
20548 (exynosm1_approx_modes): Likewise.
20549 (xgene1_approx_modes): Likewise.
20550 (aarch64_emit_approx_rsqrt): Replace with new function
20551 "aarch64_emit_approx_sqrt".
20552 (aarch64_override_options_after_change_1): Handle new option.
20553 * config/aarch64/aarch64-simd.md
20554 (rsqrt<mode>2): Use new function instead.
20555 (sqrt<mode>2): New expansion and insn definitions.
20556 * config/aarch64/aarch64.md: Likewise.
20557 * config/aarch64/aarch64.opt
20558 (mlow-precision-sqrt): Add new option description.
20559 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
20561 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20563 [AArch64] Add more choices for the reciprocal square root approximation
20565 Allow a target to prefer such operation depending on the operation mode.
20567 * config/aarch64/aarch64-protos.h
20568 (AARCH64_APPROX_MODE): New macro.
20569 (AARCH64_APPROX_{NONE,ALL}): Likewise.
20570 (cpu_approx_modes): New structure.
20571 (tune_params): New member "approx_modes".
20572 * config/aarch64/aarch64-tuning-flags.def
20573 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
20574 * config/aarch64/aarch64.c
20575 (generic_approx_modes): New core "cpu_approx_modes" structure.
20576 (exynosm1_approx_modes): Likewise.
20577 (xgene1_approx_modes): Likewise.
20578 (generic_tunings): New member "approx_modes".
20579 (cortexa35_tunings): Likewise.
20580 (cortexa53_tunings): Likewise.
20581 (cortexa57_tunings): Likewise.
20582 (cortexa72_tunings): Likewise.
20583 (exynosm1_tunings): Likewise.
20584 (thunderx_tunings): Likewise.
20585 (xgene1_tunings): Likewise.
20586 (use_rsqrt_p): New argument for the mode and use new member from
20588 (aarch64_builtin_reciprocal): Devise mode from builtin.
20589 (aarch64_optab_supported_p): New argument for the mode.
20590 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
20592 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20594 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
20595 RS6000_BTM_MODULO flag into the set of flags that are considered
20596 to be part of the common configuration.
20598 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20600 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
20601 difference unsigned.
20602 (vec_absdb): New macro for vector absolute difference unsigned
20604 (vec_absdh): New macro for vector absolute difference unsigned
20606 (vec_absdw): New macro for vector absolute difference unsigned word.
20607 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
20608 (vadu<mode>3): New insn.
20609 (*p9_vadu<mode>3): New insn.
20610 * config/rs6000/rs6000-builtin.def (vadub): New built-in
20612 (vaduh): New built-in definition.
20613 (vaduw): New built-in definition.
20614 (vadu): New overloaded built-in definition.
20615 (vadub): New overloaded built-in definition.
20616 (vaduh): New overloaded built-in definition.
20617 (vaduw): New overloaded built-in definition.
20618 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20619 overloaded vector absolute difference unsigned functions.
20620 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
20621 the ISA 3.0 vector absolute difference unsigned built-in functions.
20623 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
20625 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
20626 update shared_lookup_references only once after changing operands.
20628 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
20630 PR middle-end/71373
20631 * tree-nested.c (convert_nonlocal_omp_clauses)
20632 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
20634 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
20635 * tree.def (CASE_LABEL_EXPR): Likewise.
20637 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
20640 * input.c (test_builtins): Fix an assertion.
20642 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20644 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
20645 (paritysi2): Ditto.
20647 (isinf<mode>2): Ditto.
20649 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20651 * ggc-tests.c (test_finalization): Only test need_finalization_p
20652 for GCC_VERSION >= 4003.
20654 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20656 * config/s390/vecintrin.h: Fix file description in comment.
20658 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20660 * config/s390/s390-builtin-types.def: Change builtin type naming
20661 scheme to match builtin-types.def.
20663 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
20665 * fold-const.c (optimize_minmax_comparison): Remove.
20666 (fold_comparison): Remove call to the above.
20667 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
20668 New transformations.
20670 2016-06-13 Alan Hayward <alan.hayward@arm.com>
20672 PR tree-optimization/71416
20673 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
20676 2016-06-13 Martin Liska <mliska@suse.cz>
20678 * predict.c (enum predictor_reason): Prefix enum with REASON_.
20679 (combine_predictions_for_insn): Likewise.
20680 (prune_predictions_for_bb): Likewise.
20681 (combine_predictions_for_bb): Likewise.
20683 2016-06-13 Richard Biener <rguenther@suse.de>
20685 PR tree-optimization/71505
20686 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
20687 assert match comment.
20689 2016-06-13 Marek Polacek <polacek@redhat.com>
20691 PR middle-end/71476
20692 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
20693 gimplify_switch_expr.
20694 (warn_switch_unreachable_r): New function.
20696 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20699 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
20702 2016-06-13 Richard Biener <rguenther@suse.de>
20704 PR middle-end/64516
20705 * fold-const.c (fold_unary_loc): Preserve alignment when
20706 folding a VIEW_CONVERT_EXPR into a MEM_REF.
20708 2016-06-13 Martin Liska <mliska@suse.cz>
20711 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
20712 w/ -fsanitize=bounds.
20714 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20716 * config/i386/i386.c (ix86_init_builtins): Calculate
20717 FLOAT128_FTYPE_CONST_STRING function type only once.
20718 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
20719 built-in functions are available for x86-32 and x86-64 targets.
20721 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20724 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
20725 New primitive type.
20726 (FLOAT128_FTYPE_CONST_STRING): New function type.
20727 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
20728 [IX86_BUILTIN_NANSQ]: Ditto.
20729 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20730 (ix86_init_builtin_types): Declare const_string_type_node.
20731 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
20733 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20734 * doc/extend.texi (x86 Built-in Functions): Document
20735 __builtin_nanq and __builtin_nansq.
20737 2016-06-11 Jiong Wang <jiong.wang@arm.com>
20740 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
20741 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
20742 length for pop patterns.
20743 (arm_attr_length_push_multi): Update comments.
20744 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
20746 (*pop_multiple_with_writeback_and_return): Likewise.
20747 (*pop_multiple_with_return): Likewise.
20749 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
20751 PR middle-end/71310
20752 * fold-const.c (optimize_bit_field_compare): Don't try to use
20753 word_mode unconditionally for reading the bit field, look at
20754 DECL_BIT_FIELD_REPRESENTATIVE instead.
20756 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
20758 PR middle-end/71478
20759 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
20760 vector integer type.
20762 2016-06-10 Jakub Jelinek <jakub@redhat.com>
20764 PR middle-end/71494
20765 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
20766 without LABEL_DECL, set *handled_ops_p to false instead of true.
20768 2016-06-10 Martin Sebor <msebor@redhat.com>
20771 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
20772 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
20773 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
20775 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
20776 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
20777 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
20778 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
20779 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
20780 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
20781 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
20782 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
20784 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20786 * config/arm/arm.h (pool_vector_label,
20787 return_used_this_function): Remove.
20789 2016-06-10 Jeff Law <law@redhat.com>
20791 PR tree-optimization/71335
20792 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
20793 zero length paths here.
20794 (convert_and_register_jump_thread_path): Remove hacks related to
20795 duplicated blocks in the jump thread path.
20796 (fsm_find_control_statement_thread_paths): Avoid putting the same
20797 block on the thread path twice, but ensure the thread path is
20798 unchanged from the caller's point of view.
20800 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20802 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
20803 * predict.def (PRED_LOOP_BRANCH): Remove.
20805 2016-06-10 David Malcolm <dmalcolm@redhat.com>
20807 * Makefile.in (OBJS): Add ggc-tests.o.
20808 (GTFILES): Add ggc-tests.c.
20809 * ggc-tests.c: New file.
20810 * selftest-run-tests.c (selftest::run_tests): Call
20811 selftest::ggc_tests_c_tests.
20812 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
20814 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
20816 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
20818 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
20821 * varasm.c (place_block_symbol): Adjust alignment for asan protected
20822 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
20824 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20826 * profile.c: Include cfgloop.h.
20827 (branch_prob): Compute estimated number of iterations.
20828 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
20829 recompute estimate number of iterations from profile.
20831 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20833 PR inline-asm/68843
20834 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
20835 must be grouped on top of stack. Don't force early clobber
20836 on ordinary reg outputs.
20838 2016-06-10 Richard Biener <rguenther@suse.de>
20840 * targhooks.c (default_builtin_vectorization_cost): Adjust
20841 vec_construct cost.
20843 2016-06-10 Richard Biener <rguenther@suse.de>
20845 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
20846 to fold the RHS to a constant if possible.
20848 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
20850 PR middle-end/71373
20851 * tree-nested.c (convert_nonlocal_omp_clauses)
20852 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
20853 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20854 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
20856 * gimplify.c (gimplify_adjust_omp_clauses): Discard
20858 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
20860 * omp-low.c (scan_sharing_clauses): Don't expect
20861 OMP_CLAUSE__CACHE_.
20863 2016-06-10 Alan Hayward <alan.hayward@arm.com>
20865 PR tree-optimization/71407
20866 PR tree-optimization/71416
20867 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
20868 BIT_FIELD_REF type.
20870 2016-06-10 Richard Biener <rguenther@suse.de>
20872 PR middle-end/71477
20873 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
20875 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
20877 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
20879 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
20880 Jiong Wang <jiong.wang@arm.com>
20882 PR rtl-optimization/70751
20883 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
20884 spilled into memory.
20886 2016-06-09 Jonathan Yong <10walls@gmail.com>
20889 2015-09-21 Jonathan Yong <10walls@gmail.com>
20891 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
20892 sysroot/usr/lib/32api for additional win32 libraries,
20893 fixes failing Cygwin bootstrapping.
20895 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
20897 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
20900 2016-06-09 David Malcolm <dmalcolm@redhat.com>
20903 * pretty-print.c (pp_indent): Specify that %p is printed in a
20904 host-dependent manner.
20905 (test_pp_format): Remove the test for %p.
20907 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
20909 * config/mips/mips.c (mips_output_jump): Fix formatting.
20911 2016-06-09 Richard Biener <rguenther@suse.de>
20913 PR tree-optimization/71462
20914 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
20917 2016-06-09 Martin Liska <mliska@suse.cz>
20919 * predict.c (dump_prediction): Add new argument.
20920 (enum predictor_reason): New enum.
20921 (struct predictor_hash): New struct.
20922 (predictor_hash::hash): New function.
20923 (predictor_hash::equal): Likewise.
20924 (not_removed_prediction_p): New function.
20925 (prune_predictions_for_bb): Likewise.
20926 (combine_predictions_for_bb): Prune predictions.
20928 2016-06-09 Martin Liska <mliska@suse.cz>
20930 * predict.c (filter_predictions): New function.
20931 (remove_predictions_associated_with_edge): Use the filter
20933 (equal_edge_p): New function.
20935 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
20937 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
20938 Correct usage of @samp vs @option, add @samp where appropriate.
20939 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
20940 Add armv6s-m and document it, as it is no official ARM name.
20942 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20944 * ifcvt.c (struct noce_if_info): Add transform_name field.
20945 (noce_try_move): Set if_info->transform_name to the function name.
20946 (noce_try_ifelse_collapse): Likewise.
20947 (noce_try_store_flag): Likewise.
20948 (noce_try_inverse_constants): Likewise.
20949 (noce_try_store_flag_constants): Likewise.
20950 (noce_try_addcc): Likewise.
20951 (noce_try_store_flag_mask): Likewise.
20952 (noce_try_cmove): Likewise.
20953 (noce_try_cmove_arith): Likewise.
20954 (noce_try_minmax): Likewise.
20955 (noce_try_abs): Likewise.
20956 (noce_try_sign_mask): Likewise.
20957 (noce_try_bitop): Likewise.
20958 (noce_convert_multiple_sets): Likewise.
20959 (noce_process_if_block): Print if_info->transform_name to
20960 dump_file if transformation succeeded.
20962 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20964 * config/arm/cortex-a57.md (cortex_a57_alu):
20967 2016-06-08 Martin Sebor <msebor@redhat.com>
20968 Jakub Jelinek <jakub@redhat.com>
20972 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
20973 BUILT_IN_MUL_OVERFLOW_P): New builtins.
20974 * builtins.c: Include gimple-fold.h.
20975 (fold_builtin_arith_overflow): Handle
20976 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
20977 (fold_builtin_3): Likewise.
20978 * doc/extend.texi (Integer Overflow Builtins): Document
20979 __builtin_{add,sub,mul}_overflow_p.
20981 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
20983 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
20984 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
20986 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
20988 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
20989 Rewrite, looking one level down for records and arrays.
20991 2016-06-08 David Malcolm <dmalcolm@redhat.com>
20993 * pretty-print.c: Include "selftest.h".
20994 (pp_format): Fix comment.
20995 (identifier_to_locale): Likewise.
20996 (selftest::test_basic_printing): New function.
20997 (selftest::assert_pp_format): New function.
20998 (selftest::test_pp_format): New function.
20999 (selftest::pretty_print_c_tests): New function.
21000 * selftest-run-tests.c (selftest::run_tests): Call
21001 selftest::pretty_print_c_tests.
21002 * selftest.h (pretty_print_c_tests): New declaration.
21004 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21006 * invoke.texi (max-loop-headers-insns): Document.
21007 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
21008 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
21009 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
21011 2016-06-08 Richard Biener <rguenther@suse.de>
21013 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
21014 on strided SLP loads and fall back to scalar loads in case
21015 we can't chunk them.
21017 2016-06-08 Richard Biener <rguenther@suse.de>
21019 PR tree-optimization/71452
21020 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
21021 type used for the SSA rewrite has enough precision to cover
21022 the dynamic type of the location.
21024 2016-06-08 Jakub Jelinek <jakub@redhat.com>
21025 Richard Biener <rguenther@suse.de>
21028 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
21029 the same as DECL_P (base0) for indirect_base0. Use equality_code
21030 in one further place.
21032 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
21034 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
21035 to one word if the field is known to overlap other words.
21036 (extract_bit_field_1): Likewise.
21037 (store_split_bit_field): Remove compensating code.
21038 (extract_split_bit_field): Likewise.
21040 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
21044 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
21046 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21048 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
21050 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
21051 (arch64_addpv4sf): Delete.
21052 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
21053 "gen_aarch64_addpv4sf".
21054 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
21056 (vpadds_f32): Likewise.
21057 (vpaddq_f32): Likewise.
21058 (vpaddq_f64): Likewise.
21060 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21062 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
21064 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
21065 to VALLF. Rename to "fabd<mode>3".
21066 "*fabd_scalar<mode>3): Delete.
21067 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
21069 (vabdd_f64): Likewise.
21070 (vabd_f32): Likewise.
21071 (vabd_f64): Likewise.
21072 (vabdq_f32): Likewise.
21073 (vabdq_f64): Likewise.
21075 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21077 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
21079 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
21080 "aarch64_rsqrts<mode>".
21081 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
21082 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
21084 (vrsqrtsd_f64): Likewise.
21085 (vrsqrts_f32): Likewise.
21086 (vrsqrts_f64): Likewise.
21087 (vrsqrtsq_f32): Likewise.
21088 (vrsqrtsq_f64): Likewise.
21090 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21092 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
21094 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
21095 "aarch64_rsqrte<mode>".
21096 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
21097 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
21099 (vrsqrted_f64): Likewise.
21100 (vrsqrte_f32): Likewise.
21101 (vrsqrte_f64): Likewise.
21102 (vrsqrteq_f32): Likewise.
21103 (vrsqrteq_f64): Likewise.
21105 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21107 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
21109 (fcvtzs): Likewise.
21110 (fcvtzu): Likewise.
21111 * config/aarch64/aarch64-simd.md
21112 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
21113 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
21114 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
21116 (vcvt_n_f32_u32): Likewise.
21117 (vcvt_n_s32_f32): Likewise.
21118 (vcvt_n_u32_f32): Likewise.
21119 (vcvtq_n_f32_s32): Likewise.
21120 (vcvtq_n_f32_u32): Likewise.
21121 (vcvtq_n_f64_s64): Likewise.
21122 (vcvtq_n_f64_u64): Likewise.
21123 (vcvtq_n_s32_f32): Likewise.
21124 (vcvtq_n_s64_f64): Likewise.
21125 (vcvtq_n_u32_f32): Likewise.
21126 (vcvtq_n_u64_f64): Likewise.
21127 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
21128 (VSDQ_SDI): Likewise.
21129 (fcvt_target): Support V4DI, V4SI and V2SI.
21130 (FCVT_TARGET): Likewise.
21132 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21134 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
21135 (TYPES_BINOP_SUS): Likewise.
21136 (aarch64_simd_builtin_data): Update include file name.
21137 (aarch64_builtins): Likewise.
21138 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
21139 for conversion between scalar float-point and fixed-point.
21141 (fcvtzs): Likewise.
21142 (fcvtzu): Likewise.
21143 * config/aarch64/aarch64.md
21144 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
21145 pattern for conversion between scalar float to fixed-pointer.
21146 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
21147 (UNSPEC_FCVTZS): New UNSPEC enumeration.
21148 (UNSPEC_FCVTZU): Likewise.
21149 (UNSPEC_SCVTF): Likewise.
21150 (UNSPEC_UCVTF): Likewise.
21151 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
21153 (vcvtd_n_f64_u64): Likewise.
21154 (vcvtd_n_s64_f64): Likewise.
21155 (vcvtd_n_u64_f64): Likewise.
21156 (vcvtd_n_f32_s32): Likewise.
21157 (vcvts_n_f32_u32): Likewise.
21158 (vcvtd_n_s32_f32): Likewise.
21159 (vcvts_n_u32_f32): Likewise.
21160 * config/aarch64/iterators.md (fcvt_target): Support integer to float
21162 (FCVT_TARGET): Likewise.
21163 (FCVT_FIXED2F): New iterator.
21164 (FCVT_F2FIXED): Likewise.
21165 (fcvt_fixed_insn): New define_int_attr.
21167 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21169 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
21170 some statements was removed.
21172 2016-06-08 Alan Hayward <alan.hayward@arm.com>
21174 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
21175 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
21176 (vect_can_advance_ivs_p): likewise.
21177 (vect_update_ivs_after_vectorizer): likewise.
21178 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
21179 (vect_analyze_scalar_cycles_1): likewise.
21180 (vect_analyze_loop_operations): likewise.
21181 (report_vect_op): likewise.
21182 (vect_is_slp_reduction): likewise.
21183 (vect_is_simple_reduction): likewise.
21184 (get_initial_def_for_induction): likewise.
21185 (vect_transform_loop): likewise.
21186 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
21187 (vect_recog_sad_pattern): likewise.
21188 (vect_recog_widen_sum_pattern): likewise.
21189 (vect_recog_widening_pattern): likewise.
21190 (vect_recog_divmod_pattern): likewise.
21191 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
21192 (vect_analyze_slp_instance): likewise.
21193 (vect_transform_slp_perm_load): likewise.
21194 (vect_schedule_slp_instance): likewise.
21196 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21198 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
21199 (return_prediction): PRED_CONST_RETURN predict return as not taken.
21200 * predict.def (PRED_CONTINUE): Change hitrate 50->67
21201 (PRED_LOOP_BRANCH): Document predictor as broken.
21202 (PRED_LOOP_EXIT): Change hitrate 91->92.
21203 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
21204 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
21205 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
21206 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
21207 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
21208 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
21209 (PRED_CALL): Chane hitrate 71->67.
21210 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
21211 (PRED_GOTO): Document as unused right now.
21212 (PRED_CONST_RETURN): Change hitrate 67->69
21213 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
21214 (PRED_NULL_RETURN): Change hitrate 91->90.
21215 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
21216 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
21217 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
21219 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
21221 * config/rs6000/altivec.h: Add __builtin_vec_mul.
21222 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
21223 special case Altivec builtin.
21224 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21225 VSX_BUILTIN_VEC_MUL (replaced with special case code).
21226 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21227 code for ALTIVEC_BUILTIN_VEC_MUL.
21228 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
21229 for __builtin_vec_mul.
21231 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
21233 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
21236 2016-06-07 David Malcolm <dmalcolm@redhat.com>
21238 * spellcheck.c (selftest::test_find_closest_string): New function.
21239 (spellcheck_c_tests): Call the above.
21241 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21243 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
21245 2016-06-07 Jakub Jelinek <jakub@redhat.com>
21247 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
21248 Yv=Yv,C alternatives.
21250 2016-06-07 Richard Biener <rguenther@suse.de>
21253 * common.opt (ffast-math): Make Optimization.
21255 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
21256 Prachi Godbole <prachi.godbole@imgtec.com>
21258 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
21259 `fabs' and `fneg' type attributes.
21260 (p5600_fpu_fabs): Add `fmove' to the comment.
21262 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21264 * gimple.c: Include builtins.h
21265 (gimple_inexpensive_call_p): New function.
21266 * gimple.h (gimple_inexpensive_call_p): Declare.
21267 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
21268 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
21271 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
21273 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
21274 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
21275 warning_at_rich_loc, warning_n, pedwarn, permerror,
21276 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
21277 sorry, fatal_error, internal_error, internal_error_no_backtrace):
21280 2016-06-07 Richard Biener <rguenther@suse.de>
21282 PR tree-optimization/71428
21283 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
21284 BIT_FIELD_REF op vs. load.
21286 2016-06-07 Richard Biener <rguenther@suse.de>
21288 PR middle-end/71423
21289 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
21292 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21294 * config/pa/pa.md (call): Generate indirect long calls to non-local
21295 functions on TARGET_64BIT.
21296 (call_value): Likewise.
21298 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21300 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
21301 pattern and subsequent splitters.
21302 (call_val_reg_64bit_post_reload): Likewise.
21304 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21306 PR middle-end/71408
21307 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
21308 propagate_op_to_single_use.
21310 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21312 PR middle-end/71281
21313 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
21315 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
21317 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
21318 (enum x86_dirflag_state): New enum.
21319 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
21320 (machine_function): Remove needs_cld.
21321 (ix86_current_function_needs_cld): Remove.
21322 * config/i386/i386.c (ix86_set_func_type): Set
21323 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
21324 (ix86_expand_prologue): Do not emit CLD here.
21325 (ix86_dirflag_mode_needed): New function.
21326 (ix86_dirflag_mode_entry): Ditto.
21327 (ix86_mode_needed): Handle X86_DIRFLAG entity.
21328 (ix86_mode_after): Ditto.
21329 (ix86_mode_entry): Ditto.
21330 (ix86_mode_exit): Ditto.
21331 (ix86_emit_mode_set): Ditto.
21332 * config/i386/i386.md (strmov_singleop): Set
21333 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
21334 Do not set ix86_current_function_needs_cld.
21336 (strset_singleop): Ditto.
21338 (cmpstrnqi_nz_1): Ditto.
21339 (cmpstrnqi_1): Ditto.
21340 (strlenqi_1): Ditto.
21342 2016-06-06 Jakub Jelinek <jakub@redhat.com>
21344 PR tree-optimization/71259
21345 * tree-vect-slp.c (vect_get_constant_vectors): For
21346 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
21347 one for constant op, and use COND_EXPR for non-constant.
21349 2016-06-06 David Malcolm <dmalcolm@redhat.com>
21351 * Makefile.in (OBJS): Add function-tests.o,
21352 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
21353 selftest-run-tests.o.
21354 (OBJS-libcommon): Add selftest.o.
21355 (OBJS-libcommon-target): Add selftest.o.
21356 (all.internal): Add "selftest".
21357 (all.cross): Likewise.
21358 (selftest): New phony target.
21359 (s-selftest): New target.
21360 (selftest-gdb): New phony target.
21361 (COLLECT2_OBJS): Add selftest.o.
21362 * bitmap.c: Include "selftest.h".
21363 (selftest::test_gc_alloc): New function.
21364 (selftest::test_set_range): New function.
21365 (selftest::test_clear_bit_in_middle): New function.
21366 (selftest::test_copying): New function.
21367 (selftest::test_bitmap_single_bit_set_p): New function.
21368 (selftest::bitmap_c_tests): New function.
21369 * common.opt (fself-test): New.
21370 * diagnostic-show-locus.c: Include "selftest.h".
21371 (make_range): New function.
21372 (test_range_contains_point_for_single_point): New function.
21373 (test_range_contains_point_for_single_line): New function.
21374 (test_range_contains_point_for_multiple_lines): New function.
21375 (assert_eq): New function.
21376 (test_get_line_width_without_trailing_whitespace): New function.
21377 (selftest::diagnostic_show_locus_c_tests): New function.
21378 * et-forest.c: Include "selftest.h".
21379 (selftest::test_single_node): New function.
21380 (selftest::test_simple_tree): New function.
21381 (selftest::test_disconnected_nodes): New function.
21382 (selftest::et_forest_c_tests): New function.
21383 * fold-const.c: Include "selftest.h".
21384 (selftest::assert_binop_folds_to_const): New function.
21385 (selftest::assert_binop_folds_to_nonlvalue): New function.
21386 (selftest::test_arithmetic_folding): New function.
21387 (selftest::fold_const_c_tests): New function.
21388 * function-tests.c: New file.
21389 * gimple.c: Include "selftest.h".
21390 Include "gimple-pretty-print.h".
21391 (selftest::verify_gimple_pp): New function.
21392 (selftest::test_assign_single): New function.
21393 (selftest::test_assign_binop): New function.
21394 (selftest::test_nop_stmt): New function.
21395 (selftest::test_return_stmt): New function.
21396 (selftest::test_return_without_value): New function.
21397 (selftest::gimple_c_tests): New function.
21398 * hash-map-tests.c: New file.
21399 * hash-set-tests.c: New file.
21400 * input.c: Include "selftest.h".
21401 (selftest::assert_loceq): New function.
21402 (selftest::test_accessing_ordinary_linemaps): New function.
21403 (selftest::test_unknown_location): New function.
21404 (selftest::test_builtins): New function.
21405 (selftest::test_reading_source_line): New function.
21406 (selftest::input_c_tests): New function.
21407 * rtl-tests.c: New file.
21408 * selftest-run-tests.c: New file.
21409 * selftest.c: New file.
21410 * selftest.h: New file.
21411 * spellcheck.c: Include "selftest.h".
21412 (selftest::levenshtein_distance_unit_test_oneway): New function,
21413 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
21414 (selftest::levenshtein_distance_unit_test): Likewise.
21415 (selftest::spellcheck_c_tests): Likewise.
21416 * toplev.c: Include selftest.h.
21417 (toplev::run_self_tests): New.
21418 (toplev::main): Handle -fself-test.
21419 * toplev.h (toplev::run_self_tests): New.
21420 * tree.c: Include "selftest.h".
21421 (selftest::test_integer_constants): New function.
21422 (selftest::test_identifiers): New function.
21423 (selftest::test_labels): New function.
21424 (selftest::tree_c_tests): New function.
21425 * tree-cfg.c: Include "selftest.h".
21426 (selftest::push_fndecl): New function.
21427 (selftest::test_linear_chain): New function.
21428 (selftest::test_diamond): New function.
21429 (selftest::test_fully_connected): New function.
21430 (selftest::tree_cfg_c_tests): New function.
21431 * vec.c: Include "selftest.h".
21432 (selftest::safe_push_range): New function.
21433 (selftest::test_quick_push): New function.
21434 (selftest::test_safe_push): New function.
21435 (selftest::test_truncate): New function.
21436 (selftest::test_safe_grow_cleared): New function.
21437 (selftest::test_pop): New function.
21438 (selftest::test_safe_insert): New function.
21439 (selftest::test_ordered_remove): New function.
21440 (selftest::test_unordered_remove): New function.
21441 (selftest::test_block_remove): New function.
21442 (selftest::reverse_cmp): New function.
21443 (selftest::test_qsort): New function.
21444 (selftest::vec_c_tests): New function.c.
21445 * wide-int.cc: Include selftest.h and wide-int-print.h.
21446 (selftest::from_int <wide_int>): New function.
21447 (selftest::from_int <offset_int>): New function.
21448 (selftest::from_int <widest_int>): New function.
21449 (selftest::assert_deceq): New function.
21450 (selftest::assert_hexeq): New function.
21451 (selftest::test_printing <VALUE_TYPE>): New function template.
21452 (selftest::test_ops <VALUE_TYPE>): New function template.
21453 (selftest::test_comparisons <VALUE_TYPE>): New function template.
21454 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
21456 (selftest::wide_int_cc_tests): New function.
21458 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21460 PR middle-end/37780
21461 * ifcvt.c (noce_try_ifelse_collapse): New function.
21463 (noce_process_if_block): Call noce_try_ifelse_collapse.
21464 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
21465 (simplify_ternary_operation): Use the above to simplify
21466 conditional CLZ/CTZ expressions.
21468 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21470 PR middle-end/37780
21471 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
21472 define_insn_and_split.
21474 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21476 PR middle-end/37780
21477 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
21479 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
21482 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
21483 Implicitly clobber memory for basic asm with non-empty assembler
21484 string. Use targetm.md_asm_adjust also here.
21485 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
21486 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
21487 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
21488 non-empty assembler string.
21489 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
21490 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
21491 (decode_asm_operands): Handle basic asm in PARALLEL block.
21492 (extract_insn): Handle basic asm in PARALLEL block.
21493 * doc/extend.texi: Mention new behavior of basic asm.
21494 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
21495 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
21496 branch_needs_nop_p): Use asm_noperands.
21498 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
21500 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
21501 Include the M7 SPARC DFA scheduler.
21502 New attribute v3pipe.
21503 Annotate insns with v3pipe where appropriate.
21504 Define cpu_feature vis4.
21505 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
21506 Add (V8QI "8") to vbits.
21507 Add insns {add,sub}v8qi3
21508 Add insns ss{add,sub}v8qi3
21509 Add insns us{add,sub}{v8qi,v4hi}3
21510 Add insns {min,max}{v8qi,v4hi,v2si}3
21511 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
21512 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
21513 * config/sparc/niagara4.md: Add a comment explaining the
21514 discrepancy between the documented latenty numbers and the
21516 * config/sparc/niagara7.md: New file.
21517 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
21518 supports SPARC5 and VIS 4.0 instructions.
21519 * configure: Regenerate.
21520 * config.in: Likewise.
21521 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
21522 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
21523 TARGET_CPU_niagara7.
21524 (ASM_CPU64_DEFAULT_SPEC): Likewise.
21525 (CPP_CPU_SPEC): Handle niagara7.
21526 (ASM_CPU_SPEC): Likewise.
21527 * config/sparc/sparc-opts.h (processor_type): Add
21528 PROCESSOR_NIAGARA7.
21529 (mvis4): New option.
21530 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
21531 (AS_NIAGARA7_FLAG): Define.
21532 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
21533 (CPP_CPU64_DEFAULT_SPEC): Likewise.
21534 (CPP_CPU_SPEC): Handle niagara7.
21535 (ASM_CPU_SPEC): Likewise.
21536 * config/sparc/sparc.c (niagara7_costs): Define.
21537 (sparc_option_override): Handle niagara7 and adjust cache-related
21538 parameters with better values for niagara cpus. Also support VIS4.
21539 (sparc32_initialize_trampoline): Likewise.
21540 (sparc_use_sched_lookahead): Likewise.
21541 (sparc_issue_rate): Likewise.
21542 (sparc_register_move_cost): Likewise.
21543 (dump_target_flag_bits): Support VIS4.
21544 (sparc_vis_init_builtins): Likewise.
21545 (sparc_builtins): Likewise.
21546 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
21548 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
21550 * config/sparc/sparc.opt (sparc_processor_type): New value
21552 * config/sparc/visintrin.h (__attribute__): Prototypes for the
21554 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
21556 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
21559 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
21561 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
21563 2016-06-06 Richard Biener <rguenther@suse.de>
21565 PR tree-optimization/71398
21566 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
21569 2016-06-05 James Bowman <james.bowman@ftdichip.com>
21571 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
21572 ft32_expand_prolog, ft32_expand_epilogue):
21573 Handle pretend_args.
21574 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
21575 * config/ft32/ft32.md: Add pretend_returner.
21577 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
21580 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
21581 Copy op1 RTX to avoid invalid sharing.
21582 (ix86_expand_vector_move_misalign): Ditto.
21584 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
21586 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
21589 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21591 * predict.c (predicted_by_loop_heuristics_p): New function.
21592 (predict_iv_comparison): Use it.
21593 (predict_loops): Walk from innermost loops; do not predict edges
21594 leaving multiple loops multiple times; implement
21595 PRED_LOOP_ITERATIONS_MAX heuristics.
21596 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
21598 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21600 * cfg.c (check_bb_profile): Do not report mismatched profiles when
21601 only edges out of BB are EH edges.
21603 2016-06-04 Martin Sebor <msebor@redhat.com>
21604 Marcin Baczyński <marbacz@gmail.com>
21607 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
21608 a void expression in a void function.
21610 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21612 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
21613 aux; dump reasons of decisions.
21614 (should_duplicate_loop_header_p): Likewise.
21615 (do_while_loop_p): Likewise.
21616 (ch_base::copy_headers): Dump asi num insns duplicated.
21618 2016-06-04 Jakub Jelinek <jakub@redhat.com>
21620 PR tree-optimization/71405
21621 * tree-ssa.c (execute_update_addresses_taken): For clobber with
21622 incompatible type, build a new clobber with the right type instead
21623 of building a VIEW_CONVERT_EXPR around it.
21625 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21627 PR tree-optimization/52171
21628 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
21629 by_pieces_ninsns instead of move_by_pieces_ninsns.
21631 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21633 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
21634 for reg+reg addressing mode.
21636 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21638 * rs6000-c.c (c/c-tree.h): Add #include.
21639 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
21640 in C++ when found in the base position of vec_ld or vec_st.
21642 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21644 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
21645 use of profile unless profile status is PROFILE_READ.
21646 * profile.c (compute_branch_probabilities): Set profile status
21647 only after reporting predictor hitrates.
21649 2016-06-03 Joseph Myers <joseph@codesourcery.com>
21653 * common.opt (ffp-int-builtin-inexact): New option.
21654 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
21655 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
21656 (ceil@var{m}2): Document dependence on this option.
21657 * ipa-inline-transform.c (inline_call): Handle
21658 flag_fp_int_builtin_inexact.
21659 * ipa-inline.c (can_inline_edge_p): Likewise.
21660 * config/i386/i386.md (rintxf2): Do not test
21661 flag_unsafe_math_optimizations.
21662 (rint<mode>2_frndint): New define_insn.
21663 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
21664 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
21665 for 387 instead of extending and truncating.
21666 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
21667 !flag_trapping_math instead of flag_unsafe_math_optimizations.
21668 Change to frndint<mode>2_<rounding>.
21669 (frndintxf2_<rounding>_i387): Likewise. Change to
21670 frndint<mode>2_<rounding>_i387.
21671 (<rounding_insn>xf2): Likewise.
21672 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
21673 !flag_trapping_math instead of flag_unsafe_math_optimizations for
21674 x87. Test TARGET_ROUND || !flag_trapping_math ||
21675 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
21676 SSE. Use ROUND_NO_EXC in constant operand of
21677 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
21678 for 387 instead of extending and truncating.
21680 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
21681 Julia Koval <julia.koval@intel.com>
21693 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
21694 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
21695 all registers, except for function return registers if there are
21696 no caller-saved registers.
21697 (ix86_set_func_type): New function.
21698 (ix86_set_current_function): Call ix86_set_func_type to set
21699 no_caller_saved_registers and func_type. Call reinit_regs if
21700 caller-saved registers are changed. Don't allow MPX, SSE, MMX
21701 nor x87 instructions in interrupt handler nor function with
21702 no_caller_saved_registers attribute.
21703 (ix86_function_ok_for_sibcall): Return false if there are no
21704 caller-saved registers.
21705 (type_natural_mode): Don't warn ABI change for MMX in interrupt
21707 (ix86_function_arg_advance): Skip for callee in interrupt handler.
21708 (ix86_function_arg): Return special arguments in interrupt handler.
21709 (ix86_promote_function_mode): Promote pointer to word_mode only
21710 for normal functions.
21711 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
21713 (ix86_epilogue_uses): New function.
21714 (ix86_hard_regno_scratch_ok): Likewise.
21715 (ix86_save_reg): Preserve all registers in interrupt handler
21716 after reload. Preserve all registers, except for function return
21717 registers, if there are no caller-saved registers after reload.
21718 (find_drap_reg): Always use callee-saved register if there are
21719 no caller-saved registers.
21720 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
21721 for interrupt handler.
21722 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
21723 Emit cld instruction if stringops are used in interrupt handler
21724 or interrupt handler isn't a leaf function.
21725 (ix86_expand_epilogue): Generate interrupt return for interrupt
21726 handler and pop the 'ERROR_CODE' off the stack before interrupt
21727 return in exception handler.
21728 (ix86_expand_call): Disallow calling interrupt handler directly.
21729 If there are no caller-saved registers, mark all registers that
21730 are clobbered by the call which returns as clobbered.
21731 (ix86_handle_no_caller_saved_registers_attribute): New function.
21732 (ix86_handle_interrupt_attribute): Likewise.
21733 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
21735 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
21736 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
21737 accumulation in interrupt function if stack may be realigned to
21739 (EPILOGUE_USES): New.
21740 (function_type): New enum.
21741 (machine_function): Add func_type and no_caller_saved_registers.
21742 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
21743 (interrupt_return): New pattern.
21744 * doc/extend.texi: Document x86 interrupt and
21745 no_caller_saved_registers attributes.
21747 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
21749 PR tree-optimization/52171
21750 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
21751 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
21752 Look for constant strings. Move some code to emit_block_cmp_hints
21754 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
21755 * defaults.h (COMPARE_MAX_PIECES): New macro.
21756 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
21757 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
21758 (clear_by_pieces_1): Don't declare. Move definition before use.
21759 (can_do_by_pieces): New static function.
21760 (can_move_by_pieces): Use it. Return bool.
21761 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
21762 OP. All callers changed. Handle COMPARE_BY_PIECES.
21763 (class pieces_addr); New.
21764 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
21765 pieces_addr::adjust, pieces_addr::increment_address,
21766 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
21768 (class op_by_pieces_d): New.
21769 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
21771 (class move_by_pieces_d, class compare_by_pieces_d,
21772 class store_by_pieces_d): New subclasses of op_by_pieces_d.
21773 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
21774 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
21775 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
21776 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
21777 compare_by_pieces_d::finish_mode): New member functions.
21778 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
21780 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
21781 (emit_block_cmp_hints): New function.
21782 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
21783 use the newly defined classes.
21784 * expr.h (by_pieces_constfn): New typedef.
21785 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
21786 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
21787 (move_by_pieces_ninsns): Don't declare.
21788 (can_move_by_pieces): Change return value to bool.
21789 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
21790 (compare_by_pieces_branch_ratio): New hook.
21791 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
21792 (by_pieces_ninsns): Declare.
21793 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
21795 (default_compare_by_pieces_branch_ratio): New function.
21796 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
21797 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
21798 * doc/tm.texi: Regenerate.
21799 * tree-ssa-strlen.c: Include "builtins.h".
21800 (handle_builtin_memcmp): New static function.
21801 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
21802 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
21804 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21806 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
21807 relevant stmts which are simple and invariant.
21808 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
21809 instead of simple and invariant
21811 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21813 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
21814 (vectorizable_reduction): Check for new relevant state.
21815 (vectorizable_live_operation): vectorize live stmts using
21816 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
21817 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
21818 (vect_stmt_relevant_p): Check for stmts which are only used live.
21819 (process_use): Use of a stmt does not inherit it's live value.
21820 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
21821 (vect_analyze_stmt): Check for new relevant state.
21822 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
21823 outside the loop, but not inside it.
21825 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21827 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
21828 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
21829 (vect_get_vec_def_for_operand): Split out code.
21831 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21833 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
21835 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21837 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
21839 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21841 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
21843 2016-06-03 Jakub Jelinek <jakub@redhat.com>
21845 PR middle-end/71387
21846 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
21847 to noreturn e->callee->decl that has void return type and void
21848 arguments, adjust gimple_call_fntype and remove lhs even if it had
21849 previously addressable type.
21851 2016-06-02 Jeff Law <law@redhat.com>
21853 PR tree-optimization/71328
21854 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
21855 error when checking for a jump back onto the copied path.
21857 2016-06-02 David Malcolm <dmalcolm@redhat.com>
21859 * config/microblaze/microblaze.c (get_branch_target): Add return
21860 NULL_RTX for the non-CALL_P case.
21861 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
21862 (insert_wic): Remove unused local "j".
21864 2016-06-02 Martin Liska <mliska@suse.cz>
21866 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
21868 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
21869 Julia Koval <julia.koval@intel.com>
21871 * function.c (assign_parm_setup_stack): Force source into a
21872 register if needed.
21873 * target.def (function_incoming_arg): Update documentation to
21874 allow arbitrary address computation based on hard register.
21875 * doc/tm.texi: Regenerated.
21877 2016-06-02 Martin Liska <mliska@suse.cz>
21879 * predict.c (combine_predictions_for_bb): Fix first match in
21880 cases where a first predictor contains more than one occurence
21881 in list of predictors. Take the best value in such case.
21883 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21885 PR rtl-optimization/71295
21886 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
21887 offset would go over the size of the inner mode reject it.
21889 2016-06-02 Jakub Jelinek <jakub@redhat.com>
21891 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
21892 x=x,x and v=v,m instead of x=x,m.
21894 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
21895 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
21896 alternative to v=rm,C.
21898 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
21899 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
21900 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
21901 instead of vex for the last two above mentioned alternatives.
21903 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21906 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
21908 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
21910 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
21912 2016-06-01 David Malcolm <dmalcolm@redhat.com>
21914 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
21915 from int to unsigned.
21917 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21919 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
21920 alternatives, eliminating preferred register class. Add support
21921 for the MTVSRDD instruction in ISA 3.0.
21922 (vsx_splat_v4si_internal): Use splat_input_operand instead of
21923 reg_or_indexed_operand.
21924 (vsx_splat_v4sf_internal): Likewise.
21926 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21929 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
21930 for loading up all 0's or all 1's.
21932 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
21934 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
21936 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
21938 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
21940 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
21941 * gcc.c (set_source_date_epoch_envvar): New function, sets
21942 the SOURCE_DATE_EPOCH environment variable to the current time.
21944 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21946 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
21947 the factor for live Phi nodes.
21949 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21951 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
21952 * tree-parloops.c (parallelize_loops): likewise.
21953 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
21954 tree_unswitch_outer_loop): likewise.
21956 2016-06-01 Jakub Jelinek <jakub@redhat.com>
21958 PR middle-end/71371
21959 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
21960 around creation of the temporary.
21962 2016-06-01 Richard Biener <rguenther@suse.de>
21964 PR tree-optimization/71366
21965 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
21966 (unloop_loops): Move removing edges here ...
21967 (try_unroll_loop_completely): ... from here.
21968 (try_peel_loop): ... and here.
21969 (tree_unroll_loops_completely_1): Track parent loops via
21970 bitmap of header BBs.
21971 (tree_unroll_loops_completely): Adjust for that.
21973 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
21975 * config/rs6000/altivec.h (vec_slv): New macro.
21976 (vec_srv): New macro.
21977 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
21978 (UNSPEC_VSRV): New value.
21981 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
21982 (vsrv): New builtin definition.
21983 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
21984 define argument types for new builtin.
21985 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
21987 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
21990 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
21991 Jocelyn Mayer <l_indien@magic.fr>
21994 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
21995 detect processor family for signature_CENTAUR_ebx.
21996 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
21997 signature_CENTAUR_ebx.
21998 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
21999 <default>: Pass x86-64 for has_longmode.
22001 2016-06-01 Nathan Sidwell <nathan@acm.org>
22003 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
22006 2016-06-01 Richard Biener <rguenther@suse.de>
22008 PR tree-optimization/71261
22009 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
22010 of stmts successfully put in the bool pattern. Remove
22011 single-use restriction.
22012 (adjust_bool_pattern_cast): Add cast at the use site via the
22013 pattern def sequence.
22014 (adjust_bool_pattern): Remove recursion, maintain a hash-map
22015 of patterned defs. Use the pattern def seqence instead of
22016 multiple independent patterns.
22017 (sort_after_uid): New qsort compare function.
22018 (adjust_bool_stmts): New function to process stmts in the bool
22019 pattern in IL order.
22020 (vect_recog_bool_pattern): Adjust.
22021 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
22022 (ifcvt_walk_pattern_tree): Likewise.
22023 (stmt_is_root_of_bool_pattern): Likewise.
22024 (ifcvt_repair_bool_pattern): Likewise.
22025 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
22027 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
22029 * loop-unroll.c (decide_unroll_constant_iterations,
22030 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
22031 likely upper bounds.
22032 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
22034 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
22036 * tree-core.h (enum omp_clause_code): Remove
22037 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
22039 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22041 * config/arm/sync.md (arm_store_exclusive<mode>):
22042 Use 'H' output modifier on operands[2] rather than creating a new
22043 entry in out-of-bounds memory of the operands array.
22044 (arm_store_release_exclusivedi): Likewise.
22046 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22048 * config/arm/arm.c (arm_fusion_enabled_p): New function.
22049 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
22050 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
22051 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
22053 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
22055 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
22056 into account live statements for mask producers.
22058 2016-06-01 Richard Biener <rguenther@suse.de>
22060 PR tree-optimization/71311
22061 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
22062 restrict to non-INTEGER_CST @0.
22064 2016-06-01 Richard Biener <rguenther@suse.de>
22066 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
22067 (relational patterns): Use :c to avoid pattern duplications.
22069 2016-06-01 Richard Biener <rguenther@suse.de>
22071 * genmatch.c (comparison_code_p): New predicate.
22072 (swap_tree_comparison): New function.
22073 (commutate): Add for_vec parameter to append new for entries.
22074 Support commutating relational operators by swapping it alongside
22076 (lower_commutative): Adjust.
22077 (dt_simplify::gen): Do not pass artificial operators to gen
22079 (decision_tree::gen): Do not add artificial operators as parameters.
22080 (parser::parse_expr): Verify operator commutativity when :c is
22081 applied. Allow :C to override this.
22082 * match.pd: Adjust patterns to use :C instead of :c where required.
22084 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
22086 PR tree-optimization/71077
22087 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
22088 the combining step, use boolean_false_node and boolean_true_node
22089 as the designated false/true return values.
22091 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
22093 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
22094 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
22095 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
22098 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
22100 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
22101 of flags impliying the register renaming.
22102 * toplev.c (process_options): Do not imply flag_rename_registers with
22105 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22107 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
22108 default implementation.
22110 2016-05-31 Nathan Sidwell <nathan@acm.org>
22112 * dwarf2out.c (cur_line_info_table): Add GTY marker.
22114 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22116 * config/sh/constraints.md (b): Remove constraint.
22117 * config/sh/predicates.md (arith_reg_operand): Remove
22119 * config/sh/sh-modes.def (PDI): Remove.
22120 * config/sh/sh.c (sh_target_reg_class,
22121 sh_optimize_target_register_callee_saved): Remove functions.
22122 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
22123 (sh_expand_epilogue): Update comment.
22124 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
22125 sh_secondary_reload): Remove TARGET_REGS related code.
22126 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
22127 TARGET_REGISTER_P): Remove macros.
22128 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
22129 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
22130 TR1_REG, TR2_REG): Remove constants.
22131 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
22133 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22135 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
22136 define_expand patterns.
22137 (adddi3_compact): Rename to adddi3.
22138 (subdi3_compact): Rename to subdi3.
22139 (*negdi2): Rename to negdi2.
22140 (*abs<mode>2): Rename to abs<mode>2.
22142 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22144 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
22145 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
22146 (atomic_sub_fetchsi): ... this new pattern.
22147 (mvtc): Add CC_REG clobber.
22149 2016-05-31 Marek Polacek <polacek@redhat.com>
22151 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
22153 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22155 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
22156 aarch64_fusion_enabled_p to check for fusion capabilities.
22158 2016-05-31 Richard Biener <rguenther@suse.de>
22160 PR tree-optimization/71352
22161 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
22162 minus one and a negate.
22164 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22166 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
22167 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
22169 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
22170 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
22171 Remove use of aarch64_simd_attr_length_move, set length attribute
22173 (*aarch64_be_movoi): Likewise.
22174 (*aarch64_be_movci): Likewise.
22175 (*aarch64_be_movxi): Likewise.
22177 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
22179 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
22180 It no longer does that.
22181 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
22183 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
22185 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
22186 attribute __unused__.
22188 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
22190 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
22191 * config/arm/arm.c (arm_arch_thumb1): Define.
22192 (arm_option_override): Initialize arm_arch_thumb1.
22193 * config/arm/arm.h (arm_arch_thumb1): Declare.
22194 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
22195 support Thumb-1 ISA.
22197 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
22200 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
22201 `Yv' for scalar operand.
22203 2016-05-31 Tom de Vries <tom@codesourcery.com>
22205 PR tree-optimization/69068
22206 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
22207 phis with more than two args.
22209 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
22211 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
22212 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
22215 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
22217 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
22219 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
22221 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
22222 cpu_32, cpu_64, tune_32 and tune_64.
22223 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
22225 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
22227 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
22229 2016-05-30 Andi Kleen <ak@linux.intel.com>
22231 * auto-profile.c (read_profile): Replace asserts with errors
22232 when file does not exist.
22233 * gcov-io.c (gcov_read_words): Dito.
22235 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22237 * tree-cfg.c (print_loop): Print likely upper bounds.
22239 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22241 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
22242 * opts.c (default_options): Enable peel loops at -O3.
22243 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
22244 (try_peel_loop): Do not re-peel already peeled loops;
22245 use likely upper bounds; fix profile updating.
22246 (pass_complete_unroll::execute): Initialize peeled_loops.
22248 2016-05-30 Martin Liska <mliska@suse.cz>
22250 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
22251 computed costs by frequency of BB they belong to.
22252 (get_scaled_computation_cost_at): New function.
22254 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
22255 Marc Glisse <marc.glisse@inria.fr>
22257 PR tree-optimization/71289
22258 * match.pd (-1 / B < A, A > -1 / B): New transformations.
22260 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22262 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
22264 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22266 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
22267 for peeled copies; avoid underflow when updating estimates; correctly
22268 scale loop profile.
22270 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22272 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
22273 r236875. Corrected oe3 to oe2 as obvious.
22275 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22277 PR middle-end/71269
22278 PR middle-end/71252
22279 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
22280 that inserted stmt will not dominate stmts that defines its operand.
22281 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
22282 (rewrite_expr_tree_parallel): Likewise.
22284 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22286 PR middle-end/71252
22287 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
22288 all fields including stmt_to_insert are swapped.
22290 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22292 * predict.h (force_edge_cold): Declare.
22293 * predict.c (force_edge_cold): New function.
22294 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
22296 (canonicalize_loop_induction_variables): Fix formating.
22298 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
22300 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
22301 (visium_expand_copysign): Use gen_int_mode directly.
22302 (visium_compute_frame_size): Minor tweaks.
22304 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22306 * tree-vect-loop.c (vect_analyze_loop_2): Use
22307 likely_max_stmt_executions_int.
22309 2016-05-30 Tom de Vries <tom@codesourcery.com>
22311 PR tree-optimization/69067
22312 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
22314 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
22317 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
22318 New peepholes to remove unneeded fild/fistp pairs.
22319 (define_peephole2 atomic_loaddi_fpu): Ditto.
22321 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22323 * predict.c (maybe_hot_frequency_p): Avoid division.
22325 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
22327 * doc/install.texi: Use https for shop.fsf.org.
22329 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22331 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
22332 likely_max_stmt_executions_int.
22334 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22336 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
22337 likely_max_stmt_executions_int.
22339 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22341 * profile.c (compute_branch_probabilities): Do not report hitrates
22343 (branch_prob): Report hitrates here.
22344 * predict.c (gimple_predict_edge): Do not assert profile status;
22345 fix formatting issues.
22347 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22349 * predict.c (edge_predicted_by_p): New function.
22350 (predict_paths_for_bb): Do not put multiple predictions of the same type
22353 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22355 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
22358 2016-05-28 Alan Modra <amodra@gmail.com>
22360 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
22362 2016-05-28 Alan Modra <amodra@gmail.com>
22364 PR rtl-optimization/71275
22365 * ira.c (ira): Free dominance info.
22367 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
22369 * doc/sourcebuild.texi: New address for upstream Go repository.
22371 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
22373 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
22374 (TARGET_ARM_V7M): Likewise.
22376 2016-05-26 Jeff Law <law@redhat.com>
22378 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
22379 (thread_across_edge): Remove calls to find_jump_threads_backwards.
22380 * passes.def: Add jump threading passes before DOM/VRP.
22381 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
22382 argument to a basic block from an edge. Remove tests which are
22384 (pass_data_thread_jumps, class pass_thread_jumps): New.
22385 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
22386 (make_pass_thread_jumps): Likewise.
22387 * tree-pass.h (make_pass_thread_jumps): Declare.
22389 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
22391 * config/visium/visium-protos.h (split_double_move): Rename into...
22392 (visium_split_double_move): ...this.
22393 (visium_split_double_add): Declare.
22394 * config/visium/visium.c (split_double_move): Rename into...
22395 (visium_split_double_move): ...this.
22396 (visium_split_double_add): New function.
22397 (visium_expand_copysign): Renumber operands for consistency.
22398 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
22399 (DFmode move splitter): Likewise.
22400 (*addi3_insn): Split by means of visium_split_double_add.
22401 (*adddi3_insn_flags): Delete.
22402 (*plus_plus_sltu<subst_arith>): New insn.
22403 (*subdi3_insn): Split by means of visium_split_double_add.
22404 (subdi3_insn_flags): Delete.
22405 (*minus_minus_sltu<subst_arith>): New insn.
22406 (*negdi2_insn): Split by means of visium_split_double_add.
22407 (*negdi2_insn_flags): Delete.
22409 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
22411 * configure.ac: Treat a --with-headers option without argument
22412 the same as the default (i.e. consult sys-include directory).
22413 * configure: Regenerate.
22415 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22417 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
22418 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
22420 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
22421 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
22423 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22426 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
22427 tree-stdarg analysis results.
22428 (aarch64_setup_incoming_varargs): Likewise.
22430 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22432 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
22433 va_list_gpr_counter_field and va_list_fpr_counter_field.
22435 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
22438 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
22439 * config/aarch64/aarch64.c
22440 (aarch64_cannot_change_mode_class): Remove function.
22441 * config/aarch64/aarch64-protos.h
22442 (aarch64_cannot_change_mode_class): Remove.
22444 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22446 * cfgloop.c (record_niter_bound): Record likely upper bounds.
22447 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
22448 get_likely_max_loop_iterations_int): New.
22449 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
22450 any_likely_upper_bound.
22451 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
22453 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
22454 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
22456 (unroll_loop_constant_iterations): Likewise.
22457 (unroll_loop_runtime_iterations): Likewise.
22458 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
22459 * lto-streamer-out.c (output_cfg): Likewise.
22460 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
22462 (canonicalize_loop_induction_variables): Dump likely upper bounds.
22463 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
22464 (likely_max_loop_iterations): New.
22465 (likely_max_loop_iterations_int): New.
22466 (likely_max_stmt_executions): New.
22467 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
22468 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
22469 likely_max_stmt_executions): Declare.
22471 2016-05-27 Marek Polacek <polacek@redhat.com>
22473 PR middle-end/71308
22474 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
22476 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22478 * config/s390/s390.md (2x risbg splitters): Use
22479 reg_overlap_mentioned_p instead of rtx_equal_p.
22481 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
22483 * combine.c (make_compound_operation): Take known zero bits into
22484 account when checking for possible zero_extend.
22486 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22488 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
22489 Use const_int_operand for operand 2 predicate. Simplify expand code
22492 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
22494 PR middle-end/71279
22495 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
22498 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22500 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
22501 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
22502 that returns CC_SESWPmode and CC_ZESWPmode.
22503 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
22505 (aarch64_rtx_costs): Likewise.
22507 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
22509 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
22510 for ISA 3.0 min/max support.
22511 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
22512 conditional move support.
22513 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
22514 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
22516 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
22517 conditional moves where the comparison type is different from move
22519 (fp_minmax): New code iterator for smin/smax.
22520 (minmax): New code attributes for min/max.
22521 (SMINMAX): Likewise.
22522 (smax<mode>3): Combine min, max insns into one insn using the
22523 fp_minmax code iterator. Add support for ISA 3.0 min/max
22524 instructions that don't need -ffast-math.
22525 (s<minmax><mode>3): Likewise.
22526 (smax<mode>3_vsx): Likewise.
22527 (smin<mode>3): Likewise.
22528 (s<minmax><mode>3_vsx): Likewise.
22529 (smin<mode>3_vsx): Likewise.
22530 (pre-VSX min/max splitters): Likewise.
22531 (s<minmax><mode>3_fpr): Likewise.
22532 (movsfcc): Rewrite floating point conditional moves to combine
22533 SFmode/DFmode into a single insn.
22534 (mov<mode>cc): Likewise.
22535 (movdfcc): Likewise.
22536 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
22537 SFDF2 iterators to handle all combinations.
22538 (fseldfsf4): Likewise.
22539 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
22540 (fseldfdf4): Likewise.
22541 (fselsfdf4): Likewise.
22542 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
22543 comparison instructions that set a 0/-1 mask, and use it for
22544 floating point conditional move via XXSEL.
22545 (fpmask<mode>): Likewise.
22546 (xxsel<mode>): Likewise.
22547 * config/rs6000/predicates.md (min_max_operator): Delete, no
22549 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
22550 instructions that generate a 0/-1 mask for use with XXSEL.
22551 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
22552 say whether floating point min/max is available, either through
22553 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
22554 (TARGET_MINMAX_DF): Likewise.
22556 2016-05-27 Alan Modra <amodra@gmail.com>
22558 PR rtl-optimization/71275
22559 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
22560 for update_equiv_regs and combine_and_move_insns.
22562 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
22564 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
22565 if_then_else or cond RTXes to calculate attribute value.
22566 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
22567 <attr "length_immediate>: Ditto.
22568 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
22569 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
22570 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
22571 <attr "type">: Ditto.
22572 <attr "prefix_data16">: Ditto.
22573 <attr "prefix_extra">: Ditto.
22574 <attr "length_immediate">: Ditto.
22575 <attr "prefix">: Ditto.
22576 (vec_set<mode>_0) <attr "isa">: Ditto.
22577 <attr "prefix_extra">: Ditto.
22578 <attr "length_immediate">: Ditto.
22579 <attr "prefix">: Ditto.
22580 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
22581 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
22582 (sse2_storelpd) <attr "prefix_data16">: Ditto.
22583 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
22584 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
22585 <attr "length_immediate">: Ditto.
22586 <attr "prefix">: Ditto.
22587 (sse2_movsd) <attr "length_immediate">: Ditto.
22588 <attr "prefix">: Ditto.
22589 (vec_concatv2df) <attr "isa">: Ditto.
22590 <attr "prefix">: Ditto.
22591 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
22592 (*vec_extractv2di_1) <attr "isa">: Ditto.
22593 <attr "type">: Ditto.
22594 <attr "length_immediate">: Ditto.
22595 <attr "prefix_rex">: Ditto.
22596 <attr "prefix_extra">: Ditto.
22597 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
22598 <attr "prefix_extra">: Ditto.
22599 <attr "length_immediate">: Ditto.
22600 (vec_concatv2di) <attr "isa">: Ditto.
22601 <attr "prefix_extra">: Ditto.
22602 <attr "length_immediate">: Ditto.
22603 <attr "prefix">: Ditto.
22605 2016-05-26 Martin Liska <mliska@suse.cz>
22607 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
22609 (operator+): Likewise.
22610 (operator-): Likewise.
22611 (comp_cost::operator+=): Likewise.
22612 (comp_cost::operator-=): Likewise.
22613 (comp_cost::operator/=): Likewise.
22614 (comp_cost::operator*=): Likewise.
22615 (operator<): Likewise.
22616 (operator==): Likewise.
22617 (operator<=): Likewise.
22618 (new_cost): Remove.
22619 (infinite_cost_p): Likewise.
22620 (add_costs): Likewise.
22621 (sub_costs): Likewise.
22622 (compare_costs): Likewise.
22623 (set_group_iv_cost): Use the newly introduced functions.
22624 (get_address_cost): Likewise.
22625 (get_shiftadd_cost): Likewise.
22626 (force_expr_to_var_cost): Likewise.
22627 (split_address_cost): Likewise.
22628 (ptr_difference_cost): Likewise.
22629 (difference_cost): Likewise.
22630 (get_computation_cost_at): Likewise.
22631 (determine_group_iv_cost_generic): Likewise.
22632 (determine_group_iv_cost_address): Likewise.
22633 (determine_group_iv_cost_cond): Likewise.
22634 (autoinc_possible_for_pair): Likewise.
22635 (determine_group_iv_costs): Likewise.
22636 (cheaper_cost_pair): Likewise.
22637 (iv_ca_recount_cost): Likewise.
22638 (iv_ca_set_no_cp): Likewise.
22639 (iv_ca_set_cp): Likewise.
22640 (iv_ca_cost): Likewise.
22641 (iv_ca_new): Likewise.
22642 (iv_ca_dump): Likewise.
22643 (iv_ca_narrow): Likewise.
22644 (iv_ca_prune): Likewise.
22645 (iv_ca_replace): Likewise.
22646 (try_add_cand_for): Likewise.
22647 (try_improve_iv_set): Likewise.
22648 (find_optimal_iv_set): Likewise.
22650 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
22652 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
22653 that internal functions will clobber all caller-saved registers.
22655 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22657 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
22658 Return a better case_values_threshold when optimizing.
22660 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22662 * config/aarch64/aarch64-simd.md (aarch64_combinez):
22663 Add ? to integer variant.
22664 (aarch64_combinez_be): Likewise.
22666 2016-05-26 Jakub Jelinek <jakub@redhat.com>
22668 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
22669 instead of x constraint.
22670 (vcvtps2ph256<mask_name>): Likewise.
22672 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
22673 alternative. Formatting fix.
22675 * config/i386/sse.md
22676 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
22678 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
22679 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
22680 maybe_evex prefix instead of vex.
22681 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
22682 EXT_REX_SSE_REG_P (op0) case in the splitter.
22684 2016-05-25 Jeff Law <law@redhat.com>
22686 PR tree-optimization/71272
22687 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
22688 Update comments. Add test for empty path.
22690 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22692 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
22693 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
22694 special case builtin.
22695 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22696 code for ALTIVEC_BUILTIN_VEC_CMPNE.
22697 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22698 for __builtin_vec_cmpne.
22700 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
22702 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
22703 redundant test and bail out if the type of the new operand is not
22704 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
22706 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22708 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
22709 (x_ix86_target_flags_explicit): Remove.
22710 * config/i386/i386.c (ix86_function_specific_save): Do not copy
22711 x_ix86_target_flags_explicit.
22712 (ix86_function_specific_restore): Ditto.
22714 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22715 H.J. Lu <hongjiu.lu@intel.com>
22718 * common/config/i386/i386-common.c
22719 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
22720 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
22721 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
22722 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
22723 (-mgeneral-regs-only): Add new option.
22724 * config/i386/i386.c (ix86_option_override_internal): Don't enable
22725 x87 instructions if only general registers are allowed.
22726 (ix86_target_string): Add ix86_flags argument. Handle additional
22727 flags options through ix86_flags argument. Update all callers.
22728 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
22730 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22732 PR rtl-optimization/66940
22733 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
22734 decrementing desired_val will not overflow before performing these
22737 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
22739 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
22740 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
22741 * config/i386/i386.c (enum ix86_builtins): Add
22742 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
22743 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
22744 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
22745 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
22746 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
22747 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
22748 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
22749 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
22750 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
22751 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
22752 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
22753 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
22754 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
22755 __builtin_ia32_cvtps2dq512_mask.
22756 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
22757 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
22758 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
22759 * config/i386/sse.md
22760 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
22762 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
22763 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
22765 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
22766 (avx512f_vec_pack_sfix_v8df): New define_expand.
22767 (avx512f_roundpd512): Rename to ...
22768 (avx512f_round<castmode>512): ... this. Change iterator.
22769 (avx512f_roundps512_sfix): New define_expand.
22770 (round<mode>2_sfix): Change iterator.
22772 2016-05-25 Nick Clifton <nickc@redhat.com>
22774 * config/msp430/msp430.c (msp430_attr): Produce an error if a
22775 static interrupt handler is detected.
22776 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
22777 default linker script.
22778 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
22779 the low part of a symbolic pointer.
22781 2016-05-25 Richard Biener <rguenther@suse.de>
22783 PR tree-optimization/71261
22784 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
22785 interesting stmt instead of immediate uses when looking
22786 for the use operand to replace.
22788 2016-05-25 Martin Liska <mliska@suse.cz>
22790 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
22792 2016-05-25 Richard Biener <rguenther@suse.de>
22794 PR tree-optimization/71264
22795 * tree-vect-stmts.c (vect_init_vector): Properly deal with
22798 2016-05-25 Martin Liska <mliska@suse.cz>
22800 PR tree-optimization/71239
22801 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
22802 if DECL_SIZE is NULL.
22804 2016-05-25 Richard Biener <rguenther@suse.de>
22806 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
22807 * tree-if-conv.c (pass_data_if_conversion): Use it.
22809 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
22811 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
22812 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
22813 * varpool.c (varpool_node::get_availability): Likewise.
22815 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22817 * config/rs6000/altivec.md (VNEG iterator): New iterator for
22818 VNEGW/VNEGD instructions.
22819 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
22820 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
22821 support for ISA 3.0 VNEGW/VNEGD instructions.
22823 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
22825 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
22826 pointers inside OACC_DATA regions.
22827 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
22828 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
22829 (gimplify_adjust_omp_clauses): Fix typo in comment.
22831 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22833 * config/rs6000/altivec.md (VParity): New mode iterator for vector
22834 parity built-in functions.
22835 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
22837 (p9v_parity<mode>2): Likewise.
22838 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
22840 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
22841 (parity<mode>2): ISA 3.0 expander for vector parity.
22842 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
22844 (BU_P9_64BIT_MISC_0): Likewise.
22845 (BU_P9_MISC_0): Likewise.
22846 (BU_P9V_AV_1): Likewise.
22847 (BU_P9V_AV_2): Likewise.
22848 (BU_P9V_AV_3): Likewise.
22849 (BU_P9V_AV_P): Likewise.
22850 (BU_P9V_VSX_1): Likewise.
22851 (BU_P9V_OVERLOAD_1): Likewise.
22852 (BU_P9V_OVERLOAD_2): Likewise.
22853 (BU_P9V_OVERLOAD_3): Likewise.
22854 (VCTZB): Add vector count trailing zeros support.
22858 (VPRTYBD): Add vector parity support.
22859 (VPRTYBQ): Likewise.
22860 (VPRTYBW): Likewise.
22861 (VCTZ): Add overloaded vector count trailing zeros support.
22862 (VPRTYB): Add overloaded vector parity support.
22863 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22864 overloaded vector count trailing zeros and parity instructions.
22865 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
22866 vector parity support.
22867 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
22868 trailing zeros support.
22869 (vec_cntlz): Likewise.
22870 (vec_vctzb): Likewise.
22871 (vec_vctzd): Likewise.
22872 (vec_vctzh): Likewise.
22873 (vec_vctzw): Likewise.
22874 (vec_vprtyb): Add ISA 3.0 vector parity support.
22875 (vec_vprtybd): Likewise.
22876 (vec_vprtybw): Likewise.
22877 (vec_vprtybq): Likewise.
22878 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
22879 the ISA 3.0 vector count trailing zeros and vector parity built-in
22882 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22884 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
22885 when there is stmt_to_insert.
22887 2016-05-24 Martin Sebor <msebor@redhat.com>
22890 * tree.h (complete_or_array_type_p): New inline function.
22892 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22894 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
22895 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
22896 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
22898 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
22899 Limit 1st alternative to noavx isa, split 2nd alternative into one
22900 noavx and one avx alternative, use *x and Bm in the former and
22901 x and m in the latter.
22903 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
22904 of sse4 for the first alternative, drop %v from the template
22905 and d operand modifier. Split second alternative into one sse4_noavx
22906 and one avx alternative, use *x instead of *v in the former and v
22907 instead of *v in the latter.
22908 (*sse4_1_extractps): Use noavx isa instead of * for the first
22909 alternative, drop %v from the template. Split second alternative into
22910 one noavx and one avx alternative, use *x instead of *v in the
22911 former and v instead of *v in the latter.
22912 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
22913 with noavx and the last one with avx.
22914 (sse4_1_phminposuw): Guard first alternative with noavx isa,
22915 split the second one into one noavx and one avx alternative,
22916 use *x and Bm in the former and x and m in the latter one.
22917 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
22920 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
22921 first two alternatives to noavx, use *x instead of *v in the second
22922 one, add avx alternative without *.
22923 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
22924 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
22925 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
22927 2016-05-24 Jeff Law <law@redhat.com>
22929 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
22930 New function, extracted from...
22931 (fsm_find_control_statement_thread_paths): Here. Use the new function.
22932 Allow simple copies and constant initializations in the SSA chain.
22934 2016-05-24 Marek Polacek <polacek@redhat.com>
22937 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
22940 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22943 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
22944 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
22945 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
22946 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
22947 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
22949 2016-05-24 Richard Biener <rguenther@suse.de>
22951 PR tree-optimization/71240
22952 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
22955 2016-05-24 Richard Biener <rguenther@suse.de>
22957 PR tree-optimization/71230
22958 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
22960 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22962 * tree-vectorizer.h (vectorizable_comparison): Delete.
22963 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
22964 PURE_SLP_STMT check.
22965 * tree-vect-stmts.c (vectorizable_call): Likewise.
22966 (vectorizable_simd_clone_call): Likewise.
22967 (vectorizable_conversion): Likewise.
22968 (vectorizable_assignment): Likewise.
22969 (vectorizable_shift): Likewise.
22970 (vectorizable_operation): Likewise.
22971 (vectorizable_load): Likewise.
22972 (vectorizable_condition): Likewise.
22973 (vectorizable_store): Likewise. Assert that we don't have
22975 (vectorizable_comparison): Make static. Remove redundant
22976 PURE_SLP_STMT check.
22977 (vect_transform_stmt): Assert that we always have an slp_node
22980 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22982 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
22983 operands[2] against 1 with comparison against CONST1_RTX.
22984 (<shift>di3_neon): Likewise.
22985 * config/arm/predicates.md (const0_operand): Replace with comparison
22986 against CONST0_RTX.
22988 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22990 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
22991 operands[2] against 1 with comparison against CONST1_RTX.
22992 (ashrdi3): Likewise.
22993 (lshrdi3): Likewise.
22994 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
22996 (ashrsi3): Likewise.
22997 (lshrsi3): Likewise.
22998 (rotrsi3): Likewise.
22999 (define_split above *compareqi_eq0): Likewise.
23000 (define_split above "prologue"): Likewise.
23001 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
23002 * config/arm/predicates.md (shift_operator): Likewise.
23003 (shift_nomul_operator): Likewise.
23004 (sat_shift_operator): Likewise.
23005 (thumb1_cmp_operand): Likewise.
23006 (const_neon_scalar_shift_amount_operand): Replace manual range
23007 check with IN_RANGE.
23008 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
23009 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
23011 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23013 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
23014 with HOST_WIDE_INT_1.
23016 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
23017 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
23018 (arm_canonicalize_comparison): Likewise.
23019 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
23021 (thumb1_size_rtx_costs): Likewise.
23022 (vfp_const_double_index): Replace cast of 1 to unsigned
23023 HOST_WIDE_INT with HOST_WIDE_INT_1U.
23024 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
23026 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
23027 HOST_WIDE_INT with HOST_WIDE_INT_1U.
23028 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
23029 HOST_WIDE_INT with HOST_WIDE_INT_1.
23031 2016-05-24 Marek Polacek <polacek@redhat.com>
23033 * tree-cfg.h (should_remove_lhs_p): New predicate.
23034 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
23035 * gimplify.c (gimplify_modify_expr): Likewise.
23036 * tree-cfg.c (verify_gimple_call): Likewise.
23037 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
23038 * gimple-fold.c: Include "tree-cfg.h".
23039 (gimple_fold_call): Use should_remove_lhs_p.
23041 2016-05-24 Richard Biener <rguenther@suse.de>
23043 PR tree-optimization/71253
23044 * cfganal.h (control_dependences): Make robust against edge
23046 (control_dependences::control_dependences): Remove edge_list argument.
23047 (control_dependences::get_edge): Remove.
23048 (control_dependences::get_edge_src): Add.
23049 (control_dependences::get_edge_dest): Likewise.
23050 (control_dependences::m_el): Make a vector of edge src/dest index.
23051 * cfganal.c (control_dependences::find_control_dependence): Adjust.
23052 (control_dependences::control_dependences): Likewise.
23053 (control_dependences::~control_dependence): Likewise.
23054 (control_dependences::get_edge): Remove.
23055 (control_dependences::get_edge_src): Add.
23056 (control_dependences::get_edge_dest): Likewise.
23057 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
23059 (perform_tree_ssa_dce): Adjust.
23060 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
23062 (pass_loop_distribution::execute): Adjust. Do loop destroying
23063 conditional on changed.
23065 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23068 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
23069 return. Reindent transformation comment and mention the ARM state
23072 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
23074 PR middle-end/71252
23075 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
23076 after build_and_add_sum creates new use stmt.
23078 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
23080 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
23081 load_lanes/grouped_load classification comes first. Don't check
23082 whether the vectorization factor is a multiple of the group size
23085 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
23087 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
23088 GROUP_GAP for single-element interleaving.
23089 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
23092 2016-05-24 Richard Biener <rguenther@suse.de>
23094 PR middle-end/70434
23096 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
23097 bases which are accessed with non-invariant indices.
23098 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
23099 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
23101 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
23103 PR middle-end/71170
23104 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
23105 (add_to_ops_vec): Add stmt_to_insert.
23106 (add_repeat_to_ops_vec): Init stmt_to_insert.
23107 (insert_stmt_before_use): New.
23108 (transform_add_to_multiply): Remove mult_stmt insertion and add it
23110 (get_ops): Init stmt_to_insert.
23111 (maybe_optimize_range_tests): Likewise.
23112 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
23113 (rewrite_expr_tree_parallel): Likewise.
23114 (reassociate_bb): Likewise.
23116 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23119 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
23120 ISA 3.0 xxperm fusion alternative.
23121 (altivec_vperm_v8hiv16qi): Likewise.
23122 (altivec_vperm_<mode>_uns_internal): Likewise.
23123 (vperm_v8hiv4si): Likewise.
23124 (vperm_v16qiv8hi): Likewise.
23126 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23127 Kelvin Nilsen <kelvin@gcc.gnu.org>
23129 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
23130 vpermr/xxpermr on ISA 3.0.
23131 (altivec_expand_vec_perm_le): Likewise.
23132 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
23133 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
23136 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
23138 * config/i386/i386.h (IS_STACK_MODE): Enable for
23139 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
23140 SSE_FLOAT_MODE_P macros.
23141 * config/i386/i386.c (ix86_preferred_reload_class): Use
23142 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
23143 Cleanup regclass processing for CONST_DOUBLE_P.
23144 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
23145 (ix86_rtx_costs): Remove redundant TARGET_80387 check
23146 with IS_STACK_MODE macro.
23147 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
23149 (*movdf_internal): Use IS_STACK_MODE macro.
23150 (*movsf_internal): Ditto.
23152 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
23154 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
23155 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
23157 2016-05-23 Jeff Law <law@redhat.com>
23159 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
23161 (fsm_find_control_statement_thread_paths): Call it.
23163 2016-05-23 Martin Jambor <mjambor@suse.cz>
23166 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
23167 from_global_constant if t is not NULL.
23169 2016-05-23 Marek Polacek <polacek@redhat.com>
23172 * common.opt (Wswitch-unreachable): New option.
23173 * doc/invoke.texi: Document -Wswitch-unreachable.
23174 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
23177 2016-05-23 Bin Cheng <bin.cheng@arm.com>
23179 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
23180 TMR_INDEX is non-NULL.
23182 2016-05-23 Richard Biener <rguenther@suse.de>
23184 PR tree-optimization/71230
23185 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
23186 (try_special_add_to_ops): ... here. Always test for single-use.
23188 2016-05-23 Martin Jambor <mjambor@suse.cz>
23190 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
23191 default block if a PHI node in the original one would be resized.
23193 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23195 PR tree-optimization/58135
23196 * tree-vect-slp.c: When group size is not multiple
23197 of vector size, allow splitting of store group at
23200 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
23202 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
23204 2016-05-22 Jakub Jelinek <jakub@redhat.com>
23206 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
23207 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
23208 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
23211 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
23212 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
23213 v constraint instead of x and vinserti32x4 insn.
23215 * config/i386/sse.md (i128vldq): New mode iterator.
23216 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
23217 avx512dq and avx512vl alternatives.
23219 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
23220 constraint, use maybe_evex prefix instead of vex.
23221 (vec_dupv4sf): Use v constraint instead of x for output
23222 operand except for noavx alternative, use Yv constraint
23223 instead of x for input. Use maybe_evex prefix instead of vex.
23224 (*vec_dupv4si): Likewise.
23225 (*vec_dupv2di): Likewise.
23227 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23229 PR middle-end/40921
23230 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
23231 (linearize_expr_tree): Call try_special_add_to_ops.
23232 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
23234 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23236 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
23237 to computed stack_usage.
23239 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23242 * config/avr/avr.md (define_expand "mov<mode>"): If the source
23243 operand is subreg (symbol_ref) then move the symbol ref to register.
23245 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
23247 * tree.c (array_at_struct_end_p): Look through MEM_REF.
23249 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
23251 PR middle-end/71179
23252 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
23255 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23257 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
23258 ranges by calling get_single_symbol and tidy up. Look more closely
23259 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
23261 2016-05-20 Jeff Law <law@redhat.com>
23263 * bitmap.c (bitmap_find_bit): Remove useless test.
23265 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
23267 * function.c (thread_prologue_and_epilogue_insns): Commit the
23268 insertion of the epilogue.
23270 2016-05-20 Martin Jambor <mjambor@suse.cz>
23272 PR tree-optimization/70884
23273 * tree-sra.c (initialize_constant_pool_replacements): Do not check
23274 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
23275 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
23276 of constant pool data as a reason for scalarization.
23278 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23280 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
23281 for naked functions.
23282 (thumb1_expand_prologue): Likewise.
23284 2016-05-20 Nathan Sidwell <nathan@acm.org>
23286 * config/nvptx/nptx.c (nvptx_option_override): Only set
23287 flag_toplevel_reorder, if not explicitly specified. Set
23288 flag_no_common, unless explicitly specified.
23290 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23292 * calls.c (can_implement_as_sibling_call_p): Mark param
23293 reg_parm_stack_space with ATTRIBUTE_UNUSED.
23295 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
23297 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
23298 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
23299 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
23301 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
23302 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
23303 and CASE_CONST_ANY.
23305 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
23307 * config/nvptx/nvptx.md (sincossf3): New pattern.
23309 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23311 * calls.c (maybe_complain_about_tail_call): New function.
23312 (initialize_argument_information): Call
23313 maybe_complain_about_tail_call when clearing *may_tailcall.
23314 (can_implement_as_sibling_call_p): Call
23315 maybe_complain_about_tail_call when returning false.
23316 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
23317 ensure try_tail_call is set. Call maybe_complain_about_tail_call
23318 if tail-call optimization fails.
23319 * cfgexpand.c (expand_call_stmt): Initialize
23320 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
23321 * gimple-pretty-print.c (dump_gimple_call): Dump
23322 gimple_call_must_tail_p.
23323 * gimple.c (gimple_build_call_from_tree): Call
23324 gimple_call_set_must_tail with the value of
23325 CALL_EXPR_MUST_TAIL_CALL.
23326 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
23327 (gimple_call_set_must_tail): New function.
23328 (gimple_call_must_tail_p): New function.
23329 * print-tree.c (print_node): Update printing of TREE_STATIC
23330 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
23331 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
23332 trailing comment listing applicable flags.
23333 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
23335 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23337 * calls.c (expand_call): Move "Rest of purposes for tail call
23338 optimizations to fail" to...
23339 (can_implement_as_sibling_call_p): ...this new function, and
23340 split into multiple "if" statements.
23342 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23344 * cfgloop.h (expected_loop_iterations_unbounded,
23345 expected_loop_iterations): Unconstify.
23346 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
23347 profile with known upper bound; return 3 when profile is absent.
23348 (expected_loop_iterations): Update.
23350 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23352 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
23353 and get_max_loop_iterations_int.
23355 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23357 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
23358 realistic upper bounds here.
23360 2016-05-20 Jakub Jelinek <jakub@redhat.com>
23363 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
23364 calls if the LHS is variable length or has addressable type.
23365 If targets[0]->decl is a noreturn call with void return type and
23366 zero arguments, adjust fntype and remove lhs in that case.
23368 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
23370 PR tree-optimization/71079
23371 PR tree-optimization/71206
23372 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
23374 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23376 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
23377 (get_vec_alignment_for_array_decl): Likewise.
23378 (get_vec_alignment_for_record_decl): Likewise.
23379 (increase_alignment::execute): Move code to find alignment to
23380 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
23381 (type_align_map): New hash_map.
23383 2016-05-20 Richard Guenther <rguenther@suse.de>
23385 PR tree-optimization/29756
23386 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
23387 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
23388 * fold-const.c (operand_equal_p): Likewise.
23389 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
23390 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
23391 * tree-inline.c (estimate_operator_cost): Likewise.
23392 * tree-pretty-print.c (dump_generic_node): Likewise.
23393 * tree-ssa-operands.c (get_expr_operands): Likewise.
23394 * cfgexpand.c (expand_debug_expr): Likewise.
23395 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
23396 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
23397 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
23398 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
23399 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
23400 (execute_update_addresses_taken): Do it.
23402 2016-05-20 Richard Biener <rguenther@suse.de>
23404 PR tree-optimization/71185
23405 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
23406 register operations.
23408 2016-05-20 Richard Biener <rguenther@suse.de>
23410 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
23411 gimple_seq_add_seq_without_update.
23412 (release_bb_predicate): Assert we have no operands to free.
23413 (if_convertible_loop_p_1): Calculate post dominators later.
23414 Do not free BB predicates here.
23415 (combine_blocks): Do not recompute BB predicates.
23416 (version_loop_for_if_conversion): Save BB predicates around
23419 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23421 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
23422 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
23423 code. Ignore sibcalls on EDGE_IGNORE edges.
23424 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
23425 on edges for sibcalls that run without prologue. The rest of the
23426 function is combined from...
23427 (fix_fake_fallthrough_edge): ... this, and ...
23428 (try_shrink_wrapping): ... a part of this. Remove the bb_with
23429 function argument, make it a local variable.
23431 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
23433 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
23434 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
23435 for 32-bit mode and SEH for 64-bit.
23436 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
23437 TARGET_64BIT_DEFAULT.
23439 2016-05-19 Ryan Burn <contact@rnburn.com>
23441 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
23442 * gengtype.c (open_base_files): Add cilk.h to ifiles.
23444 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
23446 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
23447 force pending loads from memory.
23449 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
23451 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
23452 (UNSPEC_DARN_32): New unspec constant.
23453 (UNSPEC_DARN_RAW): New unspec constant.
23454 (darn_32): New instruction.
23455 (darn_raw): New instruction.
23456 (darn): New instruction.
23457 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
23458 support and documentation for this macro.
23459 (BU_P9_MISC_1): New macro definition.
23460 (BU_P9_64BIT_MISC_0): New macro definition.
23461 (BU_P9_MISC_0): New macro definition.
23462 (darn_32): New builtin definition.
23463 (darn_raw): New builtin definition.
23464 (darn): New builtin definition.
23465 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
23466 RS6000_BUILTIN_0 directives to surround each occurrence of
23467 #include "rs6000-builtin.def".
23468 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
23469 RS6000_BTM_64BIT flags to the returned mask, depending on
23471 (def_builtin): Correct an error in the assignments made to the
23472 debugging variable attr_string.
23473 (rs6000_expand_builtin): Add support for no-operand built-in
23475 (builtin_function_type): Remove fatal_error assertion that is no
23477 (rs6000_common_init_builtins): Add support for no-operand built-in
23479 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
23481 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
23483 (RS6000_BTM_64BIT): New macro definition.
23484 * doc/extend.texi: Document __builtin_darn (void),
23485 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
23488 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
23490 * tree-vect-loop.c (vect_analyze_loop_2): Use also
23491 max_loop_iterations_int.
23493 2016-05-19 Marek Polacek <polacek@redhat.com>
23495 PR tree-optimization/71031
23496 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
23497 condition and adjust the code a bit.
23499 2016-05-19 Martin Liska <mliska@suse.cz>
23501 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
23502 auto_vec instead of vec.
23504 2016-05-19 Martin Liska <mliska@suse.cz>
23506 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
23508 2016-05-19 Martin Liska <mliska@suse.cz>
23510 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
23512 2016-05-19 Martin Liska <mliska@suse.cz>
23514 * ipa-pure-const.c (set_function_state): Remove an existing
23516 (remove_node_data): Do not free it as it's released
23517 in set_function_state.
23519 2016-05-19 Martin Liska <mliska@suse.cz>
23521 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
23524 2016-05-19 Martin Liska <mliska@suse.cz>
23526 * omp-simd-clone.c (simd_clone_adjust): Release vector.
23528 2016-05-19 Martin Liska <mliska@suse.cz>
23530 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
23531 an auto_vec instead of re-creating it.
23533 2016-05-19 Martin Liska <mliska@suse.cz>
23535 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
23536 auto_vec instead of vec.
23538 2016-05-19 Martin Liska <mliska@suse.cz>
23540 * lto-section-in.c (lto_get_section_data): Call
23541 lto_check_version with additional argument.
23542 * lto-streamer.c (lto_check_version): Add new argument.
23543 * lto-streamer.h (lto_check_version): Likewise.
23545 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23547 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
23548 Don't add cost of inner memory when handling sign-extended loads.
23550 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
23552 PR rtl-optimization/71148
23553 * cse.c (cse_main): Free dominance info.
23554 (rest_of_handle_cse): Don't free dominance info.
23555 (rest_of_handle_cse2): Likewise.
23556 (rest_of_handle_cse_after_global_opts): Likewise.
23558 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23561 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
23562 NULL_TREE early if NEON is not available. Remove now redundant check
23563 in ARM_CHECK_BUILTIN_MODE.
23565 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
23568 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
23569 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
23570 * doc/cpp.texi: Document new macros.
23572 2016-05-19 Bin Cheng <bin.cheng@arm.com>
23574 PR tree-optimization/69848
23575 * tree-vect-loop.c (vectorizable_reduction): Don't factor
23576 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
23578 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23580 * function.c (thread_prologue_and_epilogue_insn): Move the
23581 "goto epilogue_done" one block later.
23583 2016-05-19 Richard Biener <rguenther@suse.de>
23585 PR tree-optimization/70729
23586 * passes.def: Move LIM pass before PRE. Remove no longer
23587 required copyprop and move first DCE out of the loop pipeline.
23589 2016-05-18 David Malcolm <dmalcolm@redhat.com>
23592 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
23593 (OBJS-libcommon-target): ...here.
23594 * opts-common.c: Include spellcheck.h.
23595 (cmdline_handle_error): Build a vec of valid options and use it
23596 to suggest provide hints for misspelled arguments.
23598 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23601 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
23602 lhs if it has TREE_ADDRESSABLE type.
23604 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
23607 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
23608 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
23610 2016-05-18 Martin Jambor <mjambor@suse.cz>
23613 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
23614 input for NOP_EXPR pass-through functions.
23615 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
23616 aggregate global constant VAR_DECLs in constant jump functions.
23618 2016-05-18 Martin Jambor <mjambor@suse.cz>
23621 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
23622 from TREE_READONLY parameters.
23624 2016-05-18 Martin Jambor <mjambor@suse.cz>
23627 * cgraph.h (cgraph_indirect_call_info): New field
23628 guaranteed_unmodified.
23629 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
23630 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23632 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
23633 pass the parameter value to ipa_find_agg_cst_for_param.
23634 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
23635 guaranteed_unmodified, store AA results there instead of bailing out
23637 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
23638 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
23639 (find_constructor_constant_at_offset): New function.
23640 (ipa_find_agg_cst_from_init): Likewise.
23641 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
23642 static initializers of contants, report back through a new paameter
23643 from_global_constant if that was the case.
23644 (try_make_edge_direct_simple_call): Also pass parameter value to
23645 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23647 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
23648 (ipa_read_indirect_edge_info): Likewise.
23649 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
23650 (ipa_load_from_parm_agg): Likewise.
23652 2016-05-18 Jiong Wang <jiong.wang@arm.com>
23654 PR rtl-optimization/71150
23655 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
23658 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23661 * config/rs6000/constraints.md (wE constraint): New constraint
23662 for a vector constant that can be loaded with XXSPLTIB.
23663 (wM constraint): New constraint for a vector constant of a 1's.
23664 (wS constraint): New constraint for a vector constant that can be
23665 loaded with XXSPLTIB and a vector sign extend instruction.
23666 * config/rs6000/predicates.md (xxspltib_constant_split): New
23667 predicates for wE/wS constraints.
23668 (xxspltib_constant_nosplit): Likewise.
23669 (easy_vector_constant): Add support for constants that can be
23670 loaded via XXSPLTIB.
23671 (all_ones_constant): New predicate for vector constant with all
23673 (splat_input_operand): Add support for ISA 3.0 word splat operations.
23674 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
23675 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
23676 instruction and possibly with a sign extension.
23677 (output_vec_const_move): Add support for XXSPLTIB. If we are
23678 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
23679 instead of XXLXOR/XXLORC.
23680 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
23682 (rs6000_legitimize_reload_address): Likewise.
23683 (rs6000_output_move_128bit): Use output_vec_const_move to emit
23685 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
23686 combine VSX_M and VSX_M2 into one iterator.
23687 (VSX_M2): Likewise.
23688 (VSINT_84): New iterators for loading constants with XXSPLTIB.
23689 (VSINT_842): Likewise.
23690 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
23691 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
23692 XXSPLTIB instruction.
23693 (xxspltib_<mode>_nosplit): Likewise.
23694 (xxspltib_<mode>_split): New insn to load up constants with
23695 XXSPLTIB and a sign extend instruction.
23696 (vsx_mov<mode>): Replace single move that handled all vector types
23697 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
23698 moves (when -mvsx-timode is in effect) into the main vector
23699 moves. Eliminate separate moves for <VSr> <VSa>, where the
23700 preferred register class (<VSr>) is listed first, and the
23701 secondary register class (<VSa>) is listed second with a '?' to
23702 discourage use. Prefer loading 0/-1 in any VSX register for ISA
23703 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
23704 that if the register was involved in a slow operation, the
23705 clear/set operation does not wait for the slow operation to
23706 finish. Adjust the length attributes for 32-bit mode. Use
23707 rs6000_output_move_128bit and drop the use of the string
23708 instructions for 32-bit movti when -mvsx-timode is in effect. Use
23709 spacing so that the alternatives and attributes don't generate
23710 long lines, and put things in columns, so that it is easier to
23711 match up the operands and attributes with the insn alternatives.
23712 (vsx_mov<mode>_64bit): Likewise.
23713 (vsx_mov<mode>_32bit): Likewise.
23714 (vsx_movti_64bit): Fold movti into normal vector moves.
23715 (vsx_movti_32bit): Likewise.
23716 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
23717 splat instructions.
23718 (vsx_splat_v4si_internal): Likewise.
23719 (vsx_splat_v4sf_internal): Likewise.
23720 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
23721 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
23722 extend vector elements.
23723 (vsx_sign_extend_hi_<mode>): Likewise.
23724 (vsx_sign_extend_si_v2di): Likewise.
23725 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
23727 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
23728 constraints. Add trailing period to wL documentation.
23730 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
23732 PR middle-end/71020
23733 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
23734 * tree-dfa.c (replace_abnormal_ssa_names): New function.
23735 * tree-call-cdce.c: Include tree-dfa.h.
23736 (can_guard_call_p): New function, extracted from...
23737 (can_use_internal_fn): ...here.
23738 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
23740 (shrink_wrap_one_built_in_call): Likewise.
23741 (use_internal_fn): Likewise.
23742 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
23743 and return void. Call replace_abnormal_ssa_names.
23744 (pass_call_cdce::execute): Check can_guard_call_p during the
23745 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
23746 will always change something.
23748 2016-05-18 Martin Jambor <mjambor@suse.cz>
23751 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
23752 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
23754 2016-05-18 Martin Jambor <mjambor@suse.cz>
23757 * ipa-inline.h (condition): New field size.
23758 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
23759 for comaprison and store it into the new condition.
23760 (evaluate_conditions_for_known_args): Use condition size to check
23761 access sizes for all but CHANGED conditions.
23762 (unmodified_parm_1): New parameter size_p, store access size into it.
23763 (unmodified_parm): Likewise.
23764 (unmodified_parm_or_parm_agg_item): Likewise.
23765 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
23766 (set_cond_stmt_execution_predicate): Extract access sizes and store
23767 them to conditions.
23768 (set_switch_stmt_execution_predicate): Likewise.
23769 (will_be_nonconstant_expr_predicate): Likewise.
23770 (will_be_nonconstant_predicate): Likewise.
23771 (inline_read_section): Stream condition size.
23772 (inline_write_summary): Likewise.
23774 2016-05-18 Richard Biener <rguenther@suse.de>
23776 * tree-ssa-loop-im.c (determine_max_movement): Properly add
23777 condition cost to PHI cost instead of total_cost.
23779 2016-05-18 Martin Liska <mliska@suse.cz>
23782 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
23785 2016-05-18 Richard Biener <rguenther@suse.de>
23787 * lto-streamer.h (LTO_major_version): Bump to 6.
23789 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23791 * function.c (make_split_prologue_seq, make_prologue_seq,
23792 make_epilogue_seq): New functions, factored out from...
23793 (thread_prologue_and_epilogue_insns): Here.
23795 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23797 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
23798 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
23799 of before. Add a comment.
23801 2016-05-18 Bin Cheng <bin.cheng@arm.com>
23803 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
23804 expression pointer, not pointer to the pointer.
23806 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23808 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
23809 (avx2_pbroadcast<mode>): Add another alternative with v instead
23810 of x constraints in it, using <pbroadcast_evex_isa> isa.
23811 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
23813 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
23814 constraint x instead of v in second alternative, add avx512bw
23817 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
23818 constraint x instead of v in second alternative, add avx512bw
23821 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
23822 constraint x instead of v in second alternative, add avx512bw
23825 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
23826 avx512bw alternative.
23828 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23830 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
23831 array to 128 chars.
23832 (define_insn "*andnottf3"): Ditto.
23833 (define_insn "*<code><mode>3"/any_logic): Ditto.
23834 (define_insn "*<code>tf3"/any_logic): Ditto.
23835 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
23836 operand to block AVX-512VL insn variant emit when it is not enabled.
23838 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23840 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
23841 constraint fot SF mode.
23843 2016-05-18 Petr Murzin <petr.murzin@intel.com>
23844 Kirill Yukhin <kirill.yukhin@intel.com>
23846 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
23848 (define_insn "rsqrt14<mode>"): Ditto.
23849 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
23850 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
23851 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
23852 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
23853 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
23855 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
23856 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
23857 * config/i386/i386.c (ix86_print_operand): Expand check for size
23858 override codes for Intel syntax.
23860 2016-05-18 Richard Biener <rguenther@suse.de>
23862 PR tree-optimization/71168
23863 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
23864 initialization earlier.
23866 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
23868 * config/aarch64/aarch64-simd.md
23869 (aarch64_reduc_plus_internal<mode>): Rename to...
23870 (reduc_plus_scal): ...This, and remove previous implementation.
23872 2016-05-18 Richard Biener <rguenther@suse.de>
23874 * passes.def: Put late dse and cd_dce in canonical order.
23876 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
23878 * ipa-inline-transform.c (preserve_function_body_p): Look for
23879 first non-thunk clone.
23880 (save_function_body): Save into first non-thunk.
23881 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
23883 (lto_output_node): Inline thunks don't need body in every
23885 * lto-streamer-in.c: Do not fixup thunk clones.
23886 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
23888 * tree-inline.c (copy_bb): Be prepared for target node to be new after
23891 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23893 PR middle-end/63586
23894 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
23895 (reassociate_bb): Call transform_add_to_multiply.
23897 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23899 * config/aarch64/aarch64.c (all_extensions): Removed unused
23902 2016-05-17 Nathan Sidwell <nathan@acm.org>
23904 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
23905 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
23907 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
23909 PR tree-optimization/54579
23910 PR middle-end/55299
23911 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
23913 2016-05-17 Marek Polacek <polacek@redhat.com>
23916 * tree-inline.c (expand_call_inline): Call
23917 maybe_remove_unused_call_args.
23919 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
23921 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
23922 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
23923 * doc/md.texi (fmin@var{m}3): Likewise.
23925 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23927 * match.pd (X & C): New transformation.
23929 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23931 * match.pd (~X & Y): New transformation.
23933 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23935 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
23936 information for new SSA_NAME.
23937 (simplify_conversion_using_ranges): Get range through get_range_info
23938 instead of get_value_range.
23940 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23942 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
23943 Remove inline assembly.
23944 (vmvn_s16): Likewise.
23945 (vmvn_s32): Likewise.
23946 (vmvn_u8): Likewise.
23947 (vmvn_u16): Likewise.
23948 (vmvn_u32): Likewise.
23949 (vmvnq_s8): Likewise.
23950 (vmvnq_s16): Likewise.
23951 (vmvnq_s32): Likewise.
23952 (vmvnq_u8): Likewise.
23953 (vmvnq_u16): Likewise.
23954 (vmvnq_u32): Likewise.
23955 (vmvn_p8): Likewise.
23956 (vmvnq_p16): Likewise.
23958 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23960 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
23962 (vmul_n_s16): Likewise.
23963 (vmul_n_s32): Likewise.
23964 (vmul_n_u16): Likewise.
23965 (vmul_n_u32): Likewise.
23966 (vmulq_n_f32): Likewise.
23967 (vmulq_n_f64): Likewise.
23968 (vmulq_n_s16): Likewise.
23969 (vmulq_n_s32): Likewise.
23970 (vmulq_n_u16): Likewise.
23971 (vmulq_n_u32): Likewise.
23973 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23975 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
23976 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
23978 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23980 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
23981 to *aarch64_fma4_elt_from_dup<mode>.
23982 (*aarch64_fnma4_elt_to_128df): Rename to
23983 *aarch64_fnma4_elt_from_dup<mode>.
23984 * config/aarch64/arm_neon.h (vfma_n_f64): New.
23985 (vfms_n_f32): Likewise.
23986 (vfms_n_f64): Likewise.
23987 (vfmsq_n_f32): Likewise.
23988 (vfmsq_n_f64): Likewise.
23990 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
23992 * wide-int.h: Change fixed_wide_int_storage from class to struct.
23994 2016-05-17 Richard Biener <rguenther@suse.de>
23996 PR tree-optimization/71132
23997 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
23998 Only add control dependences for blocks in the loop.
23999 (build_rdg): Adjust.
24000 (generate_code_for_partition): Return whether loop should
24001 be destroyed and delay that.
24002 (distribute_loop): Likewise.
24003 (pass_loop_distribution::execute): Record loops to be destroyed
24004 and perform delayed destroying of loops.
24006 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24009 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
24011 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
24013 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
24015 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
24018 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
24019 insertion point for instructions generated by validize_mem.
24021 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
24023 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
24026 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
24028 * config/aarch64/aarch64.c
24029 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
24030 rather than a macro.
24032 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
24034 * doc/invoke.texi (AArch64 Options): Various updates.
24036 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24038 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
24039 into instrumentation thunks.
24040 * cif-code.def (CIF_CHKP): New.
24042 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
24044 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
24046 2016-05-16 Martin Jambor <mjambor@suse.cz>
24048 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
24049 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
24051 2016-05-16 Marek Polacek <polacek@redhat.com>
24053 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
24056 2016-05-16 Martin Jambor <mjambor@suse.cz>
24059 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
24060 the outlined kernel function.
24062 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
24064 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
24065 (ISA_HAS_DLSA): Ditto.
24067 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
24069 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
24071 2016-05-16 Nathan Sidwell <nathan@acm.org>
24073 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
24074 (nvptx_name_replacement): Restore. Add comment.
24075 (write_fn_proto, write_fn_proto_from_insn,
24076 nvptx_output_call_insn): Restore
24077 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
24079 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
24081 * config/aarch64/aarch64.md
24082 (add<mode>3_compareC_cconly_imm): Remove use of %w.
24083 (add<mode>3_compareC_imm): Likewise.
24084 (<optab>si3_uxtw): Split into register and immediate variants.
24085 (andsi3_compare0_uxtw): Likewise.
24086 (and<mode>3_compare0): Likewise.
24087 (and<mode>3nr_compare0): Likewise.
24088 (stack_protect_test_<mode>): Don't use %x for memory operands.
24090 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
24092 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
24094 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
24096 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
24097 Split integer shifts into shift_reg and bfm.
24098 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
24099 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
24100 (ror<mode>3_insn): Likewise.
24101 (<optab>si3_insn_uxtw): Likewise.
24102 (<optab><mode>3_insn): Change to rotate_imm.
24103 (extr<mode>5_insn_alt): Likewise.
24104 (extrsi5_insn_uxtw): Likewise.
24105 (extrsi5_insn_uxtw_alt): Likewise.
24107 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
24109 * doc/tm.texi: Regenerate.
24110 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
24111 (TARGET_INVALID_RETURN_TYPE): Remove.
24112 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
24113 TARGET_INVALID_RETURN_TYPE.
24114 * target.def (invalid_parameter_type): Remove.
24115 (invalid_return_type): Remove.
24117 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24119 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
24120 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
24122 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
24124 (preserve_function_body_p): No need to preserve function body
24125 * cif-codes.def (CIF_THUNK): Remove.
24126 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
24128 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24130 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
24132 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24134 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
24137 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24139 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
24140 (inline_small_functions): Do not look for function symbol when
24143 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24145 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
24148 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
24149 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24150 Jiong Wang <jiong.wang@arm.com>
24152 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
24153 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
24154 Define __ARM_FP16_ARGS when appropriate.
24155 * config/arm/arm.c (arm_invalid_parameter_type): Remove
24157 (arm_invalid_return_type): Likewise.
24158 (TARGET_INVALID_PARAMETER_TYPE): Remove.
24159 (TARGET_INVALID_RETURN_TYPE): Remove.
24160 (aapcs_vfp_sub_candidate): Allow HFmode.
24161 (aapcs_vfp_allocate): Add comment. Support HFmode.
24162 (aapcs_vfp_allocate_return_reg): Likewise.
24163 (struct aapcs_cp_arg_layout): Slightly reword comments for
24164 is_return_candidate and allocate_return_reg.
24165 (output_mov_vfp): Update assert.
24166 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
24168 (arm_invalid_parameter_type): Remove.
24169 (amr_invalid_return_type): Remove.
24170 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
24171 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
24172 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
24174 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
24176 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24177 * config/aarch64/arch64-protos.h
24178 (aarch64_legitimize_reload_address): Remove.
24179 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
24182 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
24184 * configure.ac: Add ACX_NONCANONICAL_HOST.
24185 * configure: Regenerate.
24186 * Makefile.in: Set host_noncanonical.
24188 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
24191 * config/i386/i386.md (*movtf_internal): Before register allocation,
24192 do not allow FP constants for CM_MEDIUM memory model, allow only
24193 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
24194 (*movxf_internal): Ditto.
24195 (*movdf_internal): Ditto.
24196 (*movsf_internal): Ditto.
24198 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24200 PR rtl-optimization/67483
24201 * combine.c (make_compound_operation): Don't call extract_left_shift
24202 with negative shift amounts.
24204 2016-05-13 Jakub Jelinek <jakub@redhat.com>
24207 * fold-const.c (fold_checksum_tree): Allow modification
24208 of TYPE_ALIAS_SET during folding.
24210 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
24211 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
24212 (ix86_split_to_parts): Likewise. Fix up formatting.
24214 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
24216 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
24217 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
24220 2016-05-13 Nathan Sidwell <nathan@acm.org>
24222 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
24223 (nvptx_name_replacement): Delete.
24224 (write_fn_proto, write_fn_proto_from_insn,
24225 nvptx_output_call_insn): Remove nvptx_name_replacement call.
24226 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
24227 * langhooks.c (add_builtin_funcction_common): Call
24228 targetm.mangle_decl_assembler_name.
24230 * config/nvptx/nvptx.c (write_fn_proto): Handle
24231 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
24233 2016-05-13 Martin Liska <mliska@suse.cz>
24235 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
24236 and PRIu64 in printf format.
24238 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24240 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
24243 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24245 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
24246 Change --param max-completely-peeled-times to
24247 --param max-completely-peel-times in dump file printing.
24249 2016-05-13 Richard Biener <rguenther@suse.de>
24251 PR tree-optimization/42587
24252 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
24253 (find_bswap_or_nop_1): Likewise.
24254 (bswap_replace): Likewise.
24256 2016-05-13 Martin Liska <mliska@suse.cz>
24258 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
24259 Initialize a variable with default value.
24261 2016-05-13 Martin Liska <mliska@suse.cz>
24263 * doc/invoke.texi: Enhance explanation of error recovery
24266 2016-05-13 Martin Liska <mliska@suse.cz>
24268 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
24269 (struct cost_pair): Change inv_expr_id (int) to inv_expr
24270 (iv_inv_expr_ent *).
24271 (struct iv_inv_expr_ent): Comment struct fields.
24272 (sort_iv_inv_expr_ent): New function.
24273 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
24274 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
24275 a hash_map between iv_inv_expr_ent and number of usages.
24276 (niter_for_exit): Fix coding style.
24277 (tree_ssa_iv_optimize_init): Use renamed variable.
24278 (determine_base_object): Fix coding style.
24279 (alloc_iv): Likewise.
24280 (find_interesting_uses_outside): Likewise.
24281 (add_candidate_1): Likewise.
24282 (add_standard_iv_candidates): Likewise.
24283 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
24284 (prepare_decl_rtl): Fix coding style.
24285 (get_address_cost): Likewise.
24286 (get_shiftadd_cost): Likewise.
24287 (force_expr_to_var_cost): Likewise.
24288 (compare_aff_trees): Likewise.
24289 (get_expr_id): Restructure the function.
24290 (get_loop_invariant_expr_id): Renamed to
24291 get_loop_invariant_expr.
24292 (get_computation_cost_at): Replace usage of inv_expr_id with
24294 (get_computation_cost): Likewise.
24295 (determine_group_iv_cost_generic): Likewise.
24296 (determine_group_iv_cost_address): Likewise.
24297 (iv_period): Fix coding style.
24298 (iv_elimination_compare_lt): Likewise.
24299 (may_eliminate_iv): Likewise.
24300 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
24302 (determine_group_iv_costs): Dump invariant expressions.
24303 (iv_ca_recount_cost): Use the newly added hash_map.
24304 (iv_ca_set_remove_invariants): Fix coding style.
24305 (iv_ca_set_add_invariants): Fix coding style.
24306 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
24308 (iv_ca_set_cp): Likewise.
24309 (iv_ca_new): Initialize the newly added hash_map and remove
24310 initialization of fields.
24311 (iv_ca_free): Delete the hash_map.
24312 (iv_ca_dump): Dump invariant expressions.
24313 (iv_ca_extend): Fix coding style.
24314 (try_add_cand_for): Likewise.
24315 (create_new_ivs): Dump information about # of avg iterations and
24316 # of used invariant expressions.
24317 (rewrite_use_compare): Fix coding style.
24318 (free_loop_data): Set default value for max_inv_expr_id.
24320 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24322 * cse.c (rest_of_handle_cse): Use cleanup_cfg
24323 returned value cse_cfg_altered computation.
24324 (rest_of_handle_cse2): Likewise.
24325 (rest_of_handle_cse_after_global_opts): Likewise.
24327 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24330 * config/arm/arm.c (arm32_output_mi_thunk): New.
24331 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
24332 to split Thumb1 vs TARGET_32BIT functionality.
24333 (arm_thumb1_mi_thunk): New.
24335 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24337 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
24340 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24343 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
24345 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
24347 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
24348 (expand_builtin_trap): Emit a regular call.
24349 (set_builtin_user_assembler_name): Remove obsolete cases.
24350 * dse.c (scan_insn): Adjust.
24351 * except.c: Include calls.h.
24352 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
24353 emit a regular call to setjmp.
24354 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
24355 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
24356 (emit_block_move_via_libcall): Delete.
24357 (block_move_fn): Delete.
24358 (init_block_move_fn): Likewise.
24359 (emit_block_move_libcall_fn): Likewise.
24360 (emit_block_op_via_libcall): New function.
24361 (set_storage_via_libcall): Tidy up and use memset builtin.
24362 (block_clear_fn): Delete.
24363 (init_block_clear_fn): Likewise.
24364 (clear_storage_libcall_fn): Likewise.
24365 (expand_assignment): Call emit_block_move_via_libcall.
24366 Do not include gt-expr.h.
24367 * expr.h (emit_block_op_via_libcall): Declare.
24368 (emit_block_copy_via_libcall): New inline function.
24369 (emit_block_move_via_libcall): Likewise.
24370 (emit_block_comp_via_libcall): Likewise.
24371 (block_clear_fn): Delete.
24372 (init_block_move_fn): Likewise.
24373 (init_block_clear_fn): Likewise.
24374 (emit_block_move_via_libcall): Likewise.
24375 (set_storage_via_libcall): Add default parameter value.
24376 * libfuncs.h (enum libfunc_index): Remove obsolete values.
24377 (abort_libfunc): Delete.
24378 (memcpy_libfunc): Likewise.
24379 (memmove_libfunc): Likewise.
24380 (memcmp_libfunc): Likewise.
24381 (memset_libfunc): Likewise.
24382 (setbits_libfunc): Likewise.
24383 (setjmp_libfunc): Likewise.
24384 (longjmp_libfunc): Likewise.
24385 (profile_function_entry_libfunc): Likewise.
24386 (profile_function_exit_libfunc): Likewise.
24387 (gcov_flush_libfunc): Likewise.
24388 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
24389 and DECL_VISIBILITY on the declaration.
24390 (init_optabs): Do not initialize obsolete libfuncs.
24391 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
24392 * tree-core.h (ECF_RET1): Define.
24393 (ECF_TM_PURE): Adjust.
24394 (ECF_TM_BUILTIN): Likewise.
24395 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
24396 (build_common_builtin_nodes): Initialize abort builtin.
24397 Add ECF_RET1 on memcpy, memmove and memset builtins.
24398 Pass final flags for alloca and alloca_with_align builtins.
24399 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
24401 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
24402 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
24403 set_storage_via_libcall and call emit_block_copy_via_libcall.
24405 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
24407 * config/i386/i386.md (*call_got_x32): Change operand 0 to
24408 DImode before it is passed to ix86_output_call_operand.
24409 (*call_value_got_x32): Ditto for operand 1.
24411 2016-05-12 Jiong Wang <jiong.wang@arm.com>
24413 PR rtl-optimization/70904
24414 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
24415 reload for wide mode.
24417 2016-05-12 Marek Polacek <polacek@redhat.com>
24420 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
24421 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
24422 * langhooks.h (incomplete_type_error): Likewise.
24423 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
24424 parameter, pass it down to incomplete_type_error.
24425 * tree.h (size_in_bytes): New inline overload.
24426 (size_in_bytes_loc): Renamed from size_in_bytes.
24428 2016-05-12 Richard Biener <rguenther@suse.de>
24430 PR tree-optimization/71059
24431 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
24432 nary before looking up or entering the expression into the VN
24434 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
24435 Make sure to re-use NARYs without result as inserted by
24438 2016-05-12 Richard Biener <rguenther@suse.de>
24440 PR tree-optimization/71062
24441 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
24443 * tree-ssa-structalias.c (set_uids_in_ptset): Set
24444 vars_contains_restrict if the var is a restrict tag.
24445 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
24446 do not disambiguate pointers against it.
24447 (dump_points_to_solution): Re-structure and adjust for new
24448 vars_contains_restrict flag.
24449 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
24451 2016-05-12 Martin Liska <mliska@suse.cz>
24453 * doc/invoke.texi: Explain connection between
24454 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
24456 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
24458 PR tree-optimization/71006
24459 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
24460 consider COND_EXPR as a mask producer.
24462 2016-05-12 Marek Polacek <polacek@redhat.com>
24465 * opts.c (common_handle_option): Detect missing argument for --help^.
24467 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24470 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
24471 when popping the PC and within an interrupt handler routine.
24472 Add missing tab to output of "ldmfd".
24473 (output_return_instruction): Output LDMFD with SP update rather
24474 than POP when returning from interrupt handler.
24476 2016-05-12 Jakub Jelinek <jakub@redhat.com>
24478 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
24479 TARGET_64BIT && TARGET_AVX512DQ.
24480 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
24481 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
24482 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
24483 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
24484 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
24485 (*vec_extractv4si_zext): Add avx512dq alternative.
24486 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
24487 use v instead of x constraint in other alternatives where possible.
24489 * config/i386/sse.md (sse2_loadld): Use v instead of x
24490 constraint in alternatives 0,1,4.
24492 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
24493 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
24494 v constraints instead of x and <pinsr_evex_isa> isa attribute.
24497 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
24498 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
24499 is not emitted unless TARGET_AVX512BW.
24500 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
24501 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
24502 for the result operand.
24504 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
24505 constraint instead of x in avx alternatives. Use maybe_evex instead
24508 * config/i386/constraints.md (Yv): New constraint.
24509 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
24510 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
24511 * config/i386/i386.md (avx512fvecmode): New mode attr.
24512 (*pushtf): Use v constraint instead of x.
24513 (*movtf_internal): Likewise. For TARGET_AVX512VL and
24514 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
24515 (*absneg<mode>2): Use Yv constraint instead of x constraint.
24516 (*absnegtf2_sse): Likewise.
24517 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
24518 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
24519 avx512f alternatives.
24520 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
24522 2016-05-12 Richard Biener <rguenther@suse.de>
24524 PR tree-optimization/71060
24525 * tree-data-ref.c (initialize_data_dependence_relation): Do not
24526 require exact match of DR_BASE_OBJECT but only matching address and
24529 2016-05-12 Richard Biener <rguenther@suse.de>
24531 PR tree-optimization/70986
24532 * cfganal.c: Include cfgloop.h.
24533 (dfs_find_deadend): Prefer to take edges exiting loops.
24535 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24537 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
24538 compile and run time.
24540 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
24543 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
24545 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
24547 * config/i386/i386.c (legitimize_pic_address): Use
24548 copy_to_suggested_reg instead of gen_movsi.
24550 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24552 * config/rs6000/predicates.md (quad_memory_operand): Move most of
24553 the code into quad_address_p and call it to share code with
24554 vsx_quad_dform_memory_operand.
24555 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
24557 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
24558 bit instead of being a separate word. Split -mpower9-dform into
24559 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24560 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
24561 for the register class supporting 128-bit quad word memory offsets.
24562 (mode_supports_vsx_dform_quad): Helper function to return if the
24563 register class uses quad word memory offsets.
24564 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
24565 (rs6000_debug_reg_global): Always print if we are using LRA or not.
24566 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
24567 instructions are enabled, set up the appropriate addr_masks for
24569 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
24570 -mpower9-dform-scalar, instead of -mpower9-dform.
24571 (rs6000_option_override_internal): Split -mpower9-dform into two
24572 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
24573 -mpower9-dform switch sets or clears both. If we are not using
24574 the LRA register allocator, do not enable -mpower9-dform-vector by
24575 default. If we are using LRA, enable -mpower9-dform-vector and
24576 -mvsx-timode if it is appropriate. Issue a warning if either
24577 -mpower9-dform-vector or -mvsx-timode are explicitly used without
24579 (quad_address_offset_p): New helper function to return if the
24580 offset is legal for quad word memory instructions.
24581 (quad_address_p): New function to determin if GPR or vector
24582 register quad word memory addresses are legal.
24583 (mem_operand_gpr): Validate quad word address offsets.
24584 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
24585 d-form (register + offset) instructions.
24586 (offsettable_ok_by_alignment): Likewise.
24587 (rs6000_legitimate_offset_address_p): Likewise.
24588 (legitimate_lo_sum_address_p): Likewise.
24589 (rs6000_legitimize_address): Likewise.
24590 (rs6000_legitimize_reload_address): Add more debug statements for
24592 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
24593 d-form instructions.
24594 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
24595 d-form instructions. Distinguish different cases in debug
24596 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
24597 d-form instructions.
24598 (rs6000_preferred_reload_class): Likewise.
24599 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
24600 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
24601 of the ISA 2.06 indexed memory instructions.
24602 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
24603 use them to save/restore the saved vector registers instead of
24604 using Altivec instructions.
24605 (rs6000_emit_epilogue): Likewise.
24606 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
24607 (rs6000_opt_masks): Split -mpower9-dform into
24608 -mpower9-dform-scalar and -mpower9-dform-vector.
24609 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
24611 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
24612 ISA 3.0 vector indexed memory instructions, and fold the code into
24613 the normal mov<mode> patterns.
24614 (p9_vecstore_<mode>): Likewise.
24615 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
24617 (vsx_movti_64bit): Likewise.
24618 (vsx_movti_32bit): Likewise.
24619 * config/rs6000/constraints.md (wO constraint): New constraint for
24620 ISA 3.0 vector d-form support.
24621 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
24622 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
24623 include -mpower9-dform-vector until we switch over to LRA.
24624 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
24625 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24626 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
24627 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
24628 for -mpower9-dform and -mlra.
24629 * doc/md.texi (wO constraint): Document wO constraint.
24631 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
24633 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
24634 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
24635 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
24636 Move handling of non-insn arguments inline into the sole user:
24637 (output_trans_func): ...here.
24638 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
24639 in emitted function prototype.
24640 (output_internal_insn_latency_func): Ditto. Simplify.
24641 (output_internal_maximal_insn_latency_func): Ditto. Delete
24642 always-unused argument.
24643 (output_insn_latency_func): Ditto.
24644 (output_maximal_insn_latency_func): Ditto.
24646 2016-05-11 Richard Biener <rguenther@suse.de>
24648 PR tree-optimization/71055
24649 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
24650 sth with precision not equal to access size verify we don't chop
24653 2016-05-11 Richard Biener <rguenther@suse.de>
24656 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
24657 (dwarf2out_finish): Move retry_incomplete_types call ...
24658 (dwarf2out_early_finish): ... here.
24660 2016-05-11 Richard Biener <rguenther@suse.de>
24662 PR middle-end/71002
24663 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
24664 if the langhook insists on it.
24665 * fold-const.c (make_bit_field_ref): Add arg for the original
24666 reference and preserve its alias-set.
24667 (decode_field_reference): Take exp by reference and adjust it
24668 to the original memory reference.
24669 (optimize_bit_field_compare): Adjust callers.
24670 (fold_truth_andor_1): Likewise.
24671 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
24673 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
24675 PR middle-end/70807
24676 * cfgrtl.h (delete_insn_and_edges): Now return bool.
24677 * cfgrtl.c (delete_insn_and_edges): Likewise.
24678 * config/i386/i386.c (convert_scalars_to_vector): Remove
24680 * cse.c (cse_insn): Compute cse_cfg_altered.
24681 (delete_trivially_dead_insns): Likewise.
24682 (cse_cc_succs): Likewise.
24683 (rest_of_handle_cse): Free dominance info if required.
24684 (rest_of_handle_cse2): Likewise.
24685 (rest_of_handle_cse_after_global_opts): Likewise.
24687 2016-05-11 Alan Modra <amodra@gmail.com>
24689 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
24690 abi_v4_pass_in_fpr): New functions.
24691 (rs6000_function_arg_boundary): Exclude complex IBM long double
24692 from 64-bit alignment when ABI_V4.
24693 (rs6000_function_arg, rs6000_function_arg_advance_1,
24694 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
24696 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
24698 PR rtl-optimization/71028
24699 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
24700 jump with just a return in the fallthrough block if the branch
24701 block contains just a return as well.
24703 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
24705 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
24706 * match.pd ((X & Y) ^ Y): ... this.
24707 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
24708 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
24710 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24712 * read-md.c (require_char_ws): New function.
24713 (read_string): Simplify using require_char_ws.
24714 (handle_constants): Likewise.
24715 (handle_enum): Likewise.
24716 (handle_file): Likewise.
24717 * read-md.h (require_char_ws): New declaration.
24718 * read-rtl.c (read_conditions): Simplify using require_char_ws.
24719 (read_mapping): Likewise.
24720 (read_rtx_code): Likewise.
24721 (read_nested_rtx): Likewise.
24723 2016-05-10 James Norris <jnorris@codesourcery.com>
24725 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
24726 if offloading is enabled and -fopenacc or -fopenmp is specified.
24727 (CRTOFFLOADEND): Likewise.
24728 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
24729 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
24731 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
24733 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
24734 gotoff_operand code paths. Use copy_to_suggested_regs and
24735 expand_simple_binop where appropriate. Cleanup.
24737 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24740 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
24742 (dimode_scalar_chain::vector_const_cost): New.
24743 (dimode_scalar_chain::compute_convert_gain): Handle constants.
24744 (dimode_scalar_chain::convert_op): Likewise.
24745 (dimode_scalar_chain::convert_insn): Likewise.
24747 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24749 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
24750 unary operation, not a binary one.
24752 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24754 PR middle-end/70877
24755 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
24756 calls with type casted fndecl.
24758 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24760 PR tree-optimization/70786
24761 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
24762 * calls.c (initialize_argument_information): Bind bounds
24763 with corresponding args passed by reference.
24765 2016-05-10 Jakub Jelinek <jakub@redhat.com>
24768 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
24769 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
24770 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
24773 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24776 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
24777 code for a zero scale factor.
24778 (vsx_xvcvdpuxds_scale): Likewise.
24780 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24782 * diagnostic-show-locus.c (layout::layout): Call show_ruler
24783 if show_ruler_p was set on the context.
24784 (layout::show_ruler): New method.
24785 * diagnostic.h (struct diagnostic_context): Add field
24788 2016-05-10 Richard Biener <rguenther@suse.de>
24790 PR tree-optimization/71039
24791 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
24792 (chk_uses): New function.
24793 (propagate_with_phi): Verify we can safely replicate the lhs of an
24794 aggregate assignment on all incoming edges.
24796 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
24798 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
24800 (rx_atomic_sequence): New class.
24801 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
24802 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
24804 (rx_atomic_sequence::rx_atomic_sequence,
24805 rx_atomic_sequence::~rx_atomic_sequence): New functions.
24806 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
24807 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
24808 CTRLREG_INTB): New constants.
24809 (FETCHOP): New code iterator.
24810 (fethcop_name, fetchop_name2): New iterator code attributes.
24811 (QIHI): New mode iterator.
24812 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
24813 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
24814 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
24816 2016-05-10 Martin Liska <mliska@suse.cz>
24818 * tree-inline.c (remap_dependence_clique): Do not remap
24819 debugging statements.
24821 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24823 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
24824 ("*fixuns_truncdfdi2_z13")
24825 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
24826 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
24827 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
24829 2016-05-10 Richard Biener <rguenther@suse.de>
24831 PR tree-optimization/70497
24832 PR tree-optimization/28367
24833 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
24835 (visit_reference_op_load): ... here.
24836 (vn_reference_lookup_3): Use it to handle subreg-like accesses
24837 with simplified BIT_FIELD_REFs.
24838 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
24839 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
24842 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24844 * dwarf2out.c (add_abstract_origin_attribute): Adjust
24845 documentation comment. For BLOCK nodes, add a
24846 DW_AT_abstract_origin attribute that points to the DIE generated
24847 for the origin BLOCK.
24848 (gen_lexical_block_die): Call add_abstract_origin_attribute for
24849 blocks from inlined functions.
24851 2016-05-10 Alan Modra <amodra@gmail.com>
24854 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
24855 regrename modifying insns saving lr before __morestack call.
24856 * config/rs6000/rs6000.md (split_stack_return): Similarly for
24857 insns restoring lr after __morestack call.
24859 2016-05-09 Jakub Jelinek <jakub@redhat.com>
24861 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
24862 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
24864 * config/i386/sse.md (vec_interleave_high<mode>,
24865 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
24866 <avx512>_vpermt2var<mode>3_maskz): Likewise.
24868 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
24870 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
24871 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
24872 parallel reassociation for power8 and forward.
24874 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
24876 * config/i386/i386.md (absneg splitters with general regs): Use
24877 general_reg_operand predicate.
24878 (btsq peephole2): Use x86_64_immediate_operand to check if new
24879 value is suitable for immediate operand. Generate emitted insn
24880 using RTL expressions.
24881 (btcq peephole2): Ditto.
24882 (btrq peephole2): Ditto. Generate correct immediate operand
24885 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24887 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
24890 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24892 * tree-affine.c (wide_int_constant_multiple_p): Add missing
24893 pointer dereference.
24895 2016-05-09 Richard Biener <rguenther@suse.de>
24897 PR tree-optimization/70985
24898 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
24899 op0 isn't a gimple register.
24901 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
24903 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
24904 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
24905 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
24906 (i6400_fpu_mult): New cpu units.
24907 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
24908 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
24909 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
24910 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
24911 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
24912 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
24913 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
24914 (i6400_msa_long_float4, i6400_msa_long_float5)
24915 (i6400_msa_long_float8, i6400_msa_fdiv_df)
24916 (i6400_msa_fdiv_sf): New reservations.
24917 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
24918 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
24919 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
24920 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
24921 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
24922 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
24923 (msa_short_cmp, msa_short_float2, msa_short_logic3)
24924 (msa_short_store4, msa_long_load, msa_short_store)
24925 (msa_long_logic, msa_long_float2, msa_long_float4)
24926 (msa_long_float5, msa_long_float8, msa_long_mult)
24927 (msa_long_fdiv, msa_long_div): New reservations.
24929 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
24930 Sameera Deshpande <sameera.deshpande@imgtec.com>
24931 Matthew Fortune <matthew.fortune@imgtec.com>
24932 Graham Stott <graham.stott@imgtec.com>
24933 Chao-ying Fu <chao-ying.fu@imgtec.com>
24935 * config.gcc: Add MSA header file for mips*-*-* target.
24936 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
24937 (Ubv8i, Urv8): New constraints.
24938 * config/mips/mips-ftypes.def: Add function types for MSA
24940 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
24941 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
24942 * config/mips/mips-msa.md: New file.
24943 * config/mips/mips-protos.h
24944 (mips_split_128bit_const_insns): New prototype.
24945 (mips_msa_idiv_insns): Likewise.
24946 (mips_split_128bit_move): Likewise.
24947 (mips_split_128bit_move_p): Likewise.
24948 (mips_split_msa_copy_d): Likewise.
24949 (mips_split_msa_insert_d): Likewise.
24950 (mips_split_msa_fill_d): Likewise.
24951 (mips_expand_msa_branch): Likewise.
24952 (mips_const_vector_same_val_p): Likewise.
24953 (mips_const_vector_same_bytes_p): Likewise.
24954 (mips_const_vector_same_int_p): Likewise.
24955 (mips_const_vector_shuffle_set_p): Likewise.
24956 (mips_const_vector_bitimm_set_p): Likewise.
24957 (mips_const_vector_bitimm_clr_p): Likewise.
24958 (mips_msa_vec_parallel_const_half): Likewise.
24959 (mips_msa_output_division): Likewise.
24960 (mips_ldst_scaled_shift): Likewise.
24961 (mips_expand_vec_cond_expr): Likewise.
24962 * config/mips/mips.c (enum mips_builtin_type): Add
24963 MIPS_BUILTIN_MSA_TEST_BRANCH.
24964 (mips_gen_const_int_vector_shuffle): New prototype.
24965 (mips_const_vector_bitimm_set_p): New function.
24966 (mips_const_vector_bitimm_clr_p): Likewise.
24967 (mips_const_vector_same_val_p): Likewise.
24968 (mips_const_vector_same_bytes_p): Likewise.
24969 (mips_const_vector_same_int_p): Likewise.
24970 (mips_const_vector_shuffle_set_p): Likewise.
24971 (mips_symbol_insns): Forbid loading symbols via immediate for
24973 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
24975 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
24977 (mips_lx_address_p): Add support load indexed address for MSA.
24978 (mips_address_insns): Add calculation of instructions needed for
24979 stores and loads for MSA.
24980 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
24981 CONST_VECTOR for MSA and let it fall through.
24982 (mips_ldst_scaled_shift): New function.
24983 (mips_subword_at_byte): Likewise.
24984 (mips_msa_idiv_insns): Likewise.
24985 (mips_legitimize_move): Validate MSA moves.
24986 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
24987 calculation of costs for MSA division.
24988 (mips_split_move_p): Check if MSA moves need splitting.
24989 (mips_split_move): Split MSA moves if necessary.
24990 (mips_split_128bit_move_p): New function.
24991 (mips_split_128bit_move): Likewise.
24992 (mips_split_msa_copy_d): Likewise.
24993 (mips_split_msa_insert_d): Likewise.
24994 (mips_split_msa_fill_d): Likewise.
24995 (mips_output_move): Handle MSA moves.
24996 (mips_expand_msa_branch): New function.
24997 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
24998 Reinstate 'y' modifier.
24999 (mips_file_start): Add MSA .gnu_attribute.
25000 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
25002 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
25003 (mips_class_max_nregs): Add register size for MSA supported mode.
25004 (mips_cannot_change_mode_class): Allow conversion between MSA
25005 vector modes and TImode.
25006 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
25008 (mips_secondary_reload_class): Force MSA loads/stores via memory.
25009 (mips_preferred_simd_mode): Add preffered modes for MSA.
25010 (mips_vector_mode_supported_p): Add MSA supported modes.
25011 (mips_autovectorize_vector_sizes): New function.
25012 (mips_msa_output_division): Likewise.
25013 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
25014 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
25015 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
25016 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
25017 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
25018 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
25019 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
25020 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
25021 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
25022 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
25023 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
25024 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
25025 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
25026 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
25027 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
25028 (CODE_FOR_msa_clti_u_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_clei_u_b)
25031 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
25032 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
25033 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
25034 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
25035 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
25036 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
25037 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
25038 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
25039 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
25040 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
25041 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
25042 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
25043 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
25044 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
25045 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
25046 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
25047 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
25048 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
25049 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
25050 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
25051 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
25052 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
25053 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
25054 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
25055 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
25056 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
25057 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
25058 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
25059 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
25060 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
25061 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
25062 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
25063 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
25064 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
25065 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
25066 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
25067 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
25068 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
25069 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
25070 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
25071 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
25072 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
25073 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
25074 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
25075 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
25076 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
25077 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
25078 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
25079 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
25080 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
25081 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
25082 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
25083 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
25084 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
25085 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
25086 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
25087 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
25088 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
25089 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
25090 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
25091 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
25092 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
25093 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
25094 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
25095 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
25096 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
25097 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
25098 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
25099 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
25100 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
25101 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
25102 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
25103 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
25104 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
25105 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
25106 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
25107 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
25108 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
25109 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
25110 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
25111 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
25112 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
25113 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
25114 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
25115 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
25116 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
25117 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
25118 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
25119 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
25120 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
25121 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
25122 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
25123 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
25124 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
25125 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
25126 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
25127 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
25128 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
25129 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
25130 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
25131 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
25132 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
25133 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
25134 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
25135 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
25136 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
25137 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
25138 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
25139 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
25140 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
25141 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
25142 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
25143 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
25144 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
25145 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
25146 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
25147 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
25148 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
25149 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
25150 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
25151 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
25152 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
25153 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
25154 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
25155 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
25156 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
25157 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
25158 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
25159 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
25160 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
25161 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
25162 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
25163 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
25165 (mips_get_builtin_decl_index): New array.
25166 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
25167 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
25168 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
25169 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
25170 (mips_init_builtins): Initialize mips_get_builtin_decl_index
25172 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
25174 (mips_expand_builtin_insn): Prepare operands for
25175 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
25176 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
25177 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
25178 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
25179 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
25180 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
25181 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
25182 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
25183 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
25184 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
25185 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
25186 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
25187 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
25188 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
25189 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
25190 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
25191 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
25192 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
25193 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
25194 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
25195 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
25196 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
25197 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
25198 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
25199 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
25200 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
25201 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
25202 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
25203 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
25204 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
25205 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
25206 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
25207 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
25208 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
25209 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
25210 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
25211 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
25212 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
25213 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
25214 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
25215 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
25216 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
25217 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
25218 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
25219 These are set implicitly and an error is reported if overridden.
25220 (mips_expand_builtin_msa_test_branch): New function.
25221 (mips_expand_msa_shuffle): Likewise.
25222 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
25223 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
25224 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
25225 (mips_expand_vec_unpack): Add support for MSA.
25226 (mips_expand_vector_init): Likewise.
25227 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
25228 instead of const0_rtx.
25229 (mips_msa_vec_parallel_const_half): New function.
25230 (mips_gen_const_int_vector): Likewise.
25231 (mips_gen_const_int_vector_shuffle): Likewise.
25232 (mips_expand_msa_cmp): Likewise.
25233 (mips_expand_vec_cond_expr): Likewise.
25234 * config/mips/mips.h
25235 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
25236 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
25238 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
25239 (ISA_HAS_MSA): New macro.
25240 (UNITS_PER_MSA_REG): Likewise.
25241 (BITS_PER_MSA_REG): Likewise.
25242 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
25243 (MSA_REG_FIRST): New macro.
25244 (MSA_REG_LAST): Likewise.
25245 (MSA_REG_NUM): Likewise.
25246 (MSA_REG_P): Likewise.
25247 (MSA_REG_RTX_P): Likewise.
25248 (MSA_SUPPORTED_MODE_P): Likewise.
25249 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
25250 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
25251 * config/mips/mips.md: Include mips-msa.md.
25252 (alu_type): Add simd_add.
25253 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
25254 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
25255 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
25256 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
25257 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
25258 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
25259 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
25260 simd_move, simd_load, simd_store. Choose "multi" for moves
25262 (qword_mode): New attribute.
25263 (insn_count): Add instruction count for quad moves.
25264 Increase the count for MIPS SIMD division.
25265 (UNITMODE): Add UNITMODEs for vector types.
25266 (addsub): New code iterator.
25267 * config/mips/mips.opt (mmsa): New option.
25268 * config/mips/msa.h: New file.
25269 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
25271 * config/mips/mti-linux.h: Likewise.
25272 * config/mips/predicates.md
25273 (const_msa_branch_operand): New constraint.
25274 (const_uimm3_operand): Likewise.
25275 (const_uimm4_operand): Likewise.
25276 (const_uimm5_operand): Likewise.
25277 (const_uimm8_operand): Likewise.
25278 (const_imm5_operand): Likewise.
25279 (aq10b_operand): Likewise.
25280 (aq10h_operand): Likewise.
25281 (aq10w_operand): Likewise.
25282 (aq10d_operand): Likewise.
25283 (const_m1_operand): Likewise.
25284 (reg_or_m1_operand): Likewise.
25285 (const_exp_2_operand): Likewise.
25286 (const_exp_4_operand): Likewise.
25287 (const_exp_8_operand): Likewise.
25288 (const_exp_16_operand): Likewise.
25289 (const_vector_same_val_operand): Likewise.
25290 (const_vector_same_simm5_operand): Likewise.
25291 (const_vector_same_uimm5_operand): Likewise.
25292 (const_vector_same_uimm6_operand): Likewise.
25293 (const_vector_same_uimm8_operand): Likewise.
25294 (par_const_vector_shf_set_operand): Likewise.
25295 (reg_or_vector_same_val_operand): Likewise.
25296 (reg_or_vector_same_simm5_operand): Likewise.
25297 (reg_or_vector_same_uimm6_operand): Likewise.
25298 * doc/extend.texi (MIPS SIMD Architecture Functions): New
25300 * doc/invoke.texi (-mmsa): Document new option.
25302 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25304 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
25305 * configure: Regenerate.
25306 * config.in: Regenerate.
25307 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
25308 on -fvtable-verify.
25309 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
25310 (ENDFILE_VTV_SPEC): Define.
25312 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
25314 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
25315 registers in all interrupt handlers if necessary.
25316 (rl78_option_override): Add warning.
25317 (MUST_SAVE_MDUC_REGISTERS): New macro.
25318 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
25319 * config/rl78/rl78.c (check_mduc_usage): New function.
25320 (mduc_regs): New structure to hold MDUC register data.
25321 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
25322 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
25323 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
25324 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
25325 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
25326 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
25328 2016-05-09 Bin Cheng <bin.cheng@arm.com>
25330 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
25331 (tree-ssa-loop-niter.h): Ditto.
25332 (idx_within_array_bound, ref_within_array_bound): New functions.
25333 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
25334 Factor out check on writable base object to ...
25335 (base_object_writable): ... here.
25337 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25339 * config/arm/arm.md (probe_stack): Add modes to set source
25342 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
25344 * regrename.c (base_reg_class_for_rename): New static function.
25345 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
25347 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
25349 * cgraph.c (thunk_adjust): Export.
25350 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
25351 * cgraphunit.c (thunk_adjust): Export.
25352 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
25354 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
25356 * tree-inline.c (expand_call_inline): Expand thunks inline.
25358 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
25361 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
25362 (*sse2_vd_cvtss2sd): Ditto.
25363 * config/i386/i386.md
25364 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
25365 Generate *sse2_vd_cvtsd2ss pattern.
25366 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
25367 Generate *sse2_vd_cvtss2sd pattern.
25369 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25371 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
25372 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
25375 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25377 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
25378 * config/sh/sh.c: Define and declare variables on first use throughout
25380 (current_function_interrupt): Change to bool type.
25381 (frame_insn): Rename to emit_frame_insn and update users.
25382 (push_regs): Use bool for 'interrupt_handler' argument.
25383 (save_schedule_s): Remove.
25384 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
25385 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
25386 targetm.asm_out.unaligned_op.di.
25387 (gen_far_branch): Remove redundant forward declaration.
25388 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
25389 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
25390 (sh_set_return_address, sh_function_ok_for_sibcall,
25391 scavenge_reg): Update comments.
25392 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
25393 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
25394 (sh_attr_renesas_p): Remove unnecessary parentheses.
25395 (branch_dest): Simplify.
25396 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
25397 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
25398 (CUMULATIVE_ARGS): Change macro to typedef.
25399 (current_function_interrupt): Change to bool type.
25400 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
25401 Surround with __cplusplus ifdef.
25402 (sh_compare_op0, sh_compare_op1): Remove.
25403 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
25405 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
25407 * config/arm/arm.md (arch): Add neon.
25408 (arch_enabled): Return yes for arch neon when TARGET_NEON.
25409 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
25410 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
25411 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
25412 attributes for alt renumbering. Mark alt 3 as non-predicable.
25413 (thumb2_movdf_vfp): Likewise.
25415 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
25417 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
25418 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
25419 (*andqi_1): Add preferred_for_speed attribute to disparage
25420 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
25421 (*<code>qi_1): Ditto.
25422 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
25423 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
25424 (*ashlqi3_1): Ditto.
25425 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
25426 Add preferred_for_size attribute to disparage alternative 0 and
25427 preferred_for_speed attribute to disparage alternative 1 for
25428 TARGET_PARTIAL_REG_STALL targets.
25430 2016-05-07 Tom de Vries <tom@codesourcery.com>
25432 PR tree-optimization/70956
25433 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
25436 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25438 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
25439 * config/sh/sh.c (sh_cbranch_distance): Implement it.
25440 * config/sh/sh.md (branch_zero): Remove define_attr.
25441 (define_delay): Disable delay slot if branch distance is one insn.
25443 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25445 * config/i386/i386.md (LEAMODE): New mode attribute.
25446 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
25447 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
25448 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
25449 operand 2 predicate.
25450 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
25451 (*lea<mode>_general_3): Ditto.
25452 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
25454 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25456 * genmddump.c (main): Convert argv from char ** to const char **.
25458 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25460 * coretypes.h (OVERRIDE): New macro.
25461 (FINAL): New macro.
25463 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
25465 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
25466 allow coalescing if the types are compatible.
25468 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25470 * pass_manager.h (pass_manager::register_pass_name): New method.
25471 (pass_manager::get_pass_by_name): New method.
25472 (pass_manager::create_pass_tab): New method.
25473 (pass_manager::m_name_to_pass_map): New field.
25474 * passes.c (name_to_pass_map): Delete global in favor of field
25475 "m_name_to_pass_map" of pass_manager.
25476 (register_pass_name): Rename from a function to...
25477 (pass_manager::register_pass_name): ...this method, updating
25478 for renaming of global "name_to_pass_map" to field
25479 "m_name_to_pass_map".
25480 (create_pass_tab): Rename from a function to...
25481 (pass_manager::create_pass_tab): ...this method, updating
25482 for renaming of global "name_to_pass_map" to field.
25483 (get_pass_by_name): Rename from a function to...
25484 (pass_manager::get_pass_by_name): ...this method.
25485 (enable_disable_pass): Convert use of get_pass_by_name to
25486 a method call, locating the pass_manager singleton.
25488 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25490 * genattr-common.c (main): Convert argv from char ** to const char **.
25491 * genattr.c (main): Likewise.
25492 * genattrtab.c (main): Likewise.
25493 * genautomata.c (initiate_automaton_gen): Likewise.
25495 * gencodes.c (main): Likewise.
25496 * genconditions.c (main): Likewise.
25497 * genconfig.c (main): Likewise.
25498 * genconstants.c (main): Likewise.
25499 * genemit.c (main): Likewise.
25500 * genenums.c (main): Likewise.
25501 * genextract.c (main): Likewise.
25502 * genflags.c (main): Likewise.
25503 * genmddeps.c (main): Likewise.
25504 * genopinit.c (main): Likewise.
25505 * genoutput.c (main): Likewise.
25506 * genpeep.c (main): Likewise.
25507 * genpreds.c (main): Likewise.
25508 * genrecog.c (main): Likewise.
25509 * gensupport.c (init_rtx_reader_args_cb): Likewise.
25510 (init_rtx_reader_args): Likewise.
25511 * gensupport.h (init_rtx_reader_args_cb): Likewise.
25512 (init_rtx_reader_args): Likewise.
25513 * gentarget-def.c (main): Likewise.
25514 * read-md.c (read_md_files): Likewise.
25515 * read-md.h (read_md_files): Likewise.
25517 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25519 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
25520 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
25521 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
25522 Remove unused predicate.
25523 (register_and_not_fp_reg_operand): Ditto.
25525 2016-05-06 Martin Liska <mliska@suse.cz>
25527 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
25528 instead of vec as the vector is local to the function.
25530 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25532 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
25533 avx512bw alternative.
25535 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
25536 before the ashr<mode>3 pattern.
25538 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
25539 v instead of x in vex or maybe_vex alternatives, use
25540 maybe_evex instead of vex in prefix.
25542 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
25543 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
25544 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
25545 in vex or maybe_vex alternatives, use maybe_evex instead of vex
25548 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
25549 v instead of x in vex or maybe_vex alternatives, use
25550 maybe_evex instead of vex in prefix.
25552 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
25553 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
25554 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
25555 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
25556 alternatives, use maybe_evex instead of vex in prefix.
25558 * config/i386/sse.md (vec_interleave_lowv4sf,
25559 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
25560 v instead of x in vex or maybe_vex alternatives, use
25561 maybe_evex instead of vex in prefix.
25563 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
25564 v instead of x in vex or maybe_vex alternatives, use
25565 maybe_evex instead of vex in prefix.
25567 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
25568 v constraint instead of x.
25570 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
25572 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
25573 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
25576 2016-05-06 Richard Biener <rguenther@suse.de>
25578 PR tree-optimization/70948
25579 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25580 Properly clobber all fields of va_list for __builtin_va_start.
25582 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
25585 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
25586 loop latch destination.
25588 2016-05-06 Martin Liska <mliska@suse.cz>
25590 * tree-ssa-uninit.c: Apply manual changes
25591 to the GNU coding style.
25592 (prune_uninit_phi_opnds): Rename from
25593 prune_uninit_phi_opnds_in_unrealizable_paths.
25595 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25597 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
25598 mspace): Remove deprecated options.
25599 * doc/invoke.texi (SH options): Remove -mspace.
25601 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25603 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
25605 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25607 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
25608 corresponding combine split pattern.
25610 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25613 * config/sh/predicates.md (long_displacement_mem_operand): New.
25614 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
25615 Add movi20, movi20s alternatives. Adjust length attribute for
25617 (movsi_ie): Allow for any FPU. Adjust length attribute for
25619 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
25620 attribute for alternatives.
25621 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
25622 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
25623 length attribute for alternatives.
25625 2016-05-06 Richard Biener <rguenther@suse.de>
25627 PR tree-optimization/70960
25628 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
25630 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25633 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
25634 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
25636 2016-05-06 Marek Polacek <polacek@redhat.com>
25639 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
25641 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25644 * config/sh/sh.md (*rotcr): Add another variant.
25646 2016-05-06 Richard Biener <rguenther@suse.de>
25648 PR middle-end/70931
25649 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
25651 2016-05-06 Richard Biener <rguenther@suse.de>
25653 PR middle-end/70941
25654 * fold-const.c (split_tree): Always convert to the original type
25657 2016-05-06 Richard Biener <rguenther@suse.de>
25659 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
25660 (fwprop_addr): Likewise.
25662 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25665 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
25667 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
25668 * config/i386/i386.md (push mem splitter): Use find_constant_src in
25669 the splitter condition.
25670 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
25671 the splitter condition.
25672 (FP float_extend load splitter): Ditto.
25674 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
25676 * config/i386/i386.md (peehole2 patterns): Change true_regnum
25677 to REGNO in all peephole2 patterns.
25678 (post-reload splitters): Change true_regnum to REGNO in
25679 post-reload splitters.
25680 (zero_extend splitters): Use general_reg_operand and
25681 nonimmediate_gr_operand predicates.
25683 2016-05-05 Jakub Jelinek <jakub@redhat.com>
25685 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
25686 v constraint instead of x.
25688 2016-05-05 Alan Modra <amodra@gmail.com>
25691 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
25692 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
25693 TARGET_NO_FP_IN_TOC for -mrelocatable.
25694 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
25695 TARGET_RELOCATABLE test.
25696 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25697 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25698 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25699 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25700 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25701 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25702 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25703 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25704 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
25705 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25707 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
25708 (rs6000_stack_info): Likewise.
25709 (rs6000_elf_asm_out_constructor): Likewise.
25710 (rs6000_elf_asm_out_destructor): Likewise.
25711 (rs6000_elf_declare_function_name): Likewise.
25712 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
25713 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
25716 2016-05-05 Alan Modra <amodra@gmail.com>
25718 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
25720 2016-05-05 Alan Modra <amodra@gmail.com>
25722 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
25723 out-of-line gpr restore for one or two regs if that would add
25726 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
25729 * config/i386/i386.md
25730 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
25731 Change to post-epilogue_completed late splitter. Use sse_reg_operand
25732 as operand 0 predicate.
25733 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
25735 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
25736 Ditto. Emit the pattern using RTX.
25738 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
25739 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
25740 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
25741 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
25743 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
25744 sse_reg_operand as operand 0 predicate.
25746 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
25747 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
25748 instead of gen_rtx_REG.
25749 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
25752 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25754 * function.c (emit_use_return_register_into_block): Delete.
25755 (gen_return_pattern): Delete.
25756 (emit_return_into_block): Delete.
25757 (active_insn_between): Delete.
25758 (convert_jumps_to_returns): Delete.
25759 (emit_return_for_exit): Delete.
25760 (thread_prologue_and_epilogue_insns): Delete all code dealing with
25761 simple_return for shrink-wrapped blocks.
25762 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
25763 end of blocks that need one.
25764 (get_unconverted_simple_return): Delete.
25765 (convert_to_simple_return): Delete.
25766 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
25767 (convert_to_simple_return): Ditto.
25769 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25771 * cfgcleanup.c (bb_is_just_return): New function.
25772 (try_optimize_cfg): Simplify jumps to return, branches to return,
25773 and branches around return.
25775 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25777 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
25778 branch to a return.
25780 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25784 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
25785 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
25786 assert flags & OEP_HASH_CHECK, instead of asserting it
25787 never happens. Handle TARGET_EXPR.
25788 * fold-const.c (operand_equal_p): For hash verification,
25789 or in OEP_HASH_CHECK into flags.
25791 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
25793 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
25795 (compute_samebase_partition_bases): Fix typo.
25797 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25799 * config/i386/sse.md (vec_interleave_highv8sf,
25800 vec_interleave_lowv8sf, vec_interleave_highv4df,
25801 vec_interleave_lowv4df): Remove constraints from expanders.
25803 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
25805 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25807 * tree-inline.c (expand_call_inline): Fix path dealing with
25808 making lhs of call statement undefined.
25810 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25812 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25813 Check availability on NODE, too.
25814 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
25815 (cgraph_node::call_for_symbol_and_aliases): Likewise.
25816 (varpool_node::call_for_symbol_and_aliase): Likewise.
25817 * ipa-pure-const.c (add_new_function): Analyze all bodies.
25818 (propagate_pure_const): Propagate across interposable functions, too.
25819 (skip_function_for_local_pure_const): Do not skip interposable bodies
25821 (pass_local_pure_const::execute): Update.
25823 2016-05-04 Marek Polacek <polacek@redhat.com>
25825 * doc/invoke.texi: Document -Wdangling-else.
25827 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25829 * config.gcc: Error out when conflicting multilib is detected. Do not
25830 loop over multilibs since no combination is legal.
25832 2016-05-04 Alan Modra <amodra@gmail.com>
25834 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
25835 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
25836 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25839 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
25841 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
25842 Clean up p5600 comments.
25844 2016-05-04 Richard Biener <rguenther@suse.de>
25846 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
25847 constructor simplifications.
25848 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
25850 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
25852 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
25853 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
25854 result.set_rtx is null instead of aborting.
25855 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
25857 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
25858 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
25859 *mov<mode>_store_postinc): New patterns.
25861 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
25863 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
25864 as commutative. Check both conversions are NOP.
25865 ((A & B) OP (C & B)): Remove.
25867 2016-05-04 Alan Modra <amodra@gmail.com>
25869 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
25871 2016-05-04 Alan Modra <amodra@gmail.com>
25874 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
25875 when cr2,3,4 are all fixed regs.
25877 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
25879 PR rtl-optimization/57193
25880 * opts.c (default_options_table): Revert OPT_frename_registers change.
25881 * doc/invoke.texi (-frename-registers, -O2): Likewise.
25883 2016-05-03 Martin Sebor <msebor@redhat.com>
25886 * builtins.c (fold_builtin_FILE): New function.
25887 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
25888 (fold_builtin_0): Call them.
25889 * gimplify.c (gimplify_call_expr): Remove the handling of
25890 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
25893 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
25894 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
25898 * doc/extend.texi (Function Names as Strings): Update __func__,
25899 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
25902 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25903 Richard Biener <rguenther@suse.de>
25905 PR tree-optimization/70916
25906 * tree-if-conv.c: Include cfganal.h.
25907 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
25908 and remove_fake_exit_edges around the optimization pass.
25910 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
25912 * cgraph.c (symbol_table::create_edge): Set inline_failed.
25913 (cgraph_edge::make_direct): Likewise.
25914 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
25915 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
25916 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
25917 (CIF_THUNK): New code.
25918 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
25919 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
25920 (compute_inline_parameters): Set inline_failed for thunks.
25921 (inline_analyze_function): Cleanup.
25922 * ipa-inline.c (can_inline_edge_p): Do not deal with
25923 call_stmt_cannot_inline_p.
25924 (can_early_inline_edge_p): Likewise.
25925 (early_inliner): Initialize inline_failed.
25926 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
25928 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
25930 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
25931 from nonimm_ssenomem_operand.
25932 (nonimm_ssenomem_operand): New predicate.
25933 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
25934 as operand 0 predicate.
25935 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
25936 Disable unsupported alternatives using "enabled" attribute.
25937 Use register_ssemem_operand as operand 0 predicate.
25938 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
25940 2016-05-03 Marek Polacek <polacek@redhat.com>
25943 * input.c (expansion_point_location): New function.
25944 * input.h (expansion_point_location): Declare.
25946 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
25948 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
25949 occurence with frame_offset_ ones.
25951 2016-05-03 Alan Modra <amodra@gmail.com>
25953 PR rtl-optimization/70890
25954 * ira.c (combine_and_move_insns): When moving def_insn, remove
25955 equivs on use_insn.
25957 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
25959 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
25960 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
25961 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
25962 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
25964 2016-05-03 Alan Modra <amodra@gmail.com>
25966 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
25967 for SAVE_MULTIPLE/STORE_MULTIPLE.
25969 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25971 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
25972 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
25974 2016-05-03 Richard Biener <rguenther@suse.de>
25976 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
25978 (gimplify_arg): Likewise.
25979 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
25980 re-writing the result to a decl if required.
25981 (internal_get_tmp_var): Add allow_ssa parameter
25982 and override into_ssa with it.
25983 (get_formal_tmp_var): Adjust.
25984 (get_initialized_tmp_var): Add allow_ssa parameter.
25985 (gimplify_arg): Add allow_ssa parameter and avoid generating
25986 SSA names for the result false.
25987 (gimplify_call_expr): If the call may return twice do not
25988 gimplify parameters into SSA.
25989 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
25990 (gimplify_modify_expr): Adjust assert. For noreturn calls
25991 with a SSA name LHS adjust its def.
25992 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
25993 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
25994 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
25995 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
25996 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
25997 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
25998 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
25999 (optimize_target_teams): Do not allow SSA names for clause operands.
26000 (gimplify_expr): Likewise for where we mark the result addressable.
26001 * passes.def (pass_init_datastructures): Remove.
26002 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
26003 (rewrite_stmt): Likewise.
26004 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
26005 (replace_locals_op): Replace SSA names.
26006 (copy_gimple_seq_and_replace_locals): Init src_cfun.
26007 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
26008 * cgraph.c (release_function_body): Free CFG annotations only
26009 when we have a CFG. Simplify.
26010 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
26011 force_gimple_operand instead of get_initialized_tmp_var.
26012 * tree-pass.h (make_pass_init_datastructures): Remove.
26013 * tree-ssa.c (execute_init_datastructures): Remove.
26014 (pass_data_init_datastructures): Likewise.
26015 (class pass_init_datastructures): Likewise.
26016 (make_pass_init_datastructures): Likewise.
26017 * omp-low.c (create_omp_child_function): Init SSA data structures.
26018 (grid_expand_target_grid_body): Likewise.
26019 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
26020 name before adding it to names_to_release.
26021 (remove_bb): Always release SSA defs.
26022 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
26023 before dereferencing it.
26024 * cgraphunit.c (init_lowered_empty_function): Always
26025 int SSA data structures.
26026 * tree-ssanames.c (release_defs): Remove assert that we are in
26028 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
26030 2016-05-03 Jakub Jelinek <jakub@redhat.com>
26031 Uros Bizjak <ubizjak@gmail.com>
26033 PR rtl-optimization/70467
26034 * config/i386/predicates.md (x86_64_hilo_int_operand,
26035 x86_64_hilo_general_operand): New predicates.
26036 * config/i386/constraints.md (Wd): New constraint.
26037 * config/i386/i386.md (mode attr di): Use Wd instead of e.
26038 (general_hilo_operand): New mode attr.
26039 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
26040 instead of <general_operand>.
26041 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
26042 x86_64_hilo_general_operand instead of <general_operand>.
26044 2016-05-03 Jakub Jelinek <jakub@redhat.com>
26046 PR tree-optimization/70916
26047 * tree-if-conv.c (constant_or_ssa_name): Removed.
26048 (fold_build_cond_expr): Use is_gimple_val instead of
26049 constant_or_ssa_name.
26051 PR tree-optimization/70916
26052 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
26053 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
26056 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
26057 (optimize_atomic_bit_test_and): New function.
26058 (pass_fold_builtins::execute): Use it.
26059 * optabs.def (atomic_bit_test_and_set_optab,
26060 atomic_bit_test_and_complement_optab,
26061 atomic_bit_test_and_reset_optab): New optabs.
26062 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
26063 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
26064 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
26065 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
26066 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
26067 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
26068 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
26069 * doc/md.texi (atomic_bit_test_and_set@var{mode},
26070 atomic_bit_test_and_complement@var{mode},
26071 atomic_bit_test_and_reset@var{mode}): Document.
26072 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
26073 atomic_bit_test_and_complement<mode>,
26074 atomic_bit_test_and_reset<mode>): New expanders.
26075 (atomic_bit_test_and_set<mode>_1,
26076 atomic_bit_test_and_complement<mode>_1,
26077 atomic_bit_test_and_reset<mode>_1): New insns.
26079 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
26081 PR rtl-optimization/70687
26082 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
26083 instead of unsigned HOST_WIDE_INT.
26085 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
26087 PR rtl-optimization/44281
26088 * hard-reg-set.h (struct target_hard_regs): New field
26089 x_fixed_nonglobal_reg_set.
26090 (fixed_nonglobal_reg_set): New macro.
26091 * reginfo.c (init_reg_sets_1): Initialize it.
26092 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
26094 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
26096 2016-05-03 Bin Cheng <bin.cheng@arm.com>
26098 PR tree-optimization/56541
26099 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
26100 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
26101 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
26102 (any_complicated_phi): new static variable.
26103 (aggressive_if_conv): delete.
26104 (if_convertible_phi_p): support phis with more than two arguments.
26105 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
26106 critical pred edges.
26107 (ifcvt_split_critical_edges): support phis with more than two
26108 arguments by checking new parameter. only split critical edges
26110 (tree_if_conversion): handle simd pragma marked loop using new
26111 local variable aggressive_if_conv. check any_complicated_phi.
26113 2016-05-03 Bin Cheng <bin.cheng@arm.com>
26115 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
26118 2016-05-03 Bin Cheng <bin.cheng@arm.com>
26120 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
26123 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26125 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
26126 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
26127 define_insn_and_split.
26128 (mulsi3_i): New define_insn_and_split.
26129 (mulsi3_call): Convert to define_insn.
26130 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
26131 Remove constraints.
26133 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26135 * machmode.h (mode_complex): Add support to give the complex mode
26137 (GET_MODE_COMPLEX_MODE): Likewise.
26138 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
26139 stored by build_complex_type and gfc_build_complex_type instead of
26140 trying to figure out the appropriate mode based on the size. Raise
26141 an assertion error, if the type was not set.
26142 * genmodes.c (struct mode_data): Add field for the complex type of
26144 (blank_mode): Likewise.
26145 (make_complex_modes): Remember the complex mode created in the
26147 (emit_mode_complex): Write out the mode_complex array to map a
26148 type mode to the complex version.
26149 (emit_insn_modes_c): Likewise.
26150 * tree.c (build_complex_type): Set the complex type to use before
26151 calling layout_type.
26152 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
26153 support for __float128 complex datatypes.
26154 (rs6000_hard_regno_mode_ok): Likewise.
26155 (rs6000_setup_reg_addr_masks): Likewise.
26156 (rs6000_complex_function_value): Likewise.
26157 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
26158 __float128 and __ibm128 complex.
26159 (FLOAT128_IBM_P): Likewise.
26160 (ALTIVEC_ARG_MAX_RETURN): Likewise.
26161 * doc/extend.texi (Additional Floating Types): Document that
26162 -mfloat128 must be used to enable __float128. Document complex
26163 __float128 and __ibm128 support.
26165 2016-05-02 Jakub Jelinek <jakub@redhat.com>
26168 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
26169 char/short arguments promoted to int because of promote_prototypes.
26171 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
26173 * config/i386/predicates.md (register_ssemem_operand): New predicate.
26174 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
26175 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
26176 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
26177 alternatives using "enabled" attribute. Use register_ssemem_operand
26178 as operand 1 predicate.
26179 (*cmpi<unord>xf_i387): Split XFmode pattern from
26180 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
26181 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
26182 *absneg<mode>2_i387. Disable unsupported alternatives using
26183 "enabled" attribute.
26184 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
26186 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
26188 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
26190 (oacc_loop_process): Check mask for loop termination.
26192 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
26194 * cif-code.def (CIF_THUNK): Add.
26195 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
26198 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
26200 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
26201 (dump_inline_summary): Dump it.
26202 (fp_expression_p): New predicate.
26203 (estimate_function_body_sizes): Use it.
26204 (inline_merge_summary): Merge fp_expressions.
26205 (inline_read_section): Read fp_expressions.
26206 (inline_write_summary): Write fp_expressions.
26207 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
26208 codegen boundary if either caller or callee is !fp_expressions.
26209 * ipa-inline.h (inline_summary): Add fp_expressions.
26210 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
26211 to fp_expressions be sure the fp generation flags are updated.
26213 2016-05-02 Jakub Jelinek <jakub@redhat.com>
26215 PR rtl-optimization/70467
26216 * cse.c (cse_insn): Handle no-op MEM moves after folding.
26218 PR rtl-optimization/70467
26219 * ipa-pure-const.c (check_call): Handle internal calls even in
26220 ipa mode like in local mode.
26222 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
26224 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
26226 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
26228 * match.pd (X u< X, X u> X): New transformations.
26230 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
26232 * flag-types.h (enum warn_strict_overflow_code): Move ...
26233 * coretypes.h: ... here.
26234 * fold-const.h (fold_overflow_warning): Declare.
26235 * fold-const.c (fold_overflow_warning): Make non-static.
26236 (fold_comparison): Move the transformation of X +- C1 CMP C2
26237 into X CMP C2 -+ C1 ...
26238 * match.pd: ... here.
26239 * gimple-fold.c (fold_stmt_1): Protect with
26240 fold_defer_overflow_warnings.
26242 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
26244 * omp-low.c (struct oacc_loop): Add 'inner' field.
26245 (new_oacc_loop_raw): Initialize it to zero.
26246 (oacc_loop_fixed_partitions): Initialize it.
26247 (oacc_loop_auto_partitions): Partition outermost loop to outermost
26248 available partitioning.
26250 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26252 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
26254 (umulsidi3): Likewise.
26255 (indirect_jump): Fix jump instruction assembly patterns.
26257 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
26260 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
26261 (nvptx_function_value): Assert non-NULL cfun.
26263 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
26265 PR rtl-optimization/70886
26266 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
26268 * cselib.h (rtx_equal_for_cselib_1): Declare.
26269 (rtx_equal_for_cselib_p: New inline function.
26270 * cselib.c (rtx_equal_for_cselib_p): Delete.
26271 (rtx_equal_for_cselib_1): Make public.
26273 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
26275 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
26276 (register_mixssei387nonimm_operand): Remove predicate.
26277 * config/i386/i386.md (*fop_<mode>_comm): Merge from
26278 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
26279 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
26280 for TARGET_MIX_SSE_I387 alternatives.
26281 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
26282 Disable unsupported alternatives using "enabled" attribute. Use
26283 nonimm_ssenomem_operand as operand 1 predicate. Also check
26284 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
26286 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26288 * tree.c (cst_and_fits_in_hwi): Simplify.
26290 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26292 * tree.h (wi::to_wide): New function.
26293 * expr.c (expand_expr_real_1): Use wi::to_wide.
26294 * fold-const.c (int_const_binop_1): Likewise.
26295 (extract_muldiv_1): Likewise.
26297 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26299 * wide-int.h: Update offset_int and widest_int documentation.
26300 (WI_SIGNED_SHIFT_RESULT): New macro.
26301 (wi::binary_shift): Define signed_shift_result_type for
26302 shifts on offset_int- and widest_int-like types.
26303 (generic_wide_int): Support <<= and >>= if << and >> are supported.
26304 * tree.h (int_bit_position): Use shift operators instead of wi::
26306 * alias.c (adjust_offset_for_component_ref): Likewise.
26307 * expr.c (get_inner_reference): Likewise.
26308 * fold-const.c (fold_comparison): Likewise.
26309 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
26310 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
26311 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26312 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26313 (stmt_kills_ref_p): Likewise.
26314 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
26315 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
26316 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
26317 (ao_ref_init_from_vn_reference): Likewise.
26319 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26321 * wide-int.h: Update offset_int and widest_int documentation.
26322 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
26323 (wi::binary_traits): Allow ordered comparisons between offset_int and
26324 offset_int, between widest_int and widest_int, and between either
26325 of these types and basic C types.
26326 (operator <, <=, >, >=): Define for the same combinations.
26327 * tree.h (tree_int_cst_lt): Use comparison operators instead
26328 of wi:: comparisons.
26329 (tree_int_cst_le): Likewise.
26330 * gimple-fold.c (fold_array_ctor_reference): Likewise.
26331 (fold_nonarray_ctor_reference): Likewise.
26332 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
26333 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
26334 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
26335 * tree-sra.c (completely_scalarize): Likewise.
26336 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
26337 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
26338 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
26339 (check_for_binary_op_overflow): Likewise.
26340 (search_for_addr_array): Likewise.
26341 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
26343 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26345 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
26346 (arc_save_restore): Likewise.
26347 (arc_dwarf_register_span): Likewise.
26348 (arc_output_pic_addr_const): Initialize suffix variable.
26350 2016-05-02 Martin Liska <mliska@suse.cz>
26352 * symbol-summary.h (function_summary::function_summary):
26353 Remove checking assert for all cgraph nodes.
26354 (function_summary::get): Check summary_uid.
26355 (symtab_insertion): Check summary_uid.
26357 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26359 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
26360 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
26361 bmaskn instruction.
26362 (arc_dwarf_register_span): Remove enum keyword.
26363 (compact_memory_operand_p): New function.
26364 * config/arc/arc.h (reg_class): Add code density register classes.
26365 (REG_CLASS_NAMES): Likewise.
26366 (REG_CLASS_CONTENTS): Likewise.
26367 * config/arc/arc.md (*movqi_insn): Add code density instructions.
26368 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
26369 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
26370 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
26371 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
26373 (h, Rcd, Rsd, Rzd): New register constraints.
26374 (T): Use compact_memory_operand_p function.
26375 * config/arc/predicates.md (compact_load_memory_operand): Remove.
26377 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26379 * config/sh/sh.md (*negnegt, *movtt): Remove.
26381 2016-05-02 Marek Polacek <polacek@redhat.com>
26382 Tom de Vries <tom@codesourcery.com>
26384 PR tree-optimization/70700
26385 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
26386 bigger than FIRST_REF_NODE.
26388 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26391 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
26393 (prepare_cbranch_operands): Don't use scratch register. Assume that
26394 function is used when pseudos can be created.
26395 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
26396 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
26397 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
26398 define_expand. Allow it only when pseudos can be created.
26399 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
26401 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
26403 * config/i386/constraints.md (BC): Only allow -1 operands.
26404 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
26405 Add "enabled" attribute. Update XI mode attribute calculation.
26406 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
26407 (*movoi_internal_avx): Update XI mode attribute calculation.
26408 (*movti_internal): Ditto.
26410 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26412 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
26413 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
26415 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
26417 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
26418 statement on instruction code. Remove trailing spaces.
26419 (altivec_expand_stv_builtin): Likewise.
26421 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26423 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
26424 (TARGET_FPU_DOUBLE): Simplify.
26425 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
26426 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
26427 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
26428 with 'TARGET_FPU_DOUBLE'.
26429 * config/sh/sh.md: Likewise.
26431 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
26433 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
26434 SH_DIV_STR_FOR_SIZE): Remove.
26435 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
26436 SH_DIV_STR_FOR_SIZE): Remove.
26438 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26440 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
26441 logical_reg_operand): Delete.
26442 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
26443 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
26444 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
26445 match_operand and match_test.
26446 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
26447 variables on their first use. Return bool values.
26448 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
26449 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
26450 arith_reg_operand for input operand. Remove empty constraints.
26452 (*xorsi3_compact): Rename to xorsi3.
26453 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
26454 (*zero_extend<mode>si2_disp_mem): Update comment.
26457 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26459 * config/sh/t-sh: Remove SH5 support.
26460 * config.gcc: Likewise.
26461 * configure: Likewise.
26463 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26465 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
26467 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26469 * config/sh/sh.c (register_sh_passes, sh_option_override,
26470 sh_print_operand, prepare_move_operands,
26471 sh_can_follow_jump): Remove TARGET_SH1 checks.
26472 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
26473 PROMOTE_MODE): Likewise.
26474 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
26477 2016-04-30 Alan Modra <amodra@gmail.com>
26479 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
26480 restoring when fixed_reg_p, but allow out-of-line or stmw save.
26481 Check for user regs later to avoid unnecessary looping over regs.
26482 Merge user reg check with non-saved reg check. Don't force
26483 inline VR restore when static chain used.
26484 (rs6000_frame_related): Omit eh_frame info for user regs when
26486 (fixed_regs_p): Delete.
26488 2016-04-30 Alan Modra <amodra@gmail.com>
26490 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
26491 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
26494 2016-04-30 Alan Modra <amodra@gmail.com>
26497 * config/rs6000/rs6000.c (fixed_reg_p): New function.
26498 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
26501 2016-04-30 Alan Modra <amodra@gmail.com>
26503 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
26504 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
26505 flag_pic test for Darwin.
26507 2016-04-30 Alan Modra <amodra@gmail.com>
26509 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
26510 throw_calls_crossed.
26511 (REG_FREQ_CALLS_CROSSED): Delete.
26512 (REG_N_THROWING_CALLS_CROSSED): Delete.
26513 * regstat.c (regstat_bb_compute_ri): Don't calculate
26514 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
26515 (dump_reg_info): Don't print call cross frequency.
26516 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
26517 and REG_N_THROWING_CALLS_CROSSED.
26519 2016-04-30 Alan Modra <amodra@gmail.com>
26521 * regs.h (struct reg_info_t): Delete live_length.
26522 (REG_LIVE_LENGTH): Delete macro.
26523 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
26524 local_live, local_processed and local_live_last_luid params.
26525 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
26527 (regstat_compute_ri): Adjust for above. Don't set
26529 (dump_reg_info): Don't print live length.
26530 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
26531 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
26532 Localize loop_depth var.
26534 2016-04-30 Alan Modra <amodra@gmail.com>
26536 * ira.c (enum valid_equiv): New.
26537 (validate_equiv_mem): Return enum.
26538 (update_equiv_mem): Create replacement in more cases.
26539 (add_store_equivs): Update validate_equiv_mem call.
26541 2016-04-30 Alan Modra <amodra@gmail.com>
26543 * ira.c (combine_and_move_insns): Rather than scanning insns,
26544 use DF infrastucture to find use and def insns.
26546 2016-04-30 Alan Modra <amodra@gmail.com>
26548 ira.c (combine_and_move_insns): Move invariant conditions..
26549 (ira.c): ..to here. Call combine_and_move_insns before
26550 add_store_equivs. Call grow_reg_equivs later. Allocate
26551 req_equiv later using max_reg_num() rather than global max_regno.
26552 (contains_replace_regs): Delete.
26553 (add_store_equivs): Remove contains_replace_regs test.
26555 2016-04-30 Alan Modra <amodra@gmail.com>
26557 * ira.c (struct equiv_mem_data): New.
26558 (equiv_mem, equiv_mem_modified): Delete static vars.
26559 (validate_equiv_mem_from_store): Use "data" param to communicate..
26560 (validate_equiv_mem): ..from here.
26562 2016-04-30 Alan Modra <amodra@gmail.com>
26564 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
26566 (update_reg_equivs): ..here. Move allocation and freeing of
26567 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
26568 end_alias_analysis to..
26571 2016-04-30 Alan Modra <amodra@gmail.com>
26573 * ira.c (pdx_subregs): Delete.
26574 (struct equivalence): Add pdx_subregs field.
26575 (set_paradoxical_subreg): Remove pdx_subregs param. Update
26576 pdx_subregs access.
26577 (update_equiv_regs): Don't create or free pdx_subregs. Update
26578 pdx_subregs access.
26580 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26582 * config/rs6000/altivec.h: Change definitions of vec_xl and
26584 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
26585 (LD_ELEMREV_V2DI): New.
26586 (LD_ELEMREV_V4SF): New.
26587 (LD_ELEMREV_V4SI): New.
26588 (LD_ELEMREV_V8HI): New.
26589 (LD_ELEMREV_V16QI): New.
26590 (ST_ELEMREV_V2DF): New.
26591 (ST_ELEMREV_V2DI): New.
26592 (ST_ELEMREV_V4SF): New.
26593 (ST_ELEMREV_V4SI): New.
26594 (ST_ELEMREV_V8HI): New.
26595 (ST_ELEMREV_V16QI): New.
26598 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26599 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
26600 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
26601 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
26602 (altivec_expand_builtin): Add handling for
26603 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
26604 (rs6000_invalid_builtin): Add error-checking for
26605 RS6000_BTM_P9_VECTOR.
26606 (altivec_init_builtins): Define builtins used to implement vec_xl
26608 (rs6000_builtin_mask_names): Define power9-vector.
26609 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
26610 (RS6000_BTM_P9_VECTOR): Define.
26611 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
26612 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
26613 (vsx_ld_elemrev_v2df): Likewise.
26614 (vsx_ld_elemrev_v4sf): Likewise.
26615 (vsx_ld_elemrev_v4si): Likewise.
26616 (vsx_ld_elemrev_v8hi): Likewise.
26617 (vsx_ld_elemrev_v16qi): Likewise.
26618 (vsx_st_elemrev_v2df): Likewise.
26619 (vsx_st_elemrev_v2di): Likewise.
26620 (vsx_st_elemrev_v4sf): Likewise.
26621 (vsx_st_elemrev_v4si): Likewise.
26622 (vsx_st_elemrev_v8hi): Likewise.
26623 (vsx_st_elemrev_v16qi): Likewise.
26624 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
26627 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
26629 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
26631 (simplify_control_stmt_condition_1): ... here. Recurse into
26632 BIT_AND_EXPRs and BIT_IOR_EXPRs.
26634 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
26637 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
26638 (zero_extendqi<mode>2_dot): Revert earlier conversion from
26639 define_insn_and_split to define_insn.
26640 (zero_extendqi<mode>2_dot2): Same.
26641 (extendqi<mode>2_dot): Same.
26642 (extendqi<mode>2_dot2): Same.
26644 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26646 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
26647 (probe_stack): New expander.
26648 (probe_stack_<mode>): New insn pattern.
26650 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26652 * config/i386/i386.md
26653 (operations with memory inputs setting flags peephole2):
26654 Remove uneeded REG_P checks. Cleanup pattern generation.
26656 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
26658 * tree-vect-loop.c (vect_transform_loop): Fix
26659 nb_iterations_upper_bound computation for vectorized loop.
26661 2016-04-29 Marek Polacek <polacek@redhat.com>
26662 Jakub Jelinek <jakub@redhat.com>
26665 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
26666 TARGET_EXPR_SLOT as a base.
26668 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
26670 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
26671 with 'rCm2' constraints to limit possible immediate size.
26672 (*load_zeroextendqisi_update): Likewise.
26673 (*load_signextendqisi_update): Likewise.
26674 (*loadhi_update): Likewise.
26675 (*load_zeroextendhisi_update): Likewise.
26676 (*load_signextendhisi_update): Likewise.
26677 (*loadsi_update): Likewise.
26678 (*loadsf_update): Likewise.
26680 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26682 * config/i386/predicates.md (constm1_operand): Fix comparison.
26684 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26686 * testsuite/gcc.target/arc/ieee_eq.c: New test.
26688 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
26690 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
26691 remaining SH5 related settings.
26692 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
26693 shmedia_prepare_call_address): Delete.
26694 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
26695 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
26696 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
26697 UNSUPPORTED_SH2A): Remove m5 checks.
26698 (sh_divide_strategy_e): Remove SH5 division strategies.
26699 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
26700 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
26702 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26704 * config/s390/s390.c (s390_rtx_costs): Update documentation.
26706 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26708 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
26709 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
26710 Change lder to ldr.
26711 * config/s390/vector.md ("mov<mode>"): Likewise.
26713 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
26715 * config/s390/constraints.md ("U", "W"): Invoke
26716 s390_mem_constraint with "ZR" and "ZT".
26717 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
26718 addresses when using LRA. Accept also short displacements for S
26719 and T constraints. Do not check for long displacement target for
26720 S and T constraints.
26721 (s390_mem_constraint): Remove handling of U and W constraints.
26722 * config/s390/s390.md (various patterns): Remove the short
26723 displacement constraints (Q and R) if a long displacement
26724 constraint is present. Add longdisp as required CPU capability.
26725 * config/s390/vector.md: Likewise.
26726 * config/s390/vx-builtins.md: Likewise.
26728 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26731 * reload1.c (reload): Call finish_spills before
26732 restarting reload loop. Skip select_reload_regs
26733 if update_eliminables_and_spill returns true.
26735 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26737 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
26738 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
26739 (umulhisi3_imm): Update predicates and constraint letters.
26740 (umulhisi3_reg): Declare instruction as commutative.
26741 * config/arc/constraints.md (J12, J16): New constraints.
26742 * config/arc/predicates.md (short_unsigned_const_operand): New
26744 (arc_short_operand): Likewise.
26745 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
26747 2016-04-29 Richard Biener <rguenther@suse.de>
26749 PR tree-optimization/13962
26750 PR tree-optimization/65686
26751 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
26752 * tree-ssa-alias.c (ptrs_compare_unequal): New function
26753 using PTA to compare pointers.
26754 * match.pd: Add pattern for pointer equality compare simplification
26755 using ptrs_compare_unequal.
26757 2016-04-29 Richard Biener <rguenther@suse.de>
26759 * stor-layout.c (layout_type): Do not build a pointer-to-element
26762 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26764 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
26765 Use SWI mode iterator. Use general_reg_operand predicate.
26766 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
26767 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
26770 2016-04-29 Jakub Jelinek <jakub@redhat.com>
26772 PR middle-end/70843
26773 * fold-const.c (operand_equal_p): Don't verify hash value equality
26775 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
26778 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26781 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
26782 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
26783 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
26784 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
26785 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
26787 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26789 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
26790 to info. Don't initialize separate fields to 0. Clean up
26793 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26795 * config/i386/i386.md (peephole2s for operations with memory inputs):
26796 Use SWI mode iterator.
26797 (peephole2s for operations with memory outputs): Ditto.
26798 Do not check for stack checking probe.
26800 (probe_stack): Remove expander.
26802 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26803 Andrew Burgess <andrew.burgess@embecosm.com>
26805 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
26806 operands as 32-bits.
26808 2016-04-28 Jason Merrill <jason@redhat.com>
26810 * gdbinit.in: Skip line-map.h.
26812 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26813 Andrew Burgess <andrew.burgess@embecosm.com>
26815 * config/arc/arc.c (arc_conditional_register_usage): Take
26816 TARGET_RRQ_CLASS into account.
26817 (arc_print_operand): Support printing 'p' and 's' operands.
26818 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
26820 (TARGET_RRQ_CLASS): Define.
26821 (IS_POWEROF2_OR_0_P): Define.
26822 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
26824 (*tst_movb): New define_insn.
26825 (*tst): Avoid recognition if it could prevent '*tst_movb'
26826 combination; replace c/CnL with c/Chs alternative.
26827 (*tst_bitfield_tst): New define_insn.
26828 (*tst_bitfield_asr): New define_insn.
26829 (*tst_bitfield): New define_insn.
26830 (andsi3_i): Add Rrq variant.
26831 (extzv): New define_expand.
26832 (insv): New define_expand.
26833 (*insv_i): New define_insn.
26834 (*movb): New define_insn.
26835 (*movb_signed): New define_insn.
26836 (*movb_high): New define_insn.
26837 (*movb_high_signed): New define_insn.
26838 (*movb_high_signed + 1): New define_split pattern.
26839 (*mrgb): New define_insn.
26840 (*mrgb + 1): New define_peephole2 pattern.
26841 (*mrgb + 2): New define_peephole2 pattern.
26842 * config/arc/arc.opt (mbitops): New option for nps400, uses
26843 TARGET_NPS_BITOPS_DEFAULT.
26844 * config/arc/constraints.md (q): Make register class conditional.
26845 (Rrq): New register constraint.
26846 (Chs): New constraint.
26847 (Clo): New constraint.
26848 (Chi): New constraint.
26849 (Cbf): New constraint.
26850 (Cbn): New constraint.
26851 (C18): New constraint.
26852 (Cbi): New constraint.
26854 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26856 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
26858 (bitmap_intersection_of_preds): Ditto.
26859 (bitmap_union_of_succs): Ditto.
26860 (bitmap_union_of_preds): Ditto.
26861 * sbitmap.c (do_popcount): Delete.
26862 (BITMAP_DEBUGGING): Delete.
26863 (sbitmap_verify_popcount): Delete.
26864 (sbitmap_alloc): Don't initialize the popcount field.
26865 (sbitmap_alloc_with_popcount): Delete.
26866 (sbitmap_resize): Don't resize the popcount array.
26867 (sbitmap_vector_alloc): Don't initialize the popcount field.
26868 (bitmap_copy): Don't copy the popcount array.
26869 (bitmap_clear): Don't clear the popcount array.
26870 (bitmap_clear): Delete the popcount array handling.
26871 (bitmap_ior_and_compl): Delete the popcount assert.
26872 (bitmap_not): Ditto.
26873 (bitmap_and_compl): Ditto.
26874 (bitmap_and): Delete the popcount array handling.
26875 (bitmap_xor): Ditto.
26876 (bitmap_ior): Ditto.
26877 (bitmap_or_and): Delete the popcount assert.
26878 (bitmap_and_or): Ditto.
26879 (popcount_table): Delete.
26880 (sbitmap_elt_popcount): Delete.
26881 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
26882 (bitmap_set_bit): Delete the popcount assert.
26883 (bitmap_clear_bit): Ditto.
26884 (sbitmap_free): Don't free the popcount array.
26885 (sbitmap_alloc_with_popcount): Delete declaration.
26886 (sbitmap_popcount): Ditto.
26888 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26889 Andrew Burgess <andrew.burgess@embecosm.com>
26891 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
26892 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
26893 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
26894 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
26895 * config/arc/arc.opt (mcmem): New option.
26896 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
26897 supply length for r/m alternative.
26898 (*extendqisi2_ac): Likewise.
26899 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
26901 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
26902 (movhi_insn): Likewise.
26903 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
26904 (*zero_extendqihi2_i): Add r/Ucm alternative.
26905 (*zero_extendqisi2_ac): Likewise.
26906 (*zero_extendhisi2_i): Likewise.
26907 * config/arc/constraints.md (Uex): New memory constraint.
26908 (Ucm): New define_constraint.
26909 * config/arc/predicates.md (long_immediate_loadstore_operand):
26910 Return 0 for MEM with cmem_address address.
26911 (cmem_address_0): New predicates.
26912 (cmem_address_1): Likewise.
26913 (cmem_address_2): Likewise.
26914 (cmem_address): Likewise.
26916 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26918 * config/rs6000/rs6000.c (machine_function): Rename
26919 insn_chain_scanned_p to spe_insn_chain_scanned_p.
26920 (rs6000_stack_info): Adjust.
26922 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26923 Andrew Burgess <andrew.burgess@embecosm.com>
26925 * config/arc/constraints.md (Usd): Convert to define_constraint.
26929 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26932 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
26933 Add new peephole2 where the first insn is *mov<mode>_or instead of
26934 *mov<mode>_internal.
26936 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
26938 * tracer.c (bb_seen): Make static.
26940 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
26942 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
26943 support, setup defaults.
26944 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
26945 * config/arc/arc.c (arc_init): Add NPS400 support.
26946 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
26947 (TARGET_ARC700): NPS400 is also an ARC700.
26948 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
26950 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26953 * config/nds32/nds32.md (casesi): Don't access the operands array
26956 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26958 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
26959 (or $-1,reg peephole2): Ditto.
26960 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
26962 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26964 * doc/extend.texi (Common Function Attributes) [optimize]:
26965 Discourage use of the optimize attribute.
26967 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
26969 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
26970 special case builtin.
26971 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26972 ALTIVEC_BUILTIN_VEC_ADDE.
26973 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
26974 support for ALTIVEC_BUILTIN_VEC_ADDE.
26975 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
26976 for __builtin_vec_adde.
26978 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26980 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
26981 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
26983 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26986 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26987 attributes): Document cilkplus_runtime.
26989 2016-04-28 Martin Jambor <mjambor@suse.cz>
26991 * tree-cfg.c (verify_expr): Verify that local declarations belong to
26992 this function. Call verify_expr on MEM_REFs and bases of other
26993 handled_components.
26995 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26997 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
26998 for WORD_REGISTER_OPERATIONS to runtime check.
27000 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
27002 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
27004 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
27006 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
27007 big-endian compilation.
27008 * config/arc/arc.md (addf3): Likewise.
27009 (subdf3): Likewise.
27010 (muldf3): Likewise.
27012 2016-04-28 Richard Biener <rguenther@suse.de>
27014 PR tree-optimization/70840
27015 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
27016 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
27017 Mark x * pow(x,c) -> pow(x,c+1) commutative.
27018 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
27020 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27022 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
27023 and explain why in a comment.
27025 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
27027 * config/arc/arc.md (cpu_facility): Add fpx variant.
27028 (subdf3): Prohibit use reverse sub when assist operations option
27030 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
27031 instructions only when FPX is enabled.
27032 * testsuite/gcc.target/arc/trsub.c: New test.
27034 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
27036 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
27037 mult_operator when calculating "type" attribute.
27038 (*fop_<mode>_1_i387): Ditto.
27039 (*fop_xf_1_i387): Ditto.
27040 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
27041 Use std::swap to swap operands. Use RTL expressions to generate
27044 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
27045 Joern Rennecke <joern.rennecke@embecosm.com>
27047 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
27049 (emit_pic_move): Remove.
27050 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
27051 * config/arc/arc.c (emit_pic_move): Removed.
27052 (TARGET_HAVE_TLS): Define.
27053 (arc_conditional_register_usage): Test for arc_tp_regno.
27054 (arc_print_operand, arc_print_operand_address): Handle TLS
27056 (arc_needs_pcl_p): New function.
27057 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
27058 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
27059 (arc_raw_symbolic_reference_mentioned_p): Likewise.
27060 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
27061 (arc_legitimize_tls_address): Likewise.
27062 (DTPOFF_ZERO_SYM): Define.
27063 (arc_legitimize_pic_address): Make it static, handle TLS cases.
27064 (arc_output_pic_addr_const): Print TLS unspecs.
27065 (prepare_pic_move): New function, replaces emit_pic_move.
27066 (arc_legitimate_constant_p): Handle TLS unspecs.
27067 (arc_legitimate_address_p): Likewise.
27068 (arc_rewrite_small_data_p): Use assert for TLS constants.
27069 (prepare_move_operands): Use prepare_pic_move.
27070 (arc_legitimize_address): Legitimize tls addresses.
27071 (arc_epilogue_uses): Check for arc_tp_regno.
27072 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
27073 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
27075 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
27077 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
27078 %(arc_tls_extra_start_spec).
27079 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
27080 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
27082 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
27083 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
27084 (UNSPEC_TLS_OFF): Add.
27086 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
27087 (get_thread_pointersi): New patterns.
27088 * config/arc/arc.opt (mtp-regno): New option.
27089 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
27090 (move_dest_operand): Likewise.
27091 * configure: Regenerate.
27092 * configure.ac: Add arc*-*-* case to test for tls.
27093 * doc/invoke.texi (ARC options): Document mtp-regno.
27095 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
27097 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
27098 the new ARC HS SIMD instructions.
27099 (arc_preferred_simd_mode): New function.
27100 (arc_autovectorize_vector_sizes): Likewise.
27101 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
27102 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
27103 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
27104 (arc_init_builtins): Add new SIMD builtin types.
27105 (arc_split_move): Handle 64 bit vector moves.
27106 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
27107 (TARGET_PLUS_QMACW): Define.
27108 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
27109 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
27110 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
27111 (VSUBADD4H): New builtins.
27112 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
27113 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
27115 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
27116 Matthias Klose <doko@debian.org>
27118 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
27120 2016-04-28 Richard Biener <rguenther@suse.de>
27122 PR middle-end/70777
27123 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
27126 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
27128 * common/config/sh/sh-common.c: Remove SH5 support.
27129 * config/sh/constraints.md: Likewise.
27130 * config/sh/config/sh/elf.h: Likewise.
27131 * config/sh/linux.h: Likewise.
27132 * config/sh/netbsd-elf.h: Likewise.
27133 * config/sh/predicates.md: Likewise.
27134 * config/sh/sh-c.c: Likewise.
27135 * config/sh/sh-protos.h: Likewise.
27136 * config/sh/sh.c: Likewise.
27137 * config/sh/sh.h: Likewise.
27138 * config/sh/sh.md: Likewise.
27139 * config/sh/sh.opt: Likewise.
27140 * config/sh/sync.md: Likewise.
27141 * config/sh/sh64.h: Delete.
27142 * config/sh/shmedia.h: Likewise.
27143 * config/sh/shmedia.md: Likewise.
27144 * config/sh/sshmedia.h: Likewise.
27145 * config/sh/t-netbsd-sh5-64: Likewise.
27146 * config/sh/t-sh64: Likewise.
27147 * config/sh/ushmedia.h: Likewise.
27149 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
27151 * config/i386/i386.md (sign_extend to memory peephole2s): Use
27152 general_reg_operand instead of register_operand predicate.
27154 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27156 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
27158 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
27160 * match.pd (A - B > A, A + B < A): New transformations.
27162 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
27164 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
27165 which defaults to true. Emit an outer pair of parentheses only if
27166 EMIT_PARENS. When continuing a chain of && or || (or & or |),
27167 don't emit parentheses for the right-hand operand.
27169 2016-04-27 Jeff Law <law@redhat.com>
27171 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
27173 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27175 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
27176 (altivec_lvx_<mode>_internal): Document.
27177 (altivec_lvx_<mode>_2op): New define_insn.
27178 (altivec_lvx_<mode>_1op): Likewise.
27179 (altivec_lvx_<mode>_2op_si): Likewise.
27180 (altivec_lvx_<mode>_1op_si): Likewise.
27181 (altivec_stvx_<mode>): Remove.
27182 (altivec_stvx_<mode>_internal): Document.
27183 (altivec_stvx_<mode>_2op): New define_insn.
27184 (altivec_stvx_<mode>_1op): Likewise.
27185 (altivec_stvx_<mode>_2op_si): Likewise.
27186 (altivec_stvx_<mode>_1op_si): Likewise.
27187 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27188 Expand vec_ld and vec_st during parsing.
27189 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
27191 (altivec_expand_stvx_be): Likewise.
27192 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
27193 address-masking behavior in RTL.
27194 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
27195 address-masking behavior in RTL.
27196 (altivec_expand_builtin): Change builtin code arguments for calls
27197 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
27198 (insn_is_swappable_p): Avoid incorrect swap optimization in the
27199 presence of lvx/stvx patterns.
27200 (alignment_with_canonical_addr): New function.
27201 (alignment_mask): Likewise.
27202 (find_alignment_op): Likewise.
27203 (recombine_lvx_pattern): Likewise.
27204 (recombine_stvx_pattern): Likewise.
27205 (recombine_lvx_stvx_patterns): Likewise.
27206 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
27207 stvx patterns from expand.
27208 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
27210 (vector_altivec_store_<mode>): Likewise.
27212 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
27214 * config/aarch64/aarch64.md
27215 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
27216 remove the "fp" attributes.
27217 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
27218 add the "simd" attributes.
27219 (*movdf_aarch64): Likewise.
27220 (*movtf_aarch64): Remove the "fp" attributes.
27221 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
27222 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
27224 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27226 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
27227 rtx to rtx_code_label *.
27228 * rtl.h (maybe_set_first_label_num): Likewise.
27230 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27232 * df-core.c (df_add_problem): Make the problem param be const.
27233 (df_remove_problem): Make local "problem" be const.
27234 * df-problems.c (problem_RD): Make const.
27235 (problem_LR): Likewise.
27236 (problem_LIVE): Likewise.
27237 (problem_MIR): Likewise.
27238 (problem_CHAIN): Likewise.
27239 (problem_WORD_LR): Likewise.
27240 (problem_NOTE): Likewise.
27241 (problem_MD): Likewise.
27242 * df-scan.c (problem_SCAN): Likewise.
27243 * df.h (struct df_problem): Make field "dependent_problem" be
27245 (struct dataflow): Likewise for field "problem".
27246 (df_add_problem): Make param const.
27248 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
27250 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
27251 inter-unit moves to/from vector registers are enabled. Do not disable
27254 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27256 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
27257 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
27259 (enum df_problem_id): ...this new enum.
27260 (struct df_problem): Convert field "id" from "int" to
27261 enum df_problem_id.
27263 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27265 * rtl.def: Update comment for "things in the instruction chain" to
27266 reflect the removal of the leading "i" field for INSN_UID in
27267 r210360. Fix bogus apostrophe.
27269 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
27271 * config/i386/i386.md
27272 (lea arith with mem operand + setcc peephole2): Set operator mode.
27274 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
27277 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
27278 (dimode_scalar_to_vector_candidate_p): This.
27279 (timode_scalar_to_vector_candidate_p): New function.
27280 (scalar_to_vector_candidate_p): Likewise.
27281 (timode_check_non_convertible_regs): Likewise.
27282 (timode_remove_non_convertible_regs): Likewise.
27283 (remove_non_convertible_regs): Likewise.
27284 (remove_non_convertible_regs): Renamed to ...
27285 (dimode_remove_non_convertible_regs): This.
27286 (scalar_chain::~scalar_chain): Make it virtual.
27287 (scalar_chain::compute_convert_gain): Make it pure virtual.
27288 (scalar_chain::mark_dual_mode_def): Likewise.
27289 (scalar_chain::convert_insn): Likewise.
27290 (scalar_chain::convert_registers): Likewise.
27291 (scalar_chain::add_to_queue): Make it protected.
27292 (scalar_chain::emit_conversion_insns): Likewise.
27293 (scalar_chain::replace_with_subreg): Likewise.
27294 (scalar_chain::replace_with_subreg_in_insn): Likewise.
27295 (scalar_chain::convert_op): Likewise.
27296 (scalar_chain::convert_reg): Likewise.
27297 (scalar_chain::make_vector_copies): Likewise.
27298 (scalar_chain::convert_registers): New pure virtual function.
27299 (class dimode_scalar_chain): New class.
27300 (class timode_scalar_chain): Likewise.
27301 (scalar_chain::mark_dual_mode_def): Renamed to ...
27302 (dimode_scalar_chain::mark_dual_mode_def): This.
27303 (timode_scalar_chain::mark_dual_mode_def): New function.
27304 (timode_scalar_chain::convert_insn): Likewise.
27305 (dimode_scalar_chain::convert_registers): Likewise.
27306 (scalar_chain::compute_convert_gain): Renamed to ...
27307 (dimode_scalar_chain::compute_convert_gain): This.
27308 (scalar_chain::replace_with_subreg): Renamed to ...
27309 (dimode_scalar_chain::replace_with_subreg): This.
27310 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
27311 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
27312 (scalar_chain::make_vector_copies): Renamed to ...
27313 (dimode_scalar_chain::make_vector_copies): This.
27314 (scalar_chain::convert_reg): Renamed to ...
27315 (dimode_scalar_chain::convert_reg ): This.
27316 (scalar_chain::convert_op): Renamed to ...
27317 (dimode_scalar_chain::convert_op): This.
27318 (scalar_chain::convert_insn): Renamed to ...
27319 (dimode_scalar_chain::convert_insn): This.
27320 (scalar_chain::convert): Call convert_registers.
27321 (convert_scalars_to_vector): Change to scalar_chain pointer to
27322 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
27323 in 32-bit mode. Delete scalar_chain pointer. Call
27324 free_dominance_info in 64-bit mode.
27325 (pass_stv::gate): Remove TARGET_64BIT check.
27326 (ix86_option_override): Put the 64-bit STV pass before the CSE
27329 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
27331 * dwarf2out.h (struct dw_loc_descr_node): Remove the
27332 dw_loc_frame_offset field.
27333 * dwarf2out.c (new_loc_descr): Likewise.
27334 (resolve_args_picking_1): Turn the VISITED hash set into a
27335 FRAME_OFFSET hash map. Use it to associate a frame offset to
27336 visited nodes. Remove uses of the CHECKING_P macro.
27337 (resolve_args_picking): Update call to resolve_args_picking_1.
27339 2016-04-27 Martin Liska <mliska@suse.cz>
27341 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
27342 (free_loop_data): Release vuses of groups.
27344 2016-04-27 Bin Cheng <bin.cheng@arm.com>
27346 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
27347 instead of redundant use_id and boolean have_use_for.
27348 (struct iv_use): Change sub_id into group_id. Remove field next.
27349 Move fields: related_cands, n_map_members, cost_map and selected
27351 (struct iv_group): ... here. New structure.
27352 (struct iv_common_cand): Use structure declaration directly.
27353 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
27354 (MAX_CONSIDERED_USES): Rename macro to ...
27355 (MAX_CONSIDERED_GROUPS): ... here.
27356 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
27357 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
27358 (dump_uses): Rename to ...
27359 (dump_groups): ... here. Update all uses.
27360 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
27361 (find_induction_variables): Refactor format of dump information.
27362 (record_sub_use): Delete.
27363 (record_use): Update all uses.
27364 (record_group): New function.
27365 (record_group_use, find_interesting_uses_op): Call above functions.
27367 (find_interesting_uses_cond): Ditto.
27368 (group_compare_offset): New function.
27369 (split_all_small_groups): Rename to ...
27370 (split_small_address_groups_p): ... here. Update all uses.
27371 (split_address_groups): Update all uses.
27372 (find_interesting_uses): Refactor format of dump information.
27373 (add_candidate_1): Update all uses. Remove redundant check on iv,
27375 (add_candidate, record_common_cand): Remove redundant assert.
27376 (add_iv_candidate_for_biv): Update use.
27377 (add_iv_candidate_derived_from_uses): Update all uses.
27378 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
27379 (alloc_use_cost_map): Ditto.
27380 (set_use_iv_cost, get_use_iv_cost): Rename to ...
27381 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
27382 (determine_use_iv_cost_generic): Ditto.
27383 (determine_group_iv_cost_generic): Ditto.
27384 (determine_use_iv_cost_address): Ditto.
27385 (determine_group_iv_cost_address): Ditto.
27386 (determine_use_iv_cost_condition): Ditto.
27387 (determine_group_iv_cost_cond): Ditto.
27388 (determine_use_iv_cost): Ditto.
27389 (determine_group_iv_cost): Ditto.
27390 (set_autoinc_for_original_candidates): Update all uses.
27391 (find_iv_candidates): Update all uses. Refactor dump information.
27392 (determine_use_iv_costs): Ditto.
27393 (determine_iv_costs): Ditto.
27394 (iv_ca_cand_for_use): Rename to ...
27395 (iv_ca_cand_for_group): ... here. Update all uses.
27396 (iv_ca_add_use, iv_ca_add_group): Ditto.
27397 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
27398 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
27399 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
27400 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
27401 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
27402 (create_new_iv, adjust_iv_update_pos): Ditto.
27403 (rewrite_use_address): Delete.
27404 (rewrite_use_address_1): Rename to ...
27405 (rewrite_use_address): ... here.
27406 (rewrite_use_compare): Update all uses.
27407 (rewrite_use): Delete.
27408 (rewrite_uses): Rename to ...
27409 (rewrite_groups): ... here. Update all uses.
27410 (remove_unused_ivs, free_loop_data): Update all uses.
27411 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
27413 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27415 * rtlanal.c (nonzero_bits1): Convert preprocessor check
27416 for WORD_REGISTER_OPERATIONS to runtime check.
27418 2016-04-27 Richard Biener <rguenther@suse.de>
27421 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
27422 aggregate_value_p to determine if a function result is
27423 returned by reference.
27424 (ipa_pta_execute): Functions having their address taken are
27425 not automatically nonlocal.
27427 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27430 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
27431 * fold-const.c (operand_equal_p): If flag_checking and
27432 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
27433 and if it returns non-zero, assert iterative_hash_expr on both
27436 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27438 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
27440 2016-04-27 Nick Clifton <nickc@redhat.com>
27442 PR middle-end/49889
27443 * varasm.c (merge_weak): Generate an error if an attempt is made
27444 to convert a non-weak static function into a weak, public function.
27446 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27448 * params.def (MAX_PARTITION_SIZE): New param.
27449 * doc/invoke.texi: Document lto-max-partition.
27451 2016-04-27 Richard Biener <rguenther@suse.de>
27454 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
27455 function cummulating used_from_other_partition, externally_visible
27456 and force_output from aliases.
27457 (refered_from_nonlocal_var): Likewise.
27458 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
27459 node flags properly.
27461 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27463 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
27464 (-Wmemset-elt-size): New item.
27466 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
27469 * stor-layout.h (internal_reference_types): Delete.
27470 * stor-layout.c (reference_types_internal): Likewise.
27471 (internal_reference_types): Likewise.
27472 (layout_type) <REFERENCE_TYPE>: Adjust.
27474 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27477 * tree.h (inchash::add_expr): Add FLAGS argument.
27478 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
27479 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
27480 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
27481 Formatting fix. Adjust recursive calls. For tcc_comparison,
27482 if swap_tree_comparison (code) is smaller than code, hash that
27483 and arguments in the other order. Hash CONVERT_EXPR the same
27484 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
27485 of ADDR_EXPR of decl as the decl itself. Add or remove
27486 OEP_ADDRESS_OF from recursive flags as needed. For
27487 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
27488 operands commutatively and only the third one normally.
27489 For internal CALL_EXPR hash in CALL_EXPR_IFN.
27491 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
27493 * config/rtems.h (LIB_SPEC): Add -latomic.
27495 2016-04-27 Joel Sherrill <joel@rtems.org>
27497 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
27498 xilink.ld and flags not relevant to RTEMS.
27500 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27502 * toplev.c (backend_init_target): Avoid calling init_reload when using
27505 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27507 * reorg.c (try_merge_delay_insns): Declare i and j inside the
27508 for loops rather than one for the whole function.
27510 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27512 * match.pd (X + CST CMP X): New transformation.
27514 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27516 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
27517 * fold-const.c (fold_binary_loc): Remove 2 transformations
27518 superseded by match.pd.
27519 * match.pd (x+x -> x*2): Generalize to integers.
27521 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
27523 * config/i386/i386.md (operation on memory peephole): Duplicate an
27524 existing peephole and adapt it to match lea rather than an operation
27527 PR rtl-optimization/57193
27528 * opts.c (default_options_table): Add OPT_frename_registers at -O2
27530 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
27532 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27534 * tree-if-conv.c (any_pred_load_store): New static variable.
27535 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
27536 any_pred_load_store instead of and_mask_load_store.
27537 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
27538 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
27539 (combine_blocks, tree_if_conversion): Ditto.
27541 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27543 PR tree-optimization/70771
27544 PR tree-optimization/70775
27545 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
27546 virtual PHI nodes. Delete parameter.
27547 (if_convertible_loop_p_1): Delete argument to above function.
27548 (predicate_all_scalar_phis): Delete code handling single-argument
27550 (tree_if_conversion): Mark and update virtual SSA.
27552 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27555 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
27556 (x86_elf_aligned_common): Rename to ...
27557 (x86_elf_aligned_decl_common): ... this.
27558 Add decl arg. Switch to .lbss for largecomm object. Use
27559 LARGECOMM_SECTION_ASM_OP.
27560 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
27562 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
27563 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
27565 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27566 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
27568 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27571 * config/i386/i386.c (SECTION_LARGE): Define.
27572 (x86_64_elf_select_section): Set it for large data/bss sections.
27573 Only clear SECTION_WRITE for .lrodata.
27574 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
27576 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
27577 * varasm.c (default_elf_asm_named_section): Grow flagchars.
27578 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
27580 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
27581 * doc/tm.texi: Regenerate.
27583 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27586 * configure.ac (--enable-checking): Document extra flag, for
27587 non-release builds default to --enable-checking=yes,extra.
27588 If misc checking and extra checking, define CHECKING_P to 2 instead
27590 * common.opt (fchecking=): Add.
27591 * doc/invoke.texi (-fchecking=): Document.
27592 * doc/install.texi: Document --enable-checking changes.
27593 * configure: Regenerated.
27594 * config.in: Regenerated.
27596 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27598 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
27599 attribute instead of which_alternative.
27600 * config/i386/sse.md (*mov<mode>_internal): Ditto.
27601 Use EXT_REX_SSE_REG_P where appropriate.
27603 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27605 * config/i386/predicates.md (const0_operand): Do not match
27606 const_wide_int code.
27607 (const1_operand): Ditto.
27609 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27611 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
27612 for SSE constm1 operands and TARGET_AVX512VL.
27613 (*movti_internal): Ditto.
27614 (*mov<mode>_or): Use constm1_operand predicate.
27615 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
27616 for SSE vector_all_ones operands and TARGET_AVX512VL.
27617 * config/i386/predicates.md (constm1_operand): New predicate.
27618 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
27619 emission of constant -1 load.
27621 2016-04-25 Jason Merrill <jason@redhat.com>
27623 * gdbinit.in: Skip is-a.h.
27625 * attribs.c (register_scoped_attributes): Fix logic.
27626 * attribs.h: Declare register_scoped_attributes.
27628 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27630 * config/rs6000/rs6000-builtin.def: Correct pasto error for
27631 stxvd2x and stxvw4x built-in functions.
27633 2016-04-25 DJ Delorie <dj@redhat.com>
27635 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
27636 (ashrhi3): Likewise.
27637 (lshrhi3): Likewise.
27639 2016-04-25 Richard Biener <rguenther@suse.de>
27641 PR tree-optimization/70780
27642 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
27643 wasn't visited yet.
27644 (compute_antic): Mark blocks with abnormal preds as visited as
27645 they have a final empty antic-in solution already.
27647 2016-04-25 Michael Collison <michael.collison@linaro.org>
27649 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
27651 2016-04-25 Michael Collison <michael.collison@linaro.org>
27653 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
27654 mode is VQI to improve mixed mode vectorization.
27655 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
27656 define_insn to match low half of signed vaddw.
27657 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
27658 define_insn to match high half of signed vaddw.
27659 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
27660 define_insn to match low half of unsigned vaddw.
27661 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
27662 define_insn to match high half of unsigned vaddw.
27663 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
27664 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27665 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
27667 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27668 * config/arm/predicates.md (vect_par_constant_high): Support
27669 big endian and simplify by calling
27670 arm_simd_check_vect_par_cnst_half
27671 (vect_par_constant_low): Likewise.
27673 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27675 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
27676 predicate for operand 2.
27678 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
27679 H.J. Lu <hongjiu.lu@intel.com>
27681 * config/i386/i386-protos.h (standard_sse_constant_p): Add
27682 machine_mode argument.
27683 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
27684 constm1_rtx operands. For VOIDmode constants, get mode from
27685 pred_mode. Check mode size if the mode is supported by ABI.
27686 (standard_sse_constant_opcode): Do not use standard_constant_p.
27687 Strictly check ABI support for all-ones operands.
27688 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
27689 immediates. Update calls to standard_sse_constant_p.
27690 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
27691 (ix86_rtx_costs): Ditto.
27692 * config/i386/i386.md (*movxi_internal_avx512f): Use
27693 nonimmediate_or_sse_const_operand instead of vector_move_operand.
27694 Use (v,BC) alternative instead of (v,C). Use register_operand
27695 checks instead of MEM_P.
27696 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
27697 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
27698 isa attribute. Use register_operand checks instead of MEM_P.
27699 (*movti_internal): Use nonimmediate_or_sse_const_operand for
27700 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
27701 alternative and corresponding sse2 isa attribute.
27702 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
27703 to standard_sse_constant_p.
27704 (FP constant splitters): Ditto.
27705 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
27707 * config/i386/predicates.md (constm1_operand): Remove.
27708 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
27709 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
27710 vector_all_ones_operand instead of constm1_operand.
27712 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27714 * print-rtl.c (print_rtx_insn_vec): New function.
27715 * print-rtl.h: New prototype.
27716 * store-motion.c (struct st_expr): Make avail_stores a vector.
27717 (st_expr_entry): Adjust.
27718 (free_st_expr_entry): Likewise.
27719 (print_store_motion_mems): Likewise.
27720 (find_moveable_store): Likewise.
27721 (compute_store_table): Likewise.
27722 (delete_store): Likewise.
27723 (build_store_vectors): Likewise.
27725 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27727 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
27729 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27731 * vec.h (vec_safe_contains): New function.
27732 (vec::contains): Likewise.
27733 (vec::begin): Likewise.
27734 (vec::end): Likewise.
27736 2016-04-23 Jakub Jelinek <jakub@redhat.com>
27739 * cfgexpand.c (expand_stack_vars): Fix typo.
27741 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27743 * system.h (list, map, set, vector): Include conditionally.
27744 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
27745 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
27746 * ipa-icf.c (INCLUDE_LIST): Define.
27747 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
27748 * config/sh/sh.c (INCLUDE_VECTOR): Define.
27749 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
27750 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
27751 * cp/logic.cc (INCLUDE_LIST): Define.
27752 * fortran/trans-common.c (INCLUDE_MAP): Define.
27754 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27756 * auto-profile.c: Remove <string.h> include.
27757 * ipa-icf-gimple.c: Remove <list> include.
27758 * diagnostic.c: Remove <new> include.
27759 * genmatch.c: Likewise.
27760 * pretty-print.c: Likewise.
27761 * toplev.c: Likewise
27762 * c/c-objc-common.c: Likewise.
27763 * cp/error.c: Likewise.
27764 * fortran/error.c: Likewise.
27766 2016-04-22 Richard Biener <rguenther@suse.de>
27768 * lto-streamer-in.c (input_ssa_names): Do not allocate
27769 GIMPLE_NOP for all SSA names.
27770 * lto-streamer-out.c (output_ssa_names): Do not output
27771 SSA names that should have been released.
27773 2016-04-22 Richard Biener <rguenther@suse.de>
27775 PR tree-optimization/70740
27776 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
27779 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
27782 * config/i386/predicates.md (call_insn_operand): Replace
27783 sibcall_memory_operand with memory_operand.
27785 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
27787 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
27788 has_single_use() tests.
27789 (register_edge_assert_for_1): Likewise.
27790 (find_assert_locations_1): Check the liveness bitmap instead of
27791 checking has_single_use().
27793 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
27796 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
27797 Extract AVX-512BW constraint from AVX.
27799 2016-04-21 Richard Biener <rguenther@suse.de>
27801 PR tree-optimization/70725
27802 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
27803 for phi_convertible_by_degenerating_args.
27804 (predicate_all_scalar_phis): Handle single-argument PHIs.
27806 2016-04-21 Richard Biener <rguenther@suse.de>
27808 PR middle-end/70747
27809 * fold-const.c (fold_comparison): Return properly typed
27812 2016-04-21 Bin Cheng <bin.cheng@arm.com>
27814 PR tree-optimization/70715
27815 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
27816 after expanding BASE using expand_simple_operations.
27818 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27820 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
27821 New transformations.
27823 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27825 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
27827 2016-04-20 Jan Hubicka <jh@suse.cz>
27829 * ipa-inline.c (can_inline_edge_p): Pass caller info to
27830 ultiimate_alias_target.
27831 (update_callee_keys): Likewise.
27832 (lookup_recursive_calls): Likewise.
27833 (speculation_useful_p): Likewise.
27835 2016-04-20 Jan Hubicka <jh@suse.cz>
27838 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
27839 (set_nothrow_flag_1): ... this; handle interposition correctly;
27840 recurse on aliases and thunks.
27841 (cgraph_node::set_nothrow_flag): New.
27842 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
27843 functions compiled with non-call exceptions that binds to current
27845 (propagate_nothrow): Be safe WRT interposition.
27846 * cgraph.h (set_nothrow_flag): Update prototype.
27848 2016-04-18 Jan Hubicka <jh@suse.cz>
27850 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27851 max_loop_iterations_int.
27852 (tree_unswitch_outer_loop): Likewise.
27854 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27856 PR tree-optimization/69489
27857 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
27858 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
27859 Revise dump message.
27860 (if_convertible_bb_p): Remove check on edge count of basic block's
27863 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27865 PR tree-optimization/56625
27866 PR tree-optimization/69489
27867 * tree-data-ref.h (DR_INNERMOST): New macro.
27868 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
27869 hashing struct innermost_loop_behavior.
27870 (ref_DR_map): Remove.
27871 (innermost_DR_map): New map.
27872 (baseref_DR_map): Revise comment.
27873 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
27874 to innermost_DR_map accroding to its innermost loop behavior.
27875 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
27876 to its innermost loop behavior.
27877 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
27878 Add initialization for innermost_DR_map. Record memory reference
27879 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
27880 have innermost loop behavior.
27881 (if_convertible_loop_p): Remove release for ref_DR_map. Release
27884 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
27886 * config/i386/i386.md (*lea<mode>_general_1): Rename from
27887 *lea_general_1. Use explicit SWI12 mode interator.
27888 (*lea<mode>_general_2): Rename from *lea_general_2.
27889 Use explicit SWI12 mode interator.
27890 (*lea<mode>_general_3): Rename from *lea_general_3.
27891 Use explicit SWI12 mode interator.
27892 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
27893 Use explicit SWI12 mode interator.
27894 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
27895 Use explicit SWI48 mode interator.
27897 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27899 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
27900 Short-cut unaligned load and store cases. Handle all integer
27902 (ix86_expand_vector_move_misalign): Short-cut unaligned load
27903 and store cases. Call ix86_avx256_split_vector_move_misalign
27904 directly without checking mode class.
27906 2016-04-20 Andrew Pinski <apinski@cavium.com>
27907 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27910 * config/aarch64/aarch64.md (sibcall): Force call
27911 address to be DImode for ILP32.
27912 (sibcall_value): Likewise.
27914 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27916 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
27918 2016-04-20 Richard Biener <rguenther@suse.de>
27920 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
27921 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
27922 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
27923 (maybe_push_res_to_seq): Adjust.
27924 * gimple-fold.c (maybe_build_generic_op): Likewise.
27926 2016-04-20 Marek Polacek <polacek@redhat.com>
27928 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
27931 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
27933 * config/i386/sse.md (vec_unpacks_lo_hi): Always
27934 use kmovw to support AVX512F target.
27936 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27938 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
27940 2016-04-20 Marek Polacek <polacek@redhat.com>
27942 PR tree-optimization/70725
27943 * tree-if-conv.c (is_false_predicate): New function.
27944 (predicate_mem_writes): Use it.
27946 2016-04-20 Richard Biener <rguenther@suse.de>
27948 PR tree-optimization/70726
27949 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
27950 shift amounts from a pattern stmt operand.
27952 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27955 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
27956 stack_restore_from_fpr pattern when restoring r15.
27957 (s390_optimize_prologue): Strip away the memory barrier in the
27958 parallel when trying to get rid of restore insns.
27959 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
27960 definition for loading the stack pointer from an FPR. Compared to
27961 the normal move insn this pattern includes a full memory barrier.
27963 2016-04-19 Jakub Jelinek <jakub@redhat.com>
27965 PR middle-end/70680
27966 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
27967 implicitly linear or lastprivate iterator on the outer context.
27969 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27971 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
27973 * config/i386/i386.md (ssememalign): Removed.
27974 * config/i386/sse.md: Remove ssememalign attribute from patterns.
27976 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27979 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
27980 const short * to __builtin_ia32_loaddquhi512_mask.
27981 (_mm512_maskz_loadu_epi16): Likewise.
27982 (_mm512_mask_storeu_epi16): Pass short * to
27983 __builtin_ia32_storedquhi512_mask.
27984 (_mm512_mask_loadu_epi8): Pass const char * to
27985 __builtin_ia32_loaddquqi512_mask.
27986 (_mm512_maskz_loadu_epi8): Likewise.
27987 (_mm512_mask_storeu_epi8): Pass char * to
27988 __builtin_ia32_storedquqi512_mask.
27989 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
27990 const double * to __builtin_ia32_loadupd512_mask.
27991 (_mm512_mask_loadu_pd): Likewise.
27992 (_mm512_maskz_loadu_pd): Likewise.
27993 (_mm512_storeu_pd): Pass double * to
27994 __builtin_ia32_storeupd512_mask.
27995 (_mm512_mask_storeu_pd): Likewise.
27996 (_mm512_loadu_ps): Pass const float * to
27997 __builtin_ia32_loadups512_mask.
27998 (_mm512_mask_loadu_ps): Likewise.
27999 (_mm512_maskz_loadu_ps): Likewise.
28000 (_mm512_storeu_ps): Pass float * to
28001 __builtin_ia32_storeups512_mask.
28002 (_mm512_mask_storeu_ps): Likewise.
28003 (_mm512_mask_loadu_epi64): Pass const long long * to
28004 __builtin_ia32_loaddqudi512_mask.
28005 (_mm512_maskz_loadu_epi64): Likewise.
28006 (_mm512_mask_storeu_epi64): Pass long long *
28007 to __builtin_ia32_storedqudi512_mask.
28008 (_mm512_loadu_si512): Pass const int * to
28009 __builtin_ia32_loaddqusi512_mask.
28010 (_mm512_mask_loadu_epi32): Likewise.
28011 (_mm512_maskz_loadu_epi32): Likewise.
28012 (_mm512_storeu_si512): Pass int * to
28013 __builtin_ia32_storedqusi512_mask.
28014 (_mm512_mask_storeu_epi32): Likewise.
28015 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
28016 char * to __builtin_ia32_storedquqi256_mask.
28017 (_mm_mask_storeu_epi8): Likewise.
28018 (_mm256_mask_loadu_epi16): Pass const short * to
28019 __builtin_ia32_loaddquhi256_mask.
28020 (_mm256_maskz_loadu_epi16): Likewise.
28021 (_mm_mask_loadu_epi16): Pass const short * to
28022 __builtin_ia32_loaddquhi128_mask.
28023 (_mm_maskz_loadu_epi16): Likewise.
28024 (_mm256_mask_loadu_epi8): Pass const char * to
28025 __builtin_ia32_loaddquqi256_mask.
28026 (_mm256_maskz_loadu_epi8): Likewise.
28027 (_mm_mask_loadu_epi8): Pass const char * to
28028 __builtin_ia32_loaddquqi128_mask.
28029 (_mm_maskz_loadu_epi8): Likewise.
28030 (_mm256_mask_storeu_epi16): Pass short * to.
28031 __builtin_ia32_storedquhi256_mask.
28032 (_mm_mask_storeu_epi16): Pass short * to.
28033 __builtin_ia32_storedquhi128_mask.
28034 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
28035 const double * to __builtin_ia32_loadupd256_mask.
28036 (_mm256_maskz_loadu_pd): Likewise.
28037 (_mm_mask_loadu_pd): Pass onst double * to
28038 __builtin_ia32_loadupd128_mask.
28039 (_mm_maskz_loadu_pd): Likewise.
28040 (_mm256_mask_storeu_pd): Pass double * to
28041 __builtin_ia32_storeupd256_mask.
28042 (_mm_mask_storeu_pd): Pass double * to
28043 __builtin_ia32_storeupd128_mask.
28044 (_mm256_mask_loadu_ps): Pass const float * to
28045 __builtin_ia32_loadups256_mask.
28046 (_mm256_maskz_loadu_ps): Likewise.
28047 (_mm_mask_loadu_ps): Pass const float * to
28048 __builtin_ia32_loadups128_mask.
28049 (_mm_maskz_loadu_ps): Likewise.
28050 (_mm256_mask_storeu_ps): Pass float * to
28051 __builtin_ia32_storeups256_mask.
28052 (_mm_mask_storeu_ps): ass float * to
28053 __builtin_ia32_storeups128_mask.
28054 (_mm256_mask_loadu_epi64): Pass const long long * to
28055 __builtin_ia32_loaddqudi256_mask.
28056 (_mm256_maskz_loadu_epi64): Likewise.
28057 (_mm_mask_loadu_epi64): Pass const long long * to
28058 __builtin_ia32_loaddqudi128_mask.
28059 (_mm_maskz_loadu_epi64): Likewise.
28060 (_mm256_mask_storeu_epi64): Pass long long * to
28061 __builtin_ia32_storedqudi256_mask.
28062 (_mm_mask_storeu_epi64): Pass long long * to
28063 __builtin_ia32_storedqudi128_mask.
28064 (_mm256_mask_loadu_epi32): Pass const int * to
28065 __builtin_ia32_loaddqusi256_mask.
28066 (_mm256_maskz_loadu_epi32): Likewise.
28067 (_mm_mask_loadu_epi32): Pass const int * to
28068 __builtin_ia32_loaddqusi128_mask.
28069 (_mm_maskz_loadu_epi32): Likewise.
28070 (_mm256_mask_storeu_epi32): Pass int * to
28071 __builtin_ia32_storedqusi256_mask.
28072 (_mm_mask_storeu_epi32): Pass int * to
28073 __builtin_ia32_storedqusi128_mask.
28074 * config/i386/i386-builtin-types.def (PCSHORT): New.
28075 (PINT64): Likewise.
28076 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
28077 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
28078 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
28079 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
28080 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
28081 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
28082 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
28083 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
28084 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
28085 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
28086 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
28087 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
28088 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
28089 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
28090 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
28091 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
28092 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
28093 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
28094 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
28095 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
28096 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
28097 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
28098 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
28099 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
28100 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
28101 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
28102 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
28103 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
28104 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
28105 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
28106 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
28107 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
28108 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
28109 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
28110 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
28111 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
28112 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
28113 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
28114 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
28115 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
28116 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
28117 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
28118 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
28119 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
28120 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
28121 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
28122 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
28123 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
28124 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
28126 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
28127 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
28129 (ix86_expand_vector_move_misalign): Likewise.
28130 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
28131 to scalar function prototype for unaligned load/store builtins.
28132 (ix86_expand_special_args_builtin): Updated.
28133 * config/i386/sse.md (UNSPEC_LOADU): Removed.
28134 (UNSPEC_STOREU): Likewise.
28135 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
28136 (VI_ULOADSTORE_F_AVX512VL): Likewise.
28137 (ssescalarsize): Handle V4TI, V2TI and V1TI.
28138 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
28139 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
28140 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
28141 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
28142 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
28143 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
28144 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
28145 (<avx512>_storedqu<mode>_mask): Likewise.
28146 (*sse4_2_pcmpestr_unaligned): Likewise.
28147 (*sse4_2_pcmpistr_unaligned): Likewise.
28148 (*mov<mode>_internal): Renamed to ...
28149 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
28150 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
28151 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
28152 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
28154 2016-04-19 Richard Biener <rguenther@suse.de>
28156 PR tree-optimization/70171
28157 * tree-ssa-phiprop.c: Include stor-layout.h.
28158 (phiprop_insert_phi): Handle the aggregate copy case.
28159 (propagate_with_phi): Likewise.
28161 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
28163 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
28164 instead of simplify_gen_subreg (... , 0).
28165 (ix86_delegitimize_address): Ditto.
28166 (ix86_split_divmod): Ditto.
28167 (ix86_split_copysign_const): Ditto.
28168 (ix86_split_copysign_var): Ditto.
28169 (ix86_expand_args_builtin): Ditto.
28170 (ix86_expand_round_builtin): Ditto.
28171 (ix86_expand_special_args_builtin): Ditto.
28172 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
28173 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
28174 (udivmodqi4): Ditto.
28175 (absneg splitters): Ditto.
28176 (*jcc_bt<mode>_1): Ditto.
28178 2016-04-19 Richard Biener <rguenther@suse.de>
28180 PR tree-optimization/70724
28181 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
28182 restoring out from ...
28183 (free_scc_vn): ... here.
28184 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
28185 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
28187 (pass_fre::execute): Restore SSA info.
28189 2016-04-19 Richard Biener <rguenther@suse.de>
28191 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
28192 * gimple-walk.c (walk_gimple_op): Initialize it.
28193 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
28194 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
28195 remapping SSA names of defs.
28196 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
28199 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
28201 PR middle-end/70689
28202 * lra-constraints.c (equiv_substition_p): New.
28203 (process_alt_operands): Use it.
28204 (swap_operands): Swap it.
28205 (curr_insn_transform): Update it.
28207 2016-04-18 Michael Matz <matz@suse.de>
28209 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
28210 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
28211 * tree-core.h (tree_type_common.align): Use bit-field.
28212 (tree_type_common.spare): New.
28213 (tree_decl_common.off_align): Make smaller.
28214 (tree_decl_common.align): Use bit-field.
28216 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
28217 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
28218 (scan_sharing_clauses): Ditto.
28219 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28220 (omp_finish_file): Ditto.
28221 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
28222 (layout_decl): Ditto.
28223 (relayout_decl): Ditto.
28224 (finalize_record_size): Use SET_TYPE_ALIGN.
28225 (finalize_type_size): Ditto.
28226 (finish_builtin_struct): Ditto.
28227 (layout_type): Ditto.
28228 (initialize_sizetypes): Ditto.
28229 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
28230 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
28231 (lookup_field_for_decl): Use SET_DECL_ALIGN.
28232 (get_chain_field): Ditto.
28233 (get_trampoline_type): Ditto.
28234 (get_nl_goto_field): Ditto.
28235 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
28237 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
28238 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
28239 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28240 (build_qualified_type): Use SET_TYPE_ALIGN.
28241 (build_aligned_type, build_range_type_1): Ditto.
28242 (build_atomic_base): Ditto.
28243 (build_common_tree_nodes): Ditto.
28244 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
28245 (expand_one_stack_var_at): Ditto.
28246 * coverage.c (build_var): Use SET_DECL_ALIGN.
28247 * except.c (init_eh): Ditto.
28248 * function.c (assign_parm_setup_block): Ditto.
28249 * symtab.c (increase_alignment_1): Ditto.
28250 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
28251 * tree-vect-stmts.c (ensure_base_align): Ditto.
28252 * varasm.c (align_variable): Ditto.
28253 (assemble_variable): Ditto.
28254 (build_constant_desc): Ditto.
28255 (output_constant_def_contents): Ditto.
28257 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
28258 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
28259 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
28260 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
28261 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
28263 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
28266 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
28267 replace %vmovsd with "%vmovq".
28268 (vec_concatv2df): Likewise.
28270 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
28272 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
28273 (*vec_extractv2si_0): Ditto.
28274 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
28275 (zero_extended_scalar_load_operand splitters): Ditto.
28276 (vec_extract splitters): Ditto.
28277 (*vec_extractv4si_0_zext): Ditto.
28278 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
28279 and lowpart_subreg.
28280 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
28281 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
28282 (*sse4_1_extractps): Use lowpart_subreg.
28283 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
28285 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28287 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
28289 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
28290 Mention Solaris 11 packaging changes.
28291 Update gas and gld requirements.
28292 Remove reference to pre-Solaris 10 bug.
28293 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
28295 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
28298 2016-04-17 Jan Hubicka <jh@suse.cz>
28300 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
28301 max_loop_iterations_int.
28303 2016-04-18 Richard Biener <rguenther@suse.de>
28305 PR tree-optimization/43434
28306 * tree-ssa-structalias.c (struct vls_data): New.
28307 (visit_loadstore): Handle all pointer-based accesses.
28308 (compute_dependence_clique): Compute a bitmap of restrict tags
28309 assigned bases and pass it to visit_loadstore.
28311 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
28314 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
28315 armv8.1-a and armv8.1-a+crc.
28317 2016-04-18 Richard Biener <rguenther@suse.de>
28319 PR tree-optimization/70701
28320 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
28321 references after translating through a memcpy.
28323 2016-04-18 Richard Biener <rguenther@suse.de>
28325 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
28326 (compute_antic): ... here. For partial antic use regular
28327 postorder and scrap iteration.
28328 (compute_partial_antic_aux): Remove unused return value.
28329 (init_pre): Do not allocate postorder.
28330 (fini_pre): Do not free postorder.
28332 2016-04-18 Richard Biener <rguenther@suse.de>
28334 PR middle-end/37870
28335 * expmed.c (extract_bit_field_1): Remove broken case
28336 using a wider MODE_INT mode.
28338 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
28340 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
28341 unless compiling with at least GCC-4.8.
28343 2016-04-17 Jan Hubicka <jh@suse.cz>
28346 * graphite.c (graphite_finalize): Update call to
28347 tree_estimate_probability.
28348 * predict.h (tree_estimate_probability): Update prototype.
28350 2016-04-17 Jan Hubicka <jh@suse.cz>
28352 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
28353 (tree_estimate_probability): Likewise.
28354 (pass_profile::execute): Update.
28355 (report_predictor_hitrates): New function.
28356 * profile.c (compute_branch_probabilities): Use it.
28357 * predict.h (report_predictor_hitrates): Declare.
28359 2016-04-17 Jan Hubicka <jh@suse.cz>
28362 * cgraph.h (cgraph_node::set_const_flag,
28363 cgraph_node::set_pure_flag): Update prototype to return bool;
28365 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
28366 of interposable symbol are interposable, too.
28367 (cgraph_set_const_flag_1): Rename to ...
28368 (set_const_flag_1): ... this one; change to self recursive function
28369 instead of call_for_symbol_thunks_and_aliases. Handle correctly
28370 clearnig the flag in all variants and also virtual thunks of const
28371 functions are pure; track if any change was done.
28372 (cgraph_node::set_const_flag): Update.
28373 (struct set_pure_flag_info): New struct.
28374 (cgraph_set_pure_flag_1): Rename to ...
28375 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
28376 rather than pointer encoded flags; track if any changes was done;
28377 handle correctly clearning flag and setting flag of aliases already
28379 (cgraph_node::set_pure_flag): Update.
28380 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
28382 2016-04-17 Tom de Vries <tom@codesourcery.com>
28385 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
28386 backslash in label.
28388 2016-04-17 Tom de Vries <tom@codesourcery.com>
28390 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
28391 '{}<> ' as escape-for-record.
28393 2016-04-17 Tom de Vries <tom@codesourcery.com>
28395 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
28398 2016-04-17 Tom de Vries <tom@codesourcery.com>
28401 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
28402 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
28403 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
28404 * passes.c (finish_optimization_passes): Only call
28405 finish_graph_dump_file if dfi->graph_dump_initialized.
28406 (execute_function_dump, pass_init_dump_file): Use
28407 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
28409 2016-04-17 Tom de Vries <tom@codesourcery.com>
28411 PR tree-optimization/70256
28412 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
28413 (debug_varmap): New function.
28415 2016-04-17 Tom de Vries <tom@codesourcery.com>
28418 * passes.c (pass_manager::register_pass): Propagate pflags.
28420 2016-04-17 Tom de Vries <tom@codesourcery.com>
28423 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
28424 * passes.c (pass_manager::pass_manager): Declare and init p_start in
28425 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
28426 check if it's equal to p_start.
28427 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
28429 2016-04-15 Jan Hubicka <jh@suse.cz>
28432 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
28433 function does not bind to current def.
28434 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
28435 handle conservatively calls to functions that does not need to bind
28437 (check_call): Update call of worse_state.
28438 (ignore_edge_for_nothrow): Update.
28439 (ignore_edge_for_pure_const): Likewise.
28440 (propagate_pure_const): Update calls to worse_state.
28441 (skip_function_for_local_pure_const): Reformat comments.
28443 2016-04-15 Jan Hubicka <jh@suse.cz>
28446 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
28447 (cgraph_node::function_symbol): Likewise.
28448 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28449 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
28450 (symtab_node::ultimate_alias_target): Add REF parameter.
28451 (symtab_node::binds_to_current_def_p): Declare.
28452 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
28453 (cgraph_node::function_symbol): Likewise.
28454 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28455 (cgraph_node::get_availability): Likewise.
28456 (cgraph_edge::binds_to_current_def_p): New inline function.
28457 (varpool_node::get_availability): Add REF parameter.
28458 (varpool_node::ultimate_alias_target): Likewise.
28459 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
28460 (symtab_node::binds_to_current_def_p): Likewise.
28461 * varpool.c (varpool_node::get_availability): Likewise.
28463 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28466 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
28467 Fix mode size check.
28469 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28471 * BASE-VER: Set to 7.0.0.
28473 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
28475 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
28477 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28479 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
28480 architecture revisions.
28482 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
28484 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
28485 * config/i386/i386.c (ix86_using_red_zone): No longer static.
28486 * config/i386/i386.md (stack decrement to push peepholes): Guard
28487 with !x86_using_red_zone ().
28489 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28492 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
28493 to dump_generic_node.
28494 (NIY): Pass also flags to do_niy.
28496 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
28498 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
28499 (simd_clone_vector_of_formal_parm_types)
28500 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
28501 (simd_clone_mangle, simd_clone_create)
28502 (simd_clone_adjust_return_type, create_tmp_simd_array)
28503 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
28504 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
28505 (ipa_simd_modify_function_body, simd_clone_linear_addend)
28506 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
28507 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
28508 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
28509 * omp-simd-clone.c: ... this new file.
28510 (simd_clone_vector_of_formal_parm_types): Make it static.
28511 * Makefile.in (OBJS): Add omp-simd-clone.o.
28513 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28516 * config/i386/sse.md: Use proper memory operand modifiers.
28519 2016-04-15 Richard Biener <rguenther@suse.de>
28520 Alan Modra <amodra@gmail.com>
28522 PR tree-optimization/70130
28523 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
28524 when alignment stays not the same and no not use the realign
28527 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28530 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28531 direct move handlers for KFmode. Change TFmode handlers test from
28532 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
28534 2016-04-14 Jakub Jelinek <jakub@redhat.com>
28537 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
28538 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
28539 (inlined_polymorphic_ctor_dtor_block_p): Use it.
28540 * tree-ssa-live.c (remove_unused_scope_block_p): When
28541 in_ctor_dtor_block, avoid discarding not just BLOCKs with
28542 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
28543 block_ultimate_origin is FUNCTION_DECL.
28544 (remove_unused_locals): If current_function_decl is
28545 polymorphic_ctor_dtor_p, pass initial true to
28546 remove_unused_scope_block_p' is_ctor_dtor_block.
28548 2016-04-14 Martin Sebor <msebor@redhat.com>
28553 * doc/extend.texi (Variable Length): Revert.
28555 2016-04-14 Marek Polacek <polacek@redhat.com>
28556 Jan Hubicka <hubicka@ucw.cz>
28559 * tree.c (verify_type): Disable the canonical type of main variant
28562 2016-04-14 Jason Merrill <jason@redhat.com>
28564 * cfgexpand.c, expr.c: Revert previous change.
28566 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
28568 PR middle-end/70643
28569 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
28570 when building a mem ref for the incoming reduction variable.
28572 2016-04-14 Richard Biener <rguenther@suse.de>
28574 PR tree-optimization/70614
28575 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
28576 loop if the evolution dropped to chrec_dont_know.
28577 (interpret_condition_phi): Likewise.
28579 2016-04-14 Richard Biener <rguenther@suse.de>
28581 PR tree-optimization/70623
28582 * tree-ssa-pre.c (changed_blocks): Make global ...
28583 (compute_antic): ... local here. Move and fix worklist
28584 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
28585 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
28586 worklist handling, dump when ANTIC_IN changed.
28587 (compute_partial_antic_aux): Remove worklist handling.
28588 (init_pre): Do not compute post dominators. Add a comment about
28589 the CFG order chosen.
28590 (fini_pre): Do not free post dominators.
28592 2016-04-13 Martin Sebor <msebor@redhat.com>
28597 * doc/extend.texi (Variable Length): Document C++ specifics.
28599 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28602 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
28603 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
28604 eh edges have been purged.
28607 * tree-sra.c (create_access_replacement,
28608 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
28610 * tree-pretty-print.c (dump_fancy_name): New function.
28611 (dump_decl_name, dump_generic_node): Use it.
28613 2016-04-13 Jason Merrill <jason@redhat.com>
28615 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
28616 * expr.c (expand_expr_real_1): Likewise.
28618 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
28620 * config/i386/i386.md (kunpckhi): Swap operands.
28621 (kunpcksi): Likewise.
28622 (kunpckdi): Likewise.
28623 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
28624 (vec_pack_trunc_<mode>): Likewise.
28626 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28629 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
28631 PR middle-end/70633
28632 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
28633 gimplification turns some element into non-constant.
28636 * rtl.h (convert_memory_address_addr_space_1): New prototype.
28637 * explow.c (convert_memory_address_addr_space_1): No longer static,
28638 add NO_EMIT argument and don't call convert_modes if true, pass
28639 it down recursively, remove break after return.
28640 (convert_memory_address_addr_space): Adjust caller.
28641 * simplify-rtx.c (simplify_unary_operation_1): Call
28642 convert_memory_address_addr_space_1 instead of convert_memory_address,
28643 if it returns NULL, don't simplify.
28645 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
28648 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
28650 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28652 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28653 Bump the upper SIMDLEN limits, so that if the return type or
28654 characteristic type if the return type is void can be passed in
28655 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
28658 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28661 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
28662 Do not use "=" constraint on an input constraint.
28663 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
28664 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
28665 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
28666 generates (neg (abs ...)) instead of (abs ...).
28668 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28670 PR rtl-optimization/70596
28671 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
28672 just invalidate LRA data and reset them. Adjust dump wording.
28674 2016-04-12 Martin Liska <mliska@suse.cz>
28677 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28679 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28681 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28682 max_loop_iterations_int.
28683 (tree_unswitch_outer_loop): Likewise.
28684 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28685 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28687 2016-04-12 Tom de Vries <tom@codesourcery.com>
28689 PR tree-optimization/68756
28690 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
28691 instead of new_name.
28693 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28695 PR tree-optimization/70602
28696 * tree-sra.c (generate_subtree_copies): Don't write anything into
28697 constant pool decls.
28699 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
28700 regardless whether there are depend clauses or not.
28702 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28705 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
28706 target attribute and pragma from changing the -mfloat128
28707 and -mfloat128-hardware options.
28709 * doc/extend.texi (Additional Floating Types): Document PowerPC
28710 __float128 restrictions.
28712 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28715 * config/aarch64/driver-aarch64.c
28716 (aarch64_get_extension_string_for_isa_flags): New.
28717 (arch_extension): Rename to...
28718 (aarch64_arch_extension): ...This.
28719 (ext_to_feat_string): Rename to...
28720 (aarch64_extensions): ...This.
28721 (aarch64_core_data): Keep track of architecture extension flags.
28722 (cpu_data): Rename to...
28723 (aarch64_cpu_data): ...This.
28724 (aarch64_arch_driver_info): Keep track of architecture extension
28726 (get_arch_name_from_id): Rename to...
28727 (get_arch_from_id): ...This, change return type.
28728 (host_detect_local_cpu): Update and reformat for renames, handle
28729 extensions through common infrastructure.
28731 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28734 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
28735 track of a canonical flag name.
28736 (all_extensions): Likewise.
28737 (arch_to_arch_name): Also track extension flags enabled by the arch.
28738 (all_architectures): Likewise.
28739 (aarch64_parse_extension): Move to here.
28740 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
28742 (aarch64_rewrite_selected_cpu): Update for above change.
28743 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
28744 are handled, such that the single explicit value enabled by an
28745 extension is kept seperate from the implicit values it also enables.
28746 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
28748 (aarch64_parse_extension): New.
28749 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
28750 here to config/aarch64/aarch64-protos.h.
28751 (aarch64_parse_extension): Move from here to
28752 common/config/aarch64/aarch64-common.c.
28753 (aarch64_option_print): Update.
28754 (aarch64_declare_function_name): Likewise.
28755 (aarch64_start_file): Likewise.
28756 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
28757 the canonical flag for extensions.
28758 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
28761 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28763 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
28766 2016-04-09 Tom de Vries <tom@codesourcery.com>
28768 PR tree-optimization/68953
28769 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
28770 first to last subscript.
28772 2016-04-09 Jakub Jelinek <jakub@redhat.com>
28774 PR tree-optimization/70586
28775 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
28778 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
28782 PR tree-optimization/70373
28783 PR middle-end/70533
28784 PR middle-end/70534
28785 PR middle-end/70535
28786 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
28787 clauses for acc parallel reductions as necessary. Error on those
28789 * omp-low.c (scan_sharing_clauses): Don't install variables which
28790 are used in acc parallel reductions.
28791 (lower_rec_input_clauses): Remove dead code.
28792 (lower_oacc_reductions): Add support for reference reductions.
28793 (lower_reduction_clauses): Remove dead code.
28794 (lower_omp_target): Don't remap variables appearing in acc parallel
28796 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
28798 2016-04-08 Jakub Jelinek <jakub@redhat.com>
28800 PR middle-end/70593
28801 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
28802 with multiple SSA_NAME defs, force the outputs other than first
28803 to be live before calling live_track_process_def on each output.
28805 PR rtl-optimization/70574
28806 * fwprop.c (forward_propagate_and_simplify): Don't add
28807 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
28808 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
28809 paradoxical subregs within *loc.
28811 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
28813 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
28814 -ftree-parallelize-loops={0,1}.
28815 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28816 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28817 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28818 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28819 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28821 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
28824 * asan.c (instrument_derefs): If we get unknown location, extract it
28825 with EXPR_LOCATION.
28826 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
28828 2016-04-08 Tom de Vries <tom@codesourcery.com>
28830 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
28831 implicit firstprivate clause.
28833 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28836 * config/arm/thumb2.md (tst + branch-> lsls + branch
28837 peephole below *orsi_not_shiftsi_si): Require that condition
28838 register is dead after the peephole.
28839 (second peephole after the above): Likewise.
28841 2016-04-08 Alan Modra <amodra@gmail.com>
28844 * builtins.c (fold_builtin_classify): For IBM extended precision,
28845 look at just the high-order double to test for NaN.
28846 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
28847 test just the high double for Inf but both doubles for subnormal
28850 2016-04-07 Jakub Jelinek <jakub@redhat.com>
28852 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
28853 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
28854 node->simdclone->mask_mode != VOIDmode masks.
28855 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
28856 earlier, use it instead of node->simdclone.
28857 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28858 Set clonei->mask_mode.
28860 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28863 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
28864 Pass it through to cp_parser_already_scoped_statement.
28865 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
28866 it through to cp_parser_statement.
28867 (cp_parser_statement): Pass IF_P through to
28868 cp_parser_iteration_statement.
28869 (cp_parser_pragma): Adjust call to
28870 cp_parser_iteration_statement.
28872 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28875 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
28876 resolve a future -Wparentheses warning.
28877 * omp-low.c (scan_sharing_clauses): Likewise.
28878 * tree-parloops.c (eliminate_local_variables): Likewise.
28880 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
28882 PR rtl-optimization/70398
28883 * lra-constraints.c (process_address_1): Check zero scale and code
28884 for reloading with zero scale.
28886 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
28888 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
28889 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
28891 2016-04-06 Jakub Jelinek <jakub@redhat.com>
28893 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28894 Add support for AVX512F clones, include them by default for
28895 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
28896 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
28899 PR middle-end/70550
28900 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
28901 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
28902 firstprivate clauses.
28903 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
28904 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
28905 (lower_omp_target): Set TREE_NO_WARNING for
28906 non-addressable possibly uninitialized vars which are copied into
28907 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
28909 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
28911 * config/pa/predicates.md (integer_store_memory_operand): Accept
28912 REG+D operands with a large offset when reload_in_progress is true.
28913 (floating_point_store_memory_operand): Likewise.
28915 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28918 * match.pd (nested int casts): Limit to GIMPLE.
28920 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
28923 * ipa-devirt.c (maybe_record_node): Fix comment; use
28924 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
28926 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28928 PR rtl-optimization/70542
28929 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
28930 if there are any uses other than insn or debug insns.
28932 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
28933 Jakub Jelinek <jakub@redhat.com>
28935 PR tree-optimization/70509
28936 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
28937 Shift HOST_WIDE_INT_1U instead of 1.
28939 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
28941 PR tree-optimization/70509
28942 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
28943 of the vector base type for index.
28945 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
28948 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
28950 2016-04-05 Richard Biener <rguenther@suse.de>
28952 PR tree-optimization/70526
28953 * tree-sra.c (build_ref_for_offset): Use prev_base to
28954 extract the alias pointer type.
28956 2016-04-05 Richard Biener <rguenther@suse.de>
28958 * dse.c (struct store_info): Remove alias_set member.
28959 (struct read_info_type): Likewise.
28960 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
28961 spill_deleted, clear_alias_set_lookup): Remove.
28962 (get_group_info): Remove dead base == NULL_RTX case.
28963 (dse_step0): Remove initialization of removed variables.
28964 (delete_dead_store_insn): Reomve alias set dumping.
28965 (free_read_records): Remove alias_set handling.
28966 (canon_address): Remove alias_set_out parameter.
28967 (record_store): Remove spill_alias_set, it's always zero.
28968 (check_mem_read_rtx): Likewise.
28969 (dse_step2): Rename from ...
28970 (dse_step2_nospill): ... this. Adjust.
28971 (scan_stores): Rename from ...
28972 (scan_stores_nospill): ... this.
28973 (scan_reads): Rename from ...
28974 (scan_reads_nospill): ... this.
28975 (scan_stores_spill, scan_reads_spill): Remove.
28976 (dse_step3_scan): Remove for_spills argument which is always false.
28977 (dse_step3): Likewise.
28978 (dse_step5): Rename from ...
28979 (dse_step5_nospill): ... this. Remove alias_set handling.
28980 (rest_of_handle_dse): Adjust.
28982 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28985 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
28986 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
28987 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
28988 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
28990 2016-04-05 Richard Biener <rguenther@suse.de>
28992 PR middle-end/70499
28993 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
28994 non-register type temporaries into SSA.
28996 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
28999 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
29000 calls when sanitizing.
29001 (possible_polymorphic_call_target_p): Fix formatting.
29003 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29004 Jakub Jelinek <jakub@redhat.com>
29006 PR middle-end/70457
29007 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
29008 to ensure a call statement is compatible with a built-in's
29010 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
29013 2016-04-04 Richard Biener <rguenther@suse.de>
29015 PR rtl-optimization/70484
29016 * rtl.h (canon_output_dependence): Declare.
29017 * alias.c (canon_output_dependence): New function.
29018 * dse.c (record_store): Use canon_output_dependence rather
29019 than canon_true_dependence.
29021 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
29024 * cgraph.h (symtab_node::copy_visibility_from): New function.
29025 * symtab.c (symtab_node::copy_visibility_from): New function.
29026 * ipa-visibility.c (optimize_weakref): New function.
29027 (function_and_variable_visibility): Use it.
29029 2016-04-04 Martin Liska <mliska@suse.cz>
29032 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
29033 value that is really in range handled by SBR instruction.
29034 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
29035 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
29036 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
29038 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
29042 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
29043 set, but not for SP_REG operands.
29045 2016-04-02 Martin Sebor <msebor@redhat.com>
29048 * fold-const.c (maybe_nonzero_address): New function.
29049 (fold_comparison): Call it. Fold equality and relational
29050 expressions involving null pointers.
29051 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
29053 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
29055 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
29056 the "Y" constraint (scalar FP 0.0 immediate).
29058 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
29059 Add the "const_double" to the list of operand constraints.
29061 2016-04-01 Jakub Jelinek <jakub@redhat.com>
29063 PR rtl-optimization/70467
29064 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
29065 If low word of the last operand is 0, just emit addition/subtraction
29068 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29071 * config/s390/s390.c (s390_expand_insv): Check for everything
29072 constant instead of just VOIDmode stuff.
29074 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29077 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
29079 2016-04-01 Nathan Sidwell <nathan@acm.org>
29081 * tree.def (TRY_CATCH_EXPR): Correct documentation.
29083 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
29085 PR rtl-optimization/70461
29086 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
29089 2016-03-31 Martin Liska <mliska@suse.cz>
29092 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
29093 a tree value or an immediate integer value to a buffer
29094 that is eventually copied to a BRIG section.
29095 (emit_immediate_operand): Call the function here.
29096 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
29097 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
29098 of class' fields that are removed.
29099 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
29100 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
29101 m_brig_repr_size fields.
29103 2016-03-31 Martin Liska <mliska@suse.cz>
29106 * hsa-gen.c (hsa_function_representation::update_dominance): New
29108 (convert_addr_to_flat_segment): Likewise.
29109 (gen_hsa_memory_set): New alignment argument.
29110 (gen_hsa_ctor_assignment): Likewise.
29111 (gen_hsa_insns_for_single_assignment): Provide alignment
29112 to gen_hsa_ctor_assignment.
29113 (gen_hsa_insns_for_direct_call): Add new argument.
29114 (expand_lhs_of_string_op): New function.
29115 (expand_string_operation_builtin): Likewise.
29116 (expand_memory_copy): New function.
29117 (expand_memory_set): New function.
29118 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
29119 (convert_switch_statements): Change signature.
29120 (generate_hsa): Use a return value of the function.
29121 (pass_gen_hsail::execute): Do not call
29122 convert_switch_statements here.
29123 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
29124 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
29125 (hsa_function_representation::update_dominance): New function.
29127 2016-03-31 Martin Liska <mliska@suse.cz>
29130 * hsa-brig.c (emit_directive_variable): Emit alignment
29131 according to hsa_symbol::m_align.
29132 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
29133 (dump_hsa_symbol): Dump alignment of HSA symbols.
29134 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
29135 (gen_hsa_addr_with_align): New function.
29136 (hsa_bitmemref_alignment): Use newly added function.
29137 (gen_hsa_insns_for_load): Likewise.
29138 (gen_hsa_insns_for_store): Likewise.
29139 (gen_hsa_memory_copy): New argument added.
29140 (gen_hsa_insns_for_single_assignment): Respect
29141 alignment for assignments processed via gen_hsa_memory_copy.
29142 (gen_hsa_insns_for_direct_call): Likewise.
29143 (gen_hsa_insns_for_return): Likewise.
29144 (gen_function_def_parameters): Set default alignment.
29145 * hsa.c (hsa_object_alignment): New function.
29146 (hsa_byte_alignment): Pasted function.
29147 * hsa.h (hsa_symbol::m_align): New field.
29149 2016-03-31 Bin Cheng <bin.cheng@arm.com>
29151 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
29152 scratch field for goto case.
29154 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
29156 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
29158 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
29161 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
29162 (scalar_chain::convert_insn): Call convert_op for reg
29163 moves to handle undefined registers.
29165 2016-03-31 Nathan Sidwell <nathan@acm.org>
29168 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
29169 Assert we don't want to move backwards.
29171 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
29174 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
29176 2016-03-31 Jakub Jelinek <jakub@redhat.com>
29178 PR rtl-optimization/70460
29179 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
29180 with operand from REG_LABEL_OPERAND, instead substitute
29181 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
29182 Don't do anything for REG_NON_LOCAL_GOTO jumps.
29184 2016-03-31 Martin Liska <mliska@suse.cz>
29186 * passes.c (execute_one_pass): Do not call
29187 todo_after for a discarded function.
29189 2016-03-31 Bin Cheng <bin.cheng@arm.com>
29191 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
29192 (no_cost, infinite_cost): Initialize the new field.
29193 (get_computation_cost_at): Record setup cost.
29194 (determine_use_iv_cost_address): Skip cost computation for sub
29195 uses if we can estimate it without losing accuracy.
29197 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
29199 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
29201 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
29202 max_loop_iterations_int.
29203 (tree_unswitch_outer_loop): Likewise.
29204 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
29205 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
29207 2016-03-30 Richard Biener <rguenther@suse.de>
29209 PR middle-end/70450
29210 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
29212 2016-03-30 Jakub Jelinek <jakub@redhat.com>
29215 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
29216 in gen_blendm expander.
29218 2016-03-30 Nick Clifton <nickc@redhat.com>
29221 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
29222 case where we are already provided with an SImode SUBREG.
29224 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
29227 * config/i386/i386.c (ix86_expand_epilogue): Properly check
29228 conflict between DRAP register and __builtin_eh_return.
29230 2016-03-30 Michael Matz <matz@suse.de>
29231 Richard Biener <rguenther@suse.de>
29234 * ipa-polymorphic-call.c (struct type_change_info): Change
29235 speculative to an unsigned allowing to limit the work we do.
29236 (csftc_abort_walking_p): New inline function..
29237 (check_stmt_for_type_change): Limit the number of may-defs
29238 skipped for speculative devirtualization to
29239 max-speculative-devirt-maydefs.
29240 * params.def (max-speculative-devirt-maydefs): New param.
29241 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
29243 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
29246 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
29249 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
29251 PR tree-optimization/59124
29252 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
29253 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
29255 2016-03-29 Jeff Law <law@redhat.com>
29257 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
29259 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29261 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
29264 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
29266 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
29267 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
29268 gcrt0.o if linking dynamically.
29270 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29273 * ipa-devirt.c (methods_equal_p): New function.
29274 (compare_virtual_tables): Use it.
29275 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
29276 * cgraphclones.c (clone_function_name_1): Use
29277 symbol_table::symbol_suffix_separator.
29278 * coverage.c (build_var): Likewise.
29279 * symtab.c (symbol_table::symbol_suffix_separator): New.
29281 2016-03-29 Jakub Jelinek <jakub@redhat.com>
29283 PR rtl-optimization/70429
29284 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
29285 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
29286 mode != result_mode.
29289 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
29291 PR tree-optimization/70405
29292 * ssa-iterators.h (num_imm_uses): Add missing braces.
29294 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
29296 PR rtl-optimization/68695
29297 * ira-color.c (allocno_copy_cost_saving): New.
29298 (improve_allocation): Use it.
29300 2016-03-29 Richard Henderson <rth@redhat.com>
29302 PR middle-end/70355
29303 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
29305 2016-03-29 Richard Biener <rguenther@suse.de>
29307 PR middle-end/70424
29308 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
29309 use alignment returned by get_pointer_alignment_1 if it is
29310 bigger than BITS_PER_UNIT.
29311 * builtins.c (get_pointer_alignment_1): Do not return true
29312 for alignment extracted from SSA info.
29314 2016-03-28 James Bowman <james.bowman@ftdichip.com>
29316 * config/ft32/ft32.opt (mnodiv): New.
29317 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
29318 * doc/invoke.texi (FT32 Options -mnodiv): New.
29320 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
29323 * config/i386/i386.md (define_split, andn): Fix modes.
29325 2016-03-26 Richard Biener <rguenther@suse.de>
29326 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29329 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
29331 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
29332 as 2nd argument to cl_optimization_restore().
29334 2016-03-25 Richard Henderson <rth@redhat.com>
29337 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
29338 * config/aarch64/aarch64-protos.h: Declare it.
29339 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
29341 2016-03-25 Alan Modra <amodra@gmail.com>
29344 * config/rs6000/constraints.md (j): Simplify.
29345 * config/rs6000/predicates.md (easy_fp_constant): Exclude
29347 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
29348 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
29349 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
29350 in all constraint alternatives.
29351 (movtd_64bit_nodm): Delete "j" constraint alternative.
29353 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29355 * tree-ssa-propagate.c: Enhance docs for
29356 SSA_PROP_NOT_INTERESTING.
29358 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29360 * doc/extend.texi: Fix typo in documentation to pure attribute.
29362 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
29365 * config/pa/pa.md (bswapdi2): Use a scratch register.
29367 2016-03-24 Richard Henderson <rth@redhat.com>
29369 PR middle-end/69845
29370 * fold-const.c (extract_muldiv_1): Correct test for multiplication
29373 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
29375 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
29376 using ix86_expand_binary_operator instead of gen_andsi3.
29378 2016-03-24 Richard Biener <rguenther@suse.de>
29380 PR tree-optimization/70396
29381 * tree-vect-stmts.c (vectorizable_comparison): Use
29382 get_vectype_for_scalar_type.
29384 2016-03-24 Richard Biener <rguenther@suse.de>
29386 PR middle-end/70370
29387 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
29388 with register bases.
29390 2016-03-24 Richard Biener <rguenther@suse.de>
29392 PR tree-optimization/70372
29393 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
29394 build_all_ones_cst to also handle vector types correctly.
29396 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29399 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
29402 2016-03-23 Marek Polacek <polacek@redhat.com>
29405 * doc/invoke.texi: Document -Wignored-attributes.
29407 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29409 PR tree-optimization/69042
29410 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
29411 parameter from 30 to 40.
29413 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29415 PR tree-optimization/69042
29416 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
29417 for use with constant offset stripped in base.
29419 2016-03-23 Richard Biener <rguenther@suse.de>
29421 PR middle-end/70251
29422 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
29423 mode compatibility check.
29424 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29426 2016-03-23 Jeff Law <law@redhat.com>
29428 PR tree-optimization/64058
29429 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
29431 (struct ssa_conflicts): Move up earlier in the file.
29432 (conflicts_, var_map_): New static variables.
29433 (initialize_conflict_count): New function to initialize the
29434 CONFLICT_COUNT field for each conflict pair.
29435 (compare_pairs): Lazily initialize the conflict count and use it
29436 as the first tie-breaker.
29437 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
29438 and wipe conflicts_ and map_ around the call to qsort. Remove
29439 special case for 2 coalesce pairs.
29440 * bitmap.c (bitmap_count_unique_bits): New function.
29441 (bitmap_count_bits_in_word): New function, extracted from
29443 (bitmap_count_bits): Use bitmap_count_bits_in_word.
29444 * bitmap.h (bitmap_count_unique_bits): Declare it.
29446 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
29449 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
29450 transparent alias chain for decl assembler name.
29451 * config/sol2.c (solaris_assemble_visibility): Likewise.
29453 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29455 * config/arm/arm1020e.md (1020call_op): Reduce reservation
29457 (v10_fdivs): Likewise.
29458 (v10_fdivd): Likewise.
29460 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29463 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
29464 to not call fclose twice on file.
29466 2016-03-23 Jakub Jelinek <jakub@redhat.com>
29468 PR tree-optimization/70354
29469 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29470 oprnd0 is wider than oprnd1 and there is a cast from the wider
29471 type to oprnd1, mask it with the mask of the narrower type.
29474 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
29475 Optimize TARGET_STV splitters, if high or low word of last argument
29478 2016-03-22 Jeff Law <law@redhat.com>
29481 tree-ssa-threadbackward.c
29482 (fsm_find_control_statement_thread_paths): Correctly distinguish
29483 between old style jump threads vs FSM jump threads.
29485 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
29488 * config/i386/i386.c (scalar_chain::convert_op): Support
29489 uninitialized register usage case.
29491 2016-03-22 Richard Biener <rguenther@suse.de>
29493 PR middle-end/70251
29494 * genmatch.c (gen_transform): Adjust last parameter to a three-state
29496 (capture::gen_transform): ... to change behavior when substituting
29497 a condition into cond or not-cond expr context.
29498 (dt_simplify::gen_1): Adjust.
29499 * gimple-match-head.c: Include gimplify.h for unshare_expr.
29500 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
29501 last change and instead change to
29502 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
29503 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29505 2016-03-22 Anthony Green <green@moxielogic.com>
29507 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
29508 issue for moxiebox targets.
29509 (CC1PLUS_SPEC): Ditto.
29511 2016-03-22 Richard Biener <rguenther@suse.de>
29513 PR middle-end/70333
29514 * fold-const.c (extract_muldiv_1): Properly perform multiplication
29517 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29519 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
29521 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29524 * config/i386/i386.c (def_builtin): Handle
29525 OPTION_MASK_ISA_AVX512VL to be and-ed with other
29527 (const struct builtin_description bdesc_special_args[]):
29528 Remove duplicate ISA bits.
29530 2016-03-22 Jakub Jelinek <jakub@redhat.com>
29533 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
29534 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
29535 in a way that works also for AVX512BW.
29538 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
29539 instead of source if operands[1] is xmm16 and above and
29540 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
29541 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
29544 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
29545 on assign if (*from_p) is a comparison, set it to
29546 TREE_NO_WARNING (*from_p).
29548 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29550 PR middle-end/70326
29551 * lra.c (restore_scratches): Ignore deleted insns.
29553 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
29554 Jakub Jelinek <jakub@redhat.com>
29556 PR tree-optimization/70317
29557 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
29560 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
29563 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
29564 of ix86_expand_move.
29566 (movti): Use general_operand for operand 1 predicate.
29568 2016-03-21 Martin Liska <mliska@suse.cz>
29570 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
29572 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
29574 2016-03-21 Martin Liska <mliska@suse.cz>
29577 * ipa-icf.c (sem_function::parse): Skip static
29578 constructors and destructors.
29580 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29583 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
29584 function-like macro, peek following token(s) if it is followed
29585 by CPP_OPEN_PAREN token with optional padding in between, and
29586 if not, don't treat it like a macro.
29588 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
29589 Alexander Monakov <amonakov@ispras.ru>
29591 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
29592 for the stabs debug format.
29594 2016-03-21 Richard Biener <rguenther@suse.de>
29596 PR tree-optimization/70310
29597 * tree-vect-generic.c (expand_vector_condition): Fold the built
29600 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
29603 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
29604 Block third alternative for AVX-512VL target,
29606 2016-03-21 Martin Liska <mliska@suse.cz>
29609 * hsa-brig.c (emit_function_directives): Mark unemitted
29610 global variables for emission.
29611 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
29612 (get_symbol_for_decl): Likewise.
29613 * hsa.h (struct hsa_symbol): New flag.
29615 2016-03-21 Richard Biener <rguenther@suse.de>
29617 PR tree-optimization/70288
29618 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
29619 we do not estimate unsimplified all-constant conditionals or
29620 switches as optimized away.
29622 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
29624 PR rtl-optimization/69102
29625 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
29626 when we have a readonly dependency context.
29628 2016-03-18 Jeff Law <law@redhat.com>
29630 PR rtl-optimization/70263
29631 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
29632 (update_equiv_regs): When trying to move a store to after the insn
29633 that sets the source of the store, make sure the store occurs after
29634 the insn that sets the source of the store. When successful note
29635 the REG_EQUIV note created in the dump file.
29637 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
29638 Bernd Schmidt <bschmidt@redhat.com>
29640 * doc/extend.texi: Document more potential problems with basic asms.
29642 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
29644 PR rtl-optimization/70278
29645 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
29648 2016-03-18 Jason Merrill <jason@redhat.com>
29650 * calls.c (load_register_parameters): Fix zero size sibcall logic.
29652 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
29654 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
29655 values to 128b regs.
29657 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
29659 PR tree-optimization/70252
29660 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
29661 boolean vector has a proper number of elements.
29662 (supportable_narrowing_operation): Likewise.
29664 2016-03-18 Tom de Vries <tom@codesourcery.com>
29667 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
29669 2016-03-18 Jakub Jelinek <jakub@redhat.com>
29671 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
29672 instead of replace_rtx for DEBUG_INSNs.
29674 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29676 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
29677 load type reservations.
29679 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
29682 * config/pa/constraints.md: Revert 2015-02-13 change. Use
29683 define_constraint for "Q" and "T" constraints.
29685 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
29687 Tweak the pipeline model for Exynos M1
29689 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
29692 2016-03-17 David Malcolm <dmalcolm@redhat.com>
29695 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
29696 where one or both locations aren't within a line_map.
29698 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
29701 * opts.c (finish_options): Don't set flag_pie to the default if
29702 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
29705 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
29707 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
29708 true as ALL_REGS argument to replace_rtx.
29710 2016-03-17 Richard Biener <rguenther@suse.de>
29713 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
29716 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29719 * rtl.h (replace_rtx): Add ALL_REGS argument.
29720 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
29721 equality and assert mode is the same, instead of just rtx pointer
29723 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
29724 true as ALL_REGS argument to replace_rtx.
29726 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
29728 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
29729 for boolean vector with vector mode only.
29730 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29732 2016-03-17 Nick Clifton <nickc@redhat.com>
29735 * config/rx/rx.c (rx_print_integer): Print negative constants in
29738 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29741 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
29743 2016-03-16 Richard Henderson <rth@redhat.com>
29744 Richard Biener <rguenth@suse.de>
29746 PR middle-end/70240
29747 PR middle-end/68215
29749 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
29750 first operand as is_gimple_condexpr.
29752 PR middle-end/70240
29753 PR middle-end/68215
29755 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
29756 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
29757 Do not gimplify the result.
29758 (do_unop): Adjust call to tree_vec_extract.
29759 (do_binop): Likewise.
29760 (do_compare): Likewise.
29761 (do_plus_minus): Likewise.
29762 (do_negate): Likewise.
29763 (expand_vector_condition): Likewise.
29764 (do_cond): Likewise.
29766 2016-03-16 Richard Henderson <rth@redhat.com>
29769 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
29770 (aarch64_classify_address): Use it.
29771 (aarch64_legitimize_address): Force all subexpressions of PLUS
29772 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
29774 2016-03-16 Jakub Jelinek <jakub@redhat.com>
29775 Richard Biener <rguenth@suse.de>
29778 * rtlanal.c (replace_rtx): For REG, if from is a REG,
29779 return to even if only REGNO is equal, and assert
29782 2016-03-11 Jeff Law <law@redhat.com>
29784 PR rtl-optimization/70224
29785 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
29787 2016-03-16 Richard Henderson <rth@redhat.com>
29789 PR middle-end/70199
29790 * function.h (struct function): Add has_forced_label_in_static.
29791 * gimplify.c (force_labels_r): Set it.
29792 * lto-streamer-in.c (input_struct_function_base): Read it.
29793 * lto-streamer-out.c (output_struct_function_base): Write it.
29794 * tree-inline.c (has_label_address_in_static_1): Remove.
29795 (copy_forbidden): Remove fndecl parameter; test
29796 has_forced_label_in_static.
29797 (inline_forbidden_p): Update call to copy_forbidden.
29798 (tree_versionable_function_p): Likewise.
29799 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
29800 (chkp_versioning): Likewise.
29801 * tree-inline.h (copy_forbidden): Update decl.
29803 2016-03-16 Marek Polacek <polacek@redhat.com>
29806 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
29807 function being thunked if the result type doesn't have fixed size.
29808 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
29809 doesn't have fixed size.
29811 2016-03-16 Bin Cheng <bin.cheng@arm.com>
29813 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
29814 reporting malformed loop nest.
29816 2016-03-16 Tom de Vries <tom@codesourcery.com>
29819 * ipa-devirt.c (possible_polymorphic_call_targets): Move
29820 nodes.length () == 1 test to before first nodes[0] access.
29822 2016-03-16 Tom de Vries <tom@codesourcery.com>
29824 PR tree-optimization/68715
29825 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
29826 single_pred_p test.
29828 2016-03-16 Tom de Vries <tom@codesourcery.com>
29830 PR tree-optimization/68809
29831 * graphite-scop-detection.c (same_close_phi_node): Test if result types
29834 2016-03-16 Carlos O'Donell <carlos@redhat.com>
29835 Sandra Loosemore <sandra@codesourcery.com>
29837 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
29838 on leaf attribute. Mention ELF interposition problems.
29840 2016-03-16 Alan Modra <amodra@gmail.com>
29842 PR rtl-optimization/69195
29843 PR rtl-optimization/47992
29844 * ira.c (indirect_jump_optimize): Ignore artificial defs.
29847 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
29850 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
29852 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29854 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
29856 2016-03-15 Jakub Jelinek <jakub@redhat.com>
29858 PR rtl-optimization/70222
29859 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
29860 optimization if mode is different from result_mode, queue up masking
29861 of the result in outer_op. Formatting fix.
29863 PR middle-end/70239
29864 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
29867 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29869 PR rtl-optimization/69032
29870 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
29871 looping backwards over basic block insns.
29873 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29876 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
29877 to non-speculative when propagating trap bits.
29879 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29881 PR rtl-optimization/63384
29882 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
29883 DEBUG_INSN_P insns.
29885 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29888 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
29889 factored out from ...
29890 (sched_analyze_insn): ... here.
29891 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
29892 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
29893 get_implicit_reg_pending_clobbers in it.
29894 (setup_id_reg_sets): Use setup_id_implicit_regs.
29895 (deps_init_id): Ditto.
29897 2016-03-15 Tom de Vries <tom@codesourcery.com>
29900 * cgraph.c (cgraph_node::get_body): Save, reset and restore
29902 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
29903 execute_function_dump.
29904 (execute_one_pass): Don't dump function if it will be dumped after ipa
29907 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29909 * genrecog.c (match_pattern_2): If pred is NULL don't call
29910 safe_predicate_mode on it.
29912 2016-03-14 Jakub Jelinek <jakub@redhat.com>
29914 PR middle-end/70219
29915 * lra-constraints.c (delete_move_and_clobber): Change assertion
29916 to also allow dregno == 0.
29918 2016-03-14 Richard Henderson <rth@redhat.com>
29921 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
29922 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
29923 (reassociate_bb): Use optimize_vec_cond_expr; avoid
29924 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
29927 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
29930 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
29932 (lra_create_live_ranges_1): initialize hard register biggest_mode to
29934 * lra-constraints.c (split_reg): For hard regs, try to find the
29935 biggest single-register mode used in the function.
29937 2016-03-14 Richard Biener <rguenther@suse.de>
29939 PR tree-optimization/56365
29940 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
29941 constants to compare against.
29943 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
29946 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
29947 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
29948 (define_split for the GPR case): Use int_reg_operand instead of
29949 gpc_reg_operand for the output.
29951 2016-03-14 Tom de Vries <tom@codesourcery.com>
29953 PR tree-optimization/70045
29954 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
29955 create_empty_if_region_on_edge argument.
29957 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
29959 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
29960 (STACK_CHECK_PROTECT): Likewise.
29961 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29962 (STACK_CHECK_PROTECT): Likewise.
29963 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29964 (STACK_CHECK_PROTECT): Likewise.
29965 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
29966 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
29967 (STACK_CHECK_PROTECT): Likewise.
29969 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
29971 PR rtl-optimization/69307
29972 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
29973 registers in modes that span more than one register.
29975 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
29978 * lra-constraints.c (delete_move_and_clobber): New.
29979 (remove_inheritance_pseudos): Use it.
29981 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
29984 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
29985 the libcall is LCT_THROW.
29986 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
29987 for the checking routine.
29989 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29992 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
29993 optimization if we have direct move.
29994 (roundu32<mode>2_fprs): Likewise.
29996 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
29999 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
30001 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
30002 Arguments swapped. All callers changed. Take reg_renumber into
30003 account, and Calculate and compare register ranges for hard regs.
30005 2016-03-11 Jeff Law <law@redhat.com>
30007 PR tree-optimization/70190
30008 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30009 Handle cases where we can not extract the taken edge, even though we
30010 found a constant value.
30012 PR tree-optimization/64058
30013 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
30014 (num_coalesce_pairs): Move up earlier in file.
30015 (find_coalesce_pair): Initialize the INDEX field for each pair
30017 (compare_pairs): No longer sort on the elements in each pair.
30018 Instead break ties with the index of the coalesce pair.
30020 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30023 * config/aarch64/aarch64-protos.h
30024 (aarch64_save_restore_target_globals): New prototype.
30025 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
30026 Call the above when popping pragma.
30027 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
30029 (aarch64_set_current_function): Rewrite using the above.
30031 2016-03-11 Jakub Jelinek <jakub@redhat.com>
30033 PR tree-optimization/70177
30034 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
30035 (extract_ops_from_tree): ... this. In the 2 argument
30036 overload remove _1 suffix.
30037 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
30038 (extract_ops_from_tree): ... this.
30039 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
30041 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
30042 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
30043 extract_ops_from_tree instead of 2 operand one.
30045 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
30047 PR tree-optimization/70013
30048 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
30049 for constant-pool entries.
30051 2016-03-11 Jakub Jelinek <jakub@redhat.com>
30053 PR rtl-optimization/70174
30054 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
30055 followed by gen_lowpart on force_reg instead of just gen_lowpart.
30057 PR tree-optimization/70169
30058 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
30059 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
30062 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
30063 Jakub Jelinek <jakub@redhat.com>
30066 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
30067 of uninitialized values.
30069 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30071 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
30073 ("*trunctddd2"): New pattern definition.
30074 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
30077 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30079 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
30080 definitions for BFP and DFP rounding modes.
30081 ("fixuns_truncdddi2", "fixuns_trunctddi2")
30082 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
30083 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
30084 ("fix_trunctf<mode>2"): Use the new constants instead of magic
30087 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30089 * config/s390/constraints.md: Adjust comment.
30090 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
30091 s390_decompose_addrstyle_without_index.
30092 * config/s390/predicates.md (shift_count_or_setmem_operand):
30093 Rename to setmem_operand.
30094 * config/s390/s390-protos.h
30095 (s390_decompose_shift_count): Rename to
30096 s390_decompose_addrstyle_without_index.
30097 * config/s390/s390.c (s390_decompose_shift_count)
30098 (s390_mem_constraint, print_shift_count_operand)
30099 (print_operand_address, print_operand): Rename
30100 s390_decompose_shift_count to
30101 s390_decompose_addrstyle_without_index and rename
30102 print_shift_count_operand to print_addrstyle_operand troughout the
30104 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
30105 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
30106 Rename shift_count_or_setmem_operand to setmem_operand.
30107 * config/s390/vx-builtins.md ("vec_insert<mode>")
30108 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
30111 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30114 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
30115 Handle overlapping retval and newval.
30117 2016-03-10 Nick Clifton <nickc@redhat.com>
30120 * config/aarch64/aarch64.c
30121 (aarch64_override_options_after_change_1): When forcing
30122 flag_omit_frame_pointer to be true, use a special value that can
30123 be detected if this function is called again, thus preventing
30124 flag_omit_leaf_frame_pointer from being forced to be false.
30126 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30128 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
30129 Set x_flag_omit_leaf_frame_pointer when handling
30130 -momit-leaf-frame-pointer.
30132 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30135 * cgraph.c (cgraph_node::dump): Dump split_part and
30136 indirect_call_target.
30137 * cgraph.h (cgraph_node): Add indirect_call_target flag.
30138 * ipa.c (has_addr_references_p): Cleanup.
30139 (is_indirect_call_target_p): New.
30140 (walk_polymorphic_call_targets): Do not mark virtuals that may be
30141 called indirectly as local.
30142 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
30144 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30147 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30148 on cxa_pure_virtual.
30150 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30153 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
30155 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30158 * tree.c (need_assembler_name_p): Only record main variant type names.
30160 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
30163 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
30164 Always define to 0 or 1.
30165 (TARGET_FIX_ERR_A53_843419): New macro.
30166 * config/aarch64/aarch64-elf-raw.h
30167 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
30168 * config/aarch64/aarch64-linux.h: Likewise.
30169 * config/aarch64/aarch64.c
30170 (aarch64_override_options_after_change_1): Do not default
30171 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
30173 (aarch64_attributes): Handle fix-cortex-a53-843419.
30174 (aarch64_can_inline_p): Likewise.
30175 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
30177 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
30178 Jakub Jelinek <jakub@redhat.com>
30180 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
30181 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
30182 DECL_COMMONS if flag_unconstrained_commons is set.
30183 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30184 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
30185 (funconstrained-commons): Document.
30187 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
30189 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
30190 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
30192 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
30194 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
30195 has a proper number of elements.
30197 2016-03-10 Alan Modra <amodra@gmail.com>
30199 PR rtl-optimization/69195
30200 PR rtl-optimization/47992
30201 * ira.c (recorded_label_ref): Delete.
30202 (update_equiv_regs): Return void.
30203 (indirect_jump_optimize): New function.
30204 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
30205 before regstat_compute_ri. Don't rebuild_jump_labels here.
30206 Delete update_regstat.
30208 2016-03-10 Richard Biener <rguenther@suse.de>
30210 PR tree-optimization/70128
30211 * tree-ssa-structalias.c (set_uids_in_ptset): Set
30212 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
30214 2016-03-09 Jakub Jelinek <jakub@redhat.com>
30216 PR tree-optimization/70152
30217 * tree-sra.c (replace_removed_params_ssa_names): Copy over
30218 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
30221 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
30222 instead of gen_sse2_loadlpd.
30223 * config/i386/sse.md (*vec_concatv2df): Rename to...
30224 (vec_concatv2df): ... this.
30226 PR tree-optimization/70127
30227 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
30229 2016-03-09 David Malcolm <dmalcolm@redhat.com>
30233 * diagnostic-show-locus.c (compatible_locations_p): New function.
30234 (layout::layout): Sanitize ranges using compatible_locations_p.
30236 2016-03-09 David Malcolm <dmalcolm@redhat.com>
30240 * diagnostic-show-locus.c (layout_range::layout_range): Replace
30241 location_range param with three const expanded_locations * and a
30243 (layout::layout): Replace call to
30244 rich_location::lazily_expand_location with get_expanded_location.
30245 Extract the range and perform location expansion here, passing
30246 the results to the layout_range ctor.
30247 * diagnostic.c (source_range::debug): Delete.
30248 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
30249 of rich_location::get_expanded_location.
30250 * gcc-rich-location.c (get_range_for_expr): Delete.
30251 (gcc_rich_location::add_expr): Reimplement to avoid the
30252 rich_location::add_range overload that took a location_range,
30253 passing a location_t instead.
30255 2016-03-09 Richard Biener <rguenther@suse.de>
30256 Jakub Jelinek <jakub@redhat.com>
30258 PR tree-optimization/70138
30259 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
30260 Also skip vect_double_reduction_def.
30262 2016-03-09 Jakub Jelinek <jakub@redhat.com>
30265 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
30266 if the operand is "m".
30268 2016-03-09 Nathan Sidwell <nathan@acm.org>
30270 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
30272 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30274 * config/i386/i386.c (processor_target_table): Fix cost table
30275 intialization order for znver1.
30277 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30279 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
30280 - becuase -> because.
30281 * ipa-reference.c (ignore_module_statics): Likewise.
30282 * cgraph.c (cgraph_node::get_body): Likewise.
30283 * ipa-inline.c (early_inliner): Likewise.
30284 * ipa-devirt.c (types_same_for_odr): Likewise.
30285 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
30286 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
30288 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30290 * tree-ssa-math-opts.c: Fix typo in comment.
30292 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30295 * config/i386/i386.c (scalar_chain::make_vector_copies,
30296 scalar_chain::convert_reg): Call end_sequence in between
30297 get_insns and emit_conversion_insns rather than after both
30300 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
30303 * config/i386/i386.h (machine_function): Add
30304 pc_thunk_call_expanded flag.
30305 (ix86_pc_thunk_call_expanded): New define.
30306 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
30307 (*set_got): Rename insn pattern from set_got.
30308 (*set_got_labelled): Rename inst pattern from set_got_labelled.
30309 * config/i386/i386.c (ix86_compute_frame_layout): Use
30310 ix86_pc_thunk_call_expanded to prevent red-zone.
30312 2016-03-07 Martin Jambor <mjambor@suse.cz>
30314 * hsa.h (hsa_get_ctor_statements): Declare.
30315 (hsa_get_dtor_statements): Likewise.
30316 (hsa_get_kernel_dispatch_type): Likewise.
30317 * hsa.c (hsa_get_ctor_statements): New function.
30318 (hsa_get_dtor_statements): Likewise.
30319 (hsa_get_kernel_dispatch_type): Likewise.
30320 * hsa-brig.c (hsa_cdtor_statements): Removed.
30321 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
30322 hsa_get_dtor_statements.
30323 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
30324 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
30326 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
30328 * config/arm/arm-cores.def (cortex-r8): New.
30329 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
30330 * config/arm/arm-tune.md: Likewise.
30331 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
30333 2016-03-07 Martin Sebor <msebor@redhat.com>
30335 PR rtl-optimization/19705
30336 * doc/invoke.texi (Options That Control Optimization): Clarify
30337 -fno-branch-count-reg.
30339 2016-02-26 Richard Biener <rguenther@suse.de>
30340 Jeff Law <law@redhat.com>
30342 PR tree-optimization/69740
30343 * cfghooks.c (remove_edge): Request loop fixups if we delete
30344 an edge that might turn an irreducible loop into a natural
30346 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
30347 Move after definition of loops_state_clear.
30349 2016-03-07 Bin Cheng <bin.cheng@arm.com>
30351 PR rtl-optimization/69052
30352 * rtlanal.c (commutative_operand_precedence): Set higher precedence
30355 2016-03-07 Tom de Vries <tom@codesourcery.com>
30357 PR tree-optimization/70116
30358 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
30359 is_tm_ending stmts and ubsan/asan internal functions.
30360 (find_duplicate): Use it. Don't test is_tm_ending here.
30362 2016-03-07 Richard Biener <rguenther@suse.de>
30364 PR tree-optimization/70115
30365 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
30366 (propagate_constants_for_unrolling): Use replace_uses_by.
30368 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
30370 PR middle-end/69916
30371 * omp-low.c (struct oacc_loop): Add ifns.
30372 (new_oacc_loop_raw): Initialize it.
30373 (finish_oacc_loop): Clear mask & flags if no ifns.
30374 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
30375 (oacc_loop_xform_loop): Add ifns arg & adjust.
30376 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
30378 2016-03-07 Richard Henderson <rth@redhat.com>
30381 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
30382 (insert_value_copy_on_edge): Likewise.
30384 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30386 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
30388 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30391 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
30393 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30395 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
30397 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30399 Fix sseimul type attribute.
30400 * config/i386/znver1.md
30401 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
30402 znver1_sseimul_avx256_load) : Fix the type attribute.
30403 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
30404 pipe usage and latency.
30406 2016-03-05 Jakub Jelinek <jakub@redhat.com>
30409 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
30410 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
30413 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30416 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
30418 PR rtl-optimization/69941
30419 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
30420 the reg share its mode.
30422 2016-03-04 Jeff Law <law@redhat.com>
30424 PR tree-optimization/69196
30425 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30426 If the both SSA_NAMEs are anonymous, then consider them unassociated
30427 and include the PHI in the statement count.
30429 2016-03-05 Tom de Vries <tom@codesourcery.com>
30431 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
30432 construct in oacc routine. Check for oacc region in oacc routine.
30434 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30437 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
30438 2016-02-22 changes, instead don't recurse if RECUR is already true.
30439 Don't change *dynamic_check if RECUR. Adjust recursive caller
30440 to pass true to the new argument.
30441 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
30444 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
30445 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
30447 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
30449 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30451 PR rtl-optimization/57676
30452 * lra-assigns.c (lra_assign): Guard test for maximum iterations
30453 with flag_checking.
30455 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
30457 * tree-vect-patterns.c (search_type_for_mask): Handle
30458 comparison of booleans.
30460 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30462 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
30466 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
30467 all other ops that have dw_val_class_die_ref operands,
30468 and DW_OP_GNU_entry_value.
30470 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30472 PR rtl-optimization/69904
30473 * config/arm/arm.c (arm_cannot_copy_insn_p):
30474 Return true for load-exclusive instructions.
30476 2016-03-03 Jakub Jelinek <jakub@redhat.com>
30479 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
30480 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
30481 the pattern no matter if it is used just by non-pattern, pattern
30483 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
30484 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
30485 oprnd1 def_stmt is in pattern, don't look through it.
30487 2016-03-03 Marek Polacek <polacek@redhat.com>
30489 PR middle-end/70050
30490 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
30492 2016-03-03 Martin Liska <mliska@suse.cz>
30494 PR tree-optimization/70043
30495 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
30496 previous statement if we see a debug statement.
30498 2016-03-03 Richard Biener <rguenther@suse.de>
30500 PR tree-optimization/55936
30501 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
30502 parameter and guard unsafe equivalence use.
30503 (vrp_evaluate_conditional_warnv_with_ops): Always use
30504 safe equivalences but not via the quadratic compare_names
30507 2016-03-03 Michael Collison <michael.collison@linaro.org>
30510 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
30511 for operand 1 to s_register_operand. Change predicate for operand
30512 2 to arm_not_immediate_operand.
30514 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
30516 * doc/tm.texi: Regenerated.
30518 2016-03-02 Richard Henderson <rth@redhat.com>
30521 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
30522 simplification when all args are positive non-fixed registers.
30524 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30526 * target.def (lra_p): Specify that new ports should use LRA.
30528 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30531 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
30532 gimplify_type_sizes the type they refer to.
30533 (omp_notice_variable): Handle reference vars to VLAs.
30534 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
30535 reference to VLA decls in the second pass instead of first pass.
30537 2016-03-02 Tom de Vries <tom@codesourcery.com>
30539 PR tree-optimization/68659
30540 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
30541 new_expr == NULL_TREE.
30542 (get_new_name): Handle ADDR_EXPR.
30544 2016-03-02 Bin Cheng <bin.cheng@arm.com>
30546 PR rtl-optimization/69052
30547 * loop-invariant.c (canonicalize_address): New function.
30548 (inv_can_prop_to_addr_use): Check validity of address expression
30549 which is canonicalized by above function.
30551 2016-03-02 Alan Modra <amodra@gmail.com>
30554 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
30557 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30560 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
30561 (*movhi_internal): Put mask moves from and to memory separately
30562 from moves from/to GPRs.
30564 2016-03-02 Richard Biener <rguenther@suse.de>
30566 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
30567 GENERIC expressions in GIMPLE.
30569 2016-03-02 Richard Biener <rguenther@suse.de>
30571 * config/i386/i386.c (type_natural_mode): Fix typo.
30573 2016-03-02 Nick Clifton <nickc@redhat.com>
30575 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
30577 2016-03-02 Richard Biener <rguenther@suse.de>
30578 Uros Bizjak <ubizjak@gmail.com>
30581 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
30583 2016-03-02 Richard Biener <rguenther@suse.de>
30585 PR middle-end/67278
30586 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
30588 2016-03-02 Marek Polacek <polacek@redhat.com>
30591 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
30592 "is promoted to" warning.
30594 2016-03-01 DJ Delorie <dj@redhat.com>
30596 * config.gcc: Deprecate mep-*.
30598 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
30600 PR middle-end/70025
30601 * lra-constraints.c (regno_val_use_in): New.
30602 (match_reload): Use it instead of regno_use_in.
30604 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30606 PR rtl-optimization/70007
30607 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
30608 references present in REG_EQUAL notes attached to non-SET patterns.
30610 2016-03-01 Jeff Law <law@redhat.com>
30612 PR tree-optimization/69196
30613 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30614 Appropriately clamp the number of statements to copy when the
30615 thread path does not traverse a loop backedge.
30617 PR tree-optimization/69196
30618 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30619 Do count some PHIs in the thread path against the insn count. Decrease
30620 final statement count by one as the control statement in the last
30621 block will get removed. Remove special cased code for handling PHIs
30624 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
30627 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
30628 asm dialect alternatives to explicit GOTPCREL calls.
30630 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30633 * ira.c (do_reload): Issue warning for generic stack checking here...
30634 * reload1.c (reload): ...instead of here and streamline it.
30636 2016-03-01 Nick Clifton <nickc@redhat.com>
30638 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
30640 2016-03-01 Richard Biener <rguenther@suse.de>
30642 PR tree-optimization/69983
30643 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
30644 types and fall back to operand_equal_p.
30646 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30649 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30651 * config/s390/constraints.md ("jm8"): New constraint.
30652 * config/s390/predicates.md ("const_int_8bitset_operand"): New
30654 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
30656 ("*setmem_long<setmem_and>"): New pattern.
30657 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
30659 ("*setmem_long_31z<setmem_and>"): New pattern.
30660 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
30661 New substitution rules with the required attributes.
30664 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30667 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30669 * gensupport.c (process_substs_on_one_elem): Split loop to
30670 complete mark_operands_used_in_match_dup on all expressions in the
30672 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30673 and remove function.
30675 2016-03-01 Richard Biener <rguenther@suse.de>
30677 PR middle-end/70022
30678 * fold-const.c (fold_indirect_ref_1): Fix range checking for
30679 vector BIT_FIELD_REF extract.
30681 2016-03-01 Richard Biener <rguenther@suse.de>
30683 PR tree-optimization/69994
30684 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
30686 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
30688 PR tree-optimization/69956
30689 * tree-vect-stmts.c (supportable_widening_operation): Support
30690 multi-step conversion of boolean vectors.
30691 (supportable_narrowing_operation): Likewise.
30693 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30695 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
30698 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30700 * config/s390/subst.md (DSI_VI): New mode iterator.
30701 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
30702 * config/s390/vector.md ("vec_set<mode>"): Move expander before
30703 the insn definition.
30704 ("*vec_set<mode>"): Change predicate and add alternative to
30705 support only either register or const_int operands as element
30707 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
30709 ("vec_extract<mode>"): New expander.
30710 ("*vec_extract<mode>"): New insn definition supporting reg and
30711 const_int element selectors.
30712 ("*vec_extract<mode>_plus"): New insn definition supporting
30713 reg+const_int element selectors.
30714 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
30715 following expander+insn definition.
30716 ("<vec_shifts_name><mode>3"): New expander.
30717 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
30719 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30721 * config/s390/s390.md ("*tabort_1"): Change predicate to
30722 nonmemory_operand. Add a second alternative to cover
30723 register as well as const int operands.
30724 ("*tabort_1_plus"): New pattern definition.
30726 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30728 * config/s390/s390.md ("*ashrdi3_cc_31")
30729 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
30730 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
30731 Merge insn definitions into ...
30732 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30733 New pattern definition.
30734 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
30735 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
30736 ("*ashr<mode>3_and"): Merge insn definitions into ...
30737 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30738 New pattern definition.
30739 * config/s390/subst.md ("addr_style_op_cc_subst")
30740 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
30741 substitutions patterns plus attributes.
30742 Add ashiftrt to SUBST iterator.
30744 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30746 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
30747 op2 to nonmemory_operand.
30748 ("*<shift>di3_31", "*<shift>di3_31_and"):
30749 Merge into single pattern definition ...
30750 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
30751 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
30752 pattern definition ...
30753 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
30754 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
30757 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30759 * config/s390/predicates.md (const_int_6bitset_operand): New
30761 * config/s390/s390.md: Include subst.md.
30762 ("rotl<mode>3"): New expander.
30763 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
30765 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
30766 * config/s390/subst.md: New file.
30768 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30770 * config/s390/s390.md ("op_type", "atype", "length" attributes):
30771 Remove RRR type. It doesn't really exist.
30772 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
30774 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
30775 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
30776 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
30777 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
30778 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
30779 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
30780 `enabled' attribute.
30782 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30784 * gensupport.c (process_substs_on_one_elem): Split loop to
30785 complete mark_operands_used_in_match_dup on all expressions in the
30787 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30788 and remove function.
30790 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30793 * config/sparc/sparc.c (NWORDS_UP): Rename to...
30794 (CEIL_NWORDS): ...this. Use CEIL macro.
30795 (compute_fp_layout): Adjust to above renaming.
30796 (function_arg_union_value): Likewise.
30797 (sparc_arg_partial_bytes): Likewise.
30798 (sparc_function_arg_advance): Likewise.
30800 2016-02-29 Jeff Law <law@redhat.com>
30802 PR tree-optimization/70005
30803 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
30804 where an object with a boolean range is compared against a value
30807 PR tree-optimization/69999
30808 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
30809 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
30812 2016-02-29 Richard Biener <rguenther@suse.de>
30814 PR tree-optimization/69994
30815 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
30816 (get_unary_op): Look through nop conversions.
30817 (ops_equal_values_p): New function, look for equality diregarding
30819 (eliminate_plus_minus_pair): Use ops_equal_values_p
30820 (repropagate_negates): Do not use get_unary_op here.
30822 2016-02-29 Martin Liska <mliska@suse.cz>
30824 * system.h: Poison ENABLE_CHECKING macro.
30826 2016-02-29 Martin Liska <mliska@suse.cz>
30828 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
30829 is presented in dump flags.
30830 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30831 (hsa_regalloc): Likewise.
30833 2016-02-19 Richard Biener <rguenther@suse.de>
30835 PR tree-optimization/69980
30836 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
30837 permutation of those we need to keep.
30839 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30842 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
30843 (NWORDS_UP): ...this
30844 (init_cumulative_args): Minor tweaks.
30845 (sparc_promote_function_mode): Likewise.
30846 (scan_record_type): Delete.
30847 (traverse_record_type): New function template.
30848 (classify_data_t): New structure type.
30849 (classify_registers): New inline function.
30850 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
30851 exhausted. Instantiate traverse_record_type on classify_registers and
30852 deal with the case of a structure passed in slot #15 with no FP field
30854 (assign_data_t): New structure type.
30855 (compute_int_layout): New static function.
30856 (compute_fp_layout): Likewise.
30857 (count_registers): New inline function.
30858 (assign_int_registers): New static function.
30859 (assign_fp_registers): Likewise.
30860 (assign_registers): New inline function.
30861 (function_arg_record_value_1): Delete.
30862 (function_arg_record_value_2): Likewise.
30863 (function_arg_record_value_3): Likewise.
30864 (function_arg_record_value): Adjust to above changes. Instantiate
30865 traverse_record_type on count_registers to first count the number of
30866 registers to be used and then on assign_registers to assign them.
30867 (function_arg_union_value): Adjust to above renaming.
30868 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
30869 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
30870 case of a structure passed in slot #15
30871 (sparc_function_arg_advance): Likewise.
30872 (function_arg_padding): Minor tweak.
30874 2016-02-29 Richard Biener <rguenther@suse.de>
30876 PR tree-optimization/69720
30877 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
30878 the adjustment_def path for possibly vectorized defs.
30879 (vect_create_epilog_for_reduction): Handle vectorized initial
30882 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
30884 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
30886 2016-02-27 Jeff Law <law@redhat.com>
30889 2016-02-26 Richard Biener <rguenther@suse.de>
30890 Jeff Law <law@redhat.com>
30892 PR tree-optimization/69740
30893 * cfghooks.c (remove_edge): Request loop fixups if we delete
30894 an edge that might turn an irreducible loop into a natural
30897 2016-02-27 Jakub Jelinek <jakub@redhat.com>
30899 PR rtl-optimization/69896
30900 * tree-vect-generic.c (get_compute_type): Avoid single element
30903 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
30905 Rename the AArch64 tuning option and related functions to enable the
30906 Newton series for the reciprocal square root to reflect its
30907 approximative characteristic.
30909 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
30910 function to "aarch64_emit_approx_rsqrt".
30911 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
30912 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
30913 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
30914 (xgene1_tunings): Likewise.
30915 (use_rsqrt_p): Likewise.
30916 (aarch64_emit_swrsqrt): Use new function name.
30917 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
30918 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
30919 text explaining this option.
30920 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
30922 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30925 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30926 complain about -mallow-movmisalign without -mvsx if
30927 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
30929 2016-02-26 Joel Sherrill <joel@rtems.org>
30931 * config.gcc: Add x86_64-*-rtems*.
30932 * config/i386/rtems-64.h: New file.
30934 2016-02-26 Joel Sherrill <joel@rtems.org>
30936 * config.gcc: Add aarch64-*-rtems*.
30937 * config/aarch64/rtems.h: New file.
30939 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
30942 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
30943 shift amount using %h. Add comment.
30945 2016-02-26 Richard Biener <rguenther@suse.de>
30946 Jeff Law <law@redhat.com>
30948 PR tree-optimization/69740
30949 * cfghooks.c (remove_edge): Request loop fixups if we delete
30950 an edge that might turn an irreducible loop into a natural
30953 2016-02-26 Martin Jambor <mjambor@suse.cz>
30955 PR middle-end/69920
30956 * tree-sra.c (sra_modify_assign): Do not remove loads of
30957 uninitialized aggregates to SSA_NAMEs.
30959 2016-02-26 Richard Henderson <rth@redhat.com>
30962 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
30963 pseudo in case the target rtx matches the source of the left
30966 2016-02-26 Martin Jambor <mjambor@suse.cz>
30969 * hsa.h (hsa_type_packed_p): Declare.
30970 * hsa.c (hsa_type_packed_p): New function.
30971 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
30973 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
30974 * hsa-brig.c (emit_basic_insn): Likewise.
30976 2016-02-26 Martin Jambor <mjambor@suse.cz>
30979 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
30981 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
30983 2016-02-26 Martin Jambor <mjambor@suse.cz>
30985 * hsa.h (is_a_helper): New overload for hsa_op_immed for
30986 hsa_op_with_type operands.
30987 (hsa_unsigned_type_for_type): Declare.
30988 * hsa.c (hsa_unsigned_type_for_type): New function.
30989 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
30990 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
30991 the finalizer. Do not emit extra move.
30993 2016-02-26 Martin Jambor <mjambor@suse.cz>
30995 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
30996 atomic operations in private segment.
30998 2016-02-26 Martin Jambor <mjambor@suse.cz>
31000 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
31001 statements to wi->info. Also disallow omp simd constructs.
31002 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
31003 for not gridifying. Dump special string for omp_for.
31005 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31008 * config/aarch64/aarch64.c (aarch64_set_current_function):
31009 Save/restore target globals when switching to
31010 target_option_default_node.
31012 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31015 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
31016 Return 0 if !SHIFT_COUNT_TRUNCATED.
31018 2016-02-26 Jakub Jelinek <jakub@redhat.com>
31019 Eric Botcazou <ebotcazou@adacore.com>
31021 PR rtl-optimization/69891
31022 * dse.c (scan_insn): If we can't figure out memset arguments
31023 or they are non-constant, call clear_rhs_from_active_local_stores.
31025 2016-02-26 Martin Liska <mliska@suse.cz>
31027 * doc/extend.texi: Mention clog10, clog10f an clog10l
31028 in Builtins section.
31030 2016-02-26 Martin Liska <mliska@suse.cz>
31032 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
31034 (resolve_args_picking_1): Likewise.
31035 * dwarf2out.h (struct GTY): Likewise.
31037 2016-02-26 Martin Liska <mliska@suse.cz>
31039 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
31040 with flag_checking.
31041 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
31043 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
31044 Martin Liska <mliska@suse.cz>
31046 * doc/install.texi: Mention --enable-valgrind-annotations.
31048 2016-02-26 Richard Biener <rguenther@suse.de>
31050 PR tree-optimization/69551
31051 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
31052 looking through aliases adjust DECL_PT_UID to refer to the
31053 ultimate alias target.
31055 2016-02-25 Martin Liska <mliska@suse.cz>
31057 PR middle-end/69919
31058 * alloc-pool.c (after_memory_report): New variable.
31059 * alloc-pool.h (base_pool_allocator ::release): Do not use
31060 the infrastructure if after_memory_report.
31061 * toplev.c (toplev::main): Mark after memory report.
31063 2016-02-25 Richard Biener <rguenther@suse.de>
31065 PR tree-optimization/48795
31066 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
31068 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
31071 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
31072 offloading is enabled and -fopenacc or -fopenmp is specified.
31073 (CRTOFFLOADEND): Likewise.
31074 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
31075 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
31076 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
31077 (offload_objects_file_name): New static var.
31078 (tool_cleanup): Remove offload_objects_file_name file.
31079 (find_offloadbeginend): Replace with ...
31080 (find_crtoffloadtable): ... this.
31081 (run_gcc): Remove offload_argc and offload_argv.
31082 Get offload_objects_file_name from -foffload-objects=... option.
31083 Read names of object files with offload from this file, pass them to
31084 compile_images_for_offload_targets. Don't call find_offloadbeginend and
31085 don't pass offloadbegin and offloadend to the linker. Don't pass
31086 offload non-LTO files to the linker, because now they're not claimed.
31088 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
31091 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
31092 on builtin_unreachable.
31094 2016-02-25 Jakub Jelinek <jakub@redhat.com>
31096 PR rtl-optimization/69896
31097 * regcprop.c: Include cfgrtl.h.
31098 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
31099 than remembered mode, either delete it (if noop_move_p), or
31100 treat like copy_p but not noop_p instruction.
31102 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31105 * dwarf2out.c (gen_variable_die): Work around buggy LTO
31106 - allow NULL decl for Fortran DW_TAG_common_block variables.
31108 2016-02-24 Jason Merrill <jason@redhat.com>
31110 * common.opt (flifetime-dse): Add -flifetime-dse=1.
31112 2016-02-24 Richard Biener <rguenther@suse.de>
31113 Jakub Jelinek <jakub@redhat.com>
31115 PR middle-end/69760
31116 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
31117 conditionally executed ops to well-defined overflow behavior.
31119 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31121 PR middle-end/69915
31122 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
31125 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31127 PR rtl-optimization/69886
31128 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
31129 argument. Use it when checking validity of set instructions.
31130 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
31131 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
31133 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
31134 * store-motion.c (find_moveable_store): Update
31135 can_assign_to_reg_without_clobbers_p callsite.
31137 2016-02-24 Richard Biener <rguenther@suse.de>
31139 PR middle-end/68963
31140 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
31142 (record_nonwrapping_iv): Do not fall back to the low/high bound
31143 for non-constant IV bases if the stmt is not always executed.
31145 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31147 * config/arm/arm-cores.def (cortex-a32): New entry.
31148 * config/arm/arm-tables.opt: Regenerate.
31149 * config/arm/arm-tune.md: Regenerate.
31150 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
31151 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
31152 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
31153 for -mcpu and -mtune.
31155 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31158 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
31159 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
31160 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
31161 (atomic_loaddi_1): Delete.
31162 (atomic_loaddi): Rewrite expander using the above changes.
31164 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31167 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
31170 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31171 Richard Biener <rguenth@suse.de>
31173 PR middle-end/69909
31174 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
31175 set_mem_attributes if tem is SSA_NAME which got expanded
31178 2016-02-24 Richard Biener <rguenther@suse.de>
31180 PR tree-optimization/69907
31181 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
31182 end of permutations for BB vectorization.
31184 2016-02-24 Christian Bruel <christian.bruel@st.com>
31186 * config/arm/arm-c.c (arm_option_override): Initialize
31187 target_option_current_node.
31188 * config/arm/arm.c (arm_pragma_target_parse): Replace
31189 build_target_option_node call by target_option_current_node.
31190 Set target_option_current_node.
31193 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
31196 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
31197 define_insn_and_split to define_insn.
31198 (zero_extendqi<mode>2_dot2): Same.
31199 (extendqi<mode>2_dot): Same.
31200 (extendqi<mode>2_dot2): Same.
31202 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
31204 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
31205 and add bypass for AES{D,E} and AESMC pairs.
31206 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
31209 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
31211 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
31212 series for reciprocal square root in Exynos M1.
31214 2016-02-23 Martin Sebor <msebor@redhat.com>
31217 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
31218 __builtin_alloca_with_align.
31220 2016-02-23 Richard Henderson <rth@redhat.com>
31222 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
31223 (ix86_register_pragmas): Remove __seg_tls.
31224 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
31225 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
31226 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
31227 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
31228 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
31229 * doc/extend.texi (__seg_tls): Remove item.
31231 2016-02-23 Richard Biener <rguenther@suse.de>
31233 * alloc-pool.h (struct allocation_object): Make id member
31234 conditional on CHECKING_P again.
31235 (get_instance): Adjust.
31236 (base_pool_allocator): Likewise.
31238 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
31240 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
31241 (parallelize_loops): In OpenACC kernels mode, set n_threads to
31243 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
31245 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
31247 2016-02-23 Richard Biener <rguenther@suse.de>
31249 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
31250 * bitmap.h (struct bitmap_usage): Likewise.
31251 (bitmap_move): Declare.
31252 * bitmap.c (register_overhead): Take size_t argument.
31253 (bitmap_move): New function.
31254 * df-problems.c (df_rd_transfer_function): Use bitmap_move
31255 to properly account overhead.
31256 * tree.c (free_node): Use tree_size.
31258 2016-02-23 Jakub Jelinek <jakub@redhat.com>
31261 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
31262 when inverting comparison.
31265 * common.opt (Wunreachable-code): Add Warning flag.
31267 2016-02-23 Mark Wielaard <mjw@redhat.com>
31268 Jakub Jelinek <jakub@redhat.com>
31271 * cgraphunit.c (check_global_declaration): Check main_input_filename
31272 and DECL_SOURCE_FILE are not NULL.
31274 2016-02-23 Martin Jambor <mjambor@suse.cz>
31276 PR tree-optimization/69666
31277 * tree-sra.c (sra_modify_assign): Do not attempt to create
31278 default_def replacements for unscalarizable regions.
31280 2016-02-20 Mark Wielaard <mjw@redhat.com>
31283 * cgraphunit.c (check_global_declaration): Check level of
31284 warn_unused_const_variable and main_input_filename.
31285 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
31286 (-Wunused-variable): For C implies -Wunused-const-variable=1.
31287 (-Wunused-const-variable): Explain levels 1 and 2.
31289 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31292 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
31293 identical arguments. Formatting and spelling fixes.
31296 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
31301 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
31302 and m68k-devices.def.
31303 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
31304 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
31306 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
31308 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
31309 and HImode registers.
31311 2016-02-22 Richard Biener <rguenther@suse.de>
31313 PR tree-optimization/69882
31314 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
31315 preserve permutations present because of gaps.
31316 (vect_supported_load_permutation_p): Always continue checking
31317 permutations after vect_attempt_slp_rearrange_stmts.
31319 2016-02-22 Bin Cheng <bin.cheng@arm.com>
31321 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
31322 min_profitable_estimate, rather than min_profitable_iters.
31324 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31327 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
31328 SImode for last match_operand.
31330 2016-02-22 Martin Liska <mliska@suse.cz>
31332 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
31333 return bitsize - 1 as the return value.
31335 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
31339 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
31340 Handle negative shift counts.
31341 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
31342 force_reg on the shift constant.
31343 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
31344 (lshrsi3_d): Handle negative shift counts.
31346 2016-02-22 Richard Biener <rguenther@suse.de>
31347 Tom de Vries <tom@codesourcery.com>
31349 * graph.c: Include dumpfile.h.
31350 (print_graph_cfg): Split into three overloads.
31351 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
31353 2016-02-22 Tom de Vries <tom@codesourcery.com>
31355 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
31358 2016-02-22 Richard Biener <rguenther@suse.de>
31361 * ipa-inline-transform.c (inline_call): When not updating
31362 overall summaries adjust self size by the growth estimate.
31363 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
31364 hash-set, do not update overall summaries here. Renamed from ...
31365 (inline_to_all_callers): ... this which is now wrapping the
31366 above and performing delayed overall summary update.
31367 (early_inline_small_functions): Delay updating of the overall
31370 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
31372 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
31375 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31378 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
31379 :%* in %:gt() argument.
31380 (greater_than_spec_func): Adjust for expecting only numbers,
31381 if there are more than two numbers, compare the last two.
31383 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
31385 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
31386 -Wnarrowing with -std.
31388 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31391 * expr.c (store_field): Don't use bit-field path if exp is
31392 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
31393 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
31394 and the assignment can be performed by bitwise copy. Formatting
31397 PR middle-end/69838
31398 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
31399 call copy_reg_eh_region_note_forward on before and/or after sequences
31400 and remove note from insn if it no longer can throw.
31403 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
31404 if TARGET_AVX512BW.
31406 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31408 * config/s390/vector.md: Add missing commutative operand markers
31409 to the patterns which qualify for one.
31410 * config/s390/vx-builtins.md: Likewise.
31412 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31414 * config/s390/vector.md (VI, VI_QHS): Add single element vector
31415 types to mode iterators.
31416 (vec_double): ... and mode attribute.
31417 * config/s390/vx-builtins.md (non_vec_int): Likewise.
31419 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31421 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
31422 Change the predicate of op2 from nonimmediate to general and let
31423 reload fix it if necessary.
31425 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31427 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
31429 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31431 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
31434 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31436 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
31437 * config/s390/s390.c (s390_expand_vec_movstr): New function.
31438 * config/s390/s390.md ("movstr<P:mode>"): Call
31439 s390_expand_vec_movstr.
31441 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31443 * config/s390/s390.md: Add missing output modifier for operand 1
31444 to print it as address properly.
31446 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31448 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
31449 * config/s390/2964.md: New file.
31450 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
31451 of insn grouping attributes depending on the CPU level.
31452 (s390_get_unit_mask): New function.
31453 (s390_sched_score): Remove the OOO from the scheduling macros.
31454 Add loop to calculate a score for the instruction mix.
31455 (s390_sched_reorder): Likewise plus improve debug output.
31456 (s390_sched_variable_issue): Rename macros as above. Calculate
31457 the unit distances after actually scheduling an insn. Improve
31459 (s390_sched_init): Clear last_scheduled_unit_distance array.
31460 * config/s390/s390.md: Include 2964.md.
31462 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31465 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
31466 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
31467 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
31468 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
31469 *avx512f_<code>v8div16qi2_mask_1): New insns.
31471 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
31474 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
31477 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
31478 earlyclobber from target. Use wF constraint for fused memory
31480 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
31482 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31483 Martin Liska <mliska@suse.cz>
31486 * cfgexpand.c (asan_sanitize_stack_p): New function.
31487 (partition_stack_vars): Use the function.
31488 (expand_stack_vars): Likewise.
31489 (defer_stack_allocation): Likewise.
31490 (expand_used_vars): Likewise.
31492 2016-02-18 Richard Biener <rguenther@suse.de>
31494 PR middle-end/69553
31495 * fold-const.c (operand_equal_p): Properly compare offsets for
31496 IMAGPART_EXPR and ARRAY_REF.
31498 2016-02-18 Nick Clifton <nickc@redhat.com>
31502 * config/arm/arm.c (arm_option_override_internal): Disable
31503 interworking if the target does not support thumb instructions.
31504 (arm_reload_in_hi): Handle the case where a register to register
31505 move needs reloading because there is no simple pattern to handle
31507 (arm_reload_out_hi): Likewise.
31509 2016-02-18 Richard Biener <rguenther@suse.de>
31511 PR middle-end/69854
31512 * match.pd: Don't use fold_binary or fold_unary for folding
31515 2016-02-17 Jakub Jelinek <jakub@redhat.com>
31518 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
31519 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
31520 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
31521 warn on gimple_no_warning_p statements.
31523 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
31525 * doc/extend.texi (C++ Attributes): Correct description of
31526 warn_unused type attribute.
31528 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31530 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
31531 correct instruction.
31533 2016-02-17 Richard Biener <rguenther@suse.de>
31535 PR rtl-optimization/69609
31536 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
31537 (find_traces_1_round): When ending a trace update cached priority
31539 (bb_to_key): Use cached priority when available.
31540 (copy_bb): Initialize cached priority.
31541 (reorder_basic_blocks_software_trace_cache): Likewise.
31543 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31546 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
31548 (aarch64_comparison_operator): Break overly long line into two.
31549 (aarch64_comparison_operation): Likewise.
31550 * config/aarch64/aarch64.md (cstorecc4): Use
31551 aarch64_comparison_operator_mode instead of
31552 aarch64_comparison_operator.
31553 (cstore<mode>4): Likewise.
31554 (aarch64_cstore<mode>): Likewise.
31555 (*cstoresi_insn_uxtw): Likewise.
31556 (cstore<mode>_neg): Likewise.
31557 (*cstoresi_neg_uxtw): Likewise.
31559 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31562 * config/arm/predicates.md (arm_comparison_operator_mode):
31564 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
31565 instead of arm_comparison_operator.
31566 (*mov_negscc): Likewise.
31567 (*mov_notscc): Likewise.
31568 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
31569 (*thumb2_mov_negscc): Likewise.
31570 (*thumb2_mov_negscc_strict_it): Likewise.
31571 (*thumb2_mov_notscc): Likewise.
31572 (*thumb2_mov_notscc_strict_it): Likewise.
31574 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
31576 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
31577 Add missing return.
31579 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
31581 * config/visium/visium.c (machine_libfunc_index): New enum.
31582 (machine_libfuncs): New structure.
31583 (visium_libfuncs): New static variable.
31584 (TARGET_INIT_LIBFUNCS): Define to...
31585 (visium_init_libfuncs): ...this. New function.
31586 (expand_block_move_4): Use the appropriate libfunc.
31587 (expand_block_move_2): Likewise.
31588 (expand_block_move_1): Likewise.
31589 (expand_block_set_4): Likewise.
31590 (expand_block_set_2): Likewise.
31591 (expand_block_set_1): Likewise.
31592 (visium_trampoline_init): Likewise.
31594 2016-02-17 Nick Clifton <nickc@redhat.com>
31596 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
31597 TI's devices.csv file as of March 2016.
31599 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
31602 * opts-global.c (handle_common_deferred_options): Introduce and
31603 initialize two global variables to remember command-line options
31604 specifying a stack-limiting register.
31605 * opts.h: Add extern declarations of the two new global variables.
31606 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
31607 variable based on the values of the two new global variables.
31609 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31612 * common.opt (Wnonnull-compare): New warning.
31613 * doc/invoke.texi (-Wnonnull): Remove text about comparison
31614 of arguments against NULL.
31615 (-Wnonnull-compare): Document.
31616 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
31617 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
31618 * passes.def (pass_warn_nonnull_compare): Add.
31619 * gimple-ssa-nonnull-compare.c: New file.
31621 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31623 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
31624 AARCH64_EXTRA_TUNE_RECIP_SQRT.
31626 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31628 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
31629 reciprocal sqrt for -mlow-precision-recip-sqrt.
31631 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31632 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31634 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
31635 always use lane loads to construct non-constant vectors.
31637 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31639 * config/aarch64/aarch64.md
31640 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
31641 constraints for operand 3.
31642 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
31644 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31645 Richard Biener <rguenther@suse.de>
31647 PR tree-optimization/69820
31648 * tree-vect-patterns.c (type_conversion_p): Return false if
31649 *orig_type is unsigned single precision or boolean.
31650 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
31653 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31655 PR rtl-optimization/69764
31656 PR rtl-optimization/69771
31657 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
31658 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
31660 2016-02-16 Richard Biener <rguenther@suse.de>
31662 PR tree-optimization/69776
31663 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
31665 (indirect_refs_may_alias_p): Likewise.
31666 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
31667 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
31668 according to tbaa_p.
31669 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
31670 (optimize_stmt): For redundant store discovery do not allow tbaa.
31672 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
31674 PR tree-optimization/69714
31675 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
31676 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
31678 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
31680 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
31681 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
31682 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
31683 * config/arc/arc.c (arc_init): Check FPU options.
31684 (get_arc_condition_code): Handle new CC_FPU* modes.
31685 (arc_select_cc_mode): Likewise.
31686 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
31687 register pair only. Allow access for ARCv2 accumulator.
31688 (gen_compare_reg): Whenever we have FPU support use FPU compare
31690 (arc_reorg): Don't generate brcc insns when FPU compare
31691 instructions are involved.
31692 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
31693 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
31694 floating point emulation.
31695 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
31696 (REVERSE_CONDITION): Add new CC_FPU* modes.
31697 (TARGET_FP_SP_BASE): Define.
31698 (TARGET_FP_DP_BASE): Likewise.
31699 (TARGET_FP_SP_FUSED): Likewise.
31700 (TARGET_FP_DP_FUSED): Likewise.
31701 (TARGET_FP_SP_CONV): Likewise.
31702 (TARGET_FP_DP_CONV): Likewise.
31703 (TARGET_FP_SP_SQRT): Likewise.
31704 (TARGET_FP_DP_SQRT): Likewise.
31705 (TARGET_FP_DP_AX): Likewise.
31706 * config/arc/arc.md (ARCV2_ACC): New constant.
31707 (type): New fpu type attribute.
31708 (SDF): Conditional iterator.
31709 (cstore<mode>, cbranch<mode>): Change expand condition.
31710 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
31711 handles FPU/FPX cases as well.
31712 * config/arc/arc.opt (mfpu): New option.
31713 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
31715 (adddf3, muldf3, subdf3): Removed.
31716 * config/arc/predicates.md (proper_comparison_operator): Recognize
31718 * config/arc/fpu.md: New file.
31719 * doc/invoke.texi (ARC Options): Document mfpu option.
31721 2016-02-16 Richard Biener <rguenther@suse.de>
31723 PR rtl-optimization/69291
31724 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
31725 noce_operand_ok check.
31727 2016-02-16 Tom de Vries <tom@codesourcery.com>
31730 * omp-low.c (simd_clone_create): Remove call to
31731 symtab->call_cgraph_insertion_hooks.
31733 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31735 PR tree-optimization/69802
31736 * tree-ssa-reassoc.c (update_range_test): If op is
31737 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
31738 op == 1 test of precision 1 integral op, otherwise handle
31739 that case as op itself. Fix up formatting.
31740 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
31743 2016-02-16 Richard Biener <rguenther@suse.de>
31745 PR tree-optimization/69586
31746 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
31747 types for conversion sources.
31749 2016-02-16 Richard Biener <rguenther@suse.de>
31751 PR middle-end/69801
31752 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
31753 mask OEP_ADDRESS_OF.
31755 2016-02-16 Alan Modra <amodra@gmail.com>
31758 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
31759 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
31760 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
31762 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
31763 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
31764 (p8_fmrgow_<mode>): Likewise.
31765 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
31767 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
31768 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
31769 to use movdi_internal64. Remove op0_di.
31770 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
31772 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
31774 Add support for the FCCMP insn types
31776 * config/aarch64/aarch64.md (fccmp): Change insn type.
31777 (fccmpe): Likewise.
31778 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
31779 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
31780 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
31781 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
31782 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
31783 * config/arm/types.md (fccmps): Add new insn type.
31784 (fccmpd): Likewise.
31786 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
31788 * alias.c (get_alias_set): Fix a typo in comment.
31790 2016-02-15 Richard Biener <rguenther@suse.de>
31792 PR tree-optimization/69595
31793 * match.pd: Complete range test simplification to true.
31795 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
31797 PR rtl-optimization/69648
31798 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
31799 pic_offset_table_rtx.
31801 PR rtl-optimization/69752
31802 * ira.c (update_equiv_regs): When looking for more than a single SET,
31803 also take other side effects into account.
31805 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31807 * config/s390/s390.c (s390_function_profiler): Add a new sequence
31808 for z900+ CPUs in 31-bit mode.
31810 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31812 * common/config/s390/s390-common.c (s390_supports_split_stack):
31814 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
31815 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
31816 * config/s390/s390.c (struct machine_function): New field
31817 split_stack_varargs_pointer.
31818 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
31819 in s390_emit_prologue.
31820 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
31822 (morestack_ref): New global.
31823 (SPLIT_STACK_AVAILABLE): New macro.
31824 (s390_expand_split_stack_prologue): New function.
31825 (s390_live_on_entry): New function.
31826 (s390_va_start): Use split-stack vararg pointer if appropriate.
31827 (s390_asm_file_end): Emit the split-stack note sections.
31828 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
31829 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
31830 (UNSPECV_SPLIT_STACK_CALL): New unspec.
31831 (UNSPECV_SPLIT_STACK_DATA): New unspec.
31832 (split_stack_prologue): New expand.
31833 (split_stack_space_check): New expand.
31834 (split_stack_data): New insn.
31835 (split_stack_call): New expand.
31836 (split_stack_call_*): New insn.
31837 (split_stack_cond_call): New expand.
31838 (split_stack_cond_call_*): New insn.
31840 2016-02-15 Richard Biener <rguenther@suse.de>
31842 PR tree-optimization/69783
31843 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31844 Add trivially correct cases.
31846 2016-02-15 Tom de Vries <tom@codesourcery.com>
31849 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
31851 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
31853 2016-02-15 Richard Biener <rguenther@suse.de>
31855 PR tree-optimization/69776
31856 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
31857 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
31858 indicate whether we can use TBAA to disambiguate against stores.
31859 Use alias-set zero if not.
31860 (visit_reference_op_store): Do not use TBAA when looking up
31862 * tree-ssa-pre.c (compute_avail): Use TBAA here.
31863 (eliminate_dom_walker::before_dom_children): But not when looking
31864 up redundant stores.
31866 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
31868 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
31870 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31872 * config/i386/znver1.md
31873 (znver1_pop, znver1_pop_mem,
31874 znver1_load_imov_double_store,
31875 znver1_load_imov_direct_store,
31876 znver1_load_imov_direct_load,
31877 znver1_load_imov_double_load): Add new.
31878 (znver1_insn, znver1_insn_load): Add icmov type.
31879 (znver1_sseavx_fma,
31880 znver1_sseavx_fma_load,
31882 znver1_avx256_fma_load): Fix pipe usage.
31884 2016-02-14 Alan Modra <amodra@gmail.com>
31887 * reload.c (find_reloads_address_1): For pre/post-inc/dec
31888 with an invalid hard reg, reload just the reg not the entire
31889 pre/post-inc/dec address expression.
31891 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31894 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
31895 fixed R1_REG scratch reg.
31896 (sibcall_value_pcrel_fdpic): Likewise.
31898 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31902 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
31904 2016-02-12 Walter Lee <walt@tilera.com>
31906 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
31907 * config/tilegx/t-tilegx: Likewise.
31909 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31912 * diagnostic-show-locus.c (struct line_span): New struct.
31913 (layout::get_first_line): Delete.
31914 (layout::get_last_line): Delete.
31915 (layout::get_num_line_spans): New member function.
31916 (layout::get_line_span): Likewise.
31917 (layout::print_heading_for_line_span_index_p): Likewise.
31918 (layout::get_expanded_location): Likewise.
31919 (layout::calculate_line_spans): Likewise.
31920 (layout::m_first_line): Delete.
31921 (layout::m_last_line): Delete.
31922 (layout::m_line_spans): New field.
31923 (layout::layout): Update comment. Replace m_first_line and
31924 m_last_line with m_line_spans, replacing their initialization
31925 with a call to calculate_line_spans.
31926 (diagnostic_show_locus): When printing source lines and
31927 annotations, rather than looping over a single span
31928 of lines, instead loop over each line_span within
31929 the layout, with an inner loop over the lines within them.
31930 Call the context's start_span callback when changing line spans.
31931 * diagnostic.c (diagnostic_initialize): Initialize start_span.
31932 (diagnostic_build_prefix): Break out the building of the location
31933 part of the string into...
31934 (diagnostic_get_location_text): ...this new function, rewriting
31935 it from nested ternary expressions to a sequence of "if"
31937 (default_diagnostic_start_span_fn): New function.
31938 * diagnostic.h (diagnostic_start_span_fn): New typedef.
31939 (diagnostic_context::start_span): New field.
31940 (default_diagnostic_start_span_fn): New prototype.
31942 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31945 * gcc.c (driver::finalize): Fix cleanup of "specs".
31947 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31951 * gcc.c (driver::driver): Initialize m_option_suggestions.
31952 (driver::~driver): Clean up m_option_suggestions.
31953 (suggest_option): Convert to...
31954 (driver::suggest_option): ...this, and split out into
31955 driver::build_option_suggestions and find_closest_string.
31956 (driver::build_option_suggestions): New function, from
31957 first half of suggest_option. Special-case
31958 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
31959 the sanitizer_opts array. For options of enum types, add the
31960 various enum values to the candidate strings.
31961 (driver::handle_unrecognized_options): Remove "const".
31962 * gcc.h (driver::handle_unrecognized_options): Likewise.
31963 (driver::build_option_suggestions): New decl.
31964 (driver::suggest_option): New decl.
31965 (driver::m_option_suggestions): New field.
31966 * opts-common.c (add_misspelling_candidates): New function.
31967 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
31968 and make non-static.
31969 * opts.h (sanitizer_opts): New array decl.
31970 (add_misspelling_candidates): New function decl.
31971 * spellcheck.c (find_closest_string): New function.
31972 * spellcheck.h (find_closest_string): New function decl.
31974 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31976 PR rtl-optimization/69764
31977 PR rtl-optimization/69771
31978 * optabs.c (expand_binop_directly): For shift_optab_p, force
31979 convert_modes with VOIDmode if xop1 has VOIDmode.
31981 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
31984 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
31985 to correctly determine instrumentation thunks.
31987 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31990 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
31991 type by reference, force lhs on the call.
31994 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
31995 Compute retval and retbnd early in all cases if split_part_return_p
31996 and return_bb is not EXIT. Remove all clobber stmts and reset
31997 all debug stmts that refer to SSA_NAMEs defined in split part,
31998 except if it is retval, in that case replace the old retval with the
31999 lhs of the call to the split part.
32001 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
32004 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
32006 PR middle-end/66726
32007 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
32008 whose result is used in PHI.
32009 (maybe_optimize_range_tests): Likewise.
32010 (final_range_test_p): Likweise.
32012 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
32014 PR middle-end/66726
32015 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
32016 whose result is used in PHI.
32017 (maybe_optimize_range_tests): Likewise.
32018 (final_range_test_p): Likweise.
32020 2016-02-12 Jakub Jelinek <jakub@redhat.com>
32022 * cgraph.c: Spelling fixes - behaviour -> behavior and
32023 neighbour -> neighbor.
32024 * target.def: Likewise.
32025 * sel-sched.c: Likewise.
32026 * config/mips/mips.c: Likewise.
32027 * config/arc/arc.md: Likewise.
32028 * config/arm/cortex-a57.md: Likewise.
32029 * config/arm/arm.c: Likewise.
32030 * config/arm/neon.md: Likewise.
32031 * config/arm/arm-c.c: Likewise.
32032 * config/vms/vms-c.c: Likewise.
32033 * config/s390/s390.c: Likewise.
32034 * config/i386/znver1.md: Likewise.
32035 * config/i386/i386.c: Likewise.
32036 * config/ia64/hpux-unix2003.h: Likewise.
32037 * config/msp430/msp430.md: Likewise.
32038 * config/rx/rx.c: Likewise.
32039 * config/rx/rx.md: Likewise.
32040 * config/aarch64/aarch64-simd.md: Likewise.
32041 * config/aarch64/aarch64.c: Likewise.
32042 * config/nvptx/nvptx.c: Likewise.
32043 * config/bfin/bfin.c: Likewise.
32044 * config/cris/cris.opt: Likewise.
32045 * config/rs6000/rs6000.c: Likewise.
32046 * target.h: Likewise.
32047 * spellcheck.c: Likewise.
32048 * ira-build.c: Likewise.
32049 * tree-inline.c: Likewise.
32050 * builtins.c: Likewise.
32051 * lra-constraints.c: Likewise.
32052 * explow.c: Likewise.
32053 * hwint.h: Likewise.
32054 * targhooks.c: Likewise.
32055 * tree-vect-data-refs.c: Likewise.
32056 * expr.c: Likewise.
32057 * doc/tm.texi: Likewise.
32058 * doc/extend.texi: Likewise.
32059 * doc/install.texi: Likewise.
32060 * doc/md.texi: Likewise.
32061 * tree-ssa-tail-merge.c: Likewise.
32062 * sched-int.h: Likewise.
32063 * match.pd: Likewise.
32064 * sched-ebb.c: Likewise.
32065 * target.def (omit_struct_return_reg): Likewise.
32066 * gimple-ssa-isolate-paths.c: Likewise.
32067 (find_implicit_erroneous_behaviour): Renamed to...
32068 (find_implicit_erroneous_behavior): ... this.
32069 (find_explicit_erroneous_behaviour): Renamed to...
32070 (find_explicit_erroneous_behavior): ... this.
32071 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
32073 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
32075 PR rtl-optimization/64682
32076 PR rtl-optimization/69567
32077 PR rtl-optimization/69737
32078 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
32079 in I2 as well, just lose it.
32081 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32083 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
32085 (aarch64_last_printed_tune_string): Likewise.
32086 (aarch64_declare_function_name): Only output .arch assembler
32087 directive if it will be different from the previously output
32088 directive. Same for .tune comment but only if -dA is set.
32089 (aarch64_start_file): New function.
32090 (TARGET_ASM_FILE_START): Define.
32092 2016-02-11 David Malcolm <dmalcolm@redhat.com>
32095 * Makefile.in (PLUGIN_HEADERS): Add params.list.
32097 2016-02-11 Jakub Jelinek <jakub@redhat.com>
32100 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
32101 -Wmaybe-uninitialized warning.
32103 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
32106 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
32108 2016-02-11 Richard Biener <rguenther@suse.de>
32110 PR rtl-optimization/69291
32111 * ifcvt.c (noce_try_store_flag_constants): Do not allow
32112 subexpressions affected by changing the result.
32114 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
32117 * lra-constraints.c (curr_insn_transform): Find in/out operands
32118 for secondary memory moves. Update dups.
32120 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
32122 PR tree-optimization/69652
32123 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
32124 to nested loop, did source re-formatting, skip debug statements,
32125 add check on statement with volatile operand, remove dead scalar
32128 2016-02-10 Jakub Jelinek <jakub@redhat.com>
32129 Patrick Palka <ppalka@gcc.gnu.org>
32133 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
32134 calls if the return type is TREE_ADDRESSABLE.
32135 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
32136 * ipa-split.c (split_function): Fix doubled "we" in comment.
32137 Use void return type for the split part even if
32138 !split_point->split_part_set_retval.
32140 2016-02-10 Bin Cheng <bin.cheng@arm.com>
32142 PR tree-optimization/68021
32143 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
32144 when computing the value of biv cand by itself.
32146 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
32148 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
32149 (cortexa57_tunings): Likewise.
32150 (cortexa72_tunings): Likewise.
32151 (arch_macro_fusion_pair_p): Add support for AES fusion.
32152 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
32153 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
32154 Allow virtual registers before reload so early scheduling works.
32155 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
32156 correct latency and pipeline.
32157 (cortex_a57_crypto_complex): Likewise.
32158 (cortex_a57_crypto_xor): Likewise.
32159 (define_bypass): Add AES bypass.
32161 2016-02-10 Richard Biener <rguenther@suse.de>
32163 PR tree-optimization/69726
32164 * passes.def: Add DCE pass before late uninit.
32165 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
32166 really fixup if-conversions job.
32168 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
32170 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
32171 (arm_cortex_a57_tune): Likewise.
32172 (aarch_macro_fusion_pair_p): Add support for AES fusion.
32173 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
32175 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
32177 * timevar.def (TV_PHASE_DBGINFO): Delete.
32178 (TV_PHASE_CHECK_DBGINFO): Likewise.
32179 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
32181 2016-02-10 Richard Biener <rguenther@suse.de>
32183 PR tree-optimization/69719
32184 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32185 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
32187 2016-02-09 Andrew Pinski <apinski@cavium.com>
32190 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
32191 get_vcond_mask_icode returns false.
32193 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
32196 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
32197 an ADDIS that adds a pointer to a large constant that sets the
32198 upper16 bits with a load operation.
32200 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
32203 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
32205 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
32207 (vzipq_s16): Likewise.
32208 (vzipq_s32): Likewise.
32209 (vzipq_f32): Likewise.
32210 (vzipq_u8): Likewise.
32211 (vzipq_u16): Likewise.
32212 (vzipq_u32): Likewise.
32213 (vzipq_p8): Likewise.
32214 (vzipq_p16): Likewise.
32216 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
32219 * config/arm/arm.c (neon_endian_lane_map): New function.
32220 (neon_vector_pair_endian_lane_map): New function.
32221 (arm_evpc_neon_vuzp): Allow for big endian lane order.
32222 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
32224 (vuzpq_s16): Likewise.
32225 (vuzpq_s32): Likewise.
32226 (vuzpq_f32): Likewise.
32227 (vuzpq_u8): Likewise.
32228 (vuzpq_u16): Likewise.
32229 (vuzpq_u32): Likewise.
32230 (vuzpq_p8): Likewise.
32231 (vuzpq_p16): Likewise.
32233 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
32236 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
32239 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
32241 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
32242 truncate const_int operand 1 to QImode.
32244 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
32246 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
32247 corresponding to an abnormal edge.
32249 2016-02-09 Tom de Vries <tom@codesourcery.com>
32251 PR tree-optimization/69599
32252 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
32254 (find_func_aliases_for_builtin_call, find_func_clobbers)
32255 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
32258 2016-02-09 Richard Biener <rguenther@suse.de>
32260 PR tree-optimization/69715
32261 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
32262 LHS on calls as non-rewritable.
32264 2016-02-09 Tom de Vries <tom@codesourcery.com>
32267 * lto-wrapper.c (append_diag_options): New function.
32268 (compile_offload_image): Call append_diag_options.
32270 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
32273 * doc/extend.texi (Flag Output Operands): Correct sectioning.
32274 Minor copy-edit to fix verb tenses.
32276 2016-02-08 Jakub Jelinek <jakub@redhat.com>
32278 PR tree-optimization/69209
32279 * ipa-split.c (split_function): If split part is not
32280 returning retval, retval has gimple type but is not
32281 gimple value, force it into a SSA_NAME first.
32283 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
32285 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
32288 2016-02-08 Jason Merrill <jason@redhat.com>
32291 * convert.c (convert_to_integer_1): Check dofold on truncation
32293 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
32294 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
32295 Rename from *_nofold.
32296 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
32297 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
32299 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
32302 * tree.c (build_common_tree_nodes): Remove short_double argument.
32303 All callers changed.
32304 * tree.h (build_common_tree_nodes): Adjust declaration.
32305 * doc/invoke.texi (-fshort-double): Remove documentation.
32306 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
32307 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
32308 * lto-wrapper.c (merge_and_complain, append_compiler_options)
32309 (append_linker_options): Don't handle OPT_fshort_double.
32311 PR rtl-optimization/68730
32312 * lra-remat.c (insn_to_cand_activation): New static variable.
32313 (lra_remat): Allocate and free it.
32314 (create_cand): New arg activation. Initialize a field in
32315 insn_to_cand_activation if it is nonnull.
32316 (create_cands): Pass the activation insn to create_cand when making
32317 a candidate involving an output reload. Reorganize code a little.
32318 (do_remat): Keep track of active status of candidates in a separate
32321 2016-02-08 Richard Biener <rguenther@suse.de>
32323 PR tree-optimization/69719
32324 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32325 Properly use absolute of the difference of the two offsets to
32326 compare or adjust the segment length.
32328 2016-02-08 Richard Biener <rguenther@suse.de>
32329 Jeff Law <law@redhat.com>
32332 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
32333 types for anonymous SSA names.
32335 2016-02-08 Richard Biener <rguenther@suse.de>
32337 PR rtl-optimization/69274
32338 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
32340 2016-02-08 Jeff Law <law@redhat.com>
32342 PR tree-optimization/65917
32343 * tree-ssa-dom.c (record_temporary_equivalences): Record both
32344 equivalences from if (x == y) style conditionals.
32345 (loop_depth_of_name): Remove.
32346 (record_equality): Remove loop depth check.
32347 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
32348 (const_and_copies::record_const_or_copy_raw): New member function.
32349 * tree-ssa-scopedtables.c
32350 (const_and_copies::record_const_or_copy_raw): New, factored out of
32351 (const_and_copies::record_const_or_copy): Call new member function.
32353 2016-02-05 Jeff Law <law@redhat.com>
32355 PR tree-optimization/68541
32356 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
32357 (count_stmts_in_block): New function.
32358 (poor_ifcvt_candidate_code): Likewise.
32359 (is_feasible_trace): Add some heuristics to determine when path
32360 splitting is profitable.
32361 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
32362 is a diamond with a single exit.
32364 2016-02-05 Martin Sebor <msebor@redhat.com>
32367 * doc/invoke.texi: Update -Wplacement-new to take an optional
32370 2016-02-06 Richard Henderson <rth@redhat.com>
32373 * tree.c (tree_nop_conversion_p): Do not strip casts into or
32374 out of non-standard address spaces.
32376 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32378 PR rtl-optimization/69691
32379 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
32381 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
32383 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
32384 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
32385 (*ieee128_mfvsrd_64bit): Likewise.
32386 (*ieee128_mfvsrd_32bit): Likewise.
32388 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
32392 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32394 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
32395 instrumented_version.
32397 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
32399 * doc/invoke.texi (Optimize Options): In table of --param options
32400 rename second occurrence of tracer-min-branch-ratio to
32401 tracer-min-branch-probability, rename
32402 tracer-min-branch-ratio-feedback to
32403 tracer-min-branch-probability-feedback and clarify description,
32404 rename sched-spec-state-edge-prob-cutoff to
32405 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
32406 to selsched-insns-to-rename, rename lto-minpartition to
32407 lto-min-partition, delete reorder-blocks-duplicate and
32408 reorder-blocks-duplicate-feedback.
32410 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32412 * config/s390/s390.c (s390_register_info_set_ranges): Remove
32415 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
32417 * doc/extend.texi: S/390: Correct some typos.
32419 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32421 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
32423 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32426 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
32427 (s390_register_info_gprtofpr): Use new macros above.
32428 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
32430 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
32431 its name. Adjust restore and save gpr ranges.
32432 (s390_register_info_set_ranges): New function.
32433 (s390_register_info): Use new macros above. Call
32434 s390_register_info_set_ranges.
32435 (s390_optimize_register_info): Likewise.
32436 (s390_hard_regno_rename_ok): Use new macros.
32437 (s390_hard_regno_scratch_ok): Likewise.
32438 (s390_emit_epilogue): Likewise.
32439 (s390_can_use_return_insn): Likewise.
32440 (s390_optimize_prologue): Likewise.
32441 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
32443 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32446 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
32448 (ix86_option_override_internal): Disable TARGET_STV even for
32449 -m{incoming,preferred}-stack-boundary=3.
32451 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32453 * config.gcc: Mark deprecated rtems targets as obsolete.
32455 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
32457 PR rtl-optimization/64682
32458 PR rtl-optimization/69567
32459 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
32460 before I2 only if the register is both used and set in I2.
32462 2016-02-04 DJ Delorie <dj@redhat.com>
32464 * config/msp430/msp430.c (msp430_start_function): Add function type.
32466 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32469 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
32471 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
32473 PR rtl-optimization/69577
32475 2015-10-29 Richard Henderson <rth@redhat.com>
32479 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
32480 sse check to the exact conditions of PR 67609.
32482 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
32485 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
32486 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
32487 not allowed into the traditional Altivec registers.
32488 (movtd_64bit_nodm): Likewise.
32489 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
32491 2016-02-04 David Malcolm <dmalcolm@redhat.com>
32493 * config/aarch64/cortex-a57-fma-steering.c
32494 (aarch64_register_fma_steering): Remove "static" from arguments
32497 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
32500 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
32501 twice when complex.
32503 2016-02-04 Mike Frysinger <vapier@gentoo.org>
32505 * doc/invoke.texi: Delete -mno-fma4.
32507 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
32509 PR rtl-optimization/69577
32510 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
32511 (find_subregs_of_mode): Update accordingly. Iterate over partial
32514 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
32516 * config/arm/arm-protos.h (neon_reinterpret): Remove.
32517 * config/arm/arm.c (neon_reinterpret): Remove.
32518 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
32519 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
32520 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
32521 vreinterpretti): Remove.
32522 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
32523 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
32524 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
32525 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
32526 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
32527 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
32528 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
32529 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
32530 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
32531 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
32532 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
32533 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
32534 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
32535 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
32536 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
32537 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
32538 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
32539 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
32540 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
32541 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
32542 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
32543 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
32544 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
32545 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
32546 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
32547 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
32548 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
32549 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
32550 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
32551 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
32552 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
32553 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
32554 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
32555 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
32556 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
32557 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
32558 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
32559 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
32560 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
32561 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
32562 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
32563 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
32564 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
32565 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
32566 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
32567 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
32568 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
32569 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
32570 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
32571 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
32572 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
32573 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
32574 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
32575 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
32576 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
32577 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
32578 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
32579 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
32580 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
32581 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
32582 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
32583 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
32584 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
32585 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
32586 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
32587 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
32588 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
32589 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
32590 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
32591 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
32592 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
32593 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
32594 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
32595 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
32596 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
32597 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
32598 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
32599 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
32600 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
32601 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
32602 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
32603 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
32604 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
32605 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
32606 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
32607 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
32608 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
32609 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
32610 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
32611 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
32612 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
32613 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
32614 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
32615 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
32616 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
32617 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
32618 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
32619 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
32620 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
32621 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
32622 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
32623 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
32624 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
32626 2016-02-04 Martin Liska <mliska@suse.cz>
32629 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
32630 that are gimple_store_p.
32631 (maybe_instrument_call): Likewise.
32633 2016-02-04 Bin Cheng <bin.cheng@arm.com>
32635 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
32636 register scaling out of memory reference and comment why.
32638 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32642 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
32643 folding the source of a SET.
32645 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32649 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
32650 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
32652 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
32656 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
32659 2016-02-04 Christian Bruel <christian.bruel@st.com>
32661 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
32662 * config/arm/arm.c (arm_set_current_function): Likewise.
32664 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32665 Ilya Enkovich <enkovich.gnu@gmail.com>
32666 H.J. Lu <hongjiu.lu@intel.com>
32669 * config/i386/i386.c (convert_scalars_to_vector): Remove
32670 stack alignment fixes.
32671 (ix86_option_override_internal): Disable TARGET_STV if stack
32672 might not be aligned enough.
32673 (ix86_minimum_alignment): Assert that TARGET_STV is false.
32675 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
32677 * config/i386/x86-tune.def: Disable default prefetching
32680 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32681 Vladimir Makarov <vmakarov@redhat.com>
32684 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
32685 in validating fused toc addresses.
32687 2016-02-03 Jakub Jelinek <jakub@redhat.com>
32690 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
32691 range->m_caret fields if range->m_show_caret_p is false.
32694 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
32695 Force oldval into register if it does not satisfy reg_or_short_operand
32696 predicate. Fix up formatting.
32698 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
32699 Alexandre Oliva <aoliva@redhat.com>
32702 * lra-constraints.c (simplify_operand_subreg): Check additionally
32703 address validity after potential reloading.
32704 (process_address_1): Check insns validity. In case of failure do
32707 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
32710 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
32713 2016-02-02 Jakub Jelinek <jakub@redhat.com>
32715 * wide-int.cc (canonize_uhwi): New function.
32716 (wi::divmod_internal): Use it.
32718 2016-02-02 James Norris <jnorris@codesourcery.com>
32720 * gimplify.c (omp_notice_variable): Add usage check.
32722 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
32724 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
32725 like LE, GE, LT, GT when emitting relational operator.
32727 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32729 * ira-costs.c (find_costs_and_classes): Add extra argument.
32730 * target.def (ira_change_pseudo_allocno_class): Add parameter.
32731 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
32732 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
32733 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
32734 Add best_class parameter, and return it if not ALL_REGS.
32735 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
32737 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
32738 Update target hook.
32740 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32742 * config/aarch64/aarch64.c
32743 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
32744 (aarch64_ira_change_pseudo_allocno_class): New function.
32746 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
32749 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
32751 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32753 * config/avr/avr.c (avr_option_override): Set
32754 PARAM_ALLOW_STORE_DATA_RACES to 1.
32756 2016-02-02 Richard Biener <rguenther@suse.de>
32758 PR tree-optimization/69595
32759 * match.pd: Add range test simplifications to true/false.
32761 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
32763 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
32764 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
32767 2016-02-02 Richard Biener <rguenther@suse.de>
32769 PR tree-optimization/69606
32770 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
32771 info on the result before moving a stmt.
32773 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
32775 PR middle-end/68542
32776 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
32777 branch with vector comparison.
32778 * config/i386/sse.md (VI48_AVX): New mode iterator.
32779 (define_expand "cbranch<mode>4): Add support for conditional branch
32780 with vector comparison.
32781 * tree-vect-loop.c (optimize_mask_stores): New function.
32782 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
32783 has_mask_store field of vect_info.
32784 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
32785 vectorized loops having masked stores after vec_info destroy.
32786 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
32787 correspondent macros.
32788 (optimize_mask_stores): Add prototype.
32790 2016-02-02 Alan Modra <amodra@gmail.com>
32793 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
32796 2016-02-02 Alan Modra <amodra@gmail.com>
32799 * config/rs6000/rs6000.c (need_toc_init): New var, set it
32800 whenever toc_label_name used.
32801 (rs6000_file_start): Don't set up toc section here,
32802 (rs6000_output_function_epilogue): do so here instead,
32803 (rs6000_xcoff_file_start): and here.
32804 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
32805 (load_toc_aix_di): Likewise.
32807 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32809 PR rtl-optimization/69592
32810 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
32811 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
32812 (num_sign_bit_copies_binary_arith_p): New inline function.
32813 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
32815 2016-02-01 Jeff Law <law@redhat.com>
32817 PR tree-optimization/69580
32818 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
32819 * tree-ssa-threadbackward.c
32820 (fsm_find_control_statement_thread_paths): Do not try to walk
32821 through large PHI nodes.
32823 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32825 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
32826 when count is incremented above limit, don't analyze further
32829 * omp-low.c (oacc_parse_default_dims): Avoid
32830 -Wsign-compare warning, make sure value fits into int
32831 rather than just unsigned int.
32833 2016-02-01 Bin Cheng <bin.cheng@arm.com>
32835 PR tree-optimization/67921
32836 * fold-const.c (split_tree): New parameters. Convert pointer
32837 type variable part to proper type before negating.
32838 (fold_binary_loc): Pass new arguments to split_tree.
32840 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
32842 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
32843 (nvptx_goacc_validate_dims): Extend to handle global defaults.
32844 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
32845 * doc/tm.texti: Rebuilt.
32846 * doc/invoke.texi (fopenacc-dim): Document.
32847 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
32848 (append_compiler_options): Likewise.
32849 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
32850 (oacc_parse_default_dims): New.
32851 (oacc_validate_dims): Add USED arg. Select non-unity default when
32853 (oacc_loop_fixed_partitions): Return mask of used partitions.
32854 (oacc_loop_auto_partitions): Emit dump info.
32855 (oacc_loop_partition): Return mask of used partitions.
32856 (execute_oacc_device_lower): Parse default dimension arg. Adjust
32857 loop partitioning and validation calls.
32859 2016-02-01 Richard Biener <rguenther@suse.de>
32861 PR middle-end/69556
32862 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
32864 2016-02-01 Richard Biener <rguenther@suse.de>
32866 PR tree-optimization/69574
32867 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
32868 of asserting return chrec_dont_know.
32870 2016-02-01 Martin Liska <mliska@suse.cz>
32872 * mem-stats-traits.h: Add copyright header.
32873 * mem-stats.h: Likewise.
32875 2016-02-01 Richard Biener <rguenther@suse.de>
32877 PR tree-optimization/69579
32878 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
32879 Do not propagate through abnormal PHI results.
32881 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
32883 * postreload.c (reload_cse_simplify): Remove dead code.
32885 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32887 PR rtl-optimization/69570
32888 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
32889 if there is more than one set, not if there is a single set.
32891 2016-02-01 Richard Henderson <rth@redhat.com>
32894 * combine.c (make_compound_operation): When looking through a
32895 subreg, make sure to re-extend to the width of the outer mode.
32897 2016-01-30 Jakub Jelinek <jakub@redhat.com>
32899 PR tree-optimization/69546
32900 * wide-int.cc (wi::divmod_internal): For unsigned division
32901 where both operands fit into uhwi, if o1 is 1 and o0 has
32902 msb set, if divident_prec is larger than bits per hwi,
32903 clear another quotient word and return 2 instead of 1.
32904 Similarly for remainder with msb in HWI set, if dividend_prec
32905 is larger than bits per hwi.
32907 2016-01-29 Martin Jambor <mjambor@suse.cz>
32909 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
32910 Use short lowercase names.
32911 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
32912 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
32913 acq_rel one. Protect warning agains segfaults if
32914 get_memory_order_name returns NULL.
32915 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
32916 with release semantics. Do not warn if get_memory_order already did.
32917 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
32918 semantics. Fix check for relaxed or acquire semantics. Do not warn
32919 if get_memory_order already did.
32921 2016-01-29 Sebastian Pop <s.pop@samsung.com>
32923 * doc/install.texi: Document that isl-0.16 is supported.
32925 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
32928 * config/i386/constraints.md (Bm): Describe as special memory
32930 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
32931 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32932 * genpreds.c (struct constraint_data): Add is_special_memory.
32933 (have_special_memory_constraints, special_memory_start): New
32935 (special_memory_end): Ditto.
32936 (add_constraint): Add new arg is_special_memory. Add code to
32937 process its true value. Update have_special_memory_constraints.
32938 (process_define_constraint): Pass the new arg.
32939 (process_define_register_constraint): Ditto.
32940 (choose_enum_order): Process special memory.
32941 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
32942 function insn_extra_special_memory_constraint.
32943 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32944 * gensupport.c (process_rtx): Process
32945 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32946 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
32947 * ira-lives.c (single_reg_class): Use
32948 insn_extra_special_memory_constraint.
32949 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
32950 * lra-constraints.c (process_alt_operands): Ditto.
32951 (curr_insn_transform): Use insn_extra_special_memory_constraint.
32952 * recog.c (asm_operand_ok, preprocess_constraints): Process
32954 * reload.c (find_reloads): Ditto.
32955 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
32956 * stmt.c (parse_input_constraint): Use
32957 insn_extra_special_memory_constraint.
32959 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32962 * lra-splill.c (lra_final_code_change): Revert r229087 by
32963 removing all sub-registers.
32965 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
32968 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
32970 2016-01-29 Jakub Jelinek <jakub@redhat.com>
32973 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
32974 SSE1, copy target into the temporary reg first before recursing
32977 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32979 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
32982 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32984 * ginclude/stdarg.h: Test __cplusplus instead of
32985 __GXX_EXPERIMENTAL_CXX0X__.
32987 2016-01-29 Richard Biener <rguenther@suse.de>
32989 PR tree-optimization/69547
32990 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
32991 Do not mark clobbers necessary.
32992 (mark_all_reaching_defs_necessary_1): Likewise.
32994 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32996 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
32997 declaration name with %qs and print it in both error messages.
32998 Also fix indentation.
33000 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
33003 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
33004 trailing blank line from error message.
33006 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
33009 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
33012 2016-01-29 Richard Biener <rguenther@suse.de>
33014 PR middle-end/69537
33015 * match.pd: Allow all integral types when simplifying a
33016 widening or sign-changing conversion.
33018 2016-01-28 Sebastian Pop <s.pop@samsung.com>
33020 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
33021 back to setting codegen_error to fail codegen.
33023 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
33026 * config/i386/constraints.md (C): Only accept constant zero operand.
33027 (BC): New constraint.
33028 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
33029 instead of C constraint.
33030 * doc/md.texi (Machine Constraints): Update description
33033 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
33036 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
33038 2016-01-28 Jakub Jelinek <jakub@redhat.com>
33040 PR middle-end/69542
33041 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
33044 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
33046 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
33047 branches if using guessed profile.
33049 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
33051 * graphite-optimize-isl.c (optimize_isl): Fix dump.
33053 2016-01-28 Richard Henderson <rth@redhat.com>
33056 * config/aarch64/aarch64-modes.def (CC_Cmode): New
33057 * config/aarch64/aarch64-protos.h: Update.
33058 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
33059 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
33060 (aarch64_get_condition_code_1): Handle CC_Cmode.
33061 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
33062 (*add<mode>3_compareC_cconly_imm): New.
33063 (*add<mode>3_compareC_cconly): New.
33064 (*add<mode>3_compareC_imm): New.
33065 (add<mode>3_compareC): New.
33066 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
33067 to be first. Use aarch64_carry_operation.
33068 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
33069 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
33070 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
33071 (subti3): Use subdi3_compare1.
33072 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
33073 (sub<mode>3_compare1): New.
33074 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
33075 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
33076 (*subsi3_carryin_uxtw): Likewise.
33077 (*ngc<mode>, *ngcsi_uxtw): Likewise.
33078 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
33079 * config/aarch64/iterators.md (DWI): New.
33080 * config/aarch64/predicates.md (aarch64_carry_operation): New.
33081 (aarch64_borrow_operation): New.
33083 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
33085 * graphite-optimize-isl.c (optimize_isl): Print a different debug
33086 message when isl does not return a valid schedule.
33088 2016-01-28 Sebastian Pop <s.pop@samsung.com>
33090 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
33091 Remove comments from class declarations: they are already in the code
33094 2016-01-28 Sebastian Pop <s.pop@samsung.com>
33096 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
33098 (ternary_op_to_tree): Same.
33099 (unary_op_to_tree): Same.
33100 (nary_op_to_tree): Same.
33101 (gcc_expression_from_isl_expr_op): Same.
33102 (gcc_expression_from_isl_expression): Same.
33103 (graphite_create_new_loop): Same.
33104 (graphite_create_new_loop_guard): Same.
33105 (build_iv_mapping): Same.
33106 (graphite_create_new_guard): Same.
33107 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
33108 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
33110 2016-01-28 Sebastian Pop <s.pop@samsung.com>
33112 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
33113 instead of setting codegen_error to fail codegen.
33115 2016-01-28 Jason Merrill <jason@redhat.com>
33117 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
33119 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33121 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
33122 Remove CONST_INT_P check in CCMP cost calculation.
33124 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33126 * config/aarch64/aarch64.c (generic_vector_cost):
33127 Set vec_permute_cost.
33128 (cortexa57_vector_cost): Likewise.
33129 (exynosm1_vector_cost): Likewise.
33130 (xgene1_vector_cost): Likewise.
33131 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
33132 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
33133 Add vec_permute_cost entry.
33135 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33137 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
33139 (add<mode>3_compare0): Likewise.
33140 (addsi3_compare0_uxtw): Likewise.
33141 (add<mode>3nr_compare0): Likewise.
33142 (compare_neg<mode>): Likewise.
33143 (<optab><mode>3): Likewise.
33145 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
33147 * tree-vect-stmts.c (vectorizable_comparison): Add
33148 NULL check for vectype.
33150 2016-01-28 Richard Biener <rguenther@suse.de>
33152 PR tree-optimization/69466
33153 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
33154 Account for PHIs we couldn't duplicate.
33156 2016-01-28 Martin Liska <mliska@suse.cz>
33159 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
33160 instead of ENABLE_VALGRIND_CHECKING.
33162 2016-01-27 Richard Henderson <rth@redhat.com>
33165 * lra-remat.c (subreg_regs): New.
33166 (dump_candidates_and_remat_bb_data): Dump it.
33167 (operand_to_remat): Reject if operand in subreg_regs.
33168 (set_bb_regs): Collect subreg_regs.
33169 (lra_remat): Init and free subreg_regs. Compute
33170 calculate_local_reg_remat_bb_data before create_cands.
33172 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
33175 * config/i386/i386.c (ix86_update_stack_boundary): Don't
33176 change stack_alignment_needed for __tls_get_addr call.
33178 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
33180 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
33182 2016-01-27 Jeff Law <law@redhat.com>
33184 PR tree-optimization/68398
33185 PR tree-optimization/69196
33186 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
33187 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
33188 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33189 Only count PHIs in the last block in the path. The others will
33190 const/copy propagate away. Add heuristic to allow more irreducible
33191 subloops to be created when it is likely profitable to do so.
33193 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33194 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
33195 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
33197 2016-01-27 Jakub Jelinek <jakub@redhat.com>
33200 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
33201 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
33202 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
33203 * tree-streamer-in.c: Include asan.h.
33204 (streamer_get_builtin_tree): For builtins in sanitizer
33205 range call initialize_sanitizer_builtins and retry.
33207 2016-01-27 Ian Lance Taylor <iant@google.com>
33209 * common.opt (fkeep-gc-roots-live): New undocumented option.
33210 * tree-ssa-loop-ivopts.c (add_candidate_1): If
33211 -fkeep-gc-roots-live, skip pointers.
33212 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
33215 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
33218 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
33219 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
33221 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
33224 * configure.ac: NetBSD provides SSP in its C library.
33225 * configure: Updated.
33227 2016-01-27 Richard Biener <rguenther@suse.de>
33229 PR tree-optimization/69166
33230 * tree-vect-loop.c (vect_is_simple_reduction): Always check
33231 reduction code for commutativity / associativity.
33233 2016-01-27 Martin Jambor <mjambor@suse.cz>
33235 PR tree-optimization/69355
33236 * tree-sra.c (analyze_access_subtree): Correct hole detection when
33237 total_scalarization fails.
33239 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
33241 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
33244 2016-01-27 Christian Bruel <christian.bruel@st.com>
33247 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
33248 Move arm_reset_previous_fndecl and set_target_option_current_node in
33249 the conditional part. Call save_restore_target_globals.
33250 * config/arm/arm.c (arm_set_current_function):
33251 Refactor to better support #pragma target and attribute mix.
33252 Call save_restore_target_globals.
33253 * config/arm/arm-protos.h (save_restore_target_globals): New function.
33255 2016-01-27 Martin Liska <mliska@suse.cz>
33257 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
33258 reference for an HSA kernel and its host function.
33260 2016-01-27 Jakub Jelinek <jakub@redhat.com>
33262 PR tree-optimization/69399
33263 * wide-int.h (wi::lrshift): For larger precisions, only
33264 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
33266 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
33268 * config/arc/predicates.md (proper_comparison_operator): Reject
33269 constant-constant comparison.
33271 2016-01-26 Tom de Vries <tom@codesourcery.com>
33273 PR tree-optimization/69110
33274 * tree-data-ref.c (initialize_data_dependence_relation): Handle
33275 DR_NUM_DIMENSIONS == 0.
33277 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
33278 Sebastian Pop <s.pop@samsung.com>
33280 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
33281 isl_ast_op_cond and isl_ast_op_select.
33282 (gcc_expression_from_isl_expr_op): Same.
33284 2016-01-26 Jason Merrill <jason@redhat.com>
33287 * tree.c (recompute_constructor_flags): Split out from
33289 (verify_constructor_flags): New.
33290 * tree.h: Declare them.
33292 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
33294 PR rtl-optimization/69217
33295 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
33296 are no TYPE_FIELDS set for the record type.
33298 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33301 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
33302 toc_label_name unconditionally.
33303 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
33304 SYMBOL_REF string. Use toc_label_name instead of constructing
33306 (rs6000_elf_declare_function_name): Use toc_label_name instead of
33307 constructing LCTOC1.
33309 2016-01-26 Martin Sebor <msebor@redhat.com>
33312 * doc/extend.texi (Common Type Attributes): Move text that talks about
33313 attribute packed from attribute aligned to the section discussing
33314 the former attribute for clarity.
33316 2016-01-26 Richard Henderson <rth@redhat.com>
33318 PR middle-end/60908
33319 * trans-mem.c (tm_region_init): Mark entry block as visited.
33321 2016-01-26 David Malcolm <dmalcolm@redhat.com>
33324 * diagnostic-show-locus.c (layout::print_source_line): Replace
33325 call to pp_newline with call to layout::print_newline.
33326 (layout::print_annotation_line): Likewise.
33327 (layout::move_to_column): Likewise.
33328 (layout::print_any_fixits): After printing any fixits, print a
33329 trailing newline, if necessary.
33330 (layout::print_newline): New method, resetting any colorization
33332 (diagnostic_show_locus): Move the pp_newline to before the
33333 early bailout. Remove dummy block enclosing the layout instance.
33334 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
33335 of pp_newline_and_flush with pp_flush.
33336 (diagnostic_append_note): Delete use of pp_newline.
33337 (diagnostic_append_note_at_rich_loc): Delete.
33338 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
33339 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
33340 when newline characters are added to the buffer.
33342 2016-01-26 Michael Matz <matz@suse.de>
33344 * configure.ac (ac_cv_std_swap_in_utility): New test.
33345 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
33346 * configure: Regenerate.
33347 * config.in: Regenerate.
33349 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
33351 * config/arc/arc.md (cstoresi4): Force operand into register.
33352 (arcset<code>): Fix predicate.
33353 (arcsetltu): Likewise.
33354 (arcsetgeu): Likewise.
33355 (arcsethi): Likewise.
33356 (arcsetls): Likewise.
33358 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33360 PR tree-optimization/69483
33361 * gimple-fold.c (canonicalize_constructor_val): Return NULL
33362 if base has error_mark_node type.
33364 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
33367 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
33368 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
33370 (vget_lane_f16): Handle big-endian.
33371 (vgetq_lane_f16): Likewise.
33372 (vset_lane_f16): Likewise.
33373 (vsetq_lane_f16): Likewise.
33374 * config/arm/iterators.md (VQXMOV): Add V8HF.
33375 (VDQ): Add V4HF and V8HF.
33376 (V_reg): Handle V4HF and V8HF.
33377 (Is_float_mode): Likewise.
33378 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
33379 neon_vdup_nv8hf): New patterns.
33380 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
33381 Use VD_LANE iterator.
33382 (neon_vld1_dup<mode>): Use VQ2 iterator.
33384 2016-01-26 Nathan Sidwell <nathan@acm.org>
33386 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
33387 (set_oacc_fn_attrib): Add IS_KERNEL arg.
33388 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
33389 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
33390 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
33391 (oacc_validate_dims): Add LEVEL arg, don't return level.
33392 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
33393 oacc_validate_dims.
33394 (execute_oacc_device_lower): Adjust, add more dump output.
33395 * tree-ssa-loop.c (gate_oacc_kernels): Use
33396 oacc_fn_attrib_kernels_p.
33397 * tree-parloops.c (create_parallel_loop): Adjust
33398 set_oacc_fn_attrib call.
33400 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33403 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
33404 (append_compiler_options): Handle -fcilkplus.
33405 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
33407 2016-01-26 Nick Clifton <nickc@redhat.com>
33410 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
33411 been marked as DECL_ONE_ONLY but we do not the means to make it
33412 so, then do not allow it to bind locally.
33414 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33417 * opts.h (parse_sanitizer_options): New prototype.
33418 * opts.c (sanitizer_opts): New array.
33419 (parse_sanitizer_options): New function.
33420 (common_handle_option): Use parse_sanitizer_options.
33422 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
33425 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
33426 alignment adjustment to ...
33427 (ix86_update_stack_boundary): Here. Don't over-align stack for
33429 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
33430 if __tls_get_addr is called.
33432 2016-01-26 Christian Bruel <christian.bruel@st.com>
33434 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
33436 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
33438 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
33440 2016-01-26 Richard Biener <rguenther@suse.de>
33442 PR middle-end/69467
33443 * match.pd: Guard X * CST CMP 0 pattern with single_use.
33445 2016-01-26 Richard Biener <rguenther@suse.de>
33447 PR tree-optimization/69452
33448 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
33449 (move_computations_dom_walker::before_dom_children): Rename
33451 (move_computations_worker): This.
33452 (move_computations): Perform an RPO rather than a DOM walk.
33454 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33457 * combine.c (combine_instructions): For REG_EQUAL note with
33458 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
33459 to the underlying register.
33460 * doc/rtl.texi (REG_EQUAL): Document the behavior of
33461 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
33463 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
33466 * config/aarch64/aarch64-builtins.c
33467 (aarch64_init_simd_builtin_types): Do not set structural
33468 equality to __Poly{8,16,64,128}_t types.
33470 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
33472 PR tree-optimization/69400
33473 * wide-int.cc (wi_pack): Take the precision as argument and
33474 perform canonicalization here rather than in the callers.
33475 Use the main loop to handle all full-width HWIs. Add a
33476 zero HWI if in_len isn't a full result.
33477 (wi::divmod_internal): Update accordingly.
33478 (wi::mul_internal): Likewise. Simplify.
33480 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33481 Sebastian Pop <s.pop@samsung.com>
33483 * graphite-poly.c (apply_poly_transforms): Simplify.
33484 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
33485 (print_isl_map): Same.
33486 (print_isl_union_map): Same.
33487 (print_isl_schedule): New.
33488 (debug_isl_schedule): New.
33489 * graphite-dependences.c (scop_get_reads): Do not call
33490 isl_union_map_add_map that is undocumented isl functionality.
33491 (scop_get_must_writes): Same.
33492 (scop_get_may_writes): Same.
33493 (scop_get_original_schedule): Remove.
33494 (scop_get_dependences): Do not call isl_union_map_compute_flow that
33495 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
33496 (compute_deps): Remove.
33497 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
33498 (debug_schedule_ast): New.
33499 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
33500 set_separate_option.
33501 (graphite_regenerate_ast_isl): Add dump.
33502 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
33503 from scop->transformed_schedule.
33504 (graphite_regenerate_ast_isl): Add more dump.
33505 * graphite-optimize-isl.c (optimize_isl): Set
33506 scop->transformed_schedule. Check whether schedules are equal.
33507 (apply_poly_transforms): Move here.
33508 * graphite-poly.c (apply_poly_transforms): ... from here.
33509 (free_poly_bb): Static.
33510 (free_scop): Static.
33511 (pbb_number_of_iterations_at_time): Remove.
33512 (print_isl_ast): New.
33513 (debug_isl_ast): New.
33514 (debug_scop_pbb): New.
33515 * graphite-scop-detection.c (print_edge): Move.
33516 (print_sese): Move.
33517 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
33518 (build_scop_scattering): Remove.
33519 (create_pw_aff_from_tree): Assert instead of bailing out.
33520 (add_condition_to_pbb): Remove unused code, do not fail.
33521 (add_conditions_to_domain): Same.
33522 (add_conditions_to_constraints): Remove.
33523 (build_scop_context): New.
33524 (add_iter_domain_dimension): New.
33525 (build_iteration_domains): Initialize pbb->iterators.
33526 Call add_conditions_to_domain.
33529 (index_outermost_in_loop): New.
33530 (index_pbb_in_loop): New.
33531 (outermost_pbb_in): New.
33532 (add_in_sequence): New.
33533 (add_outer_projection): New.
33534 (outer_projection_mupa): New.
33535 (add_loop_schedule): New.
33536 (build_schedule_pbb): New.
33537 (build_schedule_loop): New.
33538 (embed_in_surrounding_loops): New.
33539 (build_schedule_loop_nest): New.
33540 (build_original_schedule): New.
33541 (build_poly_scop): Call build_original_schedule.
33542 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
33543 (free_poly_dr): Remove.
33544 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
33545 (free_poly_bb): Remove.
33546 (debug_loop_vec): Remove.
33547 (print_isl_ast): Declare.
33548 (debug_isl_ast): Declare.
33549 (scop_do_interchange): Remove.
33550 (scop_do_strip_mine): Remove.
33551 (scop_do_block): Remove.
33552 (flatten_all_loops): Remove.
33553 (optimize_isl): Remove.
33554 (pbb_number_of_iterations_at_time): Remove.
33555 (debug_scop_pbb): Declare.
33556 (print_schedule_ast): Declare.
33557 (debug_schedule_ast): Declare.
33558 (struct scop): Remove schedule. Add original_schedule,
33559 transformed_schedule.
33560 (free_gimple_poly_bb): Remove.
33561 (print_generated_program): Remove.
33562 (debug_generated_program): Remove.
33563 (unify_scattering_dimensions): Remove.
33564 * sese.c (print_edge): ... here.
33565 (print_sese): ... here.
33566 (debug_edge): ... here.
33567 (debug_sese): ... here.
33568 * sese.h (print_edge): Declare.
33569 (print_sese): Declare.
33570 (dump_edge): Declare.
33571 (dump_sese): Declare.
33573 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33574 Sebastian Pop <s.pop@samsung.com>
33576 * Makefile.in: Set ISLVER in site.exp.
33578 2016-01-25 Jakub Jelinek <jakub@redhat.com>
33580 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
33581 DECL_VALUE_EXPR of new_var even for the non-array case. Look
33582 through DECL_VALUE_EXPR for expansion.
33584 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
33586 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
33587 the frame info after reload completed.
33589 2016-01-25 Jeff Law <law@redhat.com>
33591 PR tree-optimization/69196
33592 PR tree-optimization/68398
33593 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
33594 tree-ssa-threadupdate.c.
33595 (determine_bb_domination_status): Prototype
33596 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
33597 (determine_bb_domination_status): No longer static.
33598 (valid_jump_thread_path): Remove code to detect characteristics
33599 of the jump thread path not associated with correctness.
33600 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
33601 Correct test for thread path length. Count PHIs for real operands as
33602 statements that need to be copied. Do not count ASSERT_EXPRs.
33603 Look at all the blocks in the thread path. Compute and selectively
33604 filter thread paths based on threading through the latch, threading
33605 a multiway branch or crossing a multiway branch.
33607 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33609 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
33610 decl with __attribute__ ((unused)) annotation.
33612 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
33615 * tree-vect-stmts.c (vectorizable_condition): Check vectype
33616 of operands is compatible with a statement vectype.
33618 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
33620 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
33621 improve wording for mixed storage order support.
33623 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
33625 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
33626 (vcvt_u64_f64): Likewise.
33627 (vcvta_s64_f64): Likewise.
33628 (vcvta_u64_f64): Likewise.
33629 (vcvtm_s64_f64): Likewise.
33630 (vcvtm_u64_f64): Likewise.
33631 (vcvtn_s64_f64): Likewise.
33632 (vcvtn_u64_f64): Likewise.
33633 (vcvtp_s64_f64): Likewise.
33634 (vcvtp_u64_f64): Likewise.
33636 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
33638 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
33639 (arc_init): Check validity mll64 option.
33640 (arc_save_restore): Use double load/store instruction.
33641 (arc_expand_movmem): Likewise.
33642 (arc_split_move): Don't split if we have double load/store
33643 instructions. Returns a boolean.
33644 (arc_process_double_reg_moves): Change function to return boolean
33645 instead of a sequence of instructions.
33646 (arc_dwarf_register_span): New function.
33647 * config/arc/arc-protos.h (arc_split_move): Change prototype.
33648 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
33649 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
33650 (*movdf_insn): Likewise.
33651 * config/arc/arc.opt (mll64): New option.
33652 * config/arc/predicates.md (even_register_operand): New predicate.
33653 * doc/invoke.texi (ARC Options): Add mll64 documentation.
33655 2016-01-25 Richard Biener <rguenther@suse.de>
33658 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
33659 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
33661 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
33663 2016-01-25 Richard Biener <rguenther@suse.de>
33665 PR tree-optimization/69376
33666 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
33668 (VN_INFO_ANTI_RANGE_P): New inline.
33669 (VN_INFO_RANGE_TYPE): Likewise.
33670 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
33671 SSA_NAME_ANTI_RANGE_P.
33672 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
33673 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33674 Properly query VN_INFO_RANGE_TYPE.
33676 2016-01-25 Nick Clifton <nickc@redhat.com>
33679 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
33681 2016-01-23 Tom de Vries <tom@codesourcery.com>
33683 PR tree-optimization/69426
33684 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
33687 2016-01-23 Jakub Jelinek <jakub@redhat.com>
33689 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
33690 "the the" with "the" in the comments.
33691 * ipa-devirt.c (build_type_inheritance_graph,
33692 update_type_inheritance_graph): Likewise.
33693 * tree.c (build_function_type_list_1): Likewise.
33694 * cfgloopmanip.c (scale_loop_profile): Likewise.
33695 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
33696 * gimple-ssa-split-paths.c
33697 (find_block_to_duplicate_for_splitting_paths): Likewise.
33698 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
33699 * expr.c (convert_move): Likewise.
33700 * var-tracking.c (vt_stack_adjustments): Likewise.
33701 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
33702 * tree-vrp.c (test_for_singularity): Likewise.
33704 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
33705 directly instead of building a temporary tree.
33708 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
33709 remove <algorithm> include.
33711 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33714 * config/i386/i386.c: Include dojump.h.
33715 (expand_small_movmem_or_setmem,
33716 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
33718 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
33719 if dynamic_check != -1.
33721 2016-01-21 Jeff Law <law@redhat.com>
33723 PR middle-end/69347
33724 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
33725 record_temporary_equivalences. Rewritten to avoid unnecessary calls
33726 into dominated_by_p.
33727 (cprop_into_successor_phis): Avoid unnecessary tests.
33729 2016-01-22 Richard Henderson <rth@redhat.com>
33732 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
33733 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
33735 2016-01-22 Michael Matz <matz@suse.de>
33737 * system.h (string, algorithm): Include only conditionally.
33738 (new): Include always under C++.
33739 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
33740 * final.c (toplevel): Ditto.
33741 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
33742 * genconditions.c (write_header): Make gencondmd.c define
33744 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
33746 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
33747 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
33749 2016-01-22 Christian Bruel <christian.bruel@st.com>
33752 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
33754 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33757 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
33758 define_insn_and_split. Ensure operands[1] and operands[0] do not
33759 get assigned the same register.
33761 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
33763 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
33765 2016-01-22 Christian Bruel <christian.bruel@st.com>
33767 * config/arm/arm-c.c (arm_pragma_target_parse):
33768 Remove warn_builtin_macro_redefined overwrite.
33770 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33772 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
33773 flag_non_call_exceptions compatibility.
33775 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33778 * dwarf2out.c (add_child_die_after): New function.
33779 (dwarf_qual_info_t): New type.
33780 (dwarf_qual_info): New variable.
33781 (qualified_die_p): New function.
33782 (modified_type_die): For -fdebug-types-section, ensure
33783 canonical order of qualifiers. Put qualified DIEs adjacent
33784 to the corresponding non-qualified type DIE and search there
33785 for existing qualified DIEs.
33787 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33789 * doc/extend.texi (scalar_storage_order type attribute): Document
33790 restriction on type punning and aliasing, and remove future tense.
33792 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
33795 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
33798 2016-01-21 Jeff Law <law@redhat.com>
33800 PR middle-end/69347
33801 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
33802 useless call to record_temporary_equivalences.
33803 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
33804 allocate 10 slots in the bb_path vector and let it grow as needed.
33805 (fsm_find_control_statement_thread_paths): Similarly for the next_path
33808 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33810 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
33812 * configure: Regenerate.
33814 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
33816 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
33817 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
33819 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
33821 PR middle-end/66178
33822 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
33823 drop EXPAND_INITIALIZER.
33824 * rtl.h (contains_symbolic_reference_p): Declare.
33825 * rtlanal.c (contains_symbolic_reference_p): New function.
33826 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
33827 a subtraction into a NOT if symbolic constants are involved.
33829 2016-01-21 Anton Blanchard <anton@samba.org>
33830 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33833 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
33835 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
33838 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33840 * config/microblaze/microblaze.c
33841 (get_branch_target): New.
33842 (insert_wic_for_ilb_runout): New.
33844 (microblaze_machine_dependent_reorg): New.
33845 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
33846 * config/microblaze/microblaze.md
33847 (UNSPEC_IPREFETCH): Define.
33848 (iprefetch): New pattern
33849 * config/microblaze/microblaze.opt
33850 (mxl-prefetch): New flag.
33852 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33854 * config/microblaze/microblaze.h
33855 (FIXED_REGISTERS): Update in macro.
33856 (CALL_USED_REGISTERS): Update in macro.
33858 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
33860 PR rtl-optimization/68920
33861 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
33864 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
33866 PR rtl-optimization/68990
33867 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
33868 pseudo instead of inheritance ones.
33870 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33871 Nick Clifton <nickc@redhat.com>
33875 * config/mips/mips.c (mips_compute_frame_info): Initialise
33876 args_size and hard_frame_pointer_offset fields of the frame
33877 structure before calling mips_global_pointer.
33879 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33881 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
33883 * configure: Regenerate.
33885 2016-01-21 Richard Biener <rguenther@suse.de>
33887 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
33889 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33891 * config/s390/s390.c (s390_asm_declare_function_size): Add code
33892 to actually emit the .size directive.
33894 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
33895 Jakub Jelinek <jakub@redhat.com>
33899 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
33900 args array size by one to avoid buffer overflow.
33902 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33904 * config/s390/s390.md (pool_section_start): Use switch_to_section
33905 to select proper read-only data section instead of hardcoding
33907 (pool_section_end): Use switch_to_section to match the above.
33909 2016-01-21 Richard Biener <rguenther@suse.de>
33911 PR tree-optimization/69378
33912 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
33913 (set_ssa_val_to): Use it for dominance checks taking into
33914 account not executable edges.
33916 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33919 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
33920 for bitsize instead of GET_MODE_PRECISION (mode).
33922 2016-01-20 Martin Sebor <msebor@redhat.com>
33925 * extend.texi (__sync Builtins): Clarify the semantics of
33926 __sync_fetch_and_OP built-ins on pointers.
33927 (__atomic Builtins): Same.
33929 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33930 Sebastian Pop <s.pop@samsung.com>
33932 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
33933 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
33934 (is_valid_rename): Same.
33935 (translate_isl_ast_to_gimple::get_rename): Same.
33936 (translate_isl_ast_to_gimple::rename_all_uses): Same.
33937 (translate_isl_ast_to_gimple::rename_uses): Same.
33938 (get_new_name): Check for close_phi nodes.
33939 (copy_loop_phi_args): Use phi_node_kind.
33940 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
33941 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
33943 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33944 Sebastian Pop <s.pop@samsung.com>
33946 Revert commit r229783.
33947 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
33948 Remove use of parameter_rename_map.
33949 (copy_def): Remove.
33950 (copy_internal_parameters): Remove.
33951 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
33952 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
33953 (free_sese_info): Do not free parameter_rename_map.
33954 (set_rename): Do not use parameter_rename_map.
33955 (rename_uses): Update call to set_rename.
33956 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
33957 * sese.h (parameter_rename_map_t): Remove.
33958 (struct sese_info_t): Remove field parameter_rename_map.
33960 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33961 Sebastian Pop <s.pop@samsung.com>
33963 * graphite-isl-ast-to-gimple.c: Fix comment.
33964 * graphite-scop-detection.c (defined_in_loop_p): New.
33965 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
33966 names defined in loop.
33968 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33969 Sebastian Pop <s.pop@samsung.com>
33971 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
33972 Discard unstructured if-then-else regions.
33974 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33975 Sebastian Pop <s.pop@samsung.com>
33977 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
33978 (cleanup_loop_iter_dom): Remove.
33979 (build_loop_iteration_domains): Remove.
33980 (build_scop_context): Remove.
33981 (build_scop_iteration_domain): Remove.
33982 (add_loop_constraints): New.
33983 (build_iteration_domains): New.
33984 (build_poly_scop): Call build_iteration_domains.
33986 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33987 Sebastian Pop <s.pop@samsung.com>
33989 * graphite-scop-detection.c
33990 (scop_detection::harmful_loop_in_region): Free dom and loops.
33991 (scop_detection::loop_body_is_valid_scop): Free bbs.
33993 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33994 Sebastian Pop <s.pop@samsung.com>
33996 * graphite-scop-detection.c (record_loop_in_sese): New.
33997 (gather_bbs::before_dom_children): Call record_loop_in_sese.
33998 (build_scops): Remove call to build_sese_loop_nests.
33999 * sese.c (sese_record_loop): Remove.
34000 (build_sese_loop_nests): Remove.
34001 (new_sese_info): Remove region->loops.
34002 (free_sese_info): Same.
34003 * sese.h (sese_contains_loop): Same.
34004 (build_sese_loop_nests): Remove.
34005 (sese_contains_loop): Remove.
34007 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
34008 Sebastian Pop <s.pop@samsung.com>
34010 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
34011 loop_is_valid_in_scop.
34012 (scop_detection::harmful_stmt_in_region): Renamed
34013 harmful_loop_in_region.
34014 Call loop_is_valid_in_scop.
34016 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
34017 Sebastian Pop <s.pop@samsung.com>
34019 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
34022 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
34023 Sebastian Pop <s.pop@samsung.com>
34025 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
34026 * graphite.h (struct poly_bb): Remove field is_reduction.
34027 (PBB_IS_REDUCTION): Remove.
34029 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
34030 Sebastian Pop <s.pop@samsung.com>
34032 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
34033 (add_pdr_constraints): Same.
34034 (scop_get_reads): Same.
34035 (scop_get_must_writes): Same.
34036 (scop_get_may_writes): Same.
34037 (scop_get_original_schedule): Same.
34038 (extend_schedule): Same.
34039 (apply_schedule_on_deps): Same.
34040 (carries_deps): Same.
34041 (compute_deps): Same.
34042 (scop_get_dependences): Same.
34043 * graphite-isl-ast-to-gimple.c
34044 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
34045 * graphite-optimize-isl.c (get_schedule_for_band): Same.
34046 (get_schedule_for_band_list): Same.
34047 (get_schedule_map): Same.
34048 (apply_schedule_map_to_scop): Same.
34049 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
34050 (build_loop_iteration_domains): Same.
34051 (add_condition_to_pbb): Same.
34052 (add_param_constraints): Same.
34053 (pdr_add_memory_accesses): Same.
34054 (pdr_add_data_dimensions): Same.
34056 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
34058 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
34061 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
34063 * common.opt (feliminate-dwarf2-dups): Replace references to
34064 "DWARF 2" with just "DWARF".
34065 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
34066 * doc/extend.texi: Likewise.
34067 * doc/cpp.texi: Likewise.
34068 * doc/invoke.texi: Likewise.
34069 (Option Summary): Add -gdwarf to list of Debugging Options.
34070 (Debugging Options): Document -gdwarf.
34071 * doc/contrib.texi: Spell "DWARF" like that.
34073 2016-01-21 Jakub Jelinek <jakub@redhat.com>
34075 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
34076 warning. Fix up formatting.
34078 PR middle-end/67653
34079 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
34080 attempt to mark memory input operand addressable and
34081 call prepare_gimple_addressable in that case. Don't adjust
34082 input_location for diagnostics, use error_at instead.
34084 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
34086 * config/rs6000/ppc-auxv.h: New file.
34087 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
34088 (cpu_is): Likewise.
34089 (cpu_supports): Likewise.
34090 * config/rs6000/rs6000.c: include "ppc-auxv.h".
34091 (cpu_is_info): New variable.
34092 (cpu_supports_info): Likewise.
34093 (tcb_verification_symbol): Likewise.
34094 (cpu_builtin_p): Likewise.
34095 (cpu_expand_builtin): New function.
34096 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
34097 (rs6000_init_builtins): Likewise.
34098 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
34099 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
34100 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
34101 * configure: Regenerate.
34102 * config.in: Likewise.
34103 * doc/extend.texi (PowerPC Built-in Functions): Document
34104 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
34106 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
34109 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
34111 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
34114 2016-01-20 Richard Henderson <rth@redhat.com>
34120 * tree.c (tm_define_builtin): New.
34121 (find_tm_vector_type): New.
34122 (build_tm_vector_builtins): New.
34123 (build_common_builtin_nodes): Call it.
34125 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
34127 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
34128 (arm_fp_ok): Likewise.
34129 (arm_fp): Likewise.
34130 (arm_crypto): Likewise.
34132 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
34133 Richard Biener <rguenther@suse.de>
34135 PR tree-optimization/69328
34136 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
34137 vectors have same number of elements.
34138 (vectorizable_condition): Fix masked version recognition.
34140 2016-01-20 Richard Biener <rguenther@suse.de>
34142 PR tree-optimization/69345
34143 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
34144 (VN_INFO_PTR_INFO): Likewise.
34145 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
34146 info when it is equal between non-dominating SSA names.
34147 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34148 Make sure to look at original SSA infos.
34150 2016-01-20 Jeff Law <law@redhat.com>
34153 * config/m68k/predicates.md (pow2_m1_operand): New predicate
34155 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
34156 (pc_or_label_operand): New predicate.
34157 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
34158 tests for small integers that are 2^n - 1.
34160 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
34162 * doc/invoke.texi (Options Summary): Add '.' after @xref.
34164 2016-01-19 Jeff Law <law@redhat.com>
34166 PR middle-end/69347
34167 * tree-ssa-threadbackwards.c
34168 (fsm_find_control_statement_thread_paths): Do not try to lookup
34169 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
34171 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
34173 * doc/lto.texi: Remove text that says only Gold has linker plugin
34176 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
34178 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
34179 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
34180 the DIE accordingly.
34181 (modified_type_die): Add REVERSE parameter and pass it recursively,
34182 as well as to base_type_die. Adjust presence check accordingly.
34183 (base_type_for_mode): Adjust call to modified_type_die.
34184 (add_type_attribute): Add REVERSE parameter and pass it to
34186 (generic_parameter_die): Adjust call to add_type_attribute.
34187 (add_scalar_info): Likewise.
34188 (add_subscript_info): Likewise.
34189 (gen_array_type_die): Likewise.
34190 (gen_descr_array_type_die): Likewise.
34191 (gen_entry_point_die): Likewise.
34192 (gen_enumeration_type_die): Likewise.
34193 (gen_formal_parameter_die): Likewise.
34194 (gen_subprogram_die): Likewise.
34195 (gen_variable_die ): Likewise.
34196 (gen_const_die): Likewise.
34197 (gen_field_die): Likewise.
34198 (gen_pointer_type_die): Likewise.
34199 (gen_reference_type_die): Likewise.
34200 (gen_ptr_to_mbr_type_die): Likewise.
34201 (gen_inheritance_die): Likewise.
34202 (gen_subroutine_type_die): Likewise.
34203 (gen_typedef_die): Likewise.
34204 (force_type_die): Adjust call to modified_type_die.
34206 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
34208 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
34209 flow throughout the file. Fix broken link to Objective-C 2.0
34211 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
34214 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34216 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
34218 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34221 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
34222 (maybe_record_node): Record cxa_pure_virtual as the only possible
34223 target if there are not ohter candidates.
34224 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
34226 2016-01-19 Richard Biener <rguenther@suse.de>
34228 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
34229 (get_memory_order): Likewise.
34231 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
34233 * tree-vect-stmts.c (vectorizable_store): Check
34236 2016-01-19 David Malcolm <dmalcolm@redhat.com>
34239 * gcc.c (driver::decode_argv): Add call to
34240 init_opts_obstack before init_options_struct.
34241 * opts.c (init_opts_obstack): Remove idempotency.
34242 (init_options_struct): Replace call to init_opts_obstack
34243 with a gcc_assert to verify that it has already been called.
34244 * toplev.c (toplev::main): Add call to init_opts_obstack before
34245 calls to init_options_struct.
34246 (toplev::finalize): Move cleanup of opts_obstack next to
34247 cleanup of save_decoded_options, clearing the latter, and
34248 save_decoded_options_count.
34250 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34253 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
34254 attribute to unconditional. Remove %? from output template.
34256 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34257 Jiong Wang <jiong.wang@arm.com>
34259 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
34260 generated from different expand order.
34262 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34264 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
34265 Add support for CCMP costing.
34267 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34269 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
34270 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
34271 (fccmpe<mode>): Likewise.
34272 (fcmp): Rename to fcmp and globalize pattern.
34274 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
34275 (aarch64_gen_ccmp_next): Add FP support.
34277 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34279 * target.def (gen_ccmp_first): Update documentation.
34280 (gen_ccmp_next): Likewise.
34281 * doc/tm.texi (gen_ccmp_first): Update documentation.
34282 (gen_ccmp_next): Likewise.
34283 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
34284 expand_ccmp_expr_1. Improve comments.
34285 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
34286 (ccmp_ior<mode>): Remove pattern.
34287 (cmp<mode>): Remove expand.
34288 (cmp): Globalize pattern.
34289 (cstorecc4): Use cc_register.
34290 (mov<mode>cc): Remove ccmp_cc_register check.
34291 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
34292 Simplify after removal of CC_DNE/* modes.
34293 (aarch64_ccmp_mode_to_code): Remove.
34294 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
34295 In 'k' case use integer as condition.
34296 (aarch64_nzcv_codes): Remove inverted cases.
34297 (aarch64_code_to_ccmode): Remove.
34298 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
34299 comparison with CC register to be used in folowing CCMP/branch/CSEL.
34300 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
34301 pattern. Return the comparison with CC register. Invert conditions
34302 when bitcode is OR.
34303 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
34304 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
34306 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34308 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
34309 instrumented_version.
34311 2016-01-19 Richard Biener <rguenther@suse.de>
34313 PR tree-optimization/69336
34314 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
34315 handled components with get_ref_base_and_extent.
34316 (equal_mem_array_ref_p): Adjust.
34318 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34321 * shrink-wrap.c: Include valtrack.h.
34322 (move_insn_for_shrink_wrap): Add DEBUG argument. If
34323 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
34324 in between insn and where it will be moved to. Call
34325 dead_debug_insert_temp.
34326 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
34327 first and dead_debug_local_finish at the end.
34328 For uses and defs bitmap, handle all regs in between REGNO and
34329 END_REGNO, not just the first one.
34331 2016-01-19 Richard Biener <rguenther@suse.de>
34333 PR tree-optimization/69352
34334 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
34335 (equal_mem_array_ref_p): Constrain size and max size properly.
34336 Compare the reverse flag.
34338 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
34340 * ira.c (ira): Update regstat data if we deleted insns.
34342 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34344 PR rtl-optimization/68955
34345 PR rtl-optimization/64557
34346 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
34347 here. Fix up formatting.
34348 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
34350 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34353 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
34354 assume that the node has body.
34355 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
34358 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34360 * lto-streamer-out.c (lto_output): Do not stream instrumentation
34363 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34365 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
34366 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
34368 2016-01-19 Martin Jambor <mjambor@suse.cz>
34369 Martin Liska <mliska@suse.cz>
34370 Michael Matz <matz@suse.de>
34372 * Makefile.in (OBJS): Add new source files.
34373 (GTFILES): Add hsa.c.
34374 * common.opt (disable_hsa): New variable.
34375 (-Whsa): New warning.
34376 * config.in (ENABLE_HSA): New.
34377 * configure.ac: Treat hsa differently from other accelerators.
34378 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
34379 $enable_offloading.
34380 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
34381 * doc/install.texi (Configuration): Document --with-hsa-runtime,
34382 --with-hsa-runtime-include, --with-hsa-runtime-lib and
34383 --with-hsa-kmt-lib.
34384 * doc/invoke.texi (-Whsa): Document.
34385 (hsa-gen-debug-stores): Likewise.
34386 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
34387 to invoke offload compiler for hsa acclerator.
34388 * opts.c (common_handle_option): Determine whether HSA offloading
34389 should be performed.
34390 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
34391 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
34392 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
34393 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
34394 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
34395 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
34396 GF_OMP_FOR_KIND_GRID_LOOP.
34397 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
34398 (pp_gimple_stmt_1): Likewise.
34399 * gimple-walk.c (walk_gimple_stmt): Likewise.
34400 * gimple.c (gimple_build_omp_grid_body): New function.
34401 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
34402 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
34403 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
34404 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
34405 GF_OMP_TEAMS_GRID_PHONY.
34406 (gimple_statement_omp_single_layout): Updated comments.
34407 (gimple_build_omp_grid_body): New function.
34408 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
34409 (gimple_omp_for_grid_phony): New function.
34410 (gimple_omp_for_set_grid_phony): Likewise.
34411 (gimple_omp_parallel_grid_phony): Likewise.
34412 (gimple_omp_parallel_set_grid_phony): Likewise.
34413 (gimple_omp_teams_grid_phony): Likewise.
34414 (gimple_omp_teams_set_grid_phony): Likewise.
34415 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
34416 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
34417 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
34418 (BUILT_IN_GOMP_TARGET): Updated type.
34419 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
34420 (adjust_for_condition): New function.
34421 (get_omp_for_step_from_incr): Likewise.
34422 (extract_omp_for_data): Moved parts to adjust_for_condition and
34423 get_omp_for_step_from_incr.
34424 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
34425 (fixup_child_record_type): Bail out if receiver_decl is NULL.
34426 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
34427 (scan_omp_parallel): Do not create child functions for phony
34429 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
34430 (scan_omp_1_op): Checking assert we are not remapping to
34431 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
34432 (parallel_needs_hsa_kernel_p): New function.
34433 (expand_parallel_call): Register apprpriate parallel child
34434 functions as HSA kernels.
34435 (grid_launch_attributes_trees): New type.
34436 (grid_attr_trees): New variable.
34437 (grid_create_kernel_launch_attr_types): New function.
34438 (grid_insert_store_range_dim): Likewise.
34439 (grid_get_kernel_launch_attributes): Likewise.
34440 (get_target_argument_identifier_1): Likewise.
34441 (get_target_argument_identifier): Likewise.
34442 (get_target_argument_value): Likewise.
34443 (push_target_argument_according_to_value): Likewise.
34444 (get_target_arguments): Likewise.
34445 (expand_omp_target): Call get_target_arguments instead of looking
34446 up for teams and thread limit.
34447 (grid_expand_omp_for_loop): New function.
34448 (grid_arg_decl_map): New type.
34449 (grid_remap_kernel_arg_accesses): New function.
34450 (grid_expand_target_kernel_body): New function.
34451 (expand_omp): Call it.
34452 (lower_omp_for): Do not emit phony constructs.
34453 (lower_omp_taskreg): Do not emit phony constructs but create for them
34454 a temporary variable receiver_decl.
34455 (lower_omp_taskreg): Do not emit phony constructs.
34456 (lower_omp_teams): Likewise.
34457 (lower_omp_grid_body): New function.
34458 (lower_omp_1): Call it.
34459 (grid_reg_assignment_to_local_var_p): New function.
34460 (grid_seq_only_contains_local_assignments): Likewise.
34461 (grid_find_single_omp_among_assignments_1): Likewise.
34462 (grid_find_single_omp_among_assignments): Likewise.
34463 (grid_find_ungridifiable_statement): Likewise.
34464 (grid_target_follows_gridifiable_pattern): Likewise.
34465 (grid_remap_prebody_decls): Likewise.
34466 (grid_copy_leading_local_assignments): Likewise.
34467 (grid_process_kernel_body_copy): Likewise.
34468 (grid_attempt_target_gridification): Likewise.
34469 (grid_gridify_all_targets_stmt): Likewise.
34470 (grid_gridify_all_targets): Likewise.
34471 (execute_lower_omp): Call grid_gridify_all_targets.
34472 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
34473 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
34474 (tree_omp_clause): Added union field dimension.
34475 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
34476 * tree.c (omp_clause_num_ops): Added number of arguments of
34477 OMP_CLAUSE__GRIDDIM_.
34478 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
34479 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
34480 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
34481 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
34482 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
34483 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
34484 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
34485 * tree-pass.h (make_pass_gen_hsail): Declare.
34486 (make_pass_ipa_hsa): Likewise.
34487 * ipa-hsa.c: New file.
34488 * lto-section-in.c (lto_section_name): Add hsa section name.
34489 * lto-streamer.h (lto_section_type): Add hsa section.
34490 * timevar.def (TV_IPA_HSA): New.
34491 * hsa-brig-format.h: New file.
34492 * hsa-brig.c: New file.
34493 * hsa-dump.c: Likewise.
34494 * hsa-gen.c: Likewise.
34497 * toplev.c (compile_file): Call hsa_output_brig.
34498 * hsa-regalloc.c: New file.
34500 2016-01-18 Jeff Law <law@redhat.com>
34502 PR tree-optimization/69320
34503 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
34504 ranged object, do nothing if the RHS constant is not [0..1].
34505 (optimize_stmt): Comparing a boolean ranged object against a
34506 constant outside [0..1] results in a compile-time constant.
34508 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
34511 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
34513 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34514 (Option Summary): Update to reflect new section and moved options.
34515 (C++ Dialect Options): Move -fstats to new section.
34516 (Debugging Options): Move all dump, statistics, and other GCC
34517 developer options to new section. Rewrite section introduction
34518 and re-order remaining options to put the more basic ones first.
34519 (Optimization Options): Move -fira-verbose and -flto-report* to
34521 (Developer Options): New section incorporating moved options.
34522 * doc/cppopts.texi (-dM): Update cross-reference.
34524 2016-01-18 Richard Henderson <rth@redhat.com>
34527 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
34528 operands to pseudo only if CSE is expected. Split long immediate
34529 operands only after reload, and for the stack pointer.
34530 (*add<GPI>3_pluslong): Remove.
34531 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
34532 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
34533 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
34534 (*add<GPI>3 peepholes): New.
34535 (*add<GPI>3 splitters): New.
34536 * config/aarch64/constraints.md (Upl): New.
34537 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
34539 2016-01-18 Richard Biener <rguenther@suse.de>
34541 PR tree-optimization/69297
34542 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
34544 (vect_bb_vectorization_profitable_p): Clear visited flag again.
34546 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
34548 PR middle-end/68542
34549 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
34550 of mixind vector and scalar types.
34551 (fold_relational_const): Add handling of vector
34552 comparison with boolean result.
34553 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
34554 comparison of vector operands with boolean result for EQ/NE only.
34555 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
34556 (verify_gimple_cond): Likewise.
34557 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
34560 2016-01-18 Joseph Myers <joseph@codesourcery.com>
34562 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
34565 2016-01-18 Richard Biener <rguenther@suse.de>
34567 PR middle-end/69308
34568 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
34570 2016-01-18 Tom de Vries <tom@codesourcery.com>
34572 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
34574 2016-01-18 Tom de Vries <tom@codesourcery.com>
34576 * omp-low.c (set_oacc_fn_attrib): Make extern.
34577 * omp-low.h (set_oacc_fn_attrib): Declare.
34578 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
34579 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
34580 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
34581 Add and handle function parameter oacc_kernels_p.
34582 (find_reduc_addr, get_omp_data_i_param): New function.
34583 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
34584 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
34585 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
34586 Calculate dominance info. Skip loops that are not in a kernels region
34587 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
34588 (pass_parallelize_loops::execute): Call parallelize_loops with
34589 oacc_kernels_p argument.
34590 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
34591 New member function.
34592 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
34593 * passes.def: Add argument to pass_parallelize_loops instantation.
34595 2016-01-18 Tom de Vries <tom@codesourcery.com>
34597 * tree-parloops.c (pass_parallelize_loops::execute): Allow
34598 pass_parallelize_loops to be run outside the loop pipeline.
34600 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34602 * tree-scalar-evolution.c (follow_copies_to_constant): New.
34603 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
34605 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34608 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
34609 using get_ref_base_and_extent.
34610 (equal_mem_array_ref_p): New.
34611 (hashable_expr_equal_p): Add call to previous.
34613 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34616 * tree-sra.c (disqualified_constants, constant_decl_p): New.
34617 (sra_initialize): Allocate disqualified_constants.
34618 (sra_deinitialize): Free disqualified_constants.
34619 (disqualify_candidate): Update disqualified_constants when appropriate.
34620 (create_access): Scan for constant-pool entries as we go along.
34621 (scalarizable_type_p): Add check against type_contains_placeholder_p.
34622 (maybe_add_sra_candidate): Allow constant-pool entries.
34623 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
34624 (initialize_constant_pool_replacements): New.
34625 (sra_modify_assign): Avoid mangling assignments created by previous,
34626 and don't generate writes into constant pool.
34627 (sra_modify_function_body): Call initialize_constant_pool_replacements.
34629 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
34631 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
34632 andnot instruction.
34633 (scalar_chain::convert_op): Likewise.
34634 * config/i386/i386.md (*andndi3_doubleword): New.
34636 2016-01-18 Richard Biener <rguenther@suse.de>
34638 PR tree-optimization/69170
34639 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
34640 building a vector from scalar results of a pattern stmt.
34642 2016-01-18 Jakub Jelinek <jakub@redhat.com>
34644 * haifa-sched.c (autopref_multipass_init): Work around
34645 -Wmaybe-uninitialized warning.
34647 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
34649 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
34650 against the constant 0.
34652 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34654 PR tree-optimization/68799
34655 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
34656 look up phi candidates in the statement-candidate map.
34657 (phi_add_costs): Likewise.
34658 (record_phi_increments): Likewise.
34659 (phi_incr_cost): Likewise.
34660 (ncd_with_phi): Likewise.
34661 (all_phi_incrs_profitable): Likewise.
34663 2016-01-17 Jakub Jelinek <jakub@redhat.com>
34665 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
34666 -Wmaybe-uninitialized warning.
34668 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
34670 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34671 (Option Summary): Update to reflect new section and moved options.
34672 (C++ Dialect Options): Move -fvtable-verify and related options.
34673 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
34674 and profiling-related options.
34675 (Optimization Options): Move profile generation options and
34676 -fstack-protector and related options.
34677 (Instrumentation Options): New section incorporating moved options.
34678 (Code Generation Options): Move -finstrument-functions and
34679 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
34681 2016-01-16 Tom de Vries <tom@codesourcery.com>
34683 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
34685 2016-01-16 Tom de Vries <tom@codesourcery.com>
34687 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
34689 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
34691 * hash-table.h (hash_table::empty): Turn into an inline wrapper
34692 that checks whether the table is already empty. Rename the
34693 original implementation to...
34694 (hash_table::empty_slot): ...this new private function.
34696 2016-01-15 David Malcolm <dmalcolm@redhat.com>
34698 PR diagnostic/68899
34699 * diagnostic-show-locus.c (layout::print_source_line): Move x
34700 offset of line until after call to
34701 get_line_width_without_trailing_whitespace.
34703 2016-01-15 Jeff Law <law@redhat.com>
34705 PR tree-optimization/69270
34706 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
34707 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
34708 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
34709 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
34710 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
34711 ssa_name_has_boolean_range and constant_boolean_node.
34713 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
34715 PR rtl-optimization/69030
34716 * lra-spills.c (remove_pseudos): Check nrefs and make the function
34718 (spill_pseudos): Delete debug insn for dead pseudo.
34719 (lra_spill): Initiate spill_hard_reg and slots memory separately.
34721 2016-01-15 Jiong Wang <jiong.wang@arm.com>
34723 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
34725 (TYPES_UNOPUS): Likewise.
34726 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
34727 builtin type, from UNOP to UNOPUS.
34728 (lbtruncuv4sf): Likewise.
34729 (lbtruncuv2df): Likewise.
34730 (lrounduv2sf): Likewise.
34731 (lrounduv4sf): Likewise.
34732 (lrounduv2df): Likewise.
34733 (lroundusf): Likewise.
34734 (lroundusf): Likewise.
34735 (lceiluv2sf): Likewise.
34736 (lceiluv4sf): Likewise.
34737 (lceiluv2df): Likewise.
34738 (lceilusf): Likewise.
34739 (lceiludf): Likewise.
34740 (lflooruv2sf): Likewise.
34741 (lflooruv4sf): Likewise.
34742 (lflooruv2df): Likewise.
34743 (lfloorusf): Likewise.
34744 (lfloorudf): Likewise.
34745 (lfrintnuv2sf): Likewise.
34746 (lfrintnuv4sf): Likewise.
34747 (lfrintnuv2df): Likewise.
34748 (lfrintnusf): Likewise.
34749 (lfrintnudf): Likewise.
34750 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
34752 (vcvtq_u32_f32): Likewise.
34753 (vcvtq_u64_f64): Likewise.
34754 (vcvta_u32_f32): Likewise.
34755 (vcvtaq_u32_f32): Likewise.
34756 (vcvtaq_u64_f64): Likewise.
34757 (vcvtm_u32_f32): Likewise.
34758 (vcvtmq_u32_f32): Likewise.
34759 (vcvtmq_u64_f64): Likewise.
34760 (vcvtn_u32_f32): Likwise.
34761 (vcvtnq_u32_f32): Likewise.
34762 (vcvtnq_u64_f64): Likewise.
34763 (vcvtp_u32_f32): Likewise.
34764 (vcvtpq_u32_f32): Likewise.
34765 (vcvtpq_u64_f64): Likewise.
34766 (vcvtmd_u64_f64): Likewise.
34767 (vcvtms_u32_f32): Likewise.
34768 (vcvtad_u64_f64): Likewise.
34769 (vcvtas_u32_f32): Likewise.
34770 (vcvtnd_u64_f64): Likewise.
34771 (vcvtns_u32_f32): Likewise.
34772 (vcvtpd_u64_f64): Likewise.
34773 (vcvtps_u32_f32): Likewise.
34775 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34777 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
34778 CSEL of zero_extended registers.
34780 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34782 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34783 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
34785 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34787 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
34788 false when argument string is not found in the attributes table
34791 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
34794 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
34795 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
34796 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
34797 precision estimate.
34799 2016-01-15 Richard Biener <rguenther@suse.de>
34801 PR tree-optimization/66856
34802 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
34803 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
34804 (vect_create_new_slp_node): Increment stmt reference count.
34805 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
34806 an SLP tree before swapping operands.
34807 (vect_build_slp_tree): Likewise.
34808 (destroy_bb_vec_info): Free stmt info after SLP instances.
34809 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
34810 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
34811 (STMT_VINFO_NUM_SLP_USES): New macro.
34813 2016-01-15 Richard Biener <rguenther@suse.de>
34816 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
34817 (add_linkage_name): ... here.
34818 (gen_typedef_die): Use add_linkage_name_raw instead of
34819 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
34822 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
34824 * gimplify.c (oacc_default_clause): Decode reference and pointer
34825 types for both kernels and parallel regions.
34827 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
34829 PR middle-end/69246
34830 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
34832 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34834 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
34835 (convert_scalars_to_vector): Likewise.
34837 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
34839 * doc/extend.texi (Type Traits): Fix grammar.
34841 2016-01-15 Martin Jambor <mjambor@suse.cz>
34843 * tree-inline.c (remap_decl): Use existing dclarations if
34844 remapping a type and prevent_decl_creation_for_types.
34845 (replace_locals_stmt): Do an initial remapping of non-VLA typed
34846 decls first. Do real remapping with
34847 prevent_decl_creation_for_types set.
34848 * tree-inline.h (copy_body_data): New field
34849 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
34852 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34854 * config/s390/s390.opt (mmvcle): More verbose help text.
34856 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34858 * config/s390/s390.opt: Add period to -mzvector option text.
34860 2016-01-15 Richard Biener <rguenther@suse.de>
34862 PR tree-optimization/68961
34863 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
34864 of invariants in stores again.
34866 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34868 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
34870 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34872 * config/i386/i386.c (ix86_expand_branch): Don't split
34873 DI mode xor instruction to SI mode.
34875 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34878 * ipa-icf.c (sem_function::merge): Virtual functions may become
34879 reachable even if they address is not taken and there are no
34882 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34884 * lto-streamer-out.c (subtract_estimated_size): New function.
34885 (get_symbol_initial_value): Use it.
34887 2016-01-15 Christian Bruel <christian.bruel@st.com>
34890 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
34891 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
34892 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
34893 use add_builtin_function_ext_scope instead of add_builtin_function.
34894 (neon_set_p, neon_crypto_set_p): Remove.
34895 (arm_init_builtins): Always call arm_init_neon_builtins and
34896 arm_init_crypto_builtins.
34897 (arm_expand_builtin): Check that builtins are allowed for the arch.
34898 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
34899 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
34900 arm_init_neon_builtins call.
34902 2016-01-15 Richard Biener <rguenther@suse.de>
34904 PR tree-optimization/69117
34905 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
34906 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
34907 of the leader conservatively.
34908 (free_scc_vn): Restore original SSA name infos.
34910 2016-01-14 Jeff Law <law@redhat.com>
34912 PR tree-optimization/69270
34913 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
34914 single bit of precision, verify it's also unsigned.
34915 (record_edge_info): Use constant_boolean_node rather than fold_convert
34916 to convert boolean_true/boolean_false to the right type.
34918 2016-01-14 Richard Henderson <rth@redhat.com>
34921 * loop-doloop.c (record_reg_sets): New.
34922 (doloop_optimize): Reject the transform if the sequence
34923 clobbers registers live at the end of the loop block.
34924 (doloop_optimize_loops): Enable df_live if needed.
34926 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34928 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
34929 * config/rs6000/rs6000.c: Likewise.
34930 * config/rs6000/rs6000.h: Likewise.
34931 * config/rs6000/rs6000.md: Likewise.
34932 * doc/extend.texi: Likewsie.
34934 2016-01-14 Jeff Law <law@redhat.com>
34936 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
34939 2016-01-14 Richard Henderson <rth@redhat.com>
34943 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
34944 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
34945 instead of builtin_decl_declared_p to test for declaration.
34947 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
34949 * doc/loop.texi (Loop Analysis and Representation): Document
34950 loop_depth function.
34952 2016-01-14 Tom de Vries <tom@codesourcery.com>
34954 PR tree-optimization/68773
34955 * omp-low.c (expand_omp_target): Don't set force_output.
34956 * varpool.c (varpool_node::get_create): Same.
34957 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
34958 offload_funcs with force_output.
34960 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34963 * lra-eliminations.c (move_plus_up): Don't change anything if either
34964 the outer or inner subreg mode is not MODE_INT.
34965 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
34966 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
34968 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34970 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
34971 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
34972 reduc_uplus_@var{m}): Remove.
34973 * expr.c (expand_expr_real_2): Remove expansion path for
34974 reduc_[us](min|max|plus) optabs.
34975 * optabs-tree.c (scalar_reduc_to_vector): Remove.
34976 * optabs-tree.h (scalar_reduc_to_vector): Remove.
34977 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
34978 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
34979 * tree-vect-loop.c (vectorizable_reduction): Remove test for
34980 reduc_[us](min|max|plus) optabs.
34982 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34984 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
34985 (reduc_plus_scal_v2sf): New.
34986 (reduc_smax_v2sf): Rename to...
34987 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
34988 (reduc_smin_v2sf): Rename to...
34989 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
34991 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
34993 * alias.c (compare_base_symbol_refs): New function.
34994 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
34997 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34999 PR middle-end/68146
35000 PR tree-optimization/69155
35001 * tree-complex.c: Include cfganal.h.
35002 (phis_to_revisit): New variable.
35003 (extract_component): Add phiarg_p argument. Assert that returned
35004 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
35005 (update_phi_components): Partly rewrite to use loop over real/imag
35006 components instead of code duplication. If extract_component returns
35007 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
35008 create_tmp_reg into the PHI node instead, and mention the phi triplet
35009 in phis_to_revisit.
35010 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
35011 in phis_to_revisit at the end.
35013 2016-01-14 Richard Biener <rguenther@suse.de>
35015 PR tree-optimization/68060
35016 * tree-vect-loop.c (vect_is_simple_reduction): Check the
35017 outer loop reduction is only used in the inner loop before
35018 detecting a double reduction.
35020 2016-01-14 Jakub Jelinek <jakub@redhat.com>
35023 * combine.c (expand_field_assignment): Punt if compute_mode is
35024 unsupported scalar mode.
35026 2016-01-14 Richard Biener <rguenther@suse.de>
35028 PR tree-optimization/66856
35029 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
35030 SLP node only if it built successfully.
35031 (vect_analyze_slp_instance): Adjust.
35033 2016-01-14 Jeff Law <law@redhat.com>
35035 PR tree-optimization/69270
35036 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
35037 (record_edge_info): Use it. Convert boolean_{true,false}_node
35038 to the type of op0.
35040 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
35043 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
35044 use block_ultimate_origin
35045 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
35047 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
35049 * doc/invoke.texi (Submodel Options): Rename section to
35050 "Machine-Dependent Options" to better reflect its content.
35051 Rewrite introductory text to remove archaic CPU names.
35054 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
35056 * doc/invoke.texi (Code Gen Options): Move section up in file,
35057 before target-specific options. Update menu and option summary
35058 to reflect the new section ordering.
35060 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
35062 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
35063 (C++ Dialect Options): Add cross-reference to -std option.
35064 * doc/standards.texi (C++ Language): Document C++14 support.
35066 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
35068 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
35069 for pack/unpack functions for __ibm128.
35070 (PACK_IF): Likewise.
35071 (UNPACK_IF): Likewise.
35073 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
35074 support for __ibm128 pack/unpack functions.
35075 (rs6000_invalid_builtin): Likewise.
35076 (rs6000_init_builtins): Likewise.
35077 (rs6000_opt_masks): Likewise.
35079 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
35080 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
35082 (RS6000_BTM_COMMON): Likewise.
35084 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
35085 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
35086 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
35087 128-bit floating point. Add support for the double values to be
35088 in Altivec registers for TF/IF packing and unpacking, but restrict
35089 TD packing sub-fields to be FPR registers. Don't allow overlapped
35090 register support for packing. Allow pack inputs to be memory
35091 locations. Don't build generator functions for unpack<mode>_dm
35092 and unpack<mode>_nodm.
35093 (unpack<mode>_dm): Likewise.
35094 (unpack<mode>_nodm): Likewise.
35095 (pack<mode>): Likewise.
35097 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
35098 built-in functions to pack/unpack explicit __ibm128 values.
35099 (__builtin_unpack_ibm128): Likewise.
35101 * doc/extend.texi (PowerPC Built-in Functions): Document
35102 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
35104 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
35107 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
35108 Add new arg loc and pass it down as context.
35109 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
35110 to the location to use for the warning.
35111 (check_function_arguments): New arg loc. All callers changed. Pass
35112 it to check_function_nonnull.
35113 * c-common.h (check_function_arguments): Adjust declaration.
35115 2016-01-13 Jakub Jelinek <jakub@redhat.com>
35117 PR tree-optimization/69156
35118 * gimple.c (validate_type): Removed.
35119 (gimple_builtin_call_types_compatible_p): Use
35120 useless_type_conversion_p instead of validate_type.
35121 * value-prof.c (gimple_stringop_fixed_value): Fold
35122 icall_size to correct type.
35124 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
35126 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
35129 2016-01-13 Richard Henderson <rth@redhat.com>
35132 * target.def (builtin_tm_load, builtin_tm_store): Remove.
35133 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
35134 (ix86_builtin_tm_store): Remove.
35135 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
35136 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
35137 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
35138 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
35139 * doc/tm.texi: Rebuild.
35141 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
35142 (BUILT_IN_TM_MEMCPY_RTWN): New.
35143 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
35144 fallback from vector to integer helpers.
35145 (build_tm_load): Handle vector types directly, instead of
35147 (build_tm_store): Likewise.
35148 (expand_assign_tm): Prepare for register types not handled by
35149 the above. Copy them to memory and use memcpy.
35150 * tree.c (tm_define_builtin): New.
35151 (find_tm_vector_type): New.
35152 (build_tm_vector_builtins): New.
35153 (build_common_builtin_nodes): Call it.
35155 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
35157 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
35158 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
35160 2016-01-13 Tom de Vries <tom@codesourcery.com>
35162 PR tree-optimization/69169
35163 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
35164 handled_struct_type param.
35165 (create_variable_info_for, intra_create_variable_infos): Call
35166 create_variable_info_for_1 with extra arg.
35168 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
35170 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
35171 and "armv8.1-a+crc" entries.
35173 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
35176 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
35177 Change first operand predicate from register_or_constm1_operand
35178 to register_operand.
35179 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
35180 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
35181 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
35182 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
35183 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
35184 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
35185 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
35186 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
35187 comparison with constm1_rtx from vec_prefetch_gen part.
35189 2016-01-13 Richard Biener <rguenther@suse.de>
35191 PR tree-optimization/69013
35192 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
35193 Exchange assert for a test.
35195 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35198 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
35200 2016-01-13 Richard Biener <rguenther@suse.de>
35202 PR tree-optimization/69242
35203 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
35204 assert with a check.
35206 2016-01-13 Richard Biener <rguenther@suse.de>
35208 PR tree-optimization/69186
35209 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
35210 Properly guard vect_update_misalignment_for_peel call.
35212 2016-01-12 Jeff Law <law@redhat.com>
35214 PR tree-optimization/pr67755
35215 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
35216 "need_profile_correction".
35217 (thread_block_1): Initialize new field to false by default. If we
35218 have multiple thread paths through a common joiner to different
35219 final targets, then set new field to true.
35220 (compute_path_counts): Only do count adjustment when it's really
35223 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35225 * doc/invoke.texi (Spec Files): Move section down in file, past
35226 all command-line option descriptions.
35228 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35230 PR middle-end/54809
35231 * doc/gty.texi: Remove documentation of mark_hook.
35232 * gengtype.c (struct write_types_data): Remove code to support
35233 mark_hook attribute.
35234 (walk_type): Likewise.
35235 (write_func_for_structure): Likewise.
35237 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35239 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
35240 Directory Options, and -specs= to Overall Options.
35241 (Overall Options): Adjust similarly. Reorder to group related
35242 options together. Make -specs= cross-reference the spec file details.
35243 (Directory Options): Adjust similarly.
35245 2016-01-12 Jeff Law <law@redhat.com>
35247 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
35249 2016-01-12 Olivier Hainque <hainque@adacore.com>
35251 * gcc.c (spec_undefvar_allowed): New global.
35252 (process_command): Set to true when running for --version or --help,
35254 (getenv_spec_function): When the variable is not defined, use the
35255 variable name as the variable value if we're allowed not to issue
35258 2016-01-12 Bin Cheng <bin.cheng@arm.com>
35260 PR tree-optimization/68911
35261 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
35262 information computed for expression "init + nit * step".
35264 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35266 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
35267 about name of GCC executable. Remove deleted node from menu.
35268 (Directory Options) <-B>: Remove cross-reference to deleted node.
35269 (Target Options): Delete section.
35271 2016-01-12 Christian Bruel <christian.bruel@st.com>
35274 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
35275 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
35277 2016-01-12 Jakub Jelinek <jakub@redhat.com>
35280 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
35281 aligned_mem is properly set for AVX512-VL floating point masked
35285 * ifcvt.c (cond_exec_process_if_block): When removing the last
35286 insn from then_bb, remove also any possible barriers that follow it.
35288 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
35292 * config/i386/iamcu.h (SIZE_TYPE): New macro.
35293 (PTRDIFF_TYPE): Likewise.
35294 (WCHAR_TYPE): Likewise.
35295 (WCHAR_TYPE_SIZE): Likewise.
35296 (STDINT_LONG32): Likewise.
35298 2016-01-12 Richard Biener <rguenther@suse.de>
35300 PR tree-optimization/69053
35301 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
35302 convert initial value for cond reductions.
35304 2016-01-12 Richard Biener <rguenther@suse.de>
35306 PR tree-optimization/69007
35307 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
35308 widen_sum after dot_prod and sad.
35310 2016-01-12 Richard Biener <rguenther@suse.de>
35312 PR tree-optimization/69168
35313 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
35314 pattern stmt SLP type.
35315 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
35316 end up unused so cope with that case.
35318 2016-01-12 Richard Biener <rguenther@suse.de>
35320 PR tree-optimization/69157
35321 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
35322 stmts def type only during analyze phase.
35323 (vectorizable_call): Likewise.
35324 (vectorizable_simd_clone_call): Likewise.
35325 (vectorizable_conversion): Likewise.
35326 (vectorizable_assignment): Likewise.
35327 (vectorizable_shift): Likewise.
35328 (vectorizable_operation): Likewise.
35329 (vectorizable_store): Likewise.
35330 (vectorizable_load): Likewise.
35332 2016-01-12 Richard Biener <rguenther@suse.de>
35334 PR tree-optimization/69174
35335 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
35337 (vectorizable_load): Properly compute the number of loads needed
35338 for permuted strided SLP loads and do not spuriously assign
35339 to SLP_TREE_VEC_STMTS.
35341 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
35343 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
35344 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
35345 (MD_EXEC_PREFIX): Remove.
35346 (MD_STARTFILE_PREFIX) Removee.
35347 (FILE_NAME_ABSOLUTE_P): Remove.
35348 (CPP_SPEC): Do not read macros from sys/version.h.
35349 (LINK_COMMAND_SPEC): Remove.
35350 (LOCAL_INCLUDE_DIR): Remove.
35351 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
35352 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
35353 (POST_LINK_SPEC): Define to invoke stubify after linker
35354 (LIBSTDCXX): Remove define
35355 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
35356 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
35357 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
35358 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
35359 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
35360 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
35361 (i386_djgpp_asm_named_section): Add propotype of new procedure
35363 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
35364 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
35365 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
35366 in config/i386/djgpp.h).
35367 (STANDARD_STARTFILE_PREFIX_2): Define identical to
35368 STANDARD_STARTFILE_PREFIX_1.
35369 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
35370 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
35371 installation errors.
35372 (MAX_OFILE_ALIGNMENT): Define to 128.
35373 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
35375 * config/i386/djgpp.c: New file. Add implementation of
35376 i386_djgpp_asm_named_section.
35378 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
35380 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
35381 Add rule for building djgpp.o.
35383 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35385 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
35386 (rtx_is_swappable_p): Reductions are swappable.
35387 (insn_is_swappable_p): V2DF reductions are swappable.
35389 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
35391 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
35392 reloads for other unsupported memory operands.
35394 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
35395 Jim Wilson <jim.wilson@linaro.org>
35398 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
35399 copy_to_mode_reg instead of force_reg.
35401 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35404 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
35405 TARGET_80387 is true.
35407 2016-01-11 Jakub Jelinek <jakub@redhat.com>
35410 * lra-eliminations.c (move_plus_up): Only move plus up
35411 if subreg of the constant can be simplified into constant
35412 and use the simplified subreg of the constant instead of
35413 the original constant.
35415 * fold-const.c (fold_convertible_p): Don't return true
35416 for conversion of VECTOR_TYPE to same sized integral type.
35417 (fold_convert_loc): Fix up formatting. Fold conversion of
35418 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
35419 instead of NOP_EXPR.
35421 PR tree-optimization/69214
35422 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
35423 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
35426 PR tree-optimization/69207
35427 * tree-vect-slp.c (vect_get_constant_vectors): For
35428 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
35429 fold_convertible_p to vector_type's element type, and always
35430 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
35432 2016-01-11 Richard Biener <rguenther@suse.de>
35434 PR tree-optimization/69173
35435 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
35436 fixup the cycle if all stmts are in a pattern.
35438 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
35440 PR middle-end/68999
35441 * alias.c (base_alias_check): Move check for addresses with
35442 alignment ANDs before the call for compare_base_decls.
35443 (memrefs_conflict_p): Return -1 for different decls
35444 that went through alignment adjustments.
35446 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35448 PR rtl-optimization/68796
35449 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
35450 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
35451 and QImode comparisons against zero with CC_NZmode.
35452 * config/aarch64/iterators.md (short_mask): New mode_attr.
35454 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35456 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
35457 (<avx512>_store<mode>_mask): Likewise.
35459 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
35460 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35462 PR rtl-optimization/68841
35463 * ifcvt.c (struct noce_if_info): Add orig_x field.
35464 (bbs_ok_for_cmove_arith): Add to_rename parameter.
35465 Don't record conflicts on to_rename if it's present.
35466 Allow memory destinations in sets.
35467 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
35468 blocks, passing orig_x to the checks.
35469 (noce_process_if_block): Set if_info->orig_x appropriately.
35471 2016-01-11 Tom de Vries <tom@codesourcery.com>
35473 PR tree-optimization/69069
35474 * tree-parloops.c (create_parallel_loop): Add missing phi args.
35476 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
35478 PR rtl-optimization/68920
35479 * config/i386/i386.c (ix86_option_override_internal): Restrict number
35480 of conditional moves for RTL if-conversion to 1 for
35481 TARGET_ONE_IF_CONV_INSN.
35482 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
35483 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
35484 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
35485 parameter to restirct number of conditional moves for
35487 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
35488 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
35491 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
35494 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
35495 onepart vars. Fix typo in comment. Fix reversed condition in
35497 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
35500 * var-tracking.c (dump_onepart_variable_differences): New.
35501 (dataflow_set_different): If a detailed dump is requested,
35502 delay early returns and dump differences between onepart
35503 variables present before and after, and added variables.
35505 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
35508 * expr.c (expand_expr_real_1): For boolean vector constants
35509 with a scalar mode use const_scalar_mask_from_tree.
35510 (const_scalar_mask_from_tree): New.
35511 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
35512 assigned to a mask type to handle constants.
35514 2016-01-11 Martin Jambor <mjambor@suse.cz>
35517 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
35518 useless parameters if we cannot change function signature.
35520 2016-01-11 Martin Jambor <mjambor@suse.cz>
35523 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
35526 2016-01-11 Tom de Vries <tom@codesourcery.com>
35528 PR tree-optimization/69109
35529 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
35532 2016-01-11 Tom de Vries <tom@codesourcery.com>
35534 PR tree-optimization/69108
35535 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
35536 res is not used in a phi.
35538 2016-01-11 Yury Gribov <y.gribov@samsung.com>
35541 * common.opt (frandom-seed): Fix parameter name.
35542 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
35544 2016-01-11 Tom de Vries <tom@codesourcery.com>
35546 PR tree-optimization/69058
35547 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
35550 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
35552 * config/arc/arc.opt (mdiv-rem): Add period to the end.
35553 (mcode-density): Likewise.
35555 2016-01-10 Tom de Vries <tom@codesourcery.com>
35557 PR tree-optimization/69062
35558 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
35559 (parallelize_loops): Don't paralelize loop that has phi with address
35562 2016-01-10 Tom de Vries <tom@codesourcery.com>
35564 PR tree-optimization/69039
35565 * tree-parloops.c (try_create_reduction_list): Only allow single exit
35568 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
35570 PR middle-end/68743
35571 * match.pd: Require target has function_c99_misc before doing
35572 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
35574 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
35576 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
35578 * configure: Regenerate.
35580 2016-01-09 Jakub Jelinek <jakub@redhat.com>
35582 PR middle-end/50865
35583 PR tree-optimization/69097
35584 * fold-const.h (expr_not_equal_to): New prototype.
35585 * fold-const.c: Include stringpool.h and tree-ssanames.h.
35586 (expr_not_equal_to): New function.
35587 * match.pd (X % -Y is the same as X % Y): Don't optimize
35588 unless X is known not to be equal to minimum or Y is known
35589 not to be equal to -1.
35590 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
35591 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
35592 (simplify_stmt_using_ranges): Adjust caller.
35593 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
35594 substitute_and_fold.
35596 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
35598 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
35601 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35603 PR tree-optimization/69167
35604 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
35605 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
35607 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
35609 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35610 Richard Biener <rguenther@suse.de>
35612 PR tree-optimization/68707
35613 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
35614 instances that can be handled via vect_load_lanes.
35616 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
35618 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
35619 if we can't determine address equivalence.
35620 * alias.c (compare_base_decl): Update for changed return value of
35621 symtab_node::equal_address_to.
35623 2016-01-08 Jason Merrill <jason@redhat.com>
35627 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
35628 * expr.c (store_field): Not here.
35629 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
35630 call with TREE_ADDRESSABLE type.
35631 * tree-cfg.c (verify_gimple_call): Adjust.
35633 2016-01-08 Olivier Hainque <hainque@adacore.com>
35635 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
35638 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35640 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
35641 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
35642 (reduc_smin_v2sf): Rename to...
35643 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
35644 (reduc_splus_v2sf): Rename to...
35645 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
35647 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35649 PR tree-optimization/69162
35650 * gimplify.c (gimplify_va_arg_expr): Encode original type of
35651 valist argument in another argument.
35652 (gimplify_modify_expr): Adjust for the above change. Cleanup.
35653 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
35654 to determine the va_list type, build a MEM_REF instead of
35655 build_fold_indirect_ref.
35657 PR tree-optimization/69172
35658 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
35661 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
35663 PR tree-optimization/67781
35664 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
35665 and cmpnop in two steps: first the ones not accessed in original
35666 gimple expression in a endian independent way and then the ones not
35667 accessed in the final result in an endian-specific way.
35669 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35671 PR tree-optimization/69083
35672 * tree-vect-slp.c (vect_get_constant_vectors): For
35673 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
35674 element type. If op is fold_convertible_p to vector_type's element
35675 type, use NOP_EXPR instead of VCE.
35677 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
35679 PR rtl-optimization/67778
35680 PR rtl-optimization/68634
35681 PR rtl-optimization/68909
35682 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
35683 block from the stack until done with it. Remove a superfluous
35684 bitmap set. Remove a superfluous bitmap test.
35686 2016-01-07 Martin Sebor <msebor@redhat.com>
35689 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
35690 constraint on the type of arguments.
35692 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
35694 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
35695 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
35696 unaligned_access on the gcc_options set.
35697 * config/arm/arm.c (arm_option_override_internal): Use
35698 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
35700 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35703 * config/i386/i386.c (ix86_frame_pointer_required): Enable
35704 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
35706 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35709 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35712 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35713 depending on frame_pointer_needed before remaining integer and SSE
35714 registers are saved.
35716 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
35719 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
35721 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
35724 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
35725 Use the "xBm" constraint.
35726 (float<sseintvecmodelower><mode>2<mask_name><round_name):
35728 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
35729 (sse_cvtsi2ssq<round_name>): Likewise.
35730 (sse_cvtss2si<round_name>): Likewise.
35731 (sse_cvtss2siq<round_name>): Likewise.
35732 (sse2_cvtsi2sdq<round_name>): Likewise.
35733 (sse2_cvtsd2si<round_name>): Likewise.
35734 (sse2_cvtsd2siq<round_name>): Likewise.
35735 * config/i386/subst.md (round_nimm_scalar_predicate): New
35738 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
35740 PR middle-end/67639
35741 * varasm.c (make_decl_rtl): Mark invalid register vars as
35744 PR rtl-optimization/66206
35745 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
35746 All callers changed.
35748 2016-01-07 Jakub Jelinek <jakub@redhat.com>
35750 PR tree-optimization/69141
35751 * tree-ssa-pre.c: Include langhooks.h.
35752 (eliminate_dom_walker::before_dom_children): Use
35753 lang_hooks.decl_printable_name instead of
35754 cgraph_node::get ()->name ().
35756 PR middle-end/68960
35757 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
35758 it and DECL_ALIGN too.
35760 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
35762 * config/mips/mips-ftypes.def: Sort to lexicographical order.
35764 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35767 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35768 depending on frame_pointer_needed before remaining integer and SSE
35769 registers are saved.
35771 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35773 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
35774 mode iterator with VSX_M2.
35775 (*p9_vecstore_<mode>): Likewise.
35776 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
35777 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
35778 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
35779 (define_split for VSX_LE128 stores): Likewise.
35780 (define_peephole2 for TImode LE swaps): Likewise.
35781 (define_split for VSX_LE128 post-reload stores): Likewise.
35783 2016-01-06 Marek Polacek <polacek@redhat.com>
35786 * convert.c (convert_to_integer_1): Adjust call to
35787 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
35788 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
35789 EXPR instead of ARG.
35790 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
35792 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35795 * doc/extend.texi (RL78 Variable Attributes): New section.
35797 2016-01-05 Marek Polacek <polacek@redhat.com>
35800 * builtins.c (get_memmodel): Use expansion point location rather than
35801 the input location. Call warning_at rather than warning.
35802 (expand_builtin_atomic_compare_exchange): Likewise.
35803 (expand_builtin_atomic_load): Likewise.
35804 (expand_builtin_atomic_store): Likewise.
35805 (expand_builtin_atomic_clear): Likewise.
35807 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35810 * config/i386/i386.c (ix86_expand_vector_logical_operator):
35811 Replace nonimmediate_operand with vector_operand.
35812 * config/i386/predicates.md (vector_operand): New predicate.
35813 (general_vector_operand): Replace nonimmediate_operand with
35815 * config/i386/sse.md: Replace nonimmediate_operand with
35816 vector_operand and m constraint with Bm constraint on SSE
35817 patterns with 16-byte memory operand.
35818 * config/i386/subst.md (round_nimm_predicate): Replace
35819 nonimmediate_operand with vector_operand.
35820 (round_saeonly_nimm_predicate): Likewise.
35821 (round_saeonly_nimm_scalar_predicate): New.
35823 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35826 * config/i386/constraints.md (Bm): New constraint.
35827 * config/i386/predicates.md (vector_memory_operand): New
35829 * config/i386/sse.md: Replace xm with xBm in plusminus and
35830 any_logic patterns.
35832 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35835 * doc/extend.texi (V850 Function Attributes): New section.
35836 (V850 Variable Attributes): New section.
35838 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35841 * doc/extend.texi (MicroBlaze Function Attributes): Document
35842 interrupt_handler and fast_interrupt attributes.
35844 2016-01-05 Sergei Trofimovich <siarheit@google.com>
35847 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
35848 for local symbolic operands.
35849 * config/ia64/predicates.md (local_symbolic_operand64): New
35852 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35854 PR rtl-optimization/68651
35855 * combine.c (combine_simplify_rtx): Canonicalize x + x into
35858 2016-01-05 Nathan Sidwell <nathan@acm.org>
35860 * alias.c (compare_base_decls): Use symtab_node::get.
35862 2016-01-05 Nick Clifton <nickc@redhat.com>
35865 * ira-costs.c (copy_cost): Initialise the t_icode field of the
35866 secondary_reload_info structure.
35869 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
35870 decls if weak support is available.
35872 2016-01-04 Martin Sebor <msebor@redhat.com>
35874 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
35876 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
35878 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
35879 OPTION_MASK_P9_DFORM.
35881 * config/rs6000/constraints.md (wo constraint): New constraint for
35884 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
35886 (rs6000_init_hard_regno_mode_ok): Likewise.
35888 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
35891 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
35892 expanders not to have constraints. Add support for ISA 3.0 xxperm
35893 instruction. Add support for fusing xxlor with xxperm.
35894 (altivec_vperm_<mode>_internal): Likewise.
35895 (altivec_vperm_v8hiv16qi): Likewise.
35896 (altivec_vperm_<mode>v16q): Likewise.
35897 (altivec_vperm_<mode>_uns): Likewise.
35898 (vperm_v8hiv4si): Likewise.
35899 (vperm_v16qiv8hi): Likewise.
35901 * doc/md.texi (RS/6000 constraints): Document wo constraint.
35903 2016-01-04 Jakub Jelinek <jakub@redhat.com>
35905 Update copyright years.
35907 * gcc.c (process_command): Update copyright notice dates.
35908 * gcov-dump.c (print_version): Ditto.
35909 * gcov.c (print_version): Ditto.
35910 * gcov-tool.c (print_version): Ditto.
35911 * gengtype.c (create_file): Ditto.
35912 * doc/cpp.texi: Bump @copying's copyright year.
35913 * doc/cppinternals.texi: Ditto.
35914 * doc/gcc.texi: Ditto.
35915 * doc/gccint.texi: Ditto.
35916 * doc/gcov.texi: Ditto.
35917 * doc/install.texi: Ditto.
35918 * doc/invoke.texi: Ditto.
35920 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35922 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
35923 modes larger than TImode as TImode if NEON is not enabled.
35925 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35928 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
35929 mode for %f0-%f31 only if TARGET_FPU.
35931 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35934 * config/sparc/sparc.c (scan_record_type): Take into account subfields
35935 to compute the PACKED_P predicate.
35936 (function_arg_record_value): Minor tweaks.
35938 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
35940 * doc/install.texi (--with-multilib-list): Describe the meaning of the
35941 option for arm*-*-* targets.
35943 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
35945 * doc/extend.texi (Common Function Attributes): Move docs for
35946 MSP430-specific attributes to....
35947 (MSP430 Function Attributes): ...here. Delete the redundant
35948 entries and copy-edit the remaining text.
35949 (MSP430 Variable Attributes): Use uniform format for index
35950 entries and add a cross-reference to the corresponding function
35953 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
35955 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
35957 (x86 Options): Likewise.
35959 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35963 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
35964 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
35965 to corresponding attribute.
35967 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35969 * doc/extend.texi (Common Function Attributes) <noplt>: Move
35970 to correct alphabetization of table. Copy-edit and correct
35972 <stack_protect>: Likewise.
35973 <target_clones>: Likewise.
35975 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
35976 Correct punctuation.
35977 (Code Gen Options) <-fno-plt>: Copy-edit.
35979 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35982 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
35983 SI values. Explicitly convert SI to DI and vice-versa.
35985 2016-01-01 Jakub Jelinek <jakub@redhat.com>
35987 PR tree-optimization/69070
35988 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
35989 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
35992 * ubsan.c (ubsan_instrument_float_cast): Call
35993 initialize_sanitizer_builtins.
35996 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
35998 Copyright (C) 2016 Free Software Foundation, Inc.
36000 Copying and distribution of this file, with or without modification,
36001 are permitted in any medium without royalty provided the copyright
36002 notice and this notice are preserved.