1 2017-05-11 Richard Biener <rguenther@suse.de>
3 * passes.c (execute_function_todo): Verify loops if they are
5 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
6 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
8 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
11 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
12 handle calling assemble_external ourself.
15 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
16 modes with zero size. Enhance comment.
18 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
21 built-ins for vec_xl and vec_xst with short and char pointer
24 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
26 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
27 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
28 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
29 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
30 (_mm_maskz_min_round_ss): New intrinsics.
31 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
32 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
33 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
34 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
35 (__builtin_ia32_minss_mask_round): New builtins.
36 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
37 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
38 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
40 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
41 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
43 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
46 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
48 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
49 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
50 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
51 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
52 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
53 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
54 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
55 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
56 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
57 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
58 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
59 (__builtin_ia32_mulss_mask_round): New builtins.
60 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
61 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
62 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
64 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
65 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
67 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
70 2017-05-10 Julia Koval <julia.koval@intel.com>
72 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
73 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
74 (_mm256_setr_m128i): New intrinsics.
76 2017-05-10 Julia Koval <julia.koval@intel.com>
78 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
79 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
80 (_mm_maskz_rcp14_ss): New intrinsics.
81 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
82 (__builtin_ia32_rcp14ss_mask): New builtins.
83 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
85 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
87 PR tree-optimization/51513
88 * tree-cfg.c (gimple_seq_unreachable_p): New function.
89 (assert_unreachable_fallthru_edge_p): Use it.
90 (group_case_labels_stmt): Likewise.
91 * tree-cfg.h: Prototype it.
92 * stmt.c: Include cfghooks.h and tree-cfg.h.
93 (emit_case_dispatch_table) <gap_label>: New local variable.
94 Use it to fill dispatch table gaps.
95 Test for default_label before updating probabilities.
96 (expand_case) <default_label>: Remove unneeded initialization.
97 Test for unreachable default case statement and remove its edge.
98 Set default_label accordingly.
99 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
101 2017-05-10 Carl Love <cel@us.ibm.com>
103 * config/rs6000/rs6000-c: Add support for built-in functions
104 vector signed char vec_neg (vector signed char)
105 vector signed short int vec_neg (vector short int)
106 vector signed int vec_neg (vector signed int)
107 vector signed long long vec_neg (vector signed long long)
108 vector float vec_neg (vector float)
109 vector double vec_neg (vector double)
110 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
112 * config/rs6000/altivec.h: Add define for vec_neg
113 * doc/extend.texi: Update the built-in documentation for the
114 new built-in functions.
116 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
118 PR tree-optimization/77644
119 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
121 2017-05-10 Nathan Sidwell <nathan@acm.org>
123 * dumpfile.h (TDI_lang_all): New.
124 (TDF_KIND): New. Renumber others
125 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
127 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
129 (get_dump_file_name): Adjust suffix generation.
130 (dump_enable_all): Use TDF_KIND.
131 * doc/invoke.texi (-fdump-lang-all): Document.
133 * dumpfile.h: Tabify.
135 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
138 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
139 Move member access before delete.
141 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
143 * tree-inline.c (expand_call_inline): Split block at stmt
146 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
149 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
150 are now unused after splitting mov{sf,sd}_hardfloat.
167 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
168 For movsf, order stores so the VSX stores occur before the GPR
169 store which encourages the register allocator to use a traditional
170 FPR instead of a GPR. For movsd, order the stores so that the GPR
171 store comes before the VSX stores to allow the power6 to work.
172 This is due to the power6 not having a 32-bit integer store
173 instruction from a FPR.
174 (movsf_hardfloat): Likewise.
175 (movsd_hardfloat): Likewise.
177 2017-05-09 Martin Sebor <msebor@redhat.com>
180 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
184 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
185 data member added in r247778.
186 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
188 2017-05-09 Nathan Sidwell <nathan@acm.org>
190 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
192 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
195 2017-05-09 Marek Polacek <polacek@redhat.com>
197 * doc/invoke.texi: Fix typo.
199 2017-05-09 Richard Biener <rguenther@suse.de>
201 * tree-vrp.c (vrp_val_is_max): Adjust comment.
202 (vrp_val_is_min): Likewise.
203 (set_value_range_to_value): Likewise.
204 (set_value_range_to_nonnegative): Likewise.
205 (gimple_assign_nonzero_p): Likewise.
206 (gimple_stmt_nonzero_p): Likewise.
207 (vrp_int_const_binop): Likewise. Remove unreachable case.
208 (adjust_range_with_scev): Adjust comments.
209 (compare_range_with_value): Likewise.
210 (extract_range_from_phi_node): Likewise.
211 (test_for_singularity): Likewise.
213 2017-05-09 Richard Biener <rguenther@suse.de>
215 * tree-vrp.c (get_single_symbol): Add assert that we don't
216 get overflowed constants as invariant part.
217 (compare_values_warnv): Add comment before the TREE_NO_WARNING
218 checks. Use wi::cmp instead of recursing for integer constants.
219 (compare_values): Just ignore whether we assumed undefined
220 overflow instead of failing the compare.
221 (extract_range_for_var_from_comparison_expr): Add comment before the
222 TREE_NO_WARNING sets.
223 (test_for_singularity): Likewise.
224 (extract_range_from_comparison): Do not disable optimization
225 when we assumed undefined overflow.
226 (extract_range_basic): Remove init of unused var.
228 2017-05-09 Richard Biener <rguenther@suse.de>
230 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
231 (extract_range_from_multiplicative_op_1): Adjust.
232 (extract_range_from_binary_expr_1): Use int_const_binop.
234 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
237 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
238 rs6000_store_data_bypass_p in seven define_bypass directives and
240 * config/rs6000/rs6000-protos.h: Add prototype for
241 rs6000_store_data_bypass_p function.
242 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
243 function implements slightly different (rs6000-specific) semantics
244 than store_data_bypass_p, returning false rather than aborting
245 with assertion error when arguments do not satisfy the
246 requirements of store data bypass.
247 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
248 rs6000_store_data_bypass_p.
250 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
252 * config/xtensa/xtensa-protos.h
253 (xtensa_initial_elimination_offset): New declaration.
254 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
255 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
256 macro definition, add case for FRAME_POINTER_REGNUM when
257 FRAME_GROWS_DOWNWARD.
258 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro
260 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
261 xtensa_initial_elimination_offset.
263 2017-05-08 Nathan Sidwell <nathan@acm.org>
265 * doc/invoke.texi: Alphabetize -fdump options.
267 2017-05-08 Martin Sebor <msebor@redhat.com>
270 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
272 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
274 * target.def (compute_frame_layout): New optional target hook.
275 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
276 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
277 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
279 * reload1.c (verify_initial_elim_offsets): Likewise.
280 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
281 (use_simple_return_p): Call arm_compute_frame_layout if needed.
282 (arm_get_frame_offsets): Split up into this ...
283 (arm_compute_frame_layout): ... and this function.
285 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
287 * config/aarch64/constraints.md (Usa): New constraint.
288 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
290 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
292 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
293 with_multilib_list after it has been checked.
295 2017-05-08 Richard Biener <rguenther@suse.de>
297 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
298 (bitmap_set_subtract_values): Likewise.
300 2017-05-08 Richard Biener <rguenther@suse.de>
302 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
303 (gimple_assign_nonzero): ... this and remove strict_overflow_p
305 (gimple_stmt_nonzero_warnv_p): Rename to ...
306 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
308 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
309 (extract_range_basic): Adjust, do not disable propagation on
310 strict overflow sensitive simplification.
311 (vrp_visit_cond_stmt): Likewise.
313 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
315 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
316 body size unconditionally.
318 2017-05-07 Jeff Law <law@redhat.com>
321 2017-05-06 Jeff Law <law@redhat.com>
322 PR tree-optimization/78496
323 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
326 PR tree-optimization/78496
327 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
328 (simplify_stmt_using_ranges): Call it.
329 (vrp_dom_walker::before_dom_children): Extract equivalences
330 from an ASSERT_EXPR with an equality comparison against a
333 2017-05-06 Jeff Law <law@redhat.com>
335 PR tree-optimization/78496
336 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
339 PR tree-optimization/78496
340 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
341 (simplify_stmt_using_ranges): Call it.
342 (vrp_dom_walker::before_dom_children): Extract equivalences
343 from an ASSERT_EXPR with an equality comparison against a
346 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
348 * lra-constraints.c (lra_copy_reg_equiv): New function.
349 (split_reg): Use it to copy equivalence information from the
350 original register to the spill register.
352 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
354 PR rtl-optimization/75964
355 * simplify-rtx.c (simplify_const_relational_operation): Remove
356 invalid handling of comparisons of integer ABS.
358 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
360 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
362 (init_regs): Remove declaration.
363 (function_arg_advance_32): Initialize error_p as boolean variable.
365 2017-05-05 Nathan Sidwell <nathan@acm.org>
367 * store-motion.c (remove_reachable_equiv_notes): Reformat long
370 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
372 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
373 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
374 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
375 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
376 VF=2 that require versioning.
378 2017-05-05 David Malcolm <dmalcolm@redhat.com>
380 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
383 2017-05-05 David Malcolm <dmalcolm@redhat.com>
385 * diagnostic.h (diagnostic_override_option_index): Convert from
386 macro to inline function.
388 2017-05-05 David Malcolm <dmalcolm@redhat.com>
390 * diagnostic.c (last_module_changed_p): New function.
391 (set_last_module): New function.
392 (diagnostic_report_current_module): Convert macro usage to
394 * diagnostic.h (diagnostic_context::last_module): Strengthen
395 from const line_map * to const line_map_ordinary *.
396 (diagnostic_last_module_changed): Delete macro.
397 (diagnostic_set_last_module): Delete macro.
399 2017-05-05 David Malcolm <dmalcolm@redhat.com>
401 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
402 with diagnostic_report_diagnostic.
403 (diagnostic_n_impl_richloc): Likewise.
404 * diagnostic.h (report_diagnostic): Delete macro.
405 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
406 with diagnostic_report_diagnostic.
407 * substring-locations.c (format_warning_va): Likewise.
409 2017-05-05 David Malcolm <dmalcolm@redhat.com>
411 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
412 save/restor of format_spec. Move option-printing code to...
413 (print_option_information): ...this new function, and
414 reimplement by simply printing to the pretty_printer,
415 rather than appending to the format string.
417 2017-05-05 David Malcolm <dmalcolm@redhat.com>
419 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
420 handling logic into...
421 (update_effective_level_from_pragmas): ...this new function.
423 2017-05-04 Andrew Waterman <andrew@sifive.com>
425 * config/riscv/riscv.opt (mstrict-align): New option.
426 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
427 (SLOW_UNALIGNED_ACCESS): Define.
428 (riscv_slow_unaligned_access): Declare.
429 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
431 (riscv_slow_unaligned_access): New variable.
432 (rocket_tune_info): Set slow_unaligned_access to true.
433 (optimize_size_tune_info): Set slow_unaligned_access to false.
434 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
435 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
436 (riscv_option_override): Set riscv_slow_unaligned_access.
437 * doc/invoke.texi: Add -mstrict-align to RISC-V.
439 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
441 * config/riscv/riscv.md: Unify indentation.
443 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
448 * config/rs6000/rs6000.md (u code attribute): Add FIX and
450 (extendsi<mode>2): Add support for doing sign extension via
451 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
452 don't have ISA 3.0 instructions.
453 (extendsi<mode>2 splitter): Likewise.
454 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
455 generate the normal insns since SImode can now go in vector
456 registers. Disallow the special UNSPECs needed for previous
457 machines to hide SImode being used. Add new insns
458 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
459 (fix_trunc<mode>si2_stfiwx): Likewise.
460 (fix_trunc<mode>si2_internal): Likewise.
461 (fixuns_trunc<mode>si2): Likewise.
462 (fixuns_trunc<mode>si2_stfiwx): Likewise.
463 (fctiw<u>z_<mode>_smallint): Likewise.
464 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
465 of floating point to 32-bit integer from doing a direct move to
466 the GPR registers to do a store.
467 (fctiwz_<mode>): Break long line.
469 2017-05-05 Bin Cheng <bin.cheng@arm.com>
471 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
472 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
473 (addr_list, addr_offset_valid_p): New.
474 (split_address_groups): Check offset validity with above function.
475 (gt-tree-ssa-loop-ivopts.h): Include header file.
477 2017-05-05 Nathan Sidwell <nathan@acm.org>
479 * config.gcc (arm*-*-*): Add missing 'fi'.
481 2017-05-05 Steve Ellcey <sellcey@cavium.com>
483 * doc/invoke.texi (-fopt-info): Explicitly say order of options
484 included in -fopt-info does not matter.
485 * doc/optinfo.texi (-fopt-info): Fix description of default
486 behavour. Explicitly say order of options included in -fopt-info
489 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
491 * config.gcc: Allow combinations of aprofile and rmprofile values for
492 --with-multilib-list.
493 * config/arm/t-multilib: New file.
494 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
495 variables. Remove setting of ISA and floating-point ABI in
496 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
497 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
498 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
499 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
501 * config/arm/t-rmprofile: Likewise except for the matches changes.
502 * doc/install.texi (--with-multilib-list): Document the combination of
503 aprofile and rmprofile values and warn about pitfalls in doing that.
505 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
507 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
508 (movdi_aarch64): Likewise.
510 2017-05-05 Jakub Jelinek <jakub@redhat.com>
512 PR tree-optimization/80632
513 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
515 (build_arrays): Initialize it for virtual phis.
516 (fix_phi_nodes): Use it for virtual phis.
518 PR tree-optimization/80558
519 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
520 [x, y] op z into [x op, y op z] for op & or | if conditions
523 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
524 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
527 * config/arm/arm.md (use_literal_pool): Remove.
528 (64-bit immediate split): No longer takes cost into consideration
529 if arm_disable_literal_pool is enabled.
530 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
531 used when arm_disable_literal_pool is enabled.
532 (arm_max_const_double_inline_cost): Remove use of
533 arm_disable_literal_pool.
534 (push_minipool_fix): Add assert.
535 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
536 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
537 (no_literal_pool_sf_immediate): New.
539 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
541 PR tree-optimization/80613
542 * tree-ssa-dce.c (propagate_necessity): Remove cases for
543 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
545 2017-05-05 Richard Biener <rguenther@suse.de>
547 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
549 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
551 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
552 of this flag from insn conditions due to removal from r247495.
554 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
556 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
558 (arm_early_store_addr_dep_ptr): Likewise.
559 * config/arm/aarch-common-protos.h
560 (arm_early_load_addr_dep_ptr): Add prototype.
561 (arm_early_store_addr_dep_ptr): Likewise.
562 * config/arm/cortex-a53.md: Add new bypasses.
564 2017-05-05 Jakub Jelinek <jakub@redhat.com>
566 * tree.c (next_type_uid): Change type to unsigned.
567 (type_hash_canon): Decrement back next_type_uid if
568 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
569 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
572 2017-05-04 Martin Sebor <msebor@redhat.com>
574 * builtins.c: Fix a trivial typo in a comment.
577 * builtins.c (check_sizes): Adjust to handle reading past the end.
578 Avoid printing excessive upper bound of ranges. Use %E to print
579 tree nodes instead of converting them to %wu.
580 (expand_builtin_memchr): New function.
581 (compute_dest_size): Rename...
582 (compute_objsize): ...to this.
583 (expand_builtin_memcpy): Adjust.
584 (expand_builtin_mempcpy): Adjust.
585 (expand_builtin_strcat): Adjust.
586 (expand_builtin_strcpy): Adjust.
587 (check_strncat_sizes): Adjust.
588 (expand_builtin_strncat): Adjust.
589 (expand_builtin_strncpy): Adjust and simplify.
590 (expand_builtin_memset): Adjust.
591 (expand_builtin_bzero): Adjust.
592 (expand_builtin_memcmp): Adjust.
593 (expand_builtin): Handle memcmp.
594 (maybe_emit_chk_warning): Check strncat just once.
596 2017-05-04 Martin Sebor <msebor@redhat.com>
598 PR preprocessor/79214
601 * builtins.c (check_sizes): Add inlining context and issue
602 warnings even when -Wno-system-headers is set.
603 (check_strncat_sizes): Same.
604 (expand_builtin_strncat): Same.
605 (expand_builtin_memmove): New function.
606 (expand_builtin_stpncpy): Same.
607 (expand_builtin): Handle memmove and stpncpy.
609 2017-05-04 Bin Cheng <bin.cheng@arm.com>
611 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
612 which is not used any more.
614 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
616 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
618 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
620 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
621 (cortexa53_tunings): Likewise.
622 (cortexa57_tunings): Likewise.
623 (cortexa72_tunings): Likewise.
624 (cortexa73_tunings): Likewise.
626 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
628 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
629 Set loop alignment to 8.
631 2017-05-04 Martin Sebor <msebor@redhat.com>
634 * builtins.c (expand_builtin_object_size): Add missing quoting to
635 %D and like directives.
636 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
637 (hsa_type_for_tree_type): Same.
638 (verify_function_arguments): Same.
639 * symtab.c (symbol_table::change_decl_assembler_name): Same.
640 * varasm.c (get_section): Same.
643 2017-05-04 Martin Sebor <msebor@redhat.com>
646 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
648 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
650 * config/aarch64/aarch64.c (generic_addrcost_table):
651 Change HI/TI mode setting.
653 2017-05-04 Martin Jambor <mjambor@suse.cz>
655 PR tree-optimization/80622
656 * tree-sra.c (comes_initialized_p): New function.
657 (build_accesses_from_assign): Only set write lazily when
658 comes_initialized_p is false.
659 (analyze_access_subtree): Use comes_initialized_p.
660 (propagate_subaccesses_across_link): Assert !comes_initialized_p
661 instead of testing for PARM_DECL.
663 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
665 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
666 constraint on operand 0 to allow more general addressing modes.
667 Adjust output template.
668 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
670 * config/aarch64/aarch64-protos.h
671 (aarch64_address_valid_for_prefetch_p): Declare prototype.
672 * config/aarch64/constraints.md (Dp): New address constraint.
673 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
676 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
678 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
679 update use of estimate_ipcp_clone_size_and_time.
680 (estimate_local_effects): Update use of
681 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
682 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
683 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
684 Return nonspecialized time.
686 2017-05-04 Richard Biener <rguenther@suse.de>
688 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
689 for the last VUSE which def dominates the PHI. Directly call
691 (get_continuation_for_phi_1): Remove.
693 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
695 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
696 to explain the use of truncating division. Cap the number of
697 iterations to the maximum given by nb_iterations_upper_bound,
700 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
702 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
703 * configure: Regenerate.
704 * config.in: Regenerate.
705 * config/i386/driver-mingw32.c: new file.
706 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
707 * config.host: Link driver-mingw32.o on MinGW host.
708 * doc/install.texi: Document new --enable-mingw-wildcard configure
711 2017-05-04 Marek Polacek <polacek@redhat.com>
713 PR tree-optimization/80612
714 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
716 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
717 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
719 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
720 (movt splitter): Likewise.
721 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
722 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
723 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
724 block for Thumb-1 with MOVT.
725 (thumb2_legitimate_address_p): Move code block ...
726 (can_avoid_literal_pool_for_label_p): ... into this new function.
727 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
729 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
730 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
731 "M-profile targets with the MOVT instruction".
733 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
735 * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
736 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
737 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
739 2017-05-04 Martin Liska <mliska@suse.cz>
741 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
744 2017-05-04 Richard Biener <rguenther@suse.de>
746 * tree.c (array_at_struct_end_p): Handle arrays at struct
747 end with flexarrays more conservatively. Refactor and treat
748 arrays of arrays or aggregates more strict. Fix
749 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
750 * tree.c (array_at_struct_end_p): Adjust prototype.
751 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
752 * gimple-fold.c (get_range_strlen): Likewise.
753 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
755 2017-05-04 Richard Biener <rguenther@suse.de>
757 PR tree-optimization/31130
758 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
760 (supports_overflow_infinity): Likewise.
761 (is_negative_overflow_infinity): Likewise.
762 (is_positive_overflow_infinity): Likewise.
763 (is_overflow_infinity): Likewise.
764 (stmt_overflow_infinity): Likewise.
765 (overflow_infinity_range_p): Likewise.
766 (usable_range_p): Remove as always returning true.
767 (make_overflow_infinity): Remove.
768 (negative_overflow_infinity): Likewise.
769 (positive_overflow_infinity): Likewise.
770 (avoid_overflow_infinity): Likewise.
771 (set_value_range): Adjust accordingly.
772 (set_value_range_to_nonnegative): Likewise, remove now unused
773 overflow_infinity arg.
774 (vrp_operand_equal_p): Adjust.
775 (update_value_range): Likewise.
776 (range_int_cst_singleton_p): Likewise.
777 (operand_less_p): Likewise.
778 (compare_values_warnv): Likewise.
779 (extract_range_for_var_from_comparison_expr): Likewise.
780 (vrp_int_const_binop): Likewise.
781 (zero_nonzero_bits_from_vr): Likewise.
782 (extract_range_from_multiplicative_op_1): Likewise.
783 (extract_range_from_binary_expr_1): Likewise.
784 (extract_range_from_unary_expr): Likewise.
785 (extract_range_from_comparison): Likewise.
786 (extract_range_basic): Likewise.
787 (adjust_range_with_scev): Likewise.
788 (compare_ranges): Likewise.
789 (compare_range_with_value): Likewise.
790 (dump_value_range): Likewise.
791 (test_for_singularity): Likewise, remove strict_overflow_p parameter
793 (simplify_cond_using_ranges): Adjust.
795 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
797 * brig-builtins.def: Added a builtin for class_f64.
798 * builtin-types.def: Added a builtin type needed by class_f64.
800 2017-05-03 Jason Merrill <jason@redhat.com>
802 * timevar.def: Add TV_CONSTEXPR.
804 2017-05-03 David Malcolm <dmalcolm@redhat.com>
806 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
808 2017-05-03 Martin Jambor <mjambor@suse.cz>
810 * ipa-prop.c (ipa_update_after_lto_read): Removed.
811 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
812 * ipa-cp.c (ipcp_propagate_stage): Do not call
813 ipa_update_after_lto_read.
814 * ipa-inline.c (ipa_inline): Likewise.
816 2017-05-03 Martin Jambor <mjambor@suse.cz>
818 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
819 tag. Added a default constructor and a destructor.
820 (ipa_edge_args_sum_t): New class;
821 (ipa_edge_args_sum): Declare.
822 (ipa_edge_args_vector): Remove declaration.
823 (IPA_EDGE_REF): Use ipa_edge_args_sum.
824 (ipa_free_edge_args_substructures): Remove declaration.
825 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
826 (ipa_edge_args_info_available_for_edge_p): Likewise.
827 * ipa-prop.c (ipa_edge_args_vector): Removed.
828 (edge_removal_hook_holder): Likewise.
829 (edge_duplication_hook_holder): Likewise.
830 (ipa_edge_args_sum): New variable.
831 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
832 ipa_edge_args_vector.
833 (ipa_free_edge_args_substructures): Likewise.
834 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
835 ipa_edge_args_vector.
836 (ipa_edge_removal_hook): Turned into method
837 ipa_edge_args_sum_t::remove.
838 (ipa_edge_duplication_hook): Turned into method
839 ipa_edge_args_sum_t::duplicate.
840 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
841 registering edge hooks.
842 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
843 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
844 ipa_edge_args_sum instead of ipa_edge_args_vector.
845 * ipa-profile.c (ipa_profile): Likewise.
847 2017-05-03 Martin Jambor <mjambor@suse.cz>
849 * symbol-summary.h (function_summary): New method exists.
850 (function_summary::symtab_removal): Deallocate through release.
851 (call_summary): New class.
852 (gt_ggc_mx): New overload.
853 (gt_pch_nx): Likewise.
854 (gt_pch_nx): Likewise.
856 2017-05-03 Jeff Law <law@redhat.com>
858 PR tree-optimization/78496
859 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
860 from simplify_cond_using_ranges. Split off code to walk
861 backwards through casts into ...
862 (simplify_cond_using_ranges_2): New function.
863 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
864 (execute_vrp): After identifying jump threads, call
865 simplify_cond_using_ranges_2.
867 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
870 * ipa-inline.h (inline_summary): Add ctor.
871 (create_ggc): Do not use ggc_cleared_alloc.
873 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
874 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
876 * gcc.c (handle_braces): Support escaping in switch matching
878 * doc/invoke.texi (Spec Files): Document it.
879 Remove superfluous @code markup in items.
881 2017-05-03 David Malcolm <dmalcolm@redhat.com>
883 * diagnostic-show-locus.c (struct column_range): New struct.
884 (get_affected_columns): New function.
885 (get_printed_columns): New function.
886 (struct correction): New struct.
887 (correction::ensure_capacity): New function.
888 (correction::ensure_terminated): New function.
889 (struct line_corrections): New struct.
890 (line_corrections::~line_corrections): New dtor.
891 (line_corrections::add_hint): New function.
892 (layout::print_trailing_fixits): Reimplement in terms of the new
894 (selftest::test_overlapped_fixit_printing): New function.
895 (selftest::diagnostic_show_locus_c_tests): Call it.
897 2017-05-03 Nathan Sidwell <nathan@acm.org>
899 Canonicalize canonical type hashing
900 * tree.h (type_hash_canon_hash): Declare.
901 * tree.c (type_hash_list, attribute_hash_list): Move into
902 type_hash_canon_hash.
903 (build_type_attribute_qual_variant): Break out hash code calc into
904 type_hash_canon_hash.
905 (type_hash_canon_hash): New. Generic type hash computation.
906 (build_range_type_1, build_array_type_1, build_function_type,
907 build_method_type_directly, build_offset_type, build_complex_type,
908 make_vector_type): Call it.
910 2017-05-03 Richard Biener <rguenther@suse.de>
912 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
913 When all DRs have unknown misaligned do not always peel
914 when there is a store but apply the same costing model as if
915 there were only loads.
917 2017-05-03 Richard Biener <rguenther@suse.de>
920 PR tree-optimization/80492
921 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
922 compare_base_decls returning dont-know properly.
924 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
926 * config/arm/iterators.md (CCSI): New mode iterator.
927 (arch): New mode attribute.
928 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
929 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
930 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
931 code iterator for success result mode.
932 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
933 the corresponding new insn generators.
935 2017-05-03 Bin Cheng <bin.cheng@arm.com>
938 2017-05-02 Bin Cheng <bin.cheng@arm.com>
939 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
941 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
943 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
944 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
945 (DDR_A): Wrap DDR argument in brackets.
946 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
947 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
948 (DDR_REVERSED_P): Likewise.
950 2017-05-03 Jakub Jelinek <jakub@redhat.com>
952 PR tree-optimization/79472
953 * tree-switch-conversion.c (struct switch_conv_info): Add
954 contiguous_range and default_case_nonstandard fields.
955 (collect_switch_conv_info): Compute contiguous_range and
956 default_case_nonstandard fields, don't clear final_bb if
957 contiguous_range and only the default case doesn't have the required
959 (check_all_empty_except_final): Set default_case_nonstandard instead
960 of failing if contiguous_range and the default case doesn't have empty
962 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
963 and only the default case doesn't have the required constants. Skip
965 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
966 if default_case_nonstandard.
967 (build_constructors): Build constant 1 just once. Assert that default
968 values aren't inserted in between cases if contiguous_range. Skip
970 (build_arrays): Skip virtual phis.
971 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
972 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
974 (gen_inbound_check): Handle default_case_nonstandard case.
975 (process_switch): Adjust check_final_bb caller. Call
976 gather_default_values with the first non-default case instead of
977 default case if default_case_nonstandard.
979 2017-05-02 Nathan Sidwell <nathan@acm.org>
981 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
982 check. Fix formatting.
984 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
986 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
987 errors when comparing specialized and unspecialized times.
989 2017-05-02 David Malcolm <dmalcolm@redhat.com>
991 * diagnostic-show-locus.c
992 (layout::should_print_annotation_line_p): Make private.
993 (layout::print_annotation_line): Make private.
994 (layout::annotation_line_showed_range_p): Make private.
995 (layout::show_ruler): Make private.
996 (layout::print_source_line): Make private. Pass in line and
997 line_width, rather than calling location_get_source_line. Drop
999 (layout::print_leading_fixits): New method.
1000 (layout::print_any_fixits): Rename to...
1001 (layout::print_trailing_fixits): ...this, and make private.
1002 Don't print newline fixits.
1003 (diagnostic_show_locus): Move logic for printing one row into...
1004 (layout::print_line): ...this new function. Move the
1005 location_get_source_line call and error-handling from
1006 print_source_line to here. Call print_leading_fixits, and rename
1007 print_any_fixits to print_trailing_fixits.
1008 (selftest::test_fixit_insert_containing_newline): Update now that
1009 newlines are partially supported.
1010 (selftest::test_fixit_insert_containing_newline_2): New test.
1011 (selftest::test_fixit_replace_containing_newline): Update comments.
1012 (selftest::diagnostic_show_locus_c_tests): Call the new test.
1013 * edit-context.c (class added_line): New class.
1014 (class edited_line): Describe newline handling in comment.
1015 (edited_line::actually_edited_p): New method.
1016 (edited_line::print_content): Delete redundant decl.
1017 (edited_line::m_predecessors): New field.
1018 (edited_file::print_content): Call edited_line::print_content.
1019 (edited_file::print_diff): Update to support newlines.
1020 (edited_file::print_diff_hunk): Likewise.
1021 (edited_file::print_run_of_changed_lines): New function.
1022 (edited_file::print_diff_line): Convert to...
1023 (print_diff_line): ...this.
1024 (edited_file::get_effective_line_count): New function.
1025 (edited_line::edited_line): Initialize new field m_predecessors.
1026 (edited_line::~edited_line): Clean up m_predecessors.
1027 (edited_line::apply_fixit): Handle newlines.
1028 (edited_line::get_effective_line_count): New function.
1029 (edited_line::print_content): New function.
1030 (edited_line::print_diff_lines): New function.
1031 (selftest::test_applying_fixits_insert_containing_newline): New
1033 (selftest::test_applying_fixits_replace_containing_newline): New
1035 (selftest::insert_line): New function.
1036 (selftest::test_applying_fixits_multiple_lines): Add example of
1038 (selftest::edit_context_c_tests): Call the new tests.
1040 2017-05-02 Bin Cheng <bin.cheng@arm.com>
1042 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
1043 parameter cand. Update dump information.
1044 (get_computation_cost): Update uses.
1046 2017-05-02 Bin Cheng <bin.cheng@arm.com>
1048 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
1049 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
1050 (get_computation_at, rewrite_use_address): Update use of
1051 get_computation_aff.
1053 2017-05-02 Bin Cheng <bin.cheng@arm.com>
1055 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
1056 (get_computation): Delete.
1057 (get_computation_cost): Implement like get_computation_cost_at.
1058 Use get_computation_at.
1059 (get_computation_cost_at): Delete.
1060 (rewrite_use_nonlinear_expr): Use get_computation_at.
1061 (rewrite_use_compare, remove_unused_ivs): Ditto.
1063 2017-05-02 Bin Cheng <bin.cheng@arm.com>
1065 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
1067 2017-05-02 Bin Cheng <bin.cheng@arm.com>
1069 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
1070 (ivopts_global_cost_for_size): Rename parameter and update uses.
1071 (iv_ca_recount_cost): Update uses.
1072 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
1073 candidates seperately in n_invs and n_cands.
1074 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
1076 2017-05-02 Bin Cheng <bin.cheng@arm.com>
1078 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
1079 (find_inv_vars_cb): New.
1080 (find_depends): Renamed to ...
1081 (find_inv_vars): ... this.
1082 (add_candidate_1, force_var_cost): Call find_inv_vars.
1083 (split_address_cost, determine_group_iv_cost_cond): Ditto.
1085 2017-05-02 Bin Cheng <bin.cheng@arm.com>
1087 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
1088 inv_vars. Add inv_exprs.
1089 (struct iv_cand): Rename depends_on to inv_vars.
1090 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
1091 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
1092 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
1093 (dump_cand): Dump inv_vars.
1094 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
1095 (record_invariant, find_depends, add_candidate_1): Ditto.
1096 (set_group_iv_cost, force_var_cost): Ditto.
1097 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
1098 (get_computation_cost_at, get_computation_cost): Ditto.
1099 (determine_group_iv_cost_generic): Ditto.
1100 (determine_group_iv_cost_address): Ditto.
1101 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
1102 (determine_group_iv_costs): Ditto.
1103 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
1104 (iv_ca_set_remove_invariants): Renamed to ...
1105 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
1106 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
1107 (iv_ca_set_add_invariants): Renamed to ...
1108 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
1109 (iv_ca_set_cp): Use iv_ca_set_add_invs.
1110 (iv_ca_has_deps): Support inv_vars and inv_exprs.
1111 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
1112 (create_new_ivs): Remove useless dump.
1114 2017-05-02 Bin Cheng <bin.cheng@arm.com>
1116 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
1118 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
1119 (iv_ca_set_no_cp, create_new_iv): Ditto.
1121 2017-05-02 Bin Cheng <bin.cheng@arm.com>
1123 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
1125 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1127 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
1128 function tree_check2.
1130 2017-05-02 Martin Liska <mliska@suse.cz>
1132 * doc/gcov.texi: Add missing preposition.
1133 * gcov.c (function_info::function_info): Properly fill up
1134 all member variables.
1136 2017-05-02 Tamar Christina <tamar.christina@arm.com>
1138 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
1140 2017-05-02 Tamar Christina <tamar.christina@arm.com>
1142 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
1144 2017-05-02 Martin Liska <mliska@suse.cz>
1147 * lto-streamer-in.c (lto_read_tree_1): Remove
1149 * lto-streamer.c (struct tree_hash_entry): Likewise.
1150 (struct tree_entry_hasher): Likewise.
1151 (tree_entry_hasher::hash): Likewise.
1152 (tree_entry_hasher::equal): Likewise.
1153 (lto_streamer_init): Likewise.
1154 (lto_orig_address_map): Likewise.
1155 (lto_orig_address_get): Likewise.
1156 (lto_orig_address_remove): Likewise.
1157 * lto-streamer.h: Likewise.
1158 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
1159 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
1161 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
1163 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
1164 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
1165 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
1166 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
1167 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
1168 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
1169 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
1170 (mm_maskz_sub_ss): New intrinsics.
1171 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1172 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
1173 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
1174 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
1175 (__builtin_ia32_subss_mask_round): New builtins.
1176 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
1177 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
1178 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
1180 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
1181 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
1183 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
1186 2017-05-02 Martin Jambor <mjambor@suse.cz>
1188 PR tree-optimization/78687
1189 * tree-sra.c (access): New field parent.
1190 (process_subtree_disqualification): New function.
1191 (disqualify_candidate): Call it.
1192 (build_accesses_from_assign): Reset write flag if creating an
1194 (build_access_subtree): Fill in parent field and also prpagate
1195 down grp_write flag.
1196 (create_artificial_child_access): New parameter set_grp_write, set
1197 grp_write to its value.
1198 (propagate_subaccesses_across_link): Also propagate grp_write flag
1200 (propagate_all_subaccesses): Push the closest parent back to work
1201 queue if add_access_to_work_queue returned true.
1203 2017-05-02 Richard Biener <rguenther@suse.de>
1205 * common.opt (fstrict-overflow): Alias negative to fwrapv.
1206 * doc/invoke.texi (fstrict-overflow): Remove all traces of
1207 -fstrict-overflow documentation.
1208 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
1209 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
1210 flag_strict_overflow.
1211 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
1212 * lto-opts.c (lto_write_options): Do not stream it.
1213 * lto-wrapper.c (merge_and_complain): Do not handle it.
1214 * opts.c (default_options_table): Do not set -fstrict-overflow.
1215 (finish_options): Likewise do not clear it when sanitizing.
1216 * simplify-rtx.c (simplify_const_relational_operation): Do not
1217 test flag_strict_overflow.
1219 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
1221 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
1222 using enabled attribute.
1223 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
1224 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
1225 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
1226 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
1227 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
1228 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
1229 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
1230 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
1231 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
1232 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
1234 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
1236 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
1238 2017-05-02 Richard Biener <rguenther@suse.de>
1240 PR tree-optimization/80591
1242 2017-04-10 Richard Biener <rguenther@suse.de>
1244 * tree-ssa-structalias.c (find_func_aliases): Properly handle
1247 2017-05-02 Richard Biener <rguenther@suse.de>
1249 PR tree-optimization/80549
1250 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
1251 (cleanup_tree_cfg_noloop): Create forwarders to known loop
1252 headers if they do not have a preheader.
1254 2017-05-02 Martin Liska <mliska@suse.cz>
1257 * common.opt: Fix typo.
1258 * doc/invoke.texi: Likewise.
1260 2017-05-01 Jan Beulich <jbeulich@suse.com>
1262 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
1263 swapping, add (x,x,m,x,n) alternative.
1265 2017-05-01 Nathan Sidwell <nathan@acm.org>
1267 * calls.c (combine_pending_stack_adjustment_and_call): Remove
1268 unnecessary unadjusted_alignment check.
1270 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1273 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
1275 * gimplify.c (gimplify_cilk_detach): New function.
1276 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
1277 * tree-core.h: Document EXPR_CILK_SPAWN.
1278 * tree.h (EXPR_CILK_SPAWN): Define.
1280 2017-05-01 David Malcolm <dmalcolm@redhat.com>
1282 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
1283 to use new fixit_hint representation, using the "replace" logic.
1284 (get_line_span_for_fixit_hint): Likewise.
1285 (layout::print_any_fixits): Likewise.
1286 (selftest::test_one_liner_many_fixits): Rename to...
1287 (selftest::test_one_liner_many_fixits_1): ...this, and update
1288 comment and expected output to reflect that the multiple fix-it
1289 hints are now consolidated into one insertion.
1290 (selftest::test_one_liner_many_fixits_2): New test.
1291 (selftest::test_diagnostic_show_locus_one_liner): Update for
1293 (selftest::test_fixit_consolidation): Update for fix-it API
1295 * diagnostic.c (print_parseable_fixits): Likewise.
1296 * edit-context.c (edited_line::m_line_events): Convert from
1297 auto_vec <line_event *> to auto_vec <line_event>.
1298 (class line_event): Convert from abstract base class to a concrete
1299 class, taking over the role of replace_event.
1300 (class insert_event): Delete.
1301 (class replace_event): Rename to class line_event. Convert to
1303 (edit_context::add_fixits): Reimplement.
1304 (edit_context::apply_insert): Delete.
1305 (edit_context::apply_replace): Rename to...
1306 (edit_context::apply_fixit): ...this. Convert to half-open range.
1307 (edited_file::apply_insert): Delete.
1308 (edited_file::apply_replace): Rename to...
1309 (edited_file::apply_fixit): ...this.
1310 (edited_line::~edited_line): Drop deletion of events.
1311 (edited_line::apply_insert): Delete.
1312 (edited_line::apply_replace): Rename to...
1313 (edited_line::apply_fixit): ...this. Convert to half-open range.
1314 Update for change to type of m_line_events.
1315 * edit-context.h (edit_context::apply_insert): Delete.
1316 (edit_context::apply_replace): Rename to...
1317 (edit_context::apply_fixit): ...this.
1319 2017-05-01 Martin Sebor <msebor@redhat.com>
1321 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
1324 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
1327 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
1328 __get_cpuid_max returns 0.
1329 (__get_cpuid_count): Ditto.
1331 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
1333 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
1334 replacement expression is another instance of one of its arguments.
1336 2017-05-01 Jakub Jelinek <jakub@redhat.com>
1339 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
1340 check for stack push/pop autoinc.
1341 * config/i386/i386.c (ix86_agi_dependent): Return false
1342 if the only reason why modified_in_p returned true is that
1343 addr is SP based and set_insn is a push or pop.
1345 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
1347 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
1350 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
1353 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
1354 (account_size_time): Use two predicates - exec_pred and
1356 (evaluate_conditions_for_known_args): Compute both clause and
1358 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
1359 (inline_summary_t::duplicate): Update.
1360 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
1362 (compute_inline_parameters): Likewise.
1363 (estimate_edge_size_and_time): Update caluclation of time.
1364 (estimate_node_size_and_time): Compute both time and nonspecialized
1366 (estimate_ipcp_clone_size_and_time): Update.
1367 (inline_merge_summary): Update.
1368 (do_estimate_edge_time): Update.
1369 (do_estimate_edge_size): Update.
1370 (do_estimate_edge_hints): Update.
1371 (inline_read_section, inline_write_summary): Stream both new predicates.
1372 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
1374 (compute_inlined_call_time): Cleanup.
1375 (big_speedup_p): Update.
1376 (edge_badness): Update.
1377 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
1378 (size_time_entry): Replace predicate by exec_predicate and
1380 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
1381 (estimate_edge_time): Return also nonspec_time.
1382 (reset_edge_growth_cache): Update.
1384 2017-04-29 Jakub Jelinek <jakub@redhat.com>
1386 PR rtl-optimization/80491
1387 * ifcvt.c (noce_process_if_block): When looking for x setter
1388 with missing else_bb, don't check only the insn right before
1389 cond_earliest, but look for the last insn that x is modified in
1392 PR rtl-optimization/80491
1393 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
1395 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
1397 PR tree-optimization/80487
1398 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
1400 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1402 PR tree-optimization/79697
1403 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
1404 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
1405 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
1407 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
1408 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
1410 2017-04-28 Martin Sebor <msebor@redhat.com>
1412 PR tree-optimization/80523
1413 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
1414 (init_target_to_host_charmap, target_to_host, target_strtol10): New
1416 (maybe_warn, format_directive, parse_directive): Use new functions.
1417 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
1419 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
1421 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
1423 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1425 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
1426 target_header_dir): Set correctly.
1427 * configure: Regenerated.
1428 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
1429 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
1430 instead of SYSTEM_HEADER_DIR.
1432 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
1434 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
1435 (estimate_local_effects): Likewise.
1436 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
1437 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
1438 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
1439 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
1440 do_estimate_edge_time, estimate_edge_time): Likewise.
1441 * ipa-inline-analysis.c (estimate_node_size_and_time,
1442 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
1443 (estimate_time_after_inlining): Remove.
1445 2017-04-28 Martin Liska <mliska@suse.cz>
1447 * doc/gcov.texi: Enhance documentation of gcov.
1449 2017-04-28 Martin Liska <mliska@suse.cz>
1451 * doc/gcov.texi: Sort options in alphabetic order.
1452 * doc/gcov-dump.texi: Likewise.
1453 * doc/gcov-tool.texi: Likewise.
1454 * gcov.c (print_usage): Likewise.
1455 * gcov-dump.c (print_usage): Likewise.
1456 * gcov-tool.c (print_merge_usage_message): Likewise.
1457 (print_rewrite_usage_message): Likewise.
1458 (print_overlap_usage_message): Likewise.
1460 2017-04-28 Martin Liska <mliska@suse.cz>
1462 PR gcov-profile/53915
1463 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
1465 2017-04-28 Martin Liska <mliska@suse.cz>
1467 PR gcov-profile/79891
1468 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
1469 is marked by compiler as living on a line.
1470 (get_cycles_count): Remove usage of the union.
1471 (output_intermediate_file): Likewise.
1472 (find_source): Fix GNU coding style.
1473 (accumulate_line_counts): Remove old non-all block mode.
1474 (output_lines): Remove usage of the union.
1475 * profile.c (output_location): Include all BBs, even if
1476 belonging to a same line (and file) as a previous BB.
1478 2017-04-28 Martin Liska <mliska@suse.cz>
1480 * gcov.c (process_args): Handle new argument 'w'.
1481 (read_graph_file): Assign ID to BBs.
1482 (output_branch_count): Display BB # if verbose flag is set.
1483 (output_lines): Likewise for arcs.
1484 (print_usage): Add '--verbose' option help.
1485 * doc/gcov.texi: Document --verbose (-w) option.
1487 2017-04-28 Martin Liska <mliska@suse.cz>
1489 * gcov.c (struct block_location_info): New struct.
1490 (process_file): Fill up the new structure.
1491 (read_graph_file): Replace usage of encoding by the newly added
1493 (add_line_counts): Likewise.
1494 (accumulate_line_counts): Remove usage of the union.
1495 (function_info::function_info): New function.
1496 (function_info::~function_info): Likewise.
1497 (process_file): Call delete instead of release_function.
1498 (release_function): Release the function.
1499 (release_structures): Call delete instead of release_function.
1500 (solve_flow_graph): Replace usage of num_blocks.
1501 (find_exception_blocks): Likewise.
1502 (output_lines): Fix GNU coding style.
1504 2017-04-28 Martin Liska <mliska@suse.cz>
1507 * coverage.c (coverage_remove_note_file): New function.
1508 * coverage.h: Declare the function.
1509 * toplev.c (finalize): Clean if an error has been seen.
1511 2017-04-28 Martin Liska <mliska@suse.cz>
1513 PR gcov-profile/80031
1514 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
1515 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
1516 * gcov.c (read_graph_file): Read just number of blocks.
1517 * profile.c (branch_prob): Do not stream 0 flags per a basic
1520 2017-04-28 Martin Liska <mliska@suse.cz>
1522 * gcov-dump.c (tag_*): Add new argument to declarations.
1523 (dump_gcov_file): Likewise.
1524 (tag_blocks): Add and use new argument depth.
1525 (tag_arcs): Likewise.
1526 (tag_lines): Likewise.
1527 (tag_counters): Likewise.
1528 (tag_summary): Likewise.
1529 (dump_working_sets): Use depth to do a proper indentation.
1531 2017-04-28 Jakub Jelinek <jakub@redhat.com>
1534 * cgraph.h (symtab_node::debug_symtab): No longer inline.
1535 * symtab.c (symtab_node::debug_symtab): Move definition here.
1537 2017-04-28 Richard Biener <rguenther@suse.de>
1539 * lto-streamer.h (LTO_major_version): Bump to 7.
1541 2017-04-28 Richard Biener <rguenther@suse.de>
1543 * tree-vrp.c (assert_info): New struct.
1544 (add_assert_info): New helper.
1545 (register_edge_assert_for_2): Refactor to add asserts to a vector
1547 (register_edge_assert_for_1): Likewise.
1548 (register_edge_assert_for): Likewise.
1549 (finish_register_edge_assert_for): New helper actually registering
1550 asserts where live on edge.
1551 (find_conditional_asserts): Adjust.
1552 (find_switch_asserts): Likewise.
1553 (evrp_dom_walker::try_find_new_range): Generalize.
1554 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
1556 2017-04-27 Marek Polacek <polacek@redhat.com>
1559 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
1560 arg10 and arg11 to itype.
1562 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
1564 * doc/extend.texi (Object Size Checking): Improve grammar.
1566 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
1569 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
1570 that the logic for permitting reciprocal estimates matches that
1573 2017-04-27 Jakub Jelinek <jakub@redhat.com>
1576 * tree.c (type_cache_hasher::equal): Only compare
1577 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
1578 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
1579 non-aggregate element types.
1580 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
1581 about the flag on ARRAY_TYPEs in the comment, formatting fix.
1583 2017-04-27 Richard Biener <rguenther@suse.de>
1586 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
1587 stripping ARRAY_REFs from MEM_EXPR make sure we're not
1588 keeping a reference to a trailing array.
1590 2017-04-27 Richard Biener <rguenther@suse.de>
1593 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
1594 being in loop-closed SSA form conservatively.
1595 (chrec_fold_multiply_poly_poly): Likewise.
1597 2017-04-27 Tamar Christina <tamar.christina@arm.com>
1600 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
1601 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
1603 2017-04-27 Jakub Jelinek <jakub@redhat.com>
1606 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
1607 (aarch64_function_arg_alignment): Return unsigned int again, but still
1608 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
1609 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
1610 Don't emit -Wpsabi note.
1611 (aarch64_function_arg_boundary): Likewise.
1612 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
1615 2017-04-26 Nathan Sidwell <nathan@acm.org>
1617 * tree.h (crc32_unsigned_n): Declare.
1618 (crc32_unsigned, crc32_unsigned): Make inline.
1619 * tree.c (crc32_unsigned_bits): Replace with ...
1620 (crc32_unsigned_n): ... this.
1621 (crc32_unsigned, crc32_byte): Remove.
1622 (crc32_string): Remove unnecessary braces.
1624 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
1626 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
1627 * ipa-inline-analysis.c (MAX_TIME): Remove.
1628 (account_size_time): Use sreal for time.
1629 (dump_inline_summary): Update.
1630 (estimate_function_body_sizes): Update.
1631 (estimate_edge_size_and_time): Update.
1632 (estimate_calls_size_and_time): Update.
1633 (estimate_node_size_and_time): Update.
1634 (inline_merge_summary): Update.
1635 (inline_update_overall_summary): Update.
1636 (estimate_time_after_inlining): Update.
1637 (inline_read_section): Update.
1638 (inline_write_summary): Update.
1639 * ipa-inline.c (compute_uninlined_call_time): Update.
1640 (compute_inlined_call_time): Update.
1641 (recursive_inlining): Update.
1642 (inline_small_functions): Update.
1643 (dump_overall_stats): Update.
1644 * ipa-inline.h: Include sreal.h.
1645 (size_time_entry): Turn time to sreal.
1646 (inline_summary): Turn self_time nad time to sreal.
1648 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
1650 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
1652 (sreal::stream_out, sreal::stream_in): New.
1653 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
1655 2017-04-25 Jakub Jelinek <jakub@redhat.com>
1657 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
1660 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
1663 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
1665 (dimode_scalar_chain::compute_convert_gain): Ditto.
1666 (dimode_scalar_chain::make_vector_copies): Ditto.
1667 (dimode_scalar_chain::convert_reg): Ditto.
1668 (dimode_scalar_chain::convert_insn): Ditto.
1669 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
1670 (VI248_AVX512BW_1): New mode iterator.
1671 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
1672 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
1675 2017-04-25 Martin Sebor <msebor@redhat.com>
1677 PR tree-optimization/80497
1678 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
1679 constants are representable in HOST_WIDE_INT.
1680 (parse_directive): Ditto.
1682 2017-04-25 Martin Sebor <msebor@redhat.com>
1685 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
1686 (new_zero_array): Adjust signature.
1687 (dom_info::dom_init): Used unsigned rather that size_t.
1688 (dom_info::dom_info): Same.
1690 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1691 Jakub Jelinek <jakub@redhat.com>
1694 * config/arm/arm.c: Include gimple.h.
1695 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
1696 returns negative, increment ncrn only if it returned positive.
1697 (arm_needs_doubleword_align): Return int instead of bool,
1698 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
1699 members, but if there is any such non-FIELD_DECL
1700 > PARM_BOUNDARY aligned decl, return -1 instead of false.
1701 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
1702 returns negative, increment nregs only if it returned positive.
1703 (arm_setup_incoming_varargs): Likewise.
1704 (arm_function_arg_boundary): Emit -Wpsabi note if
1705 arm_needs_doubleword_align returns negative, return
1706 DOUBLEWORD_ALIGNMENT only if it returned positive.
1708 2017-04-25 Marek Polacek <polacek@redhat.com>
1711 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
1712 first argument to type.
1714 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
1717 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
1718 type checks to test for compatibility instead of equality.
1720 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1721 Jakub Jelinek <jakub@redhat.com>
1724 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
1726 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
1727 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
1728 the alignment computation, but return their maximum in warn_alignment.
1729 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
1730 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
1732 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
1733 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
1736 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
1738 * config/arc/simdext.md (dmpyh): Fix typo.
1740 2017-04-25 Richard Biener <rguenther@suse.de>
1742 PR tree-optimization/80492
1743 * alias.c (compare_base_decls): Handle registers with asm
1744 specification conservatively.
1745 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
1746 compare_base_decls returning dont-know properly.
1748 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
1750 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
1751 (legitimate_offset_address_p): New function.
1752 (arc_legitimate_address_p): Use above function.
1754 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
1756 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
1758 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
1760 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
1761 ACCH registers whenever they are available.
1763 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
1765 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
1766 double regs fix when not used.
1768 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
1770 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
1772 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
1773 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
1775 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
1777 * config/arc/arc.c (arc_output_addsi): Check for h-register class
1778 when emitting short ADD instructions.
1780 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
1782 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
1784 (cmpsi_cc_c_insn): Likewise.
1785 (cbranchsi4_scratch): Compute proper instruction length using
1786 compact_hreg_operand.
1787 * config/arc/predicates.md (compact_hreg_operand): New predicate.
1789 2017-04-25 Richard Biener <rguenther@suse.de>
1792 * passes.c (pass_manager::pass_manager): Initialize
1795 2017-04-25 Richard Biener <rguenther@suse.de>
1797 PR tree-optimization/79201
1798 * tree-ssa-sink.c (statement_sink_location): Handle calls.
1800 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1803 * config/s390/vector.md: Split MEM->GPR vector moves for
1804 non-s_operand addresses.
1806 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1809 * config/s390/predicates.md (reload_const_wide_int_operand): New
1811 * config/s390/s390.md ("movti"): Remove d/P alternative.
1812 ("movti_bigconst"): New pattern definition.
1814 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
1817 * s390-protos.h (s390_expand_cs_hqi): Removed.
1818 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
1819 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
1820 modes as well as CCZ1mode and CCZmode.
1821 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
1822 signature of s390_emit_compare_and_swap.
1823 (s390_expand_cs_hqi): Likewise, make static.
1824 (s390_expand_cs_tdsi): Generate an explicit compare before trying
1825 compare-and-swap, in some cases.
1826 (s390_expand_cs): Wrapper function.
1827 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
1829 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
1830 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
1831 patterns for small and large integers. Forbid symref memory operands.
1832 Move expander to s390.c. Require cc register.
1833 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
1834 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
1835 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
1836 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
1837 symref memory operands. Remove CC mode and call s390_match_ccmode
1839 ("atomic_exchange<mode>"): Allow and implement all integer modes.
1841 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
1843 * config/s390/s390.md (define_peephole2): New peephole to help
1844 combining the load-and-test pattern with volatile memory.
1846 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
1848 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
1849 with CCZmode for TARGET_Z196.
1851 2017-04-25 Jakub Jelinek <jakub@redhat.com>
1853 PR rtl-optimization/80501
1854 * combine.c (make_compound_operation_int): Set subreg_code to SET
1855 even for AND with mask of the sign bit of mode.
1857 PR rtl-optimization/80500
1858 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
1859 sum's initial value.
1861 2017-04-25 Julian Brown <julian@codesourcery.com>
1862 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1864 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
1866 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
1868 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
1870 2017-04-25 Julian Brown <julian@codesourcery.com>
1871 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1873 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
1874 (thunderx2t99_sha): New Reservation.
1876 2017-04-25 Julian Brown <julian@codesourcery.com>
1877 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1879 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
1880 type for 1-element load.
1882 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
1884 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
1886 2017-04-24 Martin Jambor <mjambor@suse.cz>
1888 PR tree-optimization/80293
1889 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
1890 char arrays not totally scalarizable if it is false.
1891 (analyze_all_variable_accesses): Pass correct value in the new
1892 parameter. Add a statistics counter.
1894 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
1897 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
1899 2017-04-24 Richard Biener <rguenther@suse.de>
1901 PR tree-optimization/80494
1902 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
1903 out for complex types.
1905 2017-04-24 Richard Biener <rguenther@suse.de>
1907 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
1908 * tree-ssa-sccvn.c (print_scc): Print SCC size.
1909 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
1910 (DFS): Adjust and never fail.
1911 (sccvn_dom_walker::fail): Remove.
1912 (sccvn_dom_walker::before_dom_children): Adjust.
1913 (run_scc_vn): Likewise and never fail.
1914 * tree-ssa-pre.c (pass_pre::execute): Adjust.
1915 (pass_fre::execute): Likewise.
1917 2017-04-24 Richard Biener <rguenther@suse.de>
1919 PR tree-optimization/79725
1920 * tree-ssa-sink.c (statement_sink_location): Return whether
1921 failure reason was zero uses. Move that check later.
1922 (sink_code_in_bb): Deal with zero uses by removing the stmt
1925 2017-04-24 Richard Biener <rguenther@suse.de>
1928 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
1929 pointer-based references.
1931 2017-04-24 Richard Biener <rguenther@suse.de>
1934 * pass_manager.h (pass_manager::operator new): Remove.
1935 (pass_manager::operator delete): Likewise.
1936 * passes.c (pass_manager::operator new): Remove.
1937 (pass_manager::operator delete): Likewise.
1938 (pass_manager::pass_manager): Zero individual pass members.
1940 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
1943 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
1944 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
1945 Check "XEXP (src, 1)" operand here.
1946 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
1947 Check "XEXP (src, 1)" operand here.
1948 (dimode_scalar_chain::make_vector_copies): Detect count register
1949 of a shift instruction. Zero extend count register from QImode
1950 to DImode to satisfy vector shift pattern count operand predicate.
1951 Substitute vector shift count operand with a DImode copy.
1952 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
1955 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
1957 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
1958 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
1959 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
1960 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
1961 (UNSPEC_NOREX_MEM): Remove definition.
1963 2017-04-21 Richard Biener <rguenther@suse.de>
1965 PR tree-optimization/79547
1966 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1967 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
1968 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
1969 without any constraints.
1971 2017-04-21 Richard Biener <rguenther@suse.de>
1973 PR tree-optimization/78847
1974 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
1976 2017-04-21 Richard Biener <rguenther@suse.de>
1978 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
1979 (build_distinct_type_copy): Likewise.
1980 (build_variant_type_copy): Likewise.
1981 * tree.c (build_qualified_type): Pass down mem-stat info.
1982 (build_distinct_type_copy): Likewise.
1983 (build_variant_type_copy): Likewise.
1985 2017-04-21 Richard Biener <rguenther@suse.de>
1987 PR tree-optimization/80237
1988 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
1990 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
1991 for a simplified result.
1993 2016-04-21 Richard Biener <rguenther@suse.de>
1995 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
1996 sth as strict as a simple_iv but a chrec without symbols and an
1997 operand defined in the loop we are peeling (and not some subloop).
1998 (propagate_constants_for_unrolling): Propagate all constants.
2000 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
2003 * config/i386/i386.c (print_reg): Remove assert for disalowed
2004 regno values, call output_operand_lossage instead.
2006 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
2009 * config/i386/constraints.md (Yc): New register constraint.
2010 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
2011 Use Yc constraint for alternative 2 of operand 0. Remove
2012 preferred_for_speed attribute.
2014 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
2016 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
2017 lastprivate clauses in SIMT case.
2019 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
2021 * doc/invoke.texi (-Wextra-semi): Document new warning option.
2023 2017-04-20 Richard Biener <rguenther@suse.de>
2025 PR tree-optimization/57796
2026 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
2028 (vect_model_load_cost): Cost gathers as N scalar loads.
2030 2017-04-20 Richard Biener <rguenther@suse.de>
2032 * ggc-page.c (ggc_allocated_p): Rename to ...
2033 (safe_lookup_page_table_entry): ... this and return the lookup
2035 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
2037 2017-04-20 Richard Biener <rguenther@suse.de>
2039 PR tree-optimization/80453
2040 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
2041 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
2042 from the conditions.
2043 (vn_phi_eq): Pass them down.
2044 (vn_phi_lookup): Record them.
2045 (vn_phi_insert): Likewise.
2047 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
2049 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
2050 uninitialized variable warning to avoid buffer overrun.
2052 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
2055 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
2056 is suppressed for '{ 0 }' in C.
2058 2017-04-20 Jakub Jelinek <jakub@redhat.com>
2060 * BASE-VER: Set to 8.0.0.
2062 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
2064 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
2065 priority .init_array and .fini_array section with SECTION_NOTYPE
2068 2017-04-20 Jakub Jelinek <jakub@redhat.com>
2071 * tree.h (build_array_type): Add typeless_storage default argument.
2072 * tree.c (type_cache_hasher::equal): Also compare
2073 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
2074 (build_array_type): Add typeless_storage argument, set
2075 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
2077 (build_nonshared_array_type): Adjust build_array_type_1 caller.
2078 (build_array_type): Likewise. Add typeless_storage argument.
2080 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
2081 Jakub Jelinek <jakub@redhat.com>
2083 PR tree-optimization/80426
2084 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
2085 operation on symbolic operands, also compute the overflow for the
2086 invariant part when the operation degenerates into a negation.
2088 2017-04-19 Jakub Jelinek <jakub@redhat.com>
2091 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
2092 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
2095 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
2097 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
2100 * config/avr/avr.c (tree.h): Include it.
2101 (cgraph.h): Include it.
2102 (avr_encode_section_info): Don't warn for uninitialized progmem
2103 variable if it's just an alias.
2105 2017-04-19 Richard Biener <rguenther@suse.de>
2108 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
2109 when needed by AutoPGO.
2111 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
2114 * doc/lto.texi: Remove an extra 'that'.
2116 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
2118 PR rtl-optimization/80429
2119 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
2120 are only used in debug insns.
2122 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
2123 Vladimir Makarov <vmakarov@redhat.com>
2125 * config/sparc/predicates.md (input_operand): Add comment. Return
2126 true for any memory operand when LRA is in progress.
2127 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
2129 2017-04-18 Jeff Law <law@redhat.com>
2132 * mips.md ({return,simple_return}_internal): Do not overwrite
2135 2017-04-18 Jakub Jelinek <jakub@redhat.com>
2137 PR tree-optimization/80443
2138 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
2139 instead of adding 1, subtract -1 and similarly instead of subtracting
2142 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
2144 PR rtl-optimization/80357
2145 * haifa-sched.c (tmp_bitmap): New variable.
2146 (model_recompute): Handle duplicate use records.
2147 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
2148 (free_global_sched_pressure_data): Free it.
2150 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
2153 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
2154 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
2155 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
2156 instead of SYSTEM_HEADER_DIR.
2158 2017-04-18 Jeff Law <law@redhat.com>
2161 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
2162 predecessors after walking up the insn chain.
2164 2017-04-18 Jakub Jelinek <jakub@redhat.com>
2167 * dwarf2out.c (modified_type_die): Try harder not to emit internal
2168 sizetype type into debug info.
2170 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2173 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
2174 unneeded test for TARGET_UPPER_REGS_SF.
2175 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
2177 2017-04-18 Jakub Jelinek <jakub@redhat.com>
2180 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
2181 instead of gsi_after_labels.
2183 2017-04-18 Jeff Law <law@redhat.com>
2185 * regcprop.c (maybe_mode_change): Avoid creating copies of the
2189 2017-04-13 Jeff Law <law@redhat.com>
2190 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
2191 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
2193 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
2196 * config/avr/avr.c (intl.h): Include it.
2197 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
2199 2017-04-18 Martin Liska <mliska@suse.cz>
2201 PR gcov-profile/78783
2202 * gcov-tool.c (gcov_output_files): Validate that destination
2203 file is either removed by the tool or by a user.
2205 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
2206 Guy Benyei <guybe@mellanox.com>
2208 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
2209 block, and do not negate it, the stored id is already negative.
2211 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
2213 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
2215 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2218 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
2219 masks of options that should be turned off if the VSX vector
2220 options are turned off.
2221 (OTHER_P8_VECTOR_MASKS): Likewise.
2222 (OTHER_VSX_VECTOR_MASKS): Likewise.
2223 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
2224 rs6000_disable_incompatible_switches to validate no type switches
2226 (rs6000_incompatible_switch): New function to disallow turning on
2227 other vector options if -mno-vsx, -mno-power8-vector, or
2228 -mno-power9-vector are specified.
2230 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
2232 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
2234 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
2236 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
2237 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
2238 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
2239 (ARG_POINTER_CFA_OFFSET): Likewise.
2241 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
2243 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
2244 conditions to take advantage of various optimizations.
2246 2017-04-13 Jeff Law <law@redhat.com>
2248 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
2249 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
2250 (zero_extendsidi2_dext): Likewise.
2252 2017-04-13 Jakub Jelinek <jakub@redhat.com>
2255 * fold-const.c (fold_ternary_loc): Revert
2256 use op0 instead of fold_convert_loc (loc, type, arg0) part of
2259 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
2261 PR rtl-optimization/80343
2262 * lra-remat.c (update_scratch_ops): Assign original hard reg to
2265 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
2268 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
2269 to ubsan_encode_value.
2271 2017-04-13 Jeff Law <law@redhat.com>
2273 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
2274 appearing in DEBUG_INSNs.
2276 2017-04-13 Martin Liska <mliska@suse.cz>
2278 PR gcov-profile/80413
2279 * gcov-io.c (gcov_write_string): Copy to buffer just when
2280 allocated size is greater than zero.
2282 2017-04-13 Jakub Jelinek <jakub@redhat.com>
2285 * dwarf2out.c (decls_for_scope): Ignore declarations of
2286 current_function_decl in BLOCK_NONLOCALIZED_VARS.
2288 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
2291 * ipa-visibility.c (non_local_p): Fix typos.
2292 (localize_node): When localizing symbol in same comdat group,
2293 dissolve the group only when we know external symbols are going
2295 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
2297 2017-04-12 Jakub Jelinek <jakub@redhat.com>
2299 PR tree-optimization/79390
2300 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
2301 order does not result in usable sequence, retry with reversed operand
2307 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
2308 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
2309 op0 instead of fold_convert_loc (loc, type, arg0).
2311 2017-04-12 Jeff Law <law@redhat.com>
2313 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
2314 has a delay slot in the generated code.
2316 * config/cris/cris.md (cris_preferred_reload_class): Return
2317 GENNONACR_REGS rather than GENERAL_REGS.
2319 2017-04-12 Jakub Jelinek <jakub@redhat.com>
2322 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
2323 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
2324 signedness of the result type.
2326 2017-04-12 Richard Biener <rguenther@suse.de>
2327 Jeff Law <law@redhat.com>
2329 PR tree-optimization/80359
2330 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
2331 trim stores to TARGET_MEM_REFs.
2333 2017-04-12 Richard Biener <rguenther@suse.de>
2335 PR tree-optimization/79390
2336 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
2337 threading case even more.
2339 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
2342 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
2343 for quad_address_p for TImode, instead of just not indexed_address.
2345 2017-04-12 Richard Biener <rguenther@suse.de>
2346 Bernd Edlinger <bernd.edlinger@hotmail.de>
2349 * alias.c (component_uses_parent_alias_set_from): Handle
2350 TYPE_TYPELESS_STORAGE.
2351 (get_alias_set): Likewise.
2352 * tree-core.h (tree_type_common): Add typeless_storage flag.
2353 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
2354 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
2355 for types containing members with TYPE_TYPELESS_STORAGE.
2356 (place_field): Likewise.
2357 (layout_type): Likewise for ARRAY_TYPE.
2358 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
2359 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
2360 TYPE_TYPELESS_STORAGE.
2361 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
2363 2017-04-12 Jakub Jelinek <jakub@redhat.com>
2366 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
2367 first argument to type.
2369 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2373 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
2374 CONST0_RTX (mode) rather than const0_rtx where appropriate.
2375 (rs6000_expand_binop_builtin): Likewise.
2376 (rs6000_expand_ternop_builtin): Likewise; also add missing
2377 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
2378 vshasigma built-ins.
2379 * doc/extend.texi: Document that vec_xxpermdi's third argument
2382 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
2384 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
2385 Use shift_const cost parameter when calculating gain of STV shifts.
2387 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
2389 PR rtl-optimization/70478
2390 * lra-constraints.c (process_alt_operands): Check memory for
2391 disfavoring memory insn operand.
2393 2017-04-11 Jakub Jelinek <jakub@redhat.com>
2396 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
2397 left shift in unsigned HOST_WIDE_INT type.
2399 PR rtl-optimization/80385
2400 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
2401 (not (neg X)) into (plus X -1) for complex or non-integral modes.
2404 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
2405 if they have any depend clauses.
2407 2017-04-11 Martin Liska <mliska@suse.cz>
2410 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
2411 * ipa-split.c (split_function): Create a local comdat symbol
2412 if caller is in a comdat group.
2414 2017-04-11 Martin Liska <mliska@suse.cz>
2417 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
2420 2017-04-11 Martin Sebor <msebor@redhat.com>
2423 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
2424 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
2426 (directive::set_width, directive::set_precision, format_character):
2428 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
2431 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
2434 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
2435 conflict, set target->arch_name instead of target->cpu_name.
2437 2017-04-11 Richard Biener <rguenther@suse.de>
2439 PR tree-optimization/80374
2440 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
2441 build_zero_cst, remove fold_convertible_p check again.
2443 2017-04-11 Martin Liska <mliska@suse.cz>
2446 * ubsan.c (instrument_object_size): Do not instrument register
2449 2017-04-11 Jakub Jelinek <jakub@redhat.com>
2452 * config/i386/i386-builtin-types.def
2453 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
2454 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
2455 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
2456 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
2457 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
2458 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
2459 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
2460 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
2461 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
2462 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
2463 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
2464 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
2465 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
2466 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
2467 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
2468 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
2469 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
2470 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
2471 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
2472 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
2473 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
2474 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
2475 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
2476 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
2477 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
2478 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
2479 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
2480 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
2481 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
2482 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
2483 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
2484 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
2485 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
2486 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
2487 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
2488 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
2489 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
2490 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
2491 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
2492 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
2493 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
2494 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
2495 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
2496 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
2497 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
2498 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
2500 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
2501 flag to second_arg_count, handle 4 argument function type _COUNT
2502 aliases, handle second_arg_count on second argument rather than last.
2504 2017-04-10 Jeff Law <law@redhat.com>
2506 PR tree-optimization/80374
2507 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
2508 record anything if we can not convert integer_zero_node to the
2511 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
2514 * config/rs6000/rs6000.c (rs6000_option_override_internal):
2515 Enhance special handling given to the TARGET_P9_MINMAX option in
2516 relation to certain other options.
2518 2017-04-10 Bin Cheng <bin.cheng@arm.com>
2520 PR tree-optimization/80153
2521 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
2522 remove POINTER_PLUS_EXPR's base part directly, rather than through
2525 2017-04-10 Richard Biener <rguenther@suse.de>
2526 Bin Cheng <bin.cheng@arm.com>
2528 PR tree-optimization/80153
2529 * tree-affine.c (aff_combination_to_tree): Get base pointer from
2530 the first element of pointer type aff_tree. Build result expr in
2532 (add_elt_to_tree): Convert to type unconditionally. Remove other
2534 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
2535 (rewrite_use_nonlinear_expr): Check invariant using iv information.
2537 2017-04-10 Richard Biener <rguenther@suse.de>
2539 * tree-ssa-structalias.c (find_func_aliases): Properly handle
2542 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
2544 PR rtl-optimization/70478
2545 * lra-constraints.c (curr_small_class_check): New.
2546 (update_and_check_small_class_inputs): New.
2547 (process_alt_operands): Update curr_small_class_check. Disfavor
2548 alternative insn memory operands. Check available regs for small
2551 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
2554 * config/mips/mips.opt (-mvirt): Update description.
2555 * doc/invoke.texi (-mvirt): Likewise.
2557 2017-04-10 Richard Biener <rguenther@suse.de>
2560 * fold-const.c (fold_binary_loc): Look at unstripped ops when
2561 looking for NEGATE_EXPR in -A / -B to A / B folding.
2563 2017-04-10 Martin Liska <mliska@suse.cz>
2565 PR gcov-profile/80224
2566 * gcov.c (print_usage): Fix usage string.
2567 (get_gcov_intermediate_filename): Remove.
2568 (output_gcov_file): Use both for normal and intermediate format.
2569 (generate_results): Do not initialize special file for
2570 intermediate format.
2572 2017-04-10 Richard Biener <rguenther@suse.de>
2574 PR tree-optimization/80304
2575 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
2578 2017-04-10 Nathan Sidwell <nathan@acm.org>
2581 * config/rs6000/rs6000.c (rs6000_vector_type): New.
2582 (rs6000_init_builtins): Use it.
2584 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2586 * config/arm/arm.md (<mrc>): Add mode to SET source.
2589 2017-04-10 Richard Biener <rguenther@suse.de>
2592 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
2594 2017-04-10 Jakub Jelinek <jakub@redhat.com>
2597 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
2598 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
2599 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
2600 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
2601 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
2602 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
2603 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
2604 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
2605 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
2606 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
2607 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
2608 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
2609 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
2610 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
2611 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
2612 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
2613 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
2614 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
2615 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
2616 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
2617 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
2618 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
2619 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
2621 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
2623 PR rtl-optimization/70478
2624 * lra-constraints.c: Reverse the last patch.
2626 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
2628 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
2629 Add comment for WCHAR_T.
2631 2017-04-08 Martin Liska <mliska@suse.cz>
2634 2017-04-07 Martin Liska <mliska@suse.cz>
2637 * ipa-split.c (split_function): Add function part to a same comdat
2640 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2643 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
2645 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
2647 * rs6000/rs6000.c (vec_load_pendulum): Rename...
2648 (vec_pairing): ...to this.
2649 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
2650 (rs6000_sched_init): Adjust for name change.
2651 (struct rs6000_sched_context): Likewise.
2652 (rs6000_init_sched_context): Likewise.
2653 (rs6000_set_sched_context): Likewise.
2655 2017-04-07 Jakub Jelinek <jakub@redhat.com>
2661 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
2663 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
2664 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
2665 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
2667 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
2669 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
2671 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
2673 PR rtl-optimization/70703
2674 * ira-color.c (update_conflict_hard_regno_costs): Use
2675 int64_t instead of HOST_WIDE_INT.
2677 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
2679 PR rtl-optimization/70478
2680 * lra-constraints.c (process_alt_operands): Disfavor alternative
2681 insn memory operands.
2683 2017-04-07 Jeff Law <law@redhat.com>
2685 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
2686 CALL and NOTE_INSN_CALL_ARG_LOCATION.
2688 2017-04-07 Martin Liska <mliska@suse.cz>
2691 * config/aarch64/aarch64.c (aarch64_process_target_attr):
2692 Show error message instead of an ICE.
2694 2017-04-07 Martin Liska <mliska@suse.cz>
2697 * ipa-split.c (split_function): Add function part to a same comdat
2700 2017-04-07 Richard Biener <rguenther@suse.de>
2703 * tree.c (get_unwidened): Also handle ! for_type case for
2705 * convert.c (do_narrow): Split out from ...
2706 (convert_to_integer_1): ... here. Do not pass final truncation
2707 type to get_unwidened for TRUNC_DIV_EXPR.
2709 2017-04-07 Richard Biener <rguenther@suse.de>
2711 * tree-affine.c (wide_int_ext_for_comb): Take type rather
2713 (aff_combination_const): Adjust.
2714 (aff_combination_scale): Likewise.
2715 (aff_combination_add_elt): Likewise.
2716 (aff_combination_add_cst): Likewise.
2717 (aff_combination_convert): Likewise.
2718 (add_elt_to_tree): Likewise. Remove unused argument.
2719 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
2721 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
2723 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
2725 * config/arm/arm.c (arm_default_short_enums): Use
2726 ARM_DEFAULT_SHORT_ENUMS.
2727 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
2729 2017-04-06 Jakub Jelinek <jakub@redhat.com>
2732 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
2733 members with redundant out-of-class redeclaration.
2735 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
2738 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
2739 * config/i386/i386.md (*zero_extendsidi2):
2740 Add (?*x,*x) and (?*v,*v) alternatives.
2742 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
2745 * config/i386/i386.c (ix86_expand_builtin)
2746 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
2747 mode from insn data. Convert operands to insn operand mode.
2748 Copy operands that don't satisfy insn predicate to a register.
2750 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
2752 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
2755 2017-04-06 Richard Biener <rguenther@suse.de>
2757 PR tree-optimization/80334
2758 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
2759 preserve alignment of accesses.
2761 2017-04-06 Richard Biener <rguenther@suse.de>
2763 PR tree-optimization/80262
2764 * tree-sra.c (build_ref_for_offset): Preserve address-space
2766 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
2767 Drop useless address-space information on MEM_REF offsets.
2769 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
2771 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
2773 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
2775 PR rtl-optimization/70703
2776 * ira-color.c (update_conflict_hard_regno_costs): Use
2777 HOST_WIDE_INT instead of long.
2779 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
2782 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
2783 not defined for x86_64 target. Add -mmmx target option when __SSE2__
2785 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
2786 for x86_64 target. Handle -m3dnowa option.
2788 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
2790 PR rtl-optimization/70703
2791 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
2792 (update_conflict_hard_regno_costs): Use long instead of unsigned
2793 arithmetic for cost calculation.
2795 2017-04-05 Jakub Jelinek <jakub@redhat.com>
2796 Bernd Edlinger <bernd.edlinger@hotmail.de>
2799 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
2802 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
2805 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
2806 ptr_mode with Pmode throughout.
2807 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
2808 into probe_stack_range and use DImode.
2810 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
2813 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
2814 call_eh_return is true.
2816 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2818 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
2819 Initialize last_match_fntype_index.
2821 2017-04-05 Jakub Jelinek <jakub@redhat.com>
2824 * tree-nvr.c: Include internal-fn.h.
2825 (pass_return_slot::execute): Ignore internal calls without
2828 2017-04-04 Jakub Jelinek <jakub@redhat.com>
2829 Richard Biener <rguenther@suse.de>
2832 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
2833 captures used multiple times, except for the last use.
2834 * generic-match-head.c: Include gimplify.h.
2836 2017-04-04 Jakub Jelinek <jakub@redhat.com>
2838 PR tree-optimization/79390
2839 * target.h (struct noce_if_info): Declare.
2840 * targhooks.h (default_noce_conversion_profitable_p): Declare.
2841 * target.def (noce_conversion_profitable_p): New target hook.
2842 * ifcvt.h (struct noce_if_info): New type, moved from ...
2843 * ifcvt.c (struct noce_if_info): ... here.
2844 (noce_conversion_profitable_p): Renamed to ...
2845 (default_noce_conversion_profitable_p): ... this. No longer
2847 (noce_try_store_flag_constants, noce_try_addcc,
2848 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
2849 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
2850 instead of noce_conversion_profitable_p.
2851 * config/i386/i386.c: Include ifcvt.h.
2852 (ix86_option_override_internal): Don't override
2853 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
2854 (ix86_noce_conversion_profitable_p): New function.
2855 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
2856 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
2857 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
2858 * doc/tm.texi: Regenerated.
2860 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2862 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
2865 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2868 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
2869 instructions for small multiply cores.
2871 2017-04-04 Jeff Law <law@redhat.com>
2873 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
2875 (mips_expand_vec_perm_const): Initialize elements in orig_perm
2876 that are not set by the loop over the elements.
2878 2017-04-04 Jakub Jelinek <jakub@redhat.com>
2881 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
2882 int mode, convert_modes it to mode as unsigned, otherwise use
2883 lowpart_subreg to mode rather than SImode.
2884 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
2885 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
2886 Use DImode instead of SImode for the shift count operand.
2887 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
2890 2017-04-04 Richard Biener <rguenther@suse.de>
2893 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
2894 arithmetic done for the negate or the plus. Simplify.
2895 (A - (-B) -> A + B): Likewise.
2896 * fold-const.c (split_tree): Make sure to not negate pointers.
2898 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
2900 PR rtl-optimization/60818
2901 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
2902 a compare of comparisons with the thing compared if this results
2903 in a different machine mode.
2905 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
2907 * alias.c (base_alias_check): Fix typo in comment.
2908 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
2909 * cgraphunit.c (symbol_table::compile): Likewise.
2910 * collect2.c (maybe_run_lto_and_relink): Likewise.
2911 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
2912 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
2913 * config/avr/avr.c (avr_map_op_t): Likewise.
2914 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
2915 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
2916 * config/epiphany/epiphany.md (movcc): Likewise.
2917 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
2918 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
2920 * config/mips/mips.c (mips_save_restore_reg): Likewise.
2921 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
2922 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
2923 * config/sh/sh.c (sh_rtx_costs): Likewise.
2924 * fold-const.c (fold_truth_andor): Likewise.
2925 * genautomata.c (collapse_flag): Likewise.
2926 * gengtype.h (struct type::u::s): Likewise.
2927 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
2928 * input.c (FORMAT_AMOUNT): Likewise.
2929 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
2930 (known_aggs_to_agg_replacement_list): Likewise.
2931 * ipa-inline-analysis.c: Likewise.
2932 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
2933 * ipa-polymorphic-call.c
2934 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
2935 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
2936 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
2938 * modulo-sched.c (apply_reg_moves): Likewise.
2939 * omp-expand.c (build_omp_regions_1): Likewise.
2940 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
2941 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
2942 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
2943 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
2944 * value-prof.c: Likewise.
2945 * var-tracking.c (val_reset): Likewise.
2947 2017-04-03 Richard Biener <rguenther@suse.de>
2949 PR tree-optimization/80275
2950 * fold-const.c (split_address_to_core_and_offset): Handle
2953 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
2955 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
2956 descriptors is at least equal to that of functions.
2958 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
2960 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
2962 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
2965 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
2966 (mov<IMOD4:mode>): New expander.
2967 (*mov<IMOD4:mode>_internal): New insn and split pattern.
2969 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
2971 PR rtl-optimization/79405
2972 * fwprop.c (propagations_left): New variable.
2973 (forward_propagate_into): Decrement it.
2974 (fwprop_init): Initialize it.
2975 (fw_prop): If the variable has reached zero, stop propagating.
2976 (fwprop_addr): Ditto.
2978 2017-03-31 Jakub Jelinek <jakub@redhat.com>
2981 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
2982 a FUNCTION_DECL, pass it as decl instead of origin to
2985 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
2987 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
2990 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
2993 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
2994 TARGET_VSX_SMALL_INTEGER.
2996 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2998 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
2999 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
3001 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
3003 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
3004 extraction from odd-numbered MSA register.
3006 2017-03-31 Jakub Jelinek <jakub@redhat.com>
3009 * expmed.c (store_bit_field_1): Don't attempt to create
3010 a word subreg out of hard registers wider than word if they
3011 have HARD_REGNO_NREGS of 1 for their mode.
3014 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
3015 conversions to integer types wider than word and pointer.
3018 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
3019 (rtx_equal_for_cselib_p): Pass 0 to it.
3020 * cselib.c (cselib_hasher::equal): Likewise.
3021 (rtx_equal_for_cselib_1): Add depth argument. If depth
3022 is 128, don't look up VALUE locs and punt. Increment
3023 depth in recursive calls when walking VALUE locs.
3025 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
3027 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
3028 (make_gcov_file_name): Use the canonical path name for generating
3030 (read_line): Fix handling of files with ascii null bytes.
3032 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
3034 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
3035 to initialise a vector register instead
3036 of using a const_int.
3038 2017-03-30 Jakub Jelinek <jakub@redhat.com>
3040 PR translation/80189
3041 * gimplify.c (omp_default_clause): Use %qs instead of %s in
3042 diagnostic messages.
3044 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
3047 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
3048 (dfp_diex_<mode>): Update mode of operand 1.
3049 * doc/extend.texi (dxex, dxexq): Document change to return type.
3050 (diex, diexq): Document change to argument type.
3052 2017-03-30 Martin Jambor <mjambor@suse.cz>
3055 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
3056 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
3057 it reflects the signature changes performed at the callee side.
3058 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
3059 to cgraph_build_function_type_skip_args.
3060 (build_function_decl_skip_args): Adjust call to the above function.
3062 2017-03-30 Jakub Jelinek <jakub@redhat.com>
3065 * config/i386/sse.md
3066 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
3067 register as dest whenever it is a MEM not rtx_equal_p to the
3068 corresponding dup operand, and when forcing into reg move the
3069 reg into the memory afterwards.
3070 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
3071 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
3072 for the force_reg mode.
3073 (avx512vl_vextractf128<mode>): Use register as dest either
3074 always when a MEM, or when it is a MEM not rtx_equal_p to the
3075 corresponding dup operand, or even not when it is a CONST_VECTOR
3076 depending on the mode and lo vs. hi.
3077 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
3079 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
3080 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
3081 Likewise. Require that operands[2] is even.
3082 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
3083 Remove extraneous parens. Require that operands[2] is a multiple
3085 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
3086 operands[0] is a MEM if <mask_applied>, the predicates/constraints
3087 disallow memory then.
3089 2017-03-30 Richard Biener <rguenther@suse.de>
3091 PR tree-optimization/77498
3092 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
3093 to non-constants over backedges.
3095 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
3097 PR rtl-optimization/80233
3098 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
3099 as last_combined_insn. Do not test for BARRIER_P separately.
3101 2017-03-29 Andreas Schwab <schwab@suse.de>
3104 * calls.c (prepare_call_address): Convert funexp to Pmode before
3105 copying to temp reg.
3107 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3109 PR tree-optimization/80158
3110 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
3111 Handle possible future case of more than one alternate
3113 (replace_rhs_if_not_dup): Likewise.
3114 (replace_one_candidate): Likewise.
3116 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
3118 PR rtl-optimization/80193
3119 * ira.c (ira): Do not check allocation for LRA.
3121 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
3123 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
3124 (nvptx_output_simt_exit): Declare.
3125 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
3126 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
3127 (init_softstack_frame): Move initialization of crtl->is_leaf to...
3128 (nvptx_declare_function_name): ...here. Emit declaration of local
3129 memory space buffer for omp_simt_enter insn.
3130 (nvptx_output_unisimt_switch): New.
3131 (nvptx_output_softstack_switch): New.
3132 (nvptx_output_simt_enter): New.
3133 (nvptx_output_simt_exit): New.
3134 * config/nvptx/nvptx.h (struct machine_function): New fields
3135 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
3136 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
3137 (UNSPECV_SIMT_EXIT): Ditto.
3138 (omp_simt_enter_insn): New insn.
3139 (omp_simt_enter): New expansion.
3140 (omp_simt_exit): New insn.
3141 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
3143 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
3144 (expand_GOMP_SIMT_ENTER_ALLOC): New.
3145 (expand_GOMP_SIMT_EXIT): New.
3146 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
3147 (GOMP_SIMT_ENTER_ALLOC): Ditto.
3148 (GOMP_SIMT_EXIT): Ditto.
3149 * target-insns.def (omp_simt_enter): New insn.
3150 (omp_simt_exit): Ditto.
3151 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
3153 (lower_rec_simd_input_clauses): Implement SIMT privatization.
3154 (lower_rec_input_clauses): Likewise.
3155 (lower_lastprivate_clauses): Handle SIMT privatization.
3157 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
3158 (ompdevlow_adjust_simt_enter): New.
3159 (find_simtpriv_var_op): New.
3160 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
3161 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
3163 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
3164 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
3165 (copy_decl_for_dup_finish): Ditto.
3167 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
3169 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
3172 * config/i386/i386.c (ix86_option_override_internal): Always
3173 allow -mpreferred-stack-boundary=3 for 64-bit targets.
3175 2017-03-28 Bin Cheng <bin.cheng@arm.com>
3177 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
3179 2017-03-28 Bin Cheng <bin.cheng@arm.com>
3181 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
3182 mark new edge's irreducible flag accordign to it.
3183 (vect_do_peeling): Check loop preheader edge's irreducible flag
3184 and pass it to function slpeel_add_loop_guard.
3186 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
3188 PR tree-optimization/80218
3189 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
3190 Update block frequencies and counts.
3192 2017-03-28 Richard Biener <rguenther@suse.de>
3194 PR tree-optimization/78644
3195 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
3196 of a simplification result we may not use it at all.
3198 2017-03-28 Richard Biener <rguenther@suse.de>
3201 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
3202 without arguments, generate default definition of a SSA name.
3204 2017-03-28 Richard Biener <rguenther@suse.de>
3207 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
3208 TYPE_REF_CAN_ALIAS_ALL references.
3209 * fold-const.c (fold_indirect_ref_1): Likewise.
3211 2017-03-28 Martin Liska <mliska@suse.cz>
3214 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
3215 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
3217 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
3218 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3220 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
3221 (EXTRA_SPECS): Define.
3222 (SUBTARGET_EXTRA_SPECS): Likewise.
3223 (SUBTARGET_CPP_SPEC): Likewise.
3224 * config/arc/elf.h (EXTRA_SPECS): Renamed to
3225 SUBTARGET_EXTRA_SPECS.
3226 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
3228 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
3230 * config/arc/simdext.md (vst64_insn): Update pattern.
3231 (vld32wh_insn): Likewise.
3232 (vld32wl_insn): Likewise.
3233 (vld64_insn): Likewise.
3234 (vld32_insn): Likewise.
3236 2017-03-28 Marek Polacek <polacek@redhat.com>
3239 * fold-const.c (fold_comparison): Use protected_set_expr_location
3240 instead of SET_EXPR_LOCATION.
3242 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
3244 * tree.c (add_expr): Avoid name lookup warning.
3246 2017-03-27 Jeff Law <law@redhat.com>
3248 PR tree-optimization/80216
3249 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
3250 function name. Limit recursion depth.
3251 (record_temporary_equivalences): Corresponding changes.
3253 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
3255 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
3258 2017-03-27 Jakub Jelinek <jakub@redhat.com>
3261 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
3263 * cfgcleanup.c (reg_note_cfa_p): New array.
3264 (insns_have_identical_cfa_notes): New function.
3265 (old_insns_match_p): Don't cross-jump in between /f
3266 and non-/f instructions. If both i1 and i2 are frame related,
3267 verify all CFA notes, their order and content.
3269 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
3272 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
3273 HImode and SImode with zero extend to DImode to one insn.
3274 (bswap<mode>2_extenddi): Likewise.
3275 (bswapsi2_extenddi): Likewise.
3276 (bswaphi2_extendsi): Likewise.
3277 (bswaphi2): Combine bswap HImode and SImode into one insn.
3278 Separate memory insns from swapping register.
3279 (bswapsi2): Likewise.
3280 (bswap<mode>2): Likewise.
3281 (bswaphi2_internal): Delete, no longer used.
3282 (bswapsi2_internal): Likewise.
3283 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
3284 store, and gpr<-gpr swap insns.
3285 (bswap<mode>2_store): Likewise.
3286 (bswaphi2_reg): Register only splitter, combine with the splitter.
3287 (bswaphi2 splitter): Likewise.
3288 (bswapsi2_reg): Likewise.
3289 (bswapsi2 splitter): Likewise.
3290 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
3291 the insns into load, store, and register/register insns.
3292 (bswapdi2_ldbrx): Likewise.
3293 (bswapdi2_load): Likewise.
3294 (bswapdi2_store): Likewise.
3295 (bswapdi2_reg): Likewise.
3297 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
3299 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
3300 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
3302 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
3305 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
3307 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
3308 special handling for target option conflicts between dform
3309 options (-mpower9-dform, -mpower9-dform-vector,
3310 -mpower9-dform-scalar) and -mno-direct-move.
3312 2017-03-27 Richard Biener <rguenther@suse.de>
3314 PR tree-optimization/80181
3315 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
3317 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
3319 * config/arc/predicates.md (move_double_src_operand): Replace the
3320 call to move_double_src_operand with a call to address_operand.
3322 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
3324 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
3325 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
3326 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
3328 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
3330 * config/arc/predicates.md (long_immediate_loadstore_operand):
3331 Consider scaled addresses cases.
3333 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
3335 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
3336 restored when in interrupt.
3337 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
3338 doesn't have delay slot.
3340 2017-03-27 Richard Biener <rguenther@suse.de>
3343 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
3344 inlined thunk clones.
3346 2017-03-27 Jakub Jelinek <jakub@redhat.com>
3349 * asan.c (instrument_derefs): Copy over last operand from
3350 original COMPONENT_REF to the new COMPONENT_REF with
3351 DECL_BIT_FIELD_REPRESENTATIVE.
3352 * ubsan.c (instrument_object_size): Likewise.
3354 2017-03-27 Richard Biener <rguenther@suse.de>
3356 PR tree-optimization/80170
3357 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
3358 sure DR/SCEV didnt fold in constants we do not see when looking
3359 at the reference base alignment.
3361 2017-03-27 Richard Biener <rguenther@suse.de>
3364 * gimple-fold.c (fold_ctor_reference): Properly guard against
3365 NULL return value from canonicalize_constructor_val.
3367 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
3370 * config/i386/i386.c (ix86_expand_builtin)
3371 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
3372 flags reg setting and flags reg using instructions.
3373 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
3374 clobbering instructions to zero extend op2.
3376 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
3378 * doc/install.texi (Configuration) <--with-aix-soname>:
3379 Update link to AIX ld.
3381 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
3383 PR rtl-optimization/80160
3384 PR rtl-optimization/80159
3385 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
3386 reg_alternate_class into account.
3388 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
3391 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
3392 to consider in curr_insn_transform.
3394 2017-03-24 Jakub Jelinek <jakub@redhat.com>
3396 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
3397 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
3398 and emit_mode_inner.
3400 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3402 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
3403 argument to the overloaded builtin variants. Use the new flag to
3404 deprecate certain builtin variants.
3405 * config/s390/s390-builtin-types.def: Add new builtin types.
3406 * config/s390/s390-builtins.h: Support new flags field for
3407 overloaded builtins.
3408 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
3409 (s390_macro_to_expand): Enable vector float data type.
3410 (s390_cpu_cpp_builtins_internal): Indicate support of the new
3411 builtins by incrementing the __VEC__ version number.
3412 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
3414 (s390_resolve_overloaded_builtin): Emit error messages depending
3415 on the builtin flags.
3416 * config/s390/s390.c (s390_expand_builtin): Support additional
3417 flags argument. Change error message to match the messages
3418 emitted in s390-c.c.
3419 * config/s390/s390.md: New UNSPEC_* constants.
3420 (op_type): Add new instruction types.
3421 * config/s390/vecintrin.h: Add new builtins and test data class
3423 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
3424 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
3425 (VEC_INEXACT, VEC_NOINEXACT): New constants.
3426 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
3427 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
3428 ("vec_mergel<mode>"): V_HW -> VEC_HW.
3430 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
3431 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
3432 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
3433 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
3435 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
3436 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
3437 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
3438 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
3440 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
3441 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
3442 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
3443 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
3444 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
3445 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
3446 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
3448 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
3449 ("vec_scatter_element<V_HW_4:mode>_DI")
3450 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
3451 ("vec_fpint<mode>", "vflls")
3452 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
3453 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
3454 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
3455 ("*vec_cmphe<mode>_cc"): ... these.
3457 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
3458 mode constant instead of magic value.
3460 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3462 * config/s390/s390.c (s390_expand_vec_compare): Support other
3463 vector floating point modes than just V2DF.
3464 (s390_expand_vcond): Likewise.
3465 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
3466 (s390_cannot_change_mode_class): Prevent mode changes between TF
3467 and V1TF in vector registers.
3468 * config/s390/s390.md (DF, SF): New mode attributes.
3469 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
3470 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
3471 SFmode support for VRs.
3472 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
3474 (VFT, VF_HW): New mode iterators.
3475 (vw, sdx): New mode attributes.
3476 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
3477 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
3478 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
3479 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
3480 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
3481 also the new vector floating point modes. Renaming to ...
3483 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
3484 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
3485 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
3486 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
3487 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
3488 ("vec_unordered<mode>"): ... these.
3490 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
3491 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
3492 ("*vec_extendv2df"): New insn definitions.
3494 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3496 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
3497 ("mulditi3_2", "*muldi3_sign"): New patterns.
3498 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
3499 rename the pattern definition.
3501 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3503 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
3505 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
3507 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3509 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
3510 instruction if possible.
3511 * config/s390/vector.md (vec_halfnumelts): New mode
3513 ("*vec_vllezlf<mode>"): New pattern.
3515 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3517 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
3518 ("popcountv4si2", "popcountv2di2"): Rename to ...
3519 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
3520 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
3522 ("popcount<mode>2_vxe"): New pattern.
3524 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3526 * common/config/s390/s390-common.c (processor_flags_table): Add
3528 * config.gcc: Add arch12.
3529 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3530 Default to arch12 for unknown CPU model numbers.
3531 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
3532 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
3533 PROCESSOR_max sanity check.
3534 * config/s390/s390-opts.h (enum processor_type): Add
3536 * config/s390/s390.c (processor_table): Add arch12.
3537 (s390_expand_builtin): Add check for B_VXE flag.
3538 (s390_issue_rate): Add PROCESSOR_ARCH12.
3539 (s390_get_sched_attrmask): Likewise.
3540 (s390_get_unit_mask): Likewise.
3541 (s390_sched_score): Enable z13 scheduling for arch12.
3542 (s390_sched_reorder): Likewise.
3543 (s390_sched_variable_issue): Likewise.
3544 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
3546 (s390_tune_attr): Use z13 scheduling also for arch12.
3547 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
3548 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
3549 (TARGET_VXE_P): New macros.
3550 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
3551 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
3552 * config/s390/s390.opt: Add arch12 as processor_type.
3554 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3556 * config/s390/s390.md
3557 ("fixuns_truncdddi2", "fixuns_trunctddi2")
3558 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
3559 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
3561 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
3562 Rename expanders to ...
3564 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
3565 ("fixuns_truncdddi2_emu"): ... these.
3567 ("fixuns_trunc<mode>si2_emu"): New expander.
3569 ("*fixuns_truncdfdi2_z13"): Rename to ...
3570 ("*fixuns_truncdfdi2_vx"): ... this.
3572 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3574 * config/s390/2964.md: Remove the single element vector compare
3575 instructions which are no longer used.
3576 * config/s390/s390.c (s390_select_ccmode): Remove handling of
3578 (s390_canonicalize_comparison): Remove handling of DFmode
3580 (s390_expand_vec_compare_scalar): Remove function.
3581 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
3582 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
3584 ("*cmp<mode>_ccs"): Add wfcdb instruction.
3586 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3588 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
3590 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
3591 will anyway by matched by mov<mode>_64dfp.
3593 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3595 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
3596 vlef/vstef. Add missing operand to vleif.
3598 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3600 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
3601 pair for all vector types with 64 bit elements.
3602 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
3603 * config/s390/vector.md (V_HW_64): ... here.
3604 (V_128_NOSINGLE): New mode iterator.
3605 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
3606 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
3607 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
3608 ("*vec_load_pairv2di"): Change to ...
3609 ("*vec_load_pair<mode>"): ... this one.
3611 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3613 * config/s390/constraints.md: Add comments.
3614 (jKK): Reject element sizes > 8 bytes.
3615 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
3617 * config/s390/s390.md: Add the s_operand checks formerly in
3618 s390_split_ok_p to various splitters where they are still
3620 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
3621 for 128 bit vectors. Plus two splitters.
3623 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3625 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
3628 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3631 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
3632 error if the boundary argument is not constant.
3634 2017-03-24 Jakub Jelinek <jakub@redhat.com>
3636 PR rtl-optimization/80112
3637 * loop-doloop.c (doloop_condition_get): Don't check condition
3638 if cmp isn't SET with IF_THEN_ELSE src.
3640 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3642 PR tree-optimization/80158
3643 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
3644 replacing a candidate statement, also replace it for the
3645 candidate's alternate interpretation.
3646 (replace_rhs_if_not_dup): Likewise.
3647 (replace_one_candidate): Likewise.
3649 2017-03-24 Richard Biener <rguenther@suse.de>
3651 PR tree-optimization/80167
3652 * graphite-isl-ast-to-gimple.c
3653 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
3655 (translate_isl_ast_to_gimple::get_rename): Likewise.
3657 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
3659 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
3660 handling of certain combinations of target options, including the
3661 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
3662 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
3664 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3667 * config/arm/arm.md (*load_multiple): Add reload_completed to
3670 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3671 Richard Biener <rguenth@suse.de>
3673 PR tree-optimization/79908
3674 PR tree-optimization/80136
3675 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
3676 been cast away, gimplify_and_add suffices.
3678 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
3680 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
3682 2017-03-23 Richard Biener <rguenther@suse.de>
3684 PR tree-optimization/80032
3685 * gimplify.c (gimple_push_cleanup): Forced unconditional
3686 cleanups still have to go to the conditional_cleanups
3689 2017-03-22 Jakub Jelinek <jakub@redhat.com>
3691 PR tree-optimization/80072
3692 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
3694 (next_operand_entry_id): Change type to unsigned int.
3695 (sort_by_operand_rank): Make sure to return the right return value
3696 even if unsigned fields are bigger than INT_MAX.
3697 (struct oecount): Change cnt and id type to unsigned int.
3698 (oecount_hasher::equal): Formatting fix.
3699 (oecount_cmp): Make sure to return the right return value
3700 even if unsigned fields are bigger than INT_MAX.
3701 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
3704 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
3705 TREE_READONLY on result if writing it more than once.
3708 * doc/invoke.texi (-fsanitize=thread): Document that with
3709 -fnon-call-exceptions atomics are not able to throw
3713 * tsan.c: Include tree-eh.h.
3714 (instrument_builtin_call): Call maybe_clean_eh_stmt or
3715 maybe_clean_or_replace_eh_stmt where needed.
3716 (instrument_memory_accesses): Add cfg_changed argument.
3717 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
3718 if it returned true.
3719 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
3721 PR rtl-optimization/63191
3722 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
3723 wrapper function, moved the whole old content into ...
3724 (ix86_delegitimize_address_1): ... this. New inline function.
3725 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
3726 true as last argument instead of ix86_delegitimize_address.
3728 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
3730 * config/aarch64/aarch64.c (generic_branch_cost): Copy
3731 cortexa57_branch_cost.
3733 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
3735 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
3737 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3740 * doc/md.texi (Constraints): Document wA constraint.
3741 * config/rs6000/constraints.md (wA): New.
3742 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
3743 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
3744 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
3745 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
3747 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
3750 * gimplify.c (is_oacc_declared): New function.
3751 (oacc_default_clause): Use it to set default flags for acc declared
3752 variables inside parallel regions.
3753 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
3755 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
3756 declare attribute to any decl as necessary.
3758 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3761 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
3762 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
3763 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
3764 (arm_arch_lpae): This.
3765 * config/arm/arm.c (arm_arch7ve): Rename into ...
3766 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
3767 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
3770 2017-03-22 Martin Liska <mliska@suse.cz>
3773 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
3774 error message instead of an ICE.
3776 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3778 * doc/extend.texi (6.11 Additional Floating Types): Revise.
3780 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
3782 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
3784 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
3787 2017-03-21 Martin Sebor <msebor@redhat.com>
3789 * doc/extend.texi: Use "cannot" instead of "can't."
3790 * doc/hostconfig.texi: Same.
3791 * doc/install.texi: Same.
3792 * doc/invoke.texi: Same.
3793 * doc/loop.texi: Same.
3794 * doc/md.texi: Same.
3795 * doc/objc.texi: Same.
3796 * doc/rtl.texi: Same.
3797 * doc/tm.texi: Same.
3798 * doc/tm.texi.in: Same.
3799 * doc/trouble.texi: Same.
3801 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
3804 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
3805 (collect_checksum_attributes): Set it.
3806 (die_checksum_ordered): Use it.
3808 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3810 PR tree-optimization/79908
3811 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
3812 change: For a VA_ARG whose LHS has been cast away, use
3813 force_gimple_operand to construct the side effects.
3815 2017-03-21 David Malcolm <dmalcolm@redhat.com>
3817 PR translation/80001
3818 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
3819 more amenable to translation.
3820 (oacc_loop_auto_partitions): Likewise.
3822 2017-03-21 Marek Polacek <polacek@redhat.com>
3823 Martin Sebor <msebor@redhat.com>
3825 PR tree-optimization/80109
3826 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
3829 2017-03-21 Jakub Jelinek <jakub@redhat.com>
3830 Segher Boessenkool <segher@kernel.crashing.org>
3833 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
3834 check reg_used_between_p between insn and one of succ or succ2
3835 depending on if succ is artificial insn not inserted into insn
3838 2017-03-21 Martin Liska <mliska@suse.cz>
3840 PR gcov-profile/80081
3841 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
3842 * doc/gcc.texi: Include gcov-dump stuff.
3843 * doc/gcov-dump.texi: New file.
3845 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
3847 PR rtl-optimization/79150
3848 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
3849 conditional jump, if the jump is the last insn of the loop.
3851 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3852 Richard Biener <rguenth@suse.de>
3854 PR tree-optimization/79908
3855 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
3856 been cast away, use force_gimple_operand to construct the side
3859 2017-03-21 Martin Liska <mliska@suse.cz>
3862 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
3865 2017-03-21 Brad Spengler <spender@grsecurity.net>
3868 * plugin.c (htab_hash_plugin): New function.
3869 (add_new_plugin): Use it and adjust.
3870 (parse_plugin_arg_opt): Adjust.
3871 (init_one_plugin): Likewise.
3873 2017-03-21 Richard Biener <rguenther@suse.de>
3875 PR tree-optimization/80032
3876 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
3877 if set force the cleanup to happen unconditionally.
3878 (gimplify_target_expr): Push inserted clobbers with force_uncond
3879 to avoid them being removed by control-dependent DCE.
3881 2017-03-21 Richard Biener <rguenther@suse.de>
3883 PR tree-optimization/80122
3884 * tree-inline.c (copy_bb): Do not expans va-arg packs or
3885 va_arg_pack_len when the inlined call stmt requires pack
3887 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
3889 2017-03-21 Jakub Jelinek <jakub@redhat.com>
3892 * tsan.c (instrument_builtin_call): If the memory model argument
3893 is not a constant, assume it is valid.
3896 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
3899 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
3901 PR rtl-optimization/79910
3902 * combine.c (can_combine_p): Do not allow combining an I0 or I1
3903 if its dest is used by an insn before I2 (other than the combined
3904 insns themselves, which are properly handled already).
3906 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
3909 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
3911 * combine.c (record_used_regs): New static function.
3912 (try_combine): Handle situations where there is an additional
3913 instruction between I2 and I3 which needs to have a LOG_LINK
3917 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
3919 * combine.c (try_combine): Delete redundant i1 test. Call
3920 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
3922 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3925 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
3928 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3930 PR tree-optimization/80054
3931 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
3932 the optimization if a PHI or any of its arguments is not dominated
3933 by the candidate's basis. Use gphi* rather than gimple* as
3935 (replace_profitable_candidates): Clean up a gimple* variable that
3936 should be a gphi* variable.
3938 2017-03-20 Martin Sebor <msebor@redhat.com>
3941 * doc/extend.texi (attribute constructor): Document present limitation.
3943 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
3946 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
3947 __POWER9_VECTOR__ #ifdef control, change template definition to
3948 use Power9-specific built-in function.
3949 (vec_any_eq): Likewise.
3950 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
3951 to control outcomes from this test.
3952 (vector_ae_<mode>p): For VEC_F modes, likewise.
3954 2017-03-20 Ian Lance Taylor <iant@google.com>
3956 * config/i386/i386.c (ix86_function_regparm): Save an extra
3957 register for -fsplit-stack with DECL_STATIC_CHAIN.
3959 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
3962 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
3963 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
3965 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
3967 * config/riscv/riscv.c (riscv_print_operand): Use "fence
3969 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
3972 2017-03-20 Marek Polacek <polacek@redhat.com>
3975 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
3977 2017-03-20 Richard Biener <rguenther@suse.de>
3979 PR tree-optimization/80113
3980 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
3981 allocate extra SSA name for PHI def.
3982 (add_close_phis_to_outer_loops): Likewise.
3983 (add_close_phis_to_merge_points): Likewise.
3984 (copy_loop_close_phi_args): Likewise.
3985 (copy_cond_phi_nodes): Likewise.
3987 2017-03-20 Martin Liska <mliska@suse.cz>
3990 * tree-chkp.c (chkp_build_returned_bound): Do not build
3991 returned bounds for a LHS that's not a BOUNDED_P type.
3993 2017-03-20 Martin Liska <mliska@suse.cz>
3997 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
3998 COMPLEX_CST and VECTOR_CST.
4000 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4003 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
4004 target operand. A new splitter adds the clobber statement in case
4005 the target operand is dead anyway.
4007 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
4009 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
4010 to age-old versions of binutils and glibc.
4012 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
4014 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
4016 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
4018 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
4020 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
4022 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
4023 requirement for binutils 2.13.
4025 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
4027 * combine.c (try_combine): Delete redundant i1 test. Call
4028 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
4030 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
4032 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
4033 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
4035 <riscv64-*-elf>: Re-arrange section
4036 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
4037 <riscv32-*-linux>: Likewise.
4038 <riscv64-*-elf>: Likewise
4039 <riscv64-*-linux>: Likewise.
4041 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
4044 * aarch64.opt(verbose-cost-dump): Fix typo.
4046 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
4049 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
4050 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
4052 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
4054 * reload.c (find_reloads): When reloading a nonoffsettable address,
4055 use RELOAD_OTHER for it and its address reloads.
4057 PR rtl-optimization/79910
4058 * combine.c (record_used_regs): New static function.
4059 (try_combine): Handle situations where there is an additional
4060 instruction between I2 and I3 which needs to have a LOG_LINK
4063 2017-03-17 Jeff Law <law@redhat.com>
4065 PR tree-optimization/71437
4066 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
4067 conditional in the hash table first.
4068 (vrp_dom_walker::before_dom_children): Extract condition from
4069 ASSERT_EXPR. Record condition, its inverion and any implied
4072 2017-03-17 Marek Polacek <polacek@redhat.com>
4073 Markus Trippelsdorf <markus@trippelsdorf.de>
4075 PR tree-optimization/80079
4076 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
4079 2017-03-17 Richard Biener <rguenther@suse.de>
4082 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
4083 Properly verify the LHS before the RHS possibly claims to be
4085 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
4088 2017-03-17 Martin Jambor <mjambor@suse.cz>
4090 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
4091 (List of -O2 options): Likewise.
4092 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
4095 2017-03-17 Tom de Vries <tom@codesourcery.com>
4097 * gcov-dump.c (print_usage): Print bug_report_url.
4099 2017-03-17 Richard Biener <rguenther@suse.de>
4102 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
4103 (parser::peek): Likewise.
4105 2017-03-17 Richard Biener <rguenther@suse.de>
4107 PR tree-optimization/80048
4108 * sese.c (free_sese_info): Properly release rename_map and
4109 copied_bb_map elements.
4111 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
4113 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
4114 Add linked-list forward and backlinks. Insert on
4115 construction, remove on destruction.
4116 (class pass_store_merging): Add m_stores_head field.
4117 (pass_store_merging::terminate_and_process_all_chains):
4118 Iterate over m_stores_head list.
4119 (pass_store_merging::terminate_all_aliasing_chains):
4121 (pass_store_merging::execute): Check for debug stmts first.
4122 Push new chains onto the m_stores_head stack.
4124 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
4127 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
4128 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
4129 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
4131 2017-03-16 Jeff Law <law@redhat.com>
4133 PR tree-optimization/71437
4134 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
4135 member function. Implementation moved into after_dom_children
4136 member function and into the threader's thread_outgoing_edges
4138 (dom_opt_dom_walker::after_dom_children): Simplify by moving
4139 some code into new thread_outgoing_edges.
4140 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
4141 definition. Simplify marker handling (do it here). Assume we always
4142 have the available expression and the const/copies tables.
4143 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
4145 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
4146 * tree-vrp.c (equiv_stack): No longer file scoped.
4147 (vrp_dom_walker): New class.
4148 (vrp_dom_walker::before_dom_children): New member function.
4149 (vrp_dom_walker::after_dom_children): Likewise.
4150 (identify_jump_threads): Setup domwalker. Use it rather than
4151 walking edges in a random order by hand. Simplify setup/finalization.
4152 (finalize_jump_threads): Remove.
4153 (vrp_finalize): Do not call identify_jump_threads here.
4154 (execute_vrp): Do it here instead and call thread_through_all_blocks
4157 PR tree-optimization/71437
4158 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
4160 (simplify_stmt_for_jump_threading): Add basic_block argument. All
4162 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
4163 (dom_opt_dom_walker::thread_across_edge): Remove
4164 handle_dominating_asserts argument. All callers changed.
4165 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
4166 changes. Remove calls to lhs_of_dominating_assert. Other
4167 uses of handle_dominating_asserts turn into unconditional code
4168 (simplify_control_stmt_condition_1): Likewise.
4169 (simplify_control_stmt_condition): Likewise.
4170 (thread_through_normal_block, thread_across_edge): Likewise.
4171 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
4172 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
4173 object if it is not an SSA_NAME.
4174 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
4175 before calling into the VRP specific simplifiers.
4176 (identify_jump_threads): Remove handle_dominating_asserts
4179 2017-03-16 Jakub Jelinek <jakub@redhat.com>
4182 * tree-diagnostic.c (default_tree_printer): No longer static.
4183 * tree-diagnostic.h (default_tree_printer): New prototype.
4185 2017-03-16 Tamar Christina <tamar.christina@arm.com>
4187 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
4188 Change ins into fmov.
4190 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4192 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
4193 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
4194 Use h_con constraint for operand 1.
4195 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
4196 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
4198 2017-03-15 Jeff Law <law@redhat.com>
4200 PR tree-optimization/71437
4201 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
4202 (record_temporary_equivalences): Use it.
4204 PR tree-optimization/71437
4205 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
4206 tree-ssa-scopedtables.
4207 (lookup_avail_expr, build_and_record_new_cond): Likewise.
4208 (record_conditions, record_cond, vuse_eq): Likewise.
4209 (record_edge_info): Adjust to API tweak of record_conditions.
4210 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
4211 (record_temporary_equivalences, optimize_stmt): Likewise.
4212 (eliminate_redundant_computations): Likewise.
4213 (record_equivalences_from_stmt): Likewise.
4214 * tree-ssa-scopedtables.c: Include options.h and params.h.
4215 (vuse_eq): New function, moved from tree-ssa-dom.c
4216 (build_and_record_new_cond): Likewise.
4217 (record_conditions): Likewise. Accept vector of conditions rather
4218 than edge_equivalence structure for first argument.
4219 for the first argument.
4220 (avail_exprs_stack::lookup_avail_expr): New member function, moved
4221 from tree-ssa-dom.c.
4222 (avail_exprs_stack::record_cond): Likewise.
4223 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
4224 from tree-ssa-dom.c.
4225 (avail_exprs_stack): Add new member functions lookup_avail_expr
4227 (record_conditions): Declare.
4229 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
4232 * lra-constraints.c (process_alt_operands): Increase reject for
4233 reloading an input/output operand.
4235 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
4238 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
4239 insns to convert from signed/unsigned char/short to IEEE 128-bit
4241 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
4243 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
4246 * config/i386/i386.c (ix86_vector_duplicate_value): Create
4247 subreg of inner mode for values already in registers.
4249 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
4251 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
4252 iteration reg is used after the loop.
4254 2017-03-14 Martin Sebor <msebor@redhat.com>
4256 PR tree-optimization/79800
4257 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
4258 precision in negative-positive range.
4259 (format_floating): Call non-const overload with adjusted precision.
4261 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4264 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
4267 2017-03-14 Martin Sebor <msebor@redhat.com>
4270 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
4271 * builtins.def (aligned_alloc): Use it.
4274 * Makefile.in (GTFILES): Add calls.c.
4275 * calls.c: Include "gt-calls.h".
4277 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
4279 PR rtl-optimization/79728
4280 * regs.h (struct target_regs): New field
4281 x_contains_allocatable_regs_of_mode.
4282 (contains_allocatable_regs_of_mode): New macro.
4283 * reginfo.c (init_reg_sets_1): Initialize it, and change
4284 contains_reg_of_mode so it includes global regs as well.
4285 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
4286 rather than contains_regs_of_mode.
4288 2017-03-14 Martin Liska <mliska@suse.cz>
4290 * doc/invoke.texi: Document options that can't be combined with
4291 -fcheck-pointer-bounds.
4293 2017-03-14 Martin Liska <mliska@suse.cz>
4296 * doc/invoke.texi (-Wchkp): Document the option.
4298 2017-03-14 Martin Liska <mliska@suse.cz>
4300 * Makefile.in: Install gcov-dump.
4302 2017-03-14 Martin Liska <mliska@suse.cz>
4304 * multiple_target.c (expand_target_clones): Bail out for
4305 an invalid attribute.
4307 2017-03-14 Richard Biener <rguenther@suse.de>
4309 * alias.c (struct alias_set_entry): Pack properly.
4310 * cfgloop.h (struct loop): Likewise.
4311 * cse.c (struct set): Likewise.
4312 * ipa-utils.c (struct searchc_env): Likewise.
4313 * loop-invariant.c (struct invariant): Likewise.
4314 * lra-remat.c (struct cand): Likewise.
4315 * recog.c (struct change_t): Likewise.
4316 * rtl.h (struct address_info): Likewise.
4317 * symbol-summary.h (function_summary): Likewise.
4318 * tree-loop-distribution.c (struct partition): Likewise.
4319 * tree-object-size.c (struct object_size_info): Likewise.
4320 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
4321 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
4322 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
4323 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
4324 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
4325 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
4326 (struct _stmt_vec_info): Likewise.
4328 2017-03-14 Martin Liska <mliska@suse.cz>
4331 * multiple_target.c (create_dispatcher_calls): Check that
4332 a target can create a function dispatcher.
4334 2017-03-14 Martin Liska <mliska@suse.cz>
4337 * multiple_target.c (expand_target_clones): Drop local.local
4338 flag for default implementation.
4340 2017-03-14 Richard Biener <rguenther@suse.de>
4342 PR tree-optimization/80030
4343 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
4345 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
4347 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
4348 gcc_fallthrough() instead of __attribute__((fallthrough));
4350 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
4352 * doc/gcc.texi: Remove "up" link to (DIR).
4353 * doc/gccint.texi: Ditto.
4355 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
4357 * doc/install.texi (Specific) <avr>: Remove reference to
4360 2017-03-13 Jeff Law <law@redhat.com>
4362 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
4363 attribute rather than comments.
4365 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
4366 match_scratch operand is highest.
4368 2017-03-13 Martin Liska <mliska@suse.cz>
4371 * ipa-pure-const.c (warn_function_noreturn): If the declarations
4372 is a CHKP clone, use original declaration.
4374 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
4376 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
4377 (arc_conditional_register_usage): Use a different allocation order
4378 when optimizing for size.
4379 * common/config/arc/arc-common.c (arc_option_optimization_table):
4380 Section anchors default on when optimizing for size.
4382 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
4384 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
4386 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
4388 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
4389 * config/arc/arc.md (cpu_facility): Add cd variant.
4390 (*movqi_insn): Add code density variant.
4391 (*movhi_insn): Likewise.
4392 (*movqi_insn): Likewise.
4393 (*addsi3_mixed): Likewise.
4394 (subsi3_insn): Likewise.
4396 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
4398 * config/arc/arc.md (movsi_cond_exec): Update constraint.
4400 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
4402 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
4403 expressions with MINUS and UNARY ops.
4405 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4408 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
4410 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
4411 between vec_select and vector argument.
4412 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
4413 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
4414 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
4415 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
4416 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
4417 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
4419 2017-03-13 Richard Biener <rguenther@suse.de>
4422 * params.def (vect-max-peeling-for-alignment): Fix typo.
4424 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
4426 * doc/install.texi (Specific) <mips-*-*>: Remove description of
4427 issue that only occurred with binutils below 2.18.
4429 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
4431 * doc/install.texi (Specific) <cris-axis-elf>: No longer
4432 refer to binutils 2.11/2.12 minimum.
4434 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
4436 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
4437 ftp.kernel.org and simplify binutils requirement.
4439 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
4441 * doc/invoke.texi (Warning Options): Fix spelling of link-time
4443 (Optimize Options): Ditto. Also remove redundancy.
4445 2017-03-10 David Malcolm <dmalcolm@redhat.com>
4447 PR translation/79848
4448 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
4450 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
4451 to G_ to avoid double translation.
4453 2017-03-10 David Malcolm <dmalcolm@redhat.com>
4455 PR translation/79923
4456 * auto-profile.c (get_combined_location): Convert leading
4457 character of diagnostics to lower case and remove trailing period.
4458 (read_profile): Likewise for various diagnostics.
4459 * config/arm/arm.c (arm_option_override): Remove trailing period
4460 from various diagnostics.
4461 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
4462 (msp430_expand_delay_cycles): Likewise.
4464 2017-03-10 David Malcolm <dmalcolm@redhat.com>
4467 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
4468 full command-line argument, rather than just "str".
4469 (aarch64_validate_march): Likewise.
4470 (aarch64_validate_mtune): Likewise.
4472 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
4474 PR rtl-optimization/78911
4475 * lra-assigns.c (must_not_spill_p): New function.
4476 (spill_for): Use it.
4478 2017-03-10 Jakub Jelinek <jakub@redhat.com>
4480 PR tree-optimization/79981
4481 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
4482 ATOMIC_COMPARE_EXCHANGE ifn result.
4483 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
4484 IFN_ATOMIC_COMPARE_EXCHANGE.
4486 2017-03-10 David Malcolm <dmalcolm@redhat.com>
4489 * opts.c (parse_sanitizer_options): Add missing question mark to
4490 "did you mean" message.
4492 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4494 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
4496 (VMULEUH_UNS): Likewise.
4497 (VMULOUB_UNS): Likewise.
4498 (VMULOUH_UNS): Likewise.
4499 * config/rs6000/rs6000.c (builtin_function_type): Remove
4500 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
4502 2017-03-10 David Malcolm <dmalcolm@redhat.com>
4505 * read-rtl-function.c (function_reader::read_rtx_operand): Update
4506 x with result of extra_parsing_for_operand_code_0.
4507 (function_reader::extra_parsing_for_operand_code_0): Convert
4508 return type from void to rtx, returning x. When reading
4509 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
4510 larger size containing struct block_symbol.
4512 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
4514 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
4515 -mfloat128-hardware without -m64.
4517 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
4520 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
4521 entries to the case statement that marks unsigned arguments to
4522 overloaded functions.
4524 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
4526 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
4527 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
4529 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
4532 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
4533 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
4535 2017-03-10 Martin Liska <mliska@suse.cz>
4539 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
4540 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
4543 2017-03-10 Olivier Hainque <hainque@adacore.com>
4545 * tree-switch-conversion (array_value_type): Start by resetting
4546 candidate type to it's main variant.
4548 2017-03-10 Jakub Jelinek <jakub@redhat.com>
4550 PR rtl-optimization/79909
4551 * combine.c (try_combine): Use simplify_replace_rtx on individual
4552 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
4553 of the whole CALL_INSN_FUNCTION_USAGE.
4555 PR tree-optimization/79972
4556 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
4557 get_range_info on SSA_NAMEs. Formatting fixes.
4559 2017-03-10 Richard Biener <rguenther@suse.de>
4560 Jakub Jelinek <jakub@redhat.com>
4562 PR tree-optimization/77975
4563 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
4564 edge to be constant.
4565 (get_val_for): For constant x return it. Formatting fix.
4566 (loop_niter_by_eval): Avoid pointless looping if the next iteration
4567 would use the same bases as the current one.
4569 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4571 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
4572 instead of vec_select for V1TImode.
4573 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
4575 (VSX_LE_128): Add V1TI to this mode iterator.
4576 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
4577 (*vsx_le_perm_store_<mode>): Likewise.
4578 (pre-reload splitter for VSX stores): Likewise.
4579 (post-reload splitter for VSX stores): Likewise.
4580 (*vsx_xxpermdi2_le_<mode>): Likewise.
4581 (*vsx_lxvd2x2_le_<mode>): Likewise.
4582 (*vsx_stxvd2x2_le_<mode>): Likewise.
4584 2017-03-09 Michael Eager <eager@eagercon.com>
4586 Correct failures with --enable-checking=yes,rtl.
4588 * config/microblaze/microblaze.c (microblaze_expand_shift):
4589 Replace GET_CODE test with CONST_INT_P and INTVAL test with
4590 test for const0_rtx.
4591 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
4592 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
4594 2017-03-09 Richard Biener <rguenther@suse.de>
4596 PR tree-optimization/79977
4597 * graphite-scop-detection.c (scop_detection::merge_sese):
4598 Handle the case of extra exits to blocks dominating the entry.
4600 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
4602 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
4605 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
4607 PR rtl-optimization/79949
4608 * lra-constraints.c (process_alt_operands): Check memory when
4609 trying to predict a cycle. Print about the overall increase.
4611 2017-03-09 Richard Biener <rguenther@suse.de>
4614 * gimple-expr.c (useless_type_conversion_p): Preserve
4615 TYPE_SATURATING for fixed-point types.
4617 2017-03-09 Richard Biener <rguenther@suse.de>
4620 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
4621 alignment of BLKmode params.
4623 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4626 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
4627 (VALL_NO_V2Q): Likewise.
4629 * config/aarch64/aarch64-simd.md
4630 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
4632 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
4633 VALL_NO_V2Q mode iterator.
4634 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
4636 2017-03-09 Martin Liska <mliska@suse.cz>
4638 PR tree-optimization/79631
4639 * tree-chkp-opt.c (chkp_is_constant_addr): Call
4640 tree_int_cst_sign_bit just for INTEGER constants.
4642 2017-03-09 Martin Liska <mliska@suse.cz>
4646 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
4649 2017-03-09 Marek Polacek <polacek@redhat.com>
4652 * tree.c (inchash::add_expr): Handle TREE_VEC.
4654 2017-03-09 Martin Liska <mliska@suse.cz>
4657 (chkp_narrow_size_and_offset): New function.
4658 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
4659 (void chkp_parse_bit_field_ref): New function.
4660 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
4661 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
4663 2017-03-09 Martin Liska <mliska@suse.cz>
4666 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
4667 (chkp_find_bounds_1): Remove gcc_unreachable.
4669 2017-03-09 Jakub Jelinek <jakub@redhat.com>
4672 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
4673 BUILT_IN_SYNC*, determine the access type from the size suffix and
4674 always build a MEM_REF with that type. Handle forgotten
4675 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
4678 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
4679 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
4680 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
4681 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
4682 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
4683 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
4684 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
4685 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
4686 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
4687 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
4688 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
4689 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
4690 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
4691 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
4692 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
4693 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
4694 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
4695 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
4696 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
4697 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
4698 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
4699 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
4700 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
4701 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
4702 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
4703 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
4704 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
4705 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
4706 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
4707 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
4708 definitions outside of __OPTIMIZE__ guarded section.
4711 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
4712 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
4713 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
4714 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
4717 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4719 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
4720 ("vfenez<mode>"): Add missing constraints.
4722 2017-03-08 Martin Sebor <msebor@redhat.com>
4725 * config/nds32/nds32.c (nds32_option_override):
4726 Fix misspelled diagnostic.
4728 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4731 * gimplify.c (gimplify_omp_for): Replace index var in outer
4732 taskloop statement with an artificial variable and add
4733 OMP_CLAUSE_PRIVATE clause for it.
4735 2017-03-08 Richard Biener <rguenther@suse.de>
4737 PR tree-optimization/79955
4738 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
4739 for accesses that are completely outside of the variable.
4741 2017-03-08 Andrew Haley <aph@redhat.com>
4743 PR tree-optimization/79943
4744 * tree-ssa-loop-split.c (compute_new_first_bound): When
4745 calculating the new upper bound, (END-BEG) should be added, not
4748 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4750 * config/avr/avr.md (setmemhi): Make sure match_dup
4751 operand number comes before match_scratch.
4753 2017-03-08 Richard Biener <rguenther@suse.de>
4755 PR tree-optimization/79920
4756 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
4757 with ncopies == 1 to ...
4758 (vect_transform_slp_perm_load): ... here. Properly compute
4759 all element loads by iterating VF times over the group. Do
4760 not handle ncopies (computed in a broken way) in
4761 vect_create_mask_and_perm.
4763 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4766 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
4767 is a uniform vector, use uniform_vector_p return value instead of
4768 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
4770 2017-03-07 Marek Polacek <polacek@redhat.com>
4773 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
4774 (alloca_call_type): Likewise.
4776 2017-03-07 Martin Liska <mliska@suse.cz>
4778 * gcov.c (process_args): Put comment to correct location.
4780 2017-03-07 Martin Liska <mliska@suse.cz>
4783 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
4784 Use array_at_struct_end_p instead of DECL_CHAIN (field).
4785 (chkp_narrow_bounds_for_field): Likewise.
4786 (chkp_parse_array_and_component_ref): Pass one more argument to
4789 2017-03-07 Richard Biener <rguenther@suse.de>
4791 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
4794 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
4796 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
4797 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
4799 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4802 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
4803 to end of description.
4804 (PARAM_MAX_STORES_TO_MERGE): Likewise.
4806 2017-03-07 Jakub Jelinek <jakub@redhat.com>
4808 PR rtl-optimization/79901
4809 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
4811 (*avx512f_<code><mode>3<mask_name>): ... this.
4812 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
4813 iterator instead of VI8_AVX2_AVX512BW.
4815 PR rtl-optimization/79901
4816 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
4817 min/max expander, expand it using expand_vec_cond_expr.
4820 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
4823 2017-03-06 Jakub Jelinek <jakub@redhat.com>
4826 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
4827 to void * for PCH reasons.
4828 * dwarf2out.c (output_loc_operands, output_die): Cast
4829 v.val_vec.array to unsigned char *.
4831 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
4834 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
4837 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
4839 PR rtl-optimization/79571
4840 * lra-constraints.c (process_alt_operands): Calculate static
4841 reject and subtract it from overall when only addresses will be
4844 2017-03-06 Julia Koval <julia.koval@intel.com>
4847 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
4848 incoming stack boundary to 128 for 64-bit targets.
4850 2017-03-06 Richard Biener <rguenther@suse.de>
4852 PR tree-optimization/79894
4853 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
4854 to NULL after folding it.
4856 2017-03-06 Richard Biener <rguenther@suse.de>
4858 PR tree-optimization/79824
4859 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
4860 check disabling peeling for gaps.
4862 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
4864 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
4865 attributes): Document gettimeofday.
4867 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
4869 * config/s390/s390.c (s390_option_override_internal): Set
4870 PARAM_MIN_VECT_LOOP_BOUND
4872 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
4874 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
4875 * config/s390/s390.md: Likewise.
4877 2017-03-06 Jakub Jelinek <jakub@redhat.com>
4880 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
4881 (<avx2_avx512>_perm<mode>): Rename to ...
4882 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
4884 (<avx512>_perm<mode>_mask): Rename to ...
4885 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
4887 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
4888 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
4889 instead of VI8F_256_512.
4890 (avx512f_perm<mode>): New define_expand.
4891 (avx512f_perm<mode>_mask): Likewise.
4892 (avx512f_perm<mode>_1<mask_name>): New define_insn.
4893 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
4895 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
4897 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
4898 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
4900 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
4902 2017-03-06 Martin Liska <mliska@suse.cz>
4905 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
4906 when having a SSA NAME w/o VAR_DECL assigned to it.
4908 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
4910 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
4911 msa_dpsub_<su>_d): Fix MODE for vec_select.
4913 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
4915 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
4917 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
4919 2017-03-06 Richard Biener <rguenther@suse.de>
4921 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
4922 * plugin.c (register_plugin_info): Likewise.
4923 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
4925 2017-03-05 Jakub Jelinek <jakub@redhat.com>
4927 * config/i386/sse.md (sse_storehps, sse_storelps,
4928 avx_<castmode><avxsizesuffix>_<castmode>,
4929 avx512f_<castmode><avxsizesuffix>_<castmode>,
4930 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
4931 in condition that at least one operand is not a MEM.
4933 2017-03-03 Jakub Jelinek <jakub@redhat.com>
4936 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
4937 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
4939 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
4940 gimple_call_nothrow_p flag based on whether original builtin can throw.
4941 If it can, emit following stmts on the fallthrough edge.
4942 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
4943 don't create new bb if inserting just debug stmts on the edge, try to
4944 insert them on the fallthru bb or just reset debug stmts.
4946 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
4949 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
4950 restore recog_data (including the operand rtxes inside it) around
4951 the call to get_insn_template.
4953 2017-03-03 Martin Sebor <msebor@redhat.com>
4955 PR tree-optimization/79699
4956 * context.c (context::~context): Free MPFR caches to avoid
4957 a memory leak on program exit.
4959 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4961 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
4962 Use wide_int::ulow () instead of .elt (0).
4964 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
4966 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
4967 (*pushxf): Limit oF constraint to 32bit targets and add oC
4968 constraint for 64bit targets.
4969 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
4970 (*pushdf): Change rmF constraint to rmC.
4972 2017-03-03 Martin Liska <mliska@suse.cz>
4974 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
4975 Remove unused variable.
4977 2017-03-03 Jakub Jelinek <jakub@redhat.com>
4980 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
4981 is a memory operand, increase num_memory.
4982 (ix86_expand_args_builtin): Likewise.
4984 2017-03-03 Jan Hubicka <jh@suse.cz>
4987 * ipa-devirt.c (maybe_record_node): Properly handle
4988 __cxa_pure_virtual visibility.
4990 2017-03-03 Martin Liska <mliska@suse.cz>
4992 PR tree-optimization/79803
4993 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
4995 (pass_loop_prefetch::execute): Disabled optimization if an
4996 assumption about L1 cache size is not met.
4998 2017-03-03 Martin Liska <mliska@suse.cz>
5000 PR rtl-optimization/79574
5001 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
5002 (hash_scan_set): Likewise.
5003 (dump_hash_table): Likewise.
5004 (hoist_code): Likewise.
5006 2017-03-03 Richard Biener <rguenther@suse.de>
5008 * fixed-value.c (fixed_from_string): Restore use of elt (1)
5009 in place of uhigh ().
5010 (fixed_convert_from_real): Likewise.
5012 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
5015 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
5017 2017-03-03 Richard Biener <rguenther@suse.de>
5020 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
5021 TYPE_OVERFLOW_UNDEFINED check.
5023 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5025 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
5027 (vector_ae_<mode>_p): Likewise.
5028 (vector_nez_<mode>_p): Likewise.
5029 (vector_ne_v2di_p): Likewise.
5030 (vector_ae_v2di_p): Likewise.
5031 (vector_ne_<mode>_p): Likewise.
5032 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
5034 (vsx_tsqrt<mode>2_fe): Likewise.
5036 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
5039 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
5041 2017-03-02 Jakub Jelinek <jakub@redhat.com>
5043 PR rtl-optimization/79780
5044 * cprop.c (one_cprop_pass): When second and further conditional trap
5045 in a single basic block is turned into an unconditional trap, turn it
5046 into a deleted note to avoid RTL verification failures.
5048 2017-03-02 Richard Biener <rguenther@suse.de>
5050 * fold-const.c (const_binop): Use ulow () instead of elt (0).
5052 2017-03-02 Richard Biener <rguenther@suse.de>
5054 PR tree-optimization/79345
5056 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
5057 param and abort the walk, returning -1 if it is hit.
5058 (walk_aliased_vdefs): Take a limit param and pass it on.
5059 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
5060 defaulting to 0 and return a signed int.
5061 * tree-ssa-uninit.c (struct check_defs_data): New struct.
5062 (check_defs): New helper.
5063 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
5064 about uninitialized memory.
5065 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
5066 bogus uninitialized warning.
5067 (fixed_convert_from_real): Likewise.
5069 2017-03-02 Bin Cheng <bin.cheng@arm.com>
5071 PR tree-optimization/66768
5072 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
5073 iv_use if base object can't be determined.
5075 2017-03-02 Jakub Jelinek <jakub@redhat.com>
5077 PR tree-optimization/79345
5078 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
5079 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
5080 (get_pattern_stats): Initialize it.
5081 * genemit.c (gen_expand): Verify match_scratch numbers come after
5082 match_operand/match_dup numbers.
5083 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
5084 match_scratch numbers.
5085 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
5087 * config/s390/s390.md (trunctdsd2): Likewise.
5089 2017-03-02 Richard Biener <rguenther@suse.de>
5091 * wide-int.h (wide_int_storage::operator=): Implement in terms
5094 2017-03-02 Richard Biener <rguenther@suse.de>
5096 PR tree-optimization/79777
5097 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
5098 the to insert expression to sth existing.
5100 2017-03-01 Martin Sebor <msebor@redhat.com>
5103 * gimple-ssa-sprintf.c
5104 (directive::known_width_and_precision): New function.
5105 (format_integer): Use it.
5106 (get_mpfr_format_length): Consider the full range of precision
5107 when computing %g output with the # flag. Set the likely byte
5108 count to 3 rather than 1 when precision is indeterminate.
5109 (format_floating): Correct the lower bound of precision.
5111 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5113 * doc/invoke.texi: Document default code model for 64-bit Linux.
5115 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5118 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
5119 udiv rather than div since input pattern is unsigned.
5121 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
5123 * config/i386/i386.c (print_reg): Warn for values of
5124 unsupported size in integer register.
5126 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
5129 * config/rs6000/predicates.md (current_file_function_operand): Do
5130 not allow self calls to be local if the function is replaceable.
5132 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
5135 * config/rs6000/altivec.h (vec_ctz and others): Change the
5136 preprocessor macro that controls conditional compilation from
5137 _ARCH_PWR9 to __POWER9_VECTOR__.
5138 (vec_all_ne): Change parameterization of __altivec_scalar_pred
5139 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
5140 control (instead of _ARCH_PWR9 control) so that template
5141 definition uses power9-specific function.
5142 (vec_any_eq): Likewise.
5143 (vec_all_ne): Change macro definition to use a power9-specific
5144 expansion under #ifdef __POWER9_VECTOR__ control (instead of
5145 _ARCH_PWR9 control).
5146 (vec_any_eq) Likewise.
5147 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
5148 expansion for CMPNEF to remove support for xvcmpnesp instruction.
5149 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
5150 support for xvcmpnedp instruction.
5151 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
5152 macro expansion so that Power9 implementation of vec_all_ne does
5153 not use the AltiVec predicate framework.
5154 (VCMPNEH_P): Likewise.
5155 (VCMPNEW_P): Likewise.
5156 (VCMPNED_P): Likewise.
5157 (VCMPNEFP_P): Likewise.
5158 (VCMPNEDP_P): Likewise.
5159 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
5160 implementation of vec_any_eq to not use AltiVec predicate
5162 (VCMPAEH_P): Likewise.
5163 (VCMPAEW_P): Likewise.
5164 (VCMPAED_P): Likewise.
5165 (VCMPAEFP_P): Likewise.
5166 (VCMPAEDP_P): Likewise.
5167 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
5168 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
5169 not use the AltiVec predicate framework.
5170 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
5171 of vec_any_eq to not use AltiVec predicate framework.
5172 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
5173 support for predefined __POWER9_VECTOR__ macro to indicate that
5174 Power9 instruction selection is enabled.
5175 (altivec_overloaded_builtins): Remove extraneous
5176 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
5177 function argument types RS6000_BTI_bool_V16QI and
5178 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
5179 entry for overloaded function argument types RS6000_BTI_bool_V4SI
5180 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
5181 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
5182 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
5183 Power9 for implementations of vec_cmpne. Change the signature for
5184 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
5185 (representing vec_all_ne) to remove the previously described first
5186 argument of type RS6000_BTI_INTSI, as this was an artifact of
5187 reliance on the AltiVec predicate framework, which is no longer
5188 used in the implementation of these functions. Add
5189 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
5190 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
5191 since, unlike the AltiVec predicate framework implementation, we
5192 do not share function descriptors between vec_alle and vec_anyeq.
5193 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
5194 set of modes that receive special treatment even when
5195 TARGET_P9_VECTOR is true. The special treatment emits code that
5196 does not depend on Power9 instructions.
5197 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
5198 define_expand to not rely on AltiVec predicate framework.
5199 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
5201 (vector_ne_v2di_p): Change this define_expand to not rely on
5202 AltiVec predicate framework.
5203 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
5205 (vector_ne_<mode>_p): Change this define_expand to not rely on
5206 AltiVec predicate framework.
5207 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
5209 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
5210 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
5211 define_insn pattern.
5212 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
5213 define_insn pattern because the xvcmpne<VSs>. instruction is not
5215 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
5216 instruction is not supported.
5218 2017-03-01 Jakub Jelinek <jakub@redhat.com>
5220 * config/nvptx/nvptx.c: Include intl.h.
5222 2017-03-01 Martin Jambor <mjambor@suse.cz>
5225 * ipa-prop.h (ipa_bits): Removed field known.
5226 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
5227 to pointers. Adjusted their comments to warn about their sharing.
5228 (ipcp_transformation_summary): Change bits to a vector of pointers.
5229 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
5230 (ipa_get_ipa_bits_for_value): Declare.
5231 * tree-vrp.h (value_range): Mark as GTY((for_user)).
5232 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
5233 (ipa_bits_hash_table): Likewise.
5234 (ipa_vr_ggc_hash_traits): Likewise.
5235 (ipa_vr_hash_table): Likewise.
5236 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
5237 being pointers and vr_known being removed.
5238 (ipa_set_jf_unknown): Likewise.
5239 (ipa_get_ipa_bits_for_value): New function.
5240 (ipa_set_jfunc_bits): Likewise.
5241 (ipa_get_value_range): New overloaded functions.
5242 (ipa_set_jfunc_vr): Likewise.
5243 (ipa_compute_jump_functions_for_edge): Use the above functions to
5244 construct bits and vr parts of jump functions.
5245 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
5246 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
5248 (ipcp_grow_transformations_if_necessary): Also allocate
5249 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
5251 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
5252 them. Fix too long lines.
5253 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
5254 vr_known being removed.
5255 (ipa_read_jump_function): Use new setter functions to construct bits
5256 and vr parts of jump functions or set them to NULL.
5257 (write_ipcp_transformation_info): Adjust for bits being pointers.
5258 (read_ipcp_transformation_info): Likewise.
5259 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
5261 Include gt-ipa-prop.h.
5262 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
5264 (ipcp_store_bits_results): Likewise.
5265 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
5266 Do not write to existing jump functions but use a temporary instead.
5268 2017-03-01 Jakub Jelinek <jakub@redhat.com>
5271 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
5272 attempt to use its first operand as BIT_FIELD_REF base.
5274 2017-03-01 Richard Biener <rguenther@suse.de>
5277 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
5278 interpolating formula in wrapping arithmetic.
5279 (chrec_apply): Convert chrec_evaluate return value to wanted type.
5281 2017-03-01 Jakub Jelinek <jakub@redhat.com>
5283 PR tree-optimization/79734
5284 * tree-vect-generic.c (expand_vector_condition): Optimize
5285 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
5286 Handle VEC_COND_EXPR where comparison has different inner width from
5289 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
5291 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
5292 markup, and similar issues. Remove @opindex entries for things
5293 that aren't options. Add missing -mmpy-option entries.
5295 2017-02-28 Jakub Jelinek <jakub@redhat.com>
5297 PR tree-optimization/79737
5298 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
5299 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
5300 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
5301 instead of byte_size. Formatting fix.
5302 (shift_bytes_in_array_right): Formatting fix.
5304 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
5307 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
5308 condition on optimize for the leaf function test.
5310 2017-02-28 Martin Liska <mliska@suse.cz>
5313 * read-rtl-function.c (function_reader::handle_unknown_directive):
5314 Bail out when one uses -flto.
5316 2017-02-28 Martin Liska <mliska@suse.cz>
5318 * common.opt: Replace space with tabular for options of <number>
5320 * config/i386/i386.opt: Show <number> value for
5321 -mlarge-data-threshold.
5322 * opts.c (print_filtered_help): Do not display number in hexadecimal
5325 2017-02-28 Martin Liska <mliska@suse.cz>
5327 * common.opt: Fix --help=option -Q for options which are of
5330 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
5332 * config/i386/i386.c (print_reg): Error out for values
5333 of 8-bit size in invalid integer register.
5335 2017-02-28 Martin Sebor <msebor@redhat.com>
5337 PR tree-optimization/79691
5338 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
5340 2017-02-28 Jakub Jelinek <jakub@redhat.com>
5343 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
5344 gcc_unreachable with output_operand_lossage.
5346 2017-02-28 Richard Biener <rguenther@suse.de>
5348 PR tree-optimization/79740
5349 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
5351 (visit_nary_op): Insert the nary into the hashtable if we
5352 pattern-matched sth.
5353 * tree-ssa-pre.c (eliminate_insert): Robustify.
5355 2017-02-28 Richard Biener <rguenther@suse.de>
5358 * fold-const.c (decode_field_reference): Reject out-of-bound
5361 2017-02-28 Jakub Jelinek <jakub@redhat.com>
5363 * config/i386/i386.c: Include intl.h.
5364 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
5365 instead of just cond ? "..." : "...".
5366 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
5367 * coverage.c (read_counts_file): Likewise.
5368 * omp-offload.c: Include intl.h.
5369 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
5370 of just cond ? "..." : "...".
5371 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
5372 of just cond ? "..." : "...".
5374 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
5377 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
5379 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
5380 'tune for' CPU name.
5381 * config/arm/arm-cpu-data.h: Regenerated.
5383 2017-02-28 Richard Biener <rguenther@suse.de>
5385 PR tree-optimization/79732
5386 * tree-inline.c (expand_call_inline): Do not shadow var.
5388 2017-02-28 Richard Biener <rguenther@suse.de>
5390 PR tree-optimization/79723
5391 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
5392 address-space properly.
5394 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
5396 * doc/optinfo.texi (Optimization groups): Fix option used for
5398 * doc/invoke.texi (-fopt-info): Document "omp".
5399 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
5400 (OPTGROUP_ALL): Add OPTGROUP_OMP.
5401 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
5402 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
5403 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
5405 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
5407 * dumpfile.c (optgroup_options): Instead of "openmp", associate
5408 OPTGROUP_OMP with "omp".
5410 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
5413 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
5414 for arithmetic shift of unsigned V2DI.
5416 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
5418 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
5419 arc/linux.h headers.
5420 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
5421 (LINK_SPEC): Likewise.
5422 (ARC_TLS_EXTRA_START_SPEC): Likewise.
5423 (EXTRA_SPECS): Likewise.
5424 (STARTFILE_SPEC): Likewise.
5425 (ENDFILE_SPEC): Likewise.
5426 (LIB_SPEC): Likewise.
5427 (TARGET_SDATA_DEFAULT): Likewise.
5428 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
5429 (MULTILIB_DEFAULTS): Likewise.
5430 (DWARF2_UNWIND_INFO): Likewise.
5431 * config/arc/big.h: New file.
5432 * config/arc/elf.h: Likewise.
5433 * config/arc/linux.h: Likewise.
5434 * config/arc/t-uClibc: Remove.
5436 2017-02-27 Bin Cheng <bin.cheng@arm.com>
5438 PR tree-optimization/77536
5439 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
5440 (tree_transform_and_unroll_loop): Use above function to compute the
5441 estimated niter of unrolled loop and use it when scaling profile.
5442 Also use count info rather than frequency if it's non-zero.
5443 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
5444 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
5445 (vect_transform_loop): Call above function.
5447 2017-02-27 Richard Biener <rguenther@suse.de>
5449 PR tree-optimization/45397
5450 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
5451 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
5452 (visit_nary_op): Add pattern matching for CSEing sign-changed
5453 or truncated operations with wider ones.
5455 2017-02-27 Richard Biener <rguenther@suse.de>
5457 PR tree-optimization/79690
5458 * tree-vect-stmts.c (vectorizable_store): Use vector type
5459 built from the DR with address-space.
5461 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
5463 * doc/invoke.texi (Optimize Options): Refine the description
5464 of asan-use-after-return.
5466 2017-02-25 Alan Modra <amodra@gmail.com>
5468 PR rtl-optimization/79584
5469 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
5470 base, not ad->base_term, the reg within base. Remove assertion
5471 that ad->base == ad->base_term. Replace gen_int_mode using
5472 bogus mode with const0_rtx.
5474 2017-02-25 Jakub Jelinek <jakub@redhat.com>
5477 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
5478 FMA_EXPR like tcc_binary or tcc_unary.
5480 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
5483 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
5485 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
5486 (output_loc_operands): Handle DW_OP_call_ref and
5487 DW_OP_GNU_variable_value.
5488 (struct variable_value_struct): New type.
5489 (struct variable_value_hasher): Likewise.
5490 (variable_value_hash): New variable.
5491 (string_types): Remove.
5492 (copy_loc_descr): New function.
5493 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
5494 (prepend_loc_descr_to_each): New function.
5495 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
5496 instead of add_loc_descr_to_each if the first argument is single
5497 location list and the second has multiple.
5498 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
5499 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
5500 when looking for variable value which doesn't have other location info.
5501 (loc_list_from_tree): Formatting fix.
5502 (gen_array_type_die): Simplify DW_AT_string_length handling.
5503 (adjust_string_types): Remove.
5504 (gen_subprogram_die): Don't call adjust_string_types nor test/set
5505 string_types. Call resolve_variable_values.
5506 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
5507 (resolve_addr_in_expr): Likewise. Add A argument.
5508 (copy_deref_exprloc): Remove deref argument. Adjust for the
5509 original expression being DW_OP_GNU_variable_value with optionally
5510 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
5511 optionally after it.
5512 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
5513 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
5514 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
5515 (variable_value_hasher::hash, variable_value_hasher::equal): New
5517 (resolve_variable_value_in_expr, resolve_variable_value,
5518 resolve_variable_values, note_variable_value_in_expr,
5519 note_variable_value): New functions.
5520 (dwarf2out_early_finish): Call note_variable_value on all toplevel
5523 2017-02-24 Jakub Jelinek <jakub@redhat.com>
5526 * opts.h (handle_generated_option): Add GENERATED_P argument.
5527 * opts-common.c (handle_option): Adjust function comment.
5528 (handle_generated_option): Add GENERATED_P argument, pass it to
5530 (control_warning_option): Pass false to handle_generated_option
5532 * opts.c (maybe_default_option): Pass true to handle_generated_option
5534 * optc-gen.awk: Likewise.
5536 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
5538 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
5539 a REG, look at the REG it is a SUBREG of.
5540 (splitter for cmpeqsi_t): Ditto.
5542 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
5544 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
5545 the special USEs with the pattern of the insn, not the insn itself.
5547 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
5550 * doc/invoke.texi: Document -mload-store-pairs.
5552 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
5553 Sandra Loosemore <sandra@codesourcery.com>
5555 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
5556 argument isn't a CONST_INT.
5557 (nios2_alternate_compare_const): Assert op is a CONST_INT.
5558 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
5559 (nios2_validate_compare): Bypass alternate compare logic if *op2
5561 (ldstwm_operation_p): Return false if first_base is not a REG or
5562 if first_offset is not a CONST_INT.
5564 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
5566 * config/cris/cris.md: Use correct operand in a define_peephole2.
5568 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
5570 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
5572 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
5574 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
5575 this_insn if it is an INSN or JUMP_INSN.
5576 (force_offsettable): Look at base, not at addr.
5577 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
5578 on things that aren't necessarily CONST_INTs.
5580 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
5582 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
5583 -mfpmath=sse is the default also for x86-32 targets with SSE2
5584 instruction set when @option{-ffast-math} is enabled
5586 2017-02-24 Jeff Law <law@redhat.com>
5588 PR rtl-optimizatoin/79286
5589 * ira.c (update_equiv_regs): Drop may_trap_p exception to
5592 2017-02-24 Richard Biener <rguenther@suse.de>
5594 PR tree-optimization/79389
5595 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
5598 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
5600 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
5601 function comment to reflect reality.
5602 (loop_exits_before_overflow): Fix typo in function description.
5604 2017-02-24 Richard Biener <rguenther@suse.de>
5606 PR tree-optimization/79389
5607 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
5608 properly that a threading opportunity exists. Detect conditional
5609 copy/constant propagation opportunities.
5611 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
5613 * config/visium/visium.md (type): Add trap.
5614 (b): New mode attribute.
5615 (*btst): Rename into...
5616 (*btst<mode>): ...this and adjust.
5617 (*cbranchsi4_btst_insn): Rename into...
5618 (*cbranch<mode>4_btst_insn): ...this and adjust.
5619 (trap): New define_insn.
5621 2017-02-23 Jakub Jelinek <jakub@redhat.com>
5623 PR tree-optimization/79389
5624 * ifcvt.c (struct noce_if_info): Add rev_cond field.
5625 (noce_reversed_cond_code): New function.
5626 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
5627 reversed_comparison_code. Formatting fix.
5628 (noce_try_store_flag): Test rev_cond != NULL in addition to
5629 reversed_comparison_code.
5630 (noce_try_store_flag_constants): Likewise.
5631 (noce_try_store_flag_mask): Likewise.
5632 (noce_try_addcc): Use rev_cond if non-NULL instead of
5633 reversed_comparison_code.
5634 (noce_try_cmove_arith): Likewise. Formatting fixes.
5635 (noce_try_minmax, noce_try_abs): Clear rev_cond.
5636 (noce_find_if_block): Initialize rev_cond.
5637 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
5638 instead of false as last argument never attempt to reverse it
5641 2017-02-23 Bin Cheng <bin.cheng@arm.com>
5643 PR tree-optimization/79663
5644 * tree-predcom.c (combine_chains): Process refs in reverse order
5645 only for ZERO length chains, and add explaining comment.
5647 2017-02-23 Jeff Law <law@redhat.com>
5649 PR tree-optimization/79578
5650 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
5651 in call to operand_equal_p.
5653 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
5656 * config/i386/cpuid.h: Fix another undefined behavior.
5658 2017-02-23 Richard Biener <rguenther@suse.de>
5660 PR tree-optimization/79683
5661 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
5662 vector types for data-refs.
5664 2017-02-23 Martin Liska <mliska@suse.cz>
5666 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
5668 2017-02-23 Jakub Jelinek <jakub@redhat.com>
5671 * internal-fn.c (get_range_pos_neg): Moved to ...
5672 * tree.c (get_range_pos_neg): ... here. No longer static.
5673 * tree.h (get_range_pos_neg): New prototype.
5674 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
5675 are known to be in between 0 and signed maximum inclusive, try to
5676 expand both unsigned and signed divmod and use the cheaper one from
5679 2017-02-22 Jeff Law <law@redhat.com>
5681 PR tree-optimization/79578
5682 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
5683 to compare base operands.
5685 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
5688 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
5689 gpc_reg_operand instead of fpr_reg_operand.
5691 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
5693 * config/mips/mips.c (mips_return_in_memory): Force FP
5694 vector types to be returned in memory for o32 ABI.
5696 2017-02-22 Jakub Jelinek <jakub@redhat.com>
5698 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
5699 instead of DW_TAG_member for static data member declarations and don't
5700 set no_linkage_name for static inline data members.
5701 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
5704 2017-02-22 Martin Liska <mliska@suse.cz>
5706 * doc/invoke.texi: Replace inequality signs with square brackets
5709 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5711 PR tree-optimization/68644
5712 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
5714 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
5717 * lra-constraints.c (simplify_operand_subreg): Handle
5718 WORD_REGISTER_OPERATIONS targets.
5720 2017-02-22 Jakub Jelinek <jakub@redhat.com>
5723 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
5724 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
5725 elimination by swapping fld*.
5727 2017-02-22 Richard Biener <rguenther@suse.de>
5729 PR tree-optimization/79673
5730 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
5731 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
5732 irrelevant address-space qualifiers and avoiding a
5733 ADDR_SPACE_CONVERT_EXPR from fold_convert.
5735 2017-02-22 Richard Biener <rguenther@suse.de>
5737 PR tree-optimization/79666
5738 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
5739 to not symbolically negate if that may introduce undefined
5742 2017-02-22 Martin Liska <mliska@suse.cz>
5745 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
5746 * data-streamer-out.c (streamer_write_gcov_count_stream):
5748 * value-prof.c (stream_out_histogram_value): Make assert more
5749 precise based on type of counter.
5751 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
5754 * config/i386/i386.md (standard_x87sse_constant_load splitter):
5755 Use nonimmediate_operand instead of memory_operand for operand 1.
5756 (float-extend standard_x87sse_constant_load splitter): Ditto.
5758 2017-02-21 Jeff Law <law@redhat.com>
5760 PR tree-optimization/79621
5761 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
5762 blocks with edges to themselves.
5764 2017-02-21 Jakub Jelinek <jakub@redhat.com>
5767 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
5768 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
5769 Use gimple_call_builtin_p.
5772 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
5773 on temporarily removed DEBUG_INSNs.
5775 PR tree-optimization/79649
5776 * tree-loop-distribution.c (classify_partition): Give up on
5777 non-generic address space loads/stores.
5779 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
5781 * doc/loop.texi (Loop manipulation): Remove nonexistent
5782 tree_ssa_loop_version from the documentation.
5783 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
5785 2017-02-21 Jakub Jelinek <jakub@redhat.com>
5788 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
5789 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
5790 * config/rs6000/rs6000.c: Include except.h.
5791 (rs6000_expand_split_stack_prologue): Call
5792 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
5794 2017-02-21 Martin Jambor <mjambor@suse.cz>
5797 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
5800 2017-02-21 Martin Jambor <mjambor@suse.cz>
5802 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
5803 for backward compatibility only.
5804 * doc/invoke.texi (Option Summary): Remove all references to
5807 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
5811 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
5813 * lra-constraints.c (curr_insn_transform): Handle
5814 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
5816 2017-02-21 Martin Liska <mliska@suse.cz>
5818 * config/i386/i386.opt: Replace -masm-dialect with -masm.
5820 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
5822 PR translation/79638
5823 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
5825 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
5828 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
5829 (arm_function_ok_for_sibcall): Return false for an indirect call by
5830 descriptor if all the argument registers are used.
5831 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
5832 alignment of the function.
5834 2017-02-21 Jakub Jelinek <jakub@redhat.com>
5836 PR tree-optimization/61441
5837 * simplify-rtx.c (simplify_const_unary_operation): For
5838 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
5839 the sNaN unmodified.
5841 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5843 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
5844 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
5845 instead of SYSTEM_HEADER_DIR.
5847 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
5848 Martin Liška <mliska@suse.cz>
5850 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
5851 Fix typos and grammar, use active voice, and clarify.
5853 2017-02-20 Marek Polacek <polacek@redhat.com>
5856 * gimplify.c (gimplify_expr): Handle unused *&&L;.
5859 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
5861 2017-02-20 Jakub Jelinek <jakub@redhat.com>
5864 * config/i386/i386.c (ix86_expand_builtin): Handle
5865 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
5866 ix86_builtins_isa[fcode].isa as a requirement of those
5867 flags and any other flag in the bitmask.
5868 (ix86_init_mmx_sse_builtins): Use 0 instead of
5869 ~OPTION_MASK_ISA_64BIT as mask.
5870 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
5871 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
5872 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
5873 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
5875 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
5878 * lra-constraints.c (split_reg): Check requested split mode
5879 is supported by the register.
5881 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
5883 * lra-constraints.c (simplify_operand_subreg): Remove early
5886 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
5889 * lra-constraints.c (curr_insn_transform): Tighten condition
5890 for converting SUBREG reloads from OP_OUT to OP_INOUT.
5892 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
5895 * lra-constraints.c (curr_insn_transform): Handle
5896 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
5898 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
5901 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
5903 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
5905 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
5908 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
5911 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5913 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
5916 2017-02-18 Jakub Jelinek <jakub@redhat.com>
5918 * final.c (last_columnnum, override_columnnum): New variables.
5919 (final_start_function): Set last_columnnum, pass it to begin_prologue
5920 hook and pass 0 to dwarf2out_begin_prologue.
5921 (final_scan_insn): Update override_columnnum. Pass last_columnnum
5922 to source_line debug hook.
5923 (notice_source_line): Compute last_columnnum and for debug_column_info
5924 return true on column changes.
5925 * debug.h (struct gcc_debug_hooks): Add column argument to
5926 source_line and begin_prologue hooks.
5927 (debug_nothing_int_charstar_int_bool): Remove prototype.
5928 (debug_nothing_int_int_charstar,
5929 debug_nothing_int_int_charstar_int_bool): New prototypes.
5930 (dwarf2out_begin_prologue): Add column argument.
5931 * debug.c (do_nothing_debug_hooks): Adjust source_line and
5932 begin_prologue hooks.
5933 (debug_nothing_int_charstar_int_bool): Remove.
5934 (debug_nothing_int_int_charstar,
5935 debug_nothing_int_int_charstar_int_bool): New functions.
5936 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
5937 through to dwarf2out_source_line.
5938 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
5939 (dwarf2out_source_line): Add column argument, emit it if requested.
5940 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
5942 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
5943 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
5944 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
5945 through to dwarf2out_begin_prologue.
5946 (vmsdbgout_source_line): Add column argument, pass it through to
5947 dwarf2out_source_line.
5948 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
5949 dbxout_source_line caller.
5950 (dbxout_source_line): Add column argument.
5952 * common.opt (gno-column-info, gcolumn-info): New options.
5953 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
5954 (check_die): Also test for multiple DW_AT_decl_column attributes.
5955 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
5956 DW_AT_decl_column if requested.
5957 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
5959 (gen_variable_die): Likewise.
5960 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
5961 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
5964 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
5965 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
5966 (ix86_handle_option): Handle OPT_m3dnowa.
5967 * doc/invoke.texi (-m3dnowa): Document.
5968 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
5969 -m3dnowa instead of -m3dnow -march=athlon.
5972 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
5973 instead of gcc_assert for K, r and R code checks. Formatting fixes.
5975 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5978 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
5979 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
5980 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
5981 generator for vsx_xxpermdi_<mode>_be.
5982 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
5983 force big-endian semantics.
5984 (vsx_xxpermdi_<mode>_be): New define_expand with same
5985 implementation as previous version of vsx_xxpermdi_<mode>.
5987 2017-02-17 Jakub Jelinek <jakub@redhat.com>
5989 PR tree-optimization/79327
5990 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
5991 variable, its initialization and use.
5993 2017-02-17 Julia Koval <julia.koval@intel.com>
5995 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
5996 (OPTION_MASK_ISA_PKU_UNSET): New.
5997 (ix86_handle_option): Handle -mrdpid.
5998 * config/i386/cpuid.h (bit_RDPID): New.
5999 * config/i386/driver-i386.c (host_detect_local_cpu):
6000 Detect RDPID feature.
6001 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
6002 * config/i386/i386-c.c (ix86_target_macros_internal):
6004 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
6005 (ix86_valid_target_attribute_inner_p): Add "rdpid".
6006 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
6007 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
6008 * config/i386/i386.md (define_insn "rdpid"): New.
6009 * config/i386/i386.opt Add -mrdpid.
6010 * config/i386/immintrin.h (_rdpid_u32): New.
6012 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
6014 PR rtl-optimization/79541
6015 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
6016 instead of transforming it into USE.
6018 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
6020 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
6021 If HONOR_SNANS (SFmode) force the input to a register.
6022 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
6023 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
6024 an frsp or similar insn.
6026 2017-02-17 Martin Liska <mliska@suse.cz>
6028 PR rtl-optimization/79577
6029 * params.def (selsched-max-sched-times): Increase minimum to 1.
6031 2017-02-17 Martin Liska <mliska@suse.cz>
6033 PR rtl-optimization/79574
6034 * gcse.c (want_to_gcse_p): Prevent integer overflow.
6036 2017-02-17 Martin Liska <mliska@suse.cz>
6038 PR tree-optimization/79529
6039 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
6040 ssa_defined_default_def_p to handle cases which are implicitly
6042 * tree-ssa.c (ssa_defined_default_def_p): New function.
6043 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
6044 which are implicitly defined.
6045 * tree-ssa.h (ssa_defined_default_def_p): Declare.
6047 2017-02-17 Richard Biener <rguenther@suse.de>
6050 * params.def (max-ssa-name-query-depth): Limit to 10.
6052 2017-02-17 Richard Biener <rguenther@suse.de>
6054 PR tree-optimization/79552
6055 * tree-ssa-structalias.c (visit_loadstore): Properly verify
6058 2017-02-17 Richard Biener <rguenther@suse.de>
6061 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
6063 2017-02-17 Marek Polacek <polacek@redhat.com>
6066 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
6067 (fold_negate_expr): New wrapper.
6069 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
6071 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
6072 Correct terminology and de-emphasize pre-standard behavior.
6074 2017-02-16 Alan Modra <amodra@gmail.com>
6076 PR rtl-optimization/79286
6077 * ira.c (def_dominates_uses): New function.
6078 (update_equiv_regs): Don't create an equivalence for insns that
6079 may trap where the register def does not dominate the use.
6081 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
6083 PR rtl-optimization/78127
6084 * lra.c (lra): Call lra_eliminate before finish the loop after
6087 2017-02-16 Richard Biener <rguenther@suse.de>
6089 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
6091 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
6092 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
6093 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
6094 (isl_val_int_from_wi): New function.
6095 (extract_affine_gmp): Rename to ...
6096 (extract_affine_wi): ... this, take a widest_int.
6097 (extract_affine_int): Just wrap extract_affine_wi.
6098 (add_param_constraints): Use isl_val_int_from_wi.
6099 (add_loop_constraints): Likewise, and extract_affine_wi.
6101 2017-02-15 Jeff Law <law@redhat.com>
6104 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
6105 ira_init_register_move_cost_if_necessary.
6107 2017-02-15 Martin Sebor <msebor@redhat.com>
6110 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
6111 removed in a prior commit.
6113 2017-02-15 Bin Cheng <bin.cheng@arm.com>
6115 PR tree-optimization/79347
6116 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
6117 counters during peeling.
6119 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
6121 * Makefile.in (site.exp): Remove "set ISLVER".
6123 2017-02-15 Jakub Jelinek <jakub@redhat.com>
6126 * real.c (real_from_integer): Call real_convert even for decimal.
6128 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
6131 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
6133 2017-02-14 Andrew Pinski <apinski@cavium.com>
6135 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
6136 cores and change the partno/implementer to be correct.
6137 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
6138 the 'B" as the implementer.
6139 * config/aarch64/aarch64-tune.md: Regenerate.
6141 2017-02-14 Carl Love <cel@us.ibm.com>
6143 * config/rs6000/rs6000.c: Add case statement entry to make the
6144 xvcvuxdsp built-in argument unsigned.
6145 * config/rs6000/vsx.md: Fix the source and return operand types so they
6146 match the instruction definitions from the ISA document. Fix typo
6147 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
6150 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
6153 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
6154 member early_clobber_alts.
6155 * lra-lives.c (reg_early_clobber_p): New.
6156 (process_bb_lives): Use it.
6157 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
6158 (debug_operand_data): Initialize early_clobber_alts.
6159 (setup_operand_alternative): Set up early_clobber_alts.
6160 (collect_non_operand_hard_regs): Ditto. Pass early clobber
6161 alternatives to new_insn_reg.
6162 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
6164 (lra_update_insn_regno_info): Pass the new arg.
6166 2017-02-14 Jakub Jelinek <jakub@redhat.com>
6169 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
6170 (new_oacc_loop_raw): Don't clear already cleared fields.
6173 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
6174 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
6175 _mm512_prefetch_i64gather_ps): New inline functions and macros.
6177 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
6180 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
6182 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
6185 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
6186 the extra instruction to the right place to store 128-bit constant
6189 2017-02-14 Martin Sebor <msebor@redhat.com>
6192 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
6193 warning for strings of unknown length.
6195 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
6197 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
6199 2017-02-14 Jeff Law <law@redhat.com>
6202 * ira-costs.c (scan_one_insn): Initialize register move costs
6203 for pseudos seen in USE/CLOBBER insns.
6205 PR tree-optimization/79095
6206 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
6207 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
6208 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
6209 if the operands are known to be not equal, then the resulting range
6211 (intersect_ranges): If the new range is ~[0,0] and the old range is
6212 wide, then prefer ~[0,0].
6213 * tree-vrp.c (overflow_comparison_p_1): New function.
6214 (overflow_comparison_p): New function.
6215 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
6216 if NAME is used in an overflow test.
6217 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
6218 overflow check that can be expressed as an equality test, then adjust
6219 ops to be that equality test.
6221 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6223 * config/s390/s390-builtin-types.def: Remove flags argument.
6224 * config/s390/s390.c (s390_init_builtins): Likewise.
6226 2017-02-14 Martin Liska <mliska@suse.cz>
6228 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
6229 vector. Fix trailing white spaces.
6231 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
6233 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
6236 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6238 PR rtl-optimization/68664
6239 * config/arm/arm.c (arm_sched_can_speculate_insn):
6240 New function. Declare prototype.
6241 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
6243 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6245 PR rtl-optimization/68664
6246 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
6248 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
6250 2017-02-14 Amit Pawar <amit.pawar@amd.com>
6252 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
6253 max skip bytes for function, loop and jump.
6255 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6257 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
6258 ABS_EXPR for gimple dump.
6260 2017-02-14 Jakub Jelinek <jakub@redhat.com>
6263 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
6265 PR tree-optimization/79408
6266 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
6267 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
6268 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
6269 also if rhs1 is INTEGER_CST.
6271 2017-02-14 Richard Biener <rguenther@suse.de>
6274 * tree-into-ssa.c (insert_phi_nodes): When the function can
6275 have abnormal edges rewrite SSA names with broken use-def
6276 dominance out of SSA and register them for PHI insertion.
6278 2017-02-13 Martin Sebor <msebor@redhat.com>
6281 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
6282 clearing info.nowrite flag when snprintf size argument is a range.
6284 2017-02-13 Jakub Jelinek <jakub@redhat.com>
6286 * cprop.c (cprop_jump): Add missing space in string literal.
6287 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6288 (get_constraint_for_component_ref): Likewise.
6289 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
6290 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
6291 * lra-constraints.c (process_alt_operands): Likewise.
6292 * ipa-inline.c (inline_small_functions): Likewise.
6293 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
6294 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6295 * trans-mem.c (diagnose_tm_1_op): Likewise.
6296 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
6297 (grid_parallel_clauses_gridifiable): Likewise.
6299 * config/nvptx/mkoffload.c (process): Add space in between
6302 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
6303 "MOD4_SSE_REGS" and "ALL_REGS".
6305 * spellcheck.c (test_data): Add , in between "foo" and "food".
6307 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6310 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
6311 boundary crossing check and subsequent code generation agree.
6313 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6315 * config/aarch64/aarch64.c (has_memory_op): Delete.
6316 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
6319 2017-02-13 Jakub Jelinek <jakub@redhat.com>
6321 PR rtl-optimization/79388
6322 PR rtl-optimization/79450
6323 * combine.c (distribute_notes): When removing TEM_INSN for which
6324 corresponding dest has last value recorded, invalidate that last
6327 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6329 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
6330 of explicit '@'. Add missing assembly comment marker on branch costs
6333 2017-02-13 Nathan Sidwell <nathan@acm.org>
6335 * gengtype-lex.l (<in_struct>): Add '/'.
6337 2017-02-13 Martin Liska <mliska@suse.cz>
6340 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
6342 2017-02-13 Richard Biener <rguenther@suse.de>
6344 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
6346 * configure: Re-generate.
6347 * config.in: Likewise.
6348 * graphite-dependences.c: Simplify as if
6349 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
6350 * graphite-isl-ast-to-gimple.c: Likewise.
6351 * graphite-optimize-isl.c: Likewise.
6352 * graphite-poly.c: Likewise.
6353 * graphite-sese-to-poly.c: Likewise.
6354 * graphite.h: Likewise.
6355 * toplev.c: Include isl/version.h and use isl_version () for
6356 printing the ISL version.
6357 * doc/install.texi: Update ISL requirement.
6359 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
6361 * doc/standards.texi (Standards): Update reference to
6364 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
6366 * doc/extend.texi (Named Address Spaces): sourceware.org now
6368 * doc/install.texi (Binaries): Ditto.
6371 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
6373 * doc/cpp.texi: Replace "stringify"/"stringification" with C
6374 standard terminology "stringize"/"stringizing" throughout.
6375 * doc/cppinternals.texi: Likewise.
6377 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
6379 * doc/extend.texi: Fix some spelling mistakes and typos.
6380 * doc/invoke.texi: Likewise.
6382 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
6385 * params.def (inline-min-speedup) Change from 10 to 8.
6387 2017-02-11 Jakub Jelinek <jakub@redhat.com>
6389 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
6392 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
6395 * ipa-inline-analysis.c (get_minimal_bb): New function.
6396 (record_modified): Use it.
6397 (remap_edge_change_prob): Handle also ancestor functions.
6399 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
6401 * doc/contrib.texi (Contributors): Remove broken link into
6402 the Mauve CVS repository.
6404 2017-02-11 Jakub Jelinek <jakub@redhat.com>
6407 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
6408 result computation whenever lhs doesn't have vector mode, not
6409 just when it has BLKmode.
6411 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
6413 * doc/makefile.texi (profiledbootstrap): Refer to the
6414 installation instructions only in textual form.
6416 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6419 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
6421 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
6423 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
6424 (Specific): Update mingw-w64 reference.
6426 (Specific): Remove broken link to Renesas RX processor.
6428 2017-02-10 Richard Biener <rguenther@suse.de>
6430 * toplev.c (process_options): Do not mention obsolete graphite
6431 options when printing sorry message about missing graphite support.
6432 Mention -floop-nest-optimize.
6434 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
6436 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
6437 (vtst_p16): Likewise.
6438 (vtstq_p8): Likewise.
6439 (vtstq_p16): Likewise.
6441 (vtstq_p64): Likewise.
6442 * config/arm/arm_neon.h (vgetq_lane_p64): New.
6443 (vset_lane_p64): New.
6444 (vsetq_lane_p64): New.
6446 2017-02-10 Jakub Jelinek <jakub@redhat.com>
6448 PR tree-optimization/79411
6449 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
6450 stmt operands are SSA_NAMEs used in abnormal phis.
6451 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
6454 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
6457 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
6460 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
6462 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
6464 2017-02-09 Jakub Jelinek <jakub@redhat.com>
6466 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
6470 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
6471 not arbitrary TREE_CONSTANT.
6474 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
6475 "omp declare target link" attribute unless is_global_var.
6476 * omp-offload.c (find_link_var_op): Likewise.
6478 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
6479 Chung-Lin Tang <cltang@codesourcery.com>
6481 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
6483 (gimplify_adjust_omp_clauses): Don't delete TILE.
6484 (gimplify_omp_for): Deal with TILE.
6485 * internal-fn.c (expand_GOACC_TILE): New function.
6486 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
6488 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
6489 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
6491 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
6492 avoid DIV for outermost collapse var.
6493 (expand_oacc_for): Insert tile element loop as needed. Adjust.
6494 Remove out of date comments, fix whitespace.
6495 * omp-general.c (omp_extract_for_data): Deal with tiling.
6496 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
6497 adjust OLF_DIM_BASE value.
6498 (struct omp_for_data): Add tiling field.
6499 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
6500 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
6501 for auto loops. Remove default auto determining, moved to
6502 oacc_loop_fixed_partitions.
6503 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
6504 stmts, add e_mask field.
6505 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
6506 (oacc_thread_numbers): Use oacc_dim_call.
6507 (oacc_xform_tile): New.
6508 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
6509 (finish_oacc_loop): Adjust for ifns vector.
6510 (oacc_loop_discover_walk): Append loop abstraction sites to list,
6511 add case for GOACC_TILE fns.
6512 (oacc_loop_xform_loop): Delete.
6513 (oacc_loop_process): Iterate over call list directly, and add
6514 handling for GOACC_TILE fns.
6515 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
6517 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
6518 vector partitioning to outer loops. Assign 2 partitions to loops
6519 when available. Add TILE handling.
6520 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
6521 (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
6522 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
6523 * tree.c (omp_clause_num_ops): Adjust TILE ops.
6524 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
6526 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
6528 * configure.ac (ACX_BUGURL): Update.
6529 * configure: Regenerate.
6531 2017-02-09 Richard Biener <rguenther@suse.de>
6533 PR tree-optimization/69823
6534 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
6535 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
6537 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
6539 * config/arc/arc-c.def: Add __NPS400__ definition.
6540 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
6541 (TARGET_NPS400): Define.
6543 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
6545 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
6547 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
6549 (arc_cpu_types): Fill the arch_info field with a pointer into the
6550 arc_arch_types table.
6551 (arc_selected_cpu): Declare.
6552 * config/arc/arc.c (arc_selected_cpu): Make global.
6553 (arc_selected_arch): Delete.
6554 (arc_base_cpu): Delete.
6555 (arc_override_options): Remove references to deleted variables,
6556 update access to arch information.
6557 (ARC_OPT): Update access to arch information.
6558 (ARC_OPTX): Likewise.
6559 * config/arc/arc.h (arc_base_cpu): Remove declaration.
6560 (TARGET_ARC600): Update access to arch information.
6561 (TARGET_ARC601): Likewise.
6562 (TARGET_ARC700): Likewise.
6563 (TARGET_EM): Likewise.
6564 (TARGET_HS): Likewise.
6565 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
6568 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
6571 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
6572 condition/operands for integer GE/LE/GEU/LEU operations.
6574 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
6576 PR translation/79397
6577 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
6580 2017-02-08 Martin Jambor <mjambor@suse.cz>
6583 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
6584 whether allocation happened.
6585 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
6586 nothing was allocated.
6588 2017-02-08 Jakub Jelinek <jakub@redhat.com>
6590 PR tree-optimization/79408
6591 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
6592 constant, but SSA_NAME with a known integer range, use the minimum
6593 of that range instead of op1 to determine if modulo can be replaced
6594 with its first operand.
6596 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6598 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
6600 2017-02-08 Richard Biener <rguenther@suse.de>
6602 PR tree-optimization/71824
6603 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
6604 Check all loops contained in the merged region.
6606 2017-02-07 Andrew Pinski <apinski@cavium.com>
6608 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
6610 2017-02-07 Andrew Pinski <apinski@cavium.com>
6612 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
6613 (thunderxt88): Likewise.
6614 (thunderxt81): Disable LSE and change v8.1 to v8.
6615 (thunderxt83): Likewise.
6617 2017-02-07 Jakub Jelinek <jakub@redhat.com>
6618 Richard Biener <rguenther@suse.de>
6621 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
6622 type from int to size_t.
6623 * ira-costs.c (struct_costs_size): Change type from int to size_t.
6625 2017-02-07 Jakub Jelinek <jakub@redhat.com>
6627 PR rtl-optimization/79386
6628 * cprop.c (bypass_conditional_jumps): Initialize
6629 bypass_last_basic_block already before splitting bbs after
6630 unconditional traps...
6631 (bypass_conditional_jumps): ... rather than here.
6634 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
6635 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
6636 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
6637 fix -masm=intel patterns.
6639 2017-02-07 Richard Biener <rguenther@suse.de>
6641 PR tree-optimization/79256
6643 * builtins.c (get_object_alignment_2): Use min_align_of_type
6644 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
6645 and ADJUST_FIELD_ALIGN.
6647 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
6649 * doc/tm.texi: Regenerate.
6650 * stor-layout.c (layout_decl): Adjust.
6651 (update_alignment_for_field): Likewise.
6652 (place_field): Likewise.
6653 (min_align_of_type): Likewise.
6654 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
6655 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
6656 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
6657 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
6658 * config/frv/frv.c (frv_adjust_field_align): Likewise.
6659 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
6660 * config/i386/i386.c (x86_field_alignment): Likewise.
6661 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6662 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
6663 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
6664 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6665 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
6666 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
6670 2017-01-30 Richard Biener <rguenther@suse.de>
6672 PR tree-optimization/79256
6673 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
6674 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
6677 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
6679 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
6680 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
6681 builtins to SImode and emit a zero-extend, if necessary.
6683 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
6685 * docs/invoke.texi (RISC-V Options): Alphabetize.
6687 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
6689 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
6692 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
6694 * config/riscv/riscv.c: New file.
6695 * gcc/common/config/riscv/riscv-common.c: Likewise.
6696 * config.gcc: Likewise.
6697 * config/riscv/constraints.md: Likewise.
6698 * config/riscv/elf.h: Likewise.
6699 * config/riscv/generic.md: Likewise.
6700 * config/riscv/linux.h: Likewise.
6701 * config/riscv/multilib-generator: Likewise.
6702 * config/riscv/peephole.md: Likewise.
6703 * config/riscv/pic.md: Likewise.
6704 * config/riscv/predicates.md: Likewise.
6705 * config/riscv/riscv-builtins.c: Likewise.
6706 * config/riscv/riscv-c.c: Likewise.
6707 * config/riscv/riscv-ftypes.def: Likewise.
6708 * config/riscv/riscv-modes.def: Likewise.
6709 * config/riscv/riscv-opts.h: Likewise.
6710 * config/riscv/riscv-protos.h: Likewise.
6711 * config/riscv/riscv.h: Likewise.
6712 * config/riscv/riscv.md: Likewise.
6713 * config/riscv/riscv.opt: Likewise.
6714 * config/riscv/sync.md: Likewise.
6715 * config/riscv/t-elf-multilib: Likewise.
6716 * config/riscv/t-linux: Likewise.
6717 * config/riscv/t-linux-multilib: Likewise.
6718 * config/riscv/t-riscv: Likewise.
6719 * configure.ac: Likewise.
6720 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
6721 Waterman as RISC-V maintainers.
6722 * doc/install.texi: Add RISC-V entries.
6723 * doc/invoke.texi: Add RISC-V options section.
6724 * doc/md.texi: Add RISC-V constraints section.
6725 * configure: Regenerated.
6727 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
6730 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
6731 false values to be constant vectors with all 0 or all 1 bits set.
6732 (vcondu<mode><mode>): Likewise.
6733 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
6735 (fpmask_comparison_operator): Update comment.
6736 (vecint_comparison_operator): New predicate.
6737 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
6738 vector conditionals when the true and false values are constant
6739 vectors with all 0 bits or all 1 bits set.
6741 2017-02-06 Martin Sebor <msebor@redhat.com>
6743 PR tree-optimization/79376
6744 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
6746 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
6748 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
6749 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
6750 to simplify split condition.
6752 2017-02-06 Jakub Jelinek <jakub@redhat.com>
6754 * omp-expand.c (oxpand_omp_atomic_fetch_op,
6755 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
6758 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
6760 PR rtl-optimization/68664
6761 * target.def (can_speculate_insn): New hook.
6762 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
6763 * doc/tm.texi: Regenerate.
6764 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
6765 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
6766 (rs6000_sched_can_speculate_insn): New function.
6768 2017-02-06 Jakub Jelinek <jakub@redhat.com>
6770 PR tree-optimization/79284
6771 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
6772 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
6773 vectorizable_mask_load_store, vectorizable_operation,
6774 vect_is_simple_cond, get_same_sized_vectype): Use it instead
6775 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
6776 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
6777 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
6778 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
6779 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
6780 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
6781 is_gimple_assign (stmt). Replace another such test with
6782 is_gimple_assign (stmt).
6784 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
6787 * config/avr/avr.c (rtl-iter.h): Include it.
6788 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
6789 (avr_legitimate_combined_insn): ...and implementation.
6791 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
6793 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
6794 * config/s390/s390.c (s390_const_operand_ok)
6795 (s390_canonicalize_comparison, s390_extract_part)
6796 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
6797 (s390_contiguous_bitmask_p, s390_rtx_costs)
6798 (legitimize_pic_address): Likewise.
6799 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
6800 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
6801 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
6802 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
6803 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
6805 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
6807 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
6808 REGNO($0) == REGNO($1).
6810 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6812 * config/s390/linux.h(SIZE_TYPE): Add comment.
6814 2017-02-06 Julian Brown <julian@codesourcery.com>
6815 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
6816 Virendra Pathak <virendra.pathak@broadcom.com>
6818 * config/aarch64/aarch64-cores.def: Change the scheduler
6820 * config/aarch64/aarch64.md: Include thunderx2t99.md.
6821 * config/aarch64/thunderx2t99.md: New file.
6823 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
6825 * doc/standards.texi (Go Language): Update link to language
6828 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
6830 * tree-eh.c (lower_resx): Sanitize profile.
6831 (cleanup_empty_eh_move_lp): Likewise.
6833 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
6836 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
6838 * cfgloopmanip.h (loop_version): Update prototype.
6839 * modulo-sched.c (sms_schedule): Update call of loop_version.
6840 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
6841 * tree-parloops.c (gen_parallel_loop): Likewise.
6842 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
6843 * tree-ssa-loop-split.c (split_loop): Likewise.
6844 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
6845 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
6847 2017-02-05 Martin Liska <mliska@suse.cz>
6850 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
6852 (print_operand_address): Initialize a struct to zero.
6854 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
6856 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
6857 garbage collector only in textual form.
6859 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
6861 * doc/extend.texi (x86 specific memory model extensions for
6862 transactional memory): Simplify a phrase.
6864 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
6867 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
6868 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
6869 (atomic_storedi_1): Likewise.
6871 2017-02-04 Jakub Jelinek <jakub@redhat.com>
6873 PR tree-optimization/79338
6874 * tree-parloops.c (gather_scalar_reductions): Don't call
6875 vect_analyze_loop_form for loop->inner before destroying loop's
6878 2017-02-03 Martin Sebor <msebor@redhat.com>
6880 PR tree-optimization/79327
6881 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
6882 when precision has resulted in leading zeros.
6883 (format_integer): Adjust the likely counter to assume an unknown
6884 argument that may be zero is non-zero.
6886 2017-02-03 Jason Merrill <jason@redhat.com>
6889 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
6890 avoid copying non-taken branch.
6892 2017-02-03 Jakub Jelinek <jakub@redhat.com>
6894 PR tree-optimization/79340
6895 * tree-vect-loop.c (vectorizable_reduction): Release
6896 vec_defs elements after safe_splicing them into other vectors.
6899 PR tree-optimization/79327
6900 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
6901 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
6903 (format_integer): Use wide_int_to_tree instead of build_int_cst
6904 + to_?hwi. If argmin is NULL, just set argmin and argmax to
6905 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
6906 of shortest and longest sequence.
6908 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
6910 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
6911 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
6913 2017-02-03 Walter Lee <walt@tilera.com>
6916 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
6917 after initial stackframe link reg save.
6918 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
6920 2017-02-03 Jakub Jelinek <jakub@redhat.com>
6923 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
6924 wu for stxssp alternative.
6926 2017-02-03 Martin Sebor <msebor@redhat.com>
6928 PR tree-optimization/79352
6929 * gimple-fold.c (get_range_strlen): Add argument.
6930 (get_range_strlen): Change return type to bool.
6931 (get_maxval_strlen): Pass in a dummy argument.
6932 * gimple-fold.h (get_range_strlen): Change return type to bool.
6933 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
6934 * tree.h (array_at_struct_end_p): Add argument.
6935 * tree.c (array_at_struct_end_p): Handle it.
6937 2017-02-03 Martin Liska <mliska@suse.cz>
6940 * multiple_target.c (create_dispatcher_calls): Redirect edge
6941 from a caller of a dispatcher.
6942 (expand_target_clones): Make the clones local.
6943 (ipa_target_clone): Do both target clones and resolvers.
6944 (ipa_dispatcher_calls): Remove the pass.
6945 (pass_dispatcher_calls::gate): Likewise.
6946 (make_pass_dispatcher_calls): Likewise.
6947 * passes.def (pass_target_clone): Put as very first IPA early
6950 2017-02-03 Martin Liska <mliska@suse.cz>
6952 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
6953 in case of a function with ifunc attribute.
6955 2017-02-03 Martin Liska <mliska@suse.cz>
6957 * cgraph.c (cgraph_node::dump): Dump function version info.
6958 * symtab.c (symtab_node::dump_base): Add missing new line.
6960 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
6962 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
6963 (ifcombine_ifandif): Use it.
6965 2017-02-03 Martin Liska <mliska@suse.cz>
6967 * doc/invoke.texi: Document default value for
6968 use-after-scope-direct-emission-threshold.
6970 2017-02-03 Martin Liska <mliska@suse.cz>
6972 PR tree-optimization/79339
6973 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
6974 (format_floating): Likewise.
6976 2017-02-03 Martin Liska <mliska@suse.cz>
6979 * ipa-prop.c (ipa_node_params_t::insert): Remove current
6981 (ipa_node_params_t::remove): Likewise.
6982 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
6983 initialization from removed ipa_node_params_t::insert.
6984 (ipa_node_params::~ipa_node_params): Move from removed
6985 ipa_node_params_t::release.
6986 * symbol-summary.h (symbol_summary::m_released): New member.
6987 Do not release a summary twice. Do not allow to call finalizer
6988 for types of a summary that live in GGC memory.
6990 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
6992 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
6995 2017-02-02 Martin Sebor <msebor@redhat.com>
6998 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
6999 (format_string): Tighten up the range of output for non-constant
7000 strings and correct the expected range for wide non-constant strings.
7002 2017-02-02 Martin Sebor <msebor@redhat.com>
7004 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
7007 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
7009 (-fdump-tree-@var): Add to index and document how to come up
7010 with pass-specific option and dump file names.
7011 (-fdump-passes): Clarify where to look for output.
7013 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
7016 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
7017 statistics of the analyzed path; allow threading for speed when
7018 any of BBs along the path are optimized for speed.
7020 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
7023 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
7024 settings of the virtual registers.
7027 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
7029 * explow.c (get_dynamic_stack_size): Take known alignment of stack
7030 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
7033 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7035 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
7036 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
7038 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7040 * config/s390/s390.md: Add missing comments with the expanded
7042 * config/s390/vector.md: Likewise.
7043 * config/s390/vx-builtins.md: Likewise.
7045 2017-02-02 Jakub Jelinek <jakub@redhat.com>
7048 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
7049 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
7050 conditions on a single line.
7052 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7054 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
7055 __S390_VX__ to __VX__.
7057 2017-02-01 Andrew Pinski <apinski@cavium.com>
7059 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
7060 stmt_info to record_stmt_cost.
7061 (vect_get_known_peeling_cost): Pass stmt_info if known to
7063 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
7064 cpu_vector_cost field into
7065 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
7066 field into vec_int_stmt_cost and vec_fp_stmt_cost.
7067 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
7068 splitting of scalar_stmt_cost and vec_stmt_cost.
7069 (thunderx_vector_cost): Likewise.
7070 (cortexa57_vector_cost): LIkewise.
7071 (exynosm1_vector_cost): Likewise.
7072 (xgene1_vector_cost): Likewise.
7073 (thunderx2t99_vector_cost): Improve after the splitting of the two
7075 (aarch64_builtin_vectorization_cost): Update for the splitting of
7076 scalar_stmt_cost and vec_stmt_cost.
7078 2017-02-01 Torvald Riegel <triegel@redhat.com>
7079 Richard Henderson <rth@redhat.com>
7081 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
7082 conditional on existance of a fast atomic load.
7083 * optabs-query.c (can_atomic_load_p): New function.
7084 * optabs-query.h (can_atomic_load_p): Declare it.
7085 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
7086 no fast atomic load is available for the particular size of access.
7087 (expand_atomic_compare_and_swap): Likewise.
7088 (expand_atomic_load): Likewise.
7089 (expand_atomic_store): Likewise.
7090 (expand_atomic_fetch_op): Likewise.
7091 * testsuite/lib/target-supports.exp
7092 (check_effective_target_sync_int_128): Remove x86 because it provides
7093 no fast atomic load.
7094 (check_effective_target_sync_int_128_runtime): Likewise.
7096 2017-02-01 Richard Biener <rguenther@suse.de>
7098 * graphite.c: Include tree-vectorizer.h for find_loop_location.
7099 (graphite_transform_loops): Provide opt-info for optimized nests.
7100 * tree-parloop.c (parallelize_loops): Provide opt-info for
7103 2017-02-01 Richard Biener <rguenther@suse.de>
7106 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
7109 2017-02-01 Richard Biener <rguenther@suse.de>
7111 PR tree-optimization/71824
7112 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
7113 Verify the loops are valid in the merged SESE region.
7114 (scop_detection::can_represent_loop_1): Check analyzing the
7115 evolution of the number of iterations in the region succeeds.
7117 2017-01-31 Ian Lance Taylor <iant@golang.org>
7119 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
7120 REG_ARGS_SIZE note to 32-bit push insns and call insn.
7122 2017-01-31 David Malcolm <dmalcolm@redhat.com>
7124 PR preprocessor/79210
7125 * input.c (get_substring_ranges_for_loc): Replace line_width
7126 assertion with error-handling.
7128 2017-01-31 Richard Biener <rguenther@suse.de>
7130 PR tree-optimization/77318
7131 * graphite-sese-to-poly.c (extract_affine): Fix assert.
7132 (create_pw_aff_from_tree): Take loop parameter.
7133 (add_condition_to_pbb): Pass loop of the condition to
7134 create_pw_aff_from_tree.
7136 2017-01-31 Jakub Jelinek <jakub@redhat.com>
7138 * config/s390/s390.c (s390_asan_shadow_offset): New function.
7139 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
7141 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
7145 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
7147 (convert_int_to_float128): Likewise.
7148 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
7149 (convert_int_to_float128): Likewise.
7150 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
7151 (UNSPEC_IEEE128_CONVERT): Likewise.
7152 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
7153 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
7154 Use local variables for IBM extended format.
7155 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
7156 (fix_trunc<mode>si2_fprs): Likewise.
7157 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7158 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
7159 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
7160 to know that we can now have integers of all sizes in vector
7162 (fix<uns>_<mode>di2_hw): Likewise.
7163 (float<uns>_<mode>si2_hw): Likewise.
7164 (fix_<mode>si2_hw): Likewise.
7165 (fixuns_<mode>si2_hw): Likewise.
7166 (float<uns>_<mode>di2_hw): Likewise.
7167 (float_<mode>di2_hw): Likewise.
7168 (float_<mode>si2_hw): Likewise.
7169 (floatuns_<mode>di2_hw): Likewise.
7170 (floatuns_<mode>si2_hw): Likewise.
7171 (xscvqp<su>wz_<mode>): Delete, no longer used.
7172 (xscvqp<su>dz_<mode>): Likewise.
7173 (xscv<su>dqp_<mode>): Likewise.
7174 (ieee128_mfvsrd_64bit): Likewise.
7175 (ieee128_mfvsrd_32bit): Likewise.
7176 (ieee128_mfvsrwz): Likewise.
7177 (ieee128_mtvsrw): Likewise.
7178 (ieee128_mtvsrd_64bit): Likewise.
7179 (ieee128_mtvsrd_32bit): Likewise.
7181 2017-01-31 Martin Liska <mliska@suse.cz>
7184 * ipa-prop.c (ipa_free_all_node_params): Call release method
7185 instead of ~sumbol_summary to not to trigger double times
7188 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
7190 PR tree-optimization/71691
7191 * bitmap.h (class auto_bitmap): New.
7192 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
7193 is_maybe_undefined instead of ssa_undefined_value_p.
7195 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7197 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
7198 __S390_ARCH_LEVEL__ to __ARCH__.
7200 2017-01-31 Jakub Jelinek <jakub@redhat.com>
7202 PR tree-optimization/79267
7203 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
7204 if should_remove_lhs_p is true.
7206 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
7209 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
7210 (add_alignment_attribute): New.
7211 (base_type_die): Add alignment attribute.
7212 (subrange_type_die): Likewise.
7213 (modified_type_die): Likewise.
7214 (gen_array_type_die): Likewise.
7215 (gen_descr_array_type_die: Likewise.
7216 (gen_enumeration_type_die): Likewise.
7217 (gen_subprogram_die): Likewise.
7218 (gen_variable_die): Likewise.
7219 (gen_field_die): Likewise.
7220 (gen_ptr_to_mbr_type_die): Likewise.
7221 (gen_struct_or_union_type_die): Likewise.
7222 (gen_subroutine_type_die): Likewise.
7223 (gen_typedef_die): Likewise.
7224 (base_type_cmp): Compare alignment attribute.
7226 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7229 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
7230 (setb_unsigned) New pattern for setb with CCUNS.
7231 * config/rs6000/rs6000.c (expand_block_compare): Use a different
7232 subfc./subfe sequence to avoid overflow problems. Generate a
7233 shorter sequence with cmpld/setb for power9.
7234 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
7235 for generating subfc. instruction.
7236 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
7237 now uses this instruction.
7239 2017-01-30 Ian Lance Taylor <iant@google.com>
7242 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
7243 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
7245 2017-01-30 Martin Sebor <msebor@redhat.com>
7247 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
7248 Move constant to the right of a relational operator.
7249 (get_mpfr_format_length, format_character, format_string): Ditto.
7250 (should_warn_p, maybe_warn): Same.
7252 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
7254 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
7257 * asan.c (get_translation_unit_decl): Remove function.
7258 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
7260 2017-01-30 Martin Liska <mliska@suse.cz>
7262 PR gcov-profile/79259
7263 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
7266 2017-01-30 Martin Liska <mliska@suse.cz>
7269 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
7270 Initialize variables with NULL value.
7272 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
7275 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
7277 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
7279 2017-01-30 Richard Biener <rguenther@suse.de>
7281 PR tree-optimization/79276
7282 * tree-vrp.c (process_assert_insertions): Properly adjust common
7283 when removing a duplicate.
7285 * gcc.dg/torture/pr79276.c: New testcase.
7287 2017-01-30 Richard Biener <rguenther@suse.de>
7289 PR tree-optimization/79256
7290 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
7291 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
7293 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
7295 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
7298 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
7299 ("*r<noxa>sbg_<mode>_sll_bitmask")
7300 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
7301 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
7302 Use contiguous_bitmask_nowrap_operand.
7304 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7307 * config/rs6000/altivec.h (vec_xl): Revise #define.
7308 (vec_xst): Likewise.
7310 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
7312 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
7314 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
7316 PR rtl-optimization/79194
7317 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
7318 traps before call to bypass_conditional_jumps.
7320 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
7322 PR tree-optimization/71374
7323 * lra-constraints.c (check_conflict_input_operands): New.
7324 (match_reload): Use it.
7326 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
7329 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
7330 account to calculate conflict_set.
7332 2017-01-27 Bin Cheng <bin.cheng@arm.com>
7334 PR rtl-optimization/78559
7335 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
7336 other_insn in combine.
7338 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
7340 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
7341 uint16_type_node for BT_UINT16.
7343 2017-01-27 David Malcolm <dmalcolm@redhat.com>
7345 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
7346 "RTL Tests" to menu.
7347 (GIMPLE Tests): New node.
7348 (RTL Tests): New node.
7350 2017-01-27 Richard Biener <rguenther@suse.de>
7352 PR tree-optimization/79245
7353 * tree-loop-distribution.c (distribute_loop): Apply cost
7354 modeling also to detected patterns.
7356 2017-01-27 Richard Biener <rguenther@suse.de>
7358 PR tree-optimization/71433
7359 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
7360 (compare_assert_loc): New function.
7361 (process_assert_insertions): Sort and optimize assert locations
7362 to remove duplicates and push down identical assertions on
7363 edges to their destination block.
7365 2017-01-27 Richard Biener <rguenther@suse.de>
7367 PR tree-optimization/79244
7368 * tree-vrp.c (remove_range_assertions): Forcefully propagate
7369 out SSA names even if abnormal.
7371 2017-01-27 Jakub Jelinek <jakub@redhat.com>
7373 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
7374 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
7375 instead of MPFR_RNDN.
7377 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
7380 * arm.c (arm_option_override): Don't call build_target_option_node
7381 until after doing all option overrides.
7382 (arm_valid_target_attribute_tree): Likewise.
7384 2017-01-27 Martin Liska <mliska@suse.cz>
7386 * doc/invoke.texi (-fprofile-arcs): Document profiling support
7387 for {cd}tors and C++ {cd}tors.
7389 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
7391 * config/s390/s390.md ("*setmem_long_and")
7392 ("*setmem_long_and_31z"): Use zero_extend instead of and.
7394 2017-01-26 Martin Sebor <msebor@redhat.com>
7396 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
7399 2017-01-26 Martin Sebor <msebor@redhat.com>
7401 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
7402 HAVE_DFmode before using XFmode or DFmode.
7403 (parse_directive): Avoid using the z length modifier to avoid
7404 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
7407 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
7408 to accept adjustment as an array.
7409 (get_int_range): New function.
7410 (struct directive): Make width and prec arrays.
7411 (directive::set_width, directive::set_precision): Call get_int_range.
7412 (format_integer, format_floating): Handle width and precision ranges.
7413 (format_string, parse_directive): Same.
7415 2017-01-26 Jakub Jelinek <jakub@redhat.com>
7418 * dwarf2out.c (generate_skeleton_bottom_up): For children with
7419 comdat_type_p set, just clone them, but keep the children in the
7423 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
7424 which have direct callers with -fvar-tracking-assignments enabled
7426 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
7427 inside of type units.
7429 2017-01-26 Martin Sebor <msebor@redhat.com>
7432 * gimple-ssa-sprintf.c (struct result_range): Add likely and
7434 (struct format_result): Replace number_chars, number_chars_min,
7435 and number_chars_max with a single member of struct result_range.
7437 (format_result::operator+=): Adjust.
7438 (struct fmtresult): Remove bounded. Handle likely and unlikely
7440 (fmtresult::adjust_for_width_or_precision): New function.
7441 (fmtresult:type_max_digits): New function.
7442 (bytes_remaining): Handle likely and unlikely counters.
7443 (min_bytes_remaining): Remove.
7444 (format_percent): Simplify.
7445 (format_integer, format_floating): Set likely and unlikely counters.
7446 (get_string_length, format_character, format_string): Same.
7447 (format_plain, should_warn_p): New function.
7448 (maybe_warn): Call should_warn_p. Update diagnostic messages
7449 and handle those for all directives, including plain strings.
7450 (format_directive): Handle likely and unlikely counters.
7451 Remove unnecessary quoting from diagnostics. Add an informational
7453 (add_bytes): Remove.
7454 (pass_sprintf_length::compute_format_length): Simplify.
7455 (try_substitute_return_value): Handle likely and unlikely counters.
7457 2017-01-26 Carl Love <cel@us.ibm.com>
7459 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
7460 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
7462 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
7465 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
7466 endianess for subregs into account.
7467 * lra-constraints.c (lra_constraints): Do risky transformations
7468 always on the first iteration.
7469 * lra-lives.c (check_pseudos_live_through_calls): Add arg
7470 last_call_used_reg_set.
7471 (process_bb_lives): Define and use last_call_used_reg_set.
7472 * lra.c (lra): Always continue after lra_constraints on the first
7475 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
7477 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
7479 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
7481 2017-01-26 Jakub Jelinek <jakub@redhat.com>
7483 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
7484 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
7485 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
7486 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
7487 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
7488 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
7489 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
7490 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
7491 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
7493 2017-01-26 Marek Polacek <polacek@redhat.com>
7496 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
7497 for the third operand.
7499 2017-01-26 Jakub Jelinek <jakub@redhat.com>
7502 * omp-low.c (struct omp_context): Add simt_stmt field.
7503 (scan_omp_for): Return omp_context *.
7504 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
7505 context to the _simt_ SIMD stmt.
7506 (lower_omp_for): For combined SIMD with sibling _simt_
7507 SIMD, make sure to use the same decls in _looptemp_
7508 clauses as in the sibling.
7510 2017-01-26 David Sherwood <david.sherwood@arm.com>
7513 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
7516 2017-01-26 Jakub Jelinek <jakub@redhat.com>
7519 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
7520 emit fld b; fld a; if possible.
7522 * brig-builtins.def: Update copyright years.
7523 * config/arm/arm_acle_builtins.def: Update copyright years.
7525 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
7528 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
7529 constraint instead of o for the stxsd instruction.
7531 2017-01-25 Carl Love <cel@us.ibm.com>
7533 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
7534 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
7536 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
7538 * doc/invoke.texi (C++ Dialect Options): Fix typo.
7540 2017-01-25 Richard Biener <rguenther@suse.de>
7542 PR tree-optimization/69264
7543 * target.def (vector_alignment_reachable): Improve documentation.
7544 * doc/tm.texi: Regenerate.
7545 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
7547 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
7548 earlier changes with respect to TYPE_USER_ALIGN.
7549 (vector_alignment_reachable_p): Likewise. Improve dumping.
7551 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7554 * config/arm/arm.md (xordi3): Force constant operand into a register
7557 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7559 * doc/invoke.texi (-fstore-merging): Correct default optimization
7560 levels at which it is enabled.
7561 (-O): Move -fstore-merging from list to...
7564 2017-01-25 Richard Biener <rguenther@suse.de>
7567 * omp-expand.c: Include debug.h.
7568 (expand_omp_taskreg): Make sure to generate early debug before
7569 outlining anything from a function.
7570 (expand_omp_target): Likewise.
7571 (grid_expand_target_grid_body): Likewise.
7573 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
7576 * asan.c (get_translation_unit_decl): New function.
7577 (asan_add_global): Extract modules file name from globals
7578 TRANSLATION_UNIT_DECL name.
7580 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
7583 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
7584 for long calls with APCS frame and VFP.
7586 2017-01-24 David Malcolm <dmalcolm@redhat.com>
7588 * cfg.c (original_copy_tables_initialized_p): New function.
7589 * cfg.h (original_copy_tables_initialized_p): New decl.
7590 * cfgrtl.c (relink_block_chain): Guard the call to
7591 free_original_copy_tables with a call to
7592 original_copy_tables_initialized_p.
7593 * cgraph.h (symtab_node::native_rtl_p): New decl.
7594 * cgraphunit.c (symtab_node::native_rtl_p): New function.
7595 (symtab_node::needed_p): Don't assert for early assembly output
7596 for __RTL functions.
7597 (cgraph_node::finalize_function): Set "force_output" for __RTL
7599 (cgraph_node::analyze): Bail out early for __RTL functions.
7600 (analyze_functions): Update assertion to support __RTL functions.
7601 (cgraph_node::expand): Bail out early for __RTL functions.
7602 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
7604 * function.h (struct function): Update comment for field
7606 * gimple-expr.c: Include "tree-pass.h".
7607 (gimple_has_body_p): Return false for __RTL functions.
7608 * Makefile.in (OBJS): Add run-rtl-passes.o.
7609 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
7611 (gcc::pass_manager::get_clean_slate): New accessor.
7612 * passes.c: Include "insn-addr.h".
7613 (should_skip_pass_p): Add logging. Update logic for running
7614 "expand" to be compatible with both __GIMPLE and __RTL. Guard
7615 property-provider override so it is only done for gimple passes.
7617 (skip_pass): New function.
7618 (execute_one_pass): Call skip_pass when skipping passes.
7619 * read-md.c (md_reader::read_char): Support filtering
7620 the input to a subset of line numbers.
7621 (md_reader::md_reader): Initialize fields
7622 m_first_line and m_last_line.
7623 (md_reader::read_file_fragment): New function.
7624 * read-md.h (md_reader::read_file_fragment): New decl.
7625 (md_reader::m_first_line): New field.
7626 (md_reader::m_last_line): New field.
7627 * read-rtl-function.c (function_reader::create_function): Only
7628 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
7629 curr_properties. Set DECL_INITIAL to a dummy block.
7630 (read_rtl_function_body_from_file_range): New function.
7631 * read-rtl-function.h (read_rtl_function_body_from_file_range):
7633 * run-rtl-passes.c: New file.
7634 * run-rtl-passes.h: New file.
7636 2017-01-24 Jeff Law <law@redhat.com>
7638 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
7641 2017-01-24 Bin Cheng <bin.cheng@arm.com>
7643 PR tree-optimization/79159
7644 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
7645 (record_nonwrapping_iv): Improve boundary using above function if no
7646 value range information.
7648 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
7649 Martin Jambor <mjambor@suse.cz>
7651 * brig-builtins.def: New file.
7652 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
7653 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
7654 (DEF_HSAIL_SAT_BUILTIN): Likewise.
7655 (DEF_HSAIL_INTR_BUILTIN): Likewise.
7656 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
7657 * builtin-types.def (BT_INT8): New.
7658 (BT_INT16): Likewise.
7659 (BT_UINT8): Likewise.
7660 (BT_UINT16): Likewise.
7661 (BT_FN_ULONG): Likewise.
7662 (BT_FN_UINT_INT): Likewise.
7663 (BT_FN_UINT_ULONG): Likewise.
7664 (BT_FN_UINT_LONG): Likewise.
7665 (BT_FN_UINT_PTR): Likewise.
7666 (BT_FN_ULONG_PTR): Likewise.
7667 (BT_FN_INT8_FLOAT): Likewise.
7668 (BT_FN_INT16_FLOAT): Likewise.
7669 (BT_FN_UINT32_FLOAT): Likewise.
7670 (BT_FN_UINT16_FLOAT): Likewise.
7671 (BT_FN_UINT8_FLOAT): Likewise.
7672 (BT_FN_UINT64_FLOAT): Likewise.
7673 (BT_FN_UINT16_UINT32): Likewise.
7674 (BT_FN_UINT32_UINT16): Likewise.
7675 (BT_FN_UINT16_UINT16_UINT16): Likewise.
7676 (BT_FN_INT_PTR_INT): Likewise.
7677 (BT_FN_UINT_PTR_UINT): Likewise.
7678 (BT_FN_LONG_PTR_LONG): Likewise.
7679 (BT_FN_ULONG_PTR_ULONG): Likewise.
7680 (BT_FN_VOID_UINT64_UINT64): Likewise.
7681 (BT_FN_UINT8_UINT8_UINT8): Likewise.
7682 (BT_FN_INT8_INT8_INT8): Likewise.
7683 (BT_FN_INT16_INT16_INT16): Likewise.
7684 (BT_FN_INT_INT_INT): Likewise.
7685 (BT_FN_UINT_FLOAT_UINT): Likewise.
7686 (BT_FN_FLOAT_UINT_UINT): Likewise.
7687 (BT_FN_ULONG_UINT_UINT): Likewise.
7688 (BT_FN_ULONG_UINT_PTR): Likewise.
7689 (BT_FN_ULONG_ULONG_ULONG): Likewise.
7690 (BT_FN_UINT_UINT_UINT): Likewise.
7691 (BT_FN_VOID_UINT_PTR): Likewise.
7692 (BT_FN_UINT_UINT_PTR: Likewise.
7693 (BT_FN_UINT32_UINT64_PTR): Likewise.
7694 (BT_FN_INT_INT_UINT_UINT): Likewise.
7695 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
7696 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
7697 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
7698 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
7699 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
7700 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
7701 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
7702 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
7703 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
7704 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
7705 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
7706 * doc/frontends.texi: List BRIG FE.
7707 * doc/install.texi (Testing): Add BRIG tesring requirements.
7708 * doc/invoke.texi (Overall Options): Mention BRIG.
7709 * doc/standards.texi (Standards): Doucment BRIG HSA version.
7711 2017-01-24 Richard Biener <rguenther@suse.de>
7713 PR translation/79208
7714 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
7716 2017-01-24 Martin Jambor <mjambor@suse.cz>
7719 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
7720 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
7723 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
7726 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
7727 casts from signed to unsigned really don't have a range.
7729 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
7731 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
7732 GMP_RNDx for compatiblity.
7734 2017-01-24 Martin Liska <mliska@suse.cz>
7737 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
7738 that would prevent us to call alloca with -1 as argument.
7740 2017-01-24 Jakub Jelinek <jakub@redhat.com>
7742 * dwarf2out.c (output_compilation_unit_header, output_file_names):
7743 Avoid -Wformat-security warning.
7745 2017-01-23 Andrew Pinski <apinski@cavium.com>
7747 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
7750 2017-01-23 Martin Sebor <msebor@redhat.com>
7753 * gimple-ssa-sprintf.c (warn_level): New global.
7754 (format_integer): Use it here and throughout the rest of the file.
7755 Use the same switch to compute sign as base.
7756 (maybe_warn): New function.
7757 (format_directive): Factor out warnings into maybe_warn.
7758 Add debugging output. Use warn_level.
7759 (add_bytes): Use warn_level.
7760 (pass_sprintf_length::compute_format_length): Add debugging output.
7761 (try_substitute_return_value): Same.
7762 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
7765 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
7766 (struct fmtresult, format_integer, format_floating): Adjust.
7767 (fmtresult::fmtresult): Set max correctly in two argument ctor.
7768 (get_string_length, format_string,format_directive): Same.
7769 (pass_sprintf_length::compute_format_length): Same.
7770 (try_substitute_return_value): Simplify slightly.
7773 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
7774 (fmtresult::operator+=): Outlined.
7775 (struct fmtresult): Add ctors.
7776 (struct conversion_spec): Rename...
7777 (struct directive): ...to this. Add and remove data members.
7778 (directive::set_width, directive::set_precision): New functions.
7779 (format_percent): Use fmtresult ctor.
7780 (get_width_and_precision): Remove.
7781 (format_integer): Make naming changes. Avoid computing width and
7783 (format_floating): Same. Adjust indentation.
7784 (format_character, format_none): New functions.
7785 (format_string): Moved character handling to format_character.
7786 (format_directive): Remove arguments, change return type.
7787 (parse_directive): New function.
7788 (pass_sprintf_length::compute_format_length): Move directive
7789 parsing to parse_directive.
7791 2017-01-23 Jakub Jelinek <jakub@redhat.com>
7793 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
7794 (assign_assembler_name_if_needed): ... this.
7795 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
7796 (assign_assembler_name_if_needed): ... this.
7797 (free_lang_data_in_cgraph): Adjust callers.
7798 * cgraphunit.c (cgraph_node::analyze): Likewise.
7799 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
7802 2017-01-23 Richard Biener <rguenther@suse.de>
7804 PR tree-optimization/79088
7805 PR tree-optimization/79188
7806 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
7807 resetting loop bounds after last path deletion. Reset loop
7808 bounds of the target loop, make code match the comments.
7809 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
7810 Make sure loops need no fixups.
7812 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
7814 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
7815 exponent support with double type for first argument.
7816 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
7817 type returned by __builtin_vec_extract_sig,
7818 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
7819 functions from "vector int" to "vector unsigned int" or from
7820 "vector long long int" to "vector unsigned long long int".
7821 Changed type returned by __builtin_vec_extract_exp,
7822 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
7823 functions from "vector int" to "vector unsigned int" or from
7824 "vector long long int" to "vector unsigned long long int".
7825 Changed return type of __builtin_vec_test_data_class,
7826 __builtin_vec_test_data_class_sp, and
7827 __builtin_vec_test_data_class_dp from "vector int" to
7828 "vector bool int" or from "vector long long int" to "vector bool
7829 long long int" and changed second argument type from "unsigned
7830 int" to "int". Added new overloaded function forms "vector float
7831 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
7832 "vector float __builtin_vec_insert_exp_sp (vector float, vector
7833 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
7834 double, vector unsigned long long int)" and "vector double
7835 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
7836 long int)". Changed return type of
7837 __builtin_scalar_test_data_class and
7838 __builtin_scalar_test_data_class_sp and
7839 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
7840 int" and changed second argument from "unsigned int" to "int".
7841 Changed type returned by __builtin_scalar_test_neg,
7842 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
7843 from "int" to "bool int". Added new overloaded function form
7844 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
7845 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
7846 exponent double-precision with floating point first argument.
7847 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
7848 documentation of scalar_test_data_class, scalar_test_neg,
7849 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
7850 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
7851 vec_test_data_class built-in functions to reflect refinements in
7852 their type signatures.
7854 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
7856 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
7858 (aarch64_elf_asm_destructor): Likewise.
7860 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
7862 PR rtl-optimization/78634
7863 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
7864 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
7865 * ifcvt.c (noce_try_cmove): Add missing cost check.
7867 PR rtl-optimization/71724
7868 * combine.c (if_then_else_cond): Look for situations where it is
7869 beneficial to undo the work of one of the recursive calls.
7871 2017-01-23 Bin Cheng <bin.cheng@arm.com>
7873 PR tree-optimization/70754
7874 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
7875 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
7876 combined stmt before it if not NULL.
7877 (combine_chains): Process refs reversely and compute dominance point
7880 2017-01-23 Martin Liska <mliska@suse.cz>
7882 PR tree-optimization/79196
7883 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
7884 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
7886 (strlen_optimize_stmt): Call the renamed function.
7888 2017-01-23 Michael Matz <matz@suse.de>
7890 PR tree-optimization/78384
7891 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
7893 2017-01-23 Richard Biener <rguenther@suse.de>
7895 PR tree-optimization/79186
7896 * tree-vrp.c (register_new_assert_for): Make sure we've seen
7897 both incoming edges before moving an assert.
7899 2017-01-23 Martin Jambor <mjambor@suse.cz>
7901 * ipa-prop.c (load_from_param_1): Removed.
7902 (load_from_unmodified_param): Bits from load_from_param_1 put back
7904 (load_from_param): Removed.
7905 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
7906 with stmt. Reverted back to use of load_from_unmodified_param.
7908 2017-01-23 Martin Jambor <mjambor@suse.cz>
7911 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
7912 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
7913 field a pointer to garbage collected vector, mark lattices and
7914 ipcp_orig_node with GTY((skip)).
7915 (ipa_get_param_count): Adjust to descriptors being a pointer.
7916 (ipa_get_param): Likewise.
7917 (ipa_get_type): Likewise.
7918 (ipa_get_param_move_cost): Likewise.
7919 (ipa_set_param_used): Likewise.
7920 (ipa_get_controlled_uses): Likewise.
7921 (ipa_set_controlled_uses): Likewise.
7922 (ipa_is_param_used): Likewise.
7923 (ipa_node_params_t): Move into garbage collector. New methods insert
7925 (ipa_node_params_sum): Annotate wth GTY(()).
7926 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
7928 (ipa_load_from_parm_agg): Adjust declaration.
7929 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
7930 * ipa-profile.c (ipa_profile): Likewise.
7931 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
7932 (ipa_populate_param_decls): Make descriptors parameter garbage
7934 (ipa_dump_param): Adjust to descriptors being a pointer.
7935 (ipa_alloc_node_params): Likewise.
7936 (ipa_initialize_node_params): Likewise.
7937 (load_from_param_1): Make descriptors parameter garbage collected.
7938 (load_from_unmodified_param): Likewise.
7939 (load_from_param): Likewise.
7940 (ipa_load_from_parm_agg): Likewise.
7941 (ipa_node_params::~ipa_node_params): Removed.
7942 (ipa_free_all_node_params): Remove call to delete operator.
7943 (ipa_node_params_t::insert): New.
7944 (ipa_node_params_t::remove): Likewise.
7945 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
7946 copy known_csts and known_contexts vectors.
7947 (ipa_read_node_info): Adjust to descriptors being a pointer.
7948 (ipcp_modif_dom_walker): Make m_descriptors field garbage
7950 (ipcp_transform_function): Make descriptors variable garbage
7953 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
7955 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
7956 * config/i386/avx512dqintrin.h: Ditto.
7957 * config/i386/avx512fintrin.h: Ditto.
7958 * gcc/config/i386/i386.c: Handle new builtins.
7959 * config/i386/i386-builtin.def: Add new builtins.
7960 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
7961 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
7963 2017-01-23 Jakub Jelinek <jakub@redhat.com>
7964 Martin Liska <mliska@suse.cz>
7966 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
7967 * asan.c (asan_expand_poison_ifn): Support stores and use
7968 appropriate ASAN report function.
7969 * internal-fn.c (expand_ASAN_POISON_USE): New function.
7970 * internal-fn.def (ASAN_POISON_USE): Declare.
7971 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
7972 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
7973 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
7974 ASAN_POISON calls w/o LHS.
7975 * tree-ssa.c (execute_update_addresses_taken): Create clobber
7976 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
7977 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
7978 * gimplify.c (asan_poison_variables): Add attribute
7979 use_after_scope_memory to variables that really needs to live
7981 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
7982 having the attribute.
7984 2017-01-23 Martin Liska <mliska@suse.cz>
7986 * asan.c (create_asan_shadow_var): New function.
7987 (asan_expand_poison_ifn): Likewise.
7988 * asan.h (asan_expand_poison_ifn): New declaration.
7989 * internal-fn.c (expand_ASAN_POISON): Likewise.
7990 * internal-fn.def (ASAN_POISON): New builtin.
7991 * sanopt.c (pass_sanopt::execute): Expand
7992 asan_expand_poison_ifn.
7993 * tree-inline.c (copy_decl_for_dup_finish): Make function
7995 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
7996 * tree-ssa.c (is_asan_mark_p): New function.
7997 (execute_update_addresses_taken): Rewrite local variables
7998 (identified just by use-after-scope as addressable) into SSA.
8000 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
8002 * doc/install.texi (Specific): opensource.apple.com uses https
8003 now. Remove trailing slash.
8005 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
8007 * README.Portability: Remove note on an Irix compatibility issue.
8009 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
8011 * gcov.c (INCLUDE_ALGORITHM): Define.
8012 (INCLUDE_VECTOR): Define.
8013 No longer include <vector> and <algorithm> directly.
8015 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
8017 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
8019 * doc/invoke.texi (Code Gen Options): Ditto.
8021 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
8024 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
8026 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
8028 rtl-optimization/79125
8029 * cprop.c (local_cprop_pass): Handle cases where we make an
8032 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
8036 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
8037 read from, for big endian.
8039 2017-01-20 Jiong Wang <jiong.wang@arm.com>
8041 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
8042 register pauth builtins for LP64 only.
8044 2017-01-20 Marek Polacek <polacek@redhat.com>
8047 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
8050 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
8052 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
8054 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
8055 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
8056 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
8058 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8061 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
8062 in big-endian mode when they are not a single duplicated value.
8064 2017-01-20 Richard Biener <rguenther@suse.de>
8066 * BASE-VER: Bump to 7.0.1.
8068 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
8070 * omp-low.c (omplow_simd_context): New struct. Use it...
8071 (lower_rec_simd_input_clauses): ...here and...
8072 (lower_rec_input_clauses): ...here to hold common data. Adjust all
8073 references to idx, lane, max_vf, is_simt.
8075 2017-01-20 Graham Markall <graham.markall@embecosm.com>
8077 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
8080 2017-01-20 Martin Jambor <mjambor@suse.cz>
8082 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
8083 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
8085 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
8086 (GTFILES): Rename hsa.c to hsa-common.c.
8087 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
8088 * hsa-dump.c: Likewise.
8089 * hsa-gen.c: Likewise.
8090 * hsa-regalloc.c: Likewise.
8091 * ipa-hsa.c: Likewise.
8092 * omp-expand.c: Likewise.
8093 * omp-low.c: Likewise.
8094 * toplev.c: Likewise.
8096 2017-01-20 Marek Polacek <polacek@redhat.com>
8099 * doc/invoke.texi: Document -Wduplicated-branches.
8100 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
8101 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
8102 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
8103 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
8104 return 0 only when not OEP_LEXICOGRAPHIC.
8105 (fold_build_cleanup_point_expr): Use the expression
8106 location when building CLEANUP_POINT_EXPR.
8107 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
8108 * tree.c (add_expr): Handle error_mark_node.
8110 2017-01-20 Martin Liska <mliska@suse.cz>
8113 * tree-profile.c (init_ic_make_global_vars): Do not call
8115 (gimple_init_gcov_profiler): Likewise.
8117 2017-01-20 Martin Liska <mliska@suse.cz>
8120 * cgraph.h (maybe_create_reference): Remove argument and
8122 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
8124 * ipa-cp.c (create_specialized_node): Likewise.
8125 * symtab.c (symtab_node::maybe_create_reference): Handle
8126 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
8128 2017-01-20 Martin Liska <mliska@suse.cz>
8130 * read-rtl-function.c (function_reader::create_function): Use
8131 build_decl instread of build_decl_stat.
8133 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
8135 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
8136 * config/i386/avx512dqintrin.h: Ditto.
8137 * config/i386/avx512fintrin.h: Ditto.
8138 * config/i386/i386-builtin-types.def: Add new types.
8139 * gcc/config/i386/i386.c: Handle new types.
8140 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
8141 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
8142 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
8143 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
8144 (__builtin_ia32_kshiftridi): New.
8145 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
8147 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
8151 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
8152 define to rs6000_init_stack_protect_guard.
8153 (rs6000_init_stack_protect_guard): New function.
8155 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
8156 Yunqiang Su <yunqiang.su@imgtec.com>
8158 * config.gcc (supported_defaults): Add madd4.
8159 (with_madd4): Add validation.
8160 (all_defaults): Add madd4.
8161 * config/mips/mips.opt (mmadd4): New option.
8162 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
8164 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
8166 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
8167 (ISA_HAS_FUSED_MADD4): Likewise.
8168 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
8169 * gcc/doc/install.texi (--with-madd4): Document the new option.
8171 2017-01-19 Jiong Wang <jiong.wang@arm.com>
8173 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
8174 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
8175 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
8176 (aarch64_init_pauth_hint_builtins): New.
8177 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
8178 (aarch64_expand_builtin): Expand new builtins.
8180 2017-01-19 Jiong Wang <jiong.wang@arm.com>
8182 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
8183 * combine-stack-adj.c (no_unhandled_cfa): Handle
8184 REG_CFA_TOGGLE_RA_MANGLE.
8185 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
8186 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
8187 info for return address signing.
8188 (aarch64_expand_epilogue): Likewise.
8190 2017-01-19 Jiong Wang <jiong.wang@arm.com>
8192 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
8193 * config/aarch64/aarch64-protos.h
8194 (aarch64_return_address_signing_enabled): New declaration.
8195 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
8197 (aarch64_expand_prologue): Sign return address before it's pushed onto
8199 (aarch64_expand_epilogue): Authenticate return address fetched from
8201 (aarch64_override_options): Sanity check for ILP32 and ISA level.
8202 (aarch64_attributes): New function attributes for "sign-return-address".
8203 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
8204 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
8205 ("*do_return"): Generate combined instructions according to key index.
8206 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
8207 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
8209 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
8210 * config/aarch64/aarch64.opt (msign-return-address=): New.
8211 * doc/extend.texi (AArch64 Function Attributes): Documents
8212 "sign-return-address=".
8213 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
8215 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
8217 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
8218 overall option summary.
8220 2017-01-19 Jiong Wang <jiong.wang@arm.com>
8222 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
8223 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
8224 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
8225 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
8227 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
8229 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
8230 -mpower9-minmax by default for -mcpu=power9.
8231 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
8232 128-bit floating point.
8234 2017-01-20 Alan Modra <amodra@gmail.com>
8236 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
8237 optimizing for size.
8239 2017-01-20 Alan Modra <amodra@gmail.com>
8242 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
8243 for strcmp and strncmp from corresponding builtin decl.
8245 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
8247 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
8248 instead of i386/rtems-64.h.
8249 * config/i386/rtems-64.h: Remove.
8251 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
8255 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
8257 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
8259 2017-01-19 Tamar Christina <tamar.christina@arm.com>
8261 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
8262 Change int to HOST_WIDE_INT.
8263 * config/aarch64/aarch64-protos.h
8264 (aarch64_simd_gen_const_vector_dup): Likewise.
8265 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
8267 2017-01-19 David Malcolm <dmalcolm@redhat.com>
8269 * langhooks-def.h (lhd_type_for_size): New decl.
8270 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
8271 * langhooks.c (lhd_type_for_size): New function, taken from
8274 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
8276 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
8277 define_bypass for CR latency.
8278 (power9-cracked-alu): Update bypass latency and remove power9-branch.
8279 (power9-alu2): Add define_bypass for CR latency.
8281 (power9-mul): Update insn latency.
8282 (power9-mul-compare): Update insn latency, bypass latency and remove
8285 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8287 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
8289 * config/aarch64/aarch64.md
8290 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
8291 aarch64_nopcrelative_literal_loads.
8292 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
8294 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
8296 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
8298 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
8300 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
8303 * config.gcc (supported_defaults): Add lxc1-sxc1.
8304 (with_lxc1_sxc1): Add validation.
8305 (all_defaults): Add lxc1-sxc1.
8306 * config/mips/mips.opt (mlxc1-sxc1): New option.
8307 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
8309 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
8310 __mips_no_lxc1_sxc1.
8311 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
8312 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
8313 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
8315 2017-01-19 Richard Biener <rguenther@suse.de>
8317 PR tree-optimization/72488
8318 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
8319 sure to restore SSA info.
8320 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
8322 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
8324 PR rtl-optimization/79121
8325 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
8326 of the inner type when shifting an extended value.
8328 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
8331 * symtab.c (symtab_node::equal_address_to): Fix comparing of
8332 interposable aliases.
8334 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
8337 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
8338 Use the evmergelohi instruction.
8339 (mov_si<mode>_e500_subreg4_2_le): Likewise.
8340 (mov_sitf_e500_subreg8_2_be): Likewise.
8341 (mov_sitf_e500_subreg12_2_le): Likewise.
8342 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
8343 (mov_si<mode>_e500_subreg4_2_be): Likewise.
8344 (mov_sitf_e500_subreg8_2_le): Likewise.
8345 (mov_sitf_e500_subreg12_2_be): Likewise.
8347 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8349 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
8350 attribute from vecsimple to vecperm.
8351 (altivec_vbpermq2): Likewise.
8353 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8356 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
8358 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8359 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
8360 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
8361 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
8362 case where N arg is SIZE_MAX.
8363 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
8364 (cmpstrsi): Add pattern.
8366 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8368 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8369 __builtin_vec_revb builtins.
8370 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
8371 built-in functions to support generation of the ISA 3.0 XXBR<x>
8372 vector byte reverse instructions.
8373 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
8374 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
8375 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
8376 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
8377 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
8378 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
8379 (P9V_BUILTIN_VEC_REVB): Likewise.
8380 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
8381 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
8382 (p9_xxbrq_v16qi): Likewise.
8383 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
8384 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
8385 (p9_xxbrh_v8hi): Likewise.
8386 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
8387 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
8388 vec_revb built-in functions.
8390 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
8392 PR rtl-optimization/78952
8393 * config/i386/i386.md (any_extract): New code iterator.
8394 (*insvqi_2): Use any_extract for source operand.
8395 (*insvqi_3): Use any_shiftrt for source operand.
8397 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
8399 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
8401 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
8403 2017-01-18 Matthias Klose <doko@ubuntu.com>
8405 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
8407 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8409 * config/rs6000/altivec.h (vec_bperm): Change #define.
8410 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
8411 (altivec_vbpermq2): New define_insn.
8412 (altivec_vbpermd): Likewise.
8413 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
8415 (VBPERMD): Likewise.
8416 (VBPERM): New polymorphic function interface.
8417 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
8418 Add entries for P9V_BUILTIN_VEC_VBPERM.
8419 * doc/extend.texi: Add interfaces for vec_bperm.
8421 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8423 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
8424 first letter of error messages.
8425 (s390_resolve_overloaded_builtin): Likewise.
8426 * config/s390/s390.c (s390_expand_builtin): Likewise.
8427 (s390_invalid_arg_for_unprototyped_fn): Likewise.
8428 (s390_valid_target_attribute_inner_p): Likewise.
8429 * config/s390/s390.md ("tabort"): Likewise.
8431 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
8433 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
8434 (ISA_AVOID_DIV_HILO): New macro.
8435 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
8436 (ISA_HAS_DDIV): Likewise.
8438 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
8440 * doc/invoke.texi (fabi-version): Correct number of occurrences.
8442 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
8444 * doc/invoke.texi (fabi-version): Spelling fix.
8446 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
8449 * doc/invoke.texi (fabi-version): Mention mangling fix for
8452 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
8455 * doc/invoke.texi (fabi-version): Document discriminator mangling.
8457 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
8460 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
8461 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
8463 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
8465 (stack_protect_test): Ditto.
8466 * config/rs6000/rs6000.opt (mstack-protector-guard=,
8467 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
8469 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
8470 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
8471 -mstack-protector-guard-offset=.
8472 (RS/6000 and PowerPC Options): Ditto.
8474 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
8476 * config/i386/i386.h (MASK_CLASS_P): New define.
8477 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
8478 there are no registers from different register sets also when
8479 mask registers are used. Update function comment.
8480 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
8481 to (*k/*r) and (*k/*km) alternatives.
8483 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
8485 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
8486 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
8487 (EH_RETURN_HANDLER_RTX): New define.
8488 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
8489 Force frame pointer in EH return functions.
8490 (aarch64_expand_epilogue): Add barrier for eh_return.
8491 (aarch64_final_eh_return_addr): Remove.
8492 (aarch64_eh_return_handler_rtx): New function.
8493 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
8495 (aarch64_eh_return_handler_rtx): New prototype.
8497 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8499 * config/rs6000/altivec.h (vec_rlmi): New #define.
8500 (vec_vrlnm): Likewise.
8501 (vec_rlnm): Likewise.
8502 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
8503 (UNSPEC_VRLNM): Likewise.
8504 (VIlong): New mode iterator.
8505 (altivec_vrl<VI_char>mi): New define_insn.
8506 (altivec_vrl<VI_char>nm): Likewise.
8507 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
8510 (RLNM): New polymorphic function entry.
8511 (VRLWMI): New monomorphic function entry.
8513 (RLMI): New polymorphic function entry.
8514 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
8515 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
8516 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
8519 2017-01-17 Jakub Jelinek <jakub@redhat.com>
8522 * dwarf2out.c (field_byte_offset): Restore the
8523 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
8524 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
8525 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
8528 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
8531 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
8533 2017-01-17 Jakub Jelinek <jakub@redhat.com>
8536 * dwarf2out.c (add_data_member_location_attribute): For constant
8537 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
8538 instead of DW_AT_data_member_location, DW_AT_bit_offset and
8539 DW_AT_byte_size attributes.
8541 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
8543 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
8544 after forcing to constant memory when the code model is medium.
8546 2017-01-17 Julia Koval <julia.koval@intel.com>
8549 * config/i386/avx512fintrin.h
8550 (_mm512_i32gather_ps): Change __addr type to void const*.
8551 (_mm512_mask_i32gather_ps): Ditto.
8552 (_mm512_i32gather_pd): Ditto.
8553 (_mm512_mask_i32gather_pd): Ditto.
8554 (_mm512_i64gather_ps): Ditto.
8555 (_mm512_mask_i64gather_ps): Ditto.
8556 (_mm512_i64gather_pd): Ditto.
8557 (_mm512_mask_i64gather_pd): Ditto.
8558 (_mm512_i32gather_epi32): Ditto.
8559 (_mm512_mask_i32gather_epi32): Ditto.
8560 (_mm512_i32gather_epi64): Ditto.
8561 (_mm512_mask_i32gather_epi64): Ditto.
8562 (_mm512_i64gather_epi32): Ditto.
8563 (_mm512_mask_i64gather_epi32): Ditto.
8564 (_mm512_i64gather_epi64): Ditto.
8565 (_mm512_mask_i64gather_epi64): Ditto.
8566 (_mm512_i32scatter_ps): Change __addr type to void*.
8567 (_mm512_mask_i32scatter_ps): Ditto.
8568 (_mm512_i32scatter_pd): Ditto.
8569 (_mm512_mask_i32scatter_pd): Ditto.
8570 (_mm512_i64scatter_ps): Ditto.
8571 (_mm512_mask_i64scatter_ps): Ditto.
8572 (_mm512_i64scatter_pd): Ditto.
8573 (_mm512_mask_i64scatter_pd): Ditto.
8574 (_mm512_i32scatter_epi32): Ditto.
8575 (_mm512_mask_i32scatter_epi32): Ditto.
8576 (_mm512_i32scatter_epi64): Ditto.
8577 (_mm512_mask_i32scatter_epi64): Ditto.
8578 (_mm512_i64scatter_epi32): Ditto.
8579 (_mm512_mask_i64scatter_epi32): Ditto.
8580 (_mm512_i64scatter_epi64): Ditto.
8581 (_mm512_mask_i64scatter_epi64): Ditto.
8582 * config/i386/avx512pfintrin.h
8583 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
8584 (_mm512_mask_prefetch_i32gather_ps): Ditto.
8585 (_mm512_mask_prefetch_i64gather_pd): Ditto.
8586 (_mm512_mask_prefetch_i64gather_ps): Ditto.
8587 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
8588 (_mm512_prefetch_i32scatter_ps): Ditto.
8589 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
8590 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
8591 (_mm512_prefetch_i64scatter_pd): Ditto.
8592 (_mm512_prefetch_i64scatter_ps): Ditto.
8593 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
8594 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
8595 * config/i386/avx512vlintrin.h
8596 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
8597 (_mm_mmask_i32gather_ps): Ditto.
8598 (_mm256_mmask_i32gather_pd): Ditto.
8599 (_mm_mmask_i32gather_pd): Ditto.
8600 (_mm256_mmask_i64gather_ps): Ditto.
8601 (_mm_mmask_i64gather_ps): Ditto.
8602 (_mm256_mmask_i64gather_pd): Ditto.
8603 (_mm_mmask_i64gather_pd): Ditto.
8604 (_mm256_mmask_i32gather_epi32): Ditto.
8605 (_mm_mmask_i32gather_epi32): Ditto.
8606 (_mm256_mmask_i32gather_epi64): Ditto.
8607 (_mm_mmask_i32gather_epi64): Ditto.
8608 (_mm256_mmask_i64gather_epi32): Ditto.
8609 (_mm_mmask_i64gather_epi32): Ditto.
8610 (_mm256_mmask_i64gather_epi64): Ditto.
8611 (_mm_mmask_i64gather_epi64): Ditto.
8612 (_mm256_i32scatter_ps): Change __addr type to void*.
8613 (_mm256_mask_i32scatter_ps): Ditto.
8614 (_mm_i32scatter_ps): Ditto.
8615 (_mm_mask_i32scatter_ps): Ditto.
8616 (_mm256_i32scatter_pd): Ditto.
8617 (_mm256_mask_i32scatter_pd): Ditto.
8618 (_mm_i32scatter_pd): Ditto.
8619 (_mm_mask_i32scatter_pd): Ditto.
8620 (_mm256_i64scatter_ps): Ditto.
8621 (_mm256_mask_i64scatter_ps): Ditto.
8622 (_mm_i64scatter_ps): Ditto.
8623 (_mm_mask_i64scatter_ps): Ditto.
8624 (_mm256_i64scatter_pd): Ditto.
8625 (_mm256_mask_i64scatter_pd): Ditto.
8626 (_mm_i64scatter_pd): Ditto.
8627 (_mm_mask_i64scatter_pd): Ditto.
8628 (_mm256_i32scatter_epi32): Ditto.
8629 (_mm256_mask_i32scatter_epi32): Ditto.
8630 (_mm_i32scatter_epi32): Ditto.
8631 (_mm_mask_i32scatter_epi32): Ditto.
8632 (_mm256_i32scatter_epi64): Ditto.
8633 (_mm256_mask_i32scatter_epi64): Ditto.
8634 (_mm_i32scatter_epi64): Ditto.
8635 (_mm_mask_i32scatter_epi64): Ditto.
8636 (_mm256_i64scatter_epi32): Ditto.
8637 (_mm256_mask_i64scatter_epi32): Ditto.
8638 (_mm_i64scatter_epi32): Ditto.
8639 (_mm_mask_i64scatter_epi32): Ditto.
8640 (_mm256_i64scatter_epi64): Ditto.
8641 (_mm256_mask_i64scatter_epi64): Ditto.
8642 (_mm_i64scatter_epi64): Ditto.
8643 (_mm_mask_i64scatter_epi64): Ditto.
8644 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
8645 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
8646 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
8647 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
8648 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
8649 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
8650 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
8651 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
8652 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
8653 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
8654 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
8655 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
8656 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
8657 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
8658 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
8659 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
8660 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
8661 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
8662 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
8663 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
8664 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
8665 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
8666 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
8667 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
8668 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
8669 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
8670 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
8671 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
8672 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
8673 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
8674 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
8675 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
8676 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
8677 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
8678 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
8679 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
8680 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
8681 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
8682 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
8683 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
8684 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
8685 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
8686 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
8687 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
8688 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
8689 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
8690 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
8691 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
8692 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
8693 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
8694 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
8695 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
8696 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
8697 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
8698 definitions accordingly.
8700 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
8701 Kuan-Lin Chen <kuanlinchentw@gmail.com>
8704 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
8707 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
8710 * ira-conflicts.c (ira_build_conflicts): Update total conflict
8711 hard regs for inner regno.
8713 2017-01-17 Martin Liska <mliska@suse.cz>
8716 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
8717 assumption and add comment.
8719 2017-01-17 Nathan Sidwell <nathan@acm.org>
8721 * ipa-visibility.c (localize_node): New function, broken out of ...
8722 (function_and_variable_visibility): ... here. Call it.
8724 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
8727 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
8728 correctly set frequency of oudgoing edge.
8729 (duplicate_thread_path): Fix profile updating.
8731 2017-01-17 Jakub Jelinek <jakub@redhat.com>
8734 * configure.ac: Add GCC_BASE_VER.
8735 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
8736 version from BASE-VER file.
8737 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
8738 (gcc.o): Depend on $(BASEVER).
8739 * common.opt (dumpfullversion): New option.
8740 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
8741 * doc/invoke.texi: Document -dumpfullversion.
8742 * doc/install.texi: Document --with-gcc-major-version-only.
8743 * configure: Regenerated.
8745 2017-01-17 Richard Biener <rguenther@suse.de>
8747 PR tree-optimization/71433
8748 * tree-vrp.c (register_new_assert_for): Merge same asserts
8749 on all incoming edges.
8750 (process_assert_insertions_for): Handle insertions at the
8753 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
8755 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
8756 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
8758 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
8761 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
8764 2017-01-17 Alan Modra <amodra@gmail.com>
8767 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
8768 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
8769 symbolic stack limit when pic.
8771 2017-01-16 Martin Sebor <msebor@redhat.com>
8773 PR tree-optimization/78608
8774 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
8776 2017-01-16 Jeff Law <law@redhat.com>
8779 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
8780 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
8781 for several include directories that may be relative to sysroot.
8782 * config/i386/x-mingw32 (gplus_includedir): Define.
8783 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
8784 (native_system_includedir): Likewise.
8785 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
8786 override if TARGET_SYSTEM_ROOT is defined.
8787 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
8789 PR tree-optimization/79090
8790 PR tree-optimization/33562
8791 PR tree-optimization/61912
8792 PR tree-optimization/77485
8793 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
8794 and computed trims into the dump file.
8796 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
8798 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
8800 2017-01-16 Jakub Jelinek <jakub@redhat.com>
8803 * gimplify.c (gimplify_init_constructor): If want_value and
8804 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
8808 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
8809 sequence. Formatting fixes.
8810 (doloop_optimize): Formatting fixes.
8813 * gcc.c (debug_level_greater_than_spec_func): New function.
8814 (static_spec_functions): Add debug-level-gt spec function.
8815 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
8817 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
8818 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
8819 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
8820 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
8821 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
8822 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
8824 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
8826 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
8827 QImode fixups to general and mask registers only.
8829 2017-01-16 Carl Love <cel@us.ibm.com>
8831 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
8832 for built-in functions
8833 vector signed char vec_nabs (vector signed char)
8834 vector signed short vec_nabs (vector signed short)
8835 vector signed int vec_nabs (vector signed int)
8836 vector signed long long vec_nabs (vector signed long long)
8837 vector float vec_nabs (vector float)
8838 vector double vec_nabs (vector double)
8839 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
8841 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
8842 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
8843 * doc/extend.texi: Update the documentation file for the new built-in
8846 2017-01-16 Martin Sebor <msebor@redhat.com>
8848 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
8851 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8853 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
8854 UNSPEC_VSX__XXSPLTD to require special splat handling.
8856 2017-01-16 David Malcolm <dmalcolm@redhat.com>
8859 * system.h: Poison strndup.
8861 2017-01-16 Alan Modra <amodra@gmail.com>
8864 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
8867 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
8869 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
8871 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
8873 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
8874 call recog here. Assert that INSN_CODE (insn) is non-negative.
8876 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
8879 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
8881 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
8882 in the currently scheduled RTL fragment.
8884 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
8886 PR rtl-optimization/78751
8887 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
8890 2017-01-14 Jeff Law <law@redhat.com>
8892 PR tree-optimization/79090
8893 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
8894 variable length stores.
8895 (compute_trims): Delete dead assignment to *trim_tail.
8896 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
8899 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
8901 PR rtl-optimization/78626
8902 PR rtl-optimization/78727
8903 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
8904 of a block, and split such blocks after everything else is finished.
8906 2017-01-14 Alan Modra <amodra@gmail.com>
8909 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
8910 target legitimate_combined_insn.
8911 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
8912 (rs6000_legitimate_combined_insn): New function.
8913 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
8915 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
8916 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
8917 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
8919 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
8921 * doc/frontends.texi (G++ and GCC): Remove references to Java.
8923 2017-01-13 Jeff Law <law@redhat.com>
8925 PR tree-optimization/33562
8926 PR tree-optimization/61912
8927 PR tree-optimization/77485
8928 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
8930 (delete_dead_assignment): Likewise.
8931 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
8932 statement to delete_dead_call and delete_dead_assignment.
8934 2017-01-13 David Malcolm <dmalcolm@redhat.com>
8937 * substring-locations.c (format_warning_va): Strengthen case 1 so
8938 that both endpoints of the substring must be within the format
8939 range for just the substring to be printed.
8941 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
8943 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
8944 * config/i386/i386.c (ix86_target_string): Add missing options
8945 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
8946 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
8947 flags_other and ix86_target_other to flags2_other. Display unknown
8949 (ix86_valid_target_attribute_inner_p): Add missing options and
8950 reorder options by implied ISAs, as in ix86_target_string.
8952 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
8954 * hash-table.h (hash_table::too_empty_p): New function.
8955 (hash_table::expand): Use it.
8956 (hash_table::traverse): Likewise.
8957 (hash_table::empty_slot): Use sizeof (value_type) instead of
8958 sizeof (PTR) to convert bytes to elements. Shrink the table
8959 if the current size is excessive for the current number of
8962 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
8964 * ira-costs.c (record_reg_classes): Break from the inner loop
8965 early once alt_fail is known to be true. Update outer loop
8966 handling accordingly.
8968 2017-01-13 Jeff Law <law@redhat.com>
8970 * tree-ssa-dse.c (decrement_count): New function.
8971 (increment_start_addr, maybe_trim_memstar_call): Likewise.
8972 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
8973 when we know the partially dead statement is a mem* function.
8975 PR tree-optimization/61912
8976 PR tree-optimization/77485
8977 * tree-ssa-dse.c: Include expr.h.
8978 (maybe_trim_constructor_store): New function.
8979 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
8981 PR tree-optimization/33562
8982 PR tree-optimization/61912
8983 PR tree-optimization/77485
8984 * doc/invoke.texi: Document new dse-max-object-size param.
8985 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
8986 * tree-ssa-dse.c: Include params.h.
8987 (dse_store_status): New enum.
8988 (initialize_ao_ref_for_dse): New, partially extracted from
8990 (valid_ao_ref_for_dse, normalize_ref): New.
8991 (setup_live_bytes_from_ref, compute_trims): Likewise.
8992 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
8993 (maybe_trim_partially_dead_store): Likewise.
8994 (maybe_trim_complex_store): Likewise.
8995 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
8996 Track what bytes live from the original store. Return tri-state
8997 for dead, partially dead or live.
8998 (dse_dom_walker): Add constructor, destructor and new private members.
8999 (delete_dead_call, delete_dead_assignment): New extracted from
9001 (dse_optimize_stmt): Make a member of dse_dom_walker.
9002 Use initialize_ao_ref_for_dse.
9004 PR tree-optimization/33562
9005 PR tree-optimization/61912
9006 PR tree-optimization/77485
9007 * sbitmap.h (bitmap_count_bits): Prototype.
9008 (bitmap_clear_range, bitmap_set_range): Likewise.
9009 * sbitmap.c (bitmap_clear_range): New function.
9010 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
9012 2017-01-13 Martin Liska <mliska@suse.cz>
9015 * function.c (set_cfun): Add new argument force.
9016 * function.h (set_cfun): Likewise.
9017 * ipa-inline-transform.c (inline_call): Use the function when
9018 strict alising from is dropped for function we inline to.
9020 2017-01-13 Richard Biener <rguenther@suse.de>
9022 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
9023 for dumping GIMPLE INTEGER_CSTs.
9025 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9027 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
9028 to 201112L since C++17.
9030 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
9033 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
9034 if -fsanitize=kernel-address is present.
9036 2017-01-13 Richard Biener <rguenther@suse.de>
9038 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
9039 as _Literal ( type ) number in case usual suffixes do not
9040 preserve all information.
9042 2017-01-13 Richard Biener <rguenther@suse.de>
9044 PR tree-optimization/77283
9045 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
9046 and ssa-iterators.h.
9047 (is_feasible_trace): Implement a cost model based on joiner
9050 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9053 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
9054 char or short to __float128/_Float128 directly.
9056 2017-01-12 Martin Sebor <msebor@redhat.com>
9058 to -Wformat-overflow.
9059 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
9060 (min_bytes_remaining): Same.
9061 (get_string_length): Same.
9062 (format_string): Same.
9063 (format_directive): Same.
9065 (pass_sprintf_length::handle_gimple_call): Same.
9067 2017-01-12 Jakub Jelinek <jakub@redhat.com>
9069 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
9070 info.nowrite calls with no lhs that can't throw. Return bool
9071 whether gsi_remove has been called or not.
9072 (pass_sprintf_length::handle_gimple_call): Return bool whether
9073 try_substitute_return_value called gsi_remove. Formatting fix.
9074 (pass_sprintf_length::execute): Don't use gsi_remove if
9075 handle_gimple_call returned true.
9078 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
9079 be removed due to side-effects, don't remove following barrier nor
9080 turn the successor edge into fallthru edge.
9082 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9085 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
9086 element-reversing loads and stores as not swappable.
9088 2017-01-12 Nathan Sidwell <nathan@acm.org>
9089 Nicolai Stange <nicstange@gmail.com>
9091 * combine.c (try_combine): Don't ignore result of overlap checking
9092 loop. Combine overlap & asm check into single loop.
9094 2017-01-12 Richard Biener <rguenther@suse.de>
9096 * tree-pretty-print.c (dump_generic_node): Provide -gimple
9097 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
9099 2017-01-12 Richard Biener <rguenther@suse.de>
9101 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
9102 and TS_TARGET_OPTION directly derive from TS_BASE.
9103 * tree-core.h (tree_optimization_option): Derive from tree_base.
9104 (tree_target_option): Likewise.
9106 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
9108 * config/i386/i386.c (memory_address_length): Increase len
9109 only when rip_relative_addr_p returns false.
9111 2017-01-11 Julia Koval <julia.koval@intel.com>
9113 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
9114 (OPTION_MASK_ISA_SGX_SET): New.
9115 (ix86_handle_option): Handle OPT_msgx.
9116 * config.gcc: Added sgxintrin.h.
9117 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
9118 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
9119 * config/i386/i386.c (ix86_target_string): Add -msgx.
9121 (ix86_option_override_internal): Handle new options.
9122 (ix86_valid_target_attribute_inner_p): Add sgx.
9123 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
9124 * config/i386/i386.opt: Add msgx.
9125 * config/i386/sgxintrin.h: New file.
9126 * config/i386/x86intrin.h: Add sgxintrin.h.
9128 2017-01-11 Jakub Jelinek <jakub@redhat.com>
9131 * fold-const.c (maybe_nonzero_address): Return 1 for function
9133 (tree_single_nonzero_warnv_p): Don't handle function local objects
9137 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
9140 2017-01-11 David Malcolm <dmalcolm@redhat.com>
9143 * opts.c: Include "spellcheck.h"
9144 (struct string_fragment): New struct.
9145 (struct edit_distance_traits<const string_fragment &>): New
9147 (get_closest_sanitizer_option): New function.
9148 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
9150 2017-01-11 Jakub Jelinek <jakub@redhat.com>
9152 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
9154 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
9155 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
9156 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
9157 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
9158 for initial die_offset if dwarf_split_debug_info.
9159 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
9160 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
9162 (output_skeleton_debug_sections): Formatting fix. Use
9163 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
9164 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
9166 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
9168 * config/arm/cortex-a53.md: Add bypasses for
9170 (cortex_a53_r2f): Only use for transfers.
9171 (cortex_a53_f2r): Likewise.
9172 (cortex_a53_r2f_cvt): Add reservation for conversions.
9173 (cortex_a53_f2r_cvt): Likewise.
9175 2017-01-11 Tamar Christina <tamar.christina@arm.com>
9177 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
9178 to all inlined functions, change static to extern.
9180 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
9183 * config/arm/arm.c (legitimize_pic_address): Handle reference to
9185 (arm_assemble_integer): Likewise.
9187 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
9189 * config.gcc: Use new awk script to check CPU, FPU and architecture
9190 parameters for --with-... options.
9191 * config/arm/parsecpu.awk: New file
9192 * config/arm/arm-cpus.in: New file.
9193 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
9195 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
9197 * config/arm/t-arm: Update dependency rules.
9198 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
9199 of processing .def files.
9200 * config/arm/genopt.sh: Deleted.
9201 * config/arm/gentune.sh: Deleted.
9202 * config/arm/arm-cores.def: Deleted.
9203 * config/arm/arm-arches.def: Deleted.
9204 * config/arm/arm-fpus.def: Deleted.
9205 * config/arm/arm-tune.md: Regenerated.
9206 * config/arm/arm-tables.opt: Regenerated.
9207 * config/arm/arm-cpu.h: New generated file.
9208 * config/arm/arm-cpu-data.h: New generated file.
9209 * config/arm/arm-cpu-cdata.h: New generated file.
9211 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
9214 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
9216 (input_varpool_node): Unpack dynamically_initialized bit.
9218 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
9220 PR rtl-optimization/79032
9221 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
9222 the alignment of the adjusted memory reference against that of MODE,
9223 instead of the alignment of the original memory reference.
9225 2017-01-11 Martin Jambor <mjambor@suse.cz>
9227 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
9229 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
9230 decorated functions.
9232 2017-01-11 Richard Biener <rguenther@suse.de>
9234 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
9235 set range/nonnull info for PHI results. Do not set it on
9236 stmts marked for removal.
9238 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
9240 * expr.c (store_field): In the bitfield case, fetch the return value
9241 from the registers before applying a single big-endian adjustment.
9242 Always do a final load for a BLKmode value not larger than a word.
9244 2017-01-10 David Malcolm <dmalcolm@redhat.com>
9247 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
9248 that we correctly handle column numbers greater than
9249 LINE_MAP_MAX_COLUMN_NUMBER.
9251 2017-01-10 Martin Sebor <msebor@redhat.com>
9254 * gimple-ssa-sprintf.c (get_destination_size): Call
9255 {init,fini}object_sizes.
9256 * tree-object-size.c (addr_object_size): Adjust.
9257 (pass_through_call): Adjust.
9258 (pass_object_sizes::execute): Adjust.
9259 * tree-object-size.h (fini_object_sizes): Declare.
9261 2017-01-10 Martin Sebor <msebor@redhat.com>
9263 PR tree-optimization/78775
9264 * builtins.c (get_size_range): Move...
9265 * calls.c: ...to here.
9266 (alloc_max_size): Accept zero argument.
9267 (operand_signed_p): Remove.
9268 (maybe_warn_alloc_args_overflow): Call get_size_range.
9269 * calls.h (get_size_range): Declare.
9271 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
9273 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
9274 from TI's devices.csv file as of September 2016.
9275 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
9277 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
9279 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
9280 * doc/invoke.texi: Likewise.
9281 * doc/md.texi: Likewise.
9282 * doc/objc.texi: Likewise.
9284 2017-01-10 Joshua Conner <joshconner@google.com>
9286 * config/arm/fuchsia-elf.h: New file.
9287 * config/fuchsia.h: New file.
9288 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
9289 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
9291 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
9293 2016-01-10 Richard Biener <rguenther@suse.de>
9295 PR tree-optimization/79034
9296 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
9297 Propagate out degenerate PHIs in the joiner.
9299 2017-01-10 Martin Liska <mliska@suse.cz>
9301 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
9302 (sort_congruence_classes_by_decl_uid): Likewise.
9303 (sort_congruence_class_groups_by_decl_uid): Likewise.
9304 (sem_item_optimizer::merge_classes): Sort class, groups in these
9305 classes and members in the groups by DECL_UID of declarations.
9306 This would make merge operations stable.
9308 2017-01-10 Martin Liska <mliska@suse.cz>
9310 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
9311 usage of m_classes_vec.
9312 (sem_item_optimizer::~sem_item_optimizer): Likewise.
9313 (sem_item_optimizer::get_group_by_hash): Likewise.
9314 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
9315 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
9316 (sem_item_optimizer::verify_classes): Likewise.
9317 (sem_item_optimizer::process_cong_reduction): Likewise.
9318 (sem_item_optimizer::dump_cong_classes): Likewise.
9319 (sem_item_optimizer::merge_classes): Likewise.
9320 * ipa-icf.h (congruence_class_hash): Rename from
9321 congruence_class_group_hash. Remove declaration of m_classes_vec.
9323 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
9325 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
9326 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
9327 * config.gcc: Add avx512vpopcntdqintrin.h.
9328 * config/i386/avx512vpopcntdqintrin.h: New.
9329 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
9330 * config/i386/i386-builtin-types.def: Add new types.
9331 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
9332 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
9333 __builtin_ia32_vpopcountq_v8di_mask): New.
9334 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9335 __AVX512VPOPCNTDQ__.
9336 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
9337 (PTA_AVX512VPOPCNTDQ): Define.
9338 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
9339 TARGET_AVX512VPOPCNTDQ_P): Define.
9340 * config/i386/i386.opt: Add mavx512vpopcntdq.
9341 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
9342 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
9344 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
9347 * predict.def (PRED_CALL): Set to 67.
9349 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
9351 * expr.c (store_field): In the bitfield case, if the value comes from
9352 a function call and is of an aggregate type returned in registers, do
9353 not modify the field mode; extract the value in all cases if the mode
9354 is BLKmode and the size is not larger than a word.
9356 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
9359 * config/i386/cpuid.h: Fix undefined behavior.
9361 2017-01-04 Jeff Law <law@redhat.com>
9363 PR tree-optimization/79007
9364 PR tree-optimization/67955
9365 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
9366 conservative for pt.null when flag_non_call_exceptions is on.
9368 2017-01-09 Jakub Jelinek <jakub@redhat.com>
9370 PR translation/79019
9371 PR translation/79020
9372 * params.def (PARAM_INLINE_MIN_SPEEDUP,
9373 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
9374 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
9376 * config/avr/avr.opt (maccumulate-args): Likewise.
9377 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
9378 * common.opt (freport-bug): Likewise.
9379 * cif-code.def (CIF_FINAL_ERROR): Likewise.
9380 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
9381 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
9382 translatable string.
9383 * config/i386/i386.c (function_value_32): Likewise.
9384 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
9385 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
9387 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
9388 * common/config/msp430/msp430-common.c (msp430_handle_option):
9390 * symtab.c (symtab_node::verify_base): Likewise.
9391 * opts.c (set_debug_level): Likewise.
9392 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
9393 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
9394 missing whitespace to translatable strings.
9395 * config/avr/avr.md (bswapsi2): Fix typo in comment.
9396 * config/sh/superh.h: Likewise.
9397 * config/i386/xopintrin.h: Likewise.
9398 * config/i386/znver1.md: Likewise.
9399 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
9400 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
9401 * double-int.h (struct double_int): Likewise.
9402 * double-int.c (div_and_round_double): Likewise.
9403 * wide-int.cc: Likewise.
9404 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
9405 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
9406 * cfgcleanup.c (crossjumps_occured): Renamed to ...
9407 (crossjumps_occurred): ... this.
9408 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
9411 PR tree-optimization/78899
9412 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
9413 returning bool return struct loop *, NULL for failure and the new
9415 (versionable_outer_loop_p): Don't version outer loop if it has
9416 dont_vectorized bit set.
9417 (tree_if_conversion): When versioning outer loop, ensure
9418 tree_if_conversion is performed also on the inner loop of the
9419 non-vectorizable outer loop copy.
9420 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
9421 LOOP_VECTORIZED in inner loop of the scalar outer loop and
9422 prevent vectorization of it.
9423 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
9424 the outer loop vectorization of the non-scalar version is attempted
9425 before vectorization of the inner loop in scalar version. If
9426 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
9427 vectorization of its inner loop.
9428 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
9429 has 2 inner loops, rename also on edges from bb whose single pred
9430 is outer_loop->header. Fix typo in function comment.
9432 2017-01-09 Martin Sebor <msebor@redhat.com>
9435 * asan.c (asan_emit_stack_protection): Increase local buffer size
9436 to avoid snprintf truncation warning.
9438 2017-01-09 Andrew Pinski <apinski@cavium.com>
9440 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
9441 to reference thunderx2t99 for the tuning structure
9442 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
9444 (thunderx2t99_extra_costs): This.
9445 * config/aarch64/aarch64-tune.md: Regenerate.
9446 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
9447 (vulcan_addrcost_table): This.
9448 (vulcan_regmove_cost): Rename to ...
9449 (thunderx2t99_regmove_cost): This.
9450 (vulcan_vector_cost): Rename to ...
9451 (thunderx2t99_vector_cost): this.
9452 (vulcan_branch_cost): Rename to ...
9453 (thunderx2t99_branch_cost): This.
9454 (vulcan_tunings): Rename to ...
9455 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
9456 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
9458 2017-01-09 Martin Jambor <mjambor@suse.cz>
9462 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
9463 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
9464 (propagate_vr_accross_jump_function): Use the above function for all
9465 value range computations for pass-through jump functions and type
9466 converasion from explicit value range values.
9467 (ipcp_propagate_stage): Do not attempt to deduce types of formal
9468 parameters from TYPE_ARG_TYPES.
9469 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
9470 (ipa_write_node_info): Stream type of the actual argument.
9471 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
9473 2017-01-09 Martin Liska <mliska@suse.cz>
9476 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
9477 (lookup_compiler): Do not show error message with have_E.
9479 2017-01-09 Jakub Jelinek <jakub@redhat.com>
9481 PR tree-optimization/78938
9482 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
9483 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
9484 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
9485 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
9488 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9490 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
9493 2017-01-09 Richard Biener <rguenther@suse.de>
9495 PR tree-optimization/78997
9496 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
9497 name condition properly.
9499 2017-01-09 Richard Biener <rguenther@suse.de>
9502 * dwarf2out.c (is_cxx): New overload with context.
9503 (is_naming_typedef_decl): Use it.
9505 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
9507 * invoke.texi (Option Summary): Correct spacing in option lists
9508 and add line breaks to fix over-long lines.
9510 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
9514 * extend.texi (Common Variable Attributes): Add xref to GCC
9515 Internals manual to explain mode attribute keywords.
9517 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
9520 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
9521 and Preprocessor Options.
9522 (Options for Linking): Document -pthread here....
9523 (RS/6000 and PowerPC Options): ...not here.
9524 (Solaris 2 Options): ...or here.
9525 * doc/cppopts.texi: Document -pthread.
9527 2017-01-08 Martin Sebor <msebor@redhat.com>
9530 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
9531 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
9532 New member functions.
9533 (format_directive): Used them.
9535 (pass_sprintf_length::handle_gimple_call): Same.
9536 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
9537 to avoid truncation for any argument.
9538 (extract_affine_mul): Same.
9539 * tree.c (get_file_function_name): Same.
9541 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
9544 * predict.def (PRED_INDIR_CALL): Set to 86.
9546 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
9548 PR preprocessor/54124
9549 * doc/cppopts.texi: Reformat -d subtable to list the full name
9550 of the options. Add cross-reference to the docs for the general
9551 compiler -d options.
9552 * doc/invoke.texi (Developer Options): Add cross-reference to the
9553 preprocessor-specific -d option documentation.
9555 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
9557 PR preprocessor/13498
9558 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
9559 redudant material, and reflect new command-line options.
9560 (System Headers): Likewise.
9562 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
9564 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
9565 -isystem, and -idirafter. Copy-edit.
9566 * doc/cppopts.texi: Copy-edit. Remove contradiction about
9567 default for -ftrack-macro-expansion. Delete obsolete and
9568 badly-formatted implementation details about -fdebug-cpp output.
9569 * doc/cppwarnopts.texi: Copy-edit.
9571 2017-01-07 David Malcolm <dmalcolm@redhat.com>
9574 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
9575 that the transition from a max line width >= 1<<10 to narrower
9576 lines works correctly.
9578 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
9580 * doc/options.texi (PerFunction): New.
9581 * opt-functions.awk (switch_flags): Map both Optimization and
9582 PerFunction to CL_OPTIMIZATION.
9583 * opth-gen.awk: Test for PerFunction flag along with
9585 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
9586 it only when the latter is present. Skip those that don't in
9587 the hash function generator.
9588 * common.opt (fvar-tracking): Mark as PerFunction instead of
9590 (fvar-tracking-assignments): Likewise.
9591 (fvar-tracking-assignments-toggle): Likewise.
9592 (fvar-tracking-uninit): Likewise.
9594 2017-01-07 Jakub Jelinek <jakub@redhat.com>
9596 PR translation/79018
9597 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
9600 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
9603 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
9604 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
9605 TARGET_LONG_JUMP_TABLE_OFFSETS.
9606 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
9607 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
9608 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
9609 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
9610 * config/m68k/m68k.md (tablejump expander): Likewise.
9611 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
9612 TARGET_LONG_JUMP_TABLE_OFFSETS.
9613 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
9614 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
9616 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
9617 David Holsgrove <david.holsgrove@xilinx.com>
9619 * common/config/microblaze/microblaze-common.c
9620 (TARGET_EXCEPT_UNWIND_INFO): Remove.
9621 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
9623 * config/microblaze/microblaze.c (microblaze_must_save_register)
9624 (microblaze_expand_epilogue, microblaze_return_addr): Handle
9626 (microblaze_eh_return): New function.
9627 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
9628 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
9629 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
9630 * config/microblaze/microblaze.md (eh_return): New pattern.
9632 2017-01-06 Jakub Jelinek <jakub@redhat.com>
9634 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
9635 GCC_DIAGNOSTIC_STRINGIFY): Define.
9637 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
9639 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
9641 * config/arm/arm.md (<mcrr>): New.
9643 * config/arm/arm.c (arm_arch5te): New.
9644 (arm_option_override): Set arm_arch5te.
9645 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
9647 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
9648 (arm_mcrr_qualifiers): ... this. New.
9649 (MRRC_QUALIFIERS): Define to...
9650 (arm_mrrc_qualifiers): ... this. New.
9651 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
9653 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
9654 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
9655 (MRRCI, mrrc, MRRC): New.
9656 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
9657 VUNSPEC_MRRC2): New.
9659 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
9661 * config/arm/arm.md (<mcr>): New.
9663 * config/arm/arm.c (arm_coproc_builtin_available): Add
9664 support for mcr, mrc, mcr2 and mrc2.
9665 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
9666 (arm_mcr_qualifiers): ... this. New.
9667 (MRC_QUALIFIERS): Define to ...
9668 (arm_mrc_qualifiers): ... this. New.
9669 (MCR_QUALIFIERS): Define to ...
9670 (arm_mcr_qualifiers): ... this. New.
9671 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
9673 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
9674 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
9675 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
9678 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
9680 * config/arm/arm.md (*ldc): New.
9684 * config/arm/arm.c (arm_coproc_builtin_available): Add
9685 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
9686 (arm_coproc_ldc_stc_legitimate_address): New.
9687 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
9688 'qualifier_const_pointer'.
9689 (LDC_QUALIFIERS): Define to...
9690 (arm_ldc_qualifiers): ... this. New.
9691 (STC_QUALIFIERS): Define to...
9692 (arm_stc_qualifiers): ... this. New.
9693 * config/arm/arm-protos.h
9694 (arm_coproc_ldc_stc_legitimate_address): New.
9695 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
9696 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
9697 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
9698 stc2, stcl, stc2l): New.
9699 * config/arm/constraints.md (Uz): New.
9700 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
9701 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
9702 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
9703 VUNSPEC_STC2L): New.
9705 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
9707 * config/arm/arm.md (<cdp>): New.
9708 * config/arm/arm.c (neon_const_bounds): Rename this ...
9709 (arm_const_bounds): ... this.
9710 (arm_coproc_builtin_available): New.
9711 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
9712 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
9713 (CDP_QUALIFIERS): Define to...
9714 (arm_cdp_qualifiers): ... this. New.
9716 (arm_expand_builtin_args): Add case for 6 arguments.
9717 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
9718 (arm_const_bounds): ... this.
9719 (arm_coproc_builtin_available): New.
9720 * config/arm/arm_acle.h (__arm_cdp): New.
9722 * config/arm/arm_acle_builtins.def (cdp): New.
9724 * config/arm/iterators.md (CDPI,CDP,cdp): New.
9725 * config/arm/neon.md: Rename all 'neon_const_bounds' to
9727 * config/arm/types.md (coproc): New.
9728 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
9729 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
9730 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
9731 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
9733 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
9735 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
9736 (UBINOP_QUALIFIERS): New.
9738 (acle_builtin_data): New. Change comment.
9739 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
9740 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
9741 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
9742 arm_acle_builtins.def.
9743 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
9744 (arm_init_acle_builtins): New.
9745 (CRC32_BUILTIN): Remove.
9746 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
9747 crc32cb, crc32ch and crc32cw.
9748 (arm_init_crc32_builtins): Remove.
9749 (arm_init_builtins): Use arm_init_acle_builtins rather
9750 than arm_init_crc32_builtins.
9751 (arm_expand_acle_builtin): New.
9752 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
9753 * config/arm/arm_acle_builtins.def: New.
9755 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
9757 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
9758 (arm_builtin_datum): ... this.
9759 (arm_init_neon_builtin): Rename to ...
9760 (arm_init_builtin): ... this. Add a new parameters PREFIX
9761 and USE_SIG_IN_NAME.
9762 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
9763 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
9764 'arm_builtin_datum'.
9765 (arm_init_vfp_builtins): Likewise.
9766 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
9767 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
9768 (arm_expand_neon_args): Rename to ...
9769 (arm_expand_builtin_args): ... this. Rename builtin_arg
9770 enum values and differentiate between ARG_BUILTIN_MEMORY
9771 and ARG_BUILTIN_NEON_MEMORY.
9772 (arm_expand_neon_builtin_1): Rename to ...
9773 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
9774 values, arm_expand_builtin_args and add bool parameter NEON.
9775 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
9776 (arm_expand_vfp_builtin): Likewise.
9777 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
9779 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
9782 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
9783 * predict.c (tree_estimate_probability_bb): Reverse direction of
9784 polymorphic call predictor.
9786 2017-01-06 David Malcolm <dmalcolm@redhat.com>
9788 * passes.c (execute_one_pass): Split out pass-skipping logic into...
9789 (determine_pass_name_match): ...this new function and...
9790 (should_skip_pass_p): ...this new function.
9792 2017-01-06 Nathan Sidwell <nathan@acm.org>
9794 * ipa-visibility.c (function_and_variable_visibility): Reformat
9795 comments and long lines. Remove extrneous if.
9796 * symtab.c (symtab_node::make_decl_local): Fix code format.
9797 (symtab_node::set_section_for_node): Fix comment typo.
9799 2017-01-06 Martin Liska <mliska@suse.cz>
9802 * lra-constraints.c: Rename invariant to lra_invariant.
9803 * predict.c (set_even_probabilities): Initialize e to NULL.
9805 2017-01-05 Martin Sebor <msebor@redhat.com>
9807 PR tree-optimization/78910
9808 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
9809 (format_integer): Correct off-by-one error in the handling
9810 of precision with negative numbers in signed conversions..
9812 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
9814 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
9816 2017-01-05 Jakub Jelinek <jakub@redhat.com>
9818 PR tree-optimization/71016
9819 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
9820 factor_out_conditional_conversion. Formatting fix.
9821 (factor_out_conditional_conversion): Add cond_stmt argument.
9822 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
9823 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
9826 2017-01-05 David Malcolm <dmalcolm@redhat.com>
9828 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
9829 read-rtl-function.o, and selftest-rtl.o.
9830 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
9831 (selftest::aarch64_test_loading_full_dump): New function.
9832 (selftest::aarch64_run_selftests): New function.
9833 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
9834 selftest::aarch64_run_selftests.
9835 * config/i386/i386.c
9836 (selftest::ix86_test_loading_dump_fragment_1): New function.
9837 (selftest::ix86_test_loading_call_insn): New function.
9838 (selftest::ix86_test_loading_full_dump): New function.
9839 (selftest::ix86_test_loading_unspec): New function.
9840 (selftest::ix86_run_selftests): Call the new functions.
9841 * emit-rtl.c (maybe_set_max_label_num): New function.
9842 * emit-rtl.h (maybe_set_max_label_num): New decl.
9843 * function.c (instantiate_decls): Guard call to
9844 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
9845 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
9847 * gensupport.c (gen_reader::gen_reader): Pass "false"
9848 for new "compact" param of rtx_reader.
9849 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
9850 rather than an empty string for NULL strings.
9851 * read-md.c: Potentially include config.h rather than bconfig.h.
9852 Wrap include of errors.h with #ifdef GENERATOR_FILE.
9853 (have_error): New global, copied from errors.c.
9854 (md_reader::read_name): Rename to...
9855 (md_reader::read_name_1): ...this, adding "out_loc" param,
9856 and converting "missing name or number" to returning false, rather
9858 (md_reader::read_name): Reimplement in terms of read_name_1.
9859 (md_reader::read_name_or_nil): New function.
9860 (md_reader::read_string): Handle "(nil)" by returning NULL.
9861 (md_reader::md_reader): Add new param "compact".
9862 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
9863 (md_reader::read_file): New method.
9864 * read-md.h (md_reader::md_reader): Add new param "compact".
9865 (md_reader::read_file): New method.
9866 (md_reader::is_compact): New accessor.
9867 (md_reader::read_name): Convert return type from void to file_location.
9868 (md_reader::read_name_or_nil): New decl.
9869 (md_reader::read_name_1): New decl.
9870 (md_reader::m_compact): New field.
9871 (noop_reader::noop_reader): Pass "false" for new "compact" param
9873 (rtx_reader::rtx_reader): Add new "compact" param.
9874 (rtx_reader::read_rtx_operand): Make virtual and convert return
9875 type from void to rtx.
9876 (rtx_reader::read_until): New decl.
9877 (rtx_reader::handle_any_trailing_information): New virtual function.
9878 (rtx_reader::postprocess): New virtual function.
9879 (rtx_reader::finalize_string): New virtual function.
9880 (rtx_reader::m_in_call_function_usage): New field.
9881 (rtx_reader::m_reuse_rtx_by_id): New field.
9882 * read-rtl-function.c: New file.
9883 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
9884 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
9885 (selftest::verify_three_block_rtl_cfg): New decl.
9886 * read-rtl-function.h: New file.
9887 * read-rtl.c: Potentially include config.h rather than bconfig.h.
9888 For host, include function.h, memmodel.h, and emit-rtl.h.
9889 (one_time_initialization): New function.
9890 (struct compact_insn_name): New struct.
9891 (compact_insn_names): New array.
9892 (find_code): Handle insn codes in compact dumps.
9893 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
9894 (bind_subst_iter_and_attr): Likewise.
9895 (add_condition_to_string): Likewise.
9896 (add_condition_to_rtx): Likewise.
9897 (apply_attribute_uses): Likewise.
9898 (add_current_iterators): Likewise.
9899 (apply_iterators): Likewise.
9900 (initialize_iterators): Guard usage of apply_subst_iterator with
9901 #ifdef GENERATOR_FILE.
9902 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
9903 (md_reader::read_mapping): Likewise.
9904 (add_define_attr_for_define_subst): Likewise.
9905 (add_define_subst_attr): Likewise.
9906 (read_subst_mapping): Likewise.
9907 (check_code_iterator): Likewise.
9908 (rtx_reader::read_rtx): Likewise. Move one-time initialization
9910 (one_time_initialization): New function.
9911 (rtx_reader::read_until): New method.
9912 (read_flags): New function.
9913 (parse_reg_note_name): New function.
9914 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
9915 Handle reuse_rtx ids.
9916 Wrap iterator lookup within #ifdef GENERATOR_FILE.
9917 Add parsing support for RTL dumps, mirroring the special-cases in
9918 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
9919 values, and calling handle_any_trailing_information.
9920 (rtx_reader::read_rtx_operand): Convert return type from void
9921 to rtx, returning return_rtx. Handle case 'e'. Call
9922 finalize_string on XSTR and XTMPL fields.
9923 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
9924 "(nil)" values were omitted. Call the postprocess vfunc on the
9926 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
9927 class ctor. Initialize m_in_call_function_usage. Call
9928 one_time_initialization.
9929 * rtl-tests.c (selftest::test_uncond_jump): Call
9930 set_new_first_and_last_insn.
9931 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
9932 * selftest-rtl.c: New file.
9933 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
9934 (selftest::get_insn_by_uid): New decl.
9935 * selftest-run-tests.c (selftest::run_tests): Call
9936 read_rtl_function_c_tests.
9937 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
9938 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
9941 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
9943 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
9944 operands in a special way. Assert that pos+len <= mode precision.
9946 2017-01-05 Jakub Jelinek <jakub@redhat.com>
9948 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
9949 3 argument Alias with unlimited for the negative form.
9950 (fno-vect-cost-model): Removed.
9952 2017-01-05 Martin Liska <mliska@suse.cz>
9954 * hsa-gen.c (gen_hsa_divmod): New function.
9955 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
9957 2017-01-05 Martin Liska <mliska@suse.cz>
9960 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
9963 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9965 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
9966 small constant length operands.
9968 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9970 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
9971 between loop iterations.
9973 2017-01-05 Martin Liska <mliska@suse.cz>
9976 * gimplify.c (gimplify_decl_expr): Compare to
9977 asan_poisoned_variables instread of checking flags.
9978 (gimplify_target_expr): Likewise.
9979 (gimplify_expr): Likewise.
9980 (gimplify_function_tree): Conditionally initialize
9981 asan_poisoned_variables.
9983 2017-01-04 Jeff Law <law@redhat.com>
9985 PR tree-optimizatin/78812
9986 * rtl.h (contains_mem_rtx_p): Prototype.
9987 * ifcvt.c (containts_mem_rtx_p): Move from here to...
9988 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
9989 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
9990 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
9991 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
9993 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
9995 * input.c (assert_char_at_range): Default-initialize actual_range.
9997 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
9999 * df-scan.c (df_ref_create_structure): Make regno unsigned,
10000 to match the caller.
10002 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
10004 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
10005 insns after final jump in test to emit dummy move.
10007 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
10009 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
10010 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
10012 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
10014 * multiple_target.c (create_dispatcher_calls): Init e_next.
10015 * tree-ssa-loop-split.c (split_loop): Init border.
10016 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
10019 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
10024 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
10025 (altivec_register_operand): Do not return true if the operand
10026 contains a SUBREG mixing SImode and SFmode.
10027 (vsx_register_operand): Likewise.
10028 (vsx_reg_sfsubreg_ok): New predicate.
10029 (vfloat_operand): Do not return true if the operand contains a
10030 SUBREG mixing SImode and SFmode.
10031 (vint_operand): Likewise.
10032 (vlogical_operand): Likewise.
10033 (gpc_reg_operand): Likewise.
10034 (int_reg_operand): Likewise.
10035 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
10036 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
10037 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
10039 (rs6000_emit_move_si_sf_subreg): New helper function.
10040 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
10041 fixup SUBREGs involving SImode and SFmode.
10042 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
10043 numbers for the new peephole2 optimization.
10044 (peephole2 for SFmode unions): New peephole2 to optimize cases in
10045 the GLIBC math library that do AND/IOR/XOR operations on single
10046 precision floating point.
10047 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
10048 target macros to say whether we need to avoid SUBREGs mixing
10050 (TARGET_ALLOW_SF_SUBREG): Likewise.
10051 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
10052 (UNSPEC_SI_FROM_SF): Likewise.
10053 (iorxor): Change spacing.
10054 (and_ior_xor): New iterator for AND, IOR, and XOR.
10055 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
10056 (movdi_from_sf_zero_ext): Likewise.
10057 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
10058 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
10059 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
10060 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
10061 (fms<mode>4): Likewise.
10062 (fnma<mode>4): Likewise.
10063 (fnms<mode>4): Likewise.
10064 (nfma<mode>4): Likewise.
10065 (nfms<mode>4): Likewise.
10067 2017-01-04 Marek Polacek <polacek@redhat.com>
10070 * doc/invoke.texi: Document -Wpointer-compare.
10072 2017-01-04 Jakub Jelinek <jakub@redhat.com>
10074 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
10077 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
10078 descriptions for -gdwarf-5 and emit them as uleb128 instead of
10081 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
10084 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
10085 documentation of the powerpc_popcntb_ok attribute.
10086 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10087 code to issue warning messages if a requested CPU configuration is
10088 not supported by the binary (assembler and loader) toolchain.
10089 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
10090 made to define a built-in function that has been disabled.
10091 (paired_init_builtins): Add assertion to prevent ICE if attempt is
10092 made to define a built-in function that has been disabled.
10093 (altivec_init_builtins): Add comment explaining why definition
10094 of the DST built-in functions is not preceded by an assertion
10095 check. Add assertions to prevent ICE if attempts are made to
10096 define an altivec predicate or an abs* built-in function that has
10098 (htm_init_builtins): Add comment explaining why definition of the
10099 htm built-in functions is not preceded by an assertion check.
10101 2017-01-04 Jeff Law <law@redhat.com>
10103 PR tree-optimizatin/67955
10104 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
10105 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
10106 the points-to solution does not include pt_null. Use DECL_PT_UID
10109 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
10111 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
10112 Use gen_int_mode instead of gen_lopwart for const_int operands.
10114 2017-01-04 Jakub Jelinek <jakub@redhat.com>
10116 PR tree-optimization/71563
10117 * match.pd: Simplify X << Y into X if Y is known to be 0 or
10118 out of range value - has low bits known to be zero.
10120 2017-01-04 Alan Modra <amodra@gmail.com>
10122 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
10123 * configure: Regenerate.
10124 * config.in: Regenerate.
10126 2017-01-04 Jakub Jelinek <jakub@redhat.com>
10129 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
10130 a substring of the message, but strcmp with the whole message. Ifdef
10131 ENABLE_NLS, translate the message first using dgettext.
10133 2017-01-03 Jeff Law <law@redhat.com>
10135 PR tree-optimizatin/78856
10136 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
10137 (mark_threaded_blocks): Remove code to truncate thread paths that
10138 cross multiple loop headers. Instead invalidate the cached loop
10139 iteration information and handle case of a thread path walking
10140 into an irreducible region.
10142 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10145 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
10146 assertions. Add support for doing the signbit if the IEEE 128-bit
10147 floating point value is in a GPR.
10148 * config/rs6000/rs6000.md (Fsignbit): Delete.
10149 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
10150 Update the length attribute if the value is in a GPR.
10151 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
10152 the sign or zero extension instruction, since the value is always 0/1.
10153 (signbit<mode>2_dm2): Delete using <Fsignbit>.
10156 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
10157 extracting SImode to a GPR register so that we can generate a
10158 store, limit the vector to be in a traditional Altivec register
10159 for the vextuwrx instruction.
10161 2017-01-03 Ian Lance Taylor <iant@google.com>
10163 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
10165 2017-01-03 Martin Sebor <msebor@redhat.com>
10167 PR tree-optimization/78696
10168 * gimple-ssa-sprintf.c (format_floating): Correct handling of
10169 precision. Use MPFR for %f for greater fidelity. Correct handling
10171 (pass_sprintf_length::compute_format_length): Set width and precision
10172 specified by asrerisk to void_node for vararg functions.
10173 (try_substitute_return_value): Adjust dump output.
10175 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
10177 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
10179 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
10181 * doc/invoke.texi (SPARC options): Document -mlra as the default.
10182 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
10183 -mlra/-mno-lra was passed to the compiler.
10185 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
10187 PR rtl-optimization/65618
10188 * emit-rtl.c (try_split): Move initialization of "before" and
10189 "after" to just before the call to emit_insn_after_setloc.
10191 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
10193 * doc/md.texi (Standard Names): Remove reference to Java frontend.
10195 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
10197 * dwarf2out.c (gen_enumeration_type_die): When
10198 -gno-strict-dwarf, add a DW_AT_encoding attribute.
10200 2017-01-03 Jakub Jelinek <jakub@redhat.com>
10202 PR tree-optimization/78965
10203 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
10204 Change first argument from const call_info & to call_info &. For %n
10205 set info.nowrite to false.
10207 PR middle-end/78901
10208 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
10209 possibly throwing calls.
10211 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
10212 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
10213 and fns handling, rather than in a separate case SSA_NAME.
10215 2017-01-02 Jeff Law <law@redhat.com>
10217 * config/darwin-driver.c (darwin_driver_init): Const-correctness
10218 fixes for first_period and second_period variables.
10220 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
10223 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
10224 (*insvqi_1): New insn pattern.
10225 (*insvqi_1_mem_rex64): Ditto.
10226 (*insvqi_2): Ditto.
10227 (*insvqi_3): Rename from *insvqi.
10229 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
10231 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
10233 * doc/cfg.texi (Edges): Remove reference to Java.
10234 (Maintaining the CFG): Ditto.
10236 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
10238 PR middle-end/77674
10239 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
10240 transparent aliases.
10242 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
10244 PR middle-end/77484
10245 * predict.def (PRED_CALL): Update hitrate.
10246 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
10247 * predict.c (tree_estimate_probability_bb): Split CALL predictor
10248 into direct/indirect/polymorphic variants.
10250 2017-01-01 Jakub Jelinek <jakub@redhat.com>
10252 Update copyright years.
10254 * gcc.c (process_command): Update copyright notice dates.
10255 * gcov-dump.c (print_version): Ditto.
10256 * gcov.c (print_version): Ditto.
10257 * gcov-tool.c (print_version): Ditto.
10258 * gengtype.c (create_file): Ditto.
10259 * doc/cpp.texi: Bump @copying's copyright year.
10260 * doc/cppinternals.texi: Ditto.
10261 * doc/gcc.texi: Ditto.
10262 * doc/gccint.texi: Ditto.
10263 * doc/gcov.texi: Ditto.
10264 * doc/install.texi: Ditto.
10265 * doc/invoke.texi: Ditto.
10267 Copyright (C) 2017 Free Software Foundation, Inc.
10269 Copying and distribution of this file, with or without modification,
10270 are permitted in any medium without royalty provided the copyright
10271 notice and this notice are preserved.