1 2017-06-12 Jakub Jelinek <jakub@redhat.com>
3 PR tree-optimization/81003
4 * tree-ssa-reassoc.c (force_into_ssa_name): New function.
5 (update_range_test): Use it instead of force_gimple_operand_gsi.
7 2017-06-12 Richard Biener <rguenther@suse.de>
9 PR tree-optimization/81053
10 * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
11 with backedge value not defined in loop. Simplify def stmt
14 2017-06-11 Tom de Vries <tom@codesourcery.com>
17 * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
19 (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
20 nvptx_cannot_force_const_mem.
22 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
24 * opts.c (finish_options): Move test for flag_split_stack after
25 it has been initialized.
27 2017-06-11 Jason Merrill <jason@redhat.com>
29 * tree.h (id_equal): New.
30 * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
31 omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
32 instead of strcmp of IDENTIFIER_POINTER.
34 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
36 * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
37 (mark_all_inlined_calls_cdtor): Fix formating.
38 (inline_transform): Rescale profile before inlining.
40 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
42 * cgraph.h (cgraph_edge::clone): Update prototype.
43 * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
44 (cgraph_node::create_clone): Update.
45 (cgraph_node::create_version_clone): Update.
46 * tree-inline.c (copy_bb): Update.
47 (expand_call_inline): Update.
49 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
51 * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
53 (rs6000_emit_prologue): ... here.
55 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
57 * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
59 (rs6000_emit_prologue): ... here.
61 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
63 * predict.c (drop_profile): Also drop individual bb/edge and cgraph
65 (handle_missing_profiles): Fix computation of tp_first_run.
66 (counts_to_freqs): Do not touch freqs when count is 0.
68 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
70 * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
73 2017-06-10 Tom de Vries <tom@codesourcery.com>
75 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
76 attributes): Document signal effective target.
78 2017-06-10 Tom de Vries <tom@codesourcery.com>
80 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
81 Document effective target stack_size.
83 2017-06-09 David Malcolm <dmalcolm@redhat.com>
85 * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
86 to the edit_context if they can be auto-applied.
88 2017-06-9 Ian Lance Taylor <iant@golang.org>
90 * opts.c (finish_options): If -fsplit-stack, disable implicit
91 -forder-blocks-and-partition.
92 * doc/invoke.texi (Optimize Options): Document that when using
93 -fsplit-stack -forder-blocks-and-partition is not implicitly
96 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
98 * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
99 ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
100 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
101 * builtins.def (abort, trap, unreachable): Declare cold.
102 * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
103 * tree-core.h (ECF_COLD): New.
104 * tree.c (set_call_expr_flags): Handle ECF_COLD.
105 (build_common_builtin_nodes): Mark unreachable and abort as cold.
107 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
109 * predict.c (unlikely_executed_stmt_p): Cleanup.
111 2017-06-09 Richard Biener <rguenther@suse.de>
113 * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
114 model if the ref is always written to.
116 2017-06-09 Tamar Christina <tamar.christina@arm.com>
118 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
120 2017-06-09 Tamar Christina <tamar.christina@arm.com>
122 * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
125 2017-06-09 Tom de Vries <tom@codesourcery.com>
128 * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
129 "target cannot support label values" when encountering LABEL_REF.
131 2017-06-09 Martin Liska <mliska@suse.cz>
133 * tree-profile.c (gimple_gen_ic_profiler): Update comment.
134 (gimple_gen_ic_func_profiler): Emit direct comparison
135 of __gcov_indirect_call_callee with NULL.
136 (gimple_gen_time_profiler): Change probability from
137 PROB_VERY_UNLIKELY to PROB_UNLIKELY.
139 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
141 * profile.c (edge_gcov_counts): Turn to pointer.
142 (compute_branch_probabilities, compute_branch_probabilities): Update.
143 (branch_prob): Do not clear edge_gcov_count.
144 * profile.h (edge_gcov_counts): Turn to pointer.
145 (edge_gcov_count): Update.
147 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
149 * gimple.h (gimple_check_failed): Mark cold.
151 2017-06-09 Richard Biener <rguenther@suse.de>
153 PR tree-optimization/66623
154 * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
155 refactor check_reduction into two parts, properly computing
156 whether we have to check reduction validity for outer loop
159 2017-06-09 Richard Biener <rguenther@suse.de>
161 PR tree-optimization/79483
162 * graphite-scop-detection.c (order): New global.
163 (get_order): Compute bb to order mapping that satisfies code
164 generation constraints.
165 (cmp_pbbs): New helper.
166 (build_scops): Start domwalk at entry block, sort generated
169 2017-06-09 Richard Biener <rguenther@suse.de>
172 * ipa-polymorphic-call.c
173 (ipa_polymorphic_call_context::restrict_to_inner_class):
174 Skip FIELD_DECLs with error_mark_node type.
175 * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
178 2017-06-09 Martin Liska <mliska@suse.cz>
180 * predict.c (struct branch_predictor): New struct.
181 (test_prediction_value_range): New test.
182 (predict_c_tests): New function.
183 * selftest-run-tests.c (selftest::run_tests): Run the function.
184 * selftest.h: Declare new tests.
186 2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
189 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
190 gen_add3_insn did not fail.
191 * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
192 r0, construct that number in a temporary reg and add that reg to r0.
193 If asked to put the result in r0 as well, fail.
195 2017-06-08 Will Schmidt <will_schmidt@vnet.ibm.com>
197 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
198 for early expansion of vec_eqv.
200 2017-06-08 Jakub Jelinek <jakub@redhat.com>
203 * ubsan.c (instrument_null): Avoid pointless code temporary.
204 (pass_ubsan::execute): Instrument aggregate arguments of calls.
206 2017-06-08 Uros Bizjak <ubizjak@gmail.com>
210 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
213 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
216 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
218 * predict.c (unlikely_executed_edge_p): Move ahead.
219 (probably_never_executed_edge_p): Use it.
221 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
224 * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
225 gimple_call_builtin_p call.
227 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
229 * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
230 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
231 rtl_check_failed_type2, rtl_check_failed_code1,
232 rtl_check_failed_code2, rtl_check_failed_code_mode,
233 rtl_check_failed_block_symbol, cwi_check_failed_bounds,
234 rtvec_check_failed_bounds, rtl_check_failed_flag,
235 _fatal_insn_not_found, _fatal_insn): Likewise.
236 * tree.h (tree_contains_struct_check_failed,
237 tree_check_failed, tree_not_check_failed,
238 tree_class_check_failed, tree_range_check_failed,
239 tree_not_class_check_failed, tree_int_cst_elt_check_failed,
240 tree_vec_elt_check_failed, phi_node_elt_check_failed,
241 tree_operand_check_failed, omp_clause_check_failed,
242 omp_clause_operand_check_failed, omp_clause_range_check_failed):
245 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
247 * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
248 flag_branch_probabilities.
249 * ipa-inline.c (edge_badness): Likewise.
250 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
251 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
252 * predict.c (maybe_hot_frequency_p): Likewise.
253 (probably_never_executed): Likewise.
254 * sched-ebb.c (schedule_ebbs): Likewise.
255 * sched-rgn.c (find_single_block_region): Likewise.
256 * tracer.c (tail_duplicate): Likewise.
258 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
260 * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
261 longer requires x_flag_profile_use.
263 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
265 * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
266 instead of flag_reorder_blocks_and_partition.
267 * dbxout.c (dbxout_function_end): Likewise.
268 * dwarf2out.c (gen_subprogram_die): Likewise.
269 * haifa-sched.c (sched_create_recovery_edges): Likewise.
270 * hw-doloop.c (reorg_loops): Likewise.
271 * varasm.c (assemble_start_function,
272 assemble_end_function): Likewise.
273 (decide_function_section): Do not check for
274 flag_reorder_blocks_and_partition.
276 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
278 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
280 (chkp_get_hard_register_fake_addr_expr): Ditto.
281 (chkp_build_addr_expr): Add check for hard reg case.
282 (chkp_parse_array_and_component_ref): Ditto.
283 (chkp_find_bounds_1): Ditto.
284 (chkp_process_stmt): Don't generate bounds store for
287 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
289 * predict.c (maybe_hot_bb_p): Do not check profile status.
290 (maybe_hot_edge_p): Likewise.
291 (probably_never_executed): Check for zero counts even if profile
293 (unlikely_executed_edge_p): New function.
294 (unlikely_executed_stmt_p): New function.
295 (unlikely_executed_bb_p): New function.
296 (set_even_probabilities): Use unlikely predicates.
297 (combine_predictions_for_bb): Likewise.
298 (predict_paths_for_bb): Likewise.
299 (predict_paths_leading_to_edge): Likewise.
300 (determine_unlikely_bbs): New function.
301 (estimate_bb_frequencies): Use it.
302 (compute_function_frequency): Use zero counts even if profile is
304 * profile-count.h: Fix typo.
306 2017-08-08 Julia Koval <julia.koval@intel.com>
308 * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
309 _mm512_mask_cvtsepi16_storeu_epi8,
310 _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
311 * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
312 _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
313 _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
314 _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
315 * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
316 (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
317 VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
318 * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
319 __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
320 __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
321 __builtin_ia32_pmovuswb256mem_mask,
322 __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
323 __builtin_ia32_pmovwb512mem_mask): New builtins.
325 2017-08-08 Julia Koval <julia.koval@intel.com>
327 PR target/73350,80862
328 * config/i386/subst.md (round): Fix round pattern.
329 * config/i386/i386.c (ix86_erase_embedded_rounding):
330 Fix erasing rounding for the fixed pattern.
332 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
334 * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
336 2017-06-08 Martin Liska <mliska@suse.cz>
338 PR gcov-profile/80911
339 * gcov.c (block_info::block_info): New constructor.
341 2017-06-07 Carl Love <cel@us.ibm.com>
343 * config/rs6000/rs6000-c: The return type of the following
344 built-in functions was implemented as int not long long. Fix sign
345 of return value for the unsigned version of vec_mulo and vec_mule.
346 vector unsigned long long vec_bperm (vector unsigned long long,
347 vector unsigned char)
348 vector signed long long vec_mule (vector signed int,
350 vector unsigned long long vec_mule (vector unsigned int,
352 vector signed long long vec_mulo (vector signed int,
354 vector unsigned long long vec_mulo (vector unsigned int,
356 * doc/extend.texi: Fix the documentation for the built-in
359 2017-06-07 Carl Love <cel@us.ibm.com>
362 * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
365 2017-06-07 Carl Love <cel@us.ibm.com>
367 * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
368 support, Generate doublehv for signed int/float for BE case only.
370 2017-06-07 Alexander Monakov <amonakov@ispras.ru>
372 * doc/invoke.texi (mcx16): Rewrite.
374 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
376 * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
377 * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
378 *mov<mode>_softfloat, and an anonymous splitter): Use
379 nonimmediate_operand instead of rs6000_nonimmediate_operand.
381 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
383 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
385 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
386 (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
387 (rs6000_debug_reg_global): Adjust.
388 (rs6000_init_hard_regno_mode_ok): Adjust.
389 (rs6000_dbx_register_number): Adjust.
390 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
391 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
392 Remove SPE_ACC and SPEFSCR.
393 (REG_ALLOC_ORDER): Ditto.
394 (FRAME_POINTER_REGNUM): Change to 111.
395 (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
396 (REG_CLASS_NAMES): Ditto.
397 (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
398 (REGISTER_NAMES): Ditto.
399 (ADDITIONAL_REG_NAMES): Ditto.
400 (rs6000_reg_names): Ditto.
401 * config/rs6000/rs6000.md: Renumber some register number
404 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
406 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
408 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
409 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
411 (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
412 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
413 Delete the SPE high registers.
414 (REG_ALLOC_ORDER): Ditto.
415 (enum reg_class): Remove SPE_HIGH_REGS.
416 (REG_CLASS_NAMES): Ditto.
417 (REG_CLASS_CONTENTS): Delete the SPE high registers.
418 (REGISTER_NAMES): Ditto.
419 (rs6000_reg_names): Ditto.
420 * doc/tm.texi.in: Remove SPE as example.
421 * doc/tm.texi: Regenerate.
423 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
425 * config/rs6000/8540.md (ppc8540_brinc): Delete.
426 * config/rs6000/e500mc.md (e500mc_brinc): Delete.
427 * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
428 * config/rs6000/rs6000.md (type): Remove "brinc".
430 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
432 * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
433 (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
434 * config/rs6000/linuxspe.h: Delete file.
435 * config/rs6000/rs6000.md: Don't include spe.md.
436 * config/rs6000/spe.h: Delete file.
437 * config/rs6000/spe.md: Delete file.
438 * config/rs6000/t-rs6000: Remove spe.md.
440 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
442 * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
443 (reg_or_none500mem_operand): Delete.
444 * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
445 instead of reg_or_none500mem_operand.
447 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
449 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
450 handling of SPE flags.
451 * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
453 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
455 * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
457 * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
458 (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
459 paired_divv2sf3): Similar.
460 * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
461 SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
462 * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
464 Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
465 Rename the paired_* instruction patterns.
466 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
468 * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
469 * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
470 (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
471 spe_padding_size, and spe_64bit_regs_used. Replace TARGET_SPE and
472 TARGET_SPE_ABI with 0, simplify. Replace SPE_VECTOR_MODE with
474 (struct machine_function): Delete field spe_insn_chain_scanned_p.
475 (spe_func_has_64bit_regs_p): Delete.
476 (spe_expand_predicate_builtin): Delete.
477 (spe_expand_evsel_builtin): Delete.
478 (TARGET_DWARF_REGISTER_SPAN): Do not define.
479 (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
480 (invalid_e500_subreg): Delete.
481 (rs6000_legitimize_address): Always force_reg op2 as well, for
482 paired single memory accesses.
483 (rs6000_member_type_forces_blk): Delete.
484 (rs6000_spe_function_arg): Delete.
485 (rs6000_expand_unop_builtin): Delete SPE handling.
486 (rs6000_expand_binop_builtin): Ditto.
487 (spe_expand_stv_builtin): Delete.
488 (bdesc_2arg_spe): Delete.
489 (spe_expand_builtin): Delete.
490 (spe_expand_predicate_builtin): Delete.
491 (spe_expand_evsel_builtin): Delete.
492 (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
493 (spe_init_builtins): Delete.
494 (spe_func_has_64bit_regs_p): Delete.
495 (savres_routine_name): Delete "info" parameter. Adjust callers.
496 (rs6000_emit_stack_reset): Ditto.
497 (rs6000_dwarf_register_span): Delete.
498 * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
499 UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
500 SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
502 * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
504 * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
505 * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
506 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
507 mulv2sf3, divv2sf3): Delete expanders.
509 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
511 config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
513 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
515 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
516 * config/rs6000/rs6000.c: Ditto.
518 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
520 * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
521 * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
524 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
526 * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
527 * config/rs6000/rs6000.opt: Ditto.
528 * config/rs6000/t-rtems: Ditto.
530 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
532 * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
533 TARGET_E500_SINGLE by 0, simplify.
534 * config/rs6000/rs6000.c: Ditto.
535 (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
536 (spe_build_register_parallel): Delete.
537 * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
538 TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
539 * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
540 TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
541 (E500_CONVERT): Delete.
542 * config/rs6000/spe.md: Remove many patterns and all define_constants.
544 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
546 * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
547 * config/rs6000/dfp.md: Ditto.
548 (negdd2, *negdd2_fpr): Merge.
549 (absdd2, *absdd2_fpr): Merge.
550 (negtd2, *negtd2_fpr): Merge.
551 (abstd2, *abstd2_fpr): Merge.
552 * config/rs6000/e500.h: Delete file.
553 * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
554 TARGET_FPRS by 1 and simplify.
555 * config/rs6000/rs6000-c.c: Ditto.
556 * config/rs6000/rs6000.c: Ditto. Also replace TARGET_SF_SPE and
558 * config/rs6000/rs6000.h: Ditto. Delete TARGET_SF_SPE and
560 * config/rs6000/rs6000.md: Ditto.
561 (floatdidf2, *floatdidf2_fpr): Merge.
562 (move_from_CR_gt_bit): Delete.
563 * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
564 (E500_CR_IOR_COMPARE): Delete.
565 (All patterns that require !TARGET_FPRS): Delete.
566 * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
568 2017-06-07 Bin Cheng <bin.cheng@arm.com>
570 * passes.def (pass_iv_canon): Move before pass_loop_distribution.
572 2017-06-07 Bin Cheng <bin.cheng@arm.com>
574 * graphds.c (add_edge): Intitialize edge's attached data.
575 (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
576 pointer parameter. Call pointed function on each edge during
577 graph traversing. Skip traversing the edge when the function
579 (graphds_dfs, graphds_scc): Ditto.
580 (for_each_edge): New parameter. Pass the new parameter to callback
582 * graphds.h (skip_edge_callback): New function pointer type.
583 (graphds_dfs, graphds_scc): New function pointer parameter.
584 (graphds_edge_callback, for_each_edge): New parameter.
586 2017-06-07 Bin Cheng <bin.cheng@arm.com>
588 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
589 out code checking if runtime alias check is possible to below ...
590 Call the new function.
591 * tree-data-ref.c (runtime_alias_check_p): ... to new function.
592 * tree-data-ref.h (runtime_alias_check_p): New decalaration.
594 2017-06-07 Marek Polacek <polacek@redhat.com>
597 * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
598 TYPE_OVERFLOW_WRAPS check.
600 2017-06-07 Bin Cheng <bin.cheng@arm.com>
602 * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
603 if versioning is required.
604 * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
605 peeling with the check for versioning.
607 2017-06-07 Bin Cheng <bin.cheng@arm.com>
609 * tree-vectorizer.h (vect_build_loop_niters): New parameter.
610 * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
611 Set true to new parameter if new ssa variable is defined.
612 (vect_gen_vector_loop_niters): Refactor. Set range information
613 for the new vector loop bound variable.
614 (vect_do_peeling): Ditto.
616 2017-06-07 Bin Cheng <bin.cheng@arm.com>
618 * tree-affine.c (ssa.h): Include header file.
619 (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
620 has wrapping overflow behavior.
622 2017-06-07 Bin Cheng <bin.cheng@arm.com>
624 * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
626 2017-06-07 Bin Cheng <bin.cheng@arm.com>
628 (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
629 (tree_to_aff_combination): ... here.
631 2017-06-07 Bin Cheng <bin.cheng@arm.com>
633 * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
634 reg_pressure model function.
635 (ivopts_global_cost_for_size): Delete.
636 (determine_set_costs, iv_ca_recount_cost): Call new model function
637 ivopts_estimate_reg_pressure.
639 2017-06-07 Tamar Christina <tamar.christina@arm.com>
641 * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more expensive than udiv.
642 Remove floating point cases from mod.
644 2017-06-07 Tamar Christina <tamar.christina@arm.com>
646 * config/arm/aarch-cost-tables.h (cortexa53_extra_cost): Increase idiv cost.
648 2017-06-07 Tamar Christina <tamar.christina@arm.com>
650 * config/aarch64/aarch64.md
651 (copysignsf3): Fix mask generation.
653 2017-06-07 Jakub Jelinek <jakub@redhat.com>
655 * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
657 (class dump_manager): Add register_dumps method.
658 * dumpfile.c: Include langhooks.h.
659 (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
660 (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
661 (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
662 (dump_manager::dump_register): Start with 512 entries instead of 32.
663 (dump_manager::register_dumps): New method.
664 * toplev.c (general_init): Instead of invoking register_dumps
665 langhook, invoke register_dumps method on the dump manager.
666 * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
669 2017-06-07 Richard Sandiford <richard.sandiford@linaro.org>
671 * doc/md.texi: Clarify the restrictions on a define_insn condition.
672 Say that # requires an associated define_split to exist, and that
673 the define_split must be suitable for use after register allocation.
675 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
677 * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
678 (compute_outgoing_frequencies): Also initialize zero counts.
679 (find_many_sub_basic_blocks): Do not produce uninitialized profile
680 around loops; preserve more of profile when nothing changes.
682 2017-06-06 Jim Wilson <jim.wilson@linaro.org>
684 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
686 * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
687 * config/arm/arm-cpu-cdata.h: Regenerate.
688 * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
689 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
690 * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
691 * config/arm/arm.c (arm_qdf24xx_tune): Delete.
692 * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
694 * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
696 * config/arm/t-rmprofile: Likewise.
697 * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
699 2017-06-06 David S. Miller <davem@davemloft.net>
702 * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
703 blockage if function uses alloca.
705 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
707 * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
708 New "uid" fields to hold pretty-print IDs of group and ref.
709 Memory references are now identified as <group_id>:<ref_id>
710 instead of using [random] addresses.
711 (dump_mem_details): Simplify, no functional change.
712 (dump_mem_ref): Simplify and make output more concise.
713 Replace couple of fprintf's throughout code with calls to dump_mem_ref.
714 (find_or_create_group): Initialize group uid.
715 (record_ref): Initialize ref uid. Improve debug output.
716 (prune_group_by_reuse, should_issue_prefetch_p,)
717 (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
718 (mark_nontemporal_store, determine_loop_nest_reuse):
719 Improve debug output.
721 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
723 * dbgcnt.def (prefetch): New debug counter.
724 * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
725 (schedule_prefetches): Stop issueing prefetches if debug counter
728 2017-06-06 Tom de Vries <tom@codesourcery.com>
730 * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
731 gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
733 2017-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
735 * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
736 Use aarch64_reg_or_zero predicate for operand 4.
737 (aarch64_compare_and_swap<mode> define_insn_and_split):
738 Use aarch64_reg_or_zero predicate for operand 3. Add 'Z' constraint.
739 (aarch64_store_exclusive<mode>): Likewise for operand 2.
741 2017-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
743 * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
744 (arm_compute_save_core_reg_mask): This.
745 (thumb1_compute_save_reg_mask): Rename into ...
746 (thumb1_compute_save_core_reg_mask): This.
747 (arm_compute_save_reg0_reg12_mask): Adapt comment.
748 (arm_compute_frame_layout): Likewise.
750 2017-06-06 Richard Biener <rguenther@suse.de>
752 PR tree-optimization/80974
753 * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
754 keep or clear leaders SSA info.
756 2017-06-06 Tom de Vries <tom@codesourcery.com>
758 * config/nvptx/nvptx.c (split_mode_p): New function.
759 (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
761 2017-06-06 Tom de Vries <tom@codesourcery.com>
763 * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
765 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
768 * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
771 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
773 * shrink-wrap.c (handle_simple_exit): Update profile.
774 (try_shrink_wrapping): Upate profile.
776 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
778 * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
779 (tree_guess_outgoing_edge_probabilities): New.
780 * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
781 * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
783 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
785 * ipa-split.c (split_function): Initialize return bb profile.
787 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
789 * profile.c (compute_branch_probabilities): Also initialize
792 2017-06-06 Richard Biener <rguenther@suse.de>
794 PR tree-optimization/80928
795 * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
796 (vect_analyze_loop_operations): Properly guard analysis for
798 (vect_transform_loop): Likewise.
799 (vect_analyze_loop_2): Also reset SLP type on PHIs.
800 (vect_model_induction_cost): Do not cost for pure SLP.
801 (vectorizable_induction): Pass in SLP node, implement SLP vectorization
802 of induction in inner loop vectorization.
803 * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
804 (vect_get_and_check_slp_defs): Handle vect_induction_def.
805 (vect_build_slp_tree): Likewise. Handle PHIs as terminating the
807 (vect_analyze_slp_cost_1): Cost induction.
808 (vect_detect_hybrid_slp_stmts): Handle PHIs.
809 (vect_get_slp_vect_defs): Likewise.
810 * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
811 (vect_transform_stmt): Handle SLP reductions.
812 * tree-vectorizer.h (vectorizable_induction): Adjust.
814 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
816 * config/rs6000/rs6000.c (make_resolver_func): Update
817 init_lowered_empty_function call.
819 2017-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
821 * doc/invoke.texi: Document the -fprofile-abs-path option.
822 * common.opt (fprofile-abs-path): New option.
823 * gcov-io.h (gcov_write_filename): Declare.
824 * gcov-io.c (gcov_write_filename): New function.
825 * coverage.c (coverage_begin_function): Use gcov_write_filename.
826 * profile.c (output_location): Likewise.
828 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
830 * shring-wrap.c: Revert accidental commit.
832 2017-06-05 Volker Reichelt <v.reichelt@netcologne.de>
834 * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
836 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
838 * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
840 * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
841 profile in callgraph edge.
842 * profile-count.h (apply_probability): If THIS is 0, then result is 0
843 (apply_scale): Likewise.
844 * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
845 Also scale profile when inlining function with zero profile.
846 (initialize_cfun): Update exit block profile even when it is zero.
847 * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
848 when profile is read.
850 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
852 * config/rs6000/rs6000.c (toplevel): Include attribs.h.
853 (CLONE_*): New constants to define the processors we can generate
854 code for with the target_clone attribute.
855 (rs6000_clone_map): New array to identify which clone processors
856 the current program is running on.
857 (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
858 target_clone attribute.
859 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
860 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
861 (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
862 (cpu_expand_builtin): Add support for target_clone attribute.
863 (rs6000_valid_attribute_p): Allow "default" attribute.
864 (get_decl_name): New debug function to simplify printing the
865 current function name in debugging statements.
866 (rs6000_clone_priority): New functions to support the target_clone
867 attribute, and be able to generate code to switch between ISA 2.05
868 through ISA 3.0 (power6 through power9).
869 (rs6000_compare_version_priority): Likewise.
870 (rs6000_get_function_versions_dispatcher): Likewise.
871 (make_resolver_func): Likewise.
872 (add_condition_to_bb): Likewise.
873 (dispatch_function_versions): Likewise.
874 (rs6000_generate_version_dispatcher_body): Likewise.
875 (rs6000_can_inline_p): Call get_decl_name for debugging usage.
876 (fusion_gpr_load_p): Fix a spacing issue.
877 * doc/extend.texi (Common Function Attributes): Document that the
878 PowerPC supports the target_clone attribute.
880 2017-06-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
882 * config/arm/arm.h: explain F symbol found in description of ARM
883 register allocation in its legend.
885 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
887 * config/mips/frame-header-opt.c: Include profile-count.h.
888 * config/riscv/riscv.c: Include profile-count.h
890 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
892 * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
894 (sm_set_flag_if_changed): Add bbs field.
895 (execute_sm_if_changed_flag_set): Pass BBS.
896 (execute_sm): Update.
898 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
900 * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
903 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
905 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
906 (peephole2): New peephole2 to emit the above.
907 * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
909 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
911 * config/aarch64/aarch64.c (define_peephole2 above
912 *sub_<shift>_<mode>): New peephole.
914 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
916 * config/i386/i386.c (make_resolver_func): Update.
917 * Makefile.in: Add profile-count.h and profile-count.o
918 * auto-profile.c (afdo_indirect_call): Update to new API.
919 (afdo_set_bb_count): Update.
920 (afdo_propagate_edge): Update.
921 (afdo_propagate_circuit): Update.
922 (afdo_calculate_branch_prob): Update.
923 (afdo_annotate_cfg): Update.
924 * basic-block.h: Include profile-count.h
925 (struct edge_def): Turn count to profile_count.
926 (struct basic_block_def): Likewie.
927 (REG_BR_PROB_BASE): Move to profile-count.h
928 (RDIV): Move to profile-count.h
929 * bb-reorder.c (max_entry_count): Turn to profile_count.
930 (find_traces): Update.
931 (rotate_loop):Update.
932 (connect_traces):Update.
933 (sanitize_hot_paths):Update.
934 * bt-load.c (migrate_btr_defs): Update.
935 * cfg.c (RDIV): Remove.
936 (init_flow): Use alloc_block.
937 (alloc_block): Uninitialize count.
938 (unchecked_make_edge): Uninitialize count.
939 (check_bb_profile): Update.
940 (dump_edge_info): Update.
941 (dump_bb_info): Update.
942 (update_bb_profile_for_threading): Update.
943 (scale_bbs_frequencies_int): Update.
944 (scale_bbs_frequencies_gcov_type): Update.
945 (scale_bbs_frequencies_profile_count): New.
946 * cfg.h (update_bb_profile_for_threading): Update.
947 (scale_bbs_frequencies_profile_count): Declare.
948 * cfgbuild.c (compute_outgoing_frequencies): Update.
949 (find_many_sub_basic_blocks): Update.
950 * cfgcleanup.c (try_forward_edges): Update.
951 (try_crossjump_to_edge): Update.
952 * cfgexpand.c (expand_gimple_tailcall): Update.
953 (construct_exit_block): Update.
954 * cfghooks.c (verify_flow_info): Update.
955 (dump_bb_for_graph): Update.
956 (split_edge): Update.
957 (make_forwarder_block): Update.
958 (duplicate_block): Update.
959 (account_profile_record): Update.
960 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
961 (get_estimated_loop_iterations): Update.
962 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
963 (single_likely_exit): Update.
964 * cfgloopmanip.c (scale_loop_profile): Update.
966 (set_zero_probability): Update.
967 (lv_adjust_loop_entry_edge): Update.
968 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
969 (purge_dead_edges): Update.
970 (rtl_account_profile_record): Update.
971 * cgraph.c (cgraph_node::create): Uninitialize count.
972 (symbol_table::create_edge): Uninitialize count.
973 (cgraph_update_edges_for_call_stmt_node): Update.
974 (cgraph_edge::dump_edge_flags): Update.
975 (cgraph_node::dump): Update.
976 (cgraph_edge::maybe_hot_p): Update.
977 * cgraph.h: Include profile-count.h
978 (create_clone), create_edge, create_indirect_edge): Update.
979 (cgraph_node): Turn count to profile_count.
980 (cgraph_edge0: Likewise.
981 (make_speculative, clone): Update.
982 (create_edge): Update.
983 (init_lowered_empty_function): Update.
984 * cgraphclones.c (cgraph_edge::clone): Update.
985 (duplicate_thunk_for_node): Update.
986 (cgraph_node::create_clone): Update.
987 * cgraphunit.c (cgraph_node::analyze): Update.
988 (cgraph_node::expand_thunk): Update.
989 * final.c (dump_basic_block_info): Update.
990 * gimple-streamer-in.c (input_bb): Update.
991 * gimple-streamer-out.c (output_bb): Update.
992 * graphite.c (print_global_statistics): Update.
993 (print_graphite_scop_statistics): Update.
994 * hsa-brig.c: Include basic-block.h.
995 * hsa-dump.c: Include basic-block.h.
996 * hsa-gen.c (T sum_slice): Update.
997 (convert_switch_statements):Update.
998 * hsa-regalloc.c: Include basic-block.h.
999 * ipa-chkp.c (chkp_produce_thunks): Update.
1000 * ipa-cp.c (struct caller_statistics): Update.
1001 (init_caller_stats): Update.
1002 (gather_caller_stats): Update.
1003 (ipcp_cloning_candidate_p): Update.
1004 (good_cloning_opportunity_p): Update.
1005 (get_info_about_necessary_edges): Update.
1006 (dump_profile_updates): Update.
1007 (update_profiling_info): Update.
1008 (update_specialized_profile): Update.
1009 (perhaps_add_new_callers): Update.
1010 (decide_about_value): Update.
1011 (ipa_cp_c_finalize): Update.
1012 * ipa-devirt.c (struct odr_type_warn_count): Update.
1013 (struct decl_warn_count): Update.
1014 (struct final_warning_record): Update.
1015 (possible_polymorphic_call_targets): Update.
1016 (ipa_devirt): Update.
1017 * ipa-fnsummary.c (redirect_to_unreachable): Update.
1018 * ipa-icf.c (sem_function::merge): Update.
1019 * ipa-inline-analysis.c (do_estimate_edge_time): Update.
1020 * ipa-inline.c (compute_uninlined_call_time): Update.
1021 (compute_inlined_call_time): Update.
1022 (want_inline_small_function_p): Update.
1023 (want_inline_self_recursive_call_p): Update.
1024 (edge_badness): Update.
1025 (lookup_recursive_calls): Update.
1026 (recursive_inlining): Update.
1027 (inline_small_functions): Update.
1028 (dump_overall_stats): Update.
1029 (dump_inline_stats): Update.
1030 * ipa-profile.c (ipa_profile_generate_summary): Update.
1031 (ipa_propagate_frequency): Update.
1032 (ipa_profile): Update.
1033 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
1034 * ipa-utils.c (ipa_merge_profiles): Update.
1035 * loop-doloop.c (doloop_modify): Update.
1036 * loop-unroll.c (report_unroll): Update.
1037 (unroll_loop_runtime_iterations): Update.
1038 * lto-cgraph.c (lto_output_edge): Update.
1039 (lto_output_node): Update.
1040 (input_node): Update.
1041 (input_edge): Update.
1042 (merge_profile_summaries): Update.
1043 * lto-streamer-in.c (input_cfg): Update.
1044 * lto-streamer-out.c (output_cfg): Update.
1045 * mcf.c (create_fixup_graph): Update.
1046 (adjust_cfg_counts): Update.
1047 (sum_edge_counts): Update.
1048 * modulo-sched.c (sms_schedule): Update.
1049 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
1050 * predict.c (maybe_hot_count_p): Update.
1051 (probably_never_executed): Update.
1052 (dump_prediction): Update.
1053 (combine_predictions_for_bb): Update.
1054 (propagate_freq): Update.
1055 (handle_missing_profiles): Update.
1056 (counts_to_freqs): Update.
1057 (rebuild_frequencies): Update.
1058 (force_edge_cold): Update.
1059 * predict.h: Include profile-count.h
1060 (maybe_hot_count_p, counts_to_freqs): UPdate.
1061 * print-rtl-function.c: Do not include cfg.h
1062 * print-rtl.c: Include basic-block.h
1063 * profile-count.c: New file.
1064 * profile-count.h: New file.
1065 * profile.c (is_edge_inconsistent): Update.
1066 (correct_negative_edge_counts): Update.
1067 (is_inconsistent): Update.
1068 (set_bb_counts): Update.
1069 (read_profile_edge_counts): Update.
1070 (compute_frequency_overlap): Update.
1071 (compute_branch_probabilities): Update; Initialize and deinitialize
1073 (branch_prob): Update.
1074 * profile.h (bb_gcov_counts, edge_gcov_counts): New.
1075 (edge_gcov_count): New.
1076 (bb_gcov_count): New.
1077 * shrink-wrap.c (try_shrink_wrapping): Update.
1078 * tracer.c (better_p): Update.
1079 * trans-mem.c (expand_transaction): Update.
1080 (ipa_tm_insert_irr_call): Update.
1081 (ipa_tm_insert_gettmclone_call): Update.
1082 * tree-call-cdce.c: Update.
1083 * tree-cfg.c (gimple_duplicate_sese_region): Update.
1084 (gimple_duplicate_sese_tail): Update.
1085 (gimple_account_profile_record): Update.
1086 (execute_fixup_cfg): Update.
1087 * tree-inline.c (copy_bb): Update.
1088 (copy_edges_for_bb): Update.
1089 (initialize_cfun): Update.
1090 (freqs_to_counts): Update.
1091 (copy_cfg_body): Update.
1092 (expand_call_inline): Update.
1093 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
1094 * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
1095 (try_unroll_loop_completely): Update.
1096 (try_peel_loop): Update.
1097 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
1098 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
1099 * tree-ssa-loop-split.c (connect_loops): Update.
1100 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
1101 * tree-ssa-reassoc.c (branch_fixup): Update.
1102 * tree-ssa-tail-merge.c (replace_block_by): Update.
1103 * tree-ssa-threadupdate.c (create_block_for_threading): Update.
1104 (compute_path_counts): Update.
1105 (update_profile): Update.
1106 (recompute_probabilities): Update.
1107 (update_joiner_offpath_counts): Update.
1108 (estimated_freqs_path): Update.
1109 (freqs_to_counts_path): Update.
1110 (clear_counts_path): Update.
1111 (ssa_fix_duplicate_block_edges): Update.
1112 (duplicate_thread_path): Update.
1113 * tree-switch-conversion.c (case_bit_test_cmp): Update.
1114 (struct switch_conv_info): Update.
1115 * tree-tailcall.c (decrease_profile): Update.
1116 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
1117 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
1118 * value-prof.c (check_counter): Update.
1119 (gimple_divmod_fixed_value): Update.
1120 (gimple_mod_pow2): Update.
1121 (gimple_mod_subtract): Update.
1122 (gimple_ic_transform): Update.
1123 (gimple_stringop_fixed_value): Update.
1124 * value-prof.h (gimple_ic): Update.
1126 2017-06-02 Carl Love <cel@us.ibm.com>
1128 * config/rs6000/rs6000-c: Add support for built-in functions
1129 vector double vec_doublee (vector signed int);
1130 vector double vec_doublee (vector unsigned int);
1131 vector double vec_doublee (vector float);
1132 vector double vec_doubleh (vector signed int);
1133 vector double vec_doubleh (vector unsigned int);
1134 vector double vec_doubleh (vector float);
1135 vector double vec_doublel (vector signed int);
1136 vector double vec_doublel (vector unsigned int);
1137 vector double vec_doublel (vector float);
1138 vector double vec_doubleo (vector signed int);
1139 vector double vec_doubleo (vector unsigned int);
1140 vector double vec_doubleo (vector float);.
1141 * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
1142 DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
1144 * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
1145 unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
1146 unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
1148 * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
1149 vec_doublel, vec_doubleh.
1150 * doc/extend.texi: Update the built-in documentation file for the
1151 new built-in functions.
1153 2017-06-02 David Malcolm <dmalcolm@redhat.com>
1156 * ipa-inline-analysis.c (free_growth_caches): Set
1157 edge_removal_hook_holder to NULL after removing it.
1159 2017-06-02 Sudakshina Das <sudi.das@arm.com>
1161 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
1162 comparision with zero.
1164 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
1165 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
1166 for early expansion of vec_min and vec_max builtins.
1167 (builtin_function_type): Add min/max unsigned variants to those
1168 identified as having unsigned arguments.
1170 2017-06-02 Olivier Hainque <hainque@adacore.com>
1172 * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
1174 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1176 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
1177 Use VALL_F16 iterator rather than VALL.
1179 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1181 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
1182 Emit CBNZ inside loop when doing a strong exchange and comparing
1183 against zero. Generate the CC flags after the loop.
1185 2017-06-02 David Edelsohn <dje.gcc@gmail.com>
1187 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
1188 (dl_section_ref): New.
1189 (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
1190 On AIX, append an expression to subtract the size of the
1191 section length to dl_section_ref.
1193 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
1195 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
1196 for early expansion of vector absolute builtins.
1198 2017-06-02 Richard Biener <rguenther@suse.de>
1200 * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
1201 what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
1203 2017-06-02 Richard Biener <rguenther@suse.de>
1205 PR tree-optimization/80948
1206 * tree-tailcall.c (find_tail_calls): Track stmts to move in
1209 2017-06-02 Richard Biener <rguenther@suse.de>
1211 * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
1213 * tree-vect-stmts.c (process_use): Do not mark backedge defs
1214 for inductions as relevant.
1216 2017-06-02 Richard Biener <rguenther@suse.de>
1218 * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
1219 (vectorizable_induction): ... this. Remove dead code.
1221 2017-06-02 Eric Botcazou <ebotcazou@adacore.com>
1223 * builtins. (expand_builtin_alloca): Remove second parameter and
1224 infer its value from the first parameter instead.
1225 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
1227 2017-06-02 Jakub Jelinek <jakub@redhat.com>
1229 PR rtl-optimization/80903
1230 * loop-doloop.c (add_test): Unshare sequence.
1232 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1234 * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
1236 2017-06-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1238 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
1240 (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
1241 xlogue_layout::get_instance, logue_layout::xlogue_layout,
1242 sp_valid_at, fp_valid_at, choose_basereg): Formatting.
1243 (xlogue_layout::get_stub_rtx): Make static.
1244 (xlogue_layout::get_stub_name): Avoid const-cast, make static.
1245 (xlogue_layout::compute_stub_managed_regs): Rename to...
1246 (xlogue_layout::count_stub_managed_regs): ...this.
1247 (xlogue_layout::is_stub_managed_reg): New function.
1248 (xlogue_layout::m_stub_names): Rename to...
1249 (xlogue_layout::s_stub_names): ...this, make static.
1250 (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
1251 xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
1252 xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
1253 xlogue_layout::s_stub_names): Instantiate statics.
1254 (stub_managed_regs): Remove.
1255 (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
1256 (disable_call_ms2sysv_xlogues): Rename to...
1257 (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
1258 (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
1260 (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
1261 change after reload_completed.
1262 (ix86_can_use_return_insn_p): Use the ix86_frame data structure
1264 (ix86_expand_prologue): Likewise.
1265 (ix86_expand_epilogue): Likewise.
1266 (ix86_expand_split_stack_prologue): Likewise.
1267 (ix86_compute_frame_layout): Remove frame parameter ...
1268 (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
1269 (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
1271 (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
1272 (ix86_frame): Move from here ...
1273 * config/i386/i386.h (ix86_frame): ... to here.
1274 (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
1275 complete ix86_frame data structure instead. Remove some_ld_name.
1277 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
1279 * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
1280 symbols that hold a DECL_VALUE_EXPR.
1282 2017-06-01 Martin Jambor <mjambor@suse.cz>
1284 PR tree-optimization/80898
1285 * tree-sra.c (process_subtree_disqualification): Removed.
1286 (disqualify_candidate): Do not acll
1287 process_subtree_disqualification.
1288 (subtree_mark_written_and_enqueue): New function.
1289 (propagate_all_subaccesses): Set grp_write of LHS subtree if the
1290 RHS has been disqualified and re-queue LHS if necessary. Apart
1291 from that, ignore disqualified RHS.
1293 2017-06-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1295 * config/s390/s390.c (s390_emit_epilogue): Disable early return
1296 address fetch for z10 or later.
1298 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1300 * config/arc/arc.md (tst_movb): Add guard when splitting.
1302 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1304 * config/arc/arc.c (arc_can_eliminate): Test against
1305 arc_frame_pointer_needed.
1307 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1309 * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
1310 to prevent store reordering.
1311 * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
1312 (type): Add block type.
1313 (stack_tie): Define special instruction to be used in
1316 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1318 * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
1319 constraint. It is not valid for the pattern.
1320 (noncommutative_binary_comparison): Likewise.
1322 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1324 * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
1327 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1329 * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
1330 be used by the reg-alloc.
1332 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1334 * config/arc/arc.md (mulsi3): Avoid use of hard registers before
1335 reg-alloc when having mul64 or mul32x16 instructions.
1336 (mulsidi3): Likewise.
1337 (umulsidi3): Likewise.
1338 (mulsi32x16): New pattern.
1339 (mulsi64): Likewise.
1340 (mulsidi64): Likewise.
1341 (umulsidi64): Likewise.
1342 (MUL32x16_REG): Define.
1343 (mul64_600): Use MUL32x16_REG.
1344 (mac64_600): Likewise.
1345 (umul64_600): Likewise.
1346 (umac64_600): Likewise.
1348 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1350 * config/arc/arc.md (mulsi3_700): Make it commutative.
1352 2017-06-01 Jose E. Marchesi <jose.marchesi@oracle.com>
1354 * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
1356 (*sign_extendsidi2_insn): Likewise for movstosw.
1358 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
1360 * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
1361 the type of the input discriminant value. Convert the
1362 discriminant value of signedness vary.
1364 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
1366 * doc/invoke.texi (-Wcatch-value): Document new shortcut.
1367 Add to -Wall section.
1369 2017-06-01 Richard Biener <rguenther@suse.de>
1372 * fold-const.c (fold_plusminus_mult_expr): If the factored
1373 factor may be zero use a wrapping type for the inner operation.
1374 * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
1375 and handle moved defs.
1376 (process_assignment): Properly guard the unary op case. Return a
1377 tri-state indicating that moving the stmt before the call may allow
1378 to continue. Pass through to_move.
1379 (find_tail_calls): Handle moving unrelated defs before
1382 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
1385 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
1386 splitter result in the canonical way.
1388 2017-05-31 Uros Bizjak <ubizjak@gmail.com>
1390 * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
1391 also for 32bit target. Update insn attributes.
1392 (zero-extendsidi2 splitter): Allow all registers for operand 1.
1394 2017-05-31 Sebastian Peryt <sebastian.peryt@intel.com>
1396 * config/i386/avx512fintrin.h (_mm_mask_max_sd)
1397 (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
1398 (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
1399 (_mm_maskz_min_ss): New intrinsics.
1401 2017-05-31 Martin Liska <mliska@suse.cz>
1403 * tree-vect-loop.c (vect_create_epilog_for_reduction):
1404 Change comment style to one we normally use.
1405 (vectorizable_reduction): Likewise.
1406 (vectorizable_induction): Likewise.
1407 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
1408 (vectorizable_call): Likewise.
1409 (vectorizable_simd_clone_call): Likewise.
1410 (vectorizable_conversion): Likewise.
1411 (vectorizable_assignment): Likewise.
1412 (vectorizable_shift): Likewise.
1413 (vectorizable_operation): Likewise.
1414 (vectorizable_store): Likewise.
1415 (vectorizable_load): Likewise.
1416 * tree-vectorizer.h: Likewise.
1418 2017-05-31 Alexander Monakov <amonakov@ispras.ru>
1420 * passes.c (emergency_dump_function): New.
1421 * tree-pass.h (emergency_dump_function): Declare.
1422 * plugin.c (plugins_internal_error_function): Remove.
1423 * plugin.h (plugins_internal_error_function): Remove declaration.
1424 * toplev.c (internal_error_function): New static function. Use it...
1425 (general_init): ...here.
1427 2017-05-31 Graham Markall <graham.markall@embecosm.com>
1429 * config/arc/arc.c (arc_print_operand): Handle constant operands.
1430 (arc_rtx_costs): Add costs for new patterns.
1431 * config/arc/arc.md: Additional *add_n and *sub_n patterns.
1432 * config/arc/predicates.md: Add _1_2_3_operand predicate.
1434 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
1436 * tree-ssa-strlen.c (get_next_strinfo): New function.
1437 (get_stridx_plus_constant): Use it.
1438 (zero_length_string): Likewise.
1439 (adjust_related_strinfos): Likewise.
1440 (adjust_last_stmt): Likewise.
1442 2017-05-31 Richard Biener <rguenther@suse.de>
1445 * config/i386/i386.c (ix86_expand_builtin): Remove assert
1446 for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
1448 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
1450 * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
1451 loop_vinfo argument and use of dependence distance vectors.
1452 Check instead whether the two references differ only in their
1453 initial value and assume that they have the same alignment if the
1454 difference is a multiple of the vector alignment.
1455 (vect_analyze_data_refs_alignment): Update call accordingly.
1457 2017-05-31 Martin Liska <mliska@suse.cz>
1460 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
1462 2017-05-31 Bin Cheng <bin.cheng@arm.com>
1464 * tree-vect-loop-manip.c (create_intersect_range_checks_index)
1465 (create_intersect_range_checks): Move from ...
1466 * tree-data-ref.c (create_intersect_range_checks_index)
1467 (create_intersect_range_checks): ... to here.
1468 (create_runtime_alias_checks): New function factored from ...
1469 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
1470 here. Call above function.
1471 * tree-data-ref.h (create_runtime_alias_checks): New function.
1473 2017-05-31 Bin Cheng <bin.cheng@arm.com>
1475 * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
1476 segment length for dr_b and compute it in wide_int.
1478 2017-05-31 Richard Biener <rguenther@suse.de>
1480 PR tree-optimization/80906
1481 * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
1482 and pass through iv_map.
1483 (copy_bb_and_scalar_dependences): Adjust.
1484 (translate_pending_phi_nodes): Likewise.
1485 (copy_loop_close_phi_args): Handle code-generating IVs instead
1488 2017-05-30 David Malcolm <dmalcolm@redhat.com>
1490 * diagnostic-color.c (color_dict): Add "type-diff".
1491 (parse_gcc_colors): Update comment.
1492 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1493 -fdiagnostics-show-template-tree and -fno-elide-type.
1494 (GCC_COLORS): Add type-diff to example.
1496 (-fdiagnostics-show-template-tree): New.
1497 (-fno-elide-type): New.
1498 * pretty-print.c (pp_format): Pass quote and formatters[argno] to
1499 the pp_format_decoder callback. Call any m_format_postprocessor's
1501 (pretty_printer::pretty_printer): Initialize
1502 m_format_postprocessor.
1503 (pretty_printer::~pretty_printer): Delete any
1504 m_format_postprocessor.
1505 * pretty-print.h (printer_fn): Add bool and const char ** parameters.
1506 (class format_postprocessor): New class.
1507 (struct pretty_printer::format_decoder): Document the new parameters.
1508 (struct pretty_printer::m_format_postprocessor): New field.
1509 * tree-diagnostic.c (default_tree_printer): Update for new
1510 bool and const char ** params.
1511 * tree-diagnostic.h (default_tree_printer): Likewise.
1513 2017-05-30 Segher Boessenkool <segher@kernel.crashing.org>
1515 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
1516 (lwa_operand): Delete rs6000_gen_cell_microcode test.
1517 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
1518 rs6000_gen_cell_microcode code.
1519 (rs6000_final_prescan_insn): Delete.
1520 (rs6000_opt_vars): Delete the "gen-cell-microcode" and
1521 "warn-cell-microcode" entries.
1522 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
1523 * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
1524 throughout. Change cc_reg_not_micro_cr0_operand to
1525 cc_reg_not_cr0_operand throughout.
1526 (*extendhi<mode>2_noload): Delete.
1527 * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
1528 (mwarn-cell-microcode): Delete.
1529 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
1530 -mgen-cell-microcode and -mwarn-cell-microcode.
1532 2017-05-30 Uros Bizjak <ubizjak@gmail.com>
1535 * config/i386/constraints.md (Yd): New constraint.
1537 * config/i386/i386.md (*movti_internal): Add (?r, Ye)
1538 and (?Yd, r) alternatives. Update insn attributes.
1539 * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
1540 and (?*Yd, r) alternatives. Update insn attributes.
1541 (double-mode inter-unit splitters): Add new GR<->XMM splitters.
1543 2017-05-30 Pierre-Marie de Rodat <derodat@adacore.com>
1545 * gimplify.c (gimplify_modify_expr): Don't create a
1546 DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
1549 2017-05-30 Wilco Dijkstra <wdijkstr@arm.com>
1551 * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
1553 2017-05-30 Richard Biener <rguenther@suse.de>
1555 * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
1556 and reduc_def fields.
1557 (STMT_VINFO_REDUC_TYPE): New define.
1558 (STMT_VINFO_REDUC_DEF): Likewise.
1559 (vect_force_simple_reduction): Adjust prototype.
1560 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
1561 (vect_is_simple_reduction): Remove check_reduction argument.
1562 (vect_force_simple_reduction): Adjust and set
1563 STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
1564 (vectorizable_reduction): Do not re-do reduction analysis
1565 but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
1566 * tree-parloops.c (gather_scalar_reductions): Adjust.
1568 2017-05-30 Richard Biener <rguenther@suse.de>
1571 * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
1574 2017-05-24 Robin Dapp <rdapp@linux.vnet.ibm.com>
1576 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
1577 Introduce unknown_misalignment parameter and remove vf.
1578 (vect_peeling_hash_get_lowest_cost):
1579 Pass unknown_misalignment parameter.
1580 (vect_enhance_data_refs_alignment):
1581 Fix unsupportable data ref treatment.
1583 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
1585 * tree-vect-data-refs.c (vect_get_data_access_cost):
1586 Workaround for SLP handling.
1587 (vect_enhance_data_refs_alignment):
1588 Compute costs for doing no peeling at all, compare to the best
1589 peeling costs so far and avoid peeling if cheaper.
1591 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
1593 * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
1594 Return peeling info and set costs to zero for unlimited cost
1596 (vect_enhance_data_refs_alignment): Also inspect all datarefs
1597 with unknown misalignment. Compute and costs for unknown
1598 misalignment, compare them to the costs for known misalignment
1599 and choose the cheapest for peeling.
1601 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
1603 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
1604 (vect_get_peeling_costs_all_drs): Create function.
1605 (vect_peeling_hash_get_lowest_cost):
1606 Use vect_get_peeling_costs_all_drs.
1607 (vect_peeling_supportable): Create function.
1608 (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
1610 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
1612 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
1613 DR_HAS_NEGATIVE_STEP.
1614 (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
1615 (vect_enhance_data_refs_alignment): Use.
1616 (vect_duplicate_ssa_name_ptr_info): Use.
1617 * tree-vectorizer.h (dr_misalignment): Use.
1618 (known_alignment_for_access_p): Use.
1620 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
1623 * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
1625 (has_section_name): New function.
1627 2017-05-30 Martin Liska <mliska@suse.cz>
1630 * auto-profile.c (get_function_decl_from_block): Fix
1633 2017-05-30 Richard Biener <rguenther@suse.de>
1636 * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
1638 2017-05-30 Martin Liska <mliska@suse.cz>
1640 * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
1641 * dumpfile.h (struct dump_file_info): Remove ctors.
1643 2017-05-30 Martin Liska <mliska@suse.cz>
1645 * predict.def: Fix GNU coding style.
1647 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
1649 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
1650 Mark 'to' argument with ATTRIBUTE_UNUSED.
1652 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
1654 * config/xtensa/xtensa.c (xtensa_emit_call): Use
1655 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
1656 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
1659 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
1661 * doc/install.texi (Options specification): Restore entry of
1662 --enable-sjlj-exceptions.
1664 2017-05-27 Michael Eager <eager@eagercon.com>
1667 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
1669 See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
1671 * config/microblaze/microblaze.h
1672 (FIXED_REGISTERS): Update in macro.
1673 (CALL_USED_REGISTERS): Update in macro.
1675 2017-05-27 François-Xavier Coudett <fxcoudert@gcc.gnu.org>
1677 * doc/install.texi: Add links to macOS binary distributions.
1679 2017-05-27 Jakub Jelinek <jakub@redhat.com>
1683 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
1685 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
1687 2017-05-26 Martin Liska <mliska@suse.cz>
1689 * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
1691 2017-05-26 Martin Liska <mliska@suse.cz>
1693 * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
1694 always leading ';; '.
1695 (dump_bb_info): Likewise.
1696 (brief_dump_cfg): Likewise.
1697 * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
1698 * dumpfile.c: Remove usage of TDF_VERBOSE.
1699 * dumpfile.h (enum dump_kind): Likewise.
1700 (dump_gimple_bb_header): Do not use TDF_COMMENT.
1701 * print-tree.c (debug_verbose): Remove.
1702 * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
1703 (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
1704 * tree-diagnostic.c (default_tree_printer): Replace
1705 TDF_DIAGNOSTIC with TDF_SLIM.
1707 2017-05-26 Bin Cheng <bin.cheng@arm.com>
1709 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
1710 in parameter loop, rather than loop_vinfo.
1711 (create_intersect_range_checks): Ditto.
1712 (vect_create_cond_for_alias_checks): Update call to above functions.
1714 2017-05-26 Bin Cheng <bin.cheng@arm.com>
1716 PR tree-optimization/80815
1717 * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
1718 for merging runtime alias checks. Handle negative DR_STEPs.
1720 2017-05-26 Bin Cheng <bin.cheng@arm.com>
1722 * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
1724 * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
1725 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
1726 out code pruning runtime alias checks.
1727 * tree-data-ref.c (prune_runtime_alias_test_list): New function
1728 factored out from above.
1729 * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
1731 * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
1733 (prune_runtime_alias_test_list): New decalaration.
1735 2017-05-26 Bin Cheng <bin.cheng@arm.com>
1737 * tree-vect-data-refs.c (compare_tree): Rename and move ...
1738 * tree-data-ref.c (data_ref_compare_tree): ... to here.
1739 * tree-data-ref.h (data_ref_compare_tree): New decalaration.
1740 * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
1741 (operator==, comp_dr_with_seg_len_pair): Ditto.
1742 (vect_prune_runtime_alias_test_list): Ditto.
1744 2017-05-26 Martin Liska <mliska@suse.cz>
1747 * params.def: Bound partial-inlining-entry-probability param.
1749 2017-05-26 Marek Polacek <polacek@redhat.com>
1752 * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
1755 2017-05-26 Richard Biener <rguenther@suse.de>
1757 PR tree-optimization/80842
1758 * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
1761 2017-05-26 Richard Biener <rguenther@suse.de>
1763 PR tree-optimization/80844
1764 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
1766 2017-05-25 Sebastian Peryt <sebastian.peryt@intel.com>
1768 * doc/md.texi (Machine Constraints): Update x86 family
1769 machine constraints section to match 'config/i386/constraints.md'.
1771 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
1773 * doc/invoke.texi (-Wcatch-value=): Document new warning option.
1775 2017-05-25 Nathan Sidwell <nathan@acm.org>
1777 * doc/invoke.texi (--enable-languages): Update documentation.
1779 2017-05-25 Martin Liska <mliska@suse.cz>
1781 * dumpfile.c: Add TDF_FOLDING.
1782 * dumpfile.h (enum dump_kind): Likewise.
1783 * genmatch.c (dt_simplify::gen_1): Use it.
1785 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
1787 * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
1789 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
1791 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
1792 * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
1794 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
1796 * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
1797 * match.pd (X == C): Rewrite it here.
1798 (with_possible_nonzero_bits, with_possible_nonzero_bits2,
1799 with_certain_nonzero_bits2): New predicates.
1800 * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
1802 2017-05-24 Nathan Sidwell <nathan@acm.org>
1804 * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
1807 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
1810 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
1812 * config/powerpcspe: New port. Files are copied from the rs6000
1813 port, with "rs6000" in filenames replaced by "powerpcspe".
1815 2017-05-24 Wilco Dijkstra <wdijkstr@arm.com>
1817 PR rtl-optimization/80754
1818 * lra-remat.c (do_remat): Add overlap checks for dst_regno.
1820 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
1822 * config/sparc/sparc.md (length): Return the correct value for -mflat
1823 sibcalls to match output_sibcall.
1825 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
1829 * config/rs6000/rs6000.c (struct machine_function): Add new field
1831 (rs6000_get_separate_components): Init that field, use it.
1832 (rs6000_components_for_bb): Use the field.
1834 2017-05-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
1836 * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
1838 2017-05-24 Peter Bergner <bergner@vnet.ibm.com>
1841 * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
1843 2017-05-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1846 * config/s390/s390.c (s390_check_qrst_address): Check incoming
1847 address against address_operand predicate.
1848 * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
1850 2017-05-24 Eric Botcazou <ebotcazou@adacore.com>
1852 * var-tracking.c (track_expr_p): Do not return 0 for tracked record
1853 parameters passed indirectly.
1855 2017-05-23 Uros Bizjak <ubizjak@gmail.com>
1857 * config/i386/i386.md (*movdi_internal): Remove SSE4
1858 alternative 18 (?r, *v). Update insn attributes.
1859 (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
1860 Update insn attributes.
1861 (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
1862 Update insn attributes.
1863 * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
1864 alternative 1 (r, v). Remove isa attribute.
1865 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
1866 Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
1867 and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
1869 2017-05-23 Tom de Vries <tom@codesourcery.com>
1871 * doc/sourcebuild.texi (Directives, Verify compiler message): Document
1874 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
1876 * cgraphunit.c (symbol_table::process_new_functions): Update.
1877 * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
1878 (inline_generate_summary): Rename to ...
1879 (ipa_fn_summary_generate): ... this one.
1880 (inline_read_summary): Rename to ...
1881 (ipa_fn_summary_read): ... this one.
1882 (inline_write_summary): Rename to ...
1883 (ipa_fn_summary_write): ... this one.
1884 (inline_free_summary): Rename to ...
1885 (ipa_free_fn_summary): ... this one.
1886 (pass_data_local_fn_summary, pass_local_fn_summary,
1887 make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
1888 pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
1889 pass_data_ipa_fn_summary, pass_ipa_fn_summary,
1890 make_pass_ipa_fn_summary): New.
1891 * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
1892 inline_write_summary, inline_free_summary): Remove.
1893 (ipa_free_fn_summary) : New.
1894 * ipa-inline.c (ipa_inline): Update.
1895 (pass_ipa_inline): Do not generate summaries.
1896 * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
1898 * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
1899 and add pass_ipa_fn_summary.
1900 * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
1902 (make_pass_inline_parameters): Remove.
1904 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
1906 * omp-low.c (struct omp_context): Remove "default_kind" member.
1909 * omp-offload.c (execute_oacc_device_lower): Remove the
1910 parallelism dimensions function attributes for unparallelized
1911 OpenACC kernels constructs.
1913 2017-05-23 Martin Liska <mliska@suse.cz>
1915 * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
1917 (cgraph_edge::make_speculative): Likewise.
1918 (cgraph_edge::resolve_speculation): Likewise.
1919 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1920 (cgraph_node::dump): Likewise.
1921 * cgraph.h: Likewise.
1922 * cgraphunit.c (analyze_functions): Likewise.
1923 (symbol_table::compile): Likewise.
1924 * ipa-cp.c (print_all_lattices): Likewise.
1925 (determine_versionability): Likewise.
1926 (initialize_node_lattices): Likewise.
1927 (ipcp_verify_propagated_values): Likewise.
1928 (estimate_local_effects): Likewise.
1929 (update_profiling_info): Likewise.
1930 (create_specialized_node): Likewise.
1931 (perhaps_add_new_callers): Likewise.
1932 (decide_about_value): Likewise.
1933 (decide_whether_version_node): Likewise.
1934 (identify_dead_nodes): Likewise.
1935 (ipcp_store_bits_results): Likewise.
1936 * ipa-devirt.c (dump_targets): Likewise.
1937 (ipa_devirt): Likewise.
1938 * ipa-icf.c (sem_item::dump): Likewise.
1939 (sem_function::equals): Likewise.
1940 (sem_variable::equals): Likewise.
1941 (sem_item_optimizer::read_section): Likewise.
1942 (sem_item_optimizer::execute): Likewise.
1943 (congruence_class::dump): Likewise.
1944 * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
1945 (dump_inline_summary): Likewise.
1946 (estimate_node_size_and_time): Likewise.
1947 (inline_analyze_function): Likewise.
1948 * ipa-inline-transform.c (inline_call): Likewise.
1949 * ipa-inline.c (report_inline_failed_reason): Likewise.
1950 (want_early_inline_function_p): Likewise.
1951 (edge_badness): Likewise.
1952 (update_edge_key): Likewise.
1953 (inline_small_functions): Likewise.
1954 * ipa-profile.c (ipa_profile): Likewise.
1955 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
1956 (ipa_make_edge_direct_to_target): Likewise.
1957 (remove_described_reference): Likewise.
1958 (ipa_impossible_devirt_target): Likewise.
1959 (propagate_controlled_uses): Likewise.
1960 (ipa_print_node_params): Likewise.
1961 (ipcp_transform_function): Likewise.
1962 * ipa-pure-const.c (pure_const_read_summary): Likewise.
1963 (propagate_pure_const): Likewise.
1964 * ipa-reference.c (generate_summary): Likewise.
1965 (read_write_all_from_decl): Likewise.
1966 (propagate): Likewise.
1967 (ipa_reference_read_optimization_summary): Likewise.
1968 * ipa-utils.c (ipa_merge_profiles): Likewise.
1969 * ipa.c (walk_polymorphic_call_targets): Likewise.
1970 (symbol_table::remove_unreachable_nodes): Likewise.
1971 (ipa_single_use): Likewise.
1972 * passes.c (execute_todo): Likewise.
1973 * predict.c (drop_profile): Likewise.
1974 * symtab.c (symtab_node::get_dump_name): New function.
1975 (symtab_node::dump_name): Likewise.
1976 (symtab_node::dump_asm_name): Likewise.
1977 (symtab_node::dump_references): Likewise.
1978 (symtab_node::dump_referring): Likewise.
1979 (symtab_node::dump_base): Likewise.
1980 (symtab_node::debug_symtab): Likewise.
1981 * tree-sra.c (convert_callers_for_node): Likewise.
1982 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
1983 * value-prof.c (init_node_map): Likewise.
1985 2017-05-23 Martin Liska <mliska@suse.cz>
1987 * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
1988 and symtab_node::debug_symtab to symbol_table::debug.
1989 * cgraphunit.c (analyze_functions): Use the renamed function.
1990 (symbol_table::compile): Likewise.
1991 * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
1992 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
1993 * passes.c (execute_todo): Likewise.
1994 * symtab.c (symbol_table::dump): New function.
1995 * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
1997 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
1999 * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
2000 that nonconst implies exec.
2002 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
2004 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
2005 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
2006 (inline_edge_summary_vec): Turn into ...
2007 (ipa_call_summaries): ... this one.
2008 (redirect_to_unreachable, edge_set_predicate,
2009 evaluate_properties_for_edge, inline_summary_alloc,
2010 reset_ipa_call_summary, reset_inline_summary,
2011 inline_summary_t::duplicate): Update.
2012 (inline_edge_duplication_hook): Turn to ...
2013 (ipa_call_summary_t::duplicate): ... this one.
2014 (inline_edge_removal_hook): Turn to ...
2015 (ipa_call_summary_t::remove): ... this one.
2016 (dump_inline_edge_summary): Turn to ...
2017 (dump_ipa_call_summary): ... this one.
2018 (estimate_function_body_sizes): Update.
2019 (inline_update_callee_summaries): Update.
2020 (remap_edge_change_prob): Update.
2021 (remap_edge_summaries): Update.
2022 (inline_merge_summary): Update.
2023 (do_estimate_edge_time): Update.
2024 (inline_generate_summary): Update.
2025 (inline_read_section): Update.
2026 (inline_read_summary): Update.
2027 (inline_free_summary): Update.
2028 * ipa-inline.c (can_inline_edge_p): Update.
2029 (compute_inlined_call_time): Update.
2030 (want_inline_small_function_p): Update.
2031 (edge_badness): Update.
2032 (early_inliner): Update.
2033 * ipa-inline.h (inline_edge_summary): Turn to ...
2034 (ipa_call_summary): ... this one.
2035 (ipa_call_summary_t): New class.
2036 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
2037 (ipa_call_summaries): New.
2038 (inline_edge_summary): Remove.
2039 (estimate_edge_growth): Update.
2040 * ipa-profile.c (ipa_propagate_frequency_1): Update.
2041 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
2042 * ipa-split.c (execute_split_functions): Update.
2043 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
2045 2017-05-23 Tom de Vries <tom@codesourcery.com>
2047 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
2048 attributes): Document rdrand effective target.
2050 2017-05-23 Tom de Vries <tom@codesourcery.com>
2052 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
2053 attributes): Sort alphabetically.
2055 2017-05-23 Georg-Johann Lay <avr@gjlay.de>
2057 * config/avr/genmultilib.awk: Use gsub instead of gensub.
2059 2017-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2062 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
2063 V2DF/V2DI splat into two separate patterns, one that handles
2064 registers, and the other that only handles memory. Drop support
2065 for splatting from a GPR on ISA 2.07 and then splitting the
2066 splat into direct move and splat.
2067 (vsx_splat_<mode>_reg): Likewise.
2068 (vsx_splat_<mode>_mem): Likewise.
2070 2017-05-22 Segher Boessenkool <segher@kernel.crashing.org>
2072 * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
2074 2017-05-22 Jakub Jelinek <jakub@redhat.com>
2077 * omp-low.c (finish_taskreg_remap): New function.
2078 (finish_taskreg_scan): If unit size of ctx->record_type
2079 is non-constant, unshare the size expression and replace
2080 decls in it with possible outer var refs.
2083 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
2084 GOVD_SHARED rather than GOVD_PRIVATE with it.
2085 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
2086 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
2089 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
2090 as last argument to build_outer_var_ref for pointer bases of array
2093 2017-05-19 Martin Sebor <msebor@redhat.com>
2095 * print-tree.c (print_node): Print DECL_READ_P flag.
2097 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
2099 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
2100 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
2101 * cgraph.c: Likewise.
2102 * cgraphunit.c: Likewise.
2103 * gengtype.c: Likewise.
2104 * ipa-cp.c: Likewise.
2105 * ipa-devirt.c: Likewise.
2106 * ipa-icf.c: Likewise.
2107 * ipa-predicate.c: Likewise.
2108 * ipa-profile.c: Likewise.
2109 * ipa-prop.c: Likewise.
2110 * ipa-split.c: Likewise.
2112 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
2113 edge_predicate_pool, dump_inline_hints,
2114 inline_summary::account_size_time, redirect_to_unreachable,
2115 edge_set_predicate, set_hint_predicate,
2116 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
2117 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
2118 inline_summary_t::remove, remap_hint_predicate_after_duplication,
2119 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
2120 ipa_call_summary_t::remove, initialize_growth_caches,
2121 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
2122 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
2123 mark_modified, unmodified_parm_1, unmodified_parm,
2124 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
2125 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
2126 compute_bb_predicates, will_be_nonconstant_expr_predicate,
2127 will_be_nonconstant_predicate, record_modified_bb_info,
2128 get_minimal_bb, record_modified, param_change_prob,
2129 phi_result_unknown_predicate, predicate_for_phi_result,
2130 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
2131 estimate_function_body_sizes, compute_inline_parameters,
2132 compute_inline_parameters_for_curren, pass_data_inline_parameters,
2133 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
2134 inline_update_callee_summaries, remap_edge_change_prob,
2135 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
2136 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
2137 inline_analyze_function, inline_summary_t::insert,
2138 inline_generate_summary, read_ipa_call_summary, inline_read_section,
2139 inline_read_summary, write_ipa_call_summary, inline_write_summary,
2140 inline_free_summary): Move to ipa-fnsummary.h
2141 (predicate_t): Remove.
2142 * ipa-fnsummary.c: New file.
2143 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
2144 (enum inline_hints_vals, inline_hints, agg_position_info,
2145 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
2146 inline_summaries, ipa_call_summary, ipa_call_summary_t,
2147 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
2148 dump_inline_summary, dump_inline_hints, inline_generate_summary,
2149 inline_read_summary, inline_write_summary, inline_free_summary,
2150 inline_analyze_function, initialize_inline_failed,
2151 inline_merge_summary, inline_update_overall_summary,
2152 compute_inline_parameters): Move to ipa-fnsummary.h
2153 * ipa-fnsummary.h: New file.
2154 * ipa-inline-transform.h: Include ipa-inline.h.
2155 * ipa-inline.c: LIkewise.
2157 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
2159 * ipa-inline.c (edge_badness): Use inlined_time instead of
2160 inline_summaries->get.
2162 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
2164 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
2166 2017-05-22 Nathan Sidwell <nathan@acm.org>
2168 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
2169 (fdump-lang): Document 'raw' option.
2170 * dumpfile.h (TDI_tu): Delete.
2171 * dumpfile.c (dump_files): Remove translation-unit.
2172 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
2174 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
2176 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
2177 command option from $(AWK) call.
2178 * config/avr/genmultilib.awk: Simplify and rewrite so that it
2179 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
2180 [FORMAT]: Remove handling of variable.
2181 * config/avr/t-multilib: Regenerate.
2183 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
2185 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
2187 (dump_inline_summary): Do not print self_time.
2188 (estimate_function_body_sizes): Do not set self_time.
2189 (compute_inline_parameters): Likewise.
2190 (inline_read_section, inline_write_summary): Do not stream self_time.
2191 * ipa-inline.h (inline_summary): Drop self_time.
2193 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
2195 * ipa-inline-analysis.c (account_size_time): Rename to ...
2196 (inline_summary::account_size_time): ... this one.
2197 (reset_ipa_call_summary): Turn to ...
2198 (ipa_call_summary::reset): ... this one.
2199 (reset_inline_summary): Turn to ...
2200 (inline_summary::reset): ... this one.
2201 (inline_summary_t::remove): Update.
2202 (inline_summary_t::duplicate): Update.
2203 (ipa_call_summary_t::remove): Update.
2204 (dump_inline_summary): Update.
2205 (estimate_function_body_sizes): Update.
2206 (compute_inline_parameters): Update.
2207 (estimate_node_size_and_time): Update.
2208 (inline_merge_summary): Update.
2209 (inline_update_overall_summary): Update.
2210 (inline_read_section): Update.
2211 (inline_write_summary): Update.
2212 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
2213 add account_size_time and reset member functions.
2214 (ipa_call_summary): Add reset function.
2215 * ipa-predicate.h (predicate::operator &): Constify.
2217 2017-05-22 Richard Biener <rguenther@suse.de>
2219 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
2221 2017-05-19 Jason Merrill <jason@redhat.com>
2223 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
2225 2017-05-19 Marek Polacek <polacek@redhat.com>
2228 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
2229 TYPE_OVERFLOW_WRAPS checks.
2231 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
2233 * tree-core.h (enum omp_clause_default_kind): Add
2234 "OMP_CLAUSE_DEFAULT_PRESENT".
2235 * tree-pretty-print.c (dump_omp_clause): Handle it.
2236 * gimplify.c (enum gimplify_omp_var_data): Add
2237 "GOVD_MAP_FORCE_PRESENT".
2238 (gimplify_adjust_omp_clauses_1): Map it to
2239 "GOMP_MAP_FORCE_PRESENT".
2240 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
2242 * gimplify.c (oacc_default_clause): Clarify.
2244 2017-05-19 Nathan Sidwell <nathan@acm.org>
2246 LANG_HOOK_REGISTER_DUMPS
2247 * toplev.c (general_init): Call register dump lang hook.
2248 * doc/invoke.texi: Document -fdump-lang option family.
2249 * dumpfile.c (dump_files): Remove class dump here.
2250 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
2251 * dumpfile.h (tree_dump_index): Remove TDI_class.
2252 * langhooks-def.h (lhd_register_dumps): Declare.
2253 (LANG_HOOKS_REGISTER_DUMPS): Define.
2254 (LANG_HOOKS_INITIALIZER): Add it.
2255 * langhooks.c (lhd_register_dumps): Define.
2256 * langhooks.h (struct lang_hooks): Add register_dumps.
2258 2017-05-19 Nathan Sidwell <nathan@acm.org>
2260 * context.h (context::set_passes): New.
2261 * context.c (context::context): Do not create pass manager.
2262 * toplev.c (general_init): Create pass manager here.
2264 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2266 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
2267 use this splitter if two add or or instructions would also work for
2268 the constant we want to generate.
2270 2017-05-19 Richard Biener <rguenther@suse.de>
2273 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
2274 predicate evaluation.
2276 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
2278 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
2280 * ipa-inline.c (want_inline_small_function_p): Do not cast to
2283 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
2285 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
2286 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
2287 (inline_edge_summary_vec): Turn into ...
2288 (ipa_call_summaries): ... this one.
2289 (redirect_to_unreachable, edge_set_predicate,
2290 evaluate_properties_for_edge, inline_summary_alloc,
2291 reset_ipa_call_summary, reset_inline_summary,
2292 inline_summary_t::duplicate): Update.
2293 (inline_edge_duplication_hook): Turn to ...
2294 (ipa_call_summary_t::duplicate): ... this one.
2295 (inline_edge_removal_hook): Turn to ...
2296 (ipa_call_summary_t::remove): ... this one.
2297 (dump_inline_edge_summary): Turn to ...
2298 (dump_ipa_call_summary): ... this one.
2299 (estimate_function_body_sizes): Update.
2300 (inline_update_callee_summaries): Update.
2301 (remap_edge_change_prob): Update.
2302 (remap_edge_summaries): Update.
2303 (inline_merge_summary): Update.
2304 (do_estimate_edge_time): Update.
2305 (inline_generate_summary): Update.
2306 (inline_read_section): Update.
2307 (inline_read_summary): Update.
2308 (inline_free_summary): Update.
2309 * ipa-inline.c (can_inline_edge_p): Update.
2310 (compute_inlined_call_time): Update.
2311 (want_inline_small_function_p): Update.
2312 (edge_badness): Update.
2313 (early_inliner): Update.
2314 * ipa-inline.h (inline_edge_summary): Turn to ...
2315 (ipa_call_summary): ... this one.
2316 (ipa_call_summary_t): New class.
2317 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
2318 (ipa_call_summaries): New.
2319 (inline_edge_summary): Remove.
2320 (estimate_edge_growth): Update.
2321 * ipa-profile.c (ipa_propagate_frequency_1): Update.
2322 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
2323 * ipa-split.c (execute_split_functions): Update.
2324 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
2326 2017-05-19 Richard Biener <rguenther@suse.de>
2329 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
2331 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
2333 * config/rs6000/rs6000.c (struct machine_function): Add field
2334 fpr_is_wrapped_separately.
2335 (rs6000_get_separate_components): Use 64 components. Handle the
2337 (rs6000_components_for_bb): Handle the FPR components.
2338 (rs6000_emit_prologue_components): Handle the FPR components.
2339 (rs6000_emit_epilogue_components): Handle the FPR components.
2340 (rs6000_set_handled_components): Handle the FPR components.
2341 (rs6000_emit_prologue): Don't output prologue code for those FPRs
2342 that are already separately shrink-wrapped.
2343 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
2344 that are already separately shrink-wrapped.
2346 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2349 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
2352 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
2353 (define_peephole2 for Altivec d-form load): Add peepholes to catch
2354 cases where the register allocator uses a move and an offsettable
2355 memory operation to/from a FPR register on ISA 2.06/2.07.
2356 (define_peephole2 for Altivec d-form store): Likewise.
2358 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
2361 * config/i386/mmx.md (*mov<mode>_internal): Enable
2362 alternatives 11, 12, 13 and 14 also for 32bit targets.
2363 Remove alternatives 15, 16, 17 and 18.
2364 * config/i386/sse.md (vec_concatv2di): Change
2365 alternative (!x, *y) to (x, ?!*Yn).
2367 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
2369 * dumpfile.h (enum dump_kind): Remove stray comma.
2371 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
2373 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
2374 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
2375 predicate::num_conditions
2376 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
2377 (CHANGED): turn into predicate::changed.
2378 (agg_position_info): Move to ipa-predicate.h
2379 (add_condition, predicate::add_clause, predicate::operator &=,
2380 predicate::or_with, predicate::evaluate, predicate::probability,
2381 dump_condition, dump_clause, predicate::dump,
2382 predicate::remap_after_duplication, predicate::remap_after_inlining,
2383 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
2384 (evaluate_conditions_for_known_args): Update.
2385 (set_cond_stmt_execution_predicate): Update.
2386 * ipa-inline.h: Include ipa-predicate.h
2387 (condition, inline_param_summary, conditions, agg_position_info,
2388 predicate): Move to ipa-predicate.h
2389 * ipa-predicate.c: New file.
2390 * ipa-predicate.h: New file.
2392 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
2394 * final.c (leaf_function_p): Check we are not in a sequence.
2396 2017-05-18 Martin Liska <mliska@suse.cz>
2398 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
2399 * dumpfile.c (dump_register): Use new enum dump_kind.
2400 (get_dump_file_name): Likewise.
2401 (dump_enable_all): Likewise.
2402 (dump_switch_p_1): Likewise.
2403 (enable_rtl_dump_file): Remove usage of TDF_RTL.
2404 * dumpfile.h (enum dump_kind): New enum type.
2405 (struct dump_file_info): Create constructor and
2406 format fields and comments.
2407 * passes.c (pass_manager::register_one_dump_file):
2409 * statistics.c (statistics_early_init): Likewise.
2410 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
2411 TDF_TREE with TDF_SLIM.
2412 (gather_memory_references_ref): Likewise.
2414 2017-05-18 Martin Liska <mliska@suse.cz>
2416 * vec.h (struct vnull): Use it.
2418 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
2420 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
2421 (true_predicate, false_predicate, true_predicate_p,
2422 false_predicate_p): Remove.
2423 (single_cond_predicate, not_inlined_predicate): Turn to member function
2425 (add_condition): Update.
2426 (add_clause): Turn to...
2427 (predicate::add_clause): ... this one; update; allow passing NULL
2429 (and_predicates): Turn to ...
2430 (predicate::operator &=): ... this one.
2431 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
2432 (or_predicates): Turn to ...
2433 (predicate::or_with): ... this one.
2434 (evaluate_predicate): Turn to ...
2435 (predicate::evaluate): ... this one.
2436 (predicate_probability): Turn to ...
2437 (predicate::probability): ... this one.
2438 (dump_condition): Update.
2439 (dump_predicate): Turn to ...
2440 (predicate::dump): ... this one.
2441 (account_size_time): Update.
2442 (edge_set_predicate): Update.
2443 (set_hint_predicate): UPdate.
2444 (evaluate_conditions_for_known_args): Update.
2445 (evaluate_properties_for_edge): Update.
2446 (remap_predicate_after_duplication): Turn to...
2447 (predicate::remap_after_duplication): ... this one.
2448 (remap_hint_predicate_after_duplication): Update.
2449 (inline_summary_t::duplicate): UPdate.
2450 (dump_inline_edge_summary): Update.
2451 (dump_inline_summary): Update.
2452 (set_cond_stmt_execution_predicate): Update.
2453 (set_switch_stmt_execution_predicate): Update.
2454 (compute_bb_predicates): Update.
2455 (will_be_nonconstant_expr_predicate): Update.
2456 (will_be_nonconstant_predicate): Update.
2457 (phi_result_unknown_predicate): Update.
2458 (predicate_for_phi_result): Update.
2459 (array_index_predicate): Update.
2460 (estimate_function_body_sizes): Update.
2461 (estimate_node_size_and_time): Update.
2462 (estimate_ipcp_clone_size_and_time): Update.
2463 (remap_predicate): Rename to ...
2464 (predicate::remap_after_inlining): ... this one.
2465 (remap_hint_predicate): Update.
2466 (inline_merge_summary): Update.
2467 (inline_update_overall_summary): Update.
2468 (estimate_size_after_inlining): Update.
2469 (read_predicate): Rename to ...
2470 (predicate::stream_in): ... this one.
2471 (read_inline_edge_summary): Update.
2472 (write_predicate): Rename to ...
2473 (predicate::stream_out): ... this one.
2474 (write_inline_edge_summary): Update.
2475 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
2476 (clause_t): Turn to uint32_t
2477 (predicate): Turn to class; implement constructor and operators
2479 (size_time_entry): Update.
2480 (inline_summary): Update.
2481 (inline_edge_summary): Update.
2483 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
2485 * fold-const.c (fold_binary_loc): Move transformation...
2486 * match.pd (C - X CMP X): ... here.
2488 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
2490 * config/sparc/sparc.c (sparc_option_override): Set function
2491 alignment for -mcpu=niagara7 to 64 to match the I$ line.
2492 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
2494 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
2496 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
2498 2017-05-18 Marek Polacek <polacek@redhat.com>
2501 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
2502 (pass_ubsan::execute): Call gimple_assign_single_p instead of
2503 gimple_assign_load_p.
2505 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
2508 * real.c (do_compare): Give decimal_do_compare preference over
2509 comparing just the signs.
2511 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
2513 * doc/md.texi (Canonicalization of Instructions): Describe the
2514 canonical form of instructions that inherently set a condition
2517 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
2520 * tree-cfg.c: Move deletion of unreachable case statements to after
2521 the merging of consecutive case labels.
2523 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
2525 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
2526 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
2527 restoring of callee-saved registers.
2529 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
2531 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
2532 * config/visium/visium.c (single_set_and_flags): Likewise.
2533 * config/visium/visium.md (Substitutions): Likewise.
2535 2017-05-17 Martin Liska <mliska@suse.cz>
2537 * cfg.c: Introduce dump_flags_t type and
2538 use it instead of int type.
2540 * cfghooks.c: Likewise.
2541 * cfghooks.h (struct cfg_hooks): Likewise.
2542 * cfgrtl.c: Likewise.
2543 * cfgrtl.h: Likewise.
2544 * cgraph.c (cgraph_node::get_body): Likewise.
2545 * coretypes.h: Likewise.
2546 * domwalk.c: Likewise.
2547 * domwalk.h: Likewise.
2548 * dumpfile.c (struct dump_option_value_info): Likewise.
2549 (dump_enable_all): Likewise.
2550 (dump_switch_p_1): Likewise.
2551 (opt_info_switch_p): Likewise.
2552 * dumpfile.h (enum tree_dump_index): Likewise.
2553 (struct dump_file_info): Likewise.
2554 * genemit.c: Likewise.
2555 * generic-match-head.c: Likewise.
2556 * gengtype.c (open_base_files): Likewise.
2557 * gimple-pretty-print.c: Likewise.
2558 * gimple-pretty-print.h: Likewise.
2559 * graph.c (print_graph_cfg): Likewise.
2560 * graphite-scop-detection.c (dot_all_sese): Likewise.
2561 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
2562 * loop-unroll.c (report_unroll): Likewise.
2563 * passes.c (pass_manager::register_one_dump_file): Likewise.
2564 * print-tree.c: Likewise.
2565 * statistics.c: Likewise.
2566 * tree-cfg.c: Likewise.
2567 * tree-cfg.h: Likewise.
2568 * tree-dfa.c: Likewise.
2569 * tree-dfa.h: Likewise.
2570 * tree-dump.c (dump_function): Likewise.
2571 * tree-dump.h (struct dump_info): Likewise.
2572 * tree-pretty-print.c: Likewise.
2573 * tree-pretty-print.h: Likewise.
2574 * tree-ssa-live.c: Likewise.
2575 * tree-ssa-live.h: Likewise.
2576 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
2577 * tree-vect-loop.c: Likewise.
2578 * tree-vect-slp.c: Likewise.
2580 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
2581 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2583 PR tree-optimization/80457
2584 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
2585 of all arguments to a statement as scalar_to_vec operations.
2586 (vectorizable_call): Adjust call to vect_model_simple_cost for
2588 (vectorizable_conversion): Likewise.
2589 (vectorizable_assignment): Likewise.
2590 (vectorizable_shift): Likewise.
2591 (vectorizable_operation): Likewise.
2592 (vectorizable_comparison): Likewise.
2593 (vect_is_simple_cond): Record the def types for operands.
2594 (vectorizable_condition): Likewise, call vect_model_simple_cost.
2595 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
2596 for statement argument count.
2598 2017-05-16 Carl Love <cel@us.ibm.com>
2600 * config/rs6000/rs6000-c: Add support for built-in functions
2601 vector unsigned long long vec_bperm (vector unsigned long long,
2602 vector unsigned char)
2603 vector signed long long vec_mule (vector signed int,
2605 vector unsigned long long vec_mule (vector unsigned int,
2606 vector unsigned int)
2607 vector signed long long vec_mulo (vector signed int,
2609 vector unsigned long long vec_mulo (vector unsigned int,
2610 vector unsigned int)
2611 vector signed char vec_sldw (vector signed char,
2614 vector unsigned char vec_sldw (vector unsigned char,
2615 vector unsigned char,
2617 vector signed short vec_sldw (vector signed short,
2618 vector signed short,
2620 vector unsigned short vec_sldw (vector unsigned short,
2621 vector unsigned short,
2623 vector signed int vec_sldw (vector signed int,
2626 vector unsigned int vec_sldw (vector unsigned int,
2627 vector unsigned int,
2629 vector signed long long vec_sldw (vector signed long long,
2630 vector signed long long,
2632 vector unsigned long long vec_sldw (vector unsigned long long,
2633 vector unsigned long long,
2635 * config/rs6000/rs6000-c: Add support for built-in functions
2636 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
2637 * config/rs6000/altivec.h: Add defintion for vec_sldw.
2638 * doc/extend.texi: Update the built-in documentation for the
2639 new built-in functions.
2641 2017-05-16 Marek Polacek <polacek@redhat.com>
2645 * tree.c (save_expr): Don't fold the expression.
2647 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
2649 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
2650 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
2651 and (?*y,m). Update insn attributes.
2653 2017-05-16 Martin Liska <mliska@suse.cz>
2655 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
2656 flags argument of print_gimple_stmt, print_gimple_expr,
2657 print_generic_stmt and print_generic_expr.
2658 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
2659 * coretypes.h: Likewise.
2660 * except.c (dump_eh_tree): Likewise.
2661 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2662 * gimple-pretty-print.h: Likewise.
2663 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
2664 (backprop::push_to_worklist): Likewise.
2665 (backprop::pop_from_worklist): Likewise.
2666 (backprop::process_use): Likewise.
2667 (backprop::intersect_uses): Likewise.
2668 (note_replacement): Likewise.
2669 * gimple-ssa-store-merging.c
2670 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
2671 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
2672 (pass_store_merging::execute): Likewise.
2673 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
2674 (ssa_base_cand_dump_callback): Likewise.
2675 (dump_incr_vec): Likewise.
2676 (replace_refs): Likewise.
2677 (replace_mult_candidate): Likewise.
2678 (create_add_on_incoming_edge): Likewise.
2679 (create_phi_basis): Likewise.
2680 (insert_initializers): Likewise.
2681 (all_phi_incrs_profitable): Likewise.
2682 (introduce_cast_before_cand): Likewise.
2683 (replace_one_candidate): Likewise.
2684 * gimplify.c (gimplify_expr): Likewise.
2685 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
2686 (set_rename): Likewise.
2687 (rename_uses): Likewise.
2688 (copy_loop_phi_nodes): Likewise.
2689 (add_close_phis_to_merge_points): Likewise.
2690 (copy_loop_close_phi_args): Likewise.
2691 (copy_cond_phi_args): Likewise.
2692 (graphite_copy_stmts_from_block): Likewise.
2693 (translate_pending_phi_nodes): Likewise.
2694 * graphite-poly.c (print_pdr): Likewise.
2695 (dump_gbb_cases): Likewise.
2696 (dump_gbb_conditions): Likewise.
2697 (print_scop_params): Likewise.
2698 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
2699 (build_cross_bb_scalars_use): Likewise.
2700 (gather_bbs::before_dom_children): Likewise.
2701 * hsa-dump.c (dump_hsa_immed): Likewise.
2702 * ipa-cp.c (print_ipcp_constant_value): Likewise.
2703 (get_replacement_map): Likewise.
2704 * ipa-inline-analysis.c (dump_condition): Likewise.
2705 (estimate_function_body_sizes): Likewise.
2706 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
2707 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
2708 * ipa-prop.c (ipa_dump_param): Likewise.
2709 (ipa_print_node_jump_functions_for_edge): Likewise.
2710 (ipa_modify_call_arguments): Likewise.
2711 (ipa_modify_expr): Likewise.
2712 (ipa_dump_param_adjustments): Likewise.
2713 (ipa_dump_agg_replacement_values): Likewise.
2714 (ipcp_modif_dom_walker::before_dom_children): Likewise.
2715 * ipa-pure-const.c (check_stmt): Likewise.
2716 (pass_nothrow::execute): Likewise.
2717 * ipa-split.c (execute_split_functions): Likewise.
2718 * omp-offload.c (dump_oacc_loop_part): Likewise.
2719 (dump_oacc_loop): Likewise.
2720 * trans-mem.c (tm_log_emit): Likewise.
2721 (tm_memopt_accumulate_memops): Likewise.
2722 (dump_tm_memopt_set): Likewise.
2723 (dump_tm_memopt_transform): Likewise.
2724 * tree-cfg.c (gimple_verify_flow_info): Likewise.
2725 (print_loop): Likewise.
2726 * tree-chkp-opt.c (chkp_print_addr): Likewise.
2727 (chkp_gather_checks_info): Likewise.
2728 (chkp_get_check_result): Likewise.
2729 (chkp_remove_check_if_pass): Likewise.
2730 (chkp_use_outer_bounds_if_possible): Likewise.
2731 (chkp_reduce_bounds_lifetime): Likewise.
2732 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
2733 (chkp_mark_completed_bounds): Likewise.
2734 (chkp_register_incomplete_bounds): Likewise.
2735 (chkp_mark_invalid_bounds): Likewise.
2736 (chkp_maybe_copy_and_register_bounds): Likewise.
2737 (chkp_build_returned_bound): Likewise.
2738 (chkp_get_bound_for_parm): Likewise.
2739 (chkp_build_bndldx): Likewise.
2740 (chkp_get_bounds_by_definition): Likewise.
2741 (chkp_generate_extern_var_bounds): Likewise.
2742 (chkp_get_bounds_for_decl_addr): Likewise.
2743 * tree-chrec.c (chrec_apply): Likewise.
2744 * tree-data-ref.c (dump_data_reference): Likewise.
2745 (dump_subscript): Likewise.
2746 (dump_data_dependence_relation): Likewise.
2747 (analyze_overlapping_iterations): Likewise.
2748 * tree-inline.c (expand_call_inline): Likewise.
2749 (tree_function_versioning): Likewise.
2750 * tree-into-ssa.c (dump_defs_stack): Likewise.
2751 (dump_currdefs): Likewise.
2752 (dump_names_replaced_by): Likewise.
2753 (dump_update_ssa): Likewise.
2754 (update_ssa): Likewise.
2755 * tree-object-size.c (pass_object_sizes::execute): Likewise.
2756 * tree-parloops.c (build_new_reduction): Likewise.
2757 (try_create_reduction_list): Likewise.
2758 (ref_conflicts_with_region): Likewise.
2759 (oacc_entry_exit_ok_1): Likewise.
2760 (oacc_entry_exit_single_gang): Likewise.
2761 * tree-pretty-print.h: Likewise.
2762 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
2763 (get_scalar_evolution): Likewise.
2764 (add_to_evolution): Likewise.
2765 (get_loop_exit_condition): Likewise.
2766 (analyze_evolution_in_loop): Likewise.
2767 (analyze_initial_condition): Likewise.
2768 (analyze_scalar_evolution): Likewise.
2769 (instantiate_scev): Likewise.
2770 (number_of_latch_executions): Likewise.
2771 (gather_chrec_stats): Likewise.
2772 (final_value_replacement_loop): Likewise.
2773 (scev_const_prop): Likewise.
2774 * tree-sra.c (dump_access): Likewise.
2775 (disqualify_candidate): Likewise.
2776 (create_access): Likewise.
2778 (maybe_add_sra_candidate): Likewise.
2779 (create_access_replacement): Likewise.
2780 (analyze_access_subtree): Likewise.
2781 (analyze_all_variable_accesses): Likewise.
2782 (sra_modify_assign): Likewise.
2783 (initialize_constant_pool_replacements): Likewise.
2784 (find_param_candidates): Likewise.
2785 (decide_one_param_reduction): Likewise.
2786 (replace_removed_params_ssa_names): Likewise.
2787 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2788 * tree-ssa-copy.c (dump_copy_of): Likewise.
2789 (copy_prop_visit_cond_stmt): Likewise.
2790 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
2791 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
2792 (record_equivalences_from_stmt): Likewise.
2793 * tree-ssa-dse.c (compute_trims): Likewise.
2794 (delete_dead_call): Likewise.
2795 (delete_dead_assignment): Likewise.
2796 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
2797 (forward_propagate_into_cond): Likewise.
2798 (pass_forwprop::execute): Likewise.
2799 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2800 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
2802 (move_computations_worker): Likewise.
2803 (execute_sm): Likewise.
2804 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
2805 (remove_exits_and_undefined_stmts): Likewise.
2806 (remove_redundant_iv_tests): Likewise.
2807 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
2808 (adjust_iv_update_pos): Likewise.
2809 * tree-ssa-math-opts.c (bswap_replace): Likewise.
2810 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
2811 (value_replacement): Likewise.
2812 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2813 * tree-ssa-pre.c (print_pre_expr): Likewise.
2814 (get_representative_for): Likewise.
2815 (create_expression_by_pieces): Likewise.
2816 (insert_into_preds_of_block): Likewise.
2817 (eliminate_insert): Likewise.
2818 (eliminate_dom_walker::before_dom_children): Likewise.
2819 (eliminate): Likewise.
2820 (remove_dead_inserted_code): Likewise.
2821 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2822 * tree-ssa-reassoc.c (get_rank): Likewise.
2823 (eliminate_duplicate_pair): Likewise.
2824 (eliminate_plus_minus_pair): Likewise.
2825 (eliminate_not_pairs): Likewise.
2826 (undistribute_ops_list): Likewise.
2827 (eliminate_redundant_comparison): Likewise.
2828 (update_range_test): Likewise.
2829 (optimize_range_tests_var_bound): Likewise.
2830 (optimize_vec_cond_expr): Likewise.
2831 (rewrite_expr_tree): Likewise.
2832 (rewrite_expr_tree_parallel): Likewise.
2833 (linearize_expr): Likewise.
2834 (break_up_subtract): Likewise.
2835 (linearize_expr_tree): Likewise.
2836 (attempt_builtin_powi): Likewise.
2837 (attempt_builtin_copysign): Likewise.
2838 (transform_stmt_to_copy): Likewise.
2839 (transform_stmt_to_multiply): Likewise.
2840 (dump_ops_vector): Likewise.
2841 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
2842 (print_scc): Likewise.
2843 (set_ssa_val_to): Likewise.
2844 (visit_reference_op_store): Likewise.
2845 (visit_use): Likewise.
2846 (sccvn_dom_walker::before_dom_children): Likewise.
2847 (run_scc_vn): Likewise.
2848 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
2850 (expr_hash_elt::print): Likewise.
2851 (const_and_copies::pop_to_marker): Likewise.
2852 (const_and_copies::record_const_or_copy_raw): Likewise.
2853 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
2854 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
2855 (dump_predicates): Likewise.
2856 (find_uninit_use): Likewise.
2857 (warn_uninitialized_phi): Likewise.
2858 (pass_late_warn_uninitialized::execute): Likewise.
2859 * tree-ssa.c (verify_vssa): Likewise.
2860 (verify_ssa): Likewise.
2861 (maybe_optimize_var): Likewise.
2862 * tree-vrp.c (dump_value_range): Likewise.
2863 (dump_all_value_ranges): Likewise.
2864 (dump_asserts_for): Likewise.
2865 (register_edge_assert_for_2): Likewise.
2866 (vrp_visit_cond_stmt): Likewise.
2867 (vrp_visit_switch_stmt): Likewise.
2868 (vrp_visit_stmt): Likewise.
2869 (vrp_visit_phi_node): Likewise.
2870 (simplify_cond_using_ranges_1): Likewise.
2871 (fold_predicate_in): Likewise.
2872 (evrp_dom_walker::before_dom_children): Likewise.
2873 (evrp_dom_walker::push_value_range): Likewise.
2874 (evrp_dom_walker::pop_value_range): Likewise.
2875 (execute_early_vrp): Likewise.
2877 2017-05-16 Richard Biener <rguenther@suse.de>
2879 * dwarf2out.c (loc_list_from_tree_1): Do not create
2880 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
2882 2017-05-16 Richard Biener <rguenther@suse.de>
2884 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
2886 (note_variable_value_in_expr): If we resolved the decl ref
2887 do not push to the stack.
2889 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
2891 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
2892 operations in fast-math mode.
2893 (vaddq_f16): Likewise.
2894 (vmul_f16): Likewise.
2895 (vmulq_f16): Likewise.
2896 (vsub_f16): Likewise.
2897 (vsubq_f16): Likewise.
2898 * config/arm/neon.md (add<mode>3): New.
2900 (fma:<VH:mode>3): New. Also remove outdated comment.
2903 2017-05-16 Martin Liska <mliska@suse.cz>
2907 * ipa-devirt.c (warn_types_mismatch): Fix typo.
2908 (odr_types_equivalent_p): Likewise.
2910 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
2912 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
2914 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
2917 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
2918 non-interunit SSE move alternatives with '?'.
2919 (zero-extendsidi peephole2): New peephole to skip intermediate
2920 general register in SSE zero-extend sequence.
2922 2017-05-15 Jeff Law <law@redhat.com>
2924 * reorg.c (relax_delay_slots): Create a new variable to hold
2925 the temporary target rather than clobbering TARGET_LABEL.
2927 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
2928 missing argument to extract_bit_field call.
2929 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
2931 2017-05-15 Martin Liska <mliska@suse.cz>
2934 * gcc.c (process_command): Do not allow empty argument of -o option.
2936 2017-05-15 Renlin Li <renlin.li@arm.com>
2938 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
2939 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
2940 * config/aarch64/constraints.md (Usf): Add long call check.
2941 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
2942 (call_value): Likewise.
2943 (sibcall): Likewise.
2944 (sibcall_value): Likewise.
2946 (call_value_insn): New.
2947 (sibcall_insn): Update rtx pattern.
2948 (sibcall_value_insn): Likewise.
2949 (call_internal): Remove.
2950 (call_value_internal): Likewise.
2951 (sibcall_internal): Likewise.
2952 (sibcall_value_internal): Likewise.
2953 (call_reg): Likewise.
2954 (call_symbol): Likewise.
2955 (call_value_reg): Likewise.
2956 (call_value_symbol): Likewise.
2958 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
2961 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
2963 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
2965 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
2966 compatible with CCGOCmode and with CCZmode.
2968 2017-05-14 Martin Sebor <msebor@redhat.com>
2971 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
2972 (gimple_fold_builtin_snprintf): Same.
2973 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
2974 (gimple_fold_builtin_snprintf): Same.
2975 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
2977 (is_call_safe): New function.
2978 (try_substitute_return_value): Call it.
2979 (try_simplify_call): New function.
2980 (pass_sprintf_length::handle_gimple_call): Call it.
2982 2017-05-14 Martin Sebor <msebor@redhat.com>
2985 * builtins.c (expand_builtin_stpncpy): Simplify.
2987 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
2989 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
2990 * config/i386/i386.h
2991 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
2992 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
2993 (struct machine_function): Add new members call_ms2sysv,
2994 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
2995 (struct machine_frame_state): New fields sp_realigned and
2996 sp_realigned_offset.
2997 * config/i386/i386.c
2998 (enum xlogue_stub): New enum.
2999 (enum xlogue_stub_sets): New enum.
3000 (class xlogue_layout): New class.
3001 (struct ix86_frame): New fields stack_realign_allocate_offset,
3002 stack_realign_offset and outlined_save_offset. Modify comments to
3003 detail stack layout when using out-of-line stubs.
3004 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
3005 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
3006 -mcall-ms2sysv-xlogues.
3007 (stub_managed_regs): New static variable.
3008 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
3009 registers managed by out-of-line stub.
3010 (disable_call_ms2sysv_xlogues): New function.
3011 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
3012 m->call_ms2sysv when appropriate and compute frame layout for
3014 (sp_valid_at, fp_valid_at): New inline functions.
3015 (choose_basereg): New function.
3016 (choose_baseaddr): Add align parameter, use choose_basereg and modify
3018 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
3019 Use align parameter of choose_baseaddr to generated aligned SSE movs
3021 (pro_epilogue_adjust_stack): Modify to track
3022 machine_frame_state::sp_realigned.
3023 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
3024 (ix86_nsaved_sseregs): Likewise.
3025 (ix86_emit_save_regs): Likewise.
3026 (ix86_emit_save_regs_using_mov): Likewise.
3027 (ix86_emit_save_sse_regs_using_mov): Likewise.
3028 (get_scratch_register_on_entry): Likewise.
3029 (gen_frame_set): New function.
3030 (gen_frame_load): Likewise.
3031 (gen_frame_store): Likewise.
3032 (emit_outlined_ms2sysv_save): Likewise.
3033 (emit_outlined_ms2sysv_restore): Likewise.
3034 (ix86_expand_prologue): Modify stack re-alignment code and call
3035 emit_outlined_ms2sysv_save when appropriate.
3036 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
3037 parameter rtx_insn *insn, which allows the function to be used to only
3039 (ix86_expand_epilogue): Modify validity checks of frame and stack
3040 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
3041 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
3042 * config/i386/predicates.md
3043 (save_multiple): New predicate.
3044 (restore_multiple): Likewise.
3045 * config/i386/sse.md
3046 (save_multiple<mode>): New pattern.
3047 (save_multiple_realign<mode>): Likewise.
3048 (restore_multiple<mode>): Likewise.
3049 (restore_multiple_and_return<mode>): Likewise.
3050 (restore_multiple_leave_return<mode>): Likewise.
3051 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
3053 2017-05-14 Julia Koval <julia.koval@intel.com>
3055 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
3056 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
3057 (__builtin_ia32_xsetbv): New builtins.
3058 * config/i386/i386.c (ix86_expand_special_args_builtin):
3060 (ix86_expand_builtin): Special expand for new intrinsics.
3061 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
3062 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
3063 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
3065 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3067 * cfganal.c (inverted_post_order_compute): Change argument type
3069 * cfganal.h (inverted_post_order_compute): Adjust prototype.
3070 * df-core.c (rest_of_handle_df_initialize): Adjust.
3071 (rest_of_handle_df_finish): Likewise.
3072 (df_analyze_1): Likewise.
3073 (df_analyze): Likewise.
3074 (loop_inverted_post_order_compute): Change argument to be a vec *.
3075 (df_analyze_loop): Adjust.
3076 (df_get_n_blocks): Likewise.
3077 (df_get_postorder): Likewise.
3078 * df.h (struct df_d): Change field to be a vec.
3079 * lcm.c (compute_laterin): Adjust.
3080 (compute_available): Likewise.
3081 * lra-lives.c (lra_create_live_ranges_1): Likewise.
3082 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
3083 * tree-ssa-pre.c (compute_antic): Likewise.
3085 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3087 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
3088 (depth_first_search::depth_first_search): Change structure init
3089 function to this constructor.
3090 (depth_first_search::add_bb): Rename function to this member.
3091 (depth_first_search::execute): Likewise.
3092 (flow_dfs_compute_reverse_finish): Adjust.
3094 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3096 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
3097 (longest_simple_path): Likewise.
3098 * shrink-wrap.c (spread_components): Likewise.
3099 (disqualify_problematic_components): Likewise.
3100 (emit_common_heads_for_components): Likewise.
3101 (emit_common_tails_for_components): Likewise.
3102 (insert_prologue_epilogue_for_components): Likewise.
3104 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3106 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
3109 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3111 * df-core.c (df_set_blocks): Start using auto_bitmap.
3112 (df_compact_blocks): Likewise.
3113 * df-problems.c (df_rd_confluence_n): Likewise.
3114 * df-scan.c (df_insn_rescan_all): Likewise.
3115 (df_process_deferred_rescans): Likewise.
3116 (df_update_entry_block_defs): Likewise.
3117 (df_update_exit_block_uses): Likewise.
3118 (df_entry_block_bitmap_verify): Likewise.
3119 (df_exit_block_bitmap_verify): Likewise.
3120 (df_scan_verify): Likewise.
3121 * lra-constraints.c (lra_constraints): Likewise.
3122 (undo_optional_reloads): Likewise.
3123 (lra_undo_inheritance): Likewise.
3124 * lra-remat.c (calculate_gen_cands): Likewise.
3125 (do_remat): Likewise.
3126 * lra-spills.c (assign_spill_hard_regs): Likewise.
3127 (spill_pseudos): Likewise.
3128 * tree-ssa-pre.c (bitmap_set_and): Likewise.
3129 (bitmap_set_subtract_values): Likewise.
3131 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3133 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
3134 management with auto_bitmap.
3135 (fix_inter_tick): Likewise.
3136 (fix_recovery_deps): Likewise.
3137 * ira.c (add_store_equivs): Likewise.
3138 (find_moveable_pseudos): Likewise.
3139 (split_live_ranges_for_shrink_wrap): Likewise.
3140 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
3141 (rtx_reuse_manager::seen_def_p): Likewise.
3142 (rtx_reuse_manager::set_seen_def): Likewise.
3143 * print-rtl.h (class rtx_reuse_manager): Likewise.
3145 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3147 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
3149 (migrate_btr_def): Likewise.
3150 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
3151 * df-core.c (loop_post_order_compute): Likewise.
3152 (loop_inverted_post_order_compute): Likewise.
3153 * hsa-common.h: Likewise.
3154 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
3155 * init-regs.c (initialize_uninitialized_regs): Likewise.
3156 * ipa-inline.c (resolve_noninline_speculation): Likewise.
3157 (inline_small_functions): Likewise.
3158 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
3159 * ira.c (combine_and_move_insns): Likewise.
3160 (build_insn_chain): Likewise.
3161 * loop-invariant.c (find_invariants): Likewise.
3162 * lower-subreg.c (propagate_pseudo_copies): Likewise.
3163 * predict.c (tree_predict_by_opcode): Likewise.
3164 (predict_paths_leading_to): Likewise.
3165 (predict_paths_leading_to_edge): Likewise.
3166 (estimate_loops_at_level): Likewise.
3167 (estimate_loops): Likewise.
3168 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3169 (spread_components): Likewise.
3170 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
3171 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
3172 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
3173 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
3174 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
3175 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
3176 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3177 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
3178 (mark_threaded_blocks): Likewise.
3179 (thread_through_all_blocks): Likewise.
3180 * tree-ssa.c (verify_ssa): Likewise.
3181 (execute_update_addresses_taken): Likewise.
3182 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
3184 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3186 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
3188 (post_order_compute): Likewise.
3189 (inverted_post_order_compute): Likewise.
3190 (pre_and_rev_post_order_compute_fn): Likewise.
3192 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3194 * genrecog.c (int_set::int_set): Explicitly construct our
3195 auto_vec base class.
3196 * vec.h (auto_vec::auto_vec): New constructor.
3198 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3200 * bitmap.h (class auto_bitmap): New constructor taking
3201 bitmap_obstack * argument.
3203 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3205 * bitmap.h (class auto_bitmap): Change type of m_bits to
3206 bitmap_head, and adjust ctor / dtor and member operators.
3208 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
3210 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
3211 when returned register mode doesn't match original mode.
3213 2017-05-12 Jeff Law <law@redhat.com>
3214 Jakub Jelinek <jakub@redhat.com>
3216 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
3217 we look for cc setter after the compare-elim changes.
3218 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
3219 within the vector to match what compare-elim now expects.
3220 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
3221 (xorsi3_flags, one_cmplsi2_flags): Likewise.
3223 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
3224 after the compare-elim changes.
3225 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
3226 the vector to match what compare-elim now expects.
3227 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
3228 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
3229 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
3230 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
3231 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
3233 * config/visium/visium.c (single_set_and_flags): Fix where
3234 we look for cc setter after the compare-elim changes.
3235 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
3236 with the vector to match what compare-elim now expects.
3237 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
3238 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
3239 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
3240 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
3241 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
3242 (neg<mode>2_insn_set_overflow): Likewise.
3244 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
3247 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
3248 maybe_expand_insn call, set ops[0].target. If still set after call,
3249 set alt_rtl. Add extra arg to recursive calls.
3250 (extract_bit_field): Add alt_rtl argument. Pass to
3252 * expmed.h (extract_bit_field): Fix prototype.
3253 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
3254 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
3255 to extract_bit_field_calls.
3256 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
3257 Pass alt_rtl to extract_bit_field calls.
3258 * calls.c (store_unaligned_arguments_into_psuedos)
3259 load_register_parameters): Pass extra NULL to extract_bit_field calls.
3260 * optabs.c (maybe_legitimize_operand): Clear op->target when call
3262 * optabs.h (struct expand_operand): Add target bitfield.
3264 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
3266 * compare-elim.c (try_eliminate_compare): Canonicalize
3267 operation with embedded compare to
3268 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
3269 (set (reg) (operation)].
3271 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
3273 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
3276 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
3277 cost of adding a carry flag for ADC instruction.
3278 [case MINUS]: Ignore the cost of subtracting a carry flag
3279 for SBB instruction.
3281 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
3283 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
3285 * config/rs6000/bmiintrin.h: New file.
3286 * config/rs6000/bmi2intrin.h: New file.
3287 * config/rs6000/x86intrin.h: New file.
3289 2017-05-12 Jeff Law <law@redhat.com>
3291 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
3294 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
3297 * tree-cfg.c: Remove cfg edges of unreachable case statements.
3299 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
3301 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
3302 early expansion of vector divide builtins.
3303 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
3304 builtins identified as having unsigned arguments.
3306 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
3308 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
3309 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
3310 expansion of vector logical operations (and, andc, or, xor,
3313 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
3315 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
3316 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
3318 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
3320 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
3321 early GIMPLE expansion of vector multiplies.
3323 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
3325 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
3326 TARGET_HAVE_MOVT conditional.
3327 (movt splitter): Likewise.
3329 2017-05-12 Richard Biener <rguenther@suse.de>
3331 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
3332 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3333 Fold all stmts not inplace.
3335 2017-05-12 Richard Biener <rguenther@suse.de>
3337 PR tree-optimization/80713
3338 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
3339 inserted_exprs bit for not removed stmts.
3341 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
3344 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
3345 parallelized" attribute for parallelized OpenACC kernels.
3346 * omp-offload.c (execute_oacc_device_lower): Use it.
3348 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
3349 Set "oacc kernels" attribute.
3350 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
3351 parameter. Adjust all users.
3352 (oacc_fn_attrib_kernels_p): Remove function.
3353 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
3354 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
3355 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
3356 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
3357 assert "oacc kernels" attribute is set.
3359 2017-05-11 Carl Love <cel@us.ibm.com>
3361 * config/rs6000/rs6000-c: Add support for built-in functions
3362 vector unsigned char vec_popcnt (vector signed char)
3363 vector unsigned char vec_popcnt (vector unsigned char)
3364 vector unsigned short vec_popcnt (vector signed short)
3365 vector unsigned short vec_popcnt (vector unsigned short)
3366 vector unsigned int vec_popcnt (vector signed int)
3367 vector unsigned int vec_popcnt (vector unsigned int)
3368 vector unsigned long long vec_popcnt (vector signed long long)
3369 vector unsigned long long vec_popcnt (vector unsigned long long)
3370 vector signed long long vec_slo (vector signed long long,
3372 vector signed long long vec_slo (vector signed long long,
3373 vector unsigned char)
3374 vector unsigned long long vec_slo (vector unsigned long long,
3376 vector unsigned long long vec_slo (vector unsigned long long,
3377 vector unsigned char)
3378 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
3379 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
3380 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
3381 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
3382 * doc/extend.texi: Update the built-in documentation file for the
3383 new built-in functions.
3385 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3387 * attribs.h (sorted_attr_string): Move machine independent
3388 functions for target clone support from the i386 port to common
3389 code. Rename ix86_function_versions to common_function_versions.
3390 Rename make_name to make_unique_name.
3391 (common_function_versions): Likewise.
3392 (make_unique_name): Likewise.
3393 (make_dispatcher_decl): Likewise.
3394 (is_function_default_version): Likewise.
3395 * attribs.c (attr_strcmp): Likewise.
3396 (sorted_attr_string): Likewise.
3397 (common_function_versions): Likewise.
3398 (make_unique_name): Likewise.
3399 (make_dispatcher_decl): Likewise.
3400 (is_function_default_version): Likewise.
3401 * config/i386/i386.c (attr_strcmp): Likewise.
3402 (sorted_attr_string): Likewise.
3403 (ix86_function_versions): Likewise.
3404 (make_name): Likewise.
3405 (make_dispatcher_decl): Likewise.
3406 (is_function_default_version): Likewise.
3407 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
3409 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3412 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3413 Account for direct move costs for vec_construct of integer
3416 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
3419 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
3420 (UNSPEC_STX_ATOMIC): Ditto.
3421 (loaddi_via_sse): New insn.
3422 (storedi_via_sse): Ditto.
3423 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
3424 Update corresponding peephole2 patterns.
3425 (atomic_storedi_fpu): Ditto.
3427 2017-05-11 Julia Koval <julia.koval@intel.com>
3429 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
3430 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
3432 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
3433 (__builtin_ia32_rsqrt14ss_mask): New builtins.
3434 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
3436 2017-05-11 Nathan Sidwell <nathan@acm.org>
3438 * graphite-poly.c: Include dumpfile.h.
3440 * dumpfle.h (dump_function): Declare here ...
3441 * tree-dump.h (dump_function): ... not here.
3442 * dumpfile.c: #include tree-cfg.h.
3443 (dump_function): Move here from ...
3444 * tree-dump.c (dump_function): ... here.
3445 * gimplify.c: #include splay-tree.h, not tree-dump.h.
3446 * graphite-poly.c: Don't include tree-dump.h.
3447 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
3448 * print-tree.c: Likewise.
3449 * stor-layout.c: Likewise.
3450 * tree-nested.c: Likewise.
3452 * dumpfile.c (dump_start): Use TDF_FLAGS.
3453 (dump_enable_all): Fix TDF_KIND check thinko.
3455 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
3457 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3458 array entries to represent two legal parameterizations of the
3459 overloaded __builtin_cmpb function, as represented by the
3460 P6_OV_BUILTIN_CMPB constant.
3461 (altivec_resolve_overloaded_builtin): Add special case handling
3462 for the __builtin_cmpb function, as represented by the
3463 P6_OV_BUILTIN_CMPB constant.
3464 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
3465 (BU_P6_64BIT_2): New macro.
3466 (BU_P6_OVERLOAD_2): New macro
3467 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
3468 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
3469 (CMPB): Add overload support to represent both 32-bit and 64-bit
3470 compare-bytes function.
3471 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
3472 support for TARGET_CMPB.
3473 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
3474 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
3475 documentation of the __builtin_cmpb overloaded built-in function.
3477 2017-05-11 Richard Biener <rguenther@suse.de>
3479 PR tree-optimization/80705
3480 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
3481 bases are not vectorizable.
3483 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3485 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
3486 when counting register pressure.
3488 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3490 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
3491 (iv_ca_more_deps): Renamed to ...
3492 (iv_ca_compare_deps): ... this.
3493 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
3495 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3497 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
3499 (determine_group_iv_costs): ... here.
3500 (find_inv_vars_cb): Record inv var if it's not recorded before.
3502 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3504 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
3505 (get_shiftadd_cost): Ditto.
3507 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3509 * tree-ssa-address.c: Include header file.
3510 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
3512 (add_to_parts): Refactor.
3513 (addr_to_parts): New parameter. Update use of move_hint_to_base.
3514 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
3517 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3519 PR tree-optimization/53090
3520 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
3522 (extract_cond_operands): Detect condition with IV on both sides
3523 and return COMP_IV_EXPR_2.
3524 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
3525 (rewrite_use_compare): Simplify by removing call to function
3526 extract_cond_operands.
3528 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3530 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
3531 (extract_cond_operands): Detect condition comparing against non-
3532 invariant bound and return appropriate enum value.
3533 (find_interesting_uses_cond): Update use of extract_cond_operands.
3534 Handle its return value accordingly.
3535 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
3537 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3539 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
3540 nonlinear iv_use computation in loop invariant sensitive way.
3542 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3544 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
3545 (find_iv_candidates): Call relate_compare_use_with_all_cands.
3547 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3549 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
3550 (dump_cand): Support iv_cand.inv_exprs.
3551 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
3553 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
3556 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3558 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
3560 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
3561 as local function. Include necessary header files.
3562 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
3564 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3566 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
3568 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3570 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
3571 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
3572 RSHIFT_EXPR and BIT_NOT_EXPR.
3574 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3576 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
3577 (adjust_setup_cost): New parameter supporting round up adjustment.
3578 (struct address_cost_data): Delete.
3579 (force_expr_to_var_cost): Don't bound cost with spill_cost.
3580 (split_address_cost, ptr_difference_cost): Delete.
3581 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
3582 (struct ainc_cost_data): New struct.
3583 (get_address_cost_ainc): New function.
3584 (get_address_cost, get_computation_cost): Reimplement.
3585 (determine_group_iv_cost_address): Record inv_expr for all uses of
3587 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
3588 (iv_ca_has_deps): Reimplemented to ...
3589 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
3591 (iv_ca_extend): Call iv_ca_more_deps.
3593 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3595 * tree-ssa-address.c (struct mem_address): Move to header file.
3596 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
3597 * tree-ssa-address.h (struct mem_address): Move from C file.
3598 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
3600 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3602 * tree-affine.h (aff_combination_type): New interface.
3603 (aff_combination_zero_p): Remove static.
3604 (aff_combination_const_p): New interface.
3605 (aff_combination_singleton_var_p): New interfaces.
3607 2017-05-11 Richard Biener <rguenther@suse.de>
3609 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3610 Skip unreachable blocks and destinations.
3611 (eliminate): Move stmt removal and fixup ...
3612 (fini_eliminate): ... here. Skip inserted exprs.
3613 (pass_pre::execute): Move fini_pre after fini_eliminate.
3614 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
3615 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
3616 PRE to get rid of dead code that has invalid SSA form and
3617 split critical edges again.
3619 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3621 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
3623 2017-05-11 Richard Biener <rguenther@suse.de>
3625 * passes.c (execute_function_todo): Verify loops if they are
3626 said to be up-to-date.
3627 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
3628 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
3630 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
3633 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
3634 handle calling assemble_external ourself.
3637 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
3638 modes with zero size. Enhance comment.
3640 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3642 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
3643 built-ins for vec_xl and vec_xst with short and char pointer
3646 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
3648 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
3649 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
3650 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
3651 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
3652 (_mm_maskz_min_round_ss): New intrinsics.
3653 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
3654 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
3655 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
3656 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
3657 (__builtin_ia32_minss_mask_round): New builtins.
3658 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
3659 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
3660 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
3662 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
3663 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
3665 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
3668 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
3670 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
3671 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
3672 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
3673 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
3674 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
3675 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
3676 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
3677 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
3678 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
3679 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
3680 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
3681 (__builtin_ia32_mulss_mask_round): New builtins.
3682 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
3683 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
3684 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
3686 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
3687 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
3689 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
3692 2017-05-10 Julia Koval <julia.koval@intel.com>
3694 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
3695 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
3696 (_mm256_setr_m128i): New intrinsics.
3698 2017-05-10 Julia Koval <julia.koval@intel.com>
3700 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
3701 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
3702 (_mm_maskz_rcp14_ss): New intrinsics.
3703 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
3704 (__builtin_ia32_rcp14ss_mask): New builtins.
3705 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
3707 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
3709 PR tree-optimization/51513
3710 * tree-cfg.c (gimple_seq_unreachable_p): New function.
3711 (assert_unreachable_fallthru_edge_p): Use it.
3712 (group_case_labels_stmt): Likewise.
3713 * tree-cfg.h: Prototype it.
3714 * stmt.c: Include cfghooks.h and tree-cfg.h.
3715 (emit_case_dispatch_table) <gap_label>: New local variable.
3716 Use it to fill dispatch table gaps.
3717 Test for default_label before updating probabilities.
3718 (expand_case) <default_label>: Remove unneeded initialization.
3719 Test for unreachable default case statement and remove its edge.
3720 Set default_label accordingly.
3721 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
3723 2017-05-10 Carl Love <cel@us.ibm.com>
3725 * config/rs6000/rs6000-c: Add support for built-in functions
3726 vector signed char vec_neg (vector signed char)
3727 vector signed short int vec_neg (vector short int)
3728 vector signed int vec_neg (vector signed int)
3729 vector signed long long vec_neg (vector signed long long)
3730 vector float vec_neg (vector float)
3731 vector double vec_neg (vector double)
3732 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
3734 * config/rs6000/altivec.h: Add define for vec_neg
3735 * doc/extend.texi: Update the built-in documentation for the
3736 new built-in functions.
3738 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3740 PR tree-optimization/77644
3741 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
3743 2017-05-10 Nathan Sidwell <nathan@acm.org>
3745 * dumpfile.h (TDI_lang_all): New.
3746 (TDF_KIND): New. Renumber others
3747 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
3749 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
3751 (get_dump_file_name): Adjust suffix generation.
3752 (dump_enable_all): Use TDF_KIND.
3753 * doc/invoke.texi (-fdump-lang-all): Document.
3755 * dumpfile.h: Tabify.
3757 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
3760 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
3761 Move member access before delete.
3763 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
3765 * tree-inline.c (expand_call_inline): Split block at stmt
3768 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3771 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
3772 are now unused after splitting mov{sf,sd}_hardfloat.
3773 (f32_lr2): Likewise.
3775 (f32_lm2): Likewise.
3777 (f32_li2): Likewise.
3780 (f32_sr2): Likewise.
3782 (f32_sm2): Likewise.
3784 (f32_si2): Likewise.
3787 (f32_vsx): Likewise.
3789 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
3790 For movsf, order stores so the VSX stores occur before the GPR
3791 store which encourages the register allocator to use a traditional
3792 FPR instead of a GPR. For movsd, order the stores so that the GPR
3793 store comes before the VSX stores to allow the power6 to work.
3794 This is due to the power6 not having a 32-bit integer store
3795 instruction from a FPR.
3796 (movsf_hardfloat): Likewise.
3797 (movsd_hardfloat): Likewise.
3799 2017-05-09 Martin Sebor <msebor@redhat.com>
3801 PR translation/80280
3802 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
3805 PR translation/80280
3806 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
3807 data member added in r247778.
3808 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
3810 2017-05-09 Nathan Sidwell <nathan@acm.org>
3812 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
3814 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
3817 2017-05-09 Marek Polacek <polacek@redhat.com>
3819 * doc/invoke.texi: Fix typo.
3821 2017-05-09 Richard Biener <rguenther@suse.de>
3823 * tree-vrp.c (vrp_val_is_max): Adjust comment.
3824 (vrp_val_is_min): Likewise.
3825 (set_value_range_to_value): Likewise.
3826 (set_value_range_to_nonnegative): Likewise.
3827 (gimple_assign_nonzero_p): Likewise.
3828 (gimple_stmt_nonzero_p): Likewise.
3829 (vrp_int_const_binop): Likewise. Remove unreachable case.
3830 (adjust_range_with_scev): Adjust comments.
3831 (compare_range_with_value): Likewise.
3832 (extract_range_from_phi_node): Likewise.
3833 (test_for_singularity): Likewise.
3835 2017-05-09 Richard Biener <rguenther@suse.de>
3837 * tree-vrp.c (get_single_symbol): Add assert that we don't
3838 get overflowed constants as invariant part.
3839 (compare_values_warnv): Add comment before the TREE_NO_WARNING
3840 checks. Use wi::cmp instead of recursing for integer constants.
3841 (compare_values): Just ignore whether we assumed undefined
3842 overflow instead of failing the compare.
3843 (extract_range_for_var_from_comparison_expr): Add comment before the
3844 TREE_NO_WARNING sets.
3845 (test_for_singularity): Likewise.
3846 (extract_range_from_comparison): Do not disable optimization
3847 when we assumed undefined overflow.
3848 (extract_range_basic): Remove init of unused var.
3850 2017-05-09 Richard Biener <rguenther@suse.de>
3852 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
3853 (extract_range_from_multiplicative_op_1): Adjust.
3854 (extract_range_from_binary_expr_1): Use int_const_binop.
3856 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
3859 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
3860 rs6000_store_data_bypass_p in seven define_bypass directives and
3861 in several comments.
3862 * config/rs6000/rs6000-protos.h: Add prototype for
3863 rs6000_store_data_bypass_p function.
3864 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
3865 function implements slightly different (rs6000-specific) semantics
3866 than store_data_bypass_p, returning false rather than aborting
3867 with assertion error when arguments do not satisfy the
3868 requirements of store data bypass.
3869 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
3870 rs6000_store_data_bypass_p.
3872 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
3874 * config/xtensa/xtensa-protos.h
3875 (xtensa_initial_elimination_offset): New declaration.
3876 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
3877 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
3878 macro definition, add case for FRAME_POINTER_REGNUM when
3879 FRAME_GROWS_DOWNWARD.
3880 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
3881 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
3882 xtensa_initial_elimination_offset.
3884 2017-05-08 Nathan Sidwell <nathan@acm.org>
3886 * doc/invoke.texi: Alphabetize -fdump options.
3888 2017-05-08 Martin Sebor <msebor@redhat.com>
3890 PR translation/80280
3891 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
3893 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
3895 * target.def (compute_frame_layout): New optional target hook.
3896 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
3897 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
3898 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
3900 * reload1.c (verify_initial_elim_offsets): Likewise.
3901 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
3902 (use_simple_return_p): Call arm_compute_frame_layout if needed.
3903 (arm_get_frame_offsets): Split up into this ...
3904 (arm_compute_frame_layout): ... and this function.
3906 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
3908 * config/aarch64/constraints.md (Usa): New constraint.
3909 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
3911 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
3913 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
3914 with_multilib_list after it has been checked.
3916 2017-05-08 Richard Biener <rguenther@suse.de>
3918 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
3919 (bitmap_set_subtract_values): Likewise.
3921 2017-05-08 Richard Biener <rguenther@suse.de>
3923 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
3924 (gimple_assign_nonzero): ... this and remove strict_overflow_p
3926 (gimple_stmt_nonzero_warnv_p): Rename to ...
3927 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
3929 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
3930 (extract_range_basic): Adjust, do not disable propagation on
3931 strict overflow sensitive simplification.
3932 (vrp_visit_cond_stmt): Likewise.
3934 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
3936 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
3937 body size unconditionally.
3939 2017-05-07 Jeff Law <law@redhat.com>
3942 2017-05-06 Jeff Law <law@redhat.com>
3943 PR tree-optimization/78496
3944 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
3947 PR tree-optimization/78496
3948 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
3949 (simplify_stmt_using_ranges): Call it.
3950 (vrp_dom_walker::before_dom_children): Extract equivalences
3951 from an ASSERT_EXPR with an equality comparison against a
3954 2017-05-06 Jeff Law <law@redhat.com>
3956 PR tree-optimization/78496
3957 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
3960 PR tree-optimization/78496
3961 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
3962 (simplify_stmt_using_ranges): Call it.
3963 (vrp_dom_walker::before_dom_children): Extract equivalences
3964 from an ASSERT_EXPR with an equality comparison against a
3967 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
3969 * lra-constraints.c (lra_copy_reg_equiv): New function.
3970 (split_reg): Use it to copy equivalence information from the
3971 original register to the spill register.
3973 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
3975 PR rtl-optimization/75964
3976 * simplify-rtx.c (simplify_const_relational_operation): Remove
3977 invalid handling of comparisons of integer ABS.
3979 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
3981 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
3983 (init_regs): Remove declaration.
3984 (function_arg_advance_32): Initialize error_p as boolean variable.
3986 2017-05-05 Nathan Sidwell <nathan@acm.org>
3988 * store-motion.c (remove_reachable_equiv_notes): Reformat long
3989 lines. Use for (;;).
3991 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3993 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
3994 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
3995 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
3996 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
3997 VF=2 that require versioning.
3999 2017-05-05 David Malcolm <dmalcolm@redhat.com>
4001 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
4004 2017-05-05 David Malcolm <dmalcolm@redhat.com>
4006 * diagnostic.h (diagnostic_override_option_index): Convert from
4007 macro to inline function.
4009 2017-05-05 David Malcolm <dmalcolm@redhat.com>
4011 * diagnostic.c (last_module_changed_p): New function.
4012 (set_last_module): New function.
4013 (diagnostic_report_current_module): Convert macro usage to
4014 the above functions.
4015 * diagnostic.h (diagnostic_context::last_module): Strengthen
4016 from const line_map * to const line_map_ordinary *.
4017 (diagnostic_last_module_changed): Delete macro.
4018 (diagnostic_set_last_module): Delete macro.
4020 2017-05-05 David Malcolm <dmalcolm@redhat.com>
4022 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
4023 with diagnostic_report_diagnostic.
4024 (diagnostic_n_impl_richloc): Likewise.
4025 * diagnostic.h (report_diagnostic): Delete macro.
4026 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
4027 with diagnostic_report_diagnostic.
4028 * substring-locations.c (format_warning_va): Likewise.
4030 2017-05-05 David Malcolm <dmalcolm@redhat.com>
4032 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
4033 save/restor of format_spec. Move option-printing code to...
4034 (print_option_information): ...this new function, and
4035 reimplement by simply printing to the pretty_printer,
4036 rather than appending to the format string.
4038 2017-05-05 David Malcolm <dmalcolm@redhat.com>
4040 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
4041 handling logic into...
4042 (update_effective_level_from_pragmas): ...this new function.
4044 2017-05-04 Andrew Waterman <andrew@sifive.com>
4046 * config/riscv/riscv.opt (mstrict-align): New option.
4047 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
4048 (SLOW_UNALIGNED_ACCESS): Define.
4049 (riscv_slow_unaligned_access): Declare.
4050 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
4052 (riscv_slow_unaligned_access): New variable.
4053 (rocket_tune_info): Set slow_unaligned_access to true.
4054 (optimize_size_tune_info): Set slow_unaligned_access to false.
4055 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
4056 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
4057 (riscv_option_override): Set riscv_slow_unaligned_access.
4058 * doc/invoke.texi: Add -mstrict-align to RISC-V.
4060 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
4062 * config/riscv/riscv.md: Unify indentation.
4064 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4069 * config/rs6000/rs6000.md (u code attribute): Add FIX and
4071 (extendsi<mode>2): Add support for doing sign extension via
4072 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
4073 don't have ISA 3.0 instructions.
4074 (extendsi<mode>2 splitter): Likewise.
4075 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
4076 generate the normal insns since SImode can now go in vector
4077 registers. Disallow the special UNSPECs needed for previous
4078 machines to hide SImode being used. Add new insns
4079 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
4080 (fix_trunc<mode>si2_stfiwx): Likewise.
4081 (fix_trunc<mode>si2_internal): Likewise.
4082 (fixuns_trunc<mode>si2): Likewise.
4083 (fixuns_trunc<mode>si2_stfiwx): Likewise.
4084 (fctiw<u>z_<mode>_smallint): Likewise.
4085 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
4086 of floating point to 32-bit integer from doing a direct move to
4087 the GPR registers to do a store.
4088 (fctiwz_<mode>): Break long line.
4090 2017-05-05 Bin Cheng <bin.cheng@arm.com>
4092 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
4093 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
4094 (addr_list, addr_offset_valid_p): New.
4095 (split_address_groups): Check offset validity with above function.
4096 (gt-tree-ssa-loop-ivopts.h): Include header file.
4098 2017-05-05 Nathan Sidwell <nathan@acm.org>
4100 * config.gcc (arm*-*-*): Add missing 'fi'.
4102 2017-05-05 Steve Ellcey <sellcey@cavium.com>
4104 * doc/invoke.texi (-fopt-info): Explicitly say order of options
4105 included in -fopt-info does not matter.
4106 * doc/optinfo.texi (-fopt-info): Fix description of default
4107 behavour. Explicitly say order of options included in -fopt-info
4110 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
4112 * config.gcc: Allow combinations of aprofile and rmprofile values for
4113 --with-multilib-list.
4114 * config/arm/t-multilib: New file.
4115 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
4116 variables. Remove setting of ISA and floating-point ABI in
4117 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
4118 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
4119 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
4120 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
4122 * config/arm/t-rmprofile: Likewise except for the matches changes.
4123 * doc/install.texi (--with-multilib-list): Document the combination of
4124 aprofile and rmprofile values and warn about pitfalls in doing that.
4126 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
4128 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
4129 (movdi_aarch64): Likewise.
4131 2017-05-05 Jakub Jelinek <jakub@redhat.com>
4133 PR tree-optimization/80632
4134 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
4136 (build_arrays): Initialize it for virtual phis.
4137 (fix_phi_nodes): Use it for virtual phis.
4139 PR tree-optimization/80558
4140 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
4141 [x, y] op z into [x op, y op z] for op & or | if conditions
4144 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
4145 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
4148 * config/arm/arm.md (use_literal_pool): Remove.
4149 (64-bit immediate split): No longer takes cost into consideration
4150 if arm_disable_literal_pool is enabled.
4151 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
4152 used when arm_disable_literal_pool is enabled.
4153 (arm_max_const_double_inline_cost): Remove use of
4154 arm_disable_literal_pool.
4155 (push_minipool_fix): Add assert.
4156 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
4157 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
4158 (no_literal_pool_sf_immediate): New.
4160 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4162 PR tree-optimization/80613
4163 * tree-ssa-dce.c (propagate_necessity): Remove cases for
4164 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
4166 2017-05-05 Richard Biener <rguenther@suse.de>
4168 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
4170 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
4172 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
4173 of this flag from insn conditions due to removal from r247495.
4175 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
4177 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
4179 (arm_early_store_addr_dep_ptr): Likewise.
4180 * config/arm/aarch-common-protos.h
4181 (arm_early_load_addr_dep_ptr): Add prototype.
4182 (arm_early_store_addr_dep_ptr): Likewise.
4183 * config/arm/cortex-a53.md: Add new bypasses.
4185 2017-05-05 Jakub Jelinek <jakub@redhat.com>
4187 * tree.c (next_type_uid): Change type to unsigned.
4188 (type_hash_canon): Decrement back next_type_uid if
4189 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
4190 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
4193 2017-05-04 Martin Sebor <msebor@redhat.com>
4195 * builtins.c: Fix a trivial typo in a comment.
4198 * builtins.c (check_sizes): Adjust to handle reading past the end.
4199 Avoid printing excessive upper bound of ranges. Use %E to print
4200 tree nodes instead of converting them to %wu.
4201 (expand_builtin_memchr): New function.
4202 (compute_dest_size): Rename...
4203 (compute_objsize): ...to this.
4204 (expand_builtin_memcpy): Adjust.
4205 (expand_builtin_mempcpy): Adjust.
4206 (expand_builtin_strcat): Adjust.
4207 (expand_builtin_strcpy): Adjust.
4208 (check_strncat_sizes): Adjust.
4209 (expand_builtin_strncat): Adjust.
4210 (expand_builtin_strncpy): Adjust and simplify.
4211 (expand_builtin_memset): Adjust.
4212 (expand_builtin_bzero): Adjust.
4213 (expand_builtin_memcmp): Adjust.
4214 (expand_builtin): Handle memcmp.
4215 (maybe_emit_chk_warning): Check strncat just once.
4217 2017-05-04 Martin Sebor <msebor@redhat.com>
4219 PR preprocessor/79214
4222 * builtins.c (check_sizes): Add inlining context and issue
4223 warnings even when -Wno-system-headers is set.
4224 (check_strncat_sizes): Same.
4225 (expand_builtin_strncat): Same.
4226 (expand_builtin_memmove): New function.
4227 (expand_builtin_stpncpy): Same.
4228 (expand_builtin): Handle memmove and stpncpy.
4230 2017-05-04 Bin Cheng <bin.cheng@arm.com>
4232 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
4233 which is not used any more.
4235 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
4237 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
4239 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
4241 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
4242 (cortexa53_tunings): Likewise.
4243 (cortexa57_tunings): Likewise.
4244 (cortexa72_tunings): Likewise.
4245 (cortexa73_tunings): Likewise.
4247 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
4249 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
4250 Set loop alignment to 8.
4252 2017-05-04 Martin Sebor <msebor@redhat.com>
4254 PR translation/80280
4255 * builtins.c (expand_builtin_object_size): Add missing quoting to
4256 %D and like directives.
4257 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
4258 (hsa_type_for_tree_type): Same.
4259 (verify_function_arguments): Same.
4260 * symtab.c (symbol_table::change_decl_assembler_name): Same.
4261 * varasm.c (get_section): Same.
4264 2017-05-04 Martin Sebor <msebor@redhat.com>
4266 PR translation/80280
4267 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
4269 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
4271 * config/aarch64/aarch64.c (generic_addrcost_table):
4272 Change HI/TI mode setting.
4274 2017-05-04 Martin Jambor <mjambor@suse.cz>
4276 PR tree-optimization/80622
4277 * tree-sra.c (comes_initialized_p): New function.
4278 (build_accesses_from_assign): Only set write lazily when
4279 comes_initialized_p is false.
4280 (analyze_access_subtree): Use comes_initialized_p.
4281 (propagate_subaccesses_across_link): Assert !comes_initialized_p
4282 instead of testing for PARM_DECL.
4284 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4286 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
4287 constraint on operand 0 to allow more general addressing modes.
4288 Adjust output template.
4289 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
4291 * config/aarch64/aarch64-protos.h
4292 (aarch64_address_valid_for_prefetch_p): Declare prototype.
4293 * config/aarch64/constraints.md (Dp): New address constraint.
4294 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
4297 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
4299 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
4300 update use of estimate_ipcp_clone_size_and_time.
4301 (estimate_local_effects): Update use of
4302 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
4303 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
4304 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
4305 Return nonspecialized time.
4307 2017-05-04 Richard Biener <rguenther@suse.de>
4309 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
4310 for the last VUSE which def dominates the PHI. Directly call
4312 (get_continuation_for_phi_1): Remove.
4314 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
4316 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
4317 to explain the use of truncating division. Cap the number of
4318 iterations to the maximum given by nb_iterations_upper_bound,
4321 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4323 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
4324 * configure: Regenerate.
4325 * config.in: Regenerate.
4326 * config/i386/driver-mingw32.c: new file.
4327 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
4328 * config.host: Link driver-mingw32.o on MinGW host.
4329 * doc/install.texi: Document new --enable-mingw-wildcard configure
4332 2017-05-04 Marek Polacek <polacek@redhat.com>
4334 PR tree-optimization/80612
4335 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
4337 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
4338 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
4340 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
4341 (movt splitter): Likewise.
4342 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
4343 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
4344 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
4345 block for Thumb-1 with MOVT.
4346 (thumb2_legitimate_address_p): Move code block ...
4347 (can_avoid_literal_pool_for_label_p): ... into this new function.
4348 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
4350 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
4351 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
4352 "M-profile targets with the MOVT instruction".
4354 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
4356 * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
4357 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
4358 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
4360 2017-05-04 Martin Liska <mliska@suse.cz>
4362 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
4365 2017-05-04 Richard Biener <rguenther@suse.de>
4367 * tree.c (array_at_struct_end_p): Handle arrays at struct
4368 end with flexarrays more conservatively. Refactor and treat
4369 arrays of arrays or aggregates more strict. Fix
4370 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
4371 * tree.c (array_at_struct_end_p): Adjust prototype.
4372 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
4373 * gimple-fold.c (get_range_strlen): Likewise.
4374 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
4376 2017-05-04 Richard Biener <rguenther@suse.de>
4378 PR tree-optimization/31130
4379 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
4381 (supports_overflow_infinity): Likewise.
4382 (is_negative_overflow_infinity): Likewise.
4383 (is_positive_overflow_infinity): Likewise.
4384 (is_overflow_infinity): Likewise.
4385 (stmt_overflow_infinity): Likewise.
4386 (overflow_infinity_range_p): Likewise.
4387 (usable_range_p): Remove as always returning true.
4388 (make_overflow_infinity): Remove.
4389 (negative_overflow_infinity): Likewise.
4390 (positive_overflow_infinity): Likewise.
4391 (avoid_overflow_infinity): Likewise.
4392 (set_value_range): Adjust accordingly.
4393 (set_value_range_to_nonnegative): Likewise, remove now unused
4394 overflow_infinity arg.
4395 (vrp_operand_equal_p): Adjust.
4396 (update_value_range): Likewise.
4397 (range_int_cst_singleton_p): Likewise.
4398 (operand_less_p): Likewise.
4399 (compare_values_warnv): Likewise.
4400 (extract_range_for_var_from_comparison_expr): Likewise.
4401 (vrp_int_const_binop): Likewise.
4402 (zero_nonzero_bits_from_vr): Likewise.
4403 (extract_range_from_multiplicative_op_1): Likewise.
4404 (extract_range_from_binary_expr_1): Likewise.
4405 (extract_range_from_unary_expr): Likewise.
4406 (extract_range_from_comparison): Likewise.
4407 (extract_range_basic): Likewise.
4408 (adjust_range_with_scev): Likewise.
4409 (compare_ranges): Likewise.
4410 (compare_range_with_value): Likewise.
4411 (dump_value_range): Likewise.
4412 (test_for_singularity): Likewise, remove strict_overflow_p parameter
4414 (simplify_cond_using_ranges): Adjust.
4416 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
4418 * brig-builtins.def: Added a builtin for class_f64.
4419 * builtin-types.def: Added a builtin type needed by class_f64.
4421 2017-05-03 Jason Merrill <jason@redhat.com>
4423 * timevar.def: Add TV_CONSTEXPR.
4425 2017-05-03 David Malcolm <dmalcolm@redhat.com>
4427 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
4429 2017-05-03 Martin Jambor <mjambor@suse.cz>
4431 * ipa-prop.c (ipa_update_after_lto_read): Removed.
4432 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
4433 * ipa-cp.c (ipcp_propagate_stage): Do not call
4434 ipa_update_after_lto_read.
4435 * ipa-inline.c (ipa_inline): Likewise.
4437 2017-05-03 Martin Jambor <mjambor@suse.cz>
4439 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
4440 tag. Added a default constructor and a destructor.
4441 (ipa_edge_args_sum_t): New class;
4442 (ipa_edge_args_sum): Declare.
4443 (ipa_edge_args_vector): Remove declaration.
4444 (IPA_EDGE_REF): Use ipa_edge_args_sum.
4445 (ipa_free_edge_args_substructures): Remove declaration.
4446 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
4447 (ipa_edge_args_info_available_for_edge_p): Likewise.
4448 * ipa-prop.c (ipa_edge_args_vector): Removed.
4449 (edge_removal_hook_holder): Likewise.
4450 (edge_duplication_hook_holder): Likewise.
4451 (ipa_edge_args_sum): New variable.
4452 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
4453 ipa_edge_args_vector.
4454 (ipa_free_edge_args_substructures): Likewise.
4455 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
4456 ipa_edge_args_vector.
4457 (ipa_edge_removal_hook): Turned into method
4458 ipa_edge_args_sum_t::remove.
4459 (ipa_edge_duplication_hook): Turned into method
4460 ipa_edge_args_sum_t::duplicate.
4461 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
4462 registering edge hooks.
4463 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
4464 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
4465 ipa_edge_args_sum instead of ipa_edge_args_vector.
4466 * ipa-profile.c (ipa_profile): Likewise.
4468 2017-05-03 Martin Jambor <mjambor@suse.cz>
4470 * symbol-summary.h (function_summary): New method exists.
4471 (function_summary::symtab_removal): Deallocate through release.
4472 (call_summary): New class.
4473 (gt_ggc_mx): New overload.
4474 (gt_pch_nx): Likewise.
4475 (gt_pch_nx): Likewise.
4477 2017-05-03 Jeff Law <law@redhat.com>
4479 PR tree-optimization/78496
4480 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
4481 from simplify_cond_using_ranges. Split off code to walk
4482 backwards through casts into ...
4483 (simplify_cond_using_ranges_2): New function.
4484 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
4485 (execute_vrp): After identifying jump threads, call
4486 simplify_cond_using_ranges_2.
4488 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
4491 * ipa-inline.h (inline_summary): Add ctor.
4492 (create_ggc): Do not use ggc_cleared_alloc.
4494 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
4495 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4497 * gcc.c (handle_braces): Support escaping in switch matching
4499 * doc/invoke.texi (Spec Files): Document it.
4500 Remove superfluous @code markup in items.
4502 2017-05-03 David Malcolm <dmalcolm@redhat.com>
4504 * diagnostic-show-locus.c (struct column_range): New struct.
4505 (get_affected_columns): New function.
4506 (get_printed_columns): New function.
4507 (struct correction): New struct.
4508 (correction::ensure_capacity): New function.
4509 (correction::ensure_terminated): New function.
4510 (struct line_corrections): New struct.
4511 (line_corrections::~line_corrections): New dtor.
4512 (line_corrections::add_hint): New function.
4513 (layout::print_trailing_fixits): Reimplement in terms of the new
4515 (selftest::test_overlapped_fixit_printing): New function.
4516 (selftest::diagnostic_show_locus_c_tests): Call it.
4518 2017-05-03 Nathan Sidwell <nathan@acm.org>
4520 Canonicalize canonical type hashing
4521 * tree.h (type_hash_canon_hash): Declare.
4522 * tree.c (type_hash_list, attribute_hash_list): Move into
4523 type_hash_canon_hash.
4524 (build_type_attribute_qual_variant): Break out hash code calc into
4525 type_hash_canon_hash.
4526 (type_hash_canon_hash): New. Generic type hash computation.
4527 (build_range_type_1, build_array_type_1, build_function_type,
4528 build_method_type_directly, build_offset_type, build_complex_type,
4529 make_vector_type): Call it.
4531 2017-05-03 Richard Biener <rguenther@suse.de>
4533 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4534 When all DRs have unknown misaligned do not always peel
4535 when there is a store but apply the same costing model as if
4536 there were only loads.
4538 2017-05-03 Richard Biener <rguenther@suse.de>
4541 PR tree-optimization/80492
4542 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
4543 compare_base_decls returning dont-know properly.
4545 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
4547 * config/arm/iterators.md (CCSI): New mode iterator.
4548 (arch): New mode attribute.
4549 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
4550 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
4551 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
4552 code iterator for success result mode.
4553 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
4554 the corresponding new insn generators.
4556 2017-05-03 Bin Cheng <bin.cheng@arm.com>
4559 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4560 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
4562 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4564 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
4565 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
4566 (DDR_A): Wrap DDR argument in brackets.
4567 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
4568 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
4569 (DDR_REVERSED_P): Likewise.
4571 2017-05-03 Jakub Jelinek <jakub@redhat.com>
4573 PR tree-optimization/79472
4574 * tree-switch-conversion.c (struct switch_conv_info): Add
4575 contiguous_range and default_case_nonstandard fields.
4576 (collect_switch_conv_info): Compute contiguous_range and
4577 default_case_nonstandard fields, don't clear final_bb if
4578 contiguous_range and only the default case doesn't have the required
4580 (check_all_empty_except_final): Set default_case_nonstandard instead
4581 of failing if contiguous_range and the default case doesn't have empty
4583 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
4584 and only the default case doesn't have the required constants. Skip
4586 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
4587 if default_case_nonstandard.
4588 (build_constructors): Build constant 1 just once. Assert that default
4589 values aren't inserted in between cases if contiguous_range. Skip
4591 (build_arrays): Skip virtual phis.
4592 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
4593 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
4594 Handle virtual phis.
4595 (gen_inbound_check): Handle default_case_nonstandard case.
4596 (process_switch): Adjust check_final_bb caller. Call
4597 gather_default_values with the first non-default case instead of
4598 default case if default_case_nonstandard.
4600 2017-05-02 Nathan Sidwell <nathan@acm.org>
4602 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
4603 check. Fix formatting.
4605 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
4607 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
4608 errors when comparing specialized and unspecialized times.
4610 2017-05-02 David Malcolm <dmalcolm@redhat.com>
4612 * diagnostic-show-locus.c
4613 (layout::should_print_annotation_line_p): Make private.
4614 (layout::print_annotation_line): Make private.
4615 (layout::annotation_line_showed_range_p): Make private.
4616 (layout::show_ruler): Make private.
4617 (layout::print_source_line): Make private. Pass in line and
4618 line_width, rather than calling location_get_source_line. Drop
4620 (layout::print_leading_fixits): New method.
4621 (layout::print_any_fixits): Rename to...
4622 (layout::print_trailing_fixits): ...this, and make private.
4623 Don't print newline fixits.
4624 (diagnostic_show_locus): Move logic for printing one row into...
4625 (layout::print_line): ...this new function. Move the
4626 location_get_source_line call and error-handling from
4627 print_source_line to here. Call print_leading_fixits, and rename
4628 print_any_fixits to print_trailing_fixits.
4629 (selftest::test_fixit_insert_containing_newline): Update now that
4630 newlines are partially supported.
4631 (selftest::test_fixit_insert_containing_newline_2): New test.
4632 (selftest::test_fixit_replace_containing_newline): Update comments.
4633 (selftest::diagnostic_show_locus_c_tests): Call the new test.
4634 * edit-context.c (class added_line): New class.
4635 (class edited_line): Describe newline handling in comment.
4636 (edited_line::actually_edited_p): New method.
4637 (edited_line::print_content): Delete redundant decl.
4638 (edited_line::m_predecessors): New field.
4639 (edited_file::print_content): Call edited_line::print_content.
4640 (edited_file::print_diff): Update to support newlines.
4641 (edited_file::print_diff_hunk): Likewise.
4642 (edited_file::print_run_of_changed_lines): New function.
4643 (edited_file::print_diff_line): Convert to...
4644 (print_diff_line): ...this.
4645 (edited_file::get_effective_line_count): New function.
4646 (edited_line::edited_line): Initialize new field m_predecessors.
4647 (edited_line::~edited_line): Clean up m_predecessors.
4648 (edited_line::apply_fixit): Handle newlines.
4649 (edited_line::get_effective_line_count): New function.
4650 (edited_line::print_content): New function.
4651 (edited_line::print_diff_lines): New function.
4652 (selftest::test_applying_fixits_insert_containing_newline): New
4654 (selftest::test_applying_fixits_replace_containing_newline): New
4656 (selftest::insert_line): New function.
4657 (selftest::test_applying_fixits_multiple_lines): Add example of
4659 (selftest::edit_context_c_tests): Call the new tests.
4661 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4663 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
4664 parameter cand. Update dump information.
4665 (get_computation_cost): Update uses.
4667 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4669 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
4670 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
4671 (get_computation_at, rewrite_use_address): Update use of
4672 get_computation_aff.
4674 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4676 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
4677 (get_computation): Delete.
4678 (get_computation_cost): Implement like get_computation_cost_at.
4679 Use get_computation_at.
4680 (get_computation_cost_at): Delete.
4681 (rewrite_use_nonlinear_expr): Use get_computation_at.
4682 (rewrite_use_compare, remove_unused_ivs): Ditto.
4684 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4686 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
4688 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4690 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
4691 (ivopts_global_cost_for_size): Rename parameter and update uses.
4692 (iv_ca_recount_cost): Update uses.
4693 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
4694 candidates seperately in n_invs and n_cands.
4695 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
4697 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4699 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
4700 (find_inv_vars_cb): New.
4701 (find_depends): Renamed to ...
4702 (find_inv_vars): ... this.
4703 (add_candidate_1, force_var_cost): Call find_inv_vars.
4704 (split_address_cost, determine_group_iv_cost_cond): Ditto.
4706 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4708 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
4709 inv_vars. Add inv_exprs.
4710 (struct iv_cand): Rename depends_on to inv_vars.
4711 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
4712 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
4713 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
4714 (dump_cand): Dump inv_vars.
4715 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
4716 (record_invariant, find_depends, add_candidate_1): Ditto.
4717 (set_group_iv_cost, force_var_cost): Ditto.
4718 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
4719 (get_computation_cost_at, get_computation_cost): Ditto.
4720 (determine_group_iv_cost_generic): Ditto.
4721 (determine_group_iv_cost_address): Ditto.
4722 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
4723 (determine_group_iv_costs): Ditto.
4724 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
4725 (iv_ca_set_remove_invariants): Renamed to ...
4726 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
4727 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
4728 (iv_ca_set_add_invariants): Renamed to ...
4729 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
4730 (iv_ca_set_cp): Use iv_ca_set_add_invs.
4731 (iv_ca_has_deps): Support inv_vars and inv_exprs.
4732 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
4733 (create_new_ivs): Remove useless dump.
4735 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4737 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
4739 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
4740 (iv_ca_set_no_cp, create_new_iv): Ditto.
4742 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4744 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
4746 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
4748 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
4749 function tree_check2.
4751 2017-05-02 Martin Liska <mliska@suse.cz>
4753 * doc/gcov.texi: Add missing preposition.
4754 * gcov.c (function_info::function_info): Properly fill up
4755 all member variables.
4757 2017-05-02 Tamar Christina <tamar.christina@arm.com>
4759 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
4761 2017-05-02 Tamar Christina <tamar.christina@arm.com>
4763 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
4765 2017-05-02 Martin Liska <mliska@suse.cz>
4768 * lto-streamer-in.c (lto_read_tree_1): Remove
4770 * lto-streamer.c (struct tree_hash_entry): Likewise.
4771 (struct tree_entry_hasher): Likewise.
4772 (tree_entry_hasher::hash): Likewise.
4773 (tree_entry_hasher::equal): Likewise.
4774 (lto_streamer_init): Likewise.
4775 (lto_orig_address_map): Likewise.
4776 (lto_orig_address_get): Likewise.
4777 (lto_orig_address_remove): Likewise.
4778 * lto-streamer.h: Likewise.
4779 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
4780 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
4782 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
4784 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
4785 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
4786 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
4787 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
4788 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
4789 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
4790 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
4791 (mm_maskz_sub_ss): New intrinsics.
4792 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
4793 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
4794 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
4795 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
4796 (__builtin_ia32_subss_mask_round): New builtins.
4797 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
4798 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
4799 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
4801 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
4802 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
4804 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
4807 2017-05-02 Martin Jambor <mjambor@suse.cz>
4809 PR tree-optimization/78687
4810 * tree-sra.c (access): New field parent.
4811 (process_subtree_disqualification): New function.
4812 (disqualify_candidate): Call it.
4813 (build_accesses_from_assign): Reset write flag if creating an
4815 (build_access_subtree): Fill in parent field and also prpagate
4816 down grp_write flag.
4817 (create_artificial_child_access): New parameter set_grp_write, set
4818 grp_write to its value.
4819 (propagate_subaccesses_across_link): Also propagate grp_write flag
4821 (propagate_all_subaccesses): Push the closest parent back to work
4822 queue if add_access_to_work_queue returned true.
4824 2017-05-02 Richard Biener <rguenther@suse.de>
4826 * common.opt (fstrict-overflow): Alias negative to fwrapv.
4827 * doc/invoke.texi (fstrict-overflow): Remove all traces of
4828 -fstrict-overflow documentation.
4829 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
4830 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
4831 flag_strict_overflow.
4832 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
4833 * lto-opts.c (lto_write_options): Do not stream it.
4834 * lto-wrapper.c (merge_and_complain): Do not handle it.
4835 * opts.c (default_options_table): Do not set -fstrict-overflow.
4836 (finish_options): Likewise do not clear it when sanitizing.
4837 * simplify-rtx.c (simplify_const_relational_operation): Do not
4838 test flag_strict_overflow.
4840 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
4842 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
4843 using enabled attribute.
4844 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
4845 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
4846 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
4847 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
4848 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
4849 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
4850 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
4851 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
4852 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
4853 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
4855 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
4857 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
4859 2017-05-02 Richard Biener <rguenther@suse.de>
4861 PR tree-optimization/80591
4863 2017-04-10 Richard Biener <rguenther@suse.de>
4865 * tree-ssa-structalias.c (find_func_aliases): Properly handle
4868 2017-05-02 Richard Biener <rguenther@suse.de>
4870 PR tree-optimization/80549
4871 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
4872 (cleanup_tree_cfg_noloop): Create forwarders to known loop
4873 headers if they do not have a preheader.
4875 2017-05-02 Martin Liska <mliska@suse.cz>
4878 * common.opt: Fix typo.
4879 * doc/invoke.texi: Likewise.
4881 2017-05-01 Jan Beulich <jbeulich@suse.com>
4883 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
4884 swapping, add (x,x,m,x,n) alternative.
4886 2017-05-01 Nathan Sidwell <nathan@acm.org>
4888 * calls.c (combine_pending_stack_adjustment_and_call): Remove
4889 unnecessary unadjusted_alignment check.
4891 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
4894 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
4896 * gimplify.c (gimplify_cilk_detach): New function.
4897 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
4898 * tree-core.h: Document EXPR_CILK_SPAWN.
4899 * tree.h (EXPR_CILK_SPAWN): Define.
4901 2017-05-01 David Malcolm <dmalcolm@redhat.com>
4903 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
4904 to use new fixit_hint representation, using the "replace" logic.
4905 (get_line_span_for_fixit_hint): Likewise.
4906 (layout::print_any_fixits): Likewise.
4907 (selftest::test_one_liner_many_fixits): Rename to...
4908 (selftest::test_one_liner_many_fixits_1): ...this, and update
4909 comment and expected output to reflect that the multiple fix-it
4910 hints are now consolidated into one insertion.
4911 (selftest::test_one_liner_many_fixits_2): New test.
4912 (selftest::test_diagnostic_show_locus_one_liner): Update for
4914 (selftest::test_fixit_consolidation): Update for fix-it API
4916 * diagnostic.c (print_parseable_fixits): Likewise.
4917 * edit-context.c (edited_line::m_line_events): Convert from
4918 auto_vec <line_event *> to auto_vec <line_event>.
4919 (class line_event): Convert from abstract base class to a concrete
4920 class, taking over the role of replace_event.
4921 (class insert_event): Delete.
4922 (class replace_event): Rename to class line_event. Convert to
4924 (edit_context::add_fixits): Reimplement.
4925 (edit_context::apply_insert): Delete.
4926 (edit_context::apply_replace): Rename to...
4927 (edit_context::apply_fixit): ...this. Convert to half-open range.
4928 (edited_file::apply_insert): Delete.
4929 (edited_file::apply_replace): Rename to...
4930 (edited_file::apply_fixit): ...this.
4931 (edited_line::~edited_line): Drop deletion of events.
4932 (edited_line::apply_insert): Delete.
4933 (edited_line::apply_replace): Rename to...
4934 (edited_line::apply_fixit): ...this. Convert to half-open range.
4935 Update for change to type of m_line_events.
4936 * edit-context.h (edit_context::apply_insert): Delete.
4937 (edit_context::apply_replace): Rename to...
4938 (edit_context::apply_fixit): ...this.
4940 2017-05-01 Martin Sebor <msebor@redhat.com>
4942 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
4945 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
4948 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
4949 __get_cpuid_max returns 0.
4950 (__get_cpuid_count): Ditto.
4952 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
4954 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
4955 replacement expression is another instance of one of its arguments.
4957 2017-05-01 Jakub Jelinek <jakub@redhat.com>
4960 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
4961 check for stack push/pop autoinc.
4962 * config/i386/i386.c (ix86_agi_dependent): Return false
4963 if the only reason why modified_in_p returned true is that
4964 addr is SP based and set_insn is a push or pop.
4966 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
4968 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
4971 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
4974 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
4975 (account_size_time): Use two predicates - exec_pred and
4977 (evaluate_conditions_for_known_args): Compute both clause and
4979 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
4980 (inline_summary_t::duplicate): Update.
4981 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
4983 (compute_inline_parameters): Likewise.
4984 (estimate_edge_size_and_time): Update caluclation of time.
4985 (estimate_node_size_and_time): Compute both time and nonspecialized
4987 (estimate_ipcp_clone_size_and_time): Update.
4988 (inline_merge_summary): Update.
4989 (do_estimate_edge_time): Update.
4990 (do_estimate_edge_size): Update.
4991 (do_estimate_edge_hints): Update.
4992 (inline_read_section, inline_write_summary): Stream both new predicates.
4993 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
4995 (compute_inlined_call_time): Cleanup.
4996 (big_speedup_p): Update.
4997 (edge_badness): Update.
4998 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
4999 (size_time_entry): Replace predicate by exec_predicate and
5001 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
5002 (estimate_edge_time): Return also nonspec_time.
5003 (reset_edge_growth_cache): Update.
5005 2017-04-29 Jakub Jelinek <jakub@redhat.com>
5007 PR rtl-optimization/80491
5008 * ifcvt.c (noce_process_if_block): When looking for x setter
5009 with missing else_bb, don't check only the insn right before
5010 cond_earliest, but look for the last insn that x is modified in
5013 PR rtl-optimization/80491
5014 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
5016 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
5018 PR tree-optimization/80487
5019 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
5021 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5023 PR tree-optimization/79697
5024 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
5025 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
5026 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
5028 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
5029 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
5031 2017-04-28 Martin Sebor <msebor@redhat.com>
5033 PR tree-optimization/80523
5034 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
5035 (init_target_to_host_charmap, target_to_host, target_strtol10): New
5037 (maybe_warn, format_directive, parse_directive): Use new functions.
5038 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
5040 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
5042 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
5044 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5046 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
5047 target_header_dir): Set correctly.
5048 * configure: Regenerated.
5049 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
5050 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
5051 instead of SYSTEM_HEADER_DIR.
5053 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
5055 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
5056 (estimate_local_effects): Likewise.
5057 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
5058 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
5059 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
5060 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
5061 do_estimate_edge_time, estimate_edge_time): Likewise.
5062 * ipa-inline-analysis.c (estimate_node_size_and_time,
5063 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
5064 (estimate_time_after_inlining): Remove.
5066 2017-04-28 Martin Liska <mliska@suse.cz>
5068 * doc/gcov.texi: Enhance documentation of gcov.
5070 2017-04-28 Martin Liska <mliska@suse.cz>
5072 * doc/gcov.texi: Sort options in alphabetic order.
5073 * doc/gcov-dump.texi: Likewise.
5074 * doc/gcov-tool.texi: Likewise.
5075 * gcov.c (print_usage): Likewise.
5076 * gcov-dump.c (print_usage): Likewise.
5077 * gcov-tool.c (print_merge_usage_message): Likewise.
5078 (print_rewrite_usage_message): Likewise.
5079 (print_overlap_usage_message): Likewise.
5081 2017-04-28 Martin Liska <mliska@suse.cz>
5083 PR gcov-profile/53915
5084 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
5086 2017-04-28 Martin Liska <mliska@suse.cz>
5088 PR gcov-profile/79891
5089 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
5090 is marked by compiler as living on a line.
5091 (get_cycles_count): Remove usage of the union.
5092 (output_intermediate_file): Likewise.
5093 (find_source): Fix GNU coding style.
5094 (accumulate_line_counts): Remove old non-all block mode.
5095 (output_lines): Remove usage of the union.
5096 * profile.c (output_location): Include all BBs, even if
5097 belonging to a same line (and file) as a previous BB.
5099 2017-04-28 Martin Liska <mliska@suse.cz>
5101 * gcov.c (process_args): Handle new argument 'w'.
5102 (read_graph_file): Assign ID to BBs.
5103 (output_branch_count): Display BB # if verbose flag is set.
5104 (output_lines): Likewise for arcs.
5105 (print_usage): Add '--verbose' option help.
5106 * doc/gcov.texi: Document --verbose (-w) option.
5108 2017-04-28 Martin Liska <mliska@suse.cz>
5110 * gcov.c (struct block_location_info): New struct.
5111 (process_file): Fill up the new structure.
5112 (read_graph_file): Replace usage of encoding by the newly added
5114 (add_line_counts): Likewise.
5115 (accumulate_line_counts): Remove usage of the union.
5116 (function_info::function_info): New function.
5117 (function_info::~function_info): Likewise.
5118 (process_file): Call delete instead of release_function.
5119 (release_function): Release the function.
5120 (release_structures): Call delete instead of release_function.
5121 (solve_flow_graph): Replace usage of num_blocks.
5122 (find_exception_blocks): Likewise.
5123 (output_lines): Fix GNU coding style.
5125 2017-04-28 Martin Liska <mliska@suse.cz>
5128 * coverage.c (coverage_remove_note_file): New function.
5129 * coverage.h: Declare the function.
5130 * toplev.c (finalize): Clean if an error has been seen.
5132 2017-04-28 Martin Liska <mliska@suse.cz>
5134 PR gcov-profile/80031
5135 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
5136 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
5137 * gcov.c (read_graph_file): Read just number of blocks.
5138 * profile.c (branch_prob): Do not stream 0 flags per a basic
5141 2017-04-28 Martin Liska <mliska@suse.cz>
5143 * gcov-dump.c (tag_*): Add new argument to declarations.
5144 (dump_gcov_file): Likewise.
5145 (tag_blocks): Add and use new argument depth.
5146 (tag_arcs): Likewise.
5147 (tag_lines): Likewise.
5148 (tag_counters): Likewise.
5149 (tag_summary): Likewise.
5150 (dump_working_sets): Use depth to do a proper indentation.
5152 2017-04-28 Jakub Jelinek <jakub@redhat.com>
5155 * cgraph.h (symtab_node::debug_symtab): No longer inline.
5156 * symtab.c (symtab_node::debug_symtab): Move definition here.
5158 2017-04-28 Richard Biener <rguenther@suse.de>
5160 * lto-streamer.h (LTO_major_version): Bump to 7.
5162 2017-04-28 Richard Biener <rguenther@suse.de>
5164 * tree-vrp.c (assert_info): New struct.
5165 (add_assert_info): New helper.
5166 (register_edge_assert_for_2): Refactor to add asserts to a vector
5168 (register_edge_assert_for_1): Likewise.
5169 (register_edge_assert_for): Likewise.
5170 (finish_register_edge_assert_for): New helper actually registering
5171 asserts where live on edge.
5172 (find_conditional_asserts): Adjust.
5173 (find_switch_asserts): Likewise.
5174 (evrp_dom_walker::try_find_new_range): Generalize.
5175 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
5177 2017-04-27 Marek Polacek <polacek@redhat.com>
5180 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
5181 arg10 and arg11 to itype.
5183 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
5185 * doc/extend.texi (Object Size Checking): Improve grammar.
5187 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
5190 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
5191 that the logic for permitting reciprocal estimates matches that
5194 2017-04-27 Jakub Jelinek <jakub@redhat.com>
5197 * tree.c (type_cache_hasher::equal): Only compare
5198 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
5199 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
5200 non-aggregate element types.
5201 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
5202 about the flag on ARRAY_TYPEs in the comment, formatting fix.
5204 2017-04-27 Richard Biener <rguenther@suse.de>
5207 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
5208 stripping ARRAY_REFs from MEM_EXPR make sure we're not
5209 keeping a reference to a trailing array.
5211 2017-04-27 Richard Biener <rguenther@suse.de>
5214 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
5215 being in loop-closed SSA form conservatively.
5216 (chrec_fold_multiply_poly_poly): Likewise.
5218 2017-04-27 Tamar Christina <tamar.christina@arm.com>
5221 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
5222 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
5224 2017-04-27 Jakub Jelinek <jakub@redhat.com>
5227 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
5228 (aarch64_function_arg_alignment): Return unsigned int again, but still
5229 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
5230 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
5231 Don't emit -Wpsabi note.
5232 (aarch64_function_arg_boundary): Likewise.
5233 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
5236 2017-04-26 Nathan Sidwell <nathan@acm.org>
5238 * tree.h (crc32_unsigned_n): Declare.
5239 (crc32_unsigned, crc32_unsigned): Make inline.
5240 * tree.c (crc32_unsigned_bits): Replace with ...
5241 (crc32_unsigned_n): ... this.
5242 (crc32_unsigned, crc32_byte): Remove.
5243 (crc32_string): Remove unnecessary braces.
5245 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
5247 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
5248 * ipa-inline-analysis.c (MAX_TIME): Remove.
5249 (account_size_time): Use sreal for time.
5250 (dump_inline_summary): Update.
5251 (estimate_function_body_sizes): Update.
5252 (estimate_edge_size_and_time): Update.
5253 (estimate_calls_size_and_time): Update.
5254 (estimate_node_size_and_time): Update.
5255 (inline_merge_summary): Update.
5256 (inline_update_overall_summary): Update.
5257 (estimate_time_after_inlining): Update.
5258 (inline_read_section): Update.
5259 (inline_write_summary): Update.
5260 * ipa-inline.c (compute_uninlined_call_time): Update.
5261 (compute_inlined_call_time): Update.
5262 (recursive_inlining): Update.
5263 (inline_small_functions): Update.
5264 (dump_overall_stats): Update.
5265 * ipa-inline.h: Include sreal.h.
5266 (size_time_entry): Turn time to sreal.
5267 (inline_summary): Turn self_time nad time to sreal.
5269 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
5271 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
5273 (sreal::stream_out, sreal::stream_in): New.
5274 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
5276 2017-04-25 Jakub Jelinek <jakub@redhat.com>
5278 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
5281 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
5284 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
5286 (dimode_scalar_chain::compute_convert_gain): Ditto.
5287 (dimode_scalar_chain::make_vector_copies): Ditto.
5288 (dimode_scalar_chain::convert_reg): Ditto.
5289 (dimode_scalar_chain::convert_insn): Ditto.
5290 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
5291 (VI248_AVX512BW_1): New mode iterator.
5292 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
5293 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
5296 2017-04-25 Martin Sebor <msebor@redhat.com>
5298 PR tree-optimization/80497
5299 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
5300 constants are representable in HOST_WIDE_INT.
5301 (parse_directive): Ditto.
5303 2017-04-25 Martin Sebor <msebor@redhat.com>
5306 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
5307 (new_zero_array): Adjust signature.
5308 (dom_info::dom_init): Used unsigned rather that size_t.
5309 (dom_info::dom_info): Same.
5311 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5312 Jakub Jelinek <jakub@redhat.com>
5315 * config/arm/arm.c: Include gimple.h.
5316 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
5317 returns negative, increment ncrn only if it returned positive.
5318 (arm_needs_doubleword_align): Return int instead of bool,
5319 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
5320 members, but if there is any such non-FIELD_DECL
5321 > PARM_BOUNDARY aligned decl, return -1 instead of false.
5322 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
5323 returns negative, increment nregs only if it returned positive.
5324 (arm_setup_incoming_varargs): Likewise.
5325 (arm_function_arg_boundary): Emit -Wpsabi note if
5326 arm_needs_doubleword_align returns negative, return
5327 DOUBLEWORD_ALIGNMENT only if it returned positive.
5329 2017-04-25 Marek Polacek <polacek@redhat.com>
5332 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
5333 first argument to type.
5335 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
5338 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
5339 type checks to test for compatibility instead of equality.
5341 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5342 Jakub Jelinek <jakub@redhat.com>
5345 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
5347 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
5348 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
5349 the alignment computation, but return their maximum in warn_alignment.
5350 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
5351 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
5353 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
5354 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
5357 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5359 * config/arc/simdext.md (dmpyh): Fix typo.
5361 2017-04-25 Richard Biener <rguenther@suse.de>
5363 PR tree-optimization/80492
5364 * alias.c (compare_base_decls): Handle registers with asm
5365 specification conservatively.
5366 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
5367 compare_base_decls returning dont-know properly.
5369 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5371 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
5372 (legitimate_offset_address_p): New function.
5373 (arc_legitimate_address_p): Use above function.
5375 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5377 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
5379 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5381 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
5382 ACCH registers whenever they are available.
5384 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5386 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
5387 double regs fix when not used.
5389 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5391 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
5393 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
5394 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
5396 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5398 * config/arc/arc.c (arc_output_addsi): Check for h-register class
5399 when emitting short ADD instructions.
5401 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5403 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
5405 (cmpsi_cc_c_insn): Likewise.
5406 (cbranchsi4_scratch): Compute proper instruction length using
5407 compact_hreg_operand.
5408 * config/arc/predicates.md (compact_hreg_operand): New predicate.
5410 2017-04-25 Richard Biener <rguenther@suse.de>
5413 * passes.c (pass_manager::pass_manager): Initialize
5416 2017-04-25 Richard Biener <rguenther@suse.de>
5418 PR tree-optimization/79201
5419 * tree-ssa-sink.c (statement_sink_location): Handle calls.
5421 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5424 * config/s390/vector.md: Split MEM->GPR vector moves for
5425 non-s_operand addresses.
5427 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5430 * config/s390/predicates.md (reload_const_wide_int_operand): New
5432 * config/s390/s390.md ("movti"): Remove d/P alternative.
5433 ("movti_bigconst"): New pattern definition.
5435 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
5438 * s390-protos.h (s390_expand_cs_hqi): Removed.
5439 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
5440 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
5441 modes as well as CCZ1mode and CCZmode.
5442 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
5443 signature of s390_emit_compare_and_swap.
5444 (s390_expand_cs_hqi): Likewise, make static.
5445 (s390_expand_cs_tdsi): Generate an explicit compare before trying
5446 compare-and-swap, in some cases.
5447 (s390_expand_cs): Wrapper function.
5448 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
5450 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
5451 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
5452 patterns for small and large integers. Forbid symref memory operands.
5453 Move expander to s390.c. Require cc register.
5454 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
5455 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
5456 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
5457 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
5458 symref memory operands. Remove CC mode and call s390_match_ccmode
5460 ("atomic_exchange<mode>"): Allow and implement all integer modes.
5462 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
5464 * config/s390/s390.md (define_peephole2): New peephole to help
5465 combining the load-and-test pattern with volatile memory.
5467 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
5469 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
5470 with CCZmode for TARGET_Z196.
5472 2017-04-25 Jakub Jelinek <jakub@redhat.com>
5474 PR rtl-optimization/80501
5475 * combine.c (make_compound_operation_int): Set subreg_code to SET
5476 even for AND with mask of the sign bit of mode.
5478 PR rtl-optimization/80500
5479 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
5480 sum's initial value.
5482 2017-04-25 Julian Brown <julian@codesourcery.com>
5483 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
5485 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
5487 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
5489 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
5491 2017-04-25 Julian Brown <julian@codesourcery.com>
5492 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
5494 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
5495 (thunderx2t99_sha): New Reservation.
5497 2017-04-25 Julian Brown <julian@codesourcery.com>
5498 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
5500 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
5501 type for 1-element load.
5503 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
5505 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
5507 2017-04-24 Martin Jambor <mjambor@suse.cz>
5509 PR tree-optimization/80293
5510 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
5511 char arrays not totally scalarizable if it is false.
5512 (analyze_all_variable_accesses): Pass correct value in the new
5513 parameter. Add a statistics counter.
5515 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
5518 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
5520 2017-04-24 Richard Biener <rguenther@suse.de>
5522 PR tree-optimization/80494
5523 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
5524 out for complex types.
5526 2017-04-24 Richard Biener <rguenther@suse.de>
5528 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
5529 * tree-ssa-sccvn.c (print_scc): Print SCC size.
5530 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
5531 (DFS): Adjust and never fail.
5532 (sccvn_dom_walker::fail): Remove.
5533 (sccvn_dom_walker::before_dom_children): Adjust.
5534 (run_scc_vn): Likewise and never fail.
5535 * tree-ssa-pre.c (pass_pre::execute): Adjust.
5536 (pass_fre::execute): Likewise.
5538 2017-04-24 Richard Biener <rguenther@suse.de>
5540 PR tree-optimization/79725
5541 * tree-ssa-sink.c (statement_sink_location): Return whether
5542 failure reason was zero uses. Move that check later.
5543 (sink_code_in_bb): Deal with zero uses by removing the stmt
5546 2017-04-24 Richard Biener <rguenther@suse.de>
5549 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
5550 pointer-based references.
5552 2017-04-24 Richard Biener <rguenther@suse.de>
5555 * pass_manager.h (pass_manager::operator new): Remove.
5556 (pass_manager::operator delete): Likewise.
5557 * passes.c (pass_manager::operator new): Remove.
5558 (pass_manager::operator delete): Likewise.
5559 (pass_manager::pass_manager): Zero individual pass members.
5561 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
5564 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
5565 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
5566 Check "XEXP (src, 1)" operand here.
5567 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
5568 Check "XEXP (src, 1)" operand here.
5569 (dimode_scalar_chain::make_vector_copies): Detect count register
5570 of a shift instruction. Zero extend count register from QImode
5571 to DImode to satisfy vector shift pattern count operand predicate.
5572 Substitute vector shift count operand with a DImode copy.
5573 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
5576 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
5578 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
5579 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
5580 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
5581 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
5582 (UNSPEC_NOREX_MEM): Remove definition.
5584 2017-04-21 Richard Biener <rguenther@suse.de>
5586 PR tree-optimization/79547
5587 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5588 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
5589 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
5590 without any constraints.
5592 2017-04-21 Richard Biener <rguenther@suse.de>
5594 PR tree-optimization/78847
5595 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
5597 2017-04-21 Richard Biener <rguenther@suse.de>
5599 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
5600 (build_distinct_type_copy): Likewise.
5601 (build_variant_type_copy): Likewise.
5602 * tree.c (build_qualified_type): Pass down mem-stat info.
5603 (build_distinct_type_copy): Likewise.
5604 (build_variant_type_copy): Likewise.
5606 2017-04-21 Richard Biener <rguenther@suse.de>
5608 PR tree-optimization/80237
5609 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
5611 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
5612 for a simplified result.
5614 2016-04-21 Richard Biener <rguenther@suse.de>
5616 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
5617 sth as strict as a simple_iv but a chrec without symbols and an
5618 operand defined in the loop we are peeling (and not some subloop).
5619 (propagate_constants_for_unrolling): Propagate all constants.
5621 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
5624 * config/i386/i386.c (print_reg): Remove assert for disalowed
5625 regno values, call output_operand_lossage instead.
5627 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
5630 * config/i386/constraints.md (Yc): New register constraint.
5631 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
5632 Use Yc constraint for alternative 2 of operand 0. Remove
5633 preferred_for_speed attribute.
5635 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
5637 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
5638 lastprivate clauses in SIMT case.
5640 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
5642 * doc/invoke.texi (-Wextra-semi): Document new warning option.
5644 2017-04-20 Richard Biener <rguenther@suse.de>
5646 PR tree-optimization/57796
5647 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
5649 (vect_model_load_cost): Cost gathers as N scalar loads.
5651 2017-04-20 Richard Biener <rguenther@suse.de>
5653 * ggc-page.c (ggc_allocated_p): Rename to ...
5654 (safe_lookup_page_table_entry): ... this and return the lookup
5656 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
5658 2017-04-20 Richard Biener <rguenther@suse.de>
5660 PR tree-optimization/80453
5661 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
5662 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
5663 from the conditions.
5664 (vn_phi_eq): Pass them down.
5665 (vn_phi_lookup): Record them.
5666 (vn_phi_insert): Likewise.
5668 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
5670 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
5671 uninitialized variable warning to avoid buffer overrun.
5673 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
5676 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
5677 is suppressed for '{ 0 }' in C.
5679 2017-04-20 Jakub Jelinek <jakub@redhat.com>
5681 * BASE-VER: Set to 8.0.0.
5683 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
5685 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
5686 priority .init_array and .fini_array section with SECTION_NOTYPE
5689 2017-04-20 Jakub Jelinek <jakub@redhat.com>
5692 * tree.h (build_array_type): Add typeless_storage default argument.
5693 * tree.c (type_cache_hasher::equal): Also compare
5694 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
5695 (build_array_type): Add typeless_storage argument, set
5696 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
5698 (build_nonshared_array_type): Adjust build_array_type_1 caller.
5699 (build_array_type): Likewise. Add typeless_storage argument.
5701 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
5702 Jakub Jelinek <jakub@redhat.com>
5704 PR tree-optimization/80426
5705 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
5706 operation on symbolic operands, also compute the overflow for the
5707 invariant part when the operation degenerates into a negation.
5709 2017-04-19 Jakub Jelinek <jakub@redhat.com>
5712 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
5713 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
5716 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
5718 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
5721 * config/avr/avr.c (tree.h): Include it.
5722 (cgraph.h): Include it.
5723 (avr_encode_section_info): Don't warn for uninitialized progmem
5724 variable if it's just an alias.
5726 2017-04-19 Richard Biener <rguenther@suse.de>
5729 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
5730 when needed by AutoPGO.
5732 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
5735 * doc/lto.texi: Remove an extra 'that'.
5737 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
5739 PR rtl-optimization/80429
5740 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
5741 are only used in debug insns.
5743 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
5744 Vladimir Makarov <vmakarov@redhat.com>
5746 * config/sparc/predicates.md (input_operand): Add comment. Return
5747 true for any memory operand when LRA is in progress.
5748 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
5750 2017-04-18 Jeff Law <law@redhat.com>
5753 * mips.md ({return,simple_return}_internal): Do not overwrite
5756 2017-04-18 Jakub Jelinek <jakub@redhat.com>
5758 PR tree-optimization/80443
5759 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
5760 instead of adding 1, subtract -1 and similarly instead of subtracting
5763 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
5765 PR rtl-optimization/80357
5766 * haifa-sched.c (tmp_bitmap): New variable.
5767 (model_recompute): Handle duplicate use records.
5768 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
5769 (free_global_sched_pressure_data): Free it.
5771 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
5774 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5775 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
5776 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
5777 instead of SYSTEM_HEADER_DIR.
5779 2017-04-18 Jeff Law <law@redhat.com>
5782 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
5783 predecessors after walking up the insn chain.
5785 2017-04-18 Jakub Jelinek <jakub@redhat.com>
5788 * dwarf2out.c (modified_type_die): Try harder not to emit internal
5789 sizetype type into debug info.
5791 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5794 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
5795 unneeded test for TARGET_UPPER_REGS_SF.
5796 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
5798 2017-04-18 Jakub Jelinek <jakub@redhat.com>
5801 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
5802 instead of gsi_after_labels.
5804 2017-04-18 Jeff Law <law@redhat.com>
5806 * regcprop.c (maybe_mode_change): Avoid creating copies of the
5810 2017-04-13 Jeff Law <law@redhat.com>
5811 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
5812 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
5814 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
5817 * config/avr/avr.c (intl.h): Include it.
5818 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
5820 2017-04-18 Martin Liska <mliska@suse.cz>
5822 PR gcov-profile/78783
5823 * gcov-tool.c (gcov_output_files): Validate that destination
5824 file is either removed by the tool or by a user.
5826 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
5827 Guy Benyei <guybe@mellanox.com>
5829 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
5830 block, and do not negate it, the stored id is already negative.
5832 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
5834 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
5836 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5839 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
5840 masks of options that should be turned off if the VSX vector
5841 options are turned off.
5842 (OTHER_P8_VECTOR_MASKS): Likewise.
5843 (OTHER_VSX_VECTOR_MASKS): Likewise.
5844 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
5845 rs6000_disable_incompatible_switches to validate no type switches
5847 (rs6000_incompatible_switch): New function to disallow turning on
5848 other vector options if -mno-vsx, -mno-power8-vector, or
5849 -mno-power9-vector are specified.
5851 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
5853 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
5855 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
5857 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
5858 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
5859 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
5860 (ARG_POINTER_CFA_OFFSET): Likewise.
5862 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
5864 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
5865 conditions to take advantage of various optimizations.
5867 2017-04-13 Jeff Law <law@redhat.com>
5869 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
5870 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
5871 (zero_extendsidi2_dext): Likewise.
5873 2017-04-13 Jakub Jelinek <jakub@redhat.com>
5876 * fold-const.c (fold_ternary_loc): Revert
5877 use op0 instead of fold_convert_loc (loc, type, arg0) part of
5880 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
5882 PR rtl-optimization/80343
5883 * lra-remat.c (update_scratch_ops): Assign original hard reg to
5886 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
5889 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
5890 to ubsan_encode_value.
5892 2017-04-13 Jeff Law <law@redhat.com>
5894 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
5895 appearing in DEBUG_INSNs.
5897 2017-04-13 Martin Liska <mliska@suse.cz>
5899 PR gcov-profile/80413
5900 * gcov-io.c (gcov_write_string): Copy to buffer just when
5901 allocated size is greater than zero.
5903 2017-04-13 Jakub Jelinek <jakub@redhat.com>
5906 * dwarf2out.c (decls_for_scope): Ignore declarations of
5907 current_function_decl in BLOCK_NONLOCALIZED_VARS.
5909 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
5912 * ipa-visibility.c (non_local_p): Fix typos.
5913 (localize_node): When localizing symbol in same comdat group,
5914 dissolve the group only when we know external symbols are going
5916 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
5918 2017-04-12 Jakub Jelinek <jakub@redhat.com>
5920 PR tree-optimization/79390
5921 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
5922 order does not result in usable sequence, retry with reversed operand
5928 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
5929 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
5930 op0 instead of fold_convert_loc (loc, type, arg0).
5932 2017-04-12 Jeff Law <law@redhat.com>
5934 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
5935 has a delay slot in the generated code.
5937 * config/cris/cris.md (cris_preferred_reload_class): Return
5938 GENNONACR_REGS rather than GENERAL_REGS.
5940 2017-04-12 Jakub Jelinek <jakub@redhat.com>
5943 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
5944 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
5945 signedness of the result type.
5947 2017-04-12 Richard Biener <rguenther@suse.de>
5948 Jeff Law <law@redhat.com>
5950 PR tree-optimization/80359
5951 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
5952 trim stores to TARGET_MEM_REFs.
5954 2017-04-12 Richard Biener <rguenther@suse.de>
5956 PR tree-optimization/79390
5957 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
5958 threading case even more.
5960 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
5963 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
5964 for quad_address_p for TImode, instead of just not indexed_address.
5966 2017-04-12 Richard Biener <rguenther@suse.de>
5967 Bernd Edlinger <bernd.edlinger@hotmail.de>
5970 * alias.c (component_uses_parent_alias_set_from): Handle
5971 TYPE_TYPELESS_STORAGE.
5972 (get_alias_set): Likewise.
5973 * tree-core.h (tree_type_common): Add typeless_storage flag.
5974 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
5975 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
5976 for types containing members with TYPE_TYPELESS_STORAGE.
5977 (place_field): Likewise.
5978 (layout_type): Likewise for ARRAY_TYPE.
5979 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
5980 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
5981 TYPE_TYPELESS_STORAGE.
5982 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
5984 2017-04-12 Jakub Jelinek <jakub@redhat.com>
5987 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
5988 first argument to type.
5990 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5994 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
5995 CONST0_RTX (mode) rather than const0_rtx where appropriate.
5996 (rs6000_expand_binop_builtin): Likewise.
5997 (rs6000_expand_ternop_builtin): Likewise; also add missing
5998 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
5999 vshasigma built-ins.
6000 * doc/extend.texi: Document that vec_xxpermdi's third argument
6003 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
6005 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
6006 Use shift_const cost parameter when calculating gain of STV shifts.
6008 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
6010 PR rtl-optimization/70478
6011 * lra-constraints.c (process_alt_operands): Check memory for
6012 disfavoring memory insn operand.
6014 2017-04-11 Jakub Jelinek <jakub@redhat.com>
6017 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
6018 left shift in unsigned HOST_WIDE_INT type.
6020 PR rtl-optimization/80385
6021 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
6022 (not (neg X)) into (plus X -1) for complex or non-integral modes.
6025 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
6026 if they have any depend clauses.
6028 2017-04-11 Martin Liska <mliska@suse.cz>
6031 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
6032 * ipa-split.c (split_function): Create a local comdat symbol
6033 if caller is in a comdat group.
6035 2017-04-11 Martin Liska <mliska@suse.cz>
6038 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
6041 2017-04-11 Martin Sebor <msebor@redhat.com>
6044 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
6045 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
6047 (directive::set_width, directive::set_precision, format_character):
6049 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
6052 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
6055 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
6056 conflict, set target->arch_name instead of target->cpu_name.
6058 2017-04-11 Richard Biener <rguenther@suse.de>
6060 PR tree-optimization/80374
6061 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
6062 build_zero_cst, remove fold_convertible_p check again.
6064 2017-04-11 Martin Liska <mliska@suse.cz>
6067 * ubsan.c (instrument_object_size): Do not instrument register
6070 2017-04-11 Jakub Jelinek <jakub@redhat.com>
6073 * config/i386/i386-builtin-types.def
6074 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
6075 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
6076 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
6077 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
6078 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
6079 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
6080 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
6081 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
6082 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
6083 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
6084 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
6085 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
6086 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
6087 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
6088 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
6089 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
6090 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
6091 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
6092 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
6093 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
6094 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
6095 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
6096 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
6097 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
6098 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
6099 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
6100 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
6101 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
6102 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
6103 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
6104 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
6105 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
6106 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
6107 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
6108 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
6109 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
6110 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
6111 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
6112 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
6113 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
6114 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
6115 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
6116 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
6117 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
6118 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
6119 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
6121 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
6122 flag to second_arg_count, handle 4 argument function type _COUNT
6123 aliases, handle second_arg_count on second argument rather than last.
6125 2017-04-10 Jeff Law <law@redhat.com>
6127 PR tree-optimization/80374
6128 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
6129 record anything if we can not convert integer_zero_node to the
6132 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
6135 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6136 Enhance special handling given to the TARGET_P9_MINMAX option in
6137 relation to certain other options.
6139 2017-04-10 Bin Cheng <bin.cheng@arm.com>
6141 PR tree-optimization/80153
6142 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
6143 remove POINTER_PLUS_EXPR's base part directly, rather than through
6146 2017-04-10 Richard Biener <rguenther@suse.de>
6147 Bin Cheng <bin.cheng@arm.com>
6149 PR tree-optimization/80153
6150 * tree-affine.c (aff_combination_to_tree): Get base pointer from
6151 the first element of pointer type aff_tree. Build result expr in
6153 (add_elt_to_tree): Convert to type unconditionally. Remove other
6155 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
6156 (rewrite_use_nonlinear_expr): Check invariant using iv information.
6158 2017-04-10 Richard Biener <rguenther@suse.de>
6160 * tree-ssa-structalias.c (find_func_aliases): Properly handle
6163 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
6165 PR rtl-optimization/70478
6166 * lra-constraints.c (curr_small_class_check): New.
6167 (update_and_check_small_class_inputs): New.
6168 (process_alt_operands): Update curr_small_class_check. Disfavor
6169 alternative insn memory operands. Check available regs for small
6172 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
6175 * config/mips/mips.opt (-mvirt): Update description.
6176 * doc/invoke.texi (-mvirt): Likewise.
6178 2017-04-10 Richard Biener <rguenther@suse.de>
6181 * fold-const.c (fold_binary_loc): Look at unstripped ops when
6182 looking for NEGATE_EXPR in -A / -B to A / B folding.
6184 2017-04-10 Martin Liska <mliska@suse.cz>
6186 PR gcov-profile/80224
6187 * gcov.c (print_usage): Fix usage string.
6188 (get_gcov_intermediate_filename): Remove.
6189 (output_gcov_file): Use both for normal and intermediate format.
6190 (generate_results): Do not initialize special file for
6191 intermediate format.
6193 2017-04-10 Richard Biener <rguenther@suse.de>
6195 PR tree-optimization/80304
6196 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
6199 2017-04-10 Nathan Sidwell <nathan@acm.org>
6202 * config/rs6000/rs6000.c (rs6000_vector_type): New.
6203 (rs6000_init_builtins): Use it.
6205 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6207 * config/arm/arm.md (<mrc>): Add mode to SET source.
6210 2017-04-10 Richard Biener <rguenther@suse.de>
6213 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
6215 2017-04-10 Jakub Jelinek <jakub@redhat.com>
6218 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
6219 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
6220 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
6221 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
6222 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
6223 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
6224 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
6225 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
6226 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
6227 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
6228 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
6229 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
6230 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
6231 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
6232 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
6233 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
6234 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
6235 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
6236 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
6237 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
6238 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
6239 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
6240 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
6242 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
6244 PR rtl-optimization/70478
6245 * lra-constraints.c: Reverse the last patch.
6247 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
6249 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
6250 Add comment for WCHAR_T.
6252 2017-04-08 Martin Liska <mliska@suse.cz>
6255 2017-04-07 Martin Liska <mliska@suse.cz>
6258 * ipa-split.c (split_function): Add function part to a same comdat
6261 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6264 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
6266 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
6268 * rs6000/rs6000.c (vec_load_pendulum): Rename...
6269 (vec_pairing): ...to this.
6270 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
6271 (rs6000_sched_init): Adjust for name change.
6272 (struct rs6000_sched_context): Likewise.
6273 (rs6000_init_sched_context): Likewise.
6274 (rs6000_set_sched_context): Likewise.
6276 2017-04-07 Jakub Jelinek <jakub@redhat.com>
6282 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
6284 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
6285 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
6286 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
6288 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
6290 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
6292 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
6294 PR rtl-optimization/70703
6295 * ira-color.c (update_conflict_hard_regno_costs): Use
6296 int64_t instead of HOST_WIDE_INT.
6298 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
6300 PR rtl-optimization/70478
6301 * lra-constraints.c (process_alt_operands): Disfavor alternative
6302 insn memory operands.
6304 2017-04-07 Jeff Law <law@redhat.com>
6306 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
6307 CALL and NOTE_INSN_CALL_ARG_LOCATION.
6309 2017-04-07 Martin Liska <mliska@suse.cz>
6312 * config/aarch64/aarch64.c (aarch64_process_target_attr):
6313 Show error message instead of an ICE.
6315 2017-04-07 Martin Liska <mliska@suse.cz>
6318 * ipa-split.c (split_function): Add function part to a same comdat
6321 2017-04-07 Richard Biener <rguenther@suse.de>
6324 * tree.c (get_unwidened): Also handle ! for_type case for
6326 * convert.c (do_narrow): Split out from ...
6327 (convert_to_integer_1): ... here. Do not pass final truncation
6328 type to get_unwidened for TRUNC_DIV_EXPR.
6330 2017-04-07 Richard Biener <rguenther@suse.de>
6332 * tree-affine.c (wide_int_ext_for_comb): Take type rather
6334 (aff_combination_const): Adjust.
6335 (aff_combination_scale): Likewise.
6336 (aff_combination_add_elt): Likewise.
6337 (aff_combination_add_cst): Likewise.
6338 (aff_combination_convert): Likewise.
6339 (add_elt_to_tree): Likewise. Remove unused argument.
6340 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
6342 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
6344 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
6346 * config/arm/arm.c (arm_default_short_enums): Use
6347 ARM_DEFAULT_SHORT_ENUMS.
6348 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
6350 2017-04-06 Jakub Jelinek <jakub@redhat.com>
6353 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
6354 members with redundant out-of-class redeclaration.
6356 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
6359 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
6360 * config/i386/i386.md (*zero_extendsidi2):
6361 Add (?*x,*x) and (?*v,*v) alternatives.
6363 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
6366 * config/i386/i386.c (ix86_expand_builtin)
6367 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
6368 mode from insn data. Convert operands to insn operand mode.
6369 Copy operands that don't satisfy insn predicate to a register.
6371 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
6373 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
6376 2017-04-06 Richard Biener <rguenther@suse.de>
6378 PR tree-optimization/80334
6379 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
6380 preserve alignment of accesses.
6382 2017-04-06 Richard Biener <rguenther@suse.de>
6384 PR tree-optimization/80262
6385 * tree-sra.c (build_ref_for_offset): Preserve address-space
6387 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
6388 Drop useless address-space information on MEM_REF offsets.
6390 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
6392 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
6394 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
6396 PR rtl-optimization/70703
6397 * ira-color.c (update_conflict_hard_regno_costs): Use
6398 HOST_WIDE_INT instead of long.
6400 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
6403 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
6404 not defined for x86_64 target. Add -mmmx target option when __SSE2__
6406 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
6407 for x86_64 target. Handle -m3dnowa option.
6409 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
6411 PR rtl-optimization/70703
6412 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
6413 (update_conflict_hard_regno_costs): Use long instead of unsigned
6414 arithmetic for cost calculation.
6416 2017-04-05 Jakub Jelinek <jakub@redhat.com>
6417 Bernd Edlinger <bernd.edlinger@hotmail.de>
6420 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
6423 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
6426 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
6427 ptr_mode with Pmode throughout.
6428 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
6429 into probe_stack_range and use DImode.
6431 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
6434 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
6435 call_eh_return is true.
6437 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6439 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
6440 Initialize last_match_fntype_index.
6442 2017-04-05 Jakub Jelinek <jakub@redhat.com>
6445 * tree-nvr.c: Include internal-fn.h.
6446 (pass_return_slot::execute): Ignore internal calls without
6449 2017-04-04 Jakub Jelinek <jakub@redhat.com>
6450 Richard Biener <rguenther@suse.de>
6453 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
6454 captures used multiple times, except for the last use.
6455 * generic-match-head.c: Include gimplify.h.
6457 2017-04-04 Jakub Jelinek <jakub@redhat.com>
6459 PR tree-optimization/79390
6460 * target.h (struct noce_if_info): Declare.
6461 * targhooks.h (default_noce_conversion_profitable_p): Declare.
6462 * target.def (noce_conversion_profitable_p): New target hook.
6463 * ifcvt.h (struct noce_if_info): New type, moved from ...
6464 * ifcvt.c (struct noce_if_info): ... here.
6465 (noce_conversion_profitable_p): Renamed to ...
6466 (default_noce_conversion_profitable_p): ... this. No longer
6468 (noce_try_store_flag_constants, noce_try_addcc,
6469 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
6470 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
6471 instead of noce_conversion_profitable_p.
6472 * config/i386/i386.c: Include ifcvt.h.
6473 (ix86_option_override_internal): Don't override
6474 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
6475 (ix86_noce_conversion_profitable_p): New function.
6476 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
6477 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
6478 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
6479 * doc/tm.texi: Regenerated.
6481 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6483 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
6486 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6489 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
6490 instructions for small multiply cores.
6492 2017-04-04 Jeff Law <law@redhat.com>
6494 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
6496 (mips_expand_vec_perm_const): Initialize elements in orig_perm
6497 that are not set by the loop over the elements.
6499 2017-04-04 Jakub Jelinek <jakub@redhat.com>
6502 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
6503 int mode, convert_modes it to mode as unsigned, otherwise use
6504 lowpart_subreg to mode rather than SImode.
6505 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
6506 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
6507 Use DImode instead of SImode for the shift count operand.
6508 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
6511 2017-04-04 Richard Biener <rguenther@suse.de>
6514 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
6515 arithmetic done for the negate or the plus. Simplify.
6516 (A - (-B) -> A + B): Likewise.
6517 * fold-const.c (split_tree): Make sure to not negate pointers.
6519 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
6521 PR rtl-optimization/60818
6522 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
6523 a compare of comparisons with the thing compared if this results
6524 in a different machine mode.
6526 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
6528 * alias.c (base_alias_check): Fix typo in comment.
6529 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
6530 * cgraphunit.c (symbol_table::compile): Likewise.
6531 * collect2.c (maybe_run_lto_and_relink): Likewise.
6532 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
6533 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
6534 * config/avr/avr.c (avr_map_op_t): Likewise.
6535 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
6536 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
6537 * config/epiphany/epiphany.md (movcc): Likewise.
6538 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
6539 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
6541 * config/mips/mips.c (mips_save_restore_reg): Likewise.
6542 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
6543 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
6544 * config/sh/sh.c (sh_rtx_costs): Likewise.
6545 * fold-const.c (fold_truth_andor): Likewise.
6546 * genautomata.c (collapse_flag): Likewise.
6547 * gengtype.h (struct type::u::s): Likewise.
6548 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
6549 * input.c (FORMAT_AMOUNT): Likewise.
6550 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
6551 (known_aggs_to_agg_replacement_list): Likewise.
6552 * ipa-inline-analysis.c: Likewise.
6553 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
6554 * ipa-polymorphic-call.c
6555 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
6556 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
6557 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
6559 * modulo-sched.c (apply_reg_moves): Likewise.
6560 * omp-expand.c (build_omp_regions_1): Likewise.
6561 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
6562 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
6563 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
6564 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
6565 * value-prof.c: Likewise.
6566 * var-tracking.c (val_reset): Likewise.
6568 2017-04-03 Richard Biener <rguenther@suse.de>
6570 PR tree-optimization/80275
6571 * fold-const.c (split_address_to_core_and_offset): Handle
6574 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
6576 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
6577 descriptors is at least equal to that of functions.
6579 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
6581 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
6583 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
6586 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
6587 (mov<IMOD4:mode>): New expander.
6588 (*mov<IMOD4:mode>_internal): New insn and split pattern.
6590 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
6592 PR rtl-optimization/79405
6593 * fwprop.c (propagations_left): New variable.
6594 (forward_propagate_into): Decrement it.
6595 (fwprop_init): Initialize it.
6596 (fw_prop): If the variable has reached zero, stop propagating.
6597 (fwprop_addr): Ditto.
6599 2017-03-31 Jakub Jelinek <jakub@redhat.com>
6602 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
6603 a FUNCTION_DECL, pass it as decl instead of origin to
6606 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
6608 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
6611 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
6614 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
6615 TARGET_VSX_SMALL_INTEGER.
6617 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6619 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
6620 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
6622 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
6624 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
6625 extraction from odd-numbered MSA register.
6627 2017-03-31 Jakub Jelinek <jakub@redhat.com>
6630 * expmed.c (store_bit_field_1): Don't attempt to create
6631 a word subreg out of hard registers wider than word if they
6632 have HARD_REGNO_NREGS of 1 for their mode.
6635 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
6636 conversions to integer types wider than word and pointer.
6639 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
6640 (rtx_equal_for_cselib_p): Pass 0 to it.
6641 * cselib.c (cselib_hasher::equal): Likewise.
6642 (rtx_equal_for_cselib_1): Add depth argument. If depth
6643 is 128, don't look up VALUE locs and punt. Increment
6644 depth in recursive calls when walking VALUE locs.
6646 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
6648 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
6649 (make_gcov_file_name): Use the canonical path name for generating
6651 (read_line): Fix handling of files with ascii null bytes.
6653 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
6655 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
6656 to initialise a vector register instead
6657 of using a const_int.
6659 2017-03-30 Jakub Jelinek <jakub@redhat.com>
6661 PR translation/80189
6662 * gimplify.c (omp_default_clause): Use %qs instead of %s in
6663 diagnostic messages.
6665 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
6668 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
6669 (dfp_diex_<mode>): Update mode of operand 1.
6670 * doc/extend.texi (dxex, dxexq): Document change to return type.
6671 (diex, diexq): Document change to argument type.
6673 2017-03-30 Martin Jambor <mjambor@suse.cz>
6676 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
6677 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
6678 it reflects the signature changes performed at the callee side.
6679 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
6680 to cgraph_build_function_type_skip_args.
6681 (build_function_decl_skip_args): Adjust call to the above function.
6683 2017-03-30 Jakub Jelinek <jakub@redhat.com>
6686 * config/i386/sse.md
6687 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
6688 register as dest whenever it is a MEM not rtx_equal_p to the
6689 corresponding dup operand, and when forcing into reg move the
6690 reg into the memory afterwards.
6691 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
6692 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
6693 for the force_reg mode.
6694 (avx512vl_vextractf128<mode>): Use register as dest either
6695 always when a MEM, or when it is a MEM not rtx_equal_p to the
6696 corresponding dup operand, or even not when it is a CONST_VECTOR
6697 depending on the mode and lo vs. hi.
6698 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
6700 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
6701 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
6702 Likewise. Require that operands[2] is even.
6703 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
6704 Remove extraneous parens. Require that operands[2] is a multiple
6706 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
6707 operands[0] is a MEM if <mask_applied>, the predicates/constraints
6708 disallow memory then.
6710 2017-03-30 Richard Biener <rguenther@suse.de>
6712 PR tree-optimization/77498
6713 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
6714 to non-constants over backedges.
6716 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
6718 PR rtl-optimization/80233
6719 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
6720 as last_combined_insn. Do not test for BARRIER_P separately.
6722 2017-03-29 Andreas Schwab <schwab@suse.de>
6725 * calls.c (prepare_call_address): Convert funexp to Pmode before
6726 copying to temp reg.
6728 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6730 PR tree-optimization/80158
6731 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
6732 Handle possible future case of more than one alternate
6734 (replace_rhs_if_not_dup): Likewise.
6735 (replace_one_candidate): Likewise.
6737 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
6739 PR rtl-optimization/80193
6740 * ira.c (ira): Do not check allocation for LRA.
6742 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
6744 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
6745 (nvptx_output_simt_exit): Declare.
6746 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
6747 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
6748 (init_softstack_frame): Move initialization of crtl->is_leaf to...
6749 (nvptx_declare_function_name): ...here. Emit declaration of local
6750 memory space buffer for omp_simt_enter insn.
6751 (nvptx_output_unisimt_switch): New.
6752 (nvptx_output_softstack_switch): New.
6753 (nvptx_output_simt_enter): New.
6754 (nvptx_output_simt_exit): New.
6755 * config/nvptx/nvptx.h (struct machine_function): New fields
6756 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
6757 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
6758 (UNSPECV_SIMT_EXIT): Ditto.
6759 (omp_simt_enter_insn): New insn.
6760 (omp_simt_enter): New expansion.
6761 (omp_simt_exit): New insn.
6762 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
6764 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
6765 (expand_GOMP_SIMT_ENTER_ALLOC): New.
6766 (expand_GOMP_SIMT_EXIT): New.
6767 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
6768 (GOMP_SIMT_ENTER_ALLOC): Ditto.
6769 (GOMP_SIMT_EXIT): Ditto.
6770 * target-insns.def (omp_simt_enter): New insn.
6771 (omp_simt_exit): Ditto.
6772 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
6774 (lower_rec_simd_input_clauses): Implement SIMT privatization.
6775 (lower_rec_input_clauses): Likewise.
6776 (lower_lastprivate_clauses): Handle SIMT privatization.
6778 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
6779 (ompdevlow_adjust_simt_enter): New.
6780 (find_simtpriv_var_op): New.
6781 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
6782 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
6784 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
6785 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
6786 (copy_decl_for_dup_finish): Ditto.
6788 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
6790 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
6793 * config/i386/i386.c (ix86_option_override_internal): Always
6794 allow -mpreferred-stack-boundary=3 for 64-bit targets.
6796 2017-03-28 Bin Cheng <bin.cheng@arm.com>
6798 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
6800 2017-03-28 Bin Cheng <bin.cheng@arm.com>
6802 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
6803 mark new edge's irreducible flag accordign to it.
6804 (vect_do_peeling): Check loop preheader edge's irreducible flag
6805 and pass it to function slpeel_add_loop_guard.
6807 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
6809 PR tree-optimization/80218
6810 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6811 Update block frequencies and counts.
6813 2017-03-28 Richard Biener <rguenther@suse.de>
6815 PR tree-optimization/78644
6816 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
6817 of a simplification result we may not use it at all.
6819 2017-03-28 Richard Biener <rguenther@suse.de>
6822 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
6823 without arguments, generate default definition of a SSA name.
6825 2017-03-28 Richard Biener <rguenther@suse.de>
6828 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
6829 TYPE_REF_CAN_ALIAS_ALL references.
6830 * fold-const.c (fold_indirect_ref_1): Likewise.
6832 2017-03-28 Martin Liska <mliska@suse.cz>
6835 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
6836 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
6838 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
6839 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6841 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
6842 (EXTRA_SPECS): Define.
6843 (SUBTARGET_EXTRA_SPECS): Likewise.
6844 (SUBTARGET_CPP_SPEC): Likewise.
6845 * config/arc/elf.h (EXTRA_SPECS): Renamed to
6846 SUBTARGET_EXTRA_SPECS.
6847 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
6849 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
6851 * config/arc/simdext.md (vst64_insn): Update pattern.
6852 (vld32wh_insn): Likewise.
6853 (vld32wl_insn): Likewise.
6854 (vld64_insn): Likewise.
6855 (vld32_insn): Likewise.
6857 2017-03-28 Marek Polacek <polacek@redhat.com>
6860 * fold-const.c (fold_comparison): Use protected_set_expr_location
6861 instead of SET_EXPR_LOCATION.
6863 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
6865 * tree.c (add_expr): Avoid name lookup warning.
6867 2017-03-27 Jeff Law <law@redhat.com>
6869 PR tree-optimization/80216
6870 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
6871 function name. Limit recursion depth.
6872 (record_temporary_equivalences): Corresponding changes.
6874 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
6876 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
6879 2017-03-27 Jakub Jelinek <jakub@redhat.com>
6882 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
6884 * cfgcleanup.c (reg_note_cfa_p): New array.
6885 (insns_have_identical_cfa_notes): New function.
6886 (old_insns_match_p): Don't cross-jump in between /f
6887 and non-/f instructions. If both i1 and i2 are frame related,
6888 verify all CFA notes, their order and content.
6890 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
6893 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
6894 HImode and SImode with zero extend to DImode to one insn.
6895 (bswap<mode>2_extenddi): Likewise.
6896 (bswapsi2_extenddi): Likewise.
6897 (bswaphi2_extendsi): Likewise.
6898 (bswaphi2): Combine bswap HImode and SImode into one insn.
6899 Separate memory insns from swapping register.
6900 (bswapsi2): Likewise.
6901 (bswap<mode>2): Likewise.
6902 (bswaphi2_internal): Delete, no longer used.
6903 (bswapsi2_internal): Likewise.
6904 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
6905 store, and gpr<-gpr swap insns.
6906 (bswap<mode>2_store): Likewise.
6907 (bswaphi2_reg): Register only splitter, combine with the splitter.
6908 (bswaphi2 splitter): Likewise.
6909 (bswapsi2_reg): Likewise.
6910 (bswapsi2 splitter): Likewise.
6911 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
6912 the insns into load, store, and register/register insns.
6913 (bswapdi2_ldbrx): Likewise.
6914 (bswapdi2_load): Likewise.
6915 (bswapdi2_store): Likewise.
6916 (bswapdi2_reg): Likewise.
6918 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
6920 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
6921 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
6923 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
6926 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
6928 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6929 special handling for target option conflicts between dform
6930 options (-mpower9-dform, -mpower9-dform-vector,
6931 -mpower9-dform-scalar) and -mno-direct-move.
6933 2017-03-27 Richard Biener <rguenther@suse.de>
6935 PR tree-optimization/80181
6936 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
6938 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
6940 * config/arc/predicates.md (move_double_src_operand): Replace the
6941 call to move_double_src_operand with a call to address_operand.
6943 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
6945 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
6946 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
6947 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
6949 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
6951 * config/arc/predicates.md (long_immediate_loadstore_operand):
6952 Consider scaled addresses cases.
6954 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
6956 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
6957 restored when in interrupt.
6958 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
6959 doesn't have delay slot.
6961 2017-03-27 Richard Biener <rguenther@suse.de>
6964 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
6965 inlined thunk clones.
6967 2017-03-27 Jakub Jelinek <jakub@redhat.com>
6970 * asan.c (instrument_derefs): Copy over last operand from
6971 original COMPONENT_REF to the new COMPONENT_REF with
6972 DECL_BIT_FIELD_REPRESENTATIVE.
6973 * ubsan.c (instrument_object_size): Likewise.
6975 2017-03-27 Richard Biener <rguenther@suse.de>
6977 PR tree-optimization/80170
6978 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
6979 sure DR/SCEV didnt fold in constants we do not see when looking
6980 at the reference base alignment.
6982 2017-03-27 Richard Biener <rguenther@suse.de>
6985 * gimple-fold.c (fold_ctor_reference): Properly guard against
6986 NULL return value from canonicalize_constructor_val.
6988 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
6991 * config/i386/i386.c (ix86_expand_builtin)
6992 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
6993 flags reg setting and flags reg using instructions.
6994 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
6995 clobbering instructions to zero extend op2.
6997 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
6999 * doc/install.texi (Configuration) <--with-aix-soname>:
7000 Update link to AIX ld.
7002 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
7004 PR rtl-optimization/80160
7005 PR rtl-optimization/80159
7006 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
7007 reg_alternate_class into account.
7009 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
7012 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
7013 to consider in curr_insn_transform.
7015 2017-03-24 Jakub Jelinek <jakub@redhat.com>
7017 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
7018 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
7019 and emit_mode_inner.
7021 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7023 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
7024 argument to the overloaded builtin variants. Use the new flag to
7025 deprecate certain builtin variants.
7026 * config/s390/s390-builtin-types.def: Add new builtin types.
7027 * config/s390/s390-builtins.h: Support new flags field for
7028 overloaded builtins.
7029 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
7030 (s390_macro_to_expand): Enable vector float data type.
7031 (s390_cpu_cpp_builtins_internal): Indicate support of the new
7032 builtins by incrementing the __VEC__ version number.
7033 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
7035 (s390_resolve_overloaded_builtin): Emit error messages depending
7036 on the builtin flags.
7037 * config/s390/s390.c (s390_expand_builtin): Support additional
7038 flags argument. Change error message to match the messages
7039 emitted in s390-c.c.
7040 * config/s390/s390.md: New UNSPEC_* constants.
7041 (op_type): Add new instruction types.
7042 * config/s390/vecintrin.h: Add new builtins and test data class
7044 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
7045 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
7046 (VEC_INEXACT, VEC_NOINEXACT): New constants.
7047 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
7048 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
7049 ("vec_mergel<mode>"): V_HW -> VEC_HW.
7051 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
7052 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
7053 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
7054 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
7056 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
7057 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
7058 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
7059 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
7061 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
7062 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
7063 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
7064 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
7065 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
7066 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
7067 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
7069 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
7070 ("vec_scatter_element<V_HW_4:mode>_DI")
7071 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
7072 ("vec_fpint<mode>", "vflls")
7073 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
7074 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
7075 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
7076 ("*vec_cmphe<mode>_cc"): ... these.
7078 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
7079 mode constant instead of magic value.
7081 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7083 * config/s390/s390.c (s390_expand_vec_compare): Support other
7084 vector floating point modes than just V2DF.
7085 (s390_expand_vcond): Likewise.
7086 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
7087 (s390_cannot_change_mode_class): Prevent mode changes between TF
7088 and V1TF in vector registers.
7089 * config/s390/s390.md (DF, SF): New mode attributes.
7090 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
7091 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
7092 SFmode support for VRs.
7093 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
7095 (VFT, VF_HW): New mode iterators.
7096 (vw, sdx): New mode attributes.
7097 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
7098 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
7099 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
7100 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
7101 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
7102 also the new vector floating point modes. Renaming to ...
7104 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
7105 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
7106 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
7107 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
7108 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
7109 ("vec_unordered<mode>"): ... these.
7111 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
7112 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
7113 ("*vec_extendv2df"): New insn definitions.
7115 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7117 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
7118 ("mulditi3_2", "*muldi3_sign"): New patterns.
7119 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
7120 rename the pattern definition.
7122 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7124 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
7126 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
7128 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7130 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
7131 instruction if possible.
7132 * config/s390/vector.md (vec_halfnumelts): New mode
7134 ("*vec_vllezlf<mode>"): New pattern.
7136 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7138 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
7139 ("popcountv4si2", "popcountv2di2"): Rename to ...
7140 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
7141 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
7143 ("popcount<mode>2_vxe"): New pattern.
7145 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7147 * common/config/s390/s390-common.c (processor_flags_table): Add
7149 * config.gcc: Add arch12.
7150 * config/s390/driver-native.c (s390_host_detect_local_cpu):
7151 Default to arch12 for unknown CPU model numbers.
7152 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
7153 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
7154 PROCESSOR_max sanity check.
7155 * config/s390/s390-opts.h (enum processor_type): Add
7157 * config/s390/s390.c (processor_table): Add arch12.
7158 (s390_expand_builtin): Add check for B_VXE flag.
7159 (s390_issue_rate): Add PROCESSOR_ARCH12.
7160 (s390_get_sched_attrmask): Likewise.
7161 (s390_get_unit_mask): Likewise.
7162 (s390_sched_score): Enable z13 scheduling for arch12.
7163 (s390_sched_reorder): Likewise.
7164 (s390_sched_variable_issue): Likewise.
7165 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
7167 (s390_tune_attr): Use z13 scheduling also for arch12.
7168 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
7169 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
7170 (TARGET_VXE_P): New macros.
7171 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
7172 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
7173 * config/s390/s390.opt: Add arch12 as processor_type.
7175 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7177 * config/s390/s390.md
7178 ("fixuns_truncdddi2", "fixuns_trunctddi2")
7179 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
7180 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
7182 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
7183 Rename expanders to ...
7185 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
7186 ("fixuns_truncdddi2_emu"): ... these.
7188 ("fixuns_trunc<mode>si2_emu"): New expander.
7190 ("*fixuns_truncdfdi2_z13"): Rename to ...
7191 ("*fixuns_truncdfdi2_vx"): ... this.
7193 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7195 * config/s390/2964.md: Remove the single element vector compare
7196 instructions which are no longer used.
7197 * config/s390/s390.c (s390_select_ccmode): Remove handling of
7199 (s390_canonicalize_comparison): Remove handling of DFmode
7201 (s390_expand_vec_compare_scalar): Remove function.
7202 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
7203 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
7205 ("*cmp<mode>_ccs"): Add wfcdb instruction.
7207 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7209 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
7211 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
7212 will anyway by matched by mov<mode>_64dfp.
7214 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7216 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
7217 vlef/vstef. Add missing operand to vleif.
7219 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7221 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
7222 pair for all vector types with 64 bit elements.
7223 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
7224 * config/s390/vector.md (V_HW_64): ... here.
7225 (V_128_NOSINGLE): New mode iterator.
7226 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
7227 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
7228 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
7229 ("*vec_load_pairv2di"): Change to ...
7230 ("*vec_load_pair<mode>"): ... this one.
7232 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7234 * config/s390/constraints.md: Add comments.
7235 (jKK): Reject element sizes > 8 bytes.
7236 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
7238 * config/s390/s390.md: Add the s_operand checks formerly in
7239 s390_split_ok_p to various splitters where they are still
7241 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
7242 for 128 bit vectors. Plus two splitters.
7244 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7246 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
7249 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7252 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
7253 error if the boundary argument is not constant.
7255 2017-03-24 Jakub Jelinek <jakub@redhat.com>
7257 PR rtl-optimization/80112
7258 * loop-doloop.c (doloop_condition_get): Don't check condition
7259 if cmp isn't SET with IF_THEN_ELSE src.
7261 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7263 PR tree-optimization/80158
7264 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
7265 replacing a candidate statement, also replace it for the
7266 candidate's alternate interpretation.
7267 (replace_rhs_if_not_dup): Likewise.
7268 (replace_one_candidate): Likewise.
7270 2017-03-24 Richard Biener <rguenther@suse.de>
7272 PR tree-optimization/80167
7273 * graphite-isl-ast-to-gimple.c
7274 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
7276 (translate_isl_ast_to_gimple::get_rename): Likewise.
7278 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
7280 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
7281 handling of certain combinations of target options, including the
7282 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
7283 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
7285 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7288 * config/arm/arm.md (*load_multiple): Add reload_completed to
7291 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7292 Richard Biener <rguenth@suse.de>
7294 PR tree-optimization/79908
7295 PR tree-optimization/80136
7296 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
7297 been cast away, gimplify_and_add suffices.
7299 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
7301 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
7303 2017-03-23 Richard Biener <rguenther@suse.de>
7305 PR tree-optimization/80032
7306 * gimplify.c (gimple_push_cleanup): Forced unconditional
7307 cleanups still have to go to the conditional_cleanups
7310 2017-03-22 Jakub Jelinek <jakub@redhat.com>
7312 PR tree-optimization/80072
7313 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
7315 (next_operand_entry_id): Change type to unsigned int.
7316 (sort_by_operand_rank): Make sure to return the right return value
7317 even if unsigned fields are bigger than INT_MAX.
7318 (struct oecount): Change cnt and id type to unsigned int.
7319 (oecount_hasher::equal): Formatting fix.
7320 (oecount_cmp): Make sure to return the right return value
7321 even if unsigned fields are bigger than INT_MAX.
7322 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
7325 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
7326 TREE_READONLY on result if writing it more than once.
7329 * doc/invoke.texi (-fsanitize=thread): Document that with
7330 -fnon-call-exceptions atomics are not able to throw
7334 * tsan.c: Include tree-eh.h.
7335 (instrument_builtin_call): Call maybe_clean_eh_stmt or
7336 maybe_clean_or_replace_eh_stmt where needed.
7337 (instrument_memory_accesses): Add cfg_changed argument.
7338 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
7339 if it returned true.
7340 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
7342 PR rtl-optimization/63191
7343 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
7344 wrapper function, moved the whole old content into ...
7345 (ix86_delegitimize_address_1): ... this. New inline function.
7346 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
7347 true as last argument instead of ix86_delegitimize_address.
7349 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
7351 * config/aarch64/aarch64.c (generic_branch_cost): Copy
7352 cortexa57_branch_cost.
7354 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
7356 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
7358 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7361 * doc/md.texi (Constraints): Document wA constraint.
7362 * config/rs6000/constraints.md (wA): New.
7363 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
7364 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
7365 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
7366 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
7368 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
7371 * gimplify.c (is_oacc_declared): New function.
7372 (oacc_default_clause): Use it to set default flags for acc declared
7373 variables inside parallel regions.
7374 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
7376 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
7377 declare attribute to any decl as necessary.
7379 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
7382 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
7383 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
7384 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
7385 (arm_arch_lpae): This.
7386 * config/arm/arm.c (arm_arch7ve): Rename into ...
7387 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
7388 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
7391 2017-03-22 Martin Liska <mliska@suse.cz>
7394 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
7395 error message instead of an ICE.
7397 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7399 * doc/extend.texi (6.11 Additional Floating Types): Revise.
7401 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
7403 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
7405 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7408 2017-03-21 Martin Sebor <msebor@redhat.com>
7410 * doc/extend.texi: Use "cannot" instead of "can't."
7411 * doc/hostconfig.texi: Same.
7412 * doc/install.texi: Same.
7413 * doc/invoke.texi: Same.
7414 * doc/loop.texi: Same.
7415 * doc/md.texi: Same.
7416 * doc/objc.texi: Same.
7417 * doc/rtl.texi: Same.
7418 * doc/tm.texi: Same.
7419 * doc/tm.texi.in: Same.
7420 * doc/trouble.texi: Same.
7422 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
7425 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
7426 (collect_checksum_attributes): Set it.
7427 (die_checksum_ordered): Use it.
7429 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7431 PR tree-optimization/79908
7432 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
7433 change: For a VA_ARG whose LHS has been cast away, use
7434 force_gimple_operand to construct the side effects.
7436 2017-03-21 David Malcolm <dmalcolm@redhat.com>
7438 PR translation/80001
7439 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
7440 more amenable to translation.
7441 (oacc_loop_auto_partitions): Likewise.
7443 2017-03-21 Marek Polacek <polacek@redhat.com>
7444 Martin Sebor <msebor@redhat.com>
7446 PR tree-optimization/80109
7447 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
7450 2017-03-21 Jakub Jelinek <jakub@redhat.com>
7451 Segher Boessenkool <segher@kernel.crashing.org>
7454 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
7455 check reg_used_between_p between insn and one of succ or succ2
7456 depending on if succ is artificial insn not inserted into insn
7459 2017-03-21 Martin Liska <mliska@suse.cz>
7461 PR gcov-profile/80081
7462 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
7463 * doc/gcc.texi: Include gcov-dump stuff.
7464 * doc/gcov-dump.texi: New file.
7466 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
7468 PR rtl-optimization/79150
7469 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
7470 conditional jump, if the jump is the last insn of the loop.
7472 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7473 Richard Biener <rguenth@suse.de>
7475 PR tree-optimization/79908
7476 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
7477 been cast away, use force_gimple_operand to construct the side
7480 2017-03-21 Martin Liska <mliska@suse.cz>
7483 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
7486 2017-03-21 Brad Spengler <spender@grsecurity.net>
7489 * plugin.c (htab_hash_plugin): New function.
7490 (add_new_plugin): Use it and adjust.
7491 (parse_plugin_arg_opt): Adjust.
7492 (init_one_plugin): Likewise.
7494 2017-03-21 Richard Biener <rguenther@suse.de>
7496 PR tree-optimization/80032
7497 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
7498 if set force the cleanup to happen unconditionally.
7499 (gimplify_target_expr): Push inserted clobbers with force_uncond
7500 to avoid them being removed by control-dependent DCE.
7502 2017-03-21 Richard Biener <rguenther@suse.de>
7504 PR tree-optimization/80122
7505 * tree-inline.c (copy_bb): Do not expans va-arg packs or
7506 va_arg_pack_len when the inlined call stmt requires pack
7508 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
7510 2017-03-21 Jakub Jelinek <jakub@redhat.com>
7513 * tsan.c (instrument_builtin_call): If the memory model argument
7514 is not a constant, assume it is valid.
7517 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
7520 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
7522 PR rtl-optimization/79910
7523 * combine.c (can_combine_p): Do not allow combining an I0 or I1
7524 if its dest is used by an insn before I2 (other than the combined
7525 insns themselves, which are properly handled already).
7527 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
7530 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
7532 * combine.c (record_used_regs): New static function.
7533 (try_combine): Handle situations where there is an additional
7534 instruction between I2 and I3 which needs to have a LOG_LINK
7538 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
7540 * combine.c (try_combine): Delete redundant i1 test. Call
7541 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
7543 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7546 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
7549 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7551 PR tree-optimization/80054
7552 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
7553 the optimization if a PHI or any of its arguments is not dominated
7554 by the candidate's basis. Use gphi* rather than gimple* as
7556 (replace_profitable_candidates): Clean up a gimple* variable that
7557 should be a gphi* variable.
7559 2017-03-20 Martin Sebor <msebor@redhat.com>
7562 * doc/extend.texi (attribute constructor): Document present limitation.
7564 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
7567 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
7568 __POWER9_VECTOR__ #ifdef control, change template definition to
7569 use Power9-specific built-in function.
7570 (vec_any_eq): Likewise.
7571 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
7572 to control outcomes from this test.
7573 (vector_ae_<mode>p): For VEC_F modes, likewise.
7575 2017-03-20 Ian Lance Taylor <iant@google.com>
7577 * config/i386/i386.c (ix86_function_regparm): Save an extra
7578 register for -fsplit-stack with DECL_STATIC_CHAIN.
7580 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
7583 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
7584 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
7586 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
7588 * config/riscv/riscv.c (riscv_print_operand): Use "fence
7590 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
7593 2017-03-20 Marek Polacek <polacek@redhat.com>
7596 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
7598 2017-03-20 Richard Biener <rguenther@suse.de>
7600 PR tree-optimization/80113
7601 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
7602 allocate extra SSA name for PHI def.
7603 (add_close_phis_to_outer_loops): Likewise.
7604 (add_close_phis_to_merge_points): Likewise.
7605 (copy_loop_close_phi_args): Likewise.
7606 (copy_cond_phi_nodes): Likewise.
7608 2017-03-20 Martin Liska <mliska@suse.cz>
7611 * tree-chkp.c (chkp_build_returned_bound): Do not build
7612 returned bounds for a LHS that's not a BOUNDED_P type.
7614 2017-03-20 Martin Liska <mliska@suse.cz>
7618 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
7619 COMPLEX_CST and VECTOR_CST.
7621 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7624 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
7625 target operand. A new splitter adds the clobber statement in case
7626 the target operand is dead anyway.
7628 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
7630 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
7631 to age-old versions of binutils and glibc.
7633 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
7635 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
7637 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
7639 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
7641 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
7643 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
7644 requirement for binutils 2.13.
7646 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
7648 * combine.c (try_combine): Delete redundant i1 test. Call
7649 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
7651 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
7653 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
7654 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
7656 <riscv64-*-elf>: Re-arrange section
7657 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
7658 <riscv32-*-linux>: Likewise.
7659 <riscv64-*-elf>: Likewise
7660 <riscv64-*-linux>: Likewise.
7662 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
7665 * aarch64.opt(verbose-cost-dump): Fix typo.
7667 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
7670 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
7671 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
7673 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
7675 * reload.c (find_reloads): When reloading a nonoffsettable address,
7676 use RELOAD_OTHER for it and its address reloads.
7678 PR rtl-optimization/79910
7679 * combine.c (record_used_regs): New static function.
7680 (try_combine): Handle situations where there is an additional
7681 instruction between I2 and I3 which needs to have a LOG_LINK
7684 2017-03-17 Jeff Law <law@redhat.com>
7686 PR tree-optimization/71437
7687 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
7688 conditional in the hash table first.
7689 (vrp_dom_walker::before_dom_children): Extract condition from
7690 ASSERT_EXPR. Record condition, its inverion and any implied
7693 2017-03-17 Marek Polacek <polacek@redhat.com>
7694 Markus Trippelsdorf <markus@trippelsdorf.de>
7696 PR tree-optimization/80079
7697 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
7700 2017-03-17 Richard Biener <rguenther@suse.de>
7703 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
7704 Properly verify the LHS before the RHS possibly claims to be
7706 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
7709 2017-03-17 Martin Jambor <mjambor@suse.cz>
7711 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
7712 (List of -O2 options): Likewise.
7713 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
7716 2017-03-17 Tom de Vries <tom@codesourcery.com>
7718 * gcov-dump.c (print_usage): Print bug_report_url.
7720 2017-03-17 Richard Biener <rguenther@suse.de>
7723 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
7724 (parser::peek): Likewise.
7726 2017-03-17 Richard Biener <rguenther@suse.de>
7728 PR tree-optimization/80048
7729 * sese.c (free_sese_info): Properly release rename_map and
7730 copied_bb_map elements.
7732 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
7734 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
7735 Add linked-list forward and backlinks. Insert on
7736 construction, remove on destruction.
7737 (class pass_store_merging): Add m_stores_head field.
7738 (pass_store_merging::terminate_and_process_all_chains):
7739 Iterate over m_stores_head list.
7740 (pass_store_merging::terminate_all_aliasing_chains):
7742 (pass_store_merging::execute): Check for debug stmts first.
7743 Push new chains onto the m_stores_head stack.
7745 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
7748 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
7749 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
7750 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
7752 2017-03-16 Jeff Law <law@redhat.com>
7754 PR tree-optimization/71437
7755 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
7756 member function. Implementation moved into after_dom_children
7757 member function and into the threader's thread_outgoing_edges
7759 (dom_opt_dom_walker::after_dom_children): Simplify by moving
7760 some code into new thread_outgoing_edges.
7761 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
7762 definition. Simplify marker handling (do it here). Assume we always
7763 have the available expression and the const/copies tables.
7764 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
7766 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
7767 * tree-vrp.c (equiv_stack): No longer file scoped.
7768 (vrp_dom_walker): New class.
7769 (vrp_dom_walker::before_dom_children): New member function.
7770 (vrp_dom_walker::after_dom_children): Likewise.
7771 (identify_jump_threads): Setup domwalker. Use it rather than
7772 walking edges in a random order by hand. Simplify setup/finalization.
7773 (finalize_jump_threads): Remove.
7774 (vrp_finalize): Do not call identify_jump_threads here.
7775 (execute_vrp): Do it here instead and call thread_through_all_blocks
7778 PR tree-optimization/71437
7779 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
7781 (simplify_stmt_for_jump_threading): Add basic_block argument. All
7783 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
7784 (dom_opt_dom_walker::thread_across_edge): Remove
7785 handle_dominating_asserts argument. All callers changed.
7786 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
7787 changes. Remove calls to lhs_of_dominating_assert. Other
7788 uses of handle_dominating_asserts turn into unconditional code
7789 (simplify_control_stmt_condition_1): Likewise.
7790 (simplify_control_stmt_condition): Likewise.
7791 (thread_through_normal_block, thread_across_edge): Likewise.
7792 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
7793 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
7794 object if it is not an SSA_NAME.
7795 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
7796 before calling into the VRP specific simplifiers.
7797 (identify_jump_threads): Remove handle_dominating_asserts
7800 2017-03-16 Jakub Jelinek <jakub@redhat.com>
7803 * tree-diagnostic.c (default_tree_printer): No longer static.
7804 * tree-diagnostic.h (default_tree_printer): New prototype.
7806 2017-03-16 Tamar Christina <tamar.christina@arm.com>
7808 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
7809 Change ins into fmov.
7811 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7813 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
7814 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
7815 Use h_con constraint for operand 1.
7816 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
7817 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
7819 2017-03-15 Jeff Law <law@redhat.com>
7821 PR tree-optimization/71437
7822 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
7823 (record_temporary_equivalences): Use it.
7825 PR tree-optimization/71437
7826 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
7827 tree-ssa-scopedtables.
7828 (lookup_avail_expr, build_and_record_new_cond): Likewise.
7829 (record_conditions, record_cond, vuse_eq): Likewise.
7830 (record_edge_info): Adjust to API tweak of record_conditions.
7831 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
7832 (record_temporary_equivalences, optimize_stmt): Likewise.
7833 (eliminate_redundant_computations): Likewise.
7834 (record_equivalences_from_stmt): Likewise.
7835 * tree-ssa-scopedtables.c: Include options.h and params.h.
7836 (vuse_eq): New function, moved from tree-ssa-dom.c
7837 (build_and_record_new_cond): Likewise.
7838 (record_conditions): Likewise. Accept vector of conditions rather
7839 than edge_equivalence structure for first argument.
7840 for the first argument.
7841 (avail_exprs_stack::lookup_avail_expr): New member function, moved
7842 from tree-ssa-dom.c.
7843 (avail_exprs_stack::record_cond): Likewise.
7844 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
7845 from tree-ssa-dom.c.
7846 (avail_exprs_stack): Add new member functions lookup_avail_expr
7848 (record_conditions): Declare.
7850 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
7853 * lra-constraints.c (process_alt_operands): Increase reject for
7854 reloading an input/output operand.
7856 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
7859 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
7860 insns to convert from signed/unsigned char/short to IEEE 128-bit
7862 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
7864 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
7867 * config/i386/i386.c (ix86_vector_duplicate_value): Create
7868 subreg of inner mode for values already in registers.
7870 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
7872 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
7873 iteration reg is used after the loop.
7875 2017-03-14 Martin Sebor <msebor@redhat.com>
7877 PR tree-optimization/79800
7878 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
7879 precision in negative-positive range.
7880 (format_floating): Call non-const overload with adjusted precision.
7882 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7885 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
7888 2017-03-14 Martin Sebor <msebor@redhat.com>
7891 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
7892 * builtins.def (aligned_alloc): Use it.
7895 * Makefile.in (GTFILES): Add calls.c.
7896 * calls.c: Include "gt-calls.h".
7898 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
7900 PR rtl-optimization/79728
7901 * regs.h (struct target_regs): New field
7902 x_contains_allocatable_regs_of_mode.
7903 (contains_allocatable_regs_of_mode): New macro.
7904 * reginfo.c (init_reg_sets_1): Initialize it, and change
7905 contains_reg_of_mode so it includes global regs as well.
7906 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
7907 rather than contains_regs_of_mode.
7909 2017-03-14 Martin Liska <mliska@suse.cz>
7911 * doc/invoke.texi: Document options that can't be combined with
7912 -fcheck-pointer-bounds.
7914 2017-03-14 Martin Liska <mliska@suse.cz>
7917 * doc/invoke.texi (-Wchkp): Document the option.
7919 2017-03-14 Martin Liska <mliska@suse.cz>
7921 * Makefile.in: Install gcov-dump.
7923 2017-03-14 Martin Liska <mliska@suse.cz>
7925 * multiple_target.c (expand_target_clones): Bail out for
7926 an invalid attribute.
7928 2017-03-14 Richard Biener <rguenther@suse.de>
7930 * alias.c (struct alias_set_entry): Pack properly.
7931 * cfgloop.h (struct loop): Likewise.
7932 * cse.c (struct set): Likewise.
7933 * ipa-utils.c (struct searchc_env): Likewise.
7934 * loop-invariant.c (struct invariant): Likewise.
7935 * lra-remat.c (struct cand): Likewise.
7936 * recog.c (struct change_t): Likewise.
7937 * rtl.h (struct address_info): Likewise.
7938 * symbol-summary.h (function_summary): Likewise.
7939 * tree-loop-distribution.c (struct partition): Likewise.
7940 * tree-object-size.c (struct object_size_info): Likewise.
7941 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
7942 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
7943 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
7944 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
7945 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
7946 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
7947 (struct _stmt_vec_info): Likewise.
7949 2017-03-14 Martin Liska <mliska@suse.cz>
7952 * multiple_target.c (create_dispatcher_calls): Check that
7953 a target can create a function dispatcher.
7955 2017-03-14 Martin Liska <mliska@suse.cz>
7958 * multiple_target.c (expand_target_clones): Drop local.local
7959 flag for default implementation.
7961 2017-03-14 Richard Biener <rguenther@suse.de>
7963 PR tree-optimization/80030
7964 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
7966 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
7968 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
7969 gcc_fallthrough() instead of __attribute__((fallthrough));
7971 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
7973 * doc/gcc.texi: Remove "up" link to (DIR).
7974 * doc/gccint.texi: Ditto.
7976 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
7978 * doc/install.texi (Specific) <avr>: Remove reference to
7981 2017-03-13 Jeff Law <law@redhat.com>
7983 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
7984 attribute rather than comments.
7986 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
7987 match_scratch operand is highest.
7989 2017-03-13 Martin Liska <mliska@suse.cz>
7992 * ipa-pure-const.c (warn_function_noreturn): If the declarations
7993 is a CHKP clone, use original declaration.
7995 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
7997 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
7998 (arc_conditional_register_usage): Use a different allocation order
7999 when optimizing for size.
8000 * common/config/arc/arc-common.c (arc_option_optimization_table):
8001 Section anchors default on when optimizing for size.
8003 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
8005 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
8007 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
8009 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
8010 * config/arc/arc.md (cpu_facility): Add cd variant.
8011 (*movqi_insn): Add code density variant.
8012 (*movhi_insn): Likewise.
8013 (*movqi_insn): Likewise.
8014 (*addsi3_mixed): Likewise.
8015 (subsi3_insn): Likewise.
8017 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
8019 * config/arc/arc.md (movsi_cond_exec): Update constraint.
8021 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
8023 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
8024 expressions with MINUS and UNARY ops.
8026 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8029 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
8031 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
8032 between vec_select and vector argument.
8033 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
8034 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
8035 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
8036 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
8037 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
8038 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
8040 2017-03-13 Richard Biener <rguenther@suse.de>
8043 * params.def (vect-max-peeling-for-alignment): Fix typo.
8045 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
8047 * doc/install.texi (Specific) <mips-*-*>: Remove description of
8048 issue that only occurred with binutils below 2.18.
8050 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
8052 * doc/install.texi (Specific) <cris-axis-elf>: No longer
8053 refer to binutils 2.11/2.12 minimum.
8055 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
8057 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
8058 ftp.kernel.org and simplify binutils requirement.
8060 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
8062 * doc/invoke.texi (Warning Options): Fix spelling of link-time
8064 (Optimize Options): Ditto. Also remove redundancy.
8066 2017-03-10 David Malcolm <dmalcolm@redhat.com>
8068 PR translation/79848
8069 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
8071 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
8072 to G_ to avoid double translation.
8074 2017-03-10 David Malcolm <dmalcolm@redhat.com>
8076 PR translation/79923
8077 * auto-profile.c (get_combined_location): Convert leading
8078 character of diagnostics to lower case and remove trailing period.
8079 (read_profile): Likewise for various diagnostics.
8080 * config/arm/arm.c (arm_option_override): Remove trailing period
8081 from various diagnostics.
8082 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
8083 (msp430_expand_delay_cycles): Likewise.
8085 2017-03-10 David Malcolm <dmalcolm@redhat.com>
8088 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
8089 full command-line argument, rather than just "str".
8090 (aarch64_validate_march): Likewise.
8091 (aarch64_validate_mtune): Likewise.
8093 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
8095 PR rtl-optimization/78911
8096 * lra-assigns.c (must_not_spill_p): New function.
8097 (spill_for): Use it.
8099 2017-03-10 Jakub Jelinek <jakub@redhat.com>
8101 PR tree-optimization/79981
8102 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
8103 ATOMIC_COMPARE_EXCHANGE ifn result.
8104 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
8105 IFN_ATOMIC_COMPARE_EXCHANGE.
8107 2017-03-10 David Malcolm <dmalcolm@redhat.com>
8110 * opts.c (parse_sanitizer_options): Add missing question mark to
8111 "did you mean" message.
8113 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8115 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
8117 (VMULEUH_UNS): Likewise.
8118 (VMULOUB_UNS): Likewise.
8119 (VMULOUH_UNS): Likewise.
8120 * config/rs6000/rs6000.c (builtin_function_type): Remove
8121 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
8123 2017-03-10 David Malcolm <dmalcolm@redhat.com>
8126 * read-rtl-function.c (function_reader::read_rtx_operand): Update
8127 x with result of extra_parsing_for_operand_code_0.
8128 (function_reader::extra_parsing_for_operand_code_0): Convert
8129 return type from void to rtx, returning x. When reading
8130 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
8131 larger size containing struct block_symbol.
8133 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
8135 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
8136 -mfloat128-hardware without -m64.
8138 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
8141 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
8142 entries to the case statement that marks unsigned arguments to
8143 overloaded functions.
8145 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
8147 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
8148 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
8150 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
8153 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
8154 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
8156 2017-03-10 Martin Liska <mliska@suse.cz>
8160 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
8161 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
8164 2017-03-10 Olivier Hainque <hainque@adacore.com>
8166 * tree-switch-conversion (array_value_type): Start by resetting
8167 candidate type to it's main variant.
8169 2017-03-10 Jakub Jelinek <jakub@redhat.com>
8171 PR rtl-optimization/79909
8172 * combine.c (try_combine): Use simplify_replace_rtx on individual
8173 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
8174 of the whole CALL_INSN_FUNCTION_USAGE.
8176 PR tree-optimization/79972
8177 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
8178 get_range_info on SSA_NAMEs. Formatting fixes.
8180 2017-03-10 Richard Biener <rguenther@suse.de>
8181 Jakub Jelinek <jakub@redhat.com>
8183 PR tree-optimization/77975
8184 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
8185 edge to be constant.
8186 (get_val_for): For constant x return it. Formatting fix.
8187 (loop_niter_by_eval): Avoid pointless looping if the next iteration
8188 would use the same bases as the current one.
8190 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8192 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
8193 instead of vec_select for V1TImode.
8194 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
8196 (VSX_LE_128): Add V1TI to this mode iterator.
8197 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
8198 (*vsx_le_perm_store_<mode>): Likewise.
8199 (pre-reload splitter for VSX stores): Likewise.
8200 (post-reload splitter for VSX stores): Likewise.
8201 (*vsx_xxpermdi2_le_<mode>): Likewise.
8202 (*vsx_lxvd2x2_le_<mode>): Likewise.
8203 (*vsx_stxvd2x2_le_<mode>): Likewise.
8205 2017-03-09 Michael Eager <eager@eagercon.com>
8207 Correct failures with --enable-checking=yes,rtl.
8209 * config/microblaze/microblaze.c (microblaze_expand_shift):
8210 Replace GET_CODE test with CONST_INT_P and INTVAL test with
8211 test for const0_rtx.
8212 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
8213 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
8215 2017-03-09 Richard Biener <rguenther@suse.de>
8217 PR tree-optimization/79977
8218 * graphite-scop-detection.c (scop_detection::merge_sese):
8219 Handle the case of extra exits to blocks dominating the entry.
8221 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
8223 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
8226 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
8228 PR rtl-optimization/79949
8229 * lra-constraints.c (process_alt_operands): Check memory when
8230 trying to predict a cycle. Print about the overall increase.
8232 2017-03-09 Richard Biener <rguenther@suse.de>
8235 * gimple-expr.c (useless_type_conversion_p): Preserve
8236 TYPE_SATURATING for fixed-point types.
8238 2017-03-09 Richard Biener <rguenther@suse.de>
8241 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
8242 alignment of BLKmode params.
8244 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8247 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
8248 (VALL_NO_V2Q): Likewise.
8250 * config/aarch64/aarch64-simd.md
8251 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
8253 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
8254 VALL_NO_V2Q mode iterator.
8255 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
8257 2017-03-09 Martin Liska <mliska@suse.cz>
8259 PR tree-optimization/79631
8260 * tree-chkp-opt.c (chkp_is_constant_addr): Call
8261 tree_int_cst_sign_bit just for INTEGER constants.
8263 2017-03-09 Martin Liska <mliska@suse.cz>
8267 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
8270 2017-03-09 Marek Polacek <polacek@redhat.com>
8273 * tree.c (inchash::add_expr): Handle TREE_VEC.
8275 2017-03-09 Martin Liska <mliska@suse.cz>
8278 (chkp_narrow_size_and_offset): New function.
8279 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
8280 (void chkp_parse_bit_field_ref): New function.
8281 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
8282 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
8284 2017-03-09 Martin Liska <mliska@suse.cz>
8287 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
8288 (chkp_find_bounds_1): Remove gcc_unreachable.
8290 2017-03-09 Jakub Jelinek <jakub@redhat.com>
8293 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
8294 BUILT_IN_SYNC*, determine the access type from the size suffix and
8295 always build a MEM_REF with that type. Handle forgotten
8296 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
8299 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
8300 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
8301 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
8302 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
8303 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
8304 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
8305 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
8306 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
8307 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
8308 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
8309 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
8310 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
8311 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
8312 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
8313 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
8314 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
8315 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
8316 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
8317 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
8318 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
8319 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
8320 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
8321 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
8322 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
8323 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
8324 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
8325 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
8326 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
8327 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
8328 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
8329 definitions outside of __OPTIMIZE__ guarded section.
8332 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
8333 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
8334 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
8335 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
8338 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8340 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
8341 ("vfenez<mode>"): Add missing constraints.
8343 2017-03-08 Martin Sebor <msebor@redhat.com>
8346 * config/nds32/nds32.c (nds32_option_override):
8347 Fix misspelled diagnostic.
8349 2017-03-08 Jakub Jelinek <jakub@redhat.com>
8352 * gimplify.c (gimplify_omp_for): Replace index var in outer
8353 taskloop statement with an artificial variable and add
8354 OMP_CLAUSE_PRIVATE clause for it.
8356 2017-03-08 Richard Biener <rguenther@suse.de>
8358 PR tree-optimization/79955
8359 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
8360 for accesses that are completely outside of the variable.
8362 2017-03-08 Andrew Haley <aph@redhat.com>
8364 PR tree-optimization/79943
8365 * tree-ssa-loop-split.c (compute_new_first_bound): When
8366 calculating the new upper bound, (END-BEG) should be added, not
8369 2017-03-08 Jakub Jelinek <jakub@redhat.com>
8371 * config/avr/avr.md (setmemhi): Make sure match_dup
8372 operand number comes before match_scratch.
8374 2017-03-08 Richard Biener <rguenther@suse.de>
8376 PR tree-optimization/79920
8377 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
8378 with ncopies == 1 to ...
8379 (vect_transform_slp_perm_load): ... here. Properly compute
8380 all element loads by iterating VF times over the group. Do
8381 not handle ncopies (computed in a broken way) in
8382 vect_create_mask_and_perm.
8384 2017-03-08 Jakub Jelinek <jakub@redhat.com>
8387 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
8388 is a uniform vector, use uniform_vector_p return value instead of
8389 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
8391 2017-03-07 Marek Polacek <polacek@redhat.com>
8394 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
8395 (alloca_call_type): Likewise.
8397 2017-03-07 Martin Liska <mliska@suse.cz>
8399 * gcov.c (process_args): Put comment to correct location.
8401 2017-03-07 Martin Liska <mliska@suse.cz>
8404 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
8405 Use array_at_struct_end_p instead of DECL_CHAIN (field).
8406 (chkp_narrow_bounds_for_field): Likewise.
8407 (chkp_parse_array_and_component_ref): Pass one more argument to
8410 2017-03-07 Richard Biener <rguenther@suse.de>
8412 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
8415 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
8417 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
8418 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
8420 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8423 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
8424 to end of description.
8425 (PARAM_MAX_STORES_TO_MERGE): Likewise.
8427 2017-03-07 Jakub Jelinek <jakub@redhat.com>
8429 PR rtl-optimization/79901
8430 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
8432 (*avx512f_<code><mode>3<mask_name>): ... this.
8433 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
8434 iterator instead of VI8_AVX2_AVX512BW.
8436 PR rtl-optimization/79901
8437 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
8438 min/max expander, expand it using expand_vec_cond_expr.
8441 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
8444 2017-03-06 Jakub Jelinek <jakub@redhat.com>
8447 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
8448 to void * for PCH reasons.
8449 * dwarf2out.c (output_loc_operands, output_die): Cast
8450 v.val_vec.array to unsigned char *.
8452 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
8455 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
8458 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
8460 PR rtl-optimization/79571
8461 * lra-constraints.c (process_alt_operands): Calculate static
8462 reject and subtract it from overall when only addresses will be
8465 2017-03-06 Julia Koval <julia.koval@intel.com>
8468 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
8469 incoming stack boundary to 128 for 64-bit targets.
8471 2017-03-06 Richard Biener <rguenther@suse.de>
8473 PR tree-optimization/79894
8474 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
8475 to NULL after folding it.
8477 2017-03-06 Richard Biener <rguenther@suse.de>
8479 PR tree-optimization/79824
8480 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
8481 check disabling peeling for gaps.
8483 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
8485 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
8486 attributes): Document gettimeofday.
8488 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
8490 * config/s390/s390.c (s390_option_override_internal): Set
8491 PARAM_MIN_VECT_LOOP_BOUND
8493 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
8495 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
8496 * config/s390/s390.md: Likewise.
8498 2017-03-06 Jakub Jelinek <jakub@redhat.com>
8501 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
8502 (<avx2_avx512>_perm<mode>): Rename to ...
8503 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
8505 (<avx512>_perm<mode>_mask): Rename to ...
8506 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
8508 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
8509 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
8510 instead of VI8F_256_512.
8511 (avx512f_perm<mode>): New define_expand.
8512 (avx512f_perm<mode>_mask): Likewise.
8513 (avx512f_perm<mode>_1<mask_name>): New define_insn.
8514 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
8516 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
8518 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
8519 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
8521 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
8523 2017-03-06 Martin Liska <mliska@suse.cz>
8526 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
8527 when having a SSA NAME w/o VAR_DECL assigned to it.
8529 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
8531 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
8532 msa_dpsub_<su>_d): Fix MODE for vec_select.
8534 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
8536 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
8538 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
8540 2017-03-06 Richard Biener <rguenther@suse.de>
8542 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
8543 * plugin.c (register_plugin_info): Likewise.
8544 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
8546 2017-03-05 Jakub Jelinek <jakub@redhat.com>
8548 * config/i386/sse.md (sse_storehps, sse_storelps,
8549 avx_<castmode><avxsizesuffix>_<castmode>,
8550 avx512f_<castmode><avxsizesuffix>_<castmode>,
8551 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
8552 in condition that at least one operand is not a MEM.
8554 2017-03-03 Jakub Jelinek <jakub@redhat.com>
8557 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
8558 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
8560 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
8561 gimple_call_nothrow_p flag based on whether original builtin can throw.
8562 If it can, emit following stmts on the fallthrough edge.
8563 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
8564 don't create new bb if inserting just debug stmts on the edge, try to
8565 insert them on the fallthru bb or just reset debug stmts.
8567 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
8570 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
8571 restore recog_data (including the operand rtxes inside it) around
8572 the call to get_insn_template.
8574 2017-03-03 Martin Sebor <msebor@redhat.com>
8576 PR tree-optimization/79699
8577 * context.c (context::~context): Free MPFR caches to avoid
8578 a memory leak on program exit.
8580 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8582 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
8583 Use wide_int::ulow () instead of .elt (0).
8585 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
8587 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
8588 (*pushxf): Limit oF constraint to 32bit targets and add oC
8589 constraint for 64bit targets.
8590 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
8591 (*pushdf): Change rmF constraint to rmC.
8593 2017-03-03 Martin Liska <mliska@suse.cz>
8595 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
8596 Remove unused variable.
8598 2017-03-03 Jakub Jelinek <jakub@redhat.com>
8601 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
8602 is a memory operand, increase num_memory.
8603 (ix86_expand_args_builtin): Likewise.
8605 2017-03-03 Jan Hubicka <jh@suse.cz>
8608 * ipa-devirt.c (maybe_record_node): Properly handle
8609 __cxa_pure_virtual visibility.
8611 2017-03-03 Martin Liska <mliska@suse.cz>
8613 PR tree-optimization/79803
8614 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
8616 (pass_loop_prefetch::execute): Disabled optimization if an
8617 assumption about L1 cache size is not met.
8619 2017-03-03 Martin Liska <mliska@suse.cz>
8621 PR rtl-optimization/79574
8622 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
8623 (hash_scan_set): Likewise.
8624 (dump_hash_table): Likewise.
8625 (hoist_code): Likewise.
8627 2017-03-03 Richard Biener <rguenther@suse.de>
8629 * fixed-value.c (fixed_from_string): Restore use of elt (1)
8630 in place of uhigh ().
8631 (fixed_convert_from_real): Likewise.
8633 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
8636 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
8638 2017-03-03 Richard Biener <rguenther@suse.de>
8641 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
8642 TYPE_OVERFLOW_UNDEFINED check.
8644 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8646 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
8648 (vector_ae_<mode>_p): Likewise.
8649 (vector_nez_<mode>_p): Likewise.
8650 (vector_ne_v2di_p): Likewise.
8651 (vector_ae_v2di_p): Likewise.
8652 (vector_ne_<mode>_p): Likewise.
8653 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
8655 (vsx_tsqrt<mode>2_fe): Likewise.
8657 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
8660 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
8662 2017-03-02 Jakub Jelinek <jakub@redhat.com>
8664 PR rtl-optimization/79780
8665 * cprop.c (one_cprop_pass): When second and further conditional trap
8666 in a single basic block is turned into an unconditional trap, turn it
8667 into a deleted note to avoid RTL verification failures.
8669 2017-03-02 Richard Biener <rguenther@suse.de>
8671 * fold-const.c (const_binop): Use ulow () instead of elt (0).
8673 2017-03-02 Richard Biener <rguenther@suse.de>
8675 PR tree-optimization/79345
8677 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
8678 param and abort the walk, returning -1 if it is hit.
8679 (walk_aliased_vdefs): Take a limit param and pass it on.
8680 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
8681 defaulting to 0 and return a signed int.
8682 * tree-ssa-uninit.c (struct check_defs_data): New struct.
8683 (check_defs): New helper.
8684 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
8685 about uninitialized memory.
8686 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
8687 bogus uninitialized warning.
8688 (fixed_convert_from_real): Likewise.
8690 2017-03-02 Bin Cheng <bin.cheng@arm.com>
8692 PR tree-optimization/66768
8693 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
8694 iv_use if base object can't be determined.
8696 2017-03-02 Jakub Jelinek <jakub@redhat.com>
8698 PR tree-optimization/79345
8699 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
8700 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
8701 (get_pattern_stats): Initialize it.
8702 * genemit.c (gen_expand): Verify match_scratch numbers come after
8703 match_operand/match_dup numbers.
8704 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
8705 match_scratch numbers.
8706 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
8708 * config/s390/s390.md (trunctdsd2): Likewise.
8710 2017-03-02 Richard Biener <rguenther@suse.de>
8712 * wide-int.h (wide_int_storage::operator=): Implement in terms
8715 2017-03-02 Richard Biener <rguenther@suse.de>
8717 PR tree-optimization/79777
8718 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
8719 the to insert expression to sth existing.
8721 2017-03-01 Martin Sebor <msebor@redhat.com>
8724 * gimple-ssa-sprintf.c
8725 (directive::known_width_and_precision): New function.
8726 (format_integer): Use it.
8727 (get_mpfr_format_length): Consider the full range of precision
8728 when computing %g output with the # flag. Set the likely byte
8729 count to 3 rather than 1 when precision is indeterminate.
8730 (format_floating): Correct the lower bound of precision.
8732 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8734 * doc/invoke.texi: Document default code model for 64-bit Linux.
8736 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8739 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
8740 udiv rather than div since input pattern is unsigned.
8742 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
8744 * config/i386/i386.c (print_reg): Warn for values of
8745 unsupported size in integer register.
8747 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8750 * config/rs6000/predicates.md (current_file_function_operand): Do
8751 not allow self calls to be local if the function is replaceable.
8753 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
8756 * config/rs6000/altivec.h (vec_ctz and others): Change the
8757 preprocessor macro that controls conditional compilation from
8758 _ARCH_PWR9 to __POWER9_VECTOR__.
8759 (vec_all_ne): Change parameterization of __altivec_scalar_pred
8760 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
8761 control (instead of _ARCH_PWR9 control) so that template
8762 definition uses power9-specific function.
8763 (vec_any_eq): Likewise.
8764 (vec_all_ne): Change macro definition to use a power9-specific
8765 expansion under #ifdef __POWER9_VECTOR__ control (instead of
8766 _ARCH_PWR9 control).
8767 (vec_any_eq) Likewise.
8768 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
8769 expansion for CMPNEF to remove support for xvcmpnesp instruction.
8770 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
8771 support for xvcmpnedp instruction.
8772 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
8773 macro expansion so that Power9 implementation of vec_all_ne does
8774 not use the AltiVec predicate framework.
8775 (VCMPNEH_P): Likewise.
8776 (VCMPNEW_P): Likewise.
8777 (VCMPNED_P): Likewise.
8778 (VCMPNEFP_P): Likewise.
8779 (VCMPNEDP_P): Likewise.
8780 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
8781 implementation of vec_any_eq to not use AltiVec predicate
8783 (VCMPAEH_P): Likewise.
8784 (VCMPAEW_P): Likewise.
8785 (VCMPAED_P): Likewise.
8786 (VCMPAEFP_P): Likewise.
8787 (VCMPAEDP_P): Likewise.
8788 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
8789 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
8790 not use the AltiVec predicate framework.
8791 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
8792 of vec_any_eq to not use AltiVec predicate framework.
8793 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
8794 support for predefined __POWER9_VECTOR__ macro to indicate that
8795 Power9 instruction selection is enabled.
8796 (altivec_overloaded_builtins): Remove extraneous
8797 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
8798 function argument types RS6000_BTI_bool_V16QI and
8799 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
8800 entry for overloaded function argument types RS6000_BTI_bool_V4SI
8801 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
8802 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
8803 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
8804 Power9 for implementations of vec_cmpne. Change the signature for
8805 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
8806 (representing vec_all_ne) to remove the previously described first
8807 argument of type RS6000_BTI_INTSI, as this was an artifact of
8808 reliance on the AltiVec predicate framework, which is no longer
8809 used in the implementation of these functions. Add
8810 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
8811 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
8812 since, unlike the AltiVec predicate framework implementation, we
8813 do not share function descriptors between vec_alle and vec_anyeq.
8814 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
8815 set of modes that receive special treatment even when
8816 TARGET_P9_VECTOR is true. The special treatment emits code that
8817 does not depend on Power9 instructions.
8818 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
8819 define_expand to not rely on AltiVec predicate framework.
8820 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
8822 (vector_ne_v2di_p): Change this define_expand to not rely on
8823 AltiVec predicate framework.
8824 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
8826 (vector_ne_<mode>_p): Change this define_expand to not rely on
8827 AltiVec predicate framework.
8828 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
8830 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
8831 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
8832 define_insn pattern.
8833 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
8834 define_insn pattern because the xvcmpne<VSs>. instruction is not
8836 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
8837 instruction is not supported.
8839 2017-03-01 Jakub Jelinek <jakub@redhat.com>
8841 * config/nvptx/nvptx.c: Include intl.h.
8843 2017-03-01 Martin Jambor <mjambor@suse.cz>
8846 * ipa-prop.h (ipa_bits): Removed field known.
8847 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
8848 to pointers. Adjusted their comments to warn about their sharing.
8849 (ipcp_transformation_summary): Change bits to a vector of pointers.
8850 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
8851 (ipa_get_ipa_bits_for_value): Declare.
8852 * tree-vrp.h (value_range): Mark as GTY((for_user)).
8853 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
8854 (ipa_bits_hash_table): Likewise.
8855 (ipa_vr_ggc_hash_traits): Likewise.
8856 (ipa_vr_hash_table): Likewise.
8857 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
8858 being pointers and vr_known being removed.
8859 (ipa_set_jf_unknown): Likewise.
8860 (ipa_get_ipa_bits_for_value): New function.
8861 (ipa_set_jfunc_bits): Likewise.
8862 (ipa_get_value_range): New overloaded functions.
8863 (ipa_set_jfunc_vr): Likewise.
8864 (ipa_compute_jump_functions_for_edge): Use the above functions to
8865 construct bits and vr parts of jump functions.
8866 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
8867 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
8869 (ipcp_grow_transformations_if_necessary): Also allocate
8870 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
8872 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
8873 them. Fix too long lines.
8874 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
8875 vr_known being removed.
8876 (ipa_read_jump_function): Use new setter functions to construct bits
8877 and vr parts of jump functions or set them to NULL.
8878 (write_ipcp_transformation_info): Adjust for bits being pointers.
8879 (read_ipcp_transformation_info): Likewise.
8880 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
8882 Include gt-ipa-prop.h.
8883 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
8885 (ipcp_store_bits_results): Likewise.
8886 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
8887 Do not write to existing jump functions but use a temporary instead.
8889 2017-03-01 Jakub Jelinek <jakub@redhat.com>
8892 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
8893 attempt to use its first operand as BIT_FIELD_REF base.
8895 2017-03-01 Richard Biener <rguenther@suse.de>
8898 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
8899 interpolating formula in wrapping arithmetic.
8900 (chrec_apply): Convert chrec_evaluate return value to wanted type.
8902 2017-03-01 Jakub Jelinek <jakub@redhat.com>
8904 PR tree-optimization/79734
8905 * tree-vect-generic.c (expand_vector_condition): Optimize
8906 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
8907 Handle VEC_COND_EXPR where comparison has different inner width from
8910 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
8912 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
8913 markup, and similar issues. Remove @opindex entries for things
8914 that aren't options. Add missing -mmpy-option entries.
8916 2017-02-28 Jakub Jelinek <jakub@redhat.com>
8918 PR tree-optimization/79737
8919 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
8920 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
8921 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
8922 instead of byte_size. Formatting fix.
8923 (shift_bytes_in_array_right): Formatting fix.
8925 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
8928 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
8929 condition on optimize for the leaf function test.
8931 2017-02-28 Martin Liska <mliska@suse.cz>
8934 * read-rtl-function.c (function_reader::handle_unknown_directive):
8935 Bail out when one uses -flto.
8937 2017-02-28 Martin Liska <mliska@suse.cz>
8939 * common.opt: Replace space with tabular for options of <number>
8941 * config/i386/i386.opt: Show <number> value for
8942 -mlarge-data-threshold.
8943 * opts.c (print_filtered_help): Do not display number in hexadecimal
8946 2017-02-28 Martin Liska <mliska@suse.cz>
8948 * common.opt: Fix --help=option -Q for options which are of
8951 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
8953 * config/i386/i386.c (print_reg): Error out for values
8954 of 8-bit size in invalid integer register.
8956 2017-02-28 Martin Sebor <msebor@redhat.com>
8958 PR tree-optimization/79691
8959 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
8961 2017-02-28 Jakub Jelinek <jakub@redhat.com>
8964 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
8965 gcc_unreachable with output_operand_lossage.
8967 2017-02-28 Richard Biener <rguenther@suse.de>
8969 PR tree-optimization/79740
8970 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
8972 (visit_nary_op): Insert the nary into the hashtable if we
8973 pattern-matched sth.
8974 * tree-ssa-pre.c (eliminate_insert): Robustify.
8976 2017-02-28 Richard Biener <rguenther@suse.de>
8979 * fold-const.c (decode_field_reference): Reject out-of-bound
8982 2017-02-28 Jakub Jelinek <jakub@redhat.com>
8984 * config/i386/i386.c: Include intl.h.
8985 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
8986 instead of just cond ? "..." : "...".
8987 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
8988 * coverage.c (read_counts_file): Likewise.
8989 * omp-offload.c: Include intl.h.
8990 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
8991 of just cond ? "..." : "...".
8992 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
8993 of just cond ? "..." : "...".
8995 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
8998 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
9000 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
9001 'tune for' CPU name.
9002 * config/arm/arm-cpu-data.h: Regenerated.
9004 2017-02-28 Richard Biener <rguenther@suse.de>
9006 PR tree-optimization/79732
9007 * tree-inline.c (expand_call_inline): Do not shadow var.
9009 2017-02-28 Richard Biener <rguenther@suse.de>
9011 PR tree-optimization/79723
9012 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
9013 address-space properly.
9015 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
9017 * doc/optinfo.texi (Optimization groups): Fix option used for
9019 * doc/invoke.texi (-fopt-info): Document "omp".
9020 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
9021 (OPTGROUP_ALL): Add OPTGROUP_OMP.
9022 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
9023 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
9024 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
9026 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
9028 * dumpfile.c (optgroup_options): Instead of "openmp", associate
9029 OPTGROUP_OMP with "omp".
9031 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
9034 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
9035 for arithmetic shift of unsigned V2DI.
9037 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
9039 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
9040 arc/linux.h headers.
9041 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
9042 (LINK_SPEC): Likewise.
9043 (ARC_TLS_EXTRA_START_SPEC): Likewise.
9044 (EXTRA_SPECS): Likewise.
9045 (STARTFILE_SPEC): Likewise.
9046 (ENDFILE_SPEC): Likewise.
9047 (LIB_SPEC): Likewise.
9048 (TARGET_SDATA_DEFAULT): Likewise.
9049 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
9050 (MULTILIB_DEFAULTS): Likewise.
9051 (DWARF2_UNWIND_INFO): Likewise.
9052 * config/arc/big.h: New file.
9053 * config/arc/elf.h: Likewise.
9054 * config/arc/linux.h: Likewise.
9055 * config/arc/t-uClibc: Remove.
9057 2017-02-27 Bin Cheng <bin.cheng@arm.com>
9059 PR tree-optimization/77536
9060 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
9061 (tree_transform_and_unroll_loop): Use above function to compute the
9062 estimated niter of unrolled loop and use it when scaling profile.
9063 Also use count info rather than frequency if it's non-zero.
9064 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
9065 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
9066 (vect_transform_loop): Call above function.
9068 2017-02-27 Richard Biener <rguenther@suse.de>
9070 PR tree-optimization/45397
9071 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
9072 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
9073 (visit_nary_op): Add pattern matching for CSEing sign-changed
9074 or truncated operations with wider ones.
9076 2017-02-27 Richard Biener <rguenther@suse.de>
9078 PR tree-optimization/79690
9079 * tree-vect-stmts.c (vectorizable_store): Use vector type
9080 built from the DR with address-space.
9082 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9084 * doc/invoke.texi (Optimize Options): Refine the description
9085 of asan-use-after-return.
9087 2017-02-25 Alan Modra <amodra@gmail.com>
9089 PR rtl-optimization/79584
9090 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
9091 base, not ad->base_term, the reg within base. Remove assertion
9092 that ad->base == ad->base_term. Replace gen_int_mode using
9093 bogus mode with const0_rtx.
9095 2017-02-25 Jakub Jelinek <jakub@redhat.com>
9098 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
9099 FMA_EXPR like tcc_binary or tcc_unary.
9101 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
9104 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
9106 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
9107 (output_loc_operands): Handle DW_OP_call_ref and
9108 DW_OP_GNU_variable_value.
9109 (struct variable_value_struct): New type.
9110 (struct variable_value_hasher): Likewise.
9111 (variable_value_hash): New variable.
9112 (string_types): Remove.
9113 (copy_loc_descr): New function.
9114 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
9115 (prepend_loc_descr_to_each): New function.
9116 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
9117 instead of add_loc_descr_to_each if the first argument is single
9118 location list and the second has multiple.
9119 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
9120 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
9121 when looking for variable value which doesn't have other location info.
9122 (loc_list_from_tree): Formatting fix.
9123 (gen_array_type_die): Simplify DW_AT_string_length handling.
9124 (adjust_string_types): Remove.
9125 (gen_subprogram_die): Don't call adjust_string_types nor test/set
9126 string_types. Call resolve_variable_values.
9127 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
9128 (resolve_addr_in_expr): Likewise. Add A argument.
9129 (copy_deref_exprloc): Remove deref argument. Adjust for the
9130 original expression being DW_OP_GNU_variable_value with optionally
9131 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
9132 optionally after it.
9133 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
9134 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
9135 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
9136 (variable_value_hasher::hash, variable_value_hasher::equal): New
9138 (resolve_variable_value_in_expr, resolve_variable_value,
9139 resolve_variable_values, note_variable_value_in_expr,
9140 note_variable_value): New functions.
9141 (dwarf2out_early_finish): Call note_variable_value on all toplevel
9144 2017-02-24 Jakub Jelinek <jakub@redhat.com>
9147 * opts.h (handle_generated_option): Add GENERATED_P argument.
9148 * opts-common.c (handle_option): Adjust function comment.
9149 (handle_generated_option): Add GENERATED_P argument, pass it to
9151 (control_warning_option): Pass false to handle_generated_option
9153 * opts.c (maybe_default_option): Pass true to handle_generated_option
9155 * optc-gen.awk: Likewise.
9157 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
9159 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
9160 a REG, look at the REG it is a SUBREG of.
9161 (splitter for cmpeqsi_t): Ditto.
9163 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
9165 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
9166 the special USEs with the pattern of the insn, not the insn itself.
9168 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
9171 * doc/invoke.texi: Document -mload-store-pairs.
9173 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
9174 Sandra Loosemore <sandra@codesourcery.com>
9176 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
9177 argument isn't a CONST_INT.
9178 (nios2_alternate_compare_const): Assert op is a CONST_INT.
9179 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
9180 (nios2_validate_compare): Bypass alternate compare logic if *op2
9182 (ldstwm_operation_p): Return false if first_base is not a REG or
9183 if first_offset is not a CONST_INT.
9185 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
9187 * config/cris/cris.md: Use correct operand in a define_peephole2.
9189 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
9191 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
9193 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
9195 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
9196 this_insn if it is an INSN or JUMP_INSN.
9197 (force_offsettable): Look at base, not at addr.
9198 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
9199 on things that aren't necessarily CONST_INTs.
9201 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
9203 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
9204 -mfpmath=sse is the default also for x86-32 targets with SSE2
9205 instruction set when @option{-ffast-math} is enabled
9207 2017-02-24 Jeff Law <law@redhat.com>
9209 PR rtl-optimizatoin/79286
9210 * ira.c (update_equiv_regs): Drop may_trap_p exception to
9213 2017-02-24 Richard Biener <rguenther@suse.de>
9215 PR tree-optimization/79389
9216 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
9219 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
9221 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
9222 function comment to reflect reality.
9223 (loop_exits_before_overflow): Fix typo in function description.
9225 2017-02-24 Richard Biener <rguenther@suse.de>
9227 PR tree-optimization/79389
9228 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
9229 properly that a threading opportunity exists. Detect conditional
9230 copy/constant propagation opportunities.
9232 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
9234 * config/visium/visium.md (type): Add trap.
9235 (b): New mode attribute.
9236 (*btst): Rename into...
9237 (*btst<mode>): ...this and adjust.
9238 (*cbranchsi4_btst_insn): Rename into...
9239 (*cbranch<mode>4_btst_insn): ...this and adjust.
9240 (trap): New define_insn.
9242 2017-02-23 Jakub Jelinek <jakub@redhat.com>
9244 PR tree-optimization/79389
9245 * ifcvt.c (struct noce_if_info): Add rev_cond field.
9246 (noce_reversed_cond_code): New function.
9247 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
9248 reversed_comparison_code. Formatting fix.
9249 (noce_try_store_flag): Test rev_cond != NULL in addition to
9250 reversed_comparison_code.
9251 (noce_try_store_flag_constants): Likewise.
9252 (noce_try_store_flag_mask): Likewise.
9253 (noce_try_addcc): Use rev_cond if non-NULL instead of
9254 reversed_comparison_code.
9255 (noce_try_cmove_arith): Likewise. Formatting fixes.
9256 (noce_try_minmax, noce_try_abs): Clear rev_cond.
9257 (noce_find_if_block): Initialize rev_cond.
9258 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
9259 instead of false as last argument never attempt to reverse it
9262 2017-02-23 Bin Cheng <bin.cheng@arm.com>
9264 PR tree-optimization/79663
9265 * tree-predcom.c (combine_chains): Process refs in reverse order
9266 only for ZERO length chains, and add explaining comment.
9268 2017-02-23 Jeff Law <law@redhat.com>
9270 PR tree-optimization/79578
9271 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
9272 in call to operand_equal_p.
9274 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
9277 * config/i386/cpuid.h: Fix another undefined behavior.
9279 2017-02-23 Richard Biener <rguenther@suse.de>
9281 PR tree-optimization/79683
9282 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
9283 vector types for data-refs.
9285 2017-02-23 Martin Liska <mliska@suse.cz>
9287 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
9289 2017-02-23 Jakub Jelinek <jakub@redhat.com>
9292 * internal-fn.c (get_range_pos_neg): Moved to ...
9293 * tree.c (get_range_pos_neg): ... here. No longer static.
9294 * tree.h (get_range_pos_neg): New prototype.
9295 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
9296 are known to be in between 0 and signed maximum inclusive, try to
9297 expand both unsigned and signed divmod and use the cheaper one from
9300 2017-02-22 Jeff Law <law@redhat.com>
9302 PR tree-optimization/79578
9303 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
9304 to compare base operands.
9306 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
9309 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
9310 gpc_reg_operand instead of fpr_reg_operand.
9312 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
9314 * config/mips/mips.c (mips_return_in_memory): Force FP
9315 vector types to be returned in memory for o32 ABI.
9317 2017-02-22 Jakub Jelinek <jakub@redhat.com>
9319 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
9320 instead of DW_TAG_member for static data member declarations and don't
9321 set no_linkage_name for static inline data members.
9322 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
9325 2017-02-22 Martin Liska <mliska@suse.cz>
9327 * doc/invoke.texi: Replace inequality signs with square brackets
9330 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9332 PR tree-optimization/68644
9333 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
9335 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
9338 * lra-constraints.c (simplify_operand_subreg): Handle
9339 WORD_REGISTER_OPERATIONS targets.
9341 2017-02-22 Jakub Jelinek <jakub@redhat.com>
9344 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
9345 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
9346 elimination by swapping fld*.
9348 2017-02-22 Richard Biener <rguenther@suse.de>
9350 PR tree-optimization/79673
9351 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
9352 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
9353 irrelevant address-space qualifiers and avoiding a
9354 ADDR_SPACE_CONVERT_EXPR from fold_convert.
9356 2017-02-22 Richard Biener <rguenther@suse.de>
9358 PR tree-optimization/79666
9359 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
9360 to not symbolically negate if that may introduce undefined
9363 2017-02-22 Martin Liska <mliska@suse.cz>
9366 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
9367 * data-streamer-out.c (streamer_write_gcov_count_stream):
9369 * value-prof.c (stream_out_histogram_value): Make assert more
9370 precise based on type of counter.
9372 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
9375 * config/i386/i386.md (standard_x87sse_constant_load splitter):
9376 Use nonimmediate_operand instead of memory_operand for operand 1.
9377 (float-extend standard_x87sse_constant_load splitter): Ditto.
9379 2017-02-21 Jeff Law <law@redhat.com>
9381 PR tree-optimization/79621
9382 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
9383 blocks with edges to themselves.
9385 2017-02-21 Jakub Jelinek <jakub@redhat.com>
9388 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
9389 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
9390 Use gimple_call_builtin_p.
9393 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
9394 on temporarily removed DEBUG_INSNs.
9396 PR tree-optimization/79649
9397 * tree-loop-distribution.c (classify_partition): Give up on
9398 non-generic address space loads/stores.
9400 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
9402 * doc/loop.texi (Loop manipulation): Remove nonexistent
9403 tree_ssa_loop_version from the documentation.
9404 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
9406 2017-02-21 Jakub Jelinek <jakub@redhat.com>
9409 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
9410 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
9411 * config/rs6000/rs6000.c: Include except.h.
9412 (rs6000_expand_split_stack_prologue): Call
9413 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
9415 2017-02-21 Martin Jambor <mjambor@suse.cz>
9418 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
9421 2017-02-21 Martin Jambor <mjambor@suse.cz>
9423 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
9424 for backward compatibility only.
9425 * doc/invoke.texi (Option Summary): Remove all references to
9428 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
9432 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
9434 * lra-constraints.c (curr_insn_transform): Handle
9435 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
9437 2017-02-21 Martin Liska <mliska@suse.cz>
9439 * config/i386/i386.opt: Replace -masm-dialect with -masm.
9441 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
9443 PR translation/79638
9444 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
9446 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
9449 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9450 (arm_function_ok_for_sibcall): Return false for an indirect call by
9451 descriptor if all the argument registers are used.
9452 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
9453 alignment of the function.
9455 2017-02-21 Jakub Jelinek <jakub@redhat.com>
9457 PR tree-optimization/61441
9458 * simplify-rtx.c (simplify_const_unary_operation): For
9459 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
9460 the sNaN unmodified.
9462 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
9464 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
9465 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
9466 instead of SYSTEM_HEADER_DIR.
9468 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
9469 Martin Liška <mliska@suse.cz>
9471 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
9472 Fix typos and grammar, use active voice, and clarify.
9474 2017-02-20 Marek Polacek <polacek@redhat.com>
9477 * gimplify.c (gimplify_expr): Handle unused *&&L;.
9480 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
9482 2017-02-20 Jakub Jelinek <jakub@redhat.com>
9485 * config/i386/i386.c (ix86_expand_builtin): Handle
9486 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
9487 ix86_builtins_isa[fcode].isa as a requirement of those
9488 flags and any other flag in the bitmask.
9489 (ix86_init_mmx_sse_builtins): Use 0 instead of
9490 ~OPTION_MASK_ISA_64BIT as mask.
9491 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
9492 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
9493 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
9494 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
9496 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
9499 * lra-constraints.c (split_reg): Check requested split mode
9500 is supported by the register.
9502 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
9504 * lra-constraints.c (simplify_operand_subreg): Remove early
9507 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
9510 * lra-constraints.c (curr_insn_transform): Tighten condition
9511 for converting SUBREG reloads from OP_OUT to OP_INOUT.
9513 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
9516 * lra-constraints.c (curr_insn_transform): Handle
9517 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
9519 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
9522 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
9524 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
9526 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
9529 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
9532 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9534 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
9537 2017-02-18 Jakub Jelinek <jakub@redhat.com>
9539 * final.c (last_columnnum, override_columnnum): New variables.
9540 (final_start_function): Set last_columnnum, pass it to begin_prologue
9541 hook and pass 0 to dwarf2out_begin_prologue.
9542 (final_scan_insn): Update override_columnnum. Pass last_columnnum
9543 to source_line debug hook.
9544 (notice_source_line): Compute last_columnnum and for debug_column_info
9545 return true on column changes.
9546 * debug.h (struct gcc_debug_hooks): Add column argument to
9547 source_line and begin_prologue hooks.
9548 (debug_nothing_int_charstar_int_bool): Remove prototype.
9549 (debug_nothing_int_int_charstar,
9550 debug_nothing_int_int_charstar_int_bool): New prototypes.
9551 (dwarf2out_begin_prologue): Add column argument.
9552 * debug.c (do_nothing_debug_hooks): Adjust source_line and
9553 begin_prologue hooks.
9554 (debug_nothing_int_charstar_int_bool): Remove.
9555 (debug_nothing_int_int_charstar,
9556 debug_nothing_int_int_charstar_int_bool): New functions.
9557 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
9558 through to dwarf2out_source_line.
9559 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
9560 (dwarf2out_source_line): Add column argument, emit it if requested.
9561 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
9563 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
9564 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
9565 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
9566 through to dwarf2out_begin_prologue.
9567 (vmsdbgout_source_line): Add column argument, pass it through to
9568 dwarf2out_source_line.
9569 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
9570 dbxout_source_line caller.
9571 (dbxout_source_line): Add column argument.
9573 * common.opt (gno-column-info, gcolumn-info): New options.
9574 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
9575 (check_die): Also test for multiple DW_AT_decl_column attributes.
9576 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
9577 DW_AT_decl_column if requested.
9578 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
9580 (gen_variable_die): Likewise.
9581 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
9582 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
9585 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
9586 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
9587 (ix86_handle_option): Handle OPT_m3dnowa.
9588 * doc/invoke.texi (-m3dnowa): Document.
9589 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
9590 -m3dnowa instead of -m3dnow -march=athlon.
9593 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
9594 instead of gcc_assert for K, r and R code checks. Formatting fixes.
9596 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9599 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
9600 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
9601 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
9602 generator for vsx_xxpermdi_<mode>_be.
9603 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
9604 force big-endian semantics.
9605 (vsx_xxpermdi_<mode>_be): New define_expand with same
9606 implementation as previous version of vsx_xxpermdi_<mode>.
9608 2017-02-17 Jakub Jelinek <jakub@redhat.com>
9610 PR tree-optimization/79327
9611 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
9612 variable, its initialization and use.
9614 2017-02-17 Julia Koval <julia.koval@intel.com>
9616 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
9617 (OPTION_MASK_ISA_PKU_UNSET): New.
9618 (ix86_handle_option): Handle -mrdpid.
9619 * config/i386/cpuid.h (bit_RDPID): New.
9620 * config/i386/driver-i386.c (host_detect_local_cpu):
9621 Detect RDPID feature.
9622 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
9623 * config/i386/i386-c.c (ix86_target_macros_internal):
9625 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
9626 (ix86_valid_target_attribute_inner_p): Add "rdpid".
9627 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
9628 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
9629 * config/i386/i386.md (define_insn "rdpid"): New.
9630 * config/i386/i386.opt Add -mrdpid.
9631 * config/i386/immintrin.h (_rdpid_u32): New.
9633 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
9635 PR rtl-optimization/79541
9636 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
9637 instead of transforming it into USE.
9639 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
9641 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
9642 If HONOR_SNANS (SFmode) force the input to a register.
9643 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
9644 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
9645 an frsp or similar insn.
9647 2017-02-17 Martin Liska <mliska@suse.cz>
9649 PR rtl-optimization/79577
9650 * params.def (selsched-max-sched-times): Increase minimum to 1.
9652 2017-02-17 Martin Liska <mliska@suse.cz>
9654 PR rtl-optimization/79574
9655 * gcse.c (want_to_gcse_p): Prevent integer overflow.
9657 2017-02-17 Martin Liska <mliska@suse.cz>
9659 PR tree-optimization/79529
9660 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
9661 ssa_defined_default_def_p to handle cases which are implicitly
9663 * tree-ssa.c (ssa_defined_default_def_p): New function.
9664 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
9665 which are implicitly defined.
9666 * tree-ssa.h (ssa_defined_default_def_p): Declare.
9668 2017-02-17 Richard Biener <rguenther@suse.de>
9671 * params.def (max-ssa-name-query-depth): Limit to 10.
9673 2017-02-17 Richard Biener <rguenther@suse.de>
9675 PR tree-optimization/79552
9676 * tree-ssa-structalias.c (visit_loadstore): Properly verify
9679 2017-02-17 Richard Biener <rguenther@suse.de>
9682 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
9684 2017-02-17 Marek Polacek <polacek@redhat.com>
9687 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
9688 (fold_negate_expr): New wrapper.
9690 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
9692 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
9693 Correct terminology and de-emphasize pre-standard behavior.
9695 2017-02-16 Alan Modra <amodra@gmail.com>
9697 PR rtl-optimization/79286
9698 * ira.c (def_dominates_uses): New function.
9699 (update_equiv_regs): Don't create an equivalence for insns that
9700 may trap where the register def does not dominate the use.
9702 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
9704 PR rtl-optimization/78127
9705 * lra.c (lra): Call lra_eliminate before finish the loop after
9708 2017-02-16 Richard Biener <rguenther@suse.de>
9710 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
9712 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
9713 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
9714 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
9715 (isl_val_int_from_wi): New function.
9716 (extract_affine_gmp): Rename to ...
9717 (extract_affine_wi): ... this, take a widest_int.
9718 (extract_affine_int): Just wrap extract_affine_wi.
9719 (add_param_constraints): Use isl_val_int_from_wi.
9720 (add_loop_constraints): Likewise, and extract_affine_wi.
9722 2017-02-15 Jeff Law <law@redhat.com>
9725 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
9726 ira_init_register_move_cost_if_necessary.
9728 2017-02-15 Martin Sebor <msebor@redhat.com>
9731 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
9732 removed in a prior commit.
9734 2017-02-15 Bin Cheng <bin.cheng@arm.com>
9736 PR tree-optimization/79347
9737 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
9738 counters during peeling.
9740 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
9742 * Makefile.in (site.exp): Remove "set ISLVER".
9744 2017-02-15 Jakub Jelinek <jakub@redhat.com>
9747 * real.c (real_from_integer): Call real_convert even for decimal.
9749 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
9752 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
9754 2017-02-14 Andrew Pinski <apinski@cavium.com>
9756 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
9757 cores and change the partno/implementer to be correct.
9758 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
9759 the 'B" as the implementer.
9760 * config/aarch64/aarch64-tune.md: Regenerate.
9762 2017-02-14 Carl Love <cel@us.ibm.com>
9764 * config/rs6000/rs6000.c: Add case statement entry to make the
9765 xvcvuxdsp built-in argument unsigned.
9766 * config/rs6000/vsx.md: Fix the source and return operand types so they
9767 match the instruction definitions from the ISA document. Fix typo
9768 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
9771 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
9774 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
9775 member early_clobber_alts.
9776 * lra-lives.c (reg_early_clobber_p): New.
9777 (process_bb_lives): Use it.
9778 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
9779 (debug_operand_data): Initialize early_clobber_alts.
9780 (setup_operand_alternative): Set up early_clobber_alts.
9781 (collect_non_operand_hard_regs): Ditto. Pass early clobber
9782 alternatives to new_insn_reg.
9783 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
9785 (lra_update_insn_regno_info): Pass the new arg.
9787 2017-02-14 Jakub Jelinek <jakub@redhat.com>
9790 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
9791 (new_oacc_loop_raw): Don't clear already cleared fields.
9794 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
9795 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
9796 _mm512_prefetch_i64gather_ps): New inline functions and macros.
9798 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
9801 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
9803 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
9806 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
9807 the extra instruction to the right place to store 128-bit constant
9810 2017-02-14 Martin Sebor <msebor@redhat.com>
9813 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
9814 warning for strings of unknown length.
9816 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
9818 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
9820 2017-02-14 Jeff Law <law@redhat.com>
9823 * ira-costs.c (scan_one_insn): Initialize register move costs
9824 for pseudos seen in USE/CLOBBER insns.
9826 PR tree-optimization/79095
9827 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
9828 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
9829 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
9830 if the operands are known to be not equal, then the resulting range
9832 (intersect_ranges): If the new range is ~[0,0] and the old range is
9833 wide, then prefer ~[0,0].
9834 * tree-vrp.c (overflow_comparison_p_1): New function.
9835 (overflow_comparison_p): New function.
9836 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
9837 if NAME is used in an overflow test.
9838 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
9839 overflow check that can be expressed as an equality test, then adjust
9840 ops to be that equality test.
9842 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9844 * config/s390/s390-builtin-types.def: Remove flags argument.
9845 * config/s390/s390.c (s390_init_builtins): Likewise.
9847 2017-02-14 Martin Liska <mliska@suse.cz>
9849 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
9850 vector. Fix trailing white spaces.
9852 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
9854 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
9857 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9859 PR rtl-optimization/68664
9860 * config/arm/arm.c (arm_sched_can_speculate_insn):
9861 New function. Declare prototype.
9862 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
9864 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9866 PR rtl-optimization/68664
9867 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
9869 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
9871 2017-02-14 Amit Pawar <amit.pawar@amd.com>
9873 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
9874 max skip bytes for function, loop and jump.
9876 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9878 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
9879 ABS_EXPR for gimple dump.
9881 2017-02-14 Jakub Jelinek <jakub@redhat.com>
9884 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
9886 PR tree-optimization/79408
9887 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
9888 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
9889 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
9890 also if rhs1 is INTEGER_CST.
9892 2017-02-14 Richard Biener <rguenther@suse.de>
9895 * tree-into-ssa.c (insert_phi_nodes): When the function can
9896 have abnormal edges rewrite SSA names with broken use-def
9897 dominance out of SSA and register them for PHI insertion.
9899 2017-02-13 Martin Sebor <msebor@redhat.com>
9902 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
9903 clearing info.nowrite flag when snprintf size argument is a range.
9905 2017-02-13 Jakub Jelinek <jakub@redhat.com>
9907 * cprop.c (cprop_jump): Add missing space in string literal.
9908 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
9909 (get_constraint_for_component_ref): Likewise.
9910 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
9911 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
9912 * lra-constraints.c (process_alt_operands): Likewise.
9913 * ipa-inline.c (inline_small_functions): Likewise.
9914 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
9915 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
9916 * trans-mem.c (diagnose_tm_1_op): Likewise.
9917 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
9918 (grid_parallel_clauses_gridifiable): Likewise.
9920 * config/nvptx/mkoffload.c (process): Add space in between
9923 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
9924 "MOD4_SSE_REGS" and "ALL_REGS".
9926 * spellcheck.c (test_data): Add , in between "foo" and "food".
9928 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9931 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
9932 boundary crossing check and subsequent code generation agree.
9934 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9936 * config/aarch64/aarch64.c (has_memory_op): Delete.
9937 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
9940 2017-02-13 Jakub Jelinek <jakub@redhat.com>
9942 PR rtl-optimization/79388
9943 PR rtl-optimization/79450
9944 * combine.c (distribute_notes): When removing TEM_INSN for which
9945 corresponding dest has last value recorded, invalidate that last
9948 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9950 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
9951 of explicit '@'. Add missing assembly comment marker on branch costs
9954 2017-02-13 Nathan Sidwell <nathan@acm.org>
9956 * gengtype-lex.l (<in_struct>): Add '/'.
9958 2017-02-13 Martin Liska <mliska@suse.cz>
9961 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
9963 2017-02-13 Richard Biener <rguenther@suse.de>
9965 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
9967 * configure: Re-generate.
9968 * config.in: Likewise.
9969 * graphite-dependences.c: Simplify as if
9970 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
9971 * graphite-isl-ast-to-gimple.c: Likewise.
9972 * graphite-optimize-isl.c: Likewise.
9973 * graphite-poly.c: Likewise.
9974 * graphite-sese-to-poly.c: Likewise.
9975 * graphite.h: Likewise.
9976 * toplev.c: Include isl/version.h and use isl_version () for
9977 printing the ISL version.
9978 * doc/install.texi: Update ISL requirement.
9980 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
9982 * doc/standards.texi (Standards): Update reference to
9985 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
9987 * doc/extend.texi (Named Address Spaces): sourceware.org now
9989 * doc/install.texi (Binaries): Ditto.
9992 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
9994 * doc/cpp.texi: Replace "stringify"/"stringification" with C
9995 standard terminology "stringize"/"stringizing" throughout.
9996 * doc/cppinternals.texi: Likewise.
9998 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
10000 * doc/extend.texi: Fix some spelling mistakes and typos.
10001 * doc/invoke.texi: Likewise.
10003 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
10006 * params.def (inline-min-speedup) Change from 10 to 8.
10008 2017-02-11 Jakub Jelinek <jakub@redhat.com>
10010 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
10013 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
10016 * ipa-inline-analysis.c (get_minimal_bb): New function.
10017 (record_modified): Use it.
10018 (remap_edge_change_prob): Handle also ancestor functions.
10020 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
10022 * doc/contrib.texi (Contributors): Remove broken link into
10023 the Mauve CVS repository.
10025 2017-02-11 Jakub Jelinek <jakub@redhat.com>
10027 PR middle-end/79454
10028 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
10029 result computation whenever lhs doesn't have vector mode, not
10030 just when it has BLKmode.
10032 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
10034 * doc/makefile.texi (profiledbootstrap): Refer to the
10035 installation instructions only in textual form.
10037 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10040 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
10042 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
10044 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
10045 (Specific): Update mingw-w64 reference.
10047 (Specific): Remove broken link to Renesas RX processor.
10049 2017-02-10 Richard Biener <rguenther@suse.de>
10051 * toplev.c (process_options): Do not mention obsolete graphite
10052 options when printing sorry message about missing graphite support.
10053 Mention -floop-nest-optimize.
10055 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
10057 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
10058 (vtst_p16): Likewise.
10059 (vtstq_p8): Likewise.
10060 (vtstq_p16): Likewise.
10062 (vtstq_p64): Likewise.
10063 * config/arm/arm_neon.h (vgetq_lane_p64): New.
10064 (vset_lane_p64): New.
10065 (vsetq_lane_p64): New.
10067 2017-02-10 Jakub Jelinek <jakub@redhat.com>
10069 PR tree-optimization/79411
10070 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
10071 stmt operands are SSA_NAMEs used in abnormal phis.
10072 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
10075 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
10078 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
10081 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
10083 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
10085 2017-02-09 Jakub Jelinek <jakub@redhat.com>
10087 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
10091 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
10092 not arbitrary TREE_CONSTANT.
10095 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
10096 "omp declare target link" attribute unless is_global_var.
10097 * omp-offload.c (find_link_var_op): Likewise.
10099 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
10100 Chung-Lin Tang <cltang@codesourcery.com>
10102 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
10104 (gimplify_adjust_omp_clauses): Don't delete TILE.
10105 (gimplify_omp_for): Deal with TILE.
10106 * internal-fn.c (expand_GOACC_TILE): New function.
10107 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
10109 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
10110 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
10112 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
10113 avoid DIV for outermost collapse var.
10114 (expand_oacc_for): Insert tile element loop as needed. Adjust.
10115 Remove out of date comments, fix whitespace.
10116 * omp-general.c (omp_extract_for_data): Deal with tiling.
10117 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
10118 adjust OLF_DIM_BASE value.
10119 (struct omp_for_data): Add tiling field.
10120 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
10121 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
10122 for auto loops. Remove default auto determining, moved to
10123 oacc_loop_fixed_partitions.
10124 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
10125 stmts, add e_mask field.
10126 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
10127 (oacc_thread_numbers): Use oacc_dim_call.
10128 (oacc_xform_tile): New.
10129 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
10130 (finish_oacc_loop): Adjust for ifns vector.
10131 (oacc_loop_discover_walk): Append loop abstraction sites to list,
10132 add case for GOACC_TILE fns.
10133 (oacc_loop_xform_loop): Delete.
10134 (oacc_loop_process): Iterate over call list directly, and add
10135 handling for GOACC_TILE fns.
10136 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
10138 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
10139 vector partitioning to outer loops. Assign 2 partitions to loops
10140 when available. Add TILE handling.
10141 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
10142 (execite_oacc_device_lower): Process GOACC_TILE fns,
10143 ignore unknown specs.
10144 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
10145 * tree.c (omp_clause_num_ops): Adjust TILE ops.
10146 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
10148 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
10150 * configure.ac (ACX_BUGURL): Update.
10151 * configure: Regenerate.
10153 2017-02-09 Richard Biener <rguenther@suse.de>
10155 PR tree-optimization/69823
10156 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
10157 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
10159 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
10161 * config/arc/arc-c.def: Add __NPS400__ definition.
10162 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
10163 (TARGET_NPS400): Define.
10165 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
10167 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
10169 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
10170 pointer, arch_info.
10171 (arc_cpu_types): Fill the arch_info field with a pointer into the
10172 arc_arch_types table.
10173 (arc_selected_cpu): Declare.
10174 * config/arc/arc.c (arc_selected_cpu): Make global.
10175 (arc_selected_arch): Delete.
10176 (arc_base_cpu): Delete.
10177 (arc_override_options): Remove references to deleted variables,
10178 update access to arch information.
10179 (ARC_OPT): Update access to arch information.
10180 (ARC_OPTX): Likewise.
10181 * config/arc/arc.h (arc_base_cpu): Remove declaration.
10182 (TARGET_ARC600): Update access to arch information.
10183 (TARGET_ARC601): Likewise.
10184 (TARGET_ARC700): Likewise.
10185 (TARGET_EM): Likewise.
10186 (TARGET_HS): Likewise.
10187 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
10190 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
10193 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
10194 condition/operands for integer GE/LE/GEU/LEU operations.
10196 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
10198 PR translation/79397
10199 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
10202 2017-02-08 Martin Jambor <mjambor@suse.cz>
10205 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
10206 whether allocation happened.
10207 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
10208 nothing was allocated.
10210 2017-02-08 Jakub Jelinek <jakub@redhat.com>
10212 PR tree-optimization/79408
10213 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
10214 constant, but SSA_NAME with a known integer range, use the minimum
10215 of that range instead of op1 to determine if modulo can be replaced
10216 with its first operand.
10218 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10220 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
10222 2017-02-08 Richard Biener <rguenther@suse.de>
10224 PR tree-optimization/71824
10225 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
10226 Check all loops contained in the merged region.
10228 2017-02-07 Andrew Pinski <apinski@cavium.com>
10230 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
10232 2017-02-07 Andrew Pinski <apinski@cavium.com>
10234 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
10235 (thunderxt88): Likewise.
10236 (thunderxt81): Disable LSE and change v8.1 to v8.
10237 (thunderxt83): Likewise.
10239 2017-02-07 Jakub Jelinek <jakub@redhat.com>
10240 Richard Biener <rguenther@suse.de>
10242 PR middle-end/79399
10243 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
10244 type from int to size_t.
10245 * ira-costs.c (struct_costs_size): Change type from int to size_t.
10247 2017-02-07 Jakub Jelinek <jakub@redhat.com>
10249 PR rtl-optimization/79386
10250 * cprop.c (bypass_conditional_jumps): Initialize
10251 bypass_last_basic_block already before splitting bbs after
10252 unconditional traps...
10253 (bypass_conditional_jumps): ... rather than here.
10256 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
10257 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
10258 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
10259 fix -masm=intel patterns.
10261 2017-02-07 Richard Biener <rguenther@suse.de>
10263 PR tree-optimization/79256
10264 PR middle-end/79278
10265 * builtins.c (get_object_alignment_2): Use min_align_of_type
10266 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
10267 and ADJUST_FIELD_ALIGN.
10269 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
10271 * doc/tm.texi: Regenerate.
10272 * stor-layout.c (layout_decl): Adjust.
10273 (update_alignment_for_field): Likewise.
10274 (place_field): Likewise.
10275 (min_align_of_type): Likewise.
10276 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
10277 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
10278 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
10279 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
10280 * config/frv/frv.c (frv_adjust_field_align): Likewise.
10281 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
10282 * config/i386/i386.c (x86_field_alignment): Likewise.
10283 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
10284 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
10285 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
10286 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
10287 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
10288 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
10292 2017-01-30 Richard Biener <rguenther@suse.de>
10294 PR tree-optimization/79256
10295 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
10296 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
10299 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
10301 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
10302 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
10303 builtins to SImode and emit a zero-extend, if necessary.
10305 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
10307 * docs/invoke.texi (RISC-V Options): Alphabetize.
10309 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
10311 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
10314 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
10316 * config/riscv/riscv.c: New file.
10317 * gcc/common/config/riscv/riscv-common.c: Likewise.
10318 * config.gcc: Likewise.
10319 * config/riscv/constraints.md: Likewise.
10320 * config/riscv/elf.h: Likewise.
10321 * config/riscv/generic.md: Likewise.
10322 * config/riscv/linux.h: Likewise.
10323 * config/riscv/multilib-generator: Likewise.
10324 * config/riscv/peephole.md: Likewise.
10325 * config/riscv/pic.md: Likewise.
10326 * config/riscv/predicates.md: Likewise.
10327 * config/riscv/riscv-builtins.c: Likewise.
10328 * config/riscv/riscv-c.c: Likewise.
10329 * config/riscv/riscv-ftypes.def: Likewise.
10330 * config/riscv/riscv-modes.def: Likewise.
10331 * config/riscv/riscv-opts.h: Likewise.
10332 * config/riscv/riscv-protos.h: Likewise.
10333 * config/riscv/riscv.h: Likewise.
10334 * config/riscv/riscv.md: Likewise.
10335 * config/riscv/riscv.opt: Likewise.
10336 * config/riscv/sync.md: Likewise.
10337 * config/riscv/t-elf-multilib: Likewise.
10338 * config/riscv/t-linux: Likewise.
10339 * config/riscv/t-linux-multilib: Likewise.
10340 * config/riscv/t-riscv: Likewise.
10341 * configure.ac: Likewise.
10342 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
10343 Waterman as RISC-V maintainers.
10344 * doc/install.texi: Add RISC-V entries.
10345 * doc/invoke.texi: Add RISC-V options section.
10346 * doc/md.texi: Add RISC-V constraints section.
10347 * configure: Regenerated.
10349 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10352 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
10353 false values to be constant vectors with all 0 or all 1 bits set.
10354 (vcondu<mode><mode>): Likewise.
10355 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
10357 (fpmask_comparison_operator): Update comment.
10358 (vecint_comparison_operator): New predicate.
10359 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
10360 vector conditionals when the true and false values are constant
10361 vectors with all 0 bits or all 1 bits set.
10363 2017-02-06 Martin Sebor <msebor@redhat.com>
10365 PR tree-optimization/79376
10366 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
10368 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
10370 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
10371 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
10372 to simplify split condition.
10374 2017-02-06 Jakub Jelinek <jakub@redhat.com>
10376 * omp-expand.c (oxpand_omp_atomic_fetch_op,
10377 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
10380 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
10382 PR rtl-optimization/68664
10383 * target.def (can_speculate_insn): New hook.
10384 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
10385 * doc/tm.texi: Regenerate.
10386 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
10387 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
10388 (rs6000_sched_can_speculate_insn): New function.
10390 2017-02-06 Jakub Jelinek <jakub@redhat.com>
10392 PR tree-optimization/79284
10393 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
10394 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
10395 vectorizable_mask_load_store, vectorizable_operation,
10396 vect_is_simple_cond, get_same_sized_vectype): Use it instead
10397 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
10398 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
10399 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
10400 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
10401 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
10402 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
10403 is_gimple_assign (stmt). Replace another such test with
10404 is_gimple_assign (stmt).
10406 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
10409 * config/avr/avr.c (rtl-iter.h): Include it.
10410 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
10411 (avr_legitimate_combined_insn): ...and implementation.
10413 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
10415 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
10416 * config/s390/s390.c (s390_const_operand_ok)
10417 (s390_canonicalize_comparison, s390_extract_part)
10418 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
10419 (s390_contiguous_bitmask_p, s390_rtx_costs)
10420 (legitimize_pic_address): Likewise.
10421 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
10422 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
10423 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
10424 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
10425 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
10427 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
10429 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
10430 REGNO($0) == REGNO($1).
10432 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10434 * config/s390/linux.h(SIZE_TYPE): Add comment.
10436 2017-02-06 Julian Brown <julian@codesourcery.com>
10437 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
10438 Virendra Pathak <virendra.pathak@broadcom.com>
10440 * config/aarch64/aarch64-cores.def: Change the scheduler
10442 * config/aarch64/aarch64.md: Include thunderx2t99.md.
10443 * config/aarch64/thunderx2t99.md: New file.
10445 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
10447 * doc/standards.texi (Go Language): Update link to language
10450 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
10452 * tree-eh.c (lower_resx): Sanitize profile.
10453 (cleanup_empty_eh_move_lp): Likewise.
10455 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
10458 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
10460 * cfgloopmanip.h (loop_version): Update prototype.
10461 * modulo-sched.c (sms_schedule): Update call of loop_version.
10462 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
10463 * tree-parloops.c (gen_parallel_loop): Likewise.
10464 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
10465 * tree-ssa-loop-split.c (split_loop): Likewise.
10466 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
10467 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
10469 2017-02-05 Martin Liska <mliska@suse.cz>
10472 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
10474 (print_operand_address): Initialize a struct to zero.
10476 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
10478 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
10479 garbage collector only in textual form.
10481 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
10483 * doc/extend.texi (x86 specific memory model extensions for
10484 transactional memory): Simplify a phrase.
10486 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
10489 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
10490 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
10491 (atomic_storedi_1): Likewise.
10493 2017-02-04 Jakub Jelinek <jakub@redhat.com>
10495 PR tree-optimization/79338
10496 * tree-parloops.c (gather_scalar_reductions): Don't call
10497 vect_analyze_loop_form for loop->inner before destroying loop's
10500 2017-02-03 Martin Sebor <msebor@redhat.com>
10502 PR tree-optimization/79327
10503 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
10504 when precision has resulted in leading zeros.
10505 (format_integer): Adjust the likely counter to assume an unknown
10506 argument that may be zero is non-zero.
10508 2017-02-03 Jason Merrill <jason@redhat.com>
10511 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
10512 avoid copying non-taken branch.
10514 2017-02-03 Jakub Jelinek <jakub@redhat.com>
10516 PR tree-optimization/79340
10517 * tree-vect-loop.c (vectorizable_reduction): Release
10518 vec_defs elements after safe_splicing them into other vectors.
10521 PR tree-optimization/79327
10522 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
10523 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
10525 (format_integer): Use wide_int_to_tree instead of build_int_cst
10526 + to_?hwi. If argmin is NULL, just set argmin and argmax to
10527 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
10528 of shortest and longest sequence.
10530 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
10532 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
10533 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
10535 2017-02-03 Walter Lee <walt@tilera.com>
10538 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
10539 after initial stackframe link reg save.
10540 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
10542 2017-02-03 Jakub Jelinek <jakub@redhat.com>
10545 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
10546 wu for stxssp alternative.
10548 2017-02-03 Martin Sebor <msebor@redhat.com>
10550 PR tree-optimization/79352
10551 * gimple-fold.c (get_range_strlen): Add argument.
10552 (get_range_strlen): Change return type to bool.
10553 (get_maxval_strlen): Pass in a dummy argument.
10554 * gimple-fold.h (get_range_strlen): Change return type to bool.
10555 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
10556 * tree.h (array_at_struct_end_p): Add argument.
10557 * tree.c (array_at_struct_end_p): Handle it.
10559 2017-02-03 Martin Liska <mliska@suse.cz>
10562 * multiple_target.c (create_dispatcher_calls): Redirect edge
10563 from a caller of a dispatcher.
10564 (expand_target_clones): Make the clones local.
10565 (ipa_target_clone): Do both target clones and resolvers.
10566 (ipa_dispatcher_calls): Remove the pass.
10567 (pass_dispatcher_calls::gate): Likewise.
10568 (make_pass_dispatcher_calls): Likewise.
10569 * passes.def (pass_target_clone): Put as very first IPA early
10572 2017-02-03 Martin Liska <mliska@suse.cz>
10574 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
10575 in case of a function with ifunc attribute.
10577 2017-02-03 Martin Liska <mliska@suse.cz>
10579 * cgraph.c (cgraph_node::dump): Dump function version info.
10580 * symtab.c (symtab_node::dump_base): Add missing new line.
10582 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
10584 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
10585 (ifcombine_ifandif): Use it.
10587 2017-02-03 Martin Liska <mliska@suse.cz>
10589 * doc/invoke.texi: Document default value for
10590 use-after-scope-direct-emission-threshold.
10592 2017-02-03 Martin Liska <mliska@suse.cz>
10594 PR tree-optimization/79339
10595 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
10596 (format_floating): Likewise.
10598 2017-02-03 Martin Liska <mliska@suse.cz>
10601 * ipa-prop.c (ipa_node_params_t::insert): Remove current
10603 (ipa_node_params_t::remove): Likewise.
10604 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
10605 initialization from removed ipa_node_params_t::insert.
10606 (ipa_node_params::~ipa_node_params): Move from removed
10607 ipa_node_params_t::release.
10608 * symbol-summary.h (symbol_summary::m_released): New member.
10609 Do not release a summary twice. Do not allow to call finalizer
10610 for types of a summary that live in GGC memory.
10612 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
10614 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
10617 2017-02-02 Martin Sebor <msebor@redhat.com>
10619 PR middle-end/79275
10620 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
10621 (format_string): Tighten up the range of output for non-constant
10622 strings and correct the expected range for wide non-constant strings.
10624 2017-02-02 Martin Sebor <msebor@redhat.com>
10626 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
10628 PR middle-end/32003
10629 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
10631 (-fdump-tree-@var): Add to index and document how to come up
10632 with pass-specific option and dump file names.
10633 (-fdump-passes): Clarify where to look for output.
10635 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
10637 PR middle-end/77445
10638 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
10639 statistics of the analyzed path; allow threading for speed when
10640 any of BBs along the path are optimized for speed.
10642 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
10644 PR middle-end/78468
10645 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
10646 settings of the virtual registers.
10649 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10651 * explow.c (get_dynamic_stack_size): Take known alignment of stack
10652 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
10655 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10657 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
10658 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
10660 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10662 * config/s390/s390.md: Add missing comments with the expanded
10664 * config/s390/vector.md: Likewise.
10665 * config/s390/vx-builtins.md: Likewise.
10667 2017-02-02 Jakub Jelinek <jakub@redhat.com>
10670 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
10671 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
10672 conditions on a single line.
10674 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10676 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
10677 __S390_VX__ to __VX__.
10679 2017-02-01 Andrew Pinski <apinski@cavium.com>
10681 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
10682 stmt_info to record_stmt_cost.
10683 (vect_get_known_peeling_cost): Pass stmt_info if known to
10685 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
10686 cpu_vector_cost field into
10687 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
10688 field into vec_int_stmt_cost and vec_fp_stmt_cost.
10689 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
10690 splitting of scalar_stmt_cost and vec_stmt_cost.
10691 (thunderx_vector_cost): Likewise.
10692 (cortexa57_vector_cost): LIkewise.
10693 (exynosm1_vector_cost): Likewise.
10694 (xgene1_vector_cost): Likewise.
10695 (thunderx2t99_vector_cost): Improve after the splitting of the two
10697 (aarch64_builtin_vectorization_cost): Update for the splitting of
10698 scalar_stmt_cost and vec_stmt_cost.
10700 2017-02-01 Torvald Riegel <triegel@redhat.com>
10701 Richard Henderson <rth@redhat.com>
10703 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
10704 conditional on existance of a fast atomic load.
10705 * optabs-query.c (can_atomic_load_p): New function.
10706 * optabs-query.h (can_atomic_load_p): Declare it.
10707 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
10708 no fast atomic load is available for the particular size of access.
10709 (expand_atomic_compare_and_swap): Likewise.
10710 (expand_atomic_load): Likewise.
10711 (expand_atomic_store): Likewise.
10712 (expand_atomic_fetch_op): Likewise.
10713 * testsuite/lib/target-supports.exp
10714 (check_effective_target_sync_int_128): Remove x86 because it provides
10715 no fast atomic load.
10716 (check_effective_target_sync_int_128_runtime): Likewise.
10718 2017-02-01 Richard Biener <rguenther@suse.de>
10720 * graphite.c: Include tree-vectorizer.h for find_loop_location.
10721 (graphite_transform_loops): Provide opt-info for optimized nests.
10722 * tree-parloop.c (parallelize_loops): Provide opt-info for
10723 parallelized loops.
10725 2017-02-01 Richard Biener <rguenther@suse.de>
10727 PR middle-end/79315
10728 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
10729 was not set before.
10731 2017-02-01 Richard Biener <rguenther@suse.de>
10733 PR tree-optimization/71824
10734 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
10735 Verify the loops are valid in the merged SESE region.
10736 (scop_detection::can_represent_loop_1): Check analyzing the
10737 evolution of the number of iterations in the region succeeds.
10739 2017-01-31 Ian Lance Taylor <iant@golang.org>
10741 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
10742 REG_ARGS_SIZE note to 32-bit push insns and call insn.
10744 2017-01-31 David Malcolm <dmalcolm@redhat.com>
10746 PR preprocessor/79210
10747 * input.c (get_substring_ranges_for_loc): Replace line_width
10748 assertion with error-handling.
10750 2017-01-31 Richard Biener <rguenther@suse.de>
10752 PR tree-optimization/77318
10753 * graphite-sese-to-poly.c (extract_affine): Fix assert.
10754 (create_pw_aff_from_tree): Take loop parameter.
10755 (add_condition_to_pbb): Pass loop of the condition to
10756 create_pw_aff_from_tree.
10758 2017-01-31 Jakub Jelinek <jakub@redhat.com>
10760 * config/s390/s390.c (s390_asan_shadow_offset): New function.
10761 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
10763 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
10767 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
10769 (convert_int_to_float128): Likewise.
10770 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
10771 (convert_int_to_float128): Likewise.
10772 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
10773 (UNSPEC_IEEE128_CONVERT): Likewise.
10774 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
10775 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
10776 Use local variables for IBM extended format.
10777 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
10778 (fix_trunc<mode>si2_fprs): Likewise.
10779 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10780 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
10781 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
10782 to know that we can now have integers of all sizes in vector
10784 (fix<uns>_<mode>di2_hw): Likewise.
10785 (float<uns>_<mode>si2_hw): Likewise.
10786 (fix_<mode>si2_hw): Likewise.
10787 (fixuns_<mode>si2_hw): Likewise.
10788 (float<uns>_<mode>di2_hw): Likewise.
10789 (float_<mode>di2_hw): Likewise.
10790 (float_<mode>si2_hw): Likewise.
10791 (floatuns_<mode>di2_hw): Likewise.
10792 (floatuns_<mode>si2_hw): Likewise.
10793 (xscvqp<su>wz_<mode>): Delete, no longer used.
10794 (xscvqp<su>dz_<mode>): Likewise.
10795 (xscv<su>dqp_<mode>): Likewise.
10796 (ieee128_mfvsrd_64bit): Likewise.
10797 (ieee128_mfvsrd_32bit): Likewise.
10798 (ieee128_mfvsrwz): Likewise.
10799 (ieee128_mtvsrw): Likewise.
10800 (ieee128_mtvsrd_64bit): Likewise.
10801 (ieee128_mtvsrd_32bit): Likewise.
10803 2017-01-31 Martin Liska <mliska@suse.cz>
10806 * ipa-prop.c (ipa_free_all_node_params): Call release method
10807 instead of ~sumbol_summary to not to trigger double times
10810 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
10812 PR tree-optimization/71691
10813 * bitmap.h (class auto_bitmap): New.
10814 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
10815 is_maybe_undefined instead of ssa_undefined_value_p.
10817 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10819 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
10820 __S390_ARCH_LEVEL__ to __ARCH__.
10822 2017-01-31 Jakub Jelinek <jakub@redhat.com>
10824 PR tree-optimization/79267
10825 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
10826 if should_remove_lhs_p is true.
10828 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
10831 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
10832 (add_alignment_attribute): New.
10833 (base_type_die): Add alignment attribute.
10834 (subrange_type_die): Likewise.
10835 (modified_type_die): Likewise.
10836 (gen_array_type_die): Likewise.
10837 (gen_descr_array_type_die: Likewise.
10838 (gen_enumeration_type_die): Likewise.
10839 (gen_subprogram_die): Likewise.
10840 (gen_variable_die): Likewise.
10841 (gen_field_die): Likewise.
10842 (gen_ptr_to_mbr_type_die): Likewise.
10843 (gen_struct_or_union_type_die): Likewise.
10844 (gen_subroutine_type_die): Likewise.
10845 (gen_typedef_die): Likewise.
10846 (base_type_cmp): Compare alignment attribute.
10848 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10851 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
10852 (setb_unsigned) New pattern for setb with CCUNS.
10853 * config/rs6000/rs6000.c (expand_block_compare): Use a different
10854 subfc./subfe sequence to avoid overflow problems. Generate a
10855 shorter sequence with cmpld/setb for power9.
10856 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
10857 for generating subfc. instruction.
10858 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
10859 now uses this instruction.
10861 2017-01-30 Ian Lance Taylor <iant@google.com>
10864 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
10865 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
10867 2017-01-30 Martin Sebor <msebor@redhat.com>
10869 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
10870 Move constant to the right of a relational operator.
10871 (get_mpfr_format_length, format_character, format_string): Ditto.
10872 (should_warn_p, maybe_warn): Same.
10874 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
10876 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
10879 * asan.c (get_translation_unit_decl): Remove function.
10880 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
10882 2017-01-30 Martin Liska <mliska@suse.cz>
10884 PR gcov-profile/79259
10885 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
10886 -fprofile-generate.
10888 2017-01-30 Martin Liska <mliska@suse.cz>
10891 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
10892 Initialize variables with NULL value.
10894 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
10897 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
10899 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
10901 2017-01-30 Richard Biener <rguenther@suse.de>
10903 PR tree-optimization/79276
10904 * tree-vrp.c (process_assert_insertions): Properly adjust common
10905 when removing a duplicate.
10907 * gcc.dg/torture/pr79276.c: New testcase.
10909 2017-01-30 Richard Biener <rguenther@suse.de>
10911 PR tree-optimization/79256
10912 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
10913 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
10915 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
10917 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
10920 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
10921 ("*r<noxa>sbg_<mode>_sll_bitmask")
10922 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
10923 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
10924 Use contiguous_bitmask_nowrap_operand.
10926 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10929 * config/rs6000/altivec.h (vec_xl): Revise #define.
10930 (vec_xst): Likewise.
10932 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
10934 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
10936 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
10938 PR rtl-optimization/79194
10939 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
10940 traps before call to bypass_conditional_jumps.
10942 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
10944 PR tree-optimization/71374
10945 * lra-constraints.c (check_conflict_input_operands): New.
10946 (match_reload): Use it.
10948 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
10951 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
10952 account to calculate conflict_set.
10954 2017-01-27 Bin Cheng <bin.cheng@arm.com>
10956 PR rtl-optimization/78559
10957 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
10958 other_insn in combine.
10960 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
10962 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
10963 uint16_type_node for BT_UINT16.
10965 2017-01-27 David Malcolm <dmalcolm@redhat.com>
10967 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
10968 "RTL Tests" to menu.
10969 (GIMPLE Tests): New node.
10970 (RTL Tests): New node.
10972 2017-01-27 Richard Biener <rguenther@suse.de>
10974 PR tree-optimization/79245
10975 * tree-loop-distribution.c (distribute_loop): Apply cost
10976 modeling also to detected patterns.
10978 2017-01-27 Richard Biener <rguenther@suse.de>
10980 PR tree-optimization/71433
10981 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
10982 (compare_assert_loc): New function.
10983 (process_assert_insertions): Sort and optimize assert locations
10984 to remove duplicates and push down identical assertions on
10985 edges to their destination block.
10987 2017-01-27 Richard Biener <rguenther@suse.de>
10989 PR tree-optimization/79244
10990 * tree-vrp.c (remove_range_assertions): Forcefully propagate
10991 out SSA names even if abnormal.
10993 2017-01-27 Jakub Jelinek <jakub@redhat.com>
10995 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
10996 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
10997 instead of MPFR_RNDN.
10999 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
11002 * arm.c (arm_option_override): Don't call build_target_option_node
11003 until after doing all option overrides.
11004 (arm_valid_target_attribute_tree): Likewise.
11006 2017-01-27 Martin Liska <mliska@suse.cz>
11008 * doc/invoke.texi (-fprofile-arcs): Document profiling support
11009 for {cd}tors and C++ {cd}tors.
11011 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
11013 * config/s390/s390.md ("*setmem_long_and")
11014 ("*setmem_long_and_31z"): Use zero_extend instead of and.
11016 2017-01-26 Martin Sebor <msebor@redhat.com>
11018 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
11021 2017-01-26 Martin Sebor <msebor@redhat.com>
11023 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
11024 HAVE_DFmode before using XFmode or DFmode.
11025 (parse_directive): Avoid using the z length modifier to avoid
11026 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
11028 PR middle-end/78703
11029 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
11030 to accept adjustment as an array.
11031 (get_int_range): New function.
11032 (struct directive): Make width and prec arrays.
11033 (directive::set_width, directive::set_precision): Call get_int_range.
11034 (format_integer, format_floating): Handle width and precision ranges.
11035 (format_string, parse_directive): Same.
11037 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11040 * dwarf2out.c (generate_skeleton_bottom_up): For children with
11041 comdat_type_p set, just clone them, but keep the children in the
11045 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
11046 which have direct callers with -fvar-tracking-assignments enabled
11048 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
11049 inside of type units.
11051 2017-01-26 Martin Sebor <msebor@redhat.com>
11053 PR middle-end/78703
11054 * gimple-ssa-sprintf.c (struct result_range): Add likely and
11056 (struct format_result): Replace number_chars, number_chars_min,
11057 and number_chars_max with a single member of struct result_range.
11059 (format_result::operator+=): Adjust.
11060 (struct fmtresult): Remove bounded. Handle likely and unlikely
11062 (fmtresult::adjust_for_width_or_precision): New function.
11063 (fmtresult:type_max_digits): New function.
11064 (bytes_remaining): Handle likely and unlikely counters.
11065 (min_bytes_remaining): Remove.
11066 (format_percent): Simplify.
11067 (format_integer, format_floating): Set likely and unlikely counters.
11068 (get_string_length, format_character, format_string): Same.
11069 (format_plain, should_warn_p): New function.
11070 (maybe_warn): Call should_warn_p. Update diagnostic messages
11071 and handle those for all directives, including plain strings.
11072 (format_directive): Handle likely and unlikely counters.
11073 Remove unnecessary quoting from diagnostics. Add an informational
11075 (add_bytes): Remove.
11076 (pass_sprintf_length::compute_format_length): Simplify.
11077 (try_substitute_return_value): Handle likely and unlikely counters.
11079 2017-01-26 Carl Love <cel@us.ibm.com>
11081 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
11082 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
11084 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
11087 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
11088 endianess for subregs into account.
11089 * lra-constraints.c (lra_constraints): Do risky transformations
11090 always on the first iteration.
11091 * lra-lives.c (check_pseudos_live_through_calls): Add arg
11092 last_call_used_reg_set.
11093 (process_bb_lives): Define and use last_call_used_reg_set.
11094 * lra.c (lra): Always continue after lra_constraints on the first
11097 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
11099 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
11101 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
11103 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11105 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
11106 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
11107 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
11108 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
11109 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
11110 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
11111 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
11112 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
11113 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
11115 2017-01-26 Marek Polacek <polacek@redhat.com>
11118 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
11119 for the third operand.
11121 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11123 PR middle-end/79236
11124 * omp-low.c (struct omp_context): Add simt_stmt field.
11125 (scan_omp_for): Return omp_context *.
11126 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
11127 context to the _simt_ SIMD stmt.
11128 (lower_omp_for): For combined SIMD with sibling _simt_
11129 SIMD, make sure to use the same decls in _looptemp_
11130 clauses as in the sibling.
11132 2017-01-26 David Sherwood <david.sherwood@arm.com>
11134 PR middle-end/79212
11135 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
11138 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11141 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
11142 emit fld b; fld a; if possible.
11144 * brig-builtins.def: Update copyright years.
11145 * config/arm/arm_acle_builtins.def: Update copyright years.
11147 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
11150 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
11151 constraint instead of o for the stxsd instruction.
11153 2017-01-25 Carl Love <cel@us.ibm.com>
11155 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
11156 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
11158 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
11160 * doc/invoke.texi (C++ Dialect Options): Fix typo.
11162 2017-01-25 Richard Biener <rguenther@suse.de>
11164 PR tree-optimization/69264
11165 * target.def (vector_alignment_reachable): Improve documentation.
11166 * doc/tm.texi: Regenerate.
11167 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
11169 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
11170 earlier changes with respect to TYPE_USER_ALIGN.
11171 (vector_alignment_reachable_p): Likewise. Improve dumping.
11173 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11176 * config/arm/arm.md (xordi3): Force constant operand into a register
11179 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11181 * doc/invoke.texi (-fstore-merging): Correct default optimization
11182 levels at which it is enabled.
11183 (-O): Move -fstore-merging from list to...
11186 2017-01-25 Richard Biener <rguenther@suse.de>
11189 * omp-expand.c: Include debug.h.
11190 (expand_omp_taskreg): Make sure to generate early debug before
11191 outlining anything from a function.
11192 (expand_omp_target): Likewise.
11193 (grid_expand_target_grid_body): Likewise.
11195 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
11198 * asan.c (get_translation_unit_decl): New function.
11199 (asan_add_global): Extract modules file name from globals
11200 TRANSLATION_UNIT_DECL name.
11202 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
11205 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
11206 for long calls with APCS frame and VFP.
11208 2017-01-24 David Malcolm <dmalcolm@redhat.com>
11210 * cfg.c (original_copy_tables_initialized_p): New function.
11211 * cfg.h (original_copy_tables_initialized_p): New decl.
11212 * cfgrtl.c (relink_block_chain): Guard the call to
11213 free_original_copy_tables with a call to
11214 original_copy_tables_initialized_p.
11215 * cgraph.h (symtab_node::native_rtl_p): New decl.
11216 * cgraphunit.c (symtab_node::native_rtl_p): New function.
11217 (symtab_node::needed_p): Don't assert for early assembly output
11218 for __RTL functions.
11219 (cgraph_node::finalize_function): Set "force_output" for __RTL
11221 (cgraph_node::analyze): Bail out early for __RTL functions.
11222 (analyze_functions): Update assertion to support __RTL functions.
11223 (cgraph_node::expand): Bail out early for __RTL functions.
11224 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
11226 * function.h (struct function): Update comment for field
11228 * gimple-expr.c: Include "tree-pass.h".
11229 (gimple_has_body_p): Return false for __RTL functions.
11230 * Makefile.in (OBJS): Add run-rtl-passes.o.
11231 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
11233 (gcc::pass_manager::get_clean_slate): New accessor.
11234 * passes.c: Include "insn-addr.h".
11235 (should_skip_pass_p): Add logging. Update logic for running
11236 "expand" to be compatible with both __GIMPLE and __RTL. Guard
11237 property-provider override so it is only done for gimple passes.
11239 (skip_pass): New function.
11240 (execute_one_pass): Call skip_pass when skipping passes.
11241 * read-md.c (md_reader::read_char): Support filtering
11242 the input to a subset of line numbers.
11243 (md_reader::md_reader): Initialize fields
11244 m_first_line and m_last_line.
11245 (md_reader::read_file_fragment): New function.
11246 * read-md.h (md_reader::read_file_fragment): New decl.
11247 (md_reader::m_first_line): New field.
11248 (md_reader::m_last_line): New field.
11249 * read-rtl-function.c (function_reader::create_function): Only
11250 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
11251 curr_properties. Set DECL_INITIAL to a dummy block.
11252 (read_rtl_function_body_from_file_range): New function.
11253 * read-rtl-function.h (read_rtl_function_body_from_file_range):
11255 * run-rtl-passes.c: New file.
11256 * run-rtl-passes.h: New file.
11258 2017-01-24 Jeff Law <law@redhat.com>
11260 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
11263 2017-01-24 Bin Cheng <bin.cheng@arm.com>
11265 PR tree-optimization/79159
11266 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
11267 (record_nonwrapping_iv): Improve boundary using above function if no
11268 value range information.
11270 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
11271 Martin Jambor <mjambor@suse.cz>
11273 * brig-builtins.def: New file.
11274 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
11275 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
11276 (DEF_HSAIL_SAT_BUILTIN): Likewise.
11277 (DEF_HSAIL_INTR_BUILTIN): Likewise.
11278 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
11279 * builtin-types.def (BT_INT8): New.
11280 (BT_INT16): Likewise.
11281 (BT_UINT8): Likewise.
11282 (BT_UINT16): Likewise.
11283 (BT_FN_ULONG): Likewise.
11284 (BT_FN_UINT_INT): Likewise.
11285 (BT_FN_UINT_ULONG): Likewise.
11286 (BT_FN_UINT_LONG): Likewise.
11287 (BT_FN_UINT_PTR): Likewise.
11288 (BT_FN_ULONG_PTR): Likewise.
11289 (BT_FN_INT8_FLOAT): Likewise.
11290 (BT_FN_INT16_FLOAT): Likewise.
11291 (BT_FN_UINT32_FLOAT): Likewise.
11292 (BT_FN_UINT16_FLOAT): Likewise.
11293 (BT_FN_UINT8_FLOAT): Likewise.
11294 (BT_FN_UINT64_FLOAT): Likewise.
11295 (BT_FN_UINT16_UINT32): Likewise.
11296 (BT_FN_UINT32_UINT16): Likewise.
11297 (BT_FN_UINT16_UINT16_UINT16): Likewise.
11298 (BT_FN_INT_PTR_INT): Likewise.
11299 (BT_FN_UINT_PTR_UINT): Likewise.
11300 (BT_FN_LONG_PTR_LONG): Likewise.
11301 (BT_FN_ULONG_PTR_ULONG): Likewise.
11302 (BT_FN_VOID_UINT64_UINT64): Likewise.
11303 (BT_FN_UINT8_UINT8_UINT8): Likewise.
11304 (BT_FN_INT8_INT8_INT8): Likewise.
11305 (BT_FN_INT16_INT16_INT16): Likewise.
11306 (BT_FN_INT_INT_INT): Likewise.
11307 (BT_FN_UINT_FLOAT_UINT): Likewise.
11308 (BT_FN_FLOAT_UINT_UINT): Likewise.
11309 (BT_FN_ULONG_UINT_UINT): Likewise.
11310 (BT_FN_ULONG_UINT_PTR): Likewise.
11311 (BT_FN_ULONG_ULONG_ULONG): Likewise.
11312 (BT_FN_UINT_UINT_UINT): Likewise.
11313 (BT_FN_VOID_UINT_PTR): Likewise.
11314 (BT_FN_UINT_UINT_PTR: Likewise.
11315 (BT_FN_UINT32_UINT64_PTR): Likewise.
11316 (BT_FN_INT_INT_UINT_UINT): Likewise.
11317 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
11318 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
11319 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
11320 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
11321 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
11322 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
11323 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
11324 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
11325 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
11326 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
11327 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
11328 * doc/frontends.texi: List BRIG FE.
11329 * doc/install.texi (Testing): Add BRIG tesring requirements.
11330 * doc/invoke.texi (Overall Options): Mention BRIG.
11331 * doc/standards.texi (Standards): Doucment BRIG HSA version.
11333 2017-01-24 Richard Biener <rguenther@suse.de>
11335 PR translation/79208
11336 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
11338 2017-01-24 Martin Jambor <mjambor@suse.cz>
11341 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
11342 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
11343 and known_contexts.
11345 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
11347 PR middle-end/79123
11348 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
11349 casts from signed to unsigned really don't have a range.
11351 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
11353 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
11354 GMP_RNDx for compatiblity.
11356 2017-01-24 Martin Liska <mliska@suse.cz>
11359 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
11360 that would prevent us to call alloca with -1 as argument.
11362 2017-01-24 Jakub Jelinek <jakub@redhat.com>
11364 * dwarf2out.c (output_compilation_unit_header, output_file_names):
11365 Avoid -Wformat-security warning.
11367 2017-01-23 Andrew Pinski <apinski@cavium.com>
11369 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
11372 2017-01-23 Martin Sebor <msebor@redhat.com>
11374 PR middle-end/78703
11375 * gimple-ssa-sprintf.c (warn_level): New global.
11376 (format_integer): Use it here and throughout the rest of the file.
11377 Use the same switch to compute sign as base.
11378 (maybe_warn): New function.
11379 (format_directive): Factor out warnings into maybe_warn.
11380 Add debugging output. Use warn_level.
11381 (add_bytes): Use warn_level.
11382 (pass_sprintf_length::compute_format_length): Add debugging output.
11383 (try_substitute_return_value): Same.
11384 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
11386 PR middle-end/78703
11387 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
11388 (struct fmtresult, format_integer, format_floating): Adjust.
11389 (fmtresult::fmtresult): Set max correctly in two argument ctor.
11390 (get_string_length, format_string,format_directive): Same.
11391 (pass_sprintf_length::compute_format_length): Same.
11392 (try_substitute_return_value): Simplify slightly.
11394 PR middle-end/78703
11395 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
11396 (fmtresult::operator+=): Outlined.
11397 (struct fmtresult): Add ctors.
11398 (struct conversion_spec): Rename...
11399 (struct directive): ...to this. Add and remove data members.
11400 (directive::set_width, directive::set_precision): New functions.
11401 (format_percent): Use fmtresult ctor.
11402 (get_width_and_precision): Remove.
11403 (format_integer): Make naming changes. Avoid computing width and
11405 (format_floating): Same. Adjust indentation.
11406 (format_character, format_none): New functions.
11407 (format_string): Moved character handling to format_character.
11408 (format_directive): Remove arguments, change return type.
11409 (parse_directive): New function.
11410 (pass_sprintf_length::compute_format_length): Move directive
11411 parsing to parse_directive.
11413 2017-01-23 Jakub Jelinek <jakub@redhat.com>
11415 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
11416 (assign_assembler_name_if_needed): ... this.
11417 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
11418 (assign_assembler_name_if_needed): ... this.
11419 (free_lang_data_in_cgraph): Adjust callers.
11420 * cgraphunit.c (cgraph_node::analyze): Likewise.
11421 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
11424 2017-01-23 Richard Biener <rguenther@suse.de>
11426 PR tree-optimization/79088
11427 PR tree-optimization/79188
11428 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
11429 resetting loop bounds after last path deletion. Reset loop
11430 bounds of the target loop, make code match the comments.
11431 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
11432 Make sure loops need no fixups.
11434 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
11436 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
11437 exponent support with double type for first argument.
11438 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
11439 type returned by __builtin_vec_extract_sig,
11440 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
11441 functions from "vector int" to "vector unsigned int" or from
11442 "vector long long int" to "vector unsigned long long int".
11443 Changed type returned by __builtin_vec_extract_exp,
11444 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
11445 functions from "vector int" to "vector unsigned int" or from
11446 "vector long long int" to "vector unsigned long long int".
11447 Changed return type of __builtin_vec_test_data_class,
11448 __builtin_vec_test_data_class_sp, and
11449 __builtin_vec_test_data_class_dp from "vector int" to
11450 "vector bool int" or from "vector long long int" to "vector bool
11451 long long int" and changed second argument type from "unsigned
11452 int" to "int". Added new overloaded function forms "vector float
11453 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
11454 "vector float __builtin_vec_insert_exp_sp (vector float, vector
11455 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
11456 double, vector unsigned long long int)" and "vector double
11457 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
11458 long int)". Changed return type of
11459 __builtin_scalar_test_data_class and
11460 __builtin_scalar_test_data_class_sp and
11461 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
11462 int" and changed second argument from "unsigned int" to "int".
11463 Changed type returned by __builtin_scalar_test_neg,
11464 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
11465 from "int" to "bool int". Added new overloaded function form
11466 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
11467 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
11468 exponent double-precision with floating point first argument.
11469 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
11470 documentation of scalar_test_data_class, scalar_test_neg,
11471 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
11472 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
11473 vec_test_data_class built-in functions to reflect refinements in
11474 their type signatures.
11476 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
11478 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
11480 (aarch64_elf_asm_destructor): Likewise.
11482 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
11484 PR rtl-optimization/78634
11485 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
11486 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
11487 * ifcvt.c (noce_try_cmove): Add missing cost check.
11489 PR rtl-optimization/71724
11490 * combine.c (if_then_else_cond): Look for situations where it is
11491 beneficial to undo the work of one of the recursive calls.
11493 2017-01-23 Bin Cheng <bin.cheng@arm.com>
11495 PR tree-optimization/70754
11496 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
11497 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
11498 combined stmt before it if not NULL.
11499 (combine_chains): Process refs reversely and compute dominance point
11502 2017-01-23 Martin Liska <mliska@suse.cz>
11504 PR tree-optimization/79196
11505 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
11506 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
11508 (strlen_optimize_stmt): Call the renamed function.
11510 2017-01-23 Michael Matz <matz@suse.de>
11512 PR tree-optimization/78384
11513 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
11515 2017-01-23 Richard Biener <rguenther@suse.de>
11517 PR tree-optimization/79186
11518 * tree-vrp.c (register_new_assert_for): Make sure we've seen
11519 both incoming edges before moving an assert.
11521 2017-01-23 Martin Jambor <mjambor@suse.cz>
11523 * ipa-prop.c (load_from_param_1): Removed.
11524 (load_from_unmodified_param): Bits from load_from_param_1 put back
11526 (load_from_param): Removed.
11527 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
11528 with stmt. Reverted back to use of load_from_unmodified_param.
11530 2017-01-23 Martin Jambor <mjambor@suse.cz>
11533 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
11534 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
11535 field a pointer to garbage collected vector, mark lattices and
11536 ipcp_orig_node with GTY((skip)).
11537 (ipa_get_param_count): Adjust to descriptors being a pointer.
11538 (ipa_get_param): Likewise.
11539 (ipa_get_type): Likewise.
11540 (ipa_get_param_move_cost): Likewise.
11541 (ipa_set_param_used): Likewise.
11542 (ipa_get_controlled_uses): Likewise.
11543 (ipa_set_controlled_uses): Likewise.
11544 (ipa_is_param_used): Likewise.
11545 (ipa_node_params_t): Move into garbage collector. New methods insert
11547 (ipa_node_params_sum): Annotate wth GTY(()).
11548 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
11550 (ipa_load_from_parm_agg): Adjust declaration.
11551 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
11552 * ipa-profile.c (ipa_profile): Likewise.
11553 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
11554 (ipa_populate_param_decls): Make descriptors parameter garbage
11556 (ipa_dump_param): Adjust to descriptors being a pointer.
11557 (ipa_alloc_node_params): Likewise.
11558 (ipa_initialize_node_params): Likewise.
11559 (load_from_param_1): Make descriptors parameter garbage collected.
11560 (load_from_unmodified_param): Likewise.
11561 (load_from_param): Likewise.
11562 (ipa_load_from_parm_agg): Likewise.
11563 (ipa_node_params::~ipa_node_params): Removed.
11564 (ipa_free_all_node_params): Remove call to delete operator.
11565 (ipa_node_params_t::insert): New.
11566 (ipa_node_params_t::remove): Likewise.
11567 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
11568 copy known_csts and known_contexts vectors.
11569 (ipa_read_node_info): Adjust to descriptors being a pointer.
11570 (ipcp_modif_dom_walker): Make m_descriptors field garbage
11572 (ipcp_transform_function): Make descriptors variable garbage
11575 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
11577 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
11578 * config/i386/avx512dqintrin.h: Ditto.
11579 * config/i386/avx512fintrin.h: Ditto.
11580 * gcc/config/i386/i386.c: Handle new builtins.
11581 * config/i386/i386-builtin.def: Add new builtins.
11582 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
11583 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
11585 2017-01-23 Jakub Jelinek <jakub@redhat.com>
11586 Martin Liska <mliska@suse.cz>
11588 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
11589 * asan.c (asan_expand_poison_ifn): Support stores and use
11590 appropriate ASAN report function.
11591 * internal-fn.c (expand_ASAN_POISON_USE): New function.
11592 * internal-fn.def (ASAN_POISON_USE): Declare.
11593 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
11594 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
11595 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
11596 ASAN_POISON calls w/o LHS.
11597 * tree-ssa.c (execute_update_addresses_taken): Create clobber
11598 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
11599 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
11600 * gimplify.c (asan_poison_variables): Add attribute
11601 use_after_scope_memory to variables that really needs to live
11603 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
11604 having the attribute.
11606 2017-01-23 Martin Liska <mliska@suse.cz>
11608 * asan.c (create_asan_shadow_var): New function.
11609 (asan_expand_poison_ifn): Likewise.
11610 * asan.h (asan_expand_poison_ifn): New declaration.
11611 * internal-fn.c (expand_ASAN_POISON): Likewise.
11612 * internal-fn.def (ASAN_POISON): New builtin.
11613 * sanopt.c (pass_sanopt::execute): Expand
11614 asan_expand_poison_ifn.
11615 * tree-inline.c (copy_decl_for_dup_finish): Make function
11617 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
11618 * tree-ssa.c (is_asan_mark_p): New function.
11619 (execute_update_addresses_taken): Rewrite local variables
11620 (identified just by use-after-scope as addressable) into SSA.
11622 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
11624 * doc/install.texi (Specific): opensource.apple.com uses https
11625 now. Remove trailing slash.
11627 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
11629 * README.Portability: Remove note on an Irix compatibility issue.
11631 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
11633 * gcov.c (INCLUDE_ALGORITHM): Define.
11634 (INCLUDE_VECTOR): Define.
11635 No longer include <vector> and <algorithm> directly.
11637 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
11639 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
11641 * doc/invoke.texi (Code Gen Options): Ditto.
11643 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
11646 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
11648 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
11650 rtl-optimization/79125
11651 * cprop.c (local_cprop_pass): Handle cases where we make an
11652 unconditional trap.
11654 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
11658 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
11659 read from, for big endian.
11661 2017-01-20 Jiong Wang <jiong.wang@arm.com>
11663 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
11664 register pauth builtins for LP64 only.
11666 2017-01-20 Marek Polacek <polacek@redhat.com>
11669 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
11672 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
11674 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
11676 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
11677 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
11678 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
11680 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11683 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
11684 in big-endian mode when they are not a single duplicated value.
11686 2017-01-20 Richard Biener <rguenther@suse.de>
11688 * BASE-VER: Bump to 7.0.1.
11690 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
11692 * omp-low.c (omplow_simd_context): New struct. Use it...
11693 (lower_rec_simd_input_clauses): ...here and...
11694 (lower_rec_input_clauses): ...here to hold common data. Adjust all
11695 references to idx, lane, max_vf, is_simt.
11697 2017-01-20 Graham Markall <graham.markall@embecosm.com>
11699 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
11702 2017-01-20 Martin Jambor <mjambor@suse.cz>
11704 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
11705 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
11707 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
11708 (GTFILES): Rename hsa.c to hsa-common.c.
11709 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
11710 * hsa-dump.c: Likewise.
11711 * hsa-gen.c: Likewise.
11712 * hsa-regalloc.c: Likewise.
11713 * ipa-hsa.c: Likewise.
11714 * omp-expand.c: Likewise.
11715 * omp-low.c: Likewise.
11716 * toplev.c: Likewise.
11718 2017-01-20 Marek Polacek <polacek@redhat.com>
11721 * doc/invoke.texi: Document -Wduplicated-branches.
11722 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
11723 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
11724 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
11725 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
11726 return 0 only when not OEP_LEXICOGRAPHIC.
11727 (fold_build_cleanup_point_expr): Use the expression
11728 location when building CLEANUP_POINT_EXPR.
11729 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
11730 * tree.c (add_expr): Handle error_mark_node.
11732 2017-01-20 Martin Liska <mliska@suse.cz>
11735 * tree-profile.c (init_ic_make_global_vars): Do not call
11737 (gimple_init_gcov_profiler): Likewise.
11739 2017-01-20 Martin Liska <mliska@suse.cz>
11742 * cgraph.h (maybe_create_reference): Remove argument and
11744 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
11746 * ipa-cp.c (create_specialized_node): Likewise.
11747 * symtab.c (symtab_node::maybe_create_reference): Handle
11748 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
11750 2017-01-20 Martin Liska <mliska@suse.cz>
11752 * read-rtl-function.c (function_reader::create_function): Use
11753 build_decl instread of build_decl_stat.
11755 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
11757 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
11758 * config/i386/avx512dqintrin.h: Ditto.
11759 * config/i386/avx512fintrin.h: Ditto.
11760 * config/i386/i386-builtin-types.def: Add new types.
11761 * gcc/config/i386/i386.c: Handle new types.
11762 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
11763 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
11764 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
11765 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
11766 (__builtin_ia32_kshiftridi): New.
11767 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
11769 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
11773 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
11774 define to rs6000_init_stack_protect_guard.
11775 (rs6000_init_stack_protect_guard): New function.
11777 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
11778 Yunqiang Su <yunqiang.su@imgtec.com>
11780 * config.gcc (supported_defaults): Add madd4.
11781 (with_madd4): Add validation.
11782 (all_defaults): Add madd4.
11783 * config/mips/mips.opt (mmadd4): New option.
11784 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
11786 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
11788 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
11789 (ISA_HAS_FUSED_MADD4): Likewise.
11790 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
11791 * gcc/doc/install.texi (--with-madd4): Document the new option.
11793 2017-01-19 Jiong Wang <jiong.wang@arm.com>
11795 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
11796 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
11797 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
11798 (aarch64_init_pauth_hint_builtins): New.
11799 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
11800 (aarch64_expand_builtin): Expand new builtins.
11802 2017-01-19 Jiong Wang <jiong.wang@arm.com>
11804 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
11805 * combine-stack-adj.c (no_unhandled_cfa): Handle
11806 REG_CFA_TOGGLE_RA_MANGLE.
11807 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
11808 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
11809 info for return address signing.
11810 (aarch64_expand_epilogue): Likewise.
11812 2017-01-19 Jiong Wang <jiong.wang@arm.com>
11814 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
11815 * config/aarch64/aarch64-protos.h
11816 (aarch64_return_address_signing_enabled): New declaration.
11817 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
11819 (aarch64_expand_prologue): Sign return address before it's pushed onto
11821 (aarch64_expand_epilogue): Authenticate return address fetched from
11823 (aarch64_override_options): Sanity check for ILP32 and ISA level.
11824 (aarch64_attributes): New function attributes for "sign-return-address".
11825 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
11826 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
11827 ("*do_return"): Generate combined instructions according to key index.
11828 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
11829 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
11831 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
11832 * config/aarch64/aarch64.opt (msign-return-address=): New.
11833 * doc/extend.texi (AArch64 Function Attributes): Documents
11834 "sign-return-address=".
11835 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
11837 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
11839 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
11840 overall option summary.
11842 2017-01-19 Jiong Wang <jiong.wang@arm.com>
11844 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
11845 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
11846 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
11847 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
11849 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
11851 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
11852 -mpower9-minmax by default for -mcpu=power9.
11853 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
11854 128-bit floating point.
11856 2017-01-20 Alan Modra <amodra@gmail.com>
11858 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
11859 optimizing for size.
11861 2017-01-20 Alan Modra <amodra@gmail.com>
11864 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
11865 for strcmp and strncmp from corresponding builtin decl.
11867 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
11869 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
11870 instead of i386/rtems-64.h.
11871 * config/i386/rtems-64.h: Remove.
11873 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
11877 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
11879 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
11881 2017-01-19 Tamar Christina <tamar.christina@arm.com>
11883 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
11884 Change int to HOST_WIDE_INT.
11885 * config/aarch64/aarch64-protos.h
11886 (aarch64_simd_gen_const_vector_dup): Likewise.
11887 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
11889 2017-01-19 David Malcolm <dmalcolm@redhat.com>
11891 * langhooks-def.h (lhd_type_for_size): New decl.
11892 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
11893 * langhooks.c (lhd_type_for_size): New function, taken from
11896 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
11898 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
11899 define_bypass for CR latency.
11900 (power9-cracked-alu): Update bypass latency and remove power9-branch.
11901 (power9-alu2): Add define_bypass for CR latency.
11903 (power9-mul): Update insn latency.
11904 (power9-mul-compare): Update insn latency, bypass latency and remove
11907 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11909 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
11911 * config/aarch64/aarch64.md
11912 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
11913 aarch64_nopcrelative_literal_loads.
11914 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
11916 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
11918 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
11919 TARGET_LOONGSON_3A.
11920 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
11922 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
11925 * config.gcc (supported_defaults): Add lxc1-sxc1.
11926 (with_lxc1_sxc1): Add validation.
11927 (all_defaults): Add lxc1-sxc1.
11928 * config/mips/mips.opt (mlxc1-sxc1): New option.
11929 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
11931 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
11932 __mips_no_lxc1_sxc1.
11933 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
11934 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
11935 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
11937 2017-01-19 Richard Biener <rguenther@suse.de>
11939 PR tree-optimization/72488
11940 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
11941 sure to restore SSA info.
11942 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
11944 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
11946 PR rtl-optimization/79121
11947 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
11948 of the inner type when shifting an extended value.
11950 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
11953 * symtab.c (symtab_node::equal_address_to): Fix comparing of
11954 interposable aliases.
11956 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
11959 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
11960 Use the evmergelohi instruction.
11961 (mov_si<mode>_e500_subreg4_2_le): Likewise.
11962 (mov_sitf_e500_subreg8_2_be): Likewise.
11963 (mov_sitf_e500_subreg12_2_le): Likewise.
11964 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
11965 (mov_si<mode>_e500_subreg4_2_be): Likewise.
11966 (mov_sitf_e500_subreg8_2_le): Likewise.
11967 (mov_sitf_e500_subreg12_2_be): Likewise.
11969 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11971 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
11972 attribute from vecsimple to vecperm.
11973 (altivec_vbpermq2): Likewise.
11975 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11978 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
11980 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11981 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
11982 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
11983 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
11984 case where N arg is SIZE_MAX.
11985 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
11986 (cmpstrsi): Add pattern.
11988 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
11990 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11991 __builtin_vec_revb builtins.
11992 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
11993 built-in functions to support generation of the ISA 3.0 XXBR<x>
11994 vector byte reverse instructions.
11995 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
11996 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
11997 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
11998 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
11999 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
12000 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
12001 (P9V_BUILTIN_VEC_REVB): Likewise.
12002 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
12003 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
12004 (p9_xxbrq_v16qi): Likewise.
12005 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
12006 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
12007 (p9_xxbrh_v8hi): Likewise.
12008 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
12009 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
12010 vec_revb built-in functions.
12012 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
12014 PR rtl-optimization/78952
12015 * config/i386/i386.md (any_extract): New code iterator.
12016 (*insvqi_2): Use any_extract for source operand.
12017 (*insvqi_3): Use any_shiftrt for source operand.
12019 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
12021 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
12023 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
12025 2017-01-18 Matthias Klose <doko@ubuntu.com>
12027 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
12029 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12031 * config/rs6000/altivec.h (vec_bperm): Change #define.
12032 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
12033 (altivec_vbpermq2): New define_insn.
12034 (altivec_vbpermd): Likewise.
12035 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
12036 function interface.
12037 (VBPERMD): Likewise.
12038 (VBPERM): New polymorphic function interface.
12039 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
12040 Add entries for P9V_BUILTIN_VEC_VBPERM.
12041 * doc/extend.texi: Add interfaces for vec_bperm.
12043 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12045 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
12046 first letter of error messages.
12047 (s390_resolve_overloaded_builtin): Likewise.
12048 * config/s390/s390.c (s390_expand_builtin): Likewise.
12049 (s390_invalid_arg_for_unprototyped_fn): Likewise.
12050 (s390_valid_target_attribute_inner_p): Likewise.
12051 * config/s390/s390.md ("tabort"): Likewise.
12053 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
12055 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
12056 (ISA_AVOID_DIV_HILO): New macro.
12057 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
12058 (ISA_HAS_DDIV): Likewise.
12060 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
12062 * doc/invoke.texi (fabi-version): Correct number of occurrences.
12064 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
12066 * doc/invoke.texi (fabi-version): Spelling fix.
12068 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
12071 * doc/invoke.texi (fabi-version): Mention mangling fix for
12074 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
12077 * doc/invoke.texi (fabi-version): Document discriminator mangling.
12079 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
12082 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
12083 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
12085 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
12087 (stack_protect_test): Ditto.
12088 * config/rs6000/rs6000.opt (mstack-protector-guard=,
12089 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
12091 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
12092 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
12093 -mstack-protector-guard-offset=.
12094 (RS/6000 and PowerPC Options): Ditto.
12096 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
12098 * config/i386/i386.h (MASK_CLASS_P): New define.
12099 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
12100 there are no registers from different register sets also when
12101 mask registers are used. Update function comment.
12102 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
12103 to (*k/*r) and (*k/*km) alternatives.
12105 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
12107 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
12108 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
12109 (EH_RETURN_HANDLER_RTX): New define.
12110 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
12111 Force frame pointer in EH return functions.
12112 (aarch64_expand_epilogue): Add barrier for eh_return.
12113 (aarch64_final_eh_return_addr): Remove.
12114 (aarch64_eh_return_handler_rtx): New function.
12115 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
12117 (aarch64_eh_return_handler_rtx): New prototype.
12119 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12121 * config/rs6000/altivec.h (vec_rlmi): New #define.
12122 (vec_vrlnm): Likewise.
12123 (vec_rlnm): Likewise.
12124 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
12125 (UNSPEC_VRLNM): Likewise.
12126 (VIlong): New mode iterator.
12127 (altivec_vrl<VI_char>mi): New define_insn.
12128 (altivec_vrl<VI_char>nm): Likewise.
12129 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
12131 (VRLDNM): Likewise.
12132 (RLNM): New polymorphic function entry.
12133 (VRLWMI): New monomorphic function entry.
12134 (VRLDMI): Likewise.
12135 (RLMI): New polymorphic function entry.
12136 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
12137 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
12138 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
12141 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12144 * dwarf2out.c (field_byte_offset): Restore the
12145 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
12146 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
12147 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
12150 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
12153 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
12155 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12158 * dwarf2out.c (add_data_member_location_attribute): For constant
12159 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
12160 instead of DW_AT_data_member_location, DW_AT_bit_offset and
12161 DW_AT_byte_size attributes.
12163 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
12165 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
12166 after forcing to constant memory when the code model is medium.
12168 2017-01-17 Julia Koval <julia.koval@intel.com>
12171 * config/i386/avx512fintrin.h
12172 (_mm512_i32gather_ps): Change __addr type to void const*.
12173 (_mm512_mask_i32gather_ps): Ditto.
12174 (_mm512_i32gather_pd): Ditto.
12175 (_mm512_mask_i32gather_pd): Ditto.
12176 (_mm512_i64gather_ps): Ditto.
12177 (_mm512_mask_i64gather_ps): Ditto.
12178 (_mm512_i64gather_pd): Ditto.
12179 (_mm512_mask_i64gather_pd): Ditto.
12180 (_mm512_i32gather_epi32): Ditto.
12181 (_mm512_mask_i32gather_epi32): Ditto.
12182 (_mm512_i32gather_epi64): Ditto.
12183 (_mm512_mask_i32gather_epi64): Ditto.
12184 (_mm512_i64gather_epi32): Ditto.
12185 (_mm512_mask_i64gather_epi32): Ditto.
12186 (_mm512_i64gather_epi64): Ditto.
12187 (_mm512_mask_i64gather_epi64): Ditto.
12188 (_mm512_i32scatter_ps): Change __addr type to void*.
12189 (_mm512_mask_i32scatter_ps): Ditto.
12190 (_mm512_i32scatter_pd): Ditto.
12191 (_mm512_mask_i32scatter_pd): Ditto.
12192 (_mm512_i64scatter_ps): Ditto.
12193 (_mm512_mask_i64scatter_ps): Ditto.
12194 (_mm512_i64scatter_pd): Ditto.
12195 (_mm512_mask_i64scatter_pd): Ditto.
12196 (_mm512_i32scatter_epi32): Ditto.
12197 (_mm512_mask_i32scatter_epi32): Ditto.
12198 (_mm512_i32scatter_epi64): Ditto.
12199 (_mm512_mask_i32scatter_epi64): Ditto.
12200 (_mm512_i64scatter_epi32): Ditto.
12201 (_mm512_mask_i64scatter_epi32): Ditto.
12202 (_mm512_i64scatter_epi64): Ditto.
12203 (_mm512_mask_i64scatter_epi64): Ditto.
12204 * config/i386/avx512pfintrin.h
12205 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
12206 (_mm512_mask_prefetch_i32gather_ps): Ditto.
12207 (_mm512_mask_prefetch_i64gather_pd): Ditto.
12208 (_mm512_mask_prefetch_i64gather_ps): Ditto.
12209 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
12210 (_mm512_prefetch_i32scatter_ps): Ditto.
12211 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
12212 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
12213 (_mm512_prefetch_i64scatter_pd): Ditto.
12214 (_mm512_prefetch_i64scatter_ps): Ditto.
12215 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
12216 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
12217 * config/i386/avx512vlintrin.h
12218 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
12219 (_mm_mmask_i32gather_ps): Ditto.
12220 (_mm256_mmask_i32gather_pd): Ditto.
12221 (_mm_mmask_i32gather_pd): Ditto.
12222 (_mm256_mmask_i64gather_ps): Ditto.
12223 (_mm_mmask_i64gather_ps): Ditto.
12224 (_mm256_mmask_i64gather_pd): Ditto.
12225 (_mm_mmask_i64gather_pd): Ditto.
12226 (_mm256_mmask_i32gather_epi32): Ditto.
12227 (_mm_mmask_i32gather_epi32): Ditto.
12228 (_mm256_mmask_i32gather_epi64): Ditto.
12229 (_mm_mmask_i32gather_epi64): Ditto.
12230 (_mm256_mmask_i64gather_epi32): Ditto.
12231 (_mm_mmask_i64gather_epi32): Ditto.
12232 (_mm256_mmask_i64gather_epi64): Ditto.
12233 (_mm_mmask_i64gather_epi64): Ditto.
12234 (_mm256_i32scatter_ps): Change __addr type to void*.
12235 (_mm256_mask_i32scatter_ps): Ditto.
12236 (_mm_i32scatter_ps): Ditto.
12237 (_mm_mask_i32scatter_ps): Ditto.
12238 (_mm256_i32scatter_pd): Ditto.
12239 (_mm256_mask_i32scatter_pd): Ditto.
12240 (_mm_i32scatter_pd): Ditto.
12241 (_mm_mask_i32scatter_pd): Ditto.
12242 (_mm256_i64scatter_ps): Ditto.
12243 (_mm256_mask_i64scatter_ps): Ditto.
12244 (_mm_i64scatter_ps): Ditto.
12245 (_mm_mask_i64scatter_ps): Ditto.
12246 (_mm256_i64scatter_pd): Ditto.
12247 (_mm256_mask_i64scatter_pd): Ditto.
12248 (_mm_i64scatter_pd): Ditto.
12249 (_mm_mask_i64scatter_pd): Ditto.
12250 (_mm256_i32scatter_epi32): Ditto.
12251 (_mm256_mask_i32scatter_epi32): Ditto.
12252 (_mm_i32scatter_epi32): Ditto.
12253 (_mm_mask_i32scatter_epi32): Ditto.
12254 (_mm256_i32scatter_epi64): Ditto.
12255 (_mm256_mask_i32scatter_epi64): Ditto.
12256 (_mm_i32scatter_epi64): Ditto.
12257 (_mm_mask_i32scatter_epi64): Ditto.
12258 (_mm256_i64scatter_epi32): Ditto.
12259 (_mm256_mask_i64scatter_epi32): Ditto.
12260 (_mm_i64scatter_epi32): Ditto.
12261 (_mm_mask_i64scatter_epi32): Ditto.
12262 (_mm256_i64scatter_epi64): Ditto.
12263 (_mm256_mask_i64scatter_epi64): Ditto.
12264 (_mm_i64scatter_epi64): Ditto.
12265 (_mm_mask_i64scatter_epi64): Ditto.
12266 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
12267 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
12268 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
12269 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
12270 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
12271 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
12272 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
12273 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
12274 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
12275 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
12276 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
12277 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
12278 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
12279 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
12280 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
12281 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
12282 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
12283 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
12284 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
12285 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
12286 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
12287 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
12288 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
12289 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
12290 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
12291 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
12292 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
12293 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
12294 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
12295 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
12296 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
12297 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
12298 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
12299 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
12300 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
12301 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
12302 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
12303 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
12304 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
12305 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
12306 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
12307 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
12308 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
12309 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
12310 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
12311 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
12312 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
12313 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
12314 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
12315 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
12316 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
12317 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
12318 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
12319 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
12320 definitions accordingly.
12322 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
12323 Kuan-Lin Chen <kuanlinchentw@gmail.com>
12326 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
12329 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
12332 * ira-conflicts.c (ira_build_conflicts): Update total conflict
12333 hard regs for inner regno.
12335 2017-01-17 Martin Liska <mliska@suse.cz>
12338 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
12339 assumption and add comment.
12341 2017-01-17 Nathan Sidwell <nathan@acm.org>
12343 * ipa-visibility.c (localize_node): New function, broken out of ...
12344 (function_and_variable_visibility): ... here. Call it.
12346 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
12348 PR middle-end/77445
12349 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
12350 correctly set frequency of oudgoing edge.
12351 (duplicate_thread_path): Fix profile updating.
12353 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12356 * configure.ac: Add GCC_BASE_VER.
12357 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
12358 version from BASE-VER file.
12359 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
12360 (gcc.o): Depend on $(BASEVER).
12361 * common.opt (dumpfullversion): New option.
12362 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
12363 * doc/invoke.texi: Document -dumpfullversion.
12364 * doc/install.texi: Document --with-gcc-major-version-only.
12365 * configure: Regenerated.
12367 2017-01-17 Richard Biener <rguenther@suse.de>
12369 PR tree-optimization/71433
12370 * tree-vrp.c (register_new_assert_for): Merge same asserts
12371 on all incoming edges.
12372 (process_assert_insertions_for): Handle insertions at the
12375 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
12377 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
12378 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
12380 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
12383 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
12386 2017-01-17 Alan Modra <amodra@gmail.com>
12389 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
12390 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
12391 symbolic stack limit when pic.
12393 2017-01-16 Martin Sebor <msebor@redhat.com>
12395 PR tree-optimization/78608
12396 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
12398 2017-01-16 Jeff Law <law@redhat.com>
12401 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
12402 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
12403 for several include directories that may be relative to sysroot.
12404 * config/i386/x-mingw32 (gplus_includedir): Define.
12405 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
12406 (native_system_includedir): Likewise.
12407 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
12408 override if TARGET_SYSTEM_ROOT is defined.
12409 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
12411 PR tree-optimization/79090
12412 PR tree-optimization/33562
12413 PR tree-optimization/61912
12414 PR tree-optimization/77485
12415 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
12416 and computed trims into the dump file.
12418 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
12420 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
12422 2017-01-16 Jakub Jelinek <jakub@redhat.com>
12425 * gimplify.c (gimplify_init_constructor): If want_value and
12426 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
12430 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
12431 sequence. Formatting fixes.
12432 (doloop_optimize): Formatting fixes.
12435 * gcc.c (debug_level_greater_than_spec_func): New function.
12436 (static_spec_functions): Add debug-level-gt spec function.
12437 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
12439 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
12440 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
12441 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
12442 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
12443 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
12444 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
12446 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
12448 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
12449 QImode fixups to general and mask registers only.
12451 2017-01-16 Carl Love <cel@us.ibm.com>
12453 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
12454 for built-in functions
12455 vector signed char vec_nabs (vector signed char)
12456 vector signed short vec_nabs (vector signed short)
12457 vector signed int vec_nabs (vector signed int)
12458 vector signed long long vec_nabs (vector signed long long)
12459 vector float vec_nabs (vector float)
12460 vector double vec_nabs (vector double)
12461 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
12463 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
12464 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
12465 * doc/extend.texi: Update the documentation file for the new built-in
12468 2017-01-16 Martin Sebor <msebor@redhat.com>
12470 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
12473 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12475 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
12476 UNSPEC_VSX__XXSPLTD to require special splat handling.
12478 2017-01-16 David Malcolm <dmalcolm@redhat.com>
12481 * system.h: Poison strndup.
12483 2017-01-16 Alan Modra <amodra@gmail.com>
12486 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
12489 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
12491 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
12493 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
12495 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
12496 call recog here. Assert that INSN_CODE (insn) is non-negative.
12498 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
12501 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
12503 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
12504 in the currently scheduled RTL fragment.
12506 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
12508 PR rtl-optimization/78751
12509 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
12512 2017-01-14 Jeff Law <law@redhat.com>
12514 PR tree-optimization/79090
12515 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
12516 variable length stores.
12517 (compute_trims): Delete dead assignment to *trim_tail.
12518 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
12521 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
12523 PR rtl-optimization/78626
12524 PR rtl-optimization/78727
12525 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
12526 of a block, and split such blocks after everything else is finished.
12528 2017-01-14 Alan Modra <amodra@gmail.com>
12531 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
12532 target legitimate_combined_insn.
12533 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
12534 (rs6000_legitimate_combined_insn): New function.
12535 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
12537 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
12538 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
12539 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
12541 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
12543 * doc/frontends.texi (G++ and GCC): Remove references to Java.
12545 2017-01-13 Jeff Law <law@redhat.com>
12547 PR tree-optimization/33562
12548 PR tree-optimization/61912
12549 PR tree-optimization/77485
12550 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
12552 (delete_dead_assignment): Likewise.
12553 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
12554 statement to delete_dead_call and delete_dead_assignment.
12556 2017-01-13 David Malcolm <dmalcolm@redhat.com>
12559 * substring-locations.c (format_warning_va): Strengthen case 1 so
12560 that both endpoints of the substring must be within the format
12561 range for just the substring to be printed.
12563 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
12565 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
12566 * config/i386/i386.c (ix86_target_string): Add missing options
12567 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
12568 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
12569 flags_other and ix86_target_other to flags2_other. Display unknown
12571 (ix86_valid_target_attribute_inner_p): Add missing options and
12572 reorder options by implied ISAs, as in ix86_target_string.
12574 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
12576 * hash-table.h (hash_table::too_empty_p): New function.
12577 (hash_table::expand): Use it.
12578 (hash_table::traverse): Likewise.
12579 (hash_table::empty_slot): Use sizeof (value_type) instead of
12580 sizeof (PTR) to convert bytes to elements. Shrink the table
12581 if the current size is excessive for the current number of
12584 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
12586 * ira-costs.c (record_reg_classes): Break from the inner loop
12587 early once alt_fail is known to be true. Update outer loop
12588 handling accordingly.
12590 2017-01-13 Jeff Law <law@redhat.com>
12592 * tree-ssa-dse.c (decrement_count): New function.
12593 (increment_start_addr, maybe_trim_memstar_call): Likewise.
12594 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
12595 when we know the partially dead statement is a mem* function.
12597 PR tree-optimization/61912
12598 PR tree-optimization/77485
12599 * tree-ssa-dse.c: Include expr.h.
12600 (maybe_trim_constructor_store): New function.
12601 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
12603 PR tree-optimization/33562
12604 PR tree-optimization/61912
12605 PR tree-optimization/77485
12606 * doc/invoke.texi: Document new dse-max-object-size param.
12607 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
12608 * tree-ssa-dse.c: Include params.h.
12609 (dse_store_status): New enum.
12610 (initialize_ao_ref_for_dse): New, partially extracted from
12612 (valid_ao_ref_for_dse, normalize_ref): New.
12613 (setup_live_bytes_from_ref, compute_trims): Likewise.
12614 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
12615 (maybe_trim_partially_dead_store): Likewise.
12616 (maybe_trim_complex_store): Likewise.
12617 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
12618 Track what bytes live from the original store. Return tri-state
12619 for dead, partially dead or live.
12620 (dse_dom_walker): Add constructor, destructor and new private members.
12621 (delete_dead_call, delete_dead_assignment): New extracted from
12623 (dse_optimize_stmt): Make a member of dse_dom_walker.
12624 Use initialize_ao_ref_for_dse.
12626 PR tree-optimization/33562
12627 PR tree-optimization/61912
12628 PR tree-optimization/77485
12629 * sbitmap.h (bitmap_count_bits): Prototype.
12630 (bitmap_clear_range, bitmap_set_range): Likewise.
12631 * sbitmap.c (bitmap_clear_range): New function.
12632 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
12634 2017-01-13 Martin Liska <mliska@suse.cz>
12637 * function.c (set_cfun): Add new argument force.
12638 * function.h (set_cfun): Likewise.
12639 * ipa-inline-transform.c (inline_call): Use the function when
12640 strict alising from is dropped for function we inline to.
12642 2017-01-13 Richard Biener <rguenther@suse.de>
12644 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
12645 for dumping GIMPLE INTEGER_CSTs.
12647 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12649 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
12650 to 201112L since C++17.
12652 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
12655 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
12656 if -fsanitize=kernel-address is present.
12658 2017-01-13 Richard Biener <rguenther@suse.de>
12660 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
12661 as _Literal ( type ) number in case usual suffixes do not
12662 preserve all information.
12664 2017-01-13 Richard Biener <rguenther@suse.de>
12666 PR tree-optimization/77283
12667 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
12668 and ssa-iterators.h.
12669 (is_feasible_trace): Implement a cost model based on joiner
12672 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12675 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
12676 char or short to __float128/_Float128 directly.
12678 2017-01-12 Martin Sebor <msebor@redhat.com>
12680 to -Wformat-overflow.
12681 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
12682 (min_bytes_remaining): Same.
12683 (get_string_length): Same.
12684 (format_string): Same.
12685 (format_directive): Same.
12687 (pass_sprintf_length::handle_gimple_call): Same.
12689 2017-01-12 Jakub Jelinek <jakub@redhat.com>
12691 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
12692 info.nowrite calls with no lhs that can't throw. Return bool
12693 whether gsi_remove has been called or not.
12694 (pass_sprintf_length::handle_gimple_call): Return bool whether
12695 try_substitute_return_value called gsi_remove. Formatting fix.
12696 (pass_sprintf_length::execute): Don't use gsi_remove if
12697 handle_gimple_call returned true.
12700 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
12701 be removed due to side-effects, don't remove following barrier nor
12702 turn the successor edge into fallthru edge.
12704 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12707 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
12708 element-reversing loads and stores as not swappable.
12710 2017-01-12 Nathan Sidwell <nathan@acm.org>
12711 Nicolai Stange <nicstange@gmail.com>
12713 * combine.c (try_combine): Don't ignore result of overlap checking
12714 loop. Combine overlap & asm check into single loop.
12716 2017-01-12 Richard Biener <rguenther@suse.de>
12718 * tree-pretty-print.c (dump_generic_node): Provide -gimple
12719 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
12721 2017-01-12 Richard Biener <rguenther@suse.de>
12723 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
12724 and TS_TARGET_OPTION directly derive from TS_BASE.
12725 * tree-core.h (tree_optimization_option): Derive from tree_base.
12726 (tree_target_option): Likewise.
12728 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
12730 * config/i386/i386.c (memory_address_length): Increase len
12731 only when rip_relative_addr_p returns false.
12733 2017-01-11 Julia Koval <julia.koval@intel.com>
12735 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
12736 (OPTION_MASK_ISA_SGX_SET): New.
12737 (ix86_handle_option): Handle OPT_msgx.
12738 * config.gcc: Added sgxintrin.h.
12739 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
12740 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
12741 * config/i386/i386.c (ix86_target_string): Add -msgx.
12743 (ix86_option_override_internal): Handle new options.
12744 (ix86_valid_target_attribute_inner_p): Add sgx.
12745 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
12746 * config/i386/i386.opt: Add msgx.
12747 * config/i386/sgxintrin.h: New file.
12748 * config/i386/x86intrin.h: Add sgxintrin.h.
12750 2017-01-11 Jakub Jelinek <jakub@redhat.com>
12753 * fold-const.c (maybe_nonzero_address): Return 1 for function
12755 (tree_single_nonzero_warnv_p): Don't handle function local objects
12759 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
12762 2017-01-11 David Malcolm <dmalcolm@redhat.com>
12765 * opts.c: Include "spellcheck.h"
12766 (struct string_fragment): New struct.
12767 (struct edit_distance_traits<const string_fragment &>): New
12769 (get_closest_sanitizer_option): New function.
12770 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
12772 2017-01-11 Jakub Jelinek <jakub@redhat.com>
12774 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
12776 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
12777 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
12778 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
12779 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
12780 for initial die_offset if dwarf_split_debug_info.
12781 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
12782 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
12784 (output_skeleton_debug_sections): Formatting fix. Use
12785 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
12786 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
12788 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
12790 * config/arm/cortex-a53.md: Add bypasses for
12791 cortex_a53_r2f_cvt.
12792 (cortex_a53_r2f): Only use for transfers.
12793 (cortex_a53_f2r): Likewise.
12794 (cortex_a53_r2f_cvt): Add reservation for conversions.
12795 (cortex_a53_f2r_cvt): Likewise.
12797 2017-01-11 Tamar Christina <tamar.christina@arm.com>
12799 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
12800 to all inlined functions, change static to extern.
12802 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
12805 * config/arm/arm.c (legitimize_pic_address): Handle reference to
12807 (arm_assemble_integer): Likewise.
12809 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
12811 * config.gcc: Use new awk script to check CPU, FPU and architecture
12812 parameters for --with-... options.
12813 * config/arm/parsecpu.awk: New file
12814 * config/arm/arm-cpus.in: New file.
12815 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
12817 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
12819 * config/arm/t-arm: Update dependency rules.
12820 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
12821 of processing .def files.
12822 * config/arm/genopt.sh: Deleted.
12823 * config/arm/gentune.sh: Deleted.
12824 * config/arm/arm-cores.def: Deleted.
12825 * config/arm/arm-arches.def: Deleted.
12826 * config/arm/arm-fpus.def: Deleted.
12827 * config/arm/arm-tune.md: Regenerated.
12828 * config/arm/arm-tables.opt: Regenerated.
12829 * config/arm/arm-cpu.h: New generated file.
12830 * config/arm/arm-cpu-data.h: New generated file.
12831 * config/arm/arm-cpu-cdata.h: New generated file.
12833 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
12836 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
12838 (input_varpool_node): Unpack dynamically_initialized bit.
12840 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
12842 PR rtl-optimization/79032
12843 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
12844 the alignment of the adjusted memory reference against that of MODE,
12845 instead of the alignment of the original memory reference.
12847 2017-01-11 Martin Jambor <mjambor@suse.cz>
12849 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
12851 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
12852 decorated functions.
12854 2017-01-11 Richard Biener <rguenther@suse.de>
12856 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
12857 set range/nonnull info for PHI results. Do not set it on
12858 stmts marked for removal.
12860 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
12862 * expr.c (store_field): In the bitfield case, fetch the return value
12863 from the registers before applying a single big-endian adjustment.
12864 Always do a final load for a BLKmode value not larger than a word.
12866 2017-01-10 David Malcolm <dmalcolm@redhat.com>
12869 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
12870 that we correctly handle column numbers greater than
12871 LINE_MAP_MAX_COLUMN_NUMBER.
12873 2017-01-10 Martin Sebor <msebor@redhat.com>
12875 PR middle-end/78245
12876 * gimple-ssa-sprintf.c (get_destination_size): Call
12877 {init,fini}object_sizes.
12878 * tree-object-size.c (addr_object_size): Adjust.
12879 (pass_through_call): Adjust.
12880 (pass_object_sizes::execute): Adjust.
12881 * tree-object-size.h (fini_object_sizes): Declare.
12883 2017-01-10 Martin Sebor <msebor@redhat.com>
12885 PR tree-optimization/78775
12886 * builtins.c (get_size_range): Move...
12887 * calls.c: ...to here.
12888 (alloc_max_size): Accept zero argument.
12889 (operand_signed_p): Remove.
12890 (maybe_warn_alloc_args_overflow): Call get_size_range.
12891 * calls.h (get_size_range): Declare.
12893 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
12895 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
12896 from TI's devices.csv file as of September 2016.
12897 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
12899 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
12901 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
12902 * doc/invoke.texi: Likewise.
12903 * doc/md.texi: Likewise.
12904 * doc/objc.texi: Likewise.
12906 2017-01-10 Joshua Conner <joshconner@google.com>
12908 * config/arm/fuchsia-elf.h: New file.
12909 * config/fuchsia.h: New file.
12910 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
12911 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
12913 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
12915 2016-01-10 Richard Biener <rguenther@suse.de>
12917 PR tree-optimization/79034
12918 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
12919 Propagate out degenerate PHIs in the joiner.
12921 2017-01-10 Martin Liska <mliska@suse.cz>
12923 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
12924 (sort_congruence_classes_by_decl_uid): Likewise.
12925 (sort_congruence_class_groups_by_decl_uid): Likewise.
12926 (sem_item_optimizer::merge_classes): Sort class, groups in these
12927 classes and members in the groups by DECL_UID of declarations.
12928 This would make merge operations stable.
12930 2017-01-10 Martin Liska <mliska@suse.cz>
12932 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
12933 usage of m_classes_vec.
12934 (sem_item_optimizer::~sem_item_optimizer): Likewise.
12935 (sem_item_optimizer::get_group_by_hash): Likewise.
12936 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
12937 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
12938 (sem_item_optimizer::verify_classes): Likewise.
12939 (sem_item_optimizer::process_cong_reduction): Likewise.
12940 (sem_item_optimizer::dump_cong_classes): Likewise.
12941 (sem_item_optimizer::merge_classes): Likewise.
12942 * ipa-icf.h (congruence_class_hash): Rename from
12943 congruence_class_group_hash. Remove declaration of m_classes_vec.
12945 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
12947 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
12948 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
12949 * config.gcc: Add avx512vpopcntdqintrin.h.
12950 * config/i386/avx512vpopcntdqintrin.h: New.
12951 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
12952 * config/i386/i386-builtin-types.def: Add new types.
12953 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
12954 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
12955 __builtin_ia32_vpopcountq_v8di_mask): New.
12956 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12957 __AVX512VPOPCNTDQ__.
12958 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
12959 (PTA_AVX512VPOPCNTDQ): Define.
12960 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
12961 TARGET_AVX512VPOPCNTDQ_P): Define.
12962 * config/i386/i386.opt: Add mavx512vpopcntdq.
12963 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
12964 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
12966 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
12968 PR middle-end/77484
12969 * predict.def (PRED_CALL): Set to 67.
12971 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
12973 * expr.c (store_field): In the bitfield case, if the value comes from
12974 a function call and is of an aggregate type returned in registers, do
12975 not modify the field mode; extract the value in all cases if the mode
12976 is BLKmode and the size is not larger than a word.
12978 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
12981 * config/i386/cpuid.h: Fix undefined behavior.
12983 2017-01-04 Jeff Law <law@redhat.com>
12985 PR tree-optimization/79007
12986 PR tree-optimization/67955
12987 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
12988 conservative for pt.null when flag_non_call_exceptions is on.
12990 2017-01-09 Jakub Jelinek <jakub@redhat.com>
12992 PR translation/79019
12993 PR translation/79020
12994 * params.def (PARAM_INLINE_MIN_SPEEDUP,
12995 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
12996 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
12998 * config/avr/avr.opt (maccumulate-args): Likewise.
12999 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
13000 * common.opt (freport-bug): Likewise.
13001 * cif-code.def (CIF_FINAL_ERROR): Likewise.
13002 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
13003 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
13004 translatable string.
13005 * config/i386/i386.c (function_value_32): Likewise.
13006 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
13007 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
13009 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
13010 * common/config/msp430/msp430-common.c (msp430_handle_option):
13012 * symtab.c (symtab_node::verify_base): Likewise.
13013 * opts.c (set_debug_level): Likewise.
13014 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
13015 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13016 missing whitespace to translatable strings.
13017 * config/avr/avr.md (bswapsi2): Fix typo in comment.
13018 * config/sh/superh.h: Likewise.
13019 * config/i386/xopintrin.h: Likewise.
13020 * config/i386/znver1.md: Likewise.
13021 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
13022 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
13023 * double-int.h (struct double_int): Likewise.
13024 * double-int.c (div_and_round_double): Likewise.
13025 * wide-int.cc: Likewise.
13026 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
13027 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
13028 * cfgcleanup.c (crossjumps_occured): Renamed to ...
13029 (crossjumps_occurred): ... this.
13030 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
13033 PR tree-optimization/78899
13034 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
13035 returning bool return struct loop *, NULL for failure and the new
13037 (versionable_outer_loop_p): Don't version outer loop if it has
13038 dont_vectorized bit set.
13039 (tree_if_conversion): When versioning outer loop, ensure
13040 tree_if_conversion is performed also on the inner loop of the
13041 non-vectorizable outer loop copy.
13042 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
13043 LOOP_VECTORIZED in inner loop of the scalar outer loop and
13044 prevent vectorization of it.
13045 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
13046 the outer loop vectorization of the non-scalar version is attempted
13047 before vectorization of the inner loop in scalar version. If
13048 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
13049 vectorization of its inner loop.
13050 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
13051 has 2 inner loops, rename also on edges from bb whose single pred
13052 is outer_loop->header. Fix typo in function comment.
13054 2017-01-09 Martin Sebor <msebor@redhat.com>
13057 * asan.c (asan_emit_stack_protection): Increase local buffer size
13058 to avoid snprintf truncation warning.
13060 2017-01-09 Andrew Pinski <apinski@cavium.com>
13062 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
13063 to reference thunderx2t99 for the tuning structure
13064 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
13066 (thunderx2t99_extra_costs): This.
13067 * config/aarch64/aarch64-tune.md: Regenerate.
13068 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
13069 (vulcan_addrcost_table): This.
13070 (vulcan_regmove_cost): Rename to ...
13071 (thunderx2t99_regmove_cost): This.
13072 (vulcan_vector_cost): Rename to ...
13073 (thunderx2t99_vector_cost): this.
13074 (vulcan_branch_cost): Rename to ...
13075 (thunderx2t99_branch_cost): This.
13076 (vulcan_tunings): Rename to ...
13077 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
13078 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
13080 2017-01-09 Martin Jambor <mjambor@suse.cz>
13084 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
13085 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
13086 (propagate_vr_accross_jump_function): Use the above function for all
13087 value range computations for pass-through jump functions and type
13088 converasion from explicit value range values.
13089 (ipcp_propagate_stage): Do not attempt to deduce types of formal
13090 parameters from TYPE_ARG_TYPES.
13091 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
13092 (ipa_write_node_info): Stream type of the actual argument.
13093 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
13095 2017-01-09 Martin Liska <mliska@suse.cz>
13098 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
13099 (lookup_compiler): Do not show error message with have_E.
13101 2017-01-09 Jakub Jelinek <jakub@redhat.com>
13103 PR tree-optimization/78938
13104 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
13105 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
13106 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
13107 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
13110 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13112 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
13115 2017-01-09 Richard Biener <rguenther@suse.de>
13117 PR tree-optimization/78997
13118 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
13119 name condition properly.
13121 2017-01-09 Richard Biener <rguenther@suse.de>
13124 * dwarf2out.c (is_cxx): New overload with context.
13125 (is_naming_typedef_decl): Use it.
13127 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
13129 * invoke.texi (Option Summary): Correct spacing in option lists
13130 and add line breaks to fix over-long lines.
13132 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
13134 PR middle-end/17660
13136 * extend.texi (Common Variable Attributes): Add xref to GCC
13137 Internals manual to explain mode attribute keywords.
13139 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
13142 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
13143 and Preprocessor Options.
13144 (Options for Linking): Document -pthread here....
13145 (RS/6000 and PowerPC Options): ...not here.
13146 (Solaris 2 Options): ...or here.
13147 * doc/cppopts.texi: Document -pthread.
13149 2017-01-08 Martin Sebor <msebor@redhat.com>
13151 PR middle-end/77708
13152 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
13153 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
13154 New member functions.
13155 (format_directive): Used them.
13157 (pass_sprintf_length::handle_gimple_call): Same.
13158 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
13159 to avoid truncation for any argument.
13160 (extract_affine_mul): Same.
13161 * tree.c (get_file_function_name): Same.
13163 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
13165 PR middle-end/77484
13166 * predict.def (PRED_INDIR_CALL): Set to 86.
13168 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
13170 PR preprocessor/54124
13171 * doc/cppopts.texi: Reformat -d subtable to list the full name
13172 of the options. Add cross-reference to the docs for the general
13173 compiler -d options.
13174 * doc/invoke.texi (Developer Options): Add cross-reference to the
13175 preprocessor-specific -d option documentation.
13177 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
13179 PR preprocessor/13498
13180 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
13181 redudant material, and reflect new command-line options.
13182 (System Headers): Likewise.
13184 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
13186 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
13187 -isystem, and -idirafter. Copy-edit.
13188 * doc/cppopts.texi: Copy-edit. Remove contradiction about
13189 default for -ftrack-macro-expansion. Delete obsolete and
13190 badly-formatted implementation details about -fdebug-cpp output.
13191 * doc/cppwarnopts.texi: Copy-edit.
13193 2017-01-07 David Malcolm <dmalcolm@redhat.com>
13196 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
13197 that the transition from a max line width >= 1<<10 to narrower
13198 lines works correctly.
13200 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
13202 * doc/options.texi (PerFunction): New.
13203 * opt-functions.awk (switch_flags): Map both Optimization and
13204 PerFunction to CL_OPTIMIZATION.
13205 * opth-gen.awk: Test for PerFunction flag along with
13207 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
13208 it only when the latter is present. Skip those that don't in
13209 the hash function generator.
13210 * common.opt (fvar-tracking): Mark as PerFunction instead of
13212 (fvar-tracking-assignments): Likewise.
13213 (fvar-tracking-assignments-toggle): Likewise.
13214 (fvar-tracking-uninit): Likewise.
13216 2017-01-07 Jakub Jelinek <jakub@redhat.com>
13218 PR translation/79018
13219 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
13222 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
13225 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
13226 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
13227 TARGET_LONG_JUMP_TABLE_OFFSETS.
13228 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
13229 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
13230 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
13231 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
13232 * config/m68k/m68k.md (tablejump expander): Likewise.
13233 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
13234 TARGET_LONG_JUMP_TABLE_OFFSETS.
13235 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
13236 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
13238 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
13239 David Holsgrove <david.holsgrove@xilinx.com>
13241 * common/config/microblaze/microblaze-common.c
13242 (TARGET_EXCEPT_UNWIND_INFO): Remove.
13243 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
13245 * config/microblaze/microblaze.c (microblaze_must_save_register)
13246 (microblaze_expand_epilogue, microblaze_return_addr): Handle
13248 (microblaze_eh_return): New function.
13249 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
13250 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
13251 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
13252 * config/microblaze/microblaze.md (eh_return): New pattern.
13254 2017-01-06 Jakub Jelinek <jakub@redhat.com>
13256 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
13257 GCC_DIAGNOSTIC_STRINGIFY): Define.
13259 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
13261 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
13263 * config/arm/arm.md (<mcrr>): New.
13265 * config/arm/arm.c (arm_arch5te): New.
13266 (arm_option_override): Set arm_arch5te.
13267 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
13269 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
13270 (arm_mcrr_qualifiers): ... this. New.
13271 (MRRC_QUALIFIERS): Define to...
13272 (arm_mrrc_qualifiers): ... this. New.
13273 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
13275 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
13276 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
13277 (MRRCI, mrrc, MRRC): New.
13278 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
13279 VUNSPEC_MRRC2): New.
13281 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
13283 * config/arm/arm.md (<mcr>): New.
13285 * config/arm/arm.c (arm_coproc_builtin_available): Add
13286 support for mcr, mrc, mcr2 and mrc2.
13287 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
13288 (arm_mcr_qualifiers): ... this. New.
13289 (MRC_QUALIFIERS): Define to ...
13290 (arm_mrc_qualifiers): ... this. New.
13291 (MCR_QUALIFIERS): Define to ...
13292 (arm_mcr_qualifiers): ... this. New.
13293 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
13295 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
13296 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
13297 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
13298 VUNSPEC_MRC2): New.
13300 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
13302 * config/arm/arm.md (*ldc): New.
13306 * config/arm/arm.c (arm_coproc_builtin_available): Add
13307 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
13308 (arm_coproc_ldc_stc_legitimate_address): New.
13309 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
13310 'qualifier_const_pointer'.
13311 (LDC_QUALIFIERS): Define to...
13312 (arm_ldc_qualifiers): ... this. New.
13313 (STC_QUALIFIERS): Define to...
13314 (arm_stc_qualifiers): ... this. New.
13315 * config/arm/arm-protos.h
13316 (arm_coproc_ldc_stc_legitimate_address): New.
13317 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
13318 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
13319 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
13320 stc2, stcl, stc2l): New.
13321 * config/arm/constraints.md (Uz): New.
13322 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
13323 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
13324 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
13325 VUNSPEC_STC2L): New.
13327 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
13329 * config/arm/arm.md (<cdp>): New.
13330 * config/arm/arm.c (neon_const_bounds): Rename this ...
13331 (arm_const_bounds): ... this.
13332 (arm_coproc_builtin_available): New.
13333 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
13334 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
13335 (CDP_QUALIFIERS): Define to...
13336 (arm_cdp_qualifiers): ... this. New.
13338 (arm_expand_builtin_args): Add case for 6 arguments.
13339 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
13340 (arm_const_bounds): ... this.
13341 (arm_coproc_builtin_available): New.
13342 * config/arm/arm_acle.h (__arm_cdp): New.
13344 * config/arm/arm_acle_builtins.def (cdp): New.
13346 * config/arm/iterators.md (CDPI,CDP,cdp): New.
13347 * config/arm/neon.md: Rename all 'neon_const_bounds' to
13348 'arm_const_bounds'.
13349 * config/arm/types.md (coproc): New.
13350 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
13351 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
13352 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
13353 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
13355 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
13357 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
13358 (UBINOP_QUALIFIERS): New.
13360 (acle_builtin_data): New. Change comment.
13361 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
13362 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
13363 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
13364 arm_acle_builtins.def.
13365 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
13366 (arm_init_acle_builtins): New.
13367 (CRC32_BUILTIN): Remove.
13368 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
13369 crc32cb, crc32ch and crc32cw.
13370 (arm_init_crc32_builtins): Remove.
13371 (arm_init_builtins): Use arm_init_acle_builtins rather
13372 than arm_init_crc32_builtins.
13373 (arm_expand_acle_builtin): New.
13374 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
13375 * config/arm/arm_acle_builtins.def: New.
13377 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
13379 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
13380 (arm_builtin_datum): ... this.
13381 (arm_init_neon_builtin): Rename to ...
13382 (arm_init_builtin): ... this. Add a new parameters PREFIX
13383 and USE_SIG_IN_NAME.
13384 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
13385 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
13386 'arm_builtin_datum'.
13387 (arm_init_vfp_builtins): Likewise.
13388 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
13389 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
13390 (arm_expand_neon_args): Rename to ...
13391 (arm_expand_builtin_args): ... this. Rename builtin_arg
13392 enum values and differentiate between ARG_BUILTIN_MEMORY
13393 and ARG_BUILTIN_NEON_MEMORY.
13394 (arm_expand_neon_builtin_1): Rename to ...
13395 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
13396 values, arm_expand_builtin_args and add bool parameter NEON.
13397 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
13398 (arm_expand_vfp_builtin): Likewise.
13399 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
13401 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
13403 PR middle-end/77484
13404 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
13405 * predict.c (tree_estimate_probability_bb): Reverse direction of
13406 polymorphic call predictor.
13408 2017-01-06 David Malcolm <dmalcolm@redhat.com>
13410 * passes.c (execute_one_pass): Split out pass-skipping logic into...
13411 (determine_pass_name_match): ...this new function and...
13412 (should_skip_pass_p): ...this new function.
13414 2017-01-06 Nathan Sidwell <nathan@acm.org>
13416 * ipa-visibility.c (function_and_variable_visibility): Reformat
13417 comments and long lines. Remove extrneous if.
13418 * symtab.c (symtab_node::make_decl_local): Fix code format.
13419 (symtab_node::set_section_for_node): Fix comment typo.
13421 2017-01-06 Martin Liska <mliska@suse.cz>
13424 * lra-constraints.c: Rename invariant to lra_invariant.
13425 * predict.c (set_even_probabilities): Initialize e to NULL.
13427 2017-01-05 Martin Sebor <msebor@redhat.com>
13429 PR tree-optimization/78910
13430 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
13431 (format_integer): Correct off-by-one error in the handling
13432 of precision with negative numbers in signed conversions..
13434 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
13436 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
13438 2017-01-05 Jakub Jelinek <jakub@redhat.com>
13440 PR tree-optimization/71016
13441 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
13442 factor_out_conditional_conversion. Formatting fix.
13443 (factor_out_conditional_conversion): Add cond_stmt argument.
13444 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
13445 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
13448 2017-01-05 David Malcolm <dmalcolm@redhat.com>
13450 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
13451 read-rtl-function.o, and selftest-rtl.o.
13452 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
13453 (selftest::aarch64_test_loading_full_dump): New function.
13454 (selftest::aarch64_run_selftests): New function.
13455 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
13456 selftest::aarch64_run_selftests.
13457 * config/i386/i386.c
13458 (selftest::ix86_test_loading_dump_fragment_1): New function.
13459 (selftest::ix86_test_loading_call_insn): New function.
13460 (selftest::ix86_test_loading_full_dump): New function.
13461 (selftest::ix86_test_loading_unspec): New function.
13462 (selftest::ix86_run_selftests): Call the new functions.
13463 * emit-rtl.c (maybe_set_max_label_num): New function.
13464 * emit-rtl.h (maybe_set_max_label_num): New decl.
13465 * function.c (instantiate_decls): Guard call to
13466 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
13467 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
13469 * gensupport.c (gen_reader::gen_reader): Pass "false"
13470 for new "compact" param of rtx_reader.
13471 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
13472 rather than an empty string for NULL strings.
13473 * read-md.c: Potentially include config.h rather than bconfig.h.
13474 Wrap include of errors.h with #ifdef GENERATOR_FILE.
13475 (have_error): New global, copied from errors.c.
13476 (md_reader::read_name): Rename to...
13477 (md_reader::read_name_1): ...this, adding "out_loc" param,
13478 and converting "missing name or number" to returning false, rather
13480 (md_reader::read_name): Reimplement in terms of read_name_1.
13481 (md_reader::read_name_or_nil): New function.
13482 (md_reader::read_string): Handle "(nil)" by returning NULL.
13483 (md_reader::md_reader): Add new param "compact".
13484 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
13485 (md_reader::read_file): New method.
13486 * read-md.h (md_reader::md_reader): Add new param "compact".
13487 (md_reader::read_file): New method.
13488 (md_reader::is_compact): New accessor.
13489 (md_reader::read_name): Convert return type from void to file_location.
13490 (md_reader::read_name_or_nil): New decl.
13491 (md_reader::read_name_1): New decl.
13492 (md_reader::m_compact): New field.
13493 (noop_reader::noop_reader): Pass "false" for new "compact" param
13495 (rtx_reader::rtx_reader): Add new "compact" param.
13496 (rtx_reader::read_rtx_operand): Make virtual and convert return
13497 type from void to rtx.
13498 (rtx_reader::read_until): New decl.
13499 (rtx_reader::handle_any_trailing_information): New virtual function.
13500 (rtx_reader::postprocess): New virtual function.
13501 (rtx_reader::finalize_string): New virtual function.
13502 (rtx_reader::m_in_call_function_usage): New field.
13503 (rtx_reader::m_reuse_rtx_by_id): New field.
13504 * read-rtl-function.c: New file.
13505 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
13506 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
13507 (selftest::verify_three_block_rtl_cfg): New decl.
13508 * read-rtl-function.h: New file.
13509 * read-rtl.c: Potentially include config.h rather than bconfig.h.
13510 For host, include function.h, memmodel.h, and emit-rtl.h.
13511 (one_time_initialization): New function.
13512 (struct compact_insn_name): New struct.
13513 (compact_insn_names): New array.
13514 (find_code): Handle insn codes in compact dumps.
13515 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
13516 (bind_subst_iter_and_attr): Likewise.
13517 (add_condition_to_string): Likewise.
13518 (add_condition_to_rtx): Likewise.
13519 (apply_attribute_uses): Likewise.
13520 (add_current_iterators): Likewise.
13521 (apply_iterators): Likewise.
13522 (initialize_iterators): Guard usage of apply_subst_iterator with
13523 #ifdef GENERATOR_FILE.
13524 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
13525 (md_reader::read_mapping): Likewise.
13526 (add_define_attr_for_define_subst): Likewise.
13527 (add_define_subst_attr): Likewise.
13528 (read_subst_mapping): Likewise.
13529 (check_code_iterator): Likewise.
13530 (rtx_reader::read_rtx): Likewise. Move one-time initialization
13532 (one_time_initialization): New function.
13533 (rtx_reader::read_until): New method.
13534 (read_flags): New function.
13535 (parse_reg_note_name): New function.
13536 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
13537 Handle reuse_rtx ids.
13538 Wrap iterator lookup within #ifdef GENERATOR_FILE.
13539 Add parsing support for RTL dumps, mirroring the special-cases in
13540 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
13541 values, and calling handle_any_trailing_information.
13542 (rtx_reader::read_rtx_operand): Convert return type from void
13543 to rtx, returning return_rtx. Handle case 'e'. Call
13544 finalize_string on XSTR and XTMPL fields.
13545 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
13546 "(nil)" values were omitted. Call the postprocess vfunc on the
13548 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
13549 class ctor. Initialize m_in_call_function_usage. Call
13550 one_time_initialization.
13551 * rtl-tests.c (selftest::test_uncond_jump): Call
13552 set_new_first_and_last_insn.
13553 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
13554 * selftest-rtl.c: New file.
13555 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
13556 (selftest::get_insn_by_uid): New decl.
13557 * selftest-run-tests.c (selftest::run_tests): Call
13558 read_rtl_function_c_tests.
13559 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
13560 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
13563 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
13565 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
13566 operands in a special way. Assert that pos+len <= mode precision.
13568 2017-01-05 Jakub Jelinek <jakub@redhat.com>
13570 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
13571 3 argument Alias with unlimited for the negative form.
13572 (fno-vect-cost-model): Removed.
13574 2017-01-05 Martin Liska <mliska@suse.cz>
13576 * hsa-gen.c (gen_hsa_divmod): New function.
13577 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
13579 2017-01-05 Martin Liska <mliska@suse.cz>
13582 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
13585 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13587 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
13588 small constant length operands.
13590 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13592 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
13593 between loop iterations.
13595 2017-01-05 Martin Liska <mliska@suse.cz>
13598 * gimplify.c (gimplify_decl_expr): Compare to
13599 asan_poisoned_variables instread of checking flags.
13600 (gimplify_target_expr): Likewise.
13601 (gimplify_expr): Likewise.
13602 (gimplify_function_tree): Conditionally initialize
13603 asan_poisoned_variables.
13605 2017-01-04 Jeff Law <law@redhat.com>
13607 PR tree-optimizatin/78812
13608 * rtl.h (contains_mem_rtx_p): Prototype.
13609 * ifcvt.c (containts_mem_rtx_p): Move from here to...
13610 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
13611 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
13612 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
13613 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
13615 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
13617 * input.c (assert_char_at_range): Default-initialize actual_range.
13619 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
13621 * df-scan.c (df_ref_create_structure): Make regno unsigned,
13622 to match the caller.
13624 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
13626 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
13627 insns after final jump in test to emit dummy move.
13629 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
13631 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
13632 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
13634 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
13636 * multiple_target.c (create_dispatcher_calls): Init e_next.
13637 * tree-ssa-loop-split.c (split_loop): Init border.
13638 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
13641 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
13646 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
13647 (altivec_register_operand): Do not return true if the operand
13648 contains a SUBREG mixing SImode and SFmode.
13649 (vsx_register_operand): Likewise.
13650 (vsx_reg_sfsubreg_ok): New predicate.
13651 (vfloat_operand): Do not return true if the operand contains a
13652 SUBREG mixing SImode and SFmode.
13653 (vint_operand): Likewise.
13654 (vlogical_operand): Likewise.
13655 (gpc_reg_operand): Likewise.
13656 (int_reg_operand): Likewise.
13657 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
13658 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
13659 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
13661 (rs6000_emit_move_si_sf_subreg): New helper function.
13662 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
13663 fixup SUBREGs involving SImode and SFmode.
13664 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
13665 numbers for the new peephole2 optimization.
13666 (peephole2 for SFmode unions): New peephole2 to optimize cases in
13667 the GLIBC math library that do AND/IOR/XOR operations on single
13668 precision floating point.
13669 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
13670 target macros to say whether we need to avoid SUBREGs mixing
13672 (TARGET_ALLOW_SF_SUBREG): Likewise.
13673 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
13674 (UNSPEC_SI_FROM_SF): Likewise.
13675 (iorxor): Change spacing.
13676 (and_ior_xor): New iterator for AND, IOR, and XOR.
13677 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
13678 (movdi_from_sf_zero_ext): Likewise.
13679 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
13680 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
13681 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
13682 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
13683 (fms<mode>4): Likewise.
13684 (fnma<mode>4): Likewise.
13685 (fnms<mode>4): Likewise.
13686 (nfma<mode>4): Likewise.
13687 (nfms<mode>4): Likewise.
13689 2017-01-04 Marek Polacek <polacek@redhat.com>
13692 * doc/invoke.texi: Document -Wpointer-compare.
13694 2017-01-04 Jakub Jelinek <jakub@redhat.com>
13696 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
13699 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
13700 descriptions for -gdwarf-5 and emit them as uleb128 instead of
13703 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
13706 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
13707 documentation of the powerpc_popcntb_ok attribute.
13708 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
13709 code to issue warning messages if a requested CPU configuration is
13710 not supported by the binary (assembler and loader) toolchain.
13711 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
13712 made to define a built-in function that has been disabled.
13713 (paired_init_builtins): Add assertion to prevent ICE if attempt is
13714 made to define a built-in function that has been disabled.
13715 (altivec_init_builtins): Add comment explaining why definition
13716 of the DST built-in functions is not preceded by an assertion
13717 check. Add assertions to prevent ICE if attempts are made to
13718 define an altivec predicate or an abs* built-in function that has
13720 (htm_init_builtins): Add comment explaining why definition of the
13721 htm built-in functions is not preceded by an assertion check.
13723 2017-01-04 Jeff Law <law@redhat.com>
13725 PR tree-optimizatin/67955
13726 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
13727 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
13728 the points-to solution does not include pt_null. Use DECL_PT_UID
13731 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
13733 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
13734 Use gen_int_mode instead of gen_lopwart for const_int operands.
13736 2017-01-04 Jakub Jelinek <jakub@redhat.com>
13738 PR tree-optimization/71563
13739 * match.pd: Simplify X << Y into X if Y is known to be 0 or
13740 out of range value - has low bits known to be zero.
13742 2017-01-04 Alan Modra <amodra@gmail.com>
13744 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
13745 * configure: Regenerate.
13746 * config.in: Regenerate.
13748 2017-01-04 Jakub Jelinek <jakub@redhat.com>
13751 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
13752 a substring of the message, but strcmp with the whole message. Ifdef
13753 ENABLE_NLS, translate the message first using dgettext.
13755 2017-01-03 Jeff Law <law@redhat.com>
13757 PR tree-optimizatin/78856
13758 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
13759 (mark_threaded_blocks): Remove code to truncate thread paths that
13760 cross multiple loop headers. Instead invalidate the cached loop
13761 iteration information and handle case of a thread path walking
13762 into an irreducible region.
13764 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13767 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
13768 assertions. Add support for doing the signbit if the IEEE 128-bit
13769 floating point value is in a GPR.
13770 * config/rs6000/rs6000.md (Fsignbit): Delete.
13771 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
13772 Update the length attribute if the value is in a GPR.
13773 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
13774 the sign or zero extension instruction, since the value is always 0/1.
13775 (signbit<mode>2_dm2): Delete using <Fsignbit>.
13778 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
13779 extracting SImode to a GPR register so that we can generate a
13780 store, limit the vector to be in a traditional Altivec register
13781 for the vextuwrx instruction.
13783 2017-01-03 Ian Lance Taylor <iant@google.com>
13785 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
13787 2017-01-03 Martin Sebor <msebor@redhat.com>
13789 PR tree-optimization/78696
13790 * gimple-ssa-sprintf.c (format_floating): Correct handling of
13791 precision. Use MPFR for %f for greater fidelity. Correct handling
13793 (pass_sprintf_length::compute_format_length): Set width and precision
13794 specified by asrerisk to void_node for vararg functions.
13795 (try_substitute_return_value): Adjust dump output.
13797 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
13799 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
13801 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
13803 * doc/invoke.texi (SPARC options): Document -mlra as the default.
13804 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
13805 -mlra/-mno-lra was passed to the compiler.
13807 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
13809 PR rtl-optimization/65618
13810 * emit-rtl.c (try_split): Move initialization of "before" and
13811 "after" to just before the call to emit_insn_after_setloc.
13813 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
13815 * doc/md.texi (Standard Names): Remove reference to Java frontend.
13817 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
13819 * dwarf2out.c (gen_enumeration_type_die): When
13820 -gno-strict-dwarf, add a DW_AT_encoding attribute.
13822 2017-01-03 Jakub Jelinek <jakub@redhat.com>
13824 PR tree-optimization/78965
13825 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
13826 Change first argument from const call_info & to call_info &. For %n
13827 set info.nowrite to false.
13829 PR middle-end/78901
13830 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
13831 possibly throwing calls.
13833 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
13834 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
13835 and fns handling, rather than in a separate case SSA_NAME.
13837 2017-01-02 Jeff Law <law@redhat.com>
13839 * config/darwin-driver.c (darwin_driver_init): Const-correctness
13840 fixes for first_period and second_period variables.
13842 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
13845 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
13846 (*insvqi_1): New insn pattern.
13847 (*insvqi_1_mem_rex64): Ditto.
13848 (*insvqi_2): Ditto.
13849 (*insvqi_3): Rename from *insvqi.
13851 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
13853 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
13855 * doc/cfg.texi (Edges): Remove reference to Java.
13856 (Maintaining the CFG): Ditto.
13858 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
13860 PR middle-end/77674
13861 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
13862 transparent aliases.
13864 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
13866 PR middle-end/77484
13867 * predict.def (PRED_CALL): Update hitrate.
13868 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
13869 * predict.c (tree_estimate_probability_bb): Split CALL predictor
13870 into direct/indirect/polymorphic variants.
13872 2017-01-01 Jakub Jelinek <jakub@redhat.com>
13874 Update copyright years.
13876 * gcc.c (process_command): Update copyright notice dates.
13877 * gcov-dump.c (print_version): Ditto.
13878 * gcov.c (print_version): Ditto.
13879 * gcov-tool.c (print_version): Ditto.
13880 * gengtype.c (create_file): Ditto.
13881 * doc/cpp.texi: Bump @copying's copyright year.
13882 * doc/cppinternals.texi: Ditto.
13883 * doc/gcc.texi: Ditto.
13884 * doc/gccint.texi: Ditto.
13885 * doc/gcov.texi: Ditto.
13886 * doc/install.texi: Ditto.
13887 * doc/invoke.texi: Ditto.
13889 Copyright (C) 2017 Free Software Foundation, Inc.
13891 Copying and distribution of this file, with or without modification,
13892 are permitted in any medium without royalty provided the copyright
13893 notice and this notice are preserved.