1 2017-06-14 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/81083
4 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
7 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
9 * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
10 (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
11 * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
12 * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete. Adjust former use.
13 * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
14 * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
16 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
18 * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
19 * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
21 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
23 * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
25 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
27 * config/rs6000/t-rtems: Don't handle SPE.
29 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
31 * config/rs6000/t-linux: Don't handle SPE.
33 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
35 * config/rs6000/eabispe.h: Delete file.
37 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
39 * config/rs6000/t-spe: Delete file.
41 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
43 * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
44 (rs6000_legitimate_offset_address_p): Return false for anything in
47 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
49 * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
50 except V2SF and V2SI. Rearrange the vector modes, and add comments.
51 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
53 (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
54 (rs6000_legitimate_offset_address_p): Ditto.
55 (rs6000_emit_move): Ditto.
56 (rs6000_init_builtins): Remove V4HI_type_node.
58 2017-06-13 Martin Liska <mliska@suse.cz>
61 * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
62 (gate_asan): Likewise.
63 * asan.h (asan_no_sanitize_address_p): Remove the function.
64 (sanitize_flags_p): New function.
65 * builtins.def: Fix coding style.
66 * common.opt: Use renamed enum value.
67 * convert.c (convert_to_integer_1): Use sanitize_flags_p.
68 * doc/extend.texi: Document no_sanitize attribute.
69 * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
70 to SANITIZE_UNDEFINED_NONDEFAULT.
71 * gcc.c (sanitize_spec_function): Use the renamed enum value.
72 * gimple-fold.c (optimize_atomic_compare_exchange_p):
74 * gimplify.c (gimplify_function_tree): Likewise.
75 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
76 * opts.c (parse_no_sanitize_attribute): New function.
77 (common_handle_option): Use renamed enum value.
78 * opts.h (parse_no_sanitize_attribute): Declare.
79 * tree.c (sanitize_flags_p): New function.
80 * tree.h: Declared here.
81 * tsan.c: Use sanitize_flags_p.
82 * ubsan.c (ubsan_expand_null_ifn): Likewise.
83 (instrument_mem_ref): Likewise.
84 (instrument_bool_enum_load): Likewise.
85 (do_ubsan_in_current_function): Remove the function.
86 (pass_ubsan::execute): Use sanitize_flags_p.
87 * ubsan.h: Remove do_ubsan_in_current_function
88 * tree-cfg.c (print_no_sanitize_attr_value): New function.
89 (dump_function_to_file): Use it here.
91 2017-06-13 Martin Jambor <mjambor@suse.cz>
93 PR tree-optimization/80803
94 PR tree-optimization/81063
95 * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
96 (propagate_subaccesses_across_link): Enqueue subtree whenever
97 necessary instead of relying on the caller.
99 2017-06-13 Martin Jambor <mjambor@suse.cz>
101 * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
102 that have a first_link.
103 (sort_and_splice_var_accesses): Do not check first_link before
105 (subtree_mark_written_and_enqueue): Likewise.
106 (propagate_all_subaccesses): Likewise and do not stop at first
107 parent with a first_link.
109 2017-06-13 Martin Jambor <mjambor@suse.cz>
111 * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
114 2017-06-13 Yury Gribov <tetra2005@gmail.com>
116 * match.pd: New pattern.
118 2017-06-13 Yury Gribov <tetra2005@gmail.com>
120 * tree-vrp.c (is_masked_range_test): New function.
121 (register_edge_assert_for): Determine ranges for
124 2017-06-13 Yury Gribov <tetra2005@gmail.com>
126 PR tree-optimization/67328
127 * fold-const.c (maskable_range_p): New function.
128 (build_range_check): Generate bittests if possible.
130 2017-06-13 Martin Liska <mliska@suse.cz>
132 * gimple-pretty-print.c (dump_probability): Add new argument.
133 (dump_edge_probability): Dump both probability and count.
134 (dump_gimple_label): Likewise.
135 (dump_gimple_bb_header): Likewise.
137 2017-06-13 Georg-Johann Lay <avr@gjlay.de>
140 * config/avr/avr-devices.c: Fix indentation.
141 * config/avr/gen-avr-mmcu-specs.c: Dito.
143 2017-06-13 Richard Biener <rguenther@suse.de>
145 * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
146 instead get vector type from stmt_info.
147 (vectorizable_reduction): Adjust. Remove dead code.
149 2017-06-13 Richard Biener <rguenther@suse.de>
152 * fold-const.c (extract_muldiv_1): Remove bogus distribution
153 case of C * (x * C2 + C3).
154 (fold_addr_of_array_ref_difference): Properly fold index difference.
156 2017-06-12 David S. Miller <davem@davemloft.net>
159 * config/sparc/sparc.md (return expander): Emit frame blockage if
160 function uses alloca.
162 2017-06-12 Richard Sandiford <richard.sandiford@linaro.org>
164 * combine.c (make_field_assignment): Check len rather than the mode
165 precision when calling force_to_mode.
167 2017-06-12 Georg-Johann Lay <avr@gjlay.de>
169 Support multilibs and devices that see flash in RAM address range.
172 * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
173 (avr_mcu_t) <flash_pm_offset>: New field.
174 (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
175 * config/avr/avr.h (AVR_SHORT_CALLS): New define.
176 (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
177 (AVR_TINY_PM_OFFSET): Remove macro.
178 * config/avr/avr.opt (-mshort-calls): New option.
179 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
180 [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
181 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
182 <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
183 <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
184 instead of avr_arch->have_jmp_call.
185 <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
186 [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
187 avr_arch->flash_pm_offset to define.
188 * config/avr/avr-devices.c (avr_arch_types): Add initializers for
189 new field flash_pm_offset. Add entry for avrxmega3.
190 (avr_texinfo): Add entry for avrxmega3.
191 * config/avr/avr-mcus.def: Add entries for: avrxmega3,
192 attiny212, attiny214,
193 attiny412, attiny414, attiny416, attiny417,
194 attiny814, attiny816, attiny817,
195 attiny1614, attiny1616, attiny1617,
196 attiny3214, attiny3216, attiny3217.
197 * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
198 avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
199 (avr_print_operand_address) [AVR_TINY]: Same.
200 (avr_asm_init_sections) <readonly_data_section>: Only patch
201 callback if avr_arch->flash_pm_offset = 0.
202 (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
203 for rodata if avr_arch->flash_pm_offset != 0.
204 (avr_encode_section_info) [AVR_TINY]: Adjust comment.
205 * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
206 (opts) [AVR_ISA_RCALL]: Append opt_rcall.
207 (m_options): Append opt_rcall.
208 (m_dirnames): Append dir_rcall.
209 * config/avr/t-multilib: Regenerate.
211 * configure.ac [target=avr]: Check whether avrxmega3 default
212 linker description file works as needed.
213 * configure: Regenerate.
214 * doc/avr-mmcu.texi: Regenerate.
215 * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
216 <__AVR_ARCH__>: Document avrxmega3 and 103.
217 <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
218 <__AVR_SHORT_CALLS__>: Document it.
219 <__AVR_PM_BASE_ADDRESS__>: Document it.
220 * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
221 (AVR Variable Attributes) <progmem>: Document this is
222 not needed for avrxmega3.
223 (AVR Named Address Spaces) <__flash>: Dito.
225 2017-06-12 Jan Hubicka <hubicka@ucw.cz>
227 * cgraph.c (cgraph_node::dump): Complain about profile insanities.
229 2017-06-12 Doug Rupp <rupp@adacore.com>
231 * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
232 Append vxworks-stdint.h to the tm_file list.
233 * config/vxworks-stdint.h: New file.
235 2017-06-12 Martin Liska <mliska@suse.cz>
237 PR tree-optimization/81041
238 * tree-profile.c (gimple_gen_ic_func_profiler):
239 Create an extra BB in profile-generate
240 (gimple_gen_time_profiler): Likewise.
242 2017-06-12 Jakub Jelinek <jakub@redhat.com>
244 PR tree-optimization/81003
245 * tree-ssa-reassoc.c (force_into_ssa_name): New function.
246 (update_range_test): Use it instead of force_gimple_operand_gsi.
248 2017-06-12 Richard Biener <rguenther@suse.de>
250 PR tree-optimization/81053
251 * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
252 with backedge value not defined in loop. Simplify def stmt
255 2017-06-11 Tom de Vries <tom@codesourcery.com>
258 * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
260 (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
261 nvptx_cannot_force_const_mem.
263 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
265 * opts.c (finish_options): Move test for flag_split_stack after
266 it has been initialized.
268 2017-06-11 Jason Merrill <jason@redhat.com>
270 * tree.h (id_equal): New.
271 * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
272 omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
273 instead of strcmp of IDENTIFIER_POINTER.
275 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
277 * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
278 (mark_all_inlined_calls_cdtor): Fix formating.
279 (inline_transform): Rescale profile before inlining.
281 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
283 * cgraph.h (cgraph_edge::clone): Update prototype.
284 * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
285 (cgraph_node::create_clone): Update.
286 (cgraph_node::create_version_clone): Update.
287 * tree-inline.c (copy_bb): Update.
288 (expand_call_inline): Update.
290 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
292 * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
293 factored out from ...
294 (rs6000_emit_prologue): ... here.
296 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
298 * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
299 factored out from ...
300 (rs6000_emit_prologue): ... here.
302 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
304 * predict.c (drop_profile): Also drop individual bb/edge and cgraph
306 (handle_missing_profiles): Fix computation of tp_first_run.
307 (counts_to_freqs): Do not touch freqs when count is 0.
309 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
311 * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
314 2017-06-10 Tom de Vries <tom@codesourcery.com>
316 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
317 attributes): Document signal effective target.
319 2017-06-10 Tom de Vries <tom@codesourcery.com>
321 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
322 Document effective target stack_size.
324 2017-06-09 David Malcolm <dmalcolm@redhat.com>
326 * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
327 to the edit_context if they can be auto-applied.
329 2017-06-9 Ian Lance Taylor <iant@golang.org>
331 * opts.c (finish_options): If -fsplit-stack, disable implicit
332 -forder-blocks-and-partition.
333 * doc/invoke.texi (Optimize Options): Document that when using
334 -fsplit-stack -forder-blocks-and-partition is not implicitly
337 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
339 * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
340 ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
341 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
342 * builtins.def (abort, trap, unreachable): Declare cold.
343 * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
344 * tree-core.h (ECF_COLD): New.
345 * tree.c (set_call_expr_flags): Handle ECF_COLD.
346 (build_common_builtin_nodes): Mark unreachable and abort as cold.
348 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
350 * predict.c (unlikely_executed_stmt_p): Cleanup.
352 2017-06-09 Richard Biener <rguenther@suse.de>
354 * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
355 model if the ref is always written to.
357 2017-06-09 Tamar Christina <tamar.christina@arm.com>
359 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
361 2017-06-09 Tamar Christina <tamar.christina@arm.com>
363 * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
366 2017-06-09 Tom de Vries <tom@codesourcery.com>
369 * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
370 "target cannot support label values" when encountering LABEL_REF.
372 2017-06-09 Martin Liska <mliska@suse.cz>
374 * tree-profile.c (gimple_gen_ic_profiler): Update comment.
375 (gimple_gen_ic_func_profiler): Emit direct comparison
376 of __gcov_indirect_call_callee with NULL.
377 (gimple_gen_time_profiler): Change probability from
378 PROB_VERY_UNLIKELY to PROB_UNLIKELY.
380 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
382 * profile.c (edge_gcov_counts): Turn to pointer.
383 (compute_branch_probabilities, compute_branch_probabilities): Update.
384 (branch_prob): Do not clear edge_gcov_count.
385 * profile.h (edge_gcov_counts): Turn to pointer.
386 (edge_gcov_count): Update.
388 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
390 * gimple.h (gimple_check_failed): Mark cold.
392 2017-06-09 Richard Biener <rguenther@suse.de>
394 PR tree-optimization/66623
395 * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
396 refactor check_reduction into two parts, properly computing
397 whether we have to check reduction validity for outer loop
400 2017-06-09 Richard Biener <rguenther@suse.de>
402 PR tree-optimization/79483
403 * graphite-scop-detection.c (order): New global.
404 (get_order): Compute bb to order mapping that satisfies code
405 generation constraints.
406 (cmp_pbbs): New helper.
407 (build_scops): Start domwalk at entry block, sort generated
410 2017-06-09 Richard Biener <rguenther@suse.de>
413 * ipa-polymorphic-call.c
414 (ipa_polymorphic_call_context::restrict_to_inner_class):
415 Skip FIELD_DECLs with error_mark_node type.
416 * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
419 2017-06-09 Martin Liska <mliska@suse.cz>
421 * predict.c (struct branch_predictor): New struct.
422 (test_prediction_value_range): New test.
423 (predict_c_tests): New function.
424 * selftest-run-tests.c (selftest::run_tests): Run the function.
425 * selftest.h: Declare new tests.
427 2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
430 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
431 gen_add3_insn did not fail.
432 * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
433 r0, construct that number in a temporary reg and add that reg to r0.
434 If asked to put the result in r0 as well, fail.
436 2017-06-08 Will Schmidt <will_schmidt@vnet.ibm.com>
438 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
439 for early expansion of vec_eqv.
441 2017-06-08 Jakub Jelinek <jakub@redhat.com>
444 * ubsan.c (instrument_null): Avoid pointless code temporary.
445 (pass_ubsan::execute): Instrument aggregate arguments of calls.
447 2017-06-08 Uros Bizjak <ubizjak@gmail.com>
451 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
454 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
457 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
459 * predict.c (unlikely_executed_edge_p): Move ahead.
460 (probably_never_executed_edge_p): Use it.
462 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
465 * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
466 gimple_call_builtin_p call.
468 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
470 * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
471 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
472 rtl_check_failed_type2, rtl_check_failed_code1,
473 rtl_check_failed_code2, rtl_check_failed_code_mode,
474 rtl_check_failed_block_symbol, cwi_check_failed_bounds,
475 rtvec_check_failed_bounds, rtl_check_failed_flag,
476 _fatal_insn_not_found, _fatal_insn): Likewise.
477 * tree.h (tree_contains_struct_check_failed,
478 tree_check_failed, tree_not_check_failed,
479 tree_class_check_failed, tree_range_check_failed,
480 tree_not_class_check_failed, tree_int_cst_elt_check_failed,
481 tree_vec_elt_check_failed, phi_node_elt_check_failed,
482 tree_operand_check_failed, omp_clause_check_failed,
483 omp_clause_operand_check_failed, omp_clause_range_check_failed):
486 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
488 * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
489 flag_branch_probabilities.
490 * ipa-inline.c (edge_badness): Likewise.
491 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
492 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
493 * predict.c (maybe_hot_frequency_p): Likewise.
494 (probably_never_executed): Likewise.
495 * sched-ebb.c (schedule_ebbs): Likewise.
496 * sched-rgn.c (find_single_block_region): Likewise.
497 * tracer.c (tail_duplicate): Likewise.
499 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
501 * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
502 longer requires x_flag_profile_use.
504 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
506 * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
507 instead of flag_reorder_blocks_and_partition.
508 * dbxout.c (dbxout_function_end): Likewise.
509 * dwarf2out.c (gen_subprogram_die): Likewise.
510 * haifa-sched.c (sched_create_recovery_edges): Likewise.
511 * hw-doloop.c (reorg_loops): Likewise.
512 * varasm.c (assemble_start_function,
513 assemble_end_function): Likewise.
514 (decide_function_section): Do not check for
515 flag_reorder_blocks_and_partition.
517 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
519 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
521 (chkp_get_hard_register_fake_addr_expr): Ditto.
522 (chkp_build_addr_expr): Add check for hard reg case.
523 (chkp_parse_array_and_component_ref): Ditto.
524 (chkp_find_bounds_1): Ditto.
525 (chkp_process_stmt): Don't generate bounds store for
528 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
530 * predict.c (maybe_hot_bb_p): Do not check profile status.
531 (maybe_hot_edge_p): Likewise.
532 (probably_never_executed): Check for zero counts even if profile
534 (unlikely_executed_edge_p): New function.
535 (unlikely_executed_stmt_p): New function.
536 (unlikely_executed_bb_p): New function.
537 (set_even_probabilities): Use unlikely predicates.
538 (combine_predictions_for_bb): Likewise.
539 (predict_paths_for_bb): Likewise.
540 (predict_paths_leading_to_edge): Likewise.
541 (determine_unlikely_bbs): New function.
542 (estimate_bb_frequencies): Use it.
543 (compute_function_frequency): Use zero counts even if profile is
545 * profile-count.h: Fix typo.
547 2017-08-08 Julia Koval <julia.koval@intel.com>
549 * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
550 _mm512_mask_cvtsepi16_storeu_epi8,
551 _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
552 * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
553 _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
554 _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
555 _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
556 * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
557 (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
558 VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
559 * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
560 __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
561 __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
562 __builtin_ia32_pmovuswb256mem_mask,
563 __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
564 __builtin_ia32_pmovwb512mem_mask): New builtins.
566 2017-08-08 Julia Koval <julia.koval@intel.com>
568 PR target/73350,80862
569 * config/i386/subst.md (round): Fix round pattern.
570 * config/i386/i386.c (ix86_erase_embedded_rounding):
571 Fix erasing rounding for the fixed pattern.
573 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
575 * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
577 2017-06-08 Martin Liska <mliska@suse.cz>
579 PR gcov-profile/80911
580 * gcov.c (block_info::block_info): New constructor.
582 2017-06-07 Carl Love <cel@us.ibm.com>
584 * config/rs6000/rs6000-c: The return type of the following
585 built-in functions was implemented as int not long long. Fix sign
586 of return value for the unsigned version of vec_mulo and vec_mule.
587 vector unsigned long long vec_bperm (vector unsigned long long,
588 vector unsigned char)
589 vector signed long long vec_mule (vector signed int,
591 vector unsigned long long vec_mule (vector unsigned int,
593 vector signed long long vec_mulo (vector signed int,
595 vector unsigned long long vec_mulo (vector unsigned int,
597 * doc/extend.texi: Fix the documentation for the built-in
600 2017-06-07 Carl Love <cel@us.ibm.com>
603 * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
606 2017-06-07 Carl Love <cel@us.ibm.com>
608 * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
609 support, Generate doublehv for signed int/float for BE case only.
611 2017-06-07 Alexander Monakov <amonakov@ispras.ru>
613 * doc/invoke.texi (mcx16): Rewrite.
615 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
617 * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
618 * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
619 *mov<mode>_softfloat, and an anonymous splitter): Use
620 nonimmediate_operand instead of rs6000_nonimmediate_operand.
622 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
624 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
626 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
627 (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
628 (rs6000_debug_reg_global): Adjust.
629 (rs6000_init_hard_regno_mode_ok): Adjust.
630 (rs6000_dbx_register_number): Adjust.
631 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
632 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
633 Remove SPE_ACC and SPEFSCR.
634 (REG_ALLOC_ORDER): Ditto.
635 (FRAME_POINTER_REGNUM): Change to 111.
636 (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
637 (REG_CLASS_NAMES): Ditto.
638 (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
639 (REGISTER_NAMES): Ditto.
640 (ADDITIONAL_REG_NAMES): Ditto.
641 (rs6000_reg_names): Ditto.
642 * config/rs6000/rs6000.md: Renumber some register number
645 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
647 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
649 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
650 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
652 (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
653 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
654 Delete the SPE high registers.
655 (REG_ALLOC_ORDER): Ditto.
656 (enum reg_class): Remove SPE_HIGH_REGS.
657 (REG_CLASS_NAMES): Ditto.
658 (REG_CLASS_CONTENTS): Delete the SPE high registers.
659 (REGISTER_NAMES): Ditto.
660 (rs6000_reg_names): Ditto.
661 * doc/tm.texi.in: Remove SPE as example.
662 * doc/tm.texi: Regenerate.
664 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
666 * config/rs6000/8540.md (ppc8540_brinc): Delete.
667 * config/rs6000/e500mc.md (e500mc_brinc): Delete.
668 * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
669 * config/rs6000/rs6000.md (type): Remove "brinc".
671 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
673 * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
674 (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
675 * config/rs6000/linuxspe.h: Delete file.
676 * config/rs6000/rs6000.md: Don't include spe.md.
677 * config/rs6000/spe.h: Delete file.
678 * config/rs6000/spe.md: Delete file.
679 * config/rs6000/t-rs6000: Remove spe.md.
681 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
683 * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
684 (reg_or_none500mem_operand): Delete.
685 * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
686 instead of reg_or_none500mem_operand.
688 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
690 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
691 handling of SPE flags.
692 * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
694 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
696 * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
698 * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
699 (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
700 paired_divv2sf3): Similar.
701 * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
702 SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
703 * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
705 Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
706 Rename the paired_* instruction patterns.
707 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
709 * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
710 * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
711 (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
712 spe_padding_size, and spe_64bit_regs_used. Replace TARGET_SPE and
713 TARGET_SPE_ABI with 0, simplify. Replace SPE_VECTOR_MODE with
715 (struct machine_function): Delete field spe_insn_chain_scanned_p.
716 (spe_func_has_64bit_regs_p): Delete.
717 (spe_expand_predicate_builtin): Delete.
718 (spe_expand_evsel_builtin): Delete.
719 (TARGET_DWARF_REGISTER_SPAN): Do not define.
720 (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
721 (invalid_e500_subreg): Delete.
722 (rs6000_legitimize_address): Always force_reg op2 as well, for
723 paired single memory accesses.
724 (rs6000_member_type_forces_blk): Delete.
725 (rs6000_spe_function_arg): Delete.
726 (rs6000_expand_unop_builtin): Delete SPE handling.
727 (rs6000_expand_binop_builtin): Ditto.
728 (spe_expand_stv_builtin): Delete.
729 (bdesc_2arg_spe): Delete.
730 (spe_expand_builtin): Delete.
731 (spe_expand_predicate_builtin): Delete.
732 (spe_expand_evsel_builtin): Delete.
733 (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
734 (spe_init_builtins): Delete.
735 (spe_func_has_64bit_regs_p): Delete.
736 (savres_routine_name): Delete "info" parameter. Adjust callers.
737 (rs6000_emit_stack_reset): Ditto.
738 (rs6000_dwarf_register_span): Delete.
739 * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
740 UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
741 SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
743 * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
745 * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
746 * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
747 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
748 mulv2sf3, divv2sf3): Delete expanders.
750 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
752 config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
754 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
756 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
757 * config/rs6000/rs6000.c: Ditto.
759 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
761 * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
762 * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
765 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
767 * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
768 * config/rs6000/rs6000.opt: Ditto.
769 * config/rs6000/t-rtems: Ditto.
771 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
773 * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
774 TARGET_E500_SINGLE by 0, simplify.
775 * config/rs6000/rs6000.c: Ditto.
776 (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
777 (spe_build_register_parallel): Delete.
778 * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
779 TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
780 * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
781 TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
782 (E500_CONVERT): Delete.
783 * config/rs6000/spe.md: Remove many patterns and all define_constants.
785 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
787 * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
788 * config/rs6000/dfp.md: Ditto.
789 (negdd2, *negdd2_fpr): Merge.
790 (absdd2, *absdd2_fpr): Merge.
791 (negtd2, *negtd2_fpr): Merge.
792 (abstd2, *abstd2_fpr): Merge.
793 * config/rs6000/e500.h: Delete file.
794 * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
795 TARGET_FPRS by 1 and simplify.
796 * config/rs6000/rs6000-c.c: Ditto.
797 * config/rs6000/rs6000.c: Ditto. Also replace TARGET_SF_SPE and
799 * config/rs6000/rs6000.h: Ditto. Delete TARGET_SF_SPE and
801 * config/rs6000/rs6000.md: Ditto.
802 (floatdidf2, *floatdidf2_fpr): Merge.
803 (move_from_CR_gt_bit): Delete.
804 * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
805 (E500_CR_IOR_COMPARE): Delete.
806 (All patterns that require !TARGET_FPRS): Delete.
807 * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
809 2017-06-07 Bin Cheng <bin.cheng@arm.com>
811 * passes.def (pass_iv_canon): Move before pass_loop_distribution.
813 2017-06-07 Bin Cheng <bin.cheng@arm.com>
815 * graphds.c (add_edge): Intitialize edge's attached data.
816 (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
817 pointer parameter. Call pointed function on each edge during
818 graph traversing. Skip traversing the edge when the function
820 (graphds_dfs, graphds_scc): Ditto.
821 (for_each_edge): New parameter. Pass the new parameter to callback
823 * graphds.h (skip_edge_callback): New function pointer type.
824 (graphds_dfs, graphds_scc): New function pointer parameter.
825 (graphds_edge_callback, for_each_edge): New parameter.
827 2017-06-07 Bin Cheng <bin.cheng@arm.com>
829 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
830 out code checking if runtime alias check is possible to below ...
831 Call the new function.
832 * tree-data-ref.c (runtime_alias_check_p): ... to new function.
833 * tree-data-ref.h (runtime_alias_check_p): New decalaration.
835 2017-06-07 Marek Polacek <polacek@redhat.com>
838 * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
839 TYPE_OVERFLOW_WRAPS check.
841 2017-06-07 Bin Cheng <bin.cheng@arm.com>
843 * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
844 if versioning is required.
845 * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
846 peeling with the check for versioning.
848 2017-06-07 Bin Cheng <bin.cheng@arm.com>
850 * tree-vectorizer.h (vect_build_loop_niters): New parameter.
851 * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
852 Set true to new parameter if new ssa variable is defined.
853 (vect_gen_vector_loop_niters): Refactor. Set range information
854 for the new vector loop bound variable.
855 (vect_do_peeling): Ditto.
857 2017-06-07 Bin Cheng <bin.cheng@arm.com>
859 * tree-affine.c (ssa.h): Include header file.
860 (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
861 has wrapping overflow behavior.
863 2017-06-07 Bin Cheng <bin.cheng@arm.com>
865 * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
867 2017-06-07 Bin Cheng <bin.cheng@arm.com>
869 (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
870 (tree_to_aff_combination): ... here.
872 2017-06-07 Bin Cheng <bin.cheng@arm.com>
874 * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
875 reg_pressure model function.
876 (ivopts_global_cost_for_size): Delete.
877 (determine_set_costs, iv_ca_recount_cost): Call new model function
878 ivopts_estimate_reg_pressure.
880 2017-06-07 Tamar Christina <tamar.christina@arm.com>
882 * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more expensive than udiv.
883 Remove floating point cases from mod.
885 2017-06-07 Tamar Christina <tamar.christina@arm.com>
887 * config/arm/aarch-cost-tables.h (cortexa53_extra_cost): Increase idiv cost.
889 2017-06-07 Tamar Christina <tamar.christina@arm.com>
891 * config/aarch64/aarch64.md
892 (copysignsf3): Fix mask generation.
894 2017-06-07 Jakub Jelinek <jakub@redhat.com>
896 * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
898 (class dump_manager): Add register_dumps method.
899 * dumpfile.c: Include langhooks.h.
900 (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
901 (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
902 (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
903 (dump_manager::dump_register): Start with 512 entries instead of 32.
904 (dump_manager::register_dumps): New method.
905 * toplev.c (general_init): Instead of invoking register_dumps
906 langhook, invoke register_dumps method on the dump manager.
907 * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
910 2017-06-07 Richard Sandiford <richard.sandiford@linaro.org>
912 * doc/md.texi: Clarify the restrictions on a define_insn condition.
913 Say that # requires an associated define_split to exist, and that
914 the define_split must be suitable for use after register allocation.
916 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
918 * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
919 (compute_outgoing_frequencies): Also initialize zero counts.
920 (find_many_sub_basic_blocks): Do not produce uninitialized profile
921 around loops; preserve more of profile when nothing changes.
923 2017-06-06 Jim Wilson <jim.wilson@linaro.org>
925 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
927 * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
928 * config/arm/arm-cpu-cdata.h: Regenerate.
929 * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
930 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
931 * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
932 * config/arm/arm.c (arm_qdf24xx_tune): Delete.
933 * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
935 * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
937 * config/arm/t-rmprofile: Likewise.
938 * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
940 2017-06-06 David S. Miller <davem@davemloft.net>
943 * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
944 blockage if function uses alloca.
946 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
948 * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
949 New "uid" fields to hold pretty-print IDs of group and ref.
950 Memory references are now identified as <group_id>:<ref_id>
951 instead of using [random] addresses.
952 (dump_mem_details): Simplify, no functional change.
953 (dump_mem_ref): Simplify and make output more concise.
954 Replace couple of fprintf's throughout code with calls to dump_mem_ref.
955 (find_or_create_group): Initialize group uid.
956 (record_ref): Initialize ref uid. Improve debug output.
957 (prune_group_by_reuse, should_issue_prefetch_p,)
958 (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
959 (mark_nontemporal_store, determine_loop_nest_reuse):
960 Improve debug output.
962 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
964 * dbgcnt.def (prefetch): New debug counter.
965 * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
966 (schedule_prefetches): Stop issueing prefetches if debug counter
969 2017-06-06 Tom de Vries <tom@codesourcery.com>
971 * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
972 gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
974 2017-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
976 * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
977 Use aarch64_reg_or_zero predicate for operand 4.
978 (aarch64_compare_and_swap<mode> define_insn_and_split):
979 Use aarch64_reg_or_zero predicate for operand 3. Add 'Z' constraint.
980 (aarch64_store_exclusive<mode>): Likewise for operand 2.
982 2017-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
984 * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
985 (arm_compute_save_core_reg_mask): This.
986 (thumb1_compute_save_reg_mask): Rename into ...
987 (thumb1_compute_save_core_reg_mask): This.
988 (arm_compute_save_reg0_reg12_mask): Adapt comment.
989 (arm_compute_frame_layout): Likewise.
991 2017-06-06 Richard Biener <rguenther@suse.de>
993 PR tree-optimization/80974
994 * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
995 keep or clear leaders SSA info.
997 2017-06-06 Tom de Vries <tom@codesourcery.com>
999 * config/nvptx/nvptx.c (split_mode_p): New function.
1000 (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
1002 2017-06-06 Tom de Vries <tom@codesourcery.com>
1004 * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
1006 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
1009 * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
1012 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
1014 * shrink-wrap.c (handle_simple_exit): Update profile.
1015 (try_shrink_wrapping): Upate profile.
1017 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
1019 * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
1020 (tree_guess_outgoing_edge_probabilities): New.
1021 * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
1022 * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
1024 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
1026 * ipa-split.c (split_function): Initialize return bb profile.
1028 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
1030 * profile.c (compute_branch_probabilities): Also initialize
1033 2017-06-06 Richard Biener <rguenther@suse.de>
1035 PR tree-optimization/80928
1036 * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
1037 (vect_analyze_loop_operations): Properly guard analysis for
1039 (vect_transform_loop): Likewise.
1040 (vect_analyze_loop_2): Also reset SLP type on PHIs.
1041 (vect_model_induction_cost): Do not cost for pure SLP.
1042 (vectorizable_induction): Pass in SLP node, implement SLP vectorization
1043 of induction in inner loop vectorization.
1044 * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
1045 (vect_get_and_check_slp_defs): Handle vect_induction_def.
1046 (vect_build_slp_tree): Likewise. Handle PHIs as terminating the
1048 (vect_analyze_slp_cost_1): Cost induction.
1049 (vect_detect_hybrid_slp_stmts): Handle PHIs.
1050 (vect_get_slp_vect_defs): Likewise.
1051 * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
1052 (vect_transform_stmt): Handle SLP reductions.
1053 * tree-vectorizer.h (vectorizable_induction): Adjust.
1055 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1057 * config/rs6000/rs6000.c (make_resolver_func): Update
1058 init_lowered_empty_function call.
1060 2017-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1062 * doc/invoke.texi: Document the -fprofile-abs-path option.
1063 * common.opt (fprofile-abs-path): New option.
1064 * gcov-io.h (gcov_write_filename): Declare.
1065 * gcov-io.c (gcov_write_filename): New function.
1066 * coverage.c (coverage_begin_function): Use gcov_write_filename.
1067 * profile.c (output_location): Likewise.
1069 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
1071 * shring-wrap.c: Revert accidental commit.
1073 2017-06-05 Volker Reichelt <v.reichelt@netcologne.de>
1075 * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
1077 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
1079 * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
1081 * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
1082 profile in callgraph edge.
1083 * profile-count.h (apply_probability): If THIS is 0, then result is 0
1084 (apply_scale): Likewise.
1085 * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
1086 Also scale profile when inlining function with zero profile.
1087 (initialize_cfun): Update exit block profile even when it is zero.
1088 * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
1089 when profile is read.
1091 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1093 * config/rs6000/rs6000.c (toplevel): Include attribs.h.
1094 (CLONE_*): New constants to define the processors we can generate
1095 code for with the target_clone attribute.
1096 (rs6000_clone_map): New array to identify which clone processors
1097 the current program is running on.
1098 (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
1099 target_clone attribute.
1100 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
1101 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
1102 (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
1103 (cpu_expand_builtin): Add support for target_clone attribute.
1104 (rs6000_valid_attribute_p): Allow "default" attribute.
1105 (get_decl_name): New debug function to simplify printing the
1106 current function name in debugging statements.
1107 (rs6000_clone_priority): New functions to support the target_clone
1108 attribute, and be able to generate code to switch between ISA 2.05
1109 through ISA 3.0 (power6 through power9).
1110 (rs6000_compare_version_priority): Likewise.
1111 (rs6000_get_function_versions_dispatcher): Likewise.
1112 (make_resolver_func): Likewise.
1113 (add_condition_to_bb): Likewise.
1114 (dispatch_function_versions): Likewise.
1115 (rs6000_generate_version_dispatcher_body): Likewise.
1116 (rs6000_can_inline_p): Call get_decl_name for debugging usage.
1117 (fusion_gpr_load_p): Fix a spacing issue.
1118 * doc/extend.texi (Common Function Attributes): Document that the
1119 PowerPC supports the target_clone attribute.
1121 2017-06-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
1123 * config/arm/arm.h: explain F symbol found in description of ARM
1124 register allocation in its legend.
1126 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
1128 * config/mips/frame-header-opt.c: Include profile-count.h.
1129 * config/riscv/riscv.c: Include profile-count.h
1131 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
1133 * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
1135 (sm_set_flag_if_changed): Add bbs field.
1136 (execute_sm_if_changed_flag_set): Pass BBS.
1137 (execute_sm): Update.
1139 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1141 * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
1144 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1146 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
1147 (peephole2): New peephole2 to emit the above.
1148 * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
1150 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1152 * config/aarch64/aarch64.c (define_peephole2 above
1153 *sub_<shift>_<mode>): New peephole.
1155 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
1157 * config/i386/i386.c (make_resolver_func): Update.
1158 * Makefile.in: Add profile-count.h and profile-count.o
1159 * auto-profile.c (afdo_indirect_call): Update to new API.
1160 (afdo_set_bb_count): Update.
1161 (afdo_propagate_edge): Update.
1162 (afdo_propagate_circuit): Update.
1163 (afdo_calculate_branch_prob): Update.
1164 (afdo_annotate_cfg): Update.
1165 * basic-block.h: Include profile-count.h
1166 (struct edge_def): Turn count to profile_count.
1167 (struct basic_block_def): Likewie.
1168 (REG_BR_PROB_BASE): Move to profile-count.h
1169 (RDIV): Move to profile-count.h
1170 * bb-reorder.c (max_entry_count): Turn to profile_count.
1171 (find_traces): Update.
1172 (rotate_loop):Update.
1173 (connect_traces):Update.
1174 (sanitize_hot_paths):Update.
1175 * bt-load.c (migrate_btr_defs): Update.
1176 * cfg.c (RDIV): Remove.
1177 (init_flow): Use alloc_block.
1178 (alloc_block): Uninitialize count.
1179 (unchecked_make_edge): Uninitialize count.
1180 (check_bb_profile): Update.
1181 (dump_edge_info): Update.
1182 (dump_bb_info): Update.
1183 (update_bb_profile_for_threading): Update.
1184 (scale_bbs_frequencies_int): Update.
1185 (scale_bbs_frequencies_gcov_type): Update.
1186 (scale_bbs_frequencies_profile_count): New.
1187 * cfg.h (update_bb_profile_for_threading): Update.
1188 (scale_bbs_frequencies_profile_count): Declare.
1189 * cfgbuild.c (compute_outgoing_frequencies): Update.
1190 (find_many_sub_basic_blocks): Update.
1191 * cfgcleanup.c (try_forward_edges): Update.
1192 (try_crossjump_to_edge): Update.
1193 * cfgexpand.c (expand_gimple_tailcall): Update.
1194 (construct_exit_block): Update.
1195 * cfghooks.c (verify_flow_info): Update.
1196 (dump_bb_for_graph): Update.
1197 (split_edge): Update.
1198 (make_forwarder_block): Update.
1199 (duplicate_block): Update.
1200 (account_profile_record): Update.
1201 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
1202 (get_estimated_loop_iterations): Update.
1203 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
1204 (single_likely_exit): Update.
1205 * cfgloopmanip.c (scale_loop_profile): Update.
1207 (set_zero_probability): Update.
1208 (lv_adjust_loop_entry_edge): Update.
1209 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
1210 (purge_dead_edges): Update.
1211 (rtl_account_profile_record): Update.
1212 * cgraph.c (cgraph_node::create): Uninitialize count.
1213 (symbol_table::create_edge): Uninitialize count.
1214 (cgraph_update_edges_for_call_stmt_node): Update.
1215 (cgraph_edge::dump_edge_flags): Update.
1216 (cgraph_node::dump): Update.
1217 (cgraph_edge::maybe_hot_p): Update.
1218 * cgraph.h: Include profile-count.h
1219 (create_clone), create_edge, create_indirect_edge): Update.
1220 (cgraph_node): Turn count to profile_count.
1221 (cgraph_edge0: Likewise.
1222 (make_speculative, clone): Update.
1223 (create_edge): Update.
1224 (init_lowered_empty_function): Update.
1225 * cgraphclones.c (cgraph_edge::clone): Update.
1226 (duplicate_thunk_for_node): Update.
1227 (cgraph_node::create_clone): Update.
1228 * cgraphunit.c (cgraph_node::analyze): Update.
1229 (cgraph_node::expand_thunk): Update.
1230 * final.c (dump_basic_block_info): Update.
1231 * gimple-streamer-in.c (input_bb): Update.
1232 * gimple-streamer-out.c (output_bb): Update.
1233 * graphite.c (print_global_statistics): Update.
1234 (print_graphite_scop_statistics): Update.
1235 * hsa-brig.c: Include basic-block.h.
1236 * hsa-dump.c: Include basic-block.h.
1237 * hsa-gen.c (T sum_slice): Update.
1238 (convert_switch_statements):Update.
1239 * hsa-regalloc.c: Include basic-block.h.
1240 * ipa-chkp.c (chkp_produce_thunks): Update.
1241 * ipa-cp.c (struct caller_statistics): Update.
1242 (init_caller_stats): Update.
1243 (gather_caller_stats): Update.
1244 (ipcp_cloning_candidate_p): Update.
1245 (good_cloning_opportunity_p): Update.
1246 (get_info_about_necessary_edges): Update.
1247 (dump_profile_updates): Update.
1248 (update_profiling_info): Update.
1249 (update_specialized_profile): Update.
1250 (perhaps_add_new_callers): Update.
1251 (decide_about_value): Update.
1252 (ipa_cp_c_finalize): Update.
1253 * ipa-devirt.c (struct odr_type_warn_count): Update.
1254 (struct decl_warn_count): Update.
1255 (struct final_warning_record): Update.
1256 (possible_polymorphic_call_targets): Update.
1257 (ipa_devirt): Update.
1258 * ipa-fnsummary.c (redirect_to_unreachable): Update.
1259 * ipa-icf.c (sem_function::merge): Update.
1260 * ipa-inline-analysis.c (do_estimate_edge_time): Update.
1261 * ipa-inline.c (compute_uninlined_call_time): Update.
1262 (compute_inlined_call_time): Update.
1263 (want_inline_small_function_p): Update.
1264 (want_inline_self_recursive_call_p): Update.
1265 (edge_badness): Update.
1266 (lookup_recursive_calls): Update.
1267 (recursive_inlining): Update.
1268 (inline_small_functions): Update.
1269 (dump_overall_stats): Update.
1270 (dump_inline_stats): Update.
1271 * ipa-profile.c (ipa_profile_generate_summary): Update.
1272 (ipa_propagate_frequency): Update.
1273 (ipa_profile): Update.
1274 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
1275 * ipa-utils.c (ipa_merge_profiles): Update.
1276 * loop-doloop.c (doloop_modify): Update.
1277 * loop-unroll.c (report_unroll): Update.
1278 (unroll_loop_runtime_iterations): Update.
1279 * lto-cgraph.c (lto_output_edge): Update.
1280 (lto_output_node): Update.
1281 (input_node): Update.
1282 (input_edge): Update.
1283 (merge_profile_summaries): Update.
1284 * lto-streamer-in.c (input_cfg): Update.
1285 * lto-streamer-out.c (output_cfg): Update.
1286 * mcf.c (create_fixup_graph): Update.
1287 (adjust_cfg_counts): Update.
1288 (sum_edge_counts): Update.
1289 * modulo-sched.c (sms_schedule): Update.
1290 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
1291 * predict.c (maybe_hot_count_p): Update.
1292 (probably_never_executed): Update.
1293 (dump_prediction): Update.
1294 (combine_predictions_for_bb): Update.
1295 (propagate_freq): Update.
1296 (handle_missing_profiles): Update.
1297 (counts_to_freqs): Update.
1298 (rebuild_frequencies): Update.
1299 (force_edge_cold): Update.
1300 * predict.h: Include profile-count.h
1301 (maybe_hot_count_p, counts_to_freqs): UPdate.
1302 * print-rtl-function.c: Do not include cfg.h
1303 * print-rtl.c: Include basic-block.h
1304 * profile-count.c: New file.
1305 * profile-count.h: New file.
1306 * profile.c (is_edge_inconsistent): Update.
1307 (correct_negative_edge_counts): Update.
1308 (is_inconsistent): Update.
1309 (set_bb_counts): Update.
1310 (read_profile_edge_counts): Update.
1311 (compute_frequency_overlap): Update.
1312 (compute_branch_probabilities): Update; Initialize and deinitialize
1314 (branch_prob): Update.
1315 * profile.h (bb_gcov_counts, edge_gcov_counts): New.
1316 (edge_gcov_count): New.
1317 (bb_gcov_count): New.
1318 * shrink-wrap.c (try_shrink_wrapping): Update.
1319 * tracer.c (better_p): Update.
1320 * trans-mem.c (expand_transaction): Update.
1321 (ipa_tm_insert_irr_call): Update.
1322 (ipa_tm_insert_gettmclone_call): Update.
1323 * tree-call-cdce.c: Update.
1324 * tree-cfg.c (gimple_duplicate_sese_region): Update.
1325 (gimple_duplicate_sese_tail): Update.
1326 (gimple_account_profile_record): Update.
1327 (execute_fixup_cfg): Update.
1328 * tree-inline.c (copy_bb): Update.
1329 (copy_edges_for_bb): Update.
1330 (initialize_cfun): Update.
1331 (freqs_to_counts): Update.
1332 (copy_cfg_body): Update.
1333 (expand_call_inline): Update.
1334 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
1335 * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
1336 (try_unroll_loop_completely): Update.
1337 (try_peel_loop): Update.
1338 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
1339 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
1340 * tree-ssa-loop-split.c (connect_loops): Update.
1341 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
1342 * tree-ssa-reassoc.c (branch_fixup): Update.
1343 * tree-ssa-tail-merge.c (replace_block_by): Update.
1344 * tree-ssa-threadupdate.c (create_block_for_threading): Update.
1345 (compute_path_counts): Update.
1346 (update_profile): Update.
1347 (recompute_probabilities): Update.
1348 (update_joiner_offpath_counts): Update.
1349 (estimated_freqs_path): Update.
1350 (freqs_to_counts_path): Update.
1351 (clear_counts_path): Update.
1352 (ssa_fix_duplicate_block_edges): Update.
1353 (duplicate_thread_path): Update.
1354 * tree-switch-conversion.c (case_bit_test_cmp): Update.
1355 (struct switch_conv_info): Update.
1356 * tree-tailcall.c (decrease_profile): Update.
1357 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
1358 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
1359 * value-prof.c (check_counter): Update.
1360 (gimple_divmod_fixed_value): Update.
1361 (gimple_mod_pow2): Update.
1362 (gimple_mod_subtract): Update.
1363 (gimple_ic_transform): Update.
1364 (gimple_stringop_fixed_value): Update.
1365 * value-prof.h (gimple_ic): Update.
1367 2017-06-02 Carl Love <cel@us.ibm.com>
1369 * config/rs6000/rs6000-c: Add support for built-in functions
1370 vector double vec_doublee (vector signed int);
1371 vector double vec_doublee (vector unsigned int);
1372 vector double vec_doublee (vector float);
1373 vector double vec_doubleh (vector signed int);
1374 vector double vec_doubleh (vector unsigned int);
1375 vector double vec_doubleh (vector float);
1376 vector double vec_doublel (vector signed int);
1377 vector double vec_doublel (vector unsigned int);
1378 vector double vec_doublel (vector float);
1379 vector double vec_doubleo (vector signed int);
1380 vector double vec_doubleo (vector unsigned int);
1381 vector double vec_doubleo (vector float);.
1382 * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
1383 DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
1385 * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
1386 unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
1387 unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
1389 * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
1390 vec_doublel, vec_doubleh.
1391 * doc/extend.texi: Update the built-in documentation file for the
1392 new built-in functions.
1394 2017-06-02 David Malcolm <dmalcolm@redhat.com>
1397 * ipa-inline-analysis.c (free_growth_caches): Set
1398 edge_removal_hook_holder to NULL after removing it.
1400 2017-06-02 Sudakshina Das <sudi.das@arm.com>
1402 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
1403 comparision with zero.
1405 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
1406 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
1407 for early expansion of vec_min and vec_max builtins.
1408 (builtin_function_type): Add min/max unsigned variants to those
1409 identified as having unsigned arguments.
1411 2017-06-02 Olivier Hainque <hainque@adacore.com>
1413 * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
1415 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1417 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
1418 Use VALL_F16 iterator rather than VALL.
1420 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1422 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
1423 Emit CBNZ inside loop when doing a strong exchange and comparing
1424 against zero. Generate the CC flags after the loop.
1426 2017-06-02 David Edelsohn <dje.gcc@gmail.com>
1428 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
1429 (dl_section_ref): New.
1430 (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
1431 On AIX, append an expression to subtract the size of the
1432 section length to dl_section_ref.
1434 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
1436 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
1437 for early expansion of vector absolute builtins.
1439 2017-06-02 Richard Biener <rguenther@suse.de>
1441 * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
1442 what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
1444 2017-06-02 Richard Biener <rguenther@suse.de>
1446 PR tree-optimization/80948
1447 * tree-tailcall.c (find_tail_calls): Track stmts to move in
1450 2017-06-02 Richard Biener <rguenther@suse.de>
1452 * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
1454 * tree-vect-stmts.c (process_use): Do not mark backedge defs
1455 for inductions as relevant.
1457 2017-06-02 Richard Biener <rguenther@suse.de>
1459 * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
1460 (vectorizable_induction): ... this. Remove dead code.
1462 2017-06-02 Eric Botcazou <ebotcazou@adacore.com>
1464 * builtins. (expand_builtin_alloca): Remove second parameter and
1465 infer its value from the first parameter instead.
1466 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
1468 2017-06-02 Jakub Jelinek <jakub@redhat.com>
1470 PR rtl-optimization/80903
1471 * loop-doloop.c (add_test): Unshare sequence.
1473 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1475 * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
1477 2017-06-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1479 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
1481 (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
1482 xlogue_layout::get_instance, logue_layout::xlogue_layout,
1483 sp_valid_at, fp_valid_at, choose_basereg): Formatting.
1484 (xlogue_layout::get_stub_rtx): Make static.
1485 (xlogue_layout::get_stub_name): Avoid const-cast, make static.
1486 (xlogue_layout::compute_stub_managed_regs): Rename to...
1487 (xlogue_layout::count_stub_managed_regs): ...this.
1488 (xlogue_layout::is_stub_managed_reg): New function.
1489 (xlogue_layout::m_stub_names): Rename to...
1490 (xlogue_layout::s_stub_names): ...this, make static.
1491 (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
1492 xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
1493 xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
1494 xlogue_layout::s_stub_names): Instantiate statics.
1495 (stub_managed_regs): Remove.
1496 (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
1497 (disable_call_ms2sysv_xlogues): Rename to...
1498 (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
1499 (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
1501 (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
1502 change after reload_completed.
1503 (ix86_can_use_return_insn_p): Use the ix86_frame data structure
1505 (ix86_expand_prologue): Likewise.
1506 (ix86_expand_epilogue): Likewise.
1507 (ix86_expand_split_stack_prologue): Likewise.
1508 (ix86_compute_frame_layout): Remove frame parameter ...
1509 (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
1510 (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
1512 (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
1513 (ix86_frame): Move from here ...
1514 * config/i386/i386.h (ix86_frame): ... to here.
1515 (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
1516 complete ix86_frame data structure instead. Remove some_ld_name.
1518 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
1520 * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
1521 symbols that hold a DECL_VALUE_EXPR.
1523 2017-06-01 Martin Jambor <mjambor@suse.cz>
1525 PR tree-optimization/80898
1526 * tree-sra.c (process_subtree_disqualification): Removed.
1527 (disqualify_candidate): Do not acll
1528 process_subtree_disqualification.
1529 (subtree_mark_written_and_enqueue): New function.
1530 (propagate_all_subaccesses): Set grp_write of LHS subtree if the
1531 RHS has been disqualified and re-queue LHS if necessary. Apart
1532 from that, ignore disqualified RHS.
1534 2017-06-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1536 * config/s390/s390.c (s390_emit_epilogue): Disable early return
1537 address fetch for z10 or later.
1539 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1541 * config/arc/arc.md (tst_movb): Add guard when splitting.
1543 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1545 * config/arc/arc.c (arc_can_eliminate): Test against
1546 arc_frame_pointer_needed.
1548 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1550 * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
1551 to prevent store reordering.
1552 * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
1553 (type): Add block type.
1554 (stack_tie): Define special instruction to be used in
1557 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1559 * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
1560 constraint. It is not valid for the pattern.
1561 (noncommutative_binary_comparison): Likewise.
1563 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1565 * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
1568 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1570 * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
1571 be used by the reg-alloc.
1573 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1575 * config/arc/arc.md (mulsi3): Avoid use of hard registers before
1576 reg-alloc when having mul64 or mul32x16 instructions.
1577 (mulsidi3): Likewise.
1578 (umulsidi3): Likewise.
1579 (mulsi32x16): New pattern.
1580 (mulsi64): Likewise.
1581 (mulsidi64): Likewise.
1582 (umulsidi64): Likewise.
1583 (MUL32x16_REG): Define.
1584 (mul64_600): Use MUL32x16_REG.
1585 (mac64_600): Likewise.
1586 (umul64_600): Likewise.
1587 (umac64_600): Likewise.
1589 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
1591 * config/arc/arc.md (mulsi3_700): Make it commutative.
1593 2017-06-01 Jose E. Marchesi <jose.marchesi@oracle.com>
1595 * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
1597 (*sign_extendsidi2_insn): Likewise for movstosw.
1599 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
1601 * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
1602 the type of the input discriminant value. Convert the
1603 discriminant value of signedness vary.
1605 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
1607 * doc/invoke.texi (-Wcatch-value): Document new shortcut.
1608 Add to -Wall section.
1610 2017-06-01 Richard Biener <rguenther@suse.de>
1613 * fold-const.c (fold_plusminus_mult_expr): If the factored
1614 factor may be zero use a wrapping type for the inner operation.
1615 * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
1616 and handle moved defs.
1617 (process_assignment): Properly guard the unary op case. Return a
1618 tri-state indicating that moving the stmt before the call may allow
1619 to continue. Pass through to_move.
1620 (find_tail_calls): Handle moving unrelated defs before
1623 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
1626 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
1627 splitter result in the canonical way.
1629 2017-05-31 Uros Bizjak <ubizjak@gmail.com>
1631 * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
1632 also for 32bit target. Update insn attributes.
1633 (zero-extendsidi2 splitter): Allow all registers for operand 1.
1635 2017-05-31 Sebastian Peryt <sebastian.peryt@intel.com>
1637 * config/i386/avx512fintrin.h (_mm_mask_max_sd)
1638 (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
1639 (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
1640 (_mm_maskz_min_ss): New intrinsics.
1642 2017-05-31 Martin Liska <mliska@suse.cz>
1644 * tree-vect-loop.c (vect_create_epilog_for_reduction):
1645 Change comment style to one we normally use.
1646 (vectorizable_reduction): Likewise.
1647 (vectorizable_induction): Likewise.
1648 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
1649 (vectorizable_call): Likewise.
1650 (vectorizable_simd_clone_call): Likewise.
1651 (vectorizable_conversion): Likewise.
1652 (vectorizable_assignment): Likewise.
1653 (vectorizable_shift): Likewise.
1654 (vectorizable_operation): Likewise.
1655 (vectorizable_store): Likewise.
1656 (vectorizable_load): Likewise.
1657 * tree-vectorizer.h: Likewise.
1659 2017-05-31 Alexander Monakov <amonakov@ispras.ru>
1661 * passes.c (emergency_dump_function): New.
1662 * tree-pass.h (emergency_dump_function): Declare.
1663 * plugin.c (plugins_internal_error_function): Remove.
1664 * plugin.h (plugins_internal_error_function): Remove declaration.
1665 * toplev.c (internal_error_function): New static function. Use it...
1666 (general_init): ...here.
1668 2017-05-31 Graham Markall <graham.markall@embecosm.com>
1670 * config/arc/arc.c (arc_print_operand): Handle constant operands.
1671 (arc_rtx_costs): Add costs for new patterns.
1672 * config/arc/arc.md: Additional *add_n and *sub_n patterns.
1673 * config/arc/predicates.md: Add _1_2_3_operand predicate.
1675 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
1677 * tree-ssa-strlen.c (get_next_strinfo): New function.
1678 (get_stridx_plus_constant): Use it.
1679 (zero_length_string): Likewise.
1680 (adjust_related_strinfos): Likewise.
1681 (adjust_last_stmt): Likewise.
1683 2017-05-31 Richard Biener <rguenther@suse.de>
1686 * config/i386/i386.c (ix86_expand_builtin): Remove assert
1687 for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
1689 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
1691 * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
1692 loop_vinfo argument and use of dependence distance vectors.
1693 Check instead whether the two references differ only in their
1694 initial value and assume that they have the same alignment if the
1695 difference is a multiple of the vector alignment.
1696 (vect_analyze_data_refs_alignment): Update call accordingly.
1698 2017-05-31 Martin Liska <mliska@suse.cz>
1701 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
1703 2017-05-31 Bin Cheng <bin.cheng@arm.com>
1705 * tree-vect-loop-manip.c (create_intersect_range_checks_index)
1706 (create_intersect_range_checks): Move from ...
1707 * tree-data-ref.c (create_intersect_range_checks_index)
1708 (create_intersect_range_checks): ... to here.
1709 (create_runtime_alias_checks): New function factored from ...
1710 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
1711 here. Call above function.
1712 * tree-data-ref.h (create_runtime_alias_checks): New function.
1714 2017-05-31 Bin Cheng <bin.cheng@arm.com>
1716 * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
1717 segment length for dr_b and compute it in wide_int.
1719 2017-05-31 Richard Biener <rguenther@suse.de>
1721 PR tree-optimization/80906
1722 * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
1723 and pass through iv_map.
1724 (copy_bb_and_scalar_dependences): Adjust.
1725 (translate_pending_phi_nodes): Likewise.
1726 (copy_loop_close_phi_args): Handle code-generating IVs instead
1729 2017-05-30 David Malcolm <dmalcolm@redhat.com>
1731 * diagnostic-color.c (color_dict): Add "type-diff".
1732 (parse_gcc_colors): Update comment.
1733 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1734 -fdiagnostics-show-template-tree and -fno-elide-type.
1735 (GCC_COLORS): Add type-diff to example.
1737 (-fdiagnostics-show-template-tree): New.
1738 (-fno-elide-type): New.
1739 * pretty-print.c (pp_format): Pass quote and formatters[argno] to
1740 the pp_format_decoder callback. Call any m_format_postprocessor's
1742 (pretty_printer::pretty_printer): Initialize
1743 m_format_postprocessor.
1744 (pretty_printer::~pretty_printer): Delete any
1745 m_format_postprocessor.
1746 * pretty-print.h (printer_fn): Add bool and const char ** parameters.
1747 (class format_postprocessor): New class.
1748 (struct pretty_printer::format_decoder): Document the new parameters.
1749 (struct pretty_printer::m_format_postprocessor): New field.
1750 * tree-diagnostic.c (default_tree_printer): Update for new
1751 bool and const char ** params.
1752 * tree-diagnostic.h (default_tree_printer): Likewise.
1754 2017-05-30 Segher Boessenkool <segher@kernel.crashing.org>
1756 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
1757 (lwa_operand): Delete rs6000_gen_cell_microcode test.
1758 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
1759 rs6000_gen_cell_microcode code.
1760 (rs6000_final_prescan_insn): Delete.
1761 (rs6000_opt_vars): Delete the "gen-cell-microcode" and
1762 "warn-cell-microcode" entries.
1763 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
1764 * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
1765 throughout. Change cc_reg_not_micro_cr0_operand to
1766 cc_reg_not_cr0_operand throughout.
1767 (*extendhi<mode>2_noload): Delete.
1768 * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
1769 (mwarn-cell-microcode): Delete.
1770 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
1771 -mgen-cell-microcode and -mwarn-cell-microcode.
1773 2017-05-30 Uros Bizjak <ubizjak@gmail.com>
1776 * config/i386/constraints.md (Yd): New constraint.
1778 * config/i386/i386.md (*movti_internal): Add (?r, Ye)
1779 and (?Yd, r) alternatives. Update insn attributes.
1780 * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
1781 and (?*Yd, r) alternatives. Update insn attributes.
1782 (double-mode inter-unit splitters): Add new GR<->XMM splitters.
1784 2017-05-30 Pierre-Marie de Rodat <derodat@adacore.com>
1786 * gimplify.c (gimplify_modify_expr): Don't create a
1787 DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
1790 2017-05-30 Wilco Dijkstra <wdijkstr@arm.com>
1792 * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
1794 2017-05-30 Richard Biener <rguenther@suse.de>
1796 * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
1797 and reduc_def fields.
1798 (STMT_VINFO_REDUC_TYPE): New define.
1799 (STMT_VINFO_REDUC_DEF): Likewise.
1800 (vect_force_simple_reduction): Adjust prototype.
1801 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
1802 (vect_is_simple_reduction): Remove check_reduction argument.
1803 (vect_force_simple_reduction): Adjust and set
1804 STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
1805 (vectorizable_reduction): Do not re-do reduction analysis
1806 but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
1807 * tree-parloops.c (gather_scalar_reductions): Adjust.
1809 2017-05-30 Richard Biener <rguenther@suse.de>
1812 * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
1815 2017-05-24 Robin Dapp <rdapp@linux.vnet.ibm.com>
1817 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
1818 Introduce unknown_misalignment parameter and remove vf.
1819 (vect_peeling_hash_get_lowest_cost):
1820 Pass unknown_misalignment parameter.
1821 (vect_enhance_data_refs_alignment):
1822 Fix unsupportable data ref treatment.
1824 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
1826 * tree-vect-data-refs.c (vect_get_data_access_cost):
1827 Workaround for SLP handling.
1828 (vect_enhance_data_refs_alignment):
1829 Compute costs for doing no peeling at all, compare to the best
1830 peeling costs so far and avoid peeling if cheaper.
1832 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
1834 * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
1835 Return peeling info and set costs to zero for unlimited cost
1837 (vect_enhance_data_refs_alignment): Also inspect all datarefs
1838 with unknown misalignment. Compute and costs for unknown
1839 misalignment, compare them to the costs for known misalignment
1840 and choose the cheapest for peeling.
1842 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
1844 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
1845 (vect_get_peeling_costs_all_drs): Create function.
1846 (vect_peeling_hash_get_lowest_cost):
1847 Use vect_get_peeling_costs_all_drs.
1848 (vect_peeling_supportable): Create function.
1849 (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
1851 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
1853 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
1854 DR_HAS_NEGATIVE_STEP.
1855 (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
1856 (vect_enhance_data_refs_alignment): Use.
1857 (vect_duplicate_ssa_name_ptr_info): Use.
1858 * tree-vectorizer.h (dr_misalignment): Use.
1859 (known_alignment_for_access_p): Use.
1861 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
1864 * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
1866 (has_section_name): New function.
1868 2017-05-30 Martin Liska <mliska@suse.cz>
1871 * auto-profile.c (get_function_decl_from_block): Fix
1874 2017-05-30 Richard Biener <rguenther@suse.de>
1877 * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
1879 2017-05-30 Martin Liska <mliska@suse.cz>
1881 * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
1882 * dumpfile.h (struct dump_file_info): Remove ctors.
1884 2017-05-30 Martin Liska <mliska@suse.cz>
1886 * predict.def: Fix GNU coding style.
1888 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
1890 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
1891 Mark 'to' argument with ATTRIBUTE_UNUSED.
1893 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
1895 * config/xtensa/xtensa.c (xtensa_emit_call): Use
1896 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
1897 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
1900 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
1902 * doc/install.texi (Options specification): Restore entry of
1903 --enable-sjlj-exceptions.
1905 2017-05-27 Michael Eager <eager@eagercon.com>
1908 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
1910 See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
1912 * config/microblaze/microblaze.h
1913 (FIXED_REGISTERS): Update in macro.
1914 (CALL_USED_REGISTERS): Update in macro.
1916 2017-05-27 François-Xavier Coudett <fxcoudert@gcc.gnu.org>
1918 * doc/install.texi: Add links to macOS binary distributions.
1920 2017-05-27 Jakub Jelinek <jakub@redhat.com>
1924 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
1926 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
1928 2017-05-26 Martin Liska <mliska@suse.cz>
1930 * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
1932 2017-05-26 Martin Liska <mliska@suse.cz>
1934 * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
1935 always leading ';; '.
1936 (dump_bb_info): Likewise.
1937 (brief_dump_cfg): Likewise.
1938 * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
1939 * dumpfile.c: Remove usage of TDF_VERBOSE.
1940 * dumpfile.h (enum dump_kind): Likewise.
1941 (dump_gimple_bb_header): Do not use TDF_COMMENT.
1942 * print-tree.c (debug_verbose): Remove.
1943 * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
1944 (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
1945 * tree-diagnostic.c (default_tree_printer): Replace
1946 TDF_DIAGNOSTIC with TDF_SLIM.
1948 2017-05-26 Bin Cheng <bin.cheng@arm.com>
1950 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
1951 in parameter loop, rather than loop_vinfo.
1952 (create_intersect_range_checks): Ditto.
1953 (vect_create_cond_for_alias_checks): Update call to above functions.
1955 2017-05-26 Bin Cheng <bin.cheng@arm.com>
1957 PR tree-optimization/80815
1958 * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
1959 for merging runtime alias checks. Handle negative DR_STEPs.
1961 2017-05-26 Bin Cheng <bin.cheng@arm.com>
1963 * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
1965 * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
1966 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
1967 out code pruning runtime alias checks.
1968 * tree-data-ref.c (prune_runtime_alias_test_list): New function
1969 factored out from above.
1970 * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
1972 * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
1974 (prune_runtime_alias_test_list): New decalaration.
1976 2017-05-26 Bin Cheng <bin.cheng@arm.com>
1978 * tree-vect-data-refs.c (compare_tree): Rename and move ...
1979 * tree-data-ref.c (data_ref_compare_tree): ... to here.
1980 * tree-data-ref.h (data_ref_compare_tree): New decalaration.
1981 * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
1982 (operator==, comp_dr_with_seg_len_pair): Ditto.
1983 (vect_prune_runtime_alias_test_list): Ditto.
1985 2017-05-26 Martin Liska <mliska@suse.cz>
1988 * params.def: Bound partial-inlining-entry-probability param.
1990 2017-05-26 Marek Polacek <polacek@redhat.com>
1993 * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
1996 2017-05-26 Richard Biener <rguenther@suse.de>
1998 PR tree-optimization/80842
1999 * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
2002 2017-05-26 Richard Biener <rguenther@suse.de>
2004 PR tree-optimization/80844
2005 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
2007 2017-05-25 Sebastian Peryt <sebastian.peryt@intel.com>
2009 * doc/md.texi (Machine Constraints): Update x86 family
2010 machine constraints section to match 'config/i386/constraints.md'.
2012 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
2014 * doc/invoke.texi (-Wcatch-value=): Document new warning option.
2016 2017-05-25 Nathan Sidwell <nathan@acm.org>
2018 * doc/invoke.texi (--enable-languages): Update documentation.
2020 2017-05-25 Martin Liska <mliska@suse.cz>
2022 * dumpfile.c: Add TDF_FOLDING.
2023 * dumpfile.h (enum dump_kind): Likewise.
2024 * genmatch.c (dt_simplify::gen_1): Use it.
2026 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
2028 * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
2030 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
2032 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
2033 * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
2035 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
2037 * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
2038 * match.pd (X == C): Rewrite it here.
2039 (with_possible_nonzero_bits, with_possible_nonzero_bits2,
2040 with_certain_nonzero_bits2): New predicates.
2041 * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
2043 2017-05-24 Nathan Sidwell <nathan@acm.org>
2045 * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
2048 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
2051 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
2053 * config/powerpcspe: New port. Files are copied from the rs6000
2054 port, with "rs6000" in filenames replaced by "powerpcspe".
2056 2017-05-24 Wilco Dijkstra <wdijkstr@arm.com>
2058 PR rtl-optimization/80754
2059 * lra-remat.c (do_remat): Add overlap checks for dst_regno.
2061 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
2063 * config/sparc/sparc.md (length): Return the correct value for -mflat
2064 sibcalls to match output_sibcall.
2066 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
2070 * config/rs6000/rs6000.c (struct machine_function): Add new field
2072 (rs6000_get_separate_components): Init that field, use it.
2073 (rs6000_components_for_bb): Use the field.
2075 2017-05-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
2077 * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
2079 2017-05-24 Peter Bergner <bergner@vnet.ibm.com>
2082 * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
2084 2017-05-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2087 * config/s390/s390.c (s390_check_qrst_address): Check incoming
2088 address against address_operand predicate.
2089 * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
2091 2017-05-24 Eric Botcazou <ebotcazou@adacore.com>
2093 * var-tracking.c (track_expr_p): Do not return 0 for tracked record
2094 parameters passed indirectly.
2096 2017-05-23 Uros Bizjak <ubizjak@gmail.com>
2098 * config/i386/i386.md (*movdi_internal): Remove SSE4
2099 alternative 18 (?r, *v). Update insn attributes.
2100 (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
2101 Update insn attributes.
2102 (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
2103 Update insn attributes.
2104 * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
2105 alternative 1 (r, v). Remove isa attribute.
2106 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
2107 Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
2108 and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
2110 2017-05-23 Tom de Vries <tom@codesourcery.com>
2112 * doc/sourcebuild.texi (Directives, Verify compiler message): Document
2115 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
2117 * cgraphunit.c (symbol_table::process_new_functions): Update.
2118 * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
2119 (inline_generate_summary): Rename to ...
2120 (ipa_fn_summary_generate): ... this one.
2121 (inline_read_summary): Rename to ...
2122 (ipa_fn_summary_read): ... this one.
2123 (inline_write_summary): Rename to ...
2124 (ipa_fn_summary_write): ... this one.
2125 (inline_free_summary): Rename to ...
2126 (ipa_free_fn_summary): ... this one.
2127 (pass_data_local_fn_summary, pass_local_fn_summary,
2128 make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
2129 pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
2130 pass_data_ipa_fn_summary, pass_ipa_fn_summary,
2131 make_pass_ipa_fn_summary): New.
2132 * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
2133 inline_write_summary, inline_free_summary): Remove.
2134 (ipa_free_fn_summary) : New.
2135 * ipa-inline.c (ipa_inline): Update.
2136 (pass_ipa_inline): Do not generate summaries.
2137 * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
2139 * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
2140 and add pass_ipa_fn_summary.
2141 * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
2143 (make_pass_inline_parameters): Remove.
2145 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
2147 * omp-low.c (struct omp_context): Remove "default_kind" member.
2150 * omp-offload.c (execute_oacc_device_lower): Remove the
2151 parallelism dimensions function attributes for unparallelized
2152 OpenACC kernels constructs.
2154 2017-05-23 Martin Liska <mliska@suse.cz>
2156 * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
2158 (cgraph_edge::make_speculative): Likewise.
2159 (cgraph_edge::resolve_speculation): Likewise.
2160 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2161 (cgraph_node::dump): Likewise.
2162 * cgraph.h: Likewise.
2163 * cgraphunit.c (analyze_functions): Likewise.
2164 (symbol_table::compile): Likewise.
2165 * ipa-cp.c (print_all_lattices): Likewise.
2166 (determine_versionability): Likewise.
2167 (initialize_node_lattices): Likewise.
2168 (ipcp_verify_propagated_values): Likewise.
2169 (estimate_local_effects): Likewise.
2170 (update_profiling_info): Likewise.
2171 (create_specialized_node): Likewise.
2172 (perhaps_add_new_callers): Likewise.
2173 (decide_about_value): Likewise.
2174 (decide_whether_version_node): Likewise.
2175 (identify_dead_nodes): Likewise.
2176 (ipcp_store_bits_results): Likewise.
2177 * ipa-devirt.c (dump_targets): Likewise.
2178 (ipa_devirt): Likewise.
2179 * ipa-icf.c (sem_item::dump): Likewise.
2180 (sem_function::equals): Likewise.
2181 (sem_variable::equals): Likewise.
2182 (sem_item_optimizer::read_section): Likewise.
2183 (sem_item_optimizer::execute): Likewise.
2184 (congruence_class::dump): Likewise.
2185 * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
2186 (dump_inline_summary): Likewise.
2187 (estimate_node_size_and_time): Likewise.
2188 (inline_analyze_function): Likewise.
2189 * ipa-inline-transform.c (inline_call): Likewise.
2190 * ipa-inline.c (report_inline_failed_reason): Likewise.
2191 (want_early_inline_function_p): Likewise.
2192 (edge_badness): Likewise.
2193 (update_edge_key): Likewise.
2194 (inline_small_functions): Likewise.
2195 * ipa-profile.c (ipa_profile): Likewise.
2196 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
2197 (ipa_make_edge_direct_to_target): Likewise.
2198 (remove_described_reference): Likewise.
2199 (ipa_impossible_devirt_target): Likewise.
2200 (propagate_controlled_uses): Likewise.
2201 (ipa_print_node_params): Likewise.
2202 (ipcp_transform_function): Likewise.
2203 * ipa-pure-const.c (pure_const_read_summary): Likewise.
2204 (propagate_pure_const): Likewise.
2205 * ipa-reference.c (generate_summary): Likewise.
2206 (read_write_all_from_decl): Likewise.
2207 (propagate): Likewise.
2208 (ipa_reference_read_optimization_summary): Likewise.
2209 * ipa-utils.c (ipa_merge_profiles): Likewise.
2210 * ipa.c (walk_polymorphic_call_targets): Likewise.
2211 (symbol_table::remove_unreachable_nodes): Likewise.
2212 (ipa_single_use): Likewise.
2213 * passes.c (execute_todo): Likewise.
2214 * predict.c (drop_profile): Likewise.
2215 * symtab.c (symtab_node::get_dump_name): New function.
2216 (symtab_node::dump_name): Likewise.
2217 (symtab_node::dump_asm_name): Likewise.
2218 (symtab_node::dump_references): Likewise.
2219 (symtab_node::dump_referring): Likewise.
2220 (symtab_node::dump_base): Likewise.
2221 (symtab_node::debug_symtab): Likewise.
2222 * tree-sra.c (convert_callers_for_node): Likewise.
2223 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
2224 * value-prof.c (init_node_map): Likewise.
2226 2017-05-23 Martin Liska <mliska@suse.cz>
2228 * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
2229 and symtab_node::debug_symtab to symbol_table::debug.
2230 * cgraphunit.c (analyze_functions): Use the renamed function.
2231 (symbol_table::compile): Likewise.
2232 * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
2233 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
2234 * passes.c (execute_todo): Likewise.
2235 * symtab.c (symbol_table::dump): New function.
2236 * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
2238 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
2240 * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
2241 that nonconst implies exec.
2243 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
2245 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
2246 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
2247 (inline_edge_summary_vec): Turn into ...
2248 (ipa_call_summaries): ... this one.
2249 (redirect_to_unreachable, edge_set_predicate,
2250 evaluate_properties_for_edge, inline_summary_alloc,
2251 reset_ipa_call_summary, reset_inline_summary,
2252 inline_summary_t::duplicate): Update.
2253 (inline_edge_duplication_hook): Turn to ...
2254 (ipa_call_summary_t::duplicate): ... this one.
2255 (inline_edge_removal_hook): Turn to ...
2256 (ipa_call_summary_t::remove): ... this one.
2257 (dump_inline_edge_summary): Turn to ...
2258 (dump_ipa_call_summary): ... this one.
2259 (estimate_function_body_sizes): Update.
2260 (inline_update_callee_summaries): Update.
2261 (remap_edge_change_prob): Update.
2262 (remap_edge_summaries): Update.
2263 (inline_merge_summary): Update.
2264 (do_estimate_edge_time): Update.
2265 (inline_generate_summary): Update.
2266 (inline_read_section): Update.
2267 (inline_read_summary): Update.
2268 (inline_free_summary): Update.
2269 * ipa-inline.c (can_inline_edge_p): Update.
2270 (compute_inlined_call_time): Update.
2271 (want_inline_small_function_p): Update.
2272 (edge_badness): Update.
2273 (early_inliner): Update.
2274 * ipa-inline.h (inline_edge_summary): Turn to ...
2275 (ipa_call_summary): ... this one.
2276 (ipa_call_summary_t): New class.
2277 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
2278 (ipa_call_summaries): New.
2279 (inline_edge_summary): Remove.
2280 (estimate_edge_growth): Update.
2281 * ipa-profile.c (ipa_propagate_frequency_1): Update.
2282 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
2283 * ipa-split.c (execute_split_functions): Update.
2284 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
2286 2017-05-23 Tom de Vries <tom@codesourcery.com>
2288 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
2289 attributes): Document rdrand effective target.
2291 2017-05-23 Tom de Vries <tom@codesourcery.com>
2293 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
2294 attributes): Sort alphabetically.
2296 2017-05-23 Georg-Johann Lay <avr@gjlay.de>
2298 * config/avr/genmultilib.awk: Use gsub instead of gensub.
2300 2017-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2303 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
2304 V2DF/V2DI splat into two separate patterns, one that handles
2305 registers, and the other that only handles memory. Drop support
2306 for splatting from a GPR on ISA 2.07 and then splitting the
2307 splat into direct move and splat.
2308 (vsx_splat_<mode>_reg): Likewise.
2309 (vsx_splat_<mode>_mem): Likewise.
2311 2017-05-22 Segher Boessenkool <segher@kernel.crashing.org>
2313 * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
2315 2017-05-22 Jakub Jelinek <jakub@redhat.com>
2318 * omp-low.c (finish_taskreg_remap): New function.
2319 (finish_taskreg_scan): If unit size of ctx->record_type
2320 is non-constant, unshare the size expression and replace
2321 decls in it with possible outer var refs.
2324 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
2325 GOVD_SHARED rather than GOVD_PRIVATE with it.
2326 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
2327 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
2330 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
2331 as last argument to build_outer_var_ref for pointer bases of array
2334 2017-05-19 Martin Sebor <msebor@redhat.com>
2336 * print-tree.c (print_node): Print DECL_READ_P flag.
2338 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
2340 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
2341 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
2342 * cgraph.c: Likewise.
2343 * cgraphunit.c: Likewise.
2344 * gengtype.c: Likewise.
2345 * ipa-cp.c: Likewise.
2346 * ipa-devirt.c: Likewise.
2347 * ipa-icf.c: Likewise.
2348 * ipa-predicate.c: Likewise.
2349 * ipa-profile.c: Likewise.
2350 * ipa-prop.c: Likewise.
2351 * ipa-split.c: Likewise.
2353 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
2354 edge_predicate_pool, dump_inline_hints,
2355 inline_summary::account_size_time, redirect_to_unreachable,
2356 edge_set_predicate, set_hint_predicate,
2357 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
2358 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
2359 inline_summary_t::remove, remap_hint_predicate_after_duplication,
2360 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
2361 ipa_call_summary_t::remove, initialize_growth_caches,
2362 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
2363 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
2364 mark_modified, unmodified_parm_1, unmodified_parm,
2365 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
2366 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
2367 compute_bb_predicates, will_be_nonconstant_expr_predicate,
2368 will_be_nonconstant_predicate, record_modified_bb_info,
2369 get_minimal_bb, record_modified, param_change_prob,
2370 phi_result_unknown_predicate, predicate_for_phi_result,
2371 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
2372 estimate_function_body_sizes, compute_inline_parameters,
2373 compute_inline_parameters_for_curren, pass_data_inline_parameters,
2374 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
2375 inline_update_callee_summaries, remap_edge_change_prob,
2376 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
2377 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
2378 inline_analyze_function, inline_summary_t::insert,
2379 inline_generate_summary, read_ipa_call_summary, inline_read_section,
2380 inline_read_summary, write_ipa_call_summary, inline_write_summary,
2381 inline_free_summary): Move to ipa-fnsummary.h
2382 (predicate_t): Remove.
2383 * ipa-fnsummary.c: New file.
2384 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
2385 (enum inline_hints_vals, inline_hints, agg_position_info,
2386 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
2387 inline_summaries, ipa_call_summary, ipa_call_summary_t,
2388 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
2389 dump_inline_summary, dump_inline_hints, inline_generate_summary,
2390 inline_read_summary, inline_write_summary, inline_free_summary,
2391 inline_analyze_function, initialize_inline_failed,
2392 inline_merge_summary, inline_update_overall_summary,
2393 compute_inline_parameters): Move to ipa-fnsummary.h
2394 * ipa-fnsummary.h: New file.
2395 * ipa-inline-transform.h: Include ipa-inline.h.
2396 * ipa-inline.c: LIkewise.
2398 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
2400 * ipa-inline.c (edge_badness): Use inlined_time instead of
2401 inline_summaries->get.
2403 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
2405 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
2407 2017-05-22 Nathan Sidwell <nathan@acm.org>
2409 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
2410 (fdump-lang): Document 'raw' option.
2411 * dumpfile.h (TDI_tu): Delete.
2412 * dumpfile.c (dump_files): Remove translation-unit.
2413 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
2415 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
2417 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
2418 command option from $(AWK) call.
2419 * config/avr/genmultilib.awk: Simplify and rewrite so that it
2420 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
2421 [FORMAT]: Remove handling of variable.
2422 * config/avr/t-multilib: Regenerate.
2424 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
2426 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
2428 (dump_inline_summary): Do not print self_time.
2429 (estimate_function_body_sizes): Do not set self_time.
2430 (compute_inline_parameters): Likewise.
2431 (inline_read_section, inline_write_summary): Do not stream self_time.
2432 * ipa-inline.h (inline_summary): Drop self_time.
2434 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
2436 * ipa-inline-analysis.c (account_size_time): Rename to ...
2437 (inline_summary::account_size_time): ... this one.
2438 (reset_ipa_call_summary): Turn to ...
2439 (ipa_call_summary::reset): ... this one.
2440 (reset_inline_summary): Turn to ...
2441 (inline_summary::reset): ... this one.
2442 (inline_summary_t::remove): Update.
2443 (inline_summary_t::duplicate): Update.
2444 (ipa_call_summary_t::remove): Update.
2445 (dump_inline_summary): Update.
2446 (estimate_function_body_sizes): Update.
2447 (compute_inline_parameters): Update.
2448 (estimate_node_size_and_time): Update.
2449 (inline_merge_summary): Update.
2450 (inline_update_overall_summary): Update.
2451 (inline_read_section): Update.
2452 (inline_write_summary): Update.
2453 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
2454 add account_size_time and reset member functions.
2455 (ipa_call_summary): Add reset function.
2456 * ipa-predicate.h (predicate::operator &): Constify.
2458 2017-05-22 Richard Biener <rguenther@suse.de>
2460 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
2462 2017-05-19 Jason Merrill <jason@redhat.com>
2464 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
2466 2017-05-19 Marek Polacek <polacek@redhat.com>
2469 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
2470 TYPE_OVERFLOW_WRAPS checks.
2472 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
2474 * tree-core.h (enum omp_clause_default_kind): Add
2475 "OMP_CLAUSE_DEFAULT_PRESENT".
2476 * tree-pretty-print.c (dump_omp_clause): Handle it.
2477 * gimplify.c (enum gimplify_omp_var_data): Add
2478 "GOVD_MAP_FORCE_PRESENT".
2479 (gimplify_adjust_omp_clauses_1): Map it to
2480 "GOMP_MAP_FORCE_PRESENT".
2481 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
2483 * gimplify.c (oacc_default_clause): Clarify.
2485 2017-05-19 Nathan Sidwell <nathan@acm.org>
2487 LANG_HOOK_REGISTER_DUMPS
2488 * toplev.c (general_init): Call register dump lang hook.
2489 * doc/invoke.texi: Document -fdump-lang option family.
2490 * dumpfile.c (dump_files): Remove class dump here.
2491 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
2492 * dumpfile.h (tree_dump_index): Remove TDI_class.
2493 * langhooks-def.h (lhd_register_dumps): Declare.
2494 (LANG_HOOKS_REGISTER_DUMPS): Define.
2495 (LANG_HOOKS_INITIALIZER): Add it.
2496 * langhooks.c (lhd_register_dumps): Define.
2497 * langhooks.h (struct lang_hooks): Add register_dumps.
2499 2017-05-19 Nathan Sidwell <nathan@acm.org>
2501 * context.h (context::set_passes): New.
2502 * context.c (context::context): Do not create pass manager.
2503 * toplev.c (general_init): Create pass manager here.
2505 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2507 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
2508 use this splitter if two add or or instructions would also work for
2509 the constant we want to generate.
2511 2017-05-19 Richard Biener <rguenther@suse.de>
2514 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
2515 predicate evaluation.
2517 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
2519 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
2521 * ipa-inline.c (want_inline_small_function_p): Do not cast to
2524 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
2526 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
2527 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
2528 (inline_edge_summary_vec): Turn into ...
2529 (ipa_call_summaries): ... this one.
2530 (redirect_to_unreachable, edge_set_predicate,
2531 evaluate_properties_for_edge, inline_summary_alloc,
2532 reset_ipa_call_summary, reset_inline_summary,
2533 inline_summary_t::duplicate): Update.
2534 (inline_edge_duplication_hook): Turn to ...
2535 (ipa_call_summary_t::duplicate): ... this one.
2536 (inline_edge_removal_hook): Turn to ...
2537 (ipa_call_summary_t::remove): ... this one.
2538 (dump_inline_edge_summary): Turn to ...
2539 (dump_ipa_call_summary): ... this one.
2540 (estimate_function_body_sizes): Update.
2541 (inline_update_callee_summaries): Update.
2542 (remap_edge_change_prob): Update.
2543 (remap_edge_summaries): Update.
2544 (inline_merge_summary): Update.
2545 (do_estimate_edge_time): Update.
2546 (inline_generate_summary): Update.
2547 (inline_read_section): Update.
2548 (inline_read_summary): Update.
2549 (inline_free_summary): Update.
2550 * ipa-inline.c (can_inline_edge_p): Update.
2551 (compute_inlined_call_time): Update.
2552 (want_inline_small_function_p): Update.
2553 (edge_badness): Update.
2554 (early_inliner): Update.
2555 * ipa-inline.h (inline_edge_summary): Turn to ...
2556 (ipa_call_summary): ... this one.
2557 (ipa_call_summary_t): New class.
2558 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
2559 (ipa_call_summaries): New.
2560 (inline_edge_summary): Remove.
2561 (estimate_edge_growth): Update.
2562 * ipa-profile.c (ipa_propagate_frequency_1): Update.
2563 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
2564 * ipa-split.c (execute_split_functions): Update.
2565 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
2567 2017-05-19 Richard Biener <rguenther@suse.de>
2570 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
2572 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
2574 * config/rs6000/rs6000.c (struct machine_function): Add field
2575 fpr_is_wrapped_separately.
2576 (rs6000_get_separate_components): Use 64 components. Handle the
2578 (rs6000_components_for_bb): Handle the FPR components.
2579 (rs6000_emit_prologue_components): Handle the FPR components.
2580 (rs6000_emit_epilogue_components): Handle the FPR components.
2581 (rs6000_set_handled_components): Handle the FPR components.
2582 (rs6000_emit_prologue): Don't output prologue code for those FPRs
2583 that are already separately shrink-wrapped.
2584 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
2585 that are already separately shrink-wrapped.
2587 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2590 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
2593 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
2594 (define_peephole2 for Altivec d-form load): Add peepholes to catch
2595 cases where the register allocator uses a move and an offsettable
2596 memory operation to/from a FPR register on ISA 2.06/2.07.
2597 (define_peephole2 for Altivec d-form store): Likewise.
2599 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
2602 * config/i386/mmx.md (*mov<mode>_internal): Enable
2603 alternatives 11, 12, 13 and 14 also for 32bit targets.
2604 Remove alternatives 15, 16, 17 and 18.
2605 * config/i386/sse.md (vec_concatv2di): Change
2606 alternative (!x, *y) to (x, ?!*Yn).
2608 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
2610 * dumpfile.h (enum dump_kind): Remove stray comma.
2612 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
2614 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
2615 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
2616 predicate::num_conditions
2617 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
2618 (CHANGED): turn into predicate::changed.
2619 (agg_position_info): Move to ipa-predicate.h
2620 (add_condition, predicate::add_clause, predicate::operator &=,
2621 predicate::or_with, predicate::evaluate, predicate::probability,
2622 dump_condition, dump_clause, predicate::dump,
2623 predicate::remap_after_duplication, predicate::remap_after_inlining,
2624 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
2625 (evaluate_conditions_for_known_args): Update.
2626 (set_cond_stmt_execution_predicate): Update.
2627 * ipa-inline.h: Include ipa-predicate.h
2628 (condition, inline_param_summary, conditions, agg_position_info,
2629 predicate): Move to ipa-predicate.h
2630 * ipa-predicate.c: New file.
2631 * ipa-predicate.h: New file.
2633 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
2635 * final.c (leaf_function_p): Check we are not in a sequence.
2637 2017-05-18 Martin Liska <mliska@suse.cz>
2639 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
2640 * dumpfile.c (dump_register): Use new enum dump_kind.
2641 (get_dump_file_name): Likewise.
2642 (dump_enable_all): Likewise.
2643 (dump_switch_p_1): Likewise.
2644 (enable_rtl_dump_file): Remove usage of TDF_RTL.
2645 * dumpfile.h (enum dump_kind): New enum type.
2646 (struct dump_file_info): Create constructor and
2647 format fields and comments.
2648 * passes.c (pass_manager::register_one_dump_file):
2650 * statistics.c (statistics_early_init): Likewise.
2651 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
2652 TDF_TREE with TDF_SLIM.
2653 (gather_memory_references_ref): Likewise.
2655 2017-05-18 Martin Liska <mliska@suse.cz>
2657 * vec.h (struct vnull): Use it.
2659 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
2661 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
2662 (true_predicate, false_predicate, true_predicate_p,
2663 false_predicate_p): Remove.
2664 (single_cond_predicate, not_inlined_predicate): Turn to member function
2666 (add_condition): Update.
2667 (add_clause): Turn to...
2668 (predicate::add_clause): ... this one; update; allow passing NULL
2670 (and_predicates): Turn to ...
2671 (predicate::operator &=): ... this one.
2672 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
2673 (or_predicates): Turn to ...
2674 (predicate::or_with): ... this one.
2675 (evaluate_predicate): Turn to ...
2676 (predicate::evaluate): ... this one.
2677 (predicate_probability): Turn to ...
2678 (predicate::probability): ... this one.
2679 (dump_condition): Update.
2680 (dump_predicate): Turn to ...
2681 (predicate::dump): ... this one.
2682 (account_size_time): Update.
2683 (edge_set_predicate): Update.
2684 (set_hint_predicate): UPdate.
2685 (evaluate_conditions_for_known_args): Update.
2686 (evaluate_properties_for_edge): Update.
2687 (remap_predicate_after_duplication): Turn to...
2688 (predicate::remap_after_duplication): ... this one.
2689 (remap_hint_predicate_after_duplication): Update.
2690 (inline_summary_t::duplicate): UPdate.
2691 (dump_inline_edge_summary): Update.
2692 (dump_inline_summary): Update.
2693 (set_cond_stmt_execution_predicate): Update.
2694 (set_switch_stmt_execution_predicate): Update.
2695 (compute_bb_predicates): Update.
2696 (will_be_nonconstant_expr_predicate): Update.
2697 (will_be_nonconstant_predicate): Update.
2698 (phi_result_unknown_predicate): Update.
2699 (predicate_for_phi_result): Update.
2700 (array_index_predicate): Update.
2701 (estimate_function_body_sizes): Update.
2702 (estimate_node_size_and_time): Update.
2703 (estimate_ipcp_clone_size_and_time): Update.
2704 (remap_predicate): Rename to ...
2705 (predicate::remap_after_inlining): ... this one.
2706 (remap_hint_predicate): Update.
2707 (inline_merge_summary): Update.
2708 (inline_update_overall_summary): Update.
2709 (estimate_size_after_inlining): Update.
2710 (read_predicate): Rename to ...
2711 (predicate::stream_in): ... this one.
2712 (read_inline_edge_summary): Update.
2713 (write_predicate): Rename to ...
2714 (predicate::stream_out): ... this one.
2715 (write_inline_edge_summary): Update.
2716 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
2717 (clause_t): Turn to uint32_t
2718 (predicate): Turn to class; implement constructor and operators
2720 (size_time_entry): Update.
2721 (inline_summary): Update.
2722 (inline_edge_summary): Update.
2724 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
2726 * fold-const.c (fold_binary_loc): Move transformation...
2727 * match.pd (C - X CMP X): ... here.
2729 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
2731 * config/sparc/sparc.c (sparc_option_override): Set function
2732 alignment for -mcpu=niagara7 to 64 to match the I$ line.
2733 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
2735 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
2737 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
2739 2017-05-18 Marek Polacek <polacek@redhat.com>
2742 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
2743 (pass_ubsan::execute): Call gimple_assign_single_p instead of
2744 gimple_assign_load_p.
2746 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
2749 * real.c (do_compare): Give decimal_do_compare preference over
2750 comparing just the signs.
2752 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
2754 * doc/md.texi (Canonicalization of Instructions): Describe the
2755 canonical form of instructions that inherently set a condition
2758 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
2761 * tree-cfg.c: Move deletion of unreachable case statements to after
2762 the merging of consecutive case labels.
2764 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
2766 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
2767 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
2768 restoring of callee-saved registers.
2770 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
2772 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
2773 * config/visium/visium.c (single_set_and_flags): Likewise.
2774 * config/visium/visium.md (Substitutions): Likewise.
2776 2017-05-17 Martin Liska <mliska@suse.cz>
2778 * cfg.c: Introduce dump_flags_t type and
2779 use it instead of int type.
2781 * cfghooks.c: Likewise.
2782 * cfghooks.h (struct cfg_hooks): Likewise.
2783 * cfgrtl.c: Likewise.
2784 * cfgrtl.h: Likewise.
2785 * cgraph.c (cgraph_node::get_body): Likewise.
2786 * coretypes.h: Likewise.
2787 * domwalk.c: Likewise.
2788 * domwalk.h: Likewise.
2789 * dumpfile.c (struct dump_option_value_info): Likewise.
2790 (dump_enable_all): Likewise.
2791 (dump_switch_p_1): Likewise.
2792 (opt_info_switch_p): Likewise.
2793 * dumpfile.h (enum tree_dump_index): Likewise.
2794 (struct dump_file_info): Likewise.
2795 * genemit.c: Likewise.
2796 * generic-match-head.c: Likewise.
2797 * gengtype.c (open_base_files): Likewise.
2798 * gimple-pretty-print.c: Likewise.
2799 * gimple-pretty-print.h: Likewise.
2800 * graph.c (print_graph_cfg): Likewise.
2801 * graphite-scop-detection.c (dot_all_sese): Likewise.
2802 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
2803 * loop-unroll.c (report_unroll): Likewise.
2804 * passes.c (pass_manager::register_one_dump_file): Likewise.
2805 * print-tree.c: Likewise.
2806 * statistics.c: Likewise.
2807 * tree-cfg.c: Likewise.
2808 * tree-cfg.h: Likewise.
2809 * tree-dfa.c: Likewise.
2810 * tree-dfa.h: Likewise.
2811 * tree-dump.c (dump_function): Likewise.
2812 * tree-dump.h (struct dump_info): Likewise.
2813 * tree-pretty-print.c: Likewise.
2814 * tree-pretty-print.h: Likewise.
2815 * tree-ssa-live.c: Likewise.
2816 * tree-ssa-live.h: Likewise.
2817 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
2818 * tree-vect-loop.c: Likewise.
2819 * tree-vect-slp.c: Likewise.
2821 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
2822 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2824 PR tree-optimization/80457
2825 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
2826 of all arguments to a statement as scalar_to_vec operations.
2827 (vectorizable_call): Adjust call to vect_model_simple_cost for
2829 (vectorizable_conversion): Likewise.
2830 (vectorizable_assignment): Likewise.
2831 (vectorizable_shift): Likewise.
2832 (vectorizable_operation): Likewise.
2833 (vectorizable_comparison): Likewise.
2834 (vect_is_simple_cond): Record the def types for operands.
2835 (vectorizable_condition): Likewise, call vect_model_simple_cost.
2836 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
2837 for statement argument count.
2839 2017-05-16 Carl Love <cel@us.ibm.com>
2841 * config/rs6000/rs6000-c: Add support for built-in functions
2842 vector unsigned long long vec_bperm (vector unsigned long long,
2843 vector unsigned char)
2844 vector signed long long vec_mule (vector signed int,
2846 vector unsigned long long vec_mule (vector unsigned int,
2847 vector unsigned int)
2848 vector signed long long vec_mulo (vector signed int,
2850 vector unsigned long long vec_mulo (vector unsigned int,
2851 vector unsigned int)
2852 vector signed char vec_sldw (vector signed char,
2855 vector unsigned char vec_sldw (vector unsigned char,
2856 vector unsigned char,
2858 vector signed short vec_sldw (vector signed short,
2859 vector signed short,
2861 vector unsigned short vec_sldw (vector unsigned short,
2862 vector unsigned short,
2864 vector signed int vec_sldw (vector signed int,
2867 vector unsigned int vec_sldw (vector unsigned int,
2868 vector unsigned int,
2870 vector signed long long vec_sldw (vector signed long long,
2871 vector signed long long,
2873 vector unsigned long long vec_sldw (vector unsigned long long,
2874 vector unsigned long long,
2876 * config/rs6000/rs6000-c: Add support for built-in functions
2877 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
2878 * config/rs6000/altivec.h: Add defintion for vec_sldw.
2879 * doc/extend.texi: Update the built-in documentation for the
2880 new built-in functions.
2882 2017-05-16 Marek Polacek <polacek@redhat.com>
2886 * tree.c (save_expr): Don't fold the expression.
2888 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
2890 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
2891 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
2892 and (?*y,m). Update insn attributes.
2894 2017-05-16 Martin Liska <mliska@suse.cz>
2896 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
2897 flags argument of print_gimple_stmt, print_gimple_expr,
2898 print_generic_stmt and print_generic_expr.
2899 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
2900 * coretypes.h: Likewise.
2901 * except.c (dump_eh_tree): Likewise.
2902 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2903 * gimple-pretty-print.h: Likewise.
2904 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
2905 (backprop::push_to_worklist): Likewise.
2906 (backprop::pop_from_worklist): Likewise.
2907 (backprop::process_use): Likewise.
2908 (backprop::intersect_uses): Likewise.
2909 (note_replacement): Likewise.
2910 * gimple-ssa-store-merging.c
2911 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
2912 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
2913 (pass_store_merging::execute): Likewise.
2914 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
2915 (ssa_base_cand_dump_callback): Likewise.
2916 (dump_incr_vec): Likewise.
2917 (replace_refs): Likewise.
2918 (replace_mult_candidate): Likewise.
2919 (create_add_on_incoming_edge): Likewise.
2920 (create_phi_basis): Likewise.
2921 (insert_initializers): Likewise.
2922 (all_phi_incrs_profitable): Likewise.
2923 (introduce_cast_before_cand): Likewise.
2924 (replace_one_candidate): Likewise.
2925 * gimplify.c (gimplify_expr): Likewise.
2926 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
2927 (set_rename): Likewise.
2928 (rename_uses): Likewise.
2929 (copy_loop_phi_nodes): Likewise.
2930 (add_close_phis_to_merge_points): Likewise.
2931 (copy_loop_close_phi_args): Likewise.
2932 (copy_cond_phi_args): Likewise.
2933 (graphite_copy_stmts_from_block): Likewise.
2934 (translate_pending_phi_nodes): Likewise.
2935 * graphite-poly.c (print_pdr): Likewise.
2936 (dump_gbb_cases): Likewise.
2937 (dump_gbb_conditions): Likewise.
2938 (print_scop_params): Likewise.
2939 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
2940 (build_cross_bb_scalars_use): Likewise.
2941 (gather_bbs::before_dom_children): Likewise.
2942 * hsa-dump.c (dump_hsa_immed): Likewise.
2943 * ipa-cp.c (print_ipcp_constant_value): Likewise.
2944 (get_replacement_map): Likewise.
2945 * ipa-inline-analysis.c (dump_condition): Likewise.
2946 (estimate_function_body_sizes): Likewise.
2947 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
2948 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
2949 * ipa-prop.c (ipa_dump_param): Likewise.
2950 (ipa_print_node_jump_functions_for_edge): Likewise.
2951 (ipa_modify_call_arguments): Likewise.
2952 (ipa_modify_expr): Likewise.
2953 (ipa_dump_param_adjustments): Likewise.
2954 (ipa_dump_agg_replacement_values): Likewise.
2955 (ipcp_modif_dom_walker::before_dom_children): Likewise.
2956 * ipa-pure-const.c (check_stmt): Likewise.
2957 (pass_nothrow::execute): Likewise.
2958 * ipa-split.c (execute_split_functions): Likewise.
2959 * omp-offload.c (dump_oacc_loop_part): Likewise.
2960 (dump_oacc_loop): Likewise.
2961 * trans-mem.c (tm_log_emit): Likewise.
2962 (tm_memopt_accumulate_memops): Likewise.
2963 (dump_tm_memopt_set): Likewise.
2964 (dump_tm_memopt_transform): Likewise.
2965 * tree-cfg.c (gimple_verify_flow_info): Likewise.
2966 (print_loop): Likewise.
2967 * tree-chkp-opt.c (chkp_print_addr): Likewise.
2968 (chkp_gather_checks_info): Likewise.
2969 (chkp_get_check_result): Likewise.
2970 (chkp_remove_check_if_pass): Likewise.
2971 (chkp_use_outer_bounds_if_possible): Likewise.
2972 (chkp_reduce_bounds_lifetime): Likewise.
2973 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
2974 (chkp_mark_completed_bounds): Likewise.
2975 (chkp_register_incomplete_bounds): Likewise.
2976 (chkp_mark_invalid_bounds): Likewise.
2977 (chkp_maybe_copy_and_register_bounds): Likewise.
2978 (chkp_build_returned_bound): Likewise.
2979 (chkp_get_bound_for_parm): Likewise.
2980 (chkp_build_bndldx): Likewise.
2981 (chkp_get_bounds_by_definition): Likewise.
2982 (chkp_generate_extern_var_bounds): Likewise.
2983 (chkp_get_bounds_for_decl_addr): Likewise.
2984 * tree-chrec.c (chrec_apply): Likewise.
2985 * tree-data-ref.c (dump_data_reference): Likewise.
2986 (dump_subscript): Likewise.
2987 (dump_data_dependence_relation): Likewise.
2988 (analyze_overlapping_iterations): Likewise.
2989 * tree-inline.c (expand_call_inline): Likewise.
2990 (tree_function_versioning): Likewise.
2991 * tree-into-ssa.c (dump_defs_stack): Likewise.
2992 (dump_currdefs): Likewise.
2993 (dump_names_replaced_by): Likewise.
2994 (dump_update_ssa): Likewise.
2995 (update_ssa): Likewise.
2996 * tree-object-size.c (pass_object_sizes::execute): Likewise.
2997 * tree-parloops.c (build_new_reduction): Likewise.
2998 (try_create_reduction_list): Likewise.
2999 (ref_conflicts_with_region): Likewise.
3000 (oacc_entry_exit_ok_1): Likewise.
3001 (oacc_entry_exit_single_gang): Likewise.
3002 * tree-pretty-print.h: Likewise.
3003 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
3004 (get_scalar_evolution): Likewise.
3005 (add_to_evolution): Likewise.
3006 (get_loop_exit_condition): Likewise.
3007 (analyze_evolution_in_loop): Likewise.
3008 (analyze_initial_condition): Likewise.
3009 (analyze_scalar_evolution): Likewise.
3010 (instantiate_scev): Likewise.
3011 (number_of_latch_executions): Likewise.
3012 (gather_chrec_stats): Likewise.
3013 (final_value_replacement_loop): Likewise.
3014 (scev_const_prop): Likewise.
3015 * tree-sra.c (dump_access): Likewise.
3016 (disqualify_candidate): Likewise.
3017 (create_access): Likewise.
3019 (maybe_add_sra_candidate): Likewise.
3020 (create_access_replacement): Likewise.
3021 (analyze_access_subtree): Likewise.
3022 (analyze_all_variable_accesses): Likewise.
3023 (sra_modify_assign): Likewise.
3024 (initialize_constant_pool_replacements): Likewise.
3025 (find_param_candidates): Likewise.
3026 (decide_one_param_reduction): Likewise.
3027 (replace_removed_params_ssa_names): Likewise.
3028 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
3029 * tree-ssa-copy.c (dump_copy_of): Likewise.
3030 (copy_prop_visit_cond_stmt): Likewise.
3031 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
3032 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
3033 (record_equivalences_from_stmt): Likewise.
3034 * tree-ssa-dse.c (compute_trims): Likewise.
3035 (delete_dead_call): Likewise.
3036 (delete_dead_assignment): Likewise.
3037 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
3038 (forward_propagate_into_cond): Likewise.
3039 (pass_forwprop::execute): Likewise.
3040 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3041 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
3043 (move_computations_worker): Likewise.
3044 (execute_sm): Likewise.
3045 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
3046 (remove_exits_and_undefined_stmts): Likewise.
3047 (remove_redundant_iv_tests): Likewise.
3048 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
3049 (adjust_iv_update_pos): Likewise.
3050 * tree-ssa-math-opts.c (bswap_replace): Likewise.
3051 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
3052 (value_replacement): Likewise.
3053 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
3054 * tree-ssa-pre.c (print_pre_expr): Likewise.
3055 (get_representative_for): Likewise.
3056 (create_expression_by_pieces): Likewise.
3057 (insert_into_preds_of_block): Likewise.
3058 (eliminate_insert): Likewise.
3059 (eliminate_dom_walker::before_dom_children): Likewise.
3060 (eliminate): Likewise.
3061 (remove_dead_inserted_code): Likewise.
3062 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
3063 * tree-ssa-reassoc.c (get_rank): Likewise.
3064 (eliminate_duplicate_pair): Likewise.
3065 (eliminate_plus_minus_pair): Likewise.
3066 (eliminate_not_pairs): Likewise.
3067 (undistribute_ops_list): Likewise.
3068 (eliminate_redundant_comparison): Likewise.
3069 (update_range_test): Likewise.
3070 (optimize_range_tests_var_bound): Likewise.
3071 (optimize_vec_cond_expr): Likewise.
3072 (rewrite_expr_tree): Likewise.
3073 (rewrite_expr_tree_parallel): Likewise.
3074 (linearize_expr): Likewise.
3075 (break_up_subtract): Likewise.
3076 (linearize_expr_tree): Likewise.
3077 (attempt_builtin_powi): Likewise.
3078 (attempt_builtin_copysign): Likewise.
3079 (transform_stmt_to_copy): Likewise.
3080 (transform_stmt_to_multiply): Likewise.
3081 (dump_ops_vector): Likewise.
3082 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
3083 (print_scc): Likewise.
3084 (set_ssa_val_to): Likewise.
3085 (visit_reference_op_store): Likewise.
3086 (visit_use): Likewise.
3087 (sccvn_dom_walker::before_dom_children): Likewise.
3088 (run_scc_vn): Likewise.
3089 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
3091 (expr_hash_elt::print): Likewise.
3092 (const_and_copies::pop_to_marker): Likewise.
3093 (const_and_copies::record_const_or_copy_raw): Likewise.
3094 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
3095 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
3096 (dump_predicates): Likewise.
3097 (find_uninit_use): Likewise.
3098 (warn_uninitialized_phi): Likewise.
3099 (pass_late_warn_uninitialized::execute): Likewise.
3100 * tree-ssa.c (verify_vssa): Likewise.
3101 (verify_ssa): Likewise.
3102 (maybe_optimize_var): Likewise.
3103 * tree-vrp.c (dump_value_range): Likewise.
3104 (dump_all_value_ranges): Likewise.
3105 (dump_asserts_for): Likewise.
3106 (register_edge_assert_for_2): Likewise.
3107 (vrp_visit_cond_stmt): Likewise.
3108 (vrp_visit_switch_stmt): Likewise.
3109 (vrp_visit_stmt): Likewise.
3110 (vrp_visit_phi_node): Likewise.
3111 (simplify_cond_using_ranges_1): Likewise.
3112 (fold_predicate_in): Likewise.
3113 (evrp_dom_walker::before_dom_children): Likewise.
3114 (evrp_dom_walker::push_value_range): Likewise.
3115 (evrp_dom_walker::pop_value_range): Likewise.
3116 (execute_early_vrp): Likewise.
3118 2017-05-16 Richard Biener <rguenther@suse.de>
3120 * dwarf2out.c (loc_list_from_tree_1): Do not create
3121 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
3123 2017-05-16 Richard Biener <rguenther@suse.de>
3125 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
3127 (note_variable_value_in_expr): If we resolved the decl ref
3128 do not push to the stack.
3130 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
3132 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
3133 operations in fast-math mode.
3134 (vaddq_f16): Likewise.
3135 (vmul_f16): Likewise.
3136 (vmulq_f16): Likewise.
3137 (vsub_f16): Likewise.
3138 (vsubq_f16): Likewise.
3139 * config/arm/neon.md (add<mode>3): New.
3141 (fma:<VH:mode>3): New. Also remove outdated comment.
3144 2017-05-16 Martin Liska <mliska@suse.cz>
3148 * ipa-devirt.c (warn_types_mismatch): Fix typo.
3149 (odr_types_equivalent_p): Likewise.
3151 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
3153 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
3155 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
3158 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
3159 non-interunit SSE move alternatives with '?'.
3160 (zero-extendsidi peephole2): New peephole to skip intermediate
3161 general register in SSE zero-extend sequence.
3163 2017-05-15 Jeff Law <law@redhat.com>
3165 * reorg.c (relax_delay_slots): Create a new variable to hold
3166 the temporary target rather than clobbering TARGET_LABEL.
3168 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
3169 missing argument to extract_bit_field call.
3170 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
3172 2017-05-15 Martin Liska <mliska@suse.cz>
3175 * gcc.c (process_command): Do not allow empty argument of -o option.
3177 2017-05-15 Renlin Li <renlin.li@arm.com>
3179 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
3180 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
3181 * config/aarch64/constraints.md (Usf): Add long call check.
3182 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
3183 (call_value): Likewise.
3184 (sibcall): Likewise.
3185 (sibcall_value): Likewise.
3187 (call_value_insn): New.
3188 (sibcall_insn): Update rtx pattern.
3189 (sibcall_value_insn): Likewise.
3190 (call_internal): Remove.
3191 (call_value_internal): Likewise.
3192 (sibcall_internal): Likewise.
3193 (sibcall_value_internal): Likewise.
3194 (call_reg): Likewise.
3195 (call_symbol): Likewise.
3196 (call_value_reg): Likewise.
3197 (call_value_symbol): Likewise.
3199 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
3202 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
3204 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
3206 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
3207 compatible with CCGOCmode and with CCZmode.
3209 2017-05-14 Martin Sebor <msebor@redhat.com>
3212 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
3213 (gimple_fold_builtin_snprintf): Same.
3214 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
3215 (gimple_fold_builtin_snprintf): Same.
3216 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
3218 (is_call_safe): New function.
3219 (try_substitute_return_value): Call it.
3220 (try_simplify_call): New function.
3221 (pass_sprintf_length::handle_gimple_call): Call it.
3223 2017-05-14 Martin Sebor <msebor@redhat.com>
3226 * builtins.c (expand_builtin_stpncpy): Simplify.
3228 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
3230 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
3231 * config/i386/i386.h
3232 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
3233 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
3234 (struct machine_function): Add new members call_ms2sysv,
3235 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
3236 (struct machine_frame_state): New fields sp_realigned and
3237 sp_realigned_offset.
3238 * config/i386/i386.c
3239 (enum xlogue_stub): New enum.
3240 (enum xlogue_stub_sets): New enum.
3241 (class xlogue_layout): New class.
3242 (struct ix86_frame): New fields stack_realign_allocate_offset,
3243 stack_realign_offset and outlined_save_offset. Modify comments to
3244 detail stack layout when using out-of-line stubs.
3245 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
3246 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
3247 -mcall-ms2sysv-xlogues.
3248 (stub_managed_regs): New static variable.
3249 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
3250 registers managed by out-of-line stub.
3251 (disable_call_ms2sysv_xlogues): New function.
3252 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
3253 m->call_ms2sysv when appropriate and compute frame layout for
3255 (sp_valid_at, fp_valid_at): New inline functions.
3256 (choose_basereg): New function.
3257 (choose_baseaddr): Add align parameter, use choose_basereg and modify
3259 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
3260 Use align parameter of choose_baseaddr to generated aligned SSE movs
3262 (pro_epilogue_adjust_stack): Modify to track
3263 machine_frame_state::sp_realigned.
3264 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
3265 (ix86_nsaved_sseregs): Likewise.
3266 (ix86_emit_save_regs): Likewise.
3267 (ix86_emit_save_regs_using_mov): Likewise.
3268 (ix86_emit_save_sse_regs_using_mov): Likewise.
3269 (get_scratch_register_on_entry): Likewise.
3270 (gen_frame_set): New function.
3271 (gen_frame_load): Likewise.
3272 (gen_frame_store): Likewise.
3273 (emit_outlined_ms2sysv_save): Likewise.
3274 (emit_outlined_ms2sysv_restore): Likewise.
3275 (ix86_expand_prologue): Modify stack re-alignment code and call
3276 emit_outlined_ms2sysv_save when appropriate.
3277 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
3278 parameter rtx_insn *insn, which allows the function to be used to only
3280 (ix86_expand_epilogue): Modify validity checks of frame and stack
3281 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
3282 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
3283 * config/i386/predicates.md
3284 (save_multiple): New predicate.
3285 (restore_multiple): Likewise.
3286 * config/i386/sse.md
3287 (save_multiple<mode>): New pattern.
3288 (save_multiple_realign<mode>): Likewise.
3289 (restore_multiple<mode>): Likewise.
3290 (restore_multiple_and_return<mode>): Likewise.
3291 (restore_multiple_leave_return<mode>): Likewise.
3292 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
3294 2017-05-14 Julia Koval <julia.koval@intel.com>
3296 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
3297 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
3298 (__builtin_ia32_xsetbv): New builtins.
3299 * config/i386/i386.c (ix86_expand_special_args_builtin):
3301 (ix86_expand_builtin): Special expand for new intrinsics.
3302 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
3303 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
3304 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
3306 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3308 * cfganal.c (inverted_post_order_compute): Change argument type
3310 * cfganal.h (inverted_post_order_compute): Adjust prototype.
3311 * df-core.c (rest_of_handle_df_initialize): Adjust.
3312 (rest_of_handle_df_finish): Likewise.
3313 (df_analyze_1): Likewise.
3314 (df_analyze): Likewise.
3315 (loop_inverted_post_order_compute): Change argument to be a vec *.
3316 (df_analyze_loop): Adjust.
3317 (df_get_n_blocks): Likewise.
3318 (df_get_postorder): Likewise.
3319 * df.h (struct df_d): Change field to be a vec.
3320 * lcm.c (compute_laterin): Adjust.
3321 (compute_available): Likewise.
3322 * lra-lives.c (lra_create_live_ranges_1): Likewise.
3323 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
3324 * tree-ssa-pre.c (compute_antic): Likewise.
3326 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3328 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
3329 (depth_first_search::depth_first_search): Change structure init
3330 function to this constructor.
3331 (depth_first_search::add_bb): Rename function to this member.
3332 (depth_first_search::execute): Likewise.
3333 (flow_dfs_compute_reverse_finish): Adjust.
3335 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3337 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
3338 (longest_simple_path): Likewise.
3339 * shrink-wrap.c (spread_components): Likewise.
3340 (disqualify_problematic_components): Likewise.
3341 (emit_common_heads_for_components): Likewise.
3342 (emit_common_tails_for_components): Likewise.
3343 (insert_prologue_epilogue_for_components): Likewise.
3345 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3347 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
3350 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3352 * df-core.c (df_set_blocks): Start using auto_bitmap.
3353 (df_compact_blocks): Likewise.
3354 * df-problems.c (df_rd_confluence_n): Likewise.
3355 * df-scan.c (df_insn_rescan_all): Likewise.
3356 (df_process_deferred_rescans): Likewise.
3357 (df_update_entry_block_defs): Likewise.
3358 (df_update_exit_block_uses): Likewise.
3359 (df_entry_block_bitmap_verify): Likewise.
3360 (df_exit_block_bitmap_verify): Likewise.
3361 (df_scan_verify): Likewise.
3362 * lra-constraints.c (lra_constraints): Likewise.
3363 (undo_optional_reloads): Likewise.
3364 (lra_undo_inheritance): Likewise.
3365 * lra-remat.c (calculate_gen_cands): Likewise.
3366 (do_remat): Likewise.
3367 * lra-spills.c (assign_spill_hard_regs): Likewise.
3368 (spill_pseudos): Likewise.
3369 * tree-ssa-pre.c (bitmap_set_and): Likewise.
3370 (bitmap_set_subtract_values): Likewise.
3372 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3374 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
3375 management with auto_bitmap.
3376 (fix_inter_tick): Likewise.
3377 (fix_recovery_deps): Likewise.
3378 * ira.c (add_store_equivs): Likewise.
3379 (find_moveable_pseudos): Likewise.
3380 (split_live_ranges_for_shrink_wrap): Likewise.
3381 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
3382 (rtx_reuse_manager::seen_def_p): Likewise.
3383 (rtx_reuse_manager::set_seen_def): Likewise.
3384 * print-rtl.h (class rtx_reuse_manager): Likewise.
3386 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3388 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
3390 (migrate_btr_def): Likewise.
3391 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
3392 * df-core.c (loop_post_order_compute): Likewise.
3393 (loop_inverted_post_order_compute): Likewise.
3394 * hsa-common.h: Likewise.
3395 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
3396 * init-regs.c (initialize_uninitialized_regs): Likewise.
3397 * ipa-inline.c (resolve_noninline_speculation): Likewise.
3398 (inline_small_functions): Likewise.
3399 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
3400 * ira.c (combine_and_move_insns): Likewise.
3401 (build_insn_chain): Likewise.
3402 * loop-invariant.c (find_invariants): Likewise.
3403 * lower-subreg.c (propagate_pseudo_copies): Likewise.
3404 * predict.c (tree_predict_by_opcode): Likewise.
3405 (predict_paths_leading_to): Likewise.
3406 (predict_paths_leading_to_edge): Likewise.
3407 (estimate_loops_at_level): Likewise.
3408 (estimate_loops): Likewise.
3409 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3410 (spread_components): Likewise.
3411 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
3412 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
3413 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
3414 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
3415 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
3416 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
3417 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3418 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
3419 (mark_threaded_blocks): Likewise.
3420 (thread_through_all_blocks): Likewise.
3421 * tree-ssa.c (verify_ssa): Likewise.
3422 (execute_update_addresses_taken): Likewise.
3423 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
3425 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3427 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
3429 (post_order_compute): Likewise.
3430 (inverted_post_order_compute): Likewise.
3431 (pre_and_rev_post_order_compute_fn): Likewise.
3433 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3435 * genrecog.c (int_set::int_set): Explicitly construct our
3436 auto_vec base class.
3437 * vec.h (auto_vec::auto_vec): New constructor.
3439 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3441 * bitmap.h (class auto_bitmap): New constructor taking
3442 bitmap_obstack * argument.
3444 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3446 * bitmap.h (class auto_bitmap): Change type of m_bits to
3447 bitmap_head, and adjust ctor / dtor and member operators.
3449 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
3451 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
3452 when returned register mode doesn't match original mode.
3454 2017-05-12 Jeff Law <law@redhat.com>
3455 Jakub Jelinek <jakub@redhat.com>
3457 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
3458 we look for cc setter after the compare-elim changes.
3459 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
3460 within the vector to match what compare-elim now expects.
3461 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
3462 (xorsi3_flags, one_cmplsi2_flags): Likewise.
3464 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
3465 after the compare-elim changes.
3466 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
3467 the vector to match what compare-elim now expects.
3468 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
3469 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
3470 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
3471 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
3472 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
3474 * config/visium/visium.c (single_set_and_flags): Fix where
3475 we look for cc setter after the compare-elim changes.
3476 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
3477 with the vector to match what compare-elim now expects.
3478 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
3479 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
3480 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
3481 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
3482 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
3483 (neg<mode>2_insn_set_overflow): Likewise.
3485 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
3488 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
3489 maybe_expand_insn call, set ops[0].target. If still set after call,
3490 set alt_rtl. Add extra arg to recursive calls.
3491 (extract_bit_field): Add alt_rtl argument. Pass to
3493 * expmed.h (extract_bit_field): Fix prototype.
3494 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
3495 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
3496 to extract_bit_field_calls.
3497 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
3498 Pass alt_rtl to extract_bit_field calls.
3499 * calls.c (store_unaligned_arguments_into_psuedos)
3500 load_register_parameters): Pass extra NULL to extract_bit_field calls.
3501 * optabs.c (maybe_legitimize_operand): Clear op->target when call
3503 * optabs.h (struct expand_operand): Add target bitfield.
3505 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
3507 * compare-elim.c (try_eliminate_compare): Canonicalize
3508 operation with embedded compare to
3509 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
3510 (set (reg) (operation)].
3512 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
3514 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
3517 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
3518 cost of adding a carry flag for ADC instruction.
3519 [case MINUS]: Ignore the cost of subtracting a carry flag
3520 for SBB instruction.
3522 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
3524 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
3526 * config/rs6000/bmiintrin.h: New file.
3527 * config/rs6000/bmi2intrin.h: New file.
3528 * config/rs6000/x86intrin.h: New file.
3530 2017-05-12 Jeff Law <law@redhat.com>
3532 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
3535 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
3538 * tree-cfg.c: Remove cfg edges of unreachable case statements.
3540 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
3542 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
3543 early expansion of vector divide builtins.
3544 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
3545 builtins identified as having unsigned arguments.
3547 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
3549 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
3550 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
3551 expansion of vector logical operations (and, andc, or, xor,
3554 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
3556 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
3557 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
3559 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
3561 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
3562 early GIMPLE expansion of vector multiplies.
3564 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
3566 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
3567 TARGET_HAVE_MOVT conditional.
3568 (movt splitter): Likewise.
3570 2017-05-12 Richard Biener <rguenther@suse.de>
3572 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
3573 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3574 Fold all stmts not inplace.
3576 2017-05-12 Richard Biener <rguenther@suse.de>
3578 PR tree-optimization/80713
3579 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
3580 inserted_exprs bit for not removed stmts.
3582 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
3585 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
3586 parallelized" attribute for parallelized OpenACC kernels.
3587 * omp-offload.c (execute_oacc_device_lower): Use it.
3589 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
3590 Set "oacc kernels" attribute.
3591 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
3592 parameter. Adjust all users.
3593 (oacc_fn_attrib_kernels_p): Remove function.
3594 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
3595 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
3596 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
3597 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
3598 assert "oacc kernels" attribute is set.
3600 2017-05-11 Carl Love <cel@us.ibm.com>
3602 * config/rs6000/rs6000-c: Add support for built-in functions
3603 vector unsigned char vec_popcnt (vector signed char)
3604 vector unsigned char vec_popcnt (vector unsigned char)
3605 vector unsigned short vec_popcnt (vector signed short)
3606 vector unsigned short vec_popcnt (vector unsigned short)
3607 vector unsigned int vec_popcnt (vector signed int)
3608 vector unsigned int vec_popcnt (vector unsigned int)
3609 vector unsigned long long vec_popcnt (vector signed long long)
3610 vector unsigned long long vec_popcnt (vector unsigned long long)
3611 vector signed long long vec_slo (vector signed long long,
3613 vector signed long long vec_slo (vector signed long long,
3614 vector unsigned char)
3615 vector unsigned long long vec_slo (vector unsigned long long,
3617 vector unsigned long long vec_slo (vector unsigned long long,
3618 vector unsigned char)
3619 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
3620 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
3621 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
3622 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
3623 * doc/extend.texi: Update the built-in documentation file for the
3624 new built-in functions.
3626 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3628 * attribs.h (sorted_attr_string): Move machine independent
3629 functions for target clone support from the i386 port to common
3630 code. Rename ix86_function_versions to common_function_versions.
3631 Rename make_name to make_unique_name.
3632 (common_function_versions): Likewise.
3633 (make_unique_name): Likewise.
3634 (make_dispatcher_decl): Likewise.
3635 (is_function_default_version): Likewise.
3636 * attribs.c (attr_strcmp): Likewise.
3637 (sorted_attr_string): Likewise.
3638 (common_function_versions): Likewise.
3639 (make_unique_name): Likewise.
3640 (make_dispatcher_decl): Likewise.
3641 (is_function_default_version): Likewise.
3642 * config/i386/i386.c (attr_strcmp): Likewise.
3643 (sorted_attr_string): Likewise.
3644 (ix86_function_versions): Likewise.
3645 (make_name): Likewise.
3646 (make_dispatcher_decl): Likewise.
3647 (is_function_default_version): Likewise.
3648 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
3650 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3653 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3654 Account for direct move costs for vec_construct of integer
3657 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
3660 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
3661 (UNSPEC_STX_ATOMIC): Ditto.
3662 (loaddi_via_sse): New insn.
3663 (storedi_via_sse): Ditto.
3664 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
3665 Update corresponding peephole2 patterns.
3666 (atomic_storedi_fpu): Ditto.
3668 2017-05-11 Julia Koval <julia.koval@intel.com>
3670 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
3671 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
3673 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
3674 (__builtin_ia32_rsqrt14ss_mask): New builtins.
3675 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
3677 2017-05-11 Nathan Sidwell <nathan@acm.org>
3679 * graphite-poly.c: Include dumpfile.h.
3681 * dumpfle.h (dump_function): Declare here ...
3682 * tree-dump.h (dump_function): ... not here.
3683 * dumpfile.c: #include tree-cfg.h.
3684 (dump_function): Move here from ...
3685 * tree-dump.c (dump_function): ... here.
3686 * gimplify.c: #include splay-tree.h, not tree-dump.h.
3687 * graphite-poly.c: Don't include tree-dump.h.
3688 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
3689 * print-tree.c: Likewise.
3690 * stor-layout.c: Likewise.
3691 * tree-nested.c: Likewise.
3693 * dumpfile.c (dump_start): Use TDF_FLAGS.
3694 (dump_enable_all): Fix TDF_KIND check thinko.
3696 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
3698 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3699 array entries to represent two legal parameterizations of the
3700 overloaded __builtin_cmpb function, as represented by the
3701 P6_OV_BUILTIN_CMPB constant.
3702 (altivec_resolve_overloaded_builtin): Add special case handling
3703 for the __builtin_cmpb function, as represented by the
3704 P6_OV_BUILTIN_CMPB constant.
3705 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
3706 (BU_P6_64BIT_2): New macro.
3707 (BU_P6_OVERLOAD_2): New macro
3708 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
3709 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
3710 (CMPB): Add overload support to represent both 32-bit and 64-bit
3711 compare-bytes function.
3712 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
3713 support for TARGET_CMPB.
3714 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
3715 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
3716 documentation of the __builtin_cmpb overloaded built-in function.
3718 2017-05-11 Richard Biener <rguenther@suse.de>
3720 PR tree-optimization/80705
3721 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
3722 bases are not vectorizable.
3724 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3726 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
3727 when counting register pressure.
3729 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3731 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
3732 (iv_ca_more_deps): Renamed to ...
3733 (iv_ca_compare_deps): ... this.
3734 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
3736 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3738 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
3740 (determine_group_iv_costs): ... here.
3741 (find_inv_vars_cb): Record inv var if it's not recorded before.
3743 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3745 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
3746 (get_shiftadd_cost): Ditto.
3748 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3750 * tree-ssa-address.c: Include header file.
3751 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
3753 (add_to_parts): Refactor.
3754 (addr_to_parts): New parameter. Update use of move_hint_to_base.
3755 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
3758 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3760 PR tree-optimization/53090
3761 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
3763 (extract_cond_operands): Detect condition with IV on both sides
3764 and return COMP_IV_EXPR_2.
3765 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
3766 (rewrite_use_compare): Simplify by removing call to function
3767 extract_cond_operands.
3769 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3771 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
3772 (extract_cond_operands): Detect condition comparing against non-
3773 invariant bound and return appropriate enum value.
3774 (find_interesting_uses_cond): Update use of extract_cond_operands.
3775 Handle its return value accordingly.
3776 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
3778 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3780 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
3781 nonlinear iv_use computation in loop invariant sensitive way.
3783 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3785 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
3786 (find_iv_candidates): Call relate_compare_use_with_all_cands.
3788 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3790 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
3791 (dump_cand): Support iv_cand.inv_exprs.
3792 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
3794 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
3797 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3799 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
3801 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
3802 as local function. Include necessary header files.
3803 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
3805 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3807 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
3809 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3811 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
3812 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
3813 RSHIFT_EXPR and BIT_NOT_EXPR.
3815 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3817 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
3818 (adjust_setup_cost): New parameter supporting round up adjustment.
3819 (struct address_cost_data): Delete.
3820 (force_expr_to_var_cost): Don't bound cost with spill_cost.
3821 (split_address_cost, ptr_difference_cost): Delete.
3822 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
3823 (struct ainc_cost_data): New struct.
3824 (get_address_cost_ainc): New function.
3825 (get_address_cost, get_computation_cost): Reimplement.
3826 (determine_group_iv_cost_address): Record inv_expr for all uses of
3828 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
3829 (iv_ca_has_deps): Reimplemented to ...
3830 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
3832 (iv_ca_extend): Call iv_ca_more_deps.
3834 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3836 * tree-ssa-address.c (struct mem_address): Move to header file.
3837 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
3838 * tree-ssa-address.h (struct mem_address): Move from C file.
3839 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
3841 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3843 * tree-affine.h (aff_combination_type): New interface.
3844 (aff_combination_zero_p): Remove static.
3845 (aff_combination_const_p): New interface.
3846 (aff_combination_singleton_var_p): New interfaces.
3848 2017-05-11 Richard Biener <rguenther@suse.de>
3850 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3851 Skip unreachable blocks and destinations.
3852 (eliminate): Move stmt removal and fixup ...
3853 (fini_eliminate): ... here. Skip inserted exprs.
3854 (pass_pre::execute): Move fini_pre after fini_eliminate.
3855 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
3856 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
3857 PRE to get rid of dead code that has invalid SSA form and
3858 split critical edges again.
3860 2017-05-11 Bin Cheng <bin.cheng@arm.com>
3862 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
3864 2017-05-11 Richard Biener <rguenther@suse.de>
3866 * passes.c (execute_function_todo): Verify loops if they are
3867 said to be up-to-date.
3868 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
3869 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
3871 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
3874 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
3875 handle calling assemble_external ourself.
3878 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
3879 modes with zero size. Enhance comment.
3881 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3883 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
3884 built-ins for vec_xl and vec_xst with short and char pointer
3887 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
3889 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
3890 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
3891 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
3892 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
3893 (_mm_maskz_min_round_ss): New intrinsics.
3894 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
3895 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
3896 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
3897 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
3898 (__builtin_ia32_minss_mask_round): New builtins.
3899 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
3900 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
3901 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
3903 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
3904 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
3906 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
3909 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
3911 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
3912 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
3913 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
3914 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
3915 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
3916 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
3917 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
3918 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
3919 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
3920 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
3921 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
3922 (__builtin_ia32_mulss_mask_round): New builtins.
3923 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
3924 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
3925 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
3927 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
3928 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
3930 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
3933 2017-05-10 Julia Koval <julia.koval@intel.com>
3935 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
3936 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
3937 (_mm256_setr_m128i): New intrinsics.
3939 2017-05-10 Julia Koval <julia.koval@intel.com>
3941 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
3942 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
3943 (_mm_maskz_rcp14_ss): New intrinsics.
3944 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
3945 (__builtin_ia32_rcp14ss_mask): New builtins.
3946 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
3948 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
3950 PR tree-optimization/51513
3951 * tree-cfg.c (gimple_seq_unreachable_p): New function.
3952 (assert_unreachable_fallthru_edge_p): Use it.
3953 (group_case_labels_stmt): Likewise.
3954 * tree-cfg.h: Prototype it.
3955 * stmt.c: Include cfghooks.h and tree-cfg.h.
3956 (emit_case_dispatch_table) <gap_label>: New local variable.
3957 Use it to fill dispatch table gaps.
3958 Test for default_label before updating probabilities.
3959 (expand_case) <default_label>: Remove unneeded initialization.
3960 Test for unreachable default case statement and remove its edge.
3961 Set default_label accordingly.
3962 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
3964 2017-05-10 Carl Love <cel@us.ibm.com>
3966 * config/rs6000/rs6000-c: Add support for built-in functions
3967 vector signed char vec_neg (vector signed char)
3968 vector signed short int vec_neg (vector short int)
3969 vector signed int vec_neg (vector signed int)
3970 vector signed long long vec_neg (vector signed long long)
3971 vector float vec_neg (vector float)
3972 vector double vec_neg (vector double)
3973 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
3975 * config/rs6000/altivec.h: Add define for vec_neg
3976 * doc/extend.texi: Update the built-in documentation for the
3977 new built-in functions.
3979 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3981 PR tree-optimization/77644
3982 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
3984 2017-05-10 Nathan Sidwell <nathan@acm.org>
3986 * dumpfile.h (TDI_lang_all): New.
3987 (TDF_KIND): New. Renumber others
3988 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
3990 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
3992 (get_dump_file_name): Adjust suffix generation.
3993 (dump_enable_all): Use TDF_KIND.
3994 * doc/invoke.texi (-fdump-lang-all): Document.
3996 * dumpfile.h: Tabify.
3998 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
4001 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
4002 Move member access before delete.
4004 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
4006 * tree-inline.c (expand_call_inline): Split block at stmt
4009 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4012 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
4013 are now unused after splitting mov{sf,sd}_hardfloat.
4014 (f32_lr2): Likewise.
4016 (f32_lm2): Likewise.
4018 (f32_li2): Likewise.
4021 (f32_sr2): Likewise.
4023 (f32_sm2): Likewise.
4025 (f32_si2): Likewise.
4028 (f32_vsx): Likewise.
4030 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
4031 For movsf, order stores so the VSX stores occur before the GPR
4032 store which encourages the register allocator to use a traditional
4033 FPR instead of a GPR. For movsd, order the stores so that the GPR
4034 store comes before the VSX stores to allow the power6 to work.
4035 This is due to the power6 not having a 32-bit integer store
4036 instruction from a FPR.
4037 (movsf_hardfloat): Likewise.
4038 (movsd_hardfloat): Likewise.
4040 2017-05-09 Martin Sebor <msebor@redhat.com>
4042 PR translation/80280
4043 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
4046 PR translation/80280
4047 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
4048 data member added in r247778.
4049 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
4051 2017-05-09 Nathan Sidwell <nathan@acm.org>
4053 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
4055 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
4058 2017-05-09 Marek Polacek <polacek@redhat.com>
4060 * doc/invoke.texi: Fix typo.
4062 2017-05-09 Richard Biener <rguenther@suse.de>
4064 * tree-vrp.c (vrp_val_is_max): Adjust comment.
4065 (vrp_val_is_min): Likewise.
4066 (set_value_range_to_value): Likewise.
4067 (set_value_range_to_nonnegative): Likewise.
4068 (gimple_assign_nonzero_p): Likewise.
4069 (gimple_stmt_nonzero_p): Likewise.
4070 (vrp_int_const_binop): Likewise. Remove unreachable case.
4071 (adjust_range_with_scev): Adjust comments.
4072 (compare_range_with_value): Likewise.
4073 (extract_range_from_phi_node): Likewise.
4074 (test_for_singularity): Likewise.
4076 2017-05-09 Richard Biener <rguenther@suse.de>
4078 * tree-vrp.c (get_single_symbol): Add assert that we don't
4079 get overflowed constants as invariant part.
4080 (compare_values_warnv): Add comment before the TREE_NO_WARNING
4081 checks. Use wi::cmp instead of recursing for integer constants.
4082 (compare_values): Just ignore whether we assumed undefined
4083 overflow instead of failing the compare.
4084 (extract_range_for_var_from_comparison_expr): Add comment before the
4085 TREE_NO_WARNING sets.
4086 (test_for_singularity): Likewise.
4087 (extract_range_from_comparison): Do not disable optimization
4088 when we assumed undefined overflow.
4089 (extract_range_basic): Remove init of unused var.
4091 2017-05-09 Richard Biener <rguenther@suse.de>
4093 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
4094 (extract_range_from_multiplicative_op_1): Adjust.
4095 (extract_range_from_binary_expr_1): Use int_const_binop.
4097 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
4100 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
4101 rs6000_store_data_bypass_p in seven define_bypass directives and
4102 in several comments.
4103 * config/rs6000/rs6000-protos.h: Add prototype for
4104 rs6000_store_data_bypass_p function.
4105 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
4106 function implements slightly different (rs6000-specific) semantics
4107 than store_data_bypass_p, returning false rather than aborting
4108 with assertion error when arguments do not satisfy the
4109 requirements of store data bypass.
4110 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
4111 rs6000_store_data_bypass_p.
4113 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
4115 * config/xtensa/xtensa-protos.h
4116 (xtensa_initial_elimination_offset): New declaration.
4117 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
4118 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
4119 macro definition, add case for FRAME_POINTER_REGNUM when
4120 FRAME_GROWS_DOWNWARD.
4121 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
4122 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
4123 xtensa_initial_elimination_offset.
4125 2017-05-08 Nathan Sidwell <nathan@acm.org>
4127 * doc/invoke.texi: Alphabetize -fdump options.
4129 2017-05-08 Martin Sebor <msebor@redhat.com>
4131 PR translation/80280
4132 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
4134 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
4136 * target.def (compute_frame_layout): New optional target hook.
4137 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
4138 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
4139 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
4141 * reload1.c (verify_initial_elim_offsets): Likewise.
4142 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
4143 (use_simple_return_p): Call arm_compute_frame_layout if needed.
4144 (arm_get_frame_offsets): Split up into this ...
4145 (arm_compute_frame_layout): ... and this function.
4147 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
4149 * config/aarch64/constraints.md (Usa): New constraint.
4150 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
4152 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
4154 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
4155 with_multilib_list after it has been checked.
4157 2017-05-08 Richard Biener <rguenther@suse.de>
4159 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
4160 (bitmap_set_subtract_values): Likewise.
4162 2017-05-08 Richard Biener <rguenther@suse.de>
4164 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
4165 (gimple_assign_nonzero): ... this and remove strict_overflow_p
4167 (gimple_stmt_nonzero_warnv_p): Rename to ...
4168 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
4170 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
4171 (extract_range_basic): Adjust, do not disable propagation on
4172 strict overflow sensitive simplification.
4173 (vrp_visit_cond_stmt): Likewise.
4175 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
4177 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
4178 body size unconditionally.
4180 2017-05-07 Jeff Law <law@redhat.com>
4183 2017-05-06 Jeff Law <law@redhat.com>
4184 PR tree-optimization/78496
4185 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
4188 PR tree-optimization/78496
4189 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
4190 (simplify_stmt_using_ranges): Call it.
4191 (vrp_dom_walker::before_dom_children): Extract equivalences
4192 from an ASSERT_EXPR with an equality comparison against a
4195 2017-05-06 Jeff Law <law@redhat.com>
4197 PR tree-optimization/78496
4198 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
4201 PR tree-optimization/78496
4202 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
4203 (simplify_stmt_using_ranges): Call it.
4204 (vrp_dom_walker::before_dom_children): Extract equivalences
4205 from an ASSERT_EXPR with an equality comparison against a
4208 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
4210 * lra-constraints.c (lra_copy_reg_equiv): New function.
4211 (split_reg): Use it to copy equivalence information from the
4212 original register to the spill register.
4214 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
4216 PR rtl-optimization/75964
4217 * simplify-rtx.c (simplify_const_relational_operation): Remove
4218 invalid handling of comparisons of integer ABS.
4220 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
4222 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
4224 (init_regs): Remove declaration.
4225 (function_arg_advance_32): Initialize error_p as boolean variable.
4227 2017-05-05 Nathan Sidwell <nathan@acm.org>
4229 * store-motion.c (remove_reachable_equiv_notes): Reformat long
4230 lines. Use for (;;).
4232 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4234 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
4235 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
4236 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
4237 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
4238 VF=2 that require versioning.
4240 2017-05-05 David Malcolm <dmalcolm@redhat.com>
4242 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
4245 2017-05-05 David Malcolm <dmalcolm@redhat.com>
4247 * diagnostic.h (diagnostic_override_option_index): Convert from
4248 macro to inline function.
4250 2017-05-05 David Malcolm <dmalcolm@redhat.com>
4252 * diagnostic.c (last_module_changed_p): New function.
4253 (set_last_module): New function.
4254 (diagnostic_report_current_module): Convert macro usage to
4255 the above functions.
4256 * diagnostic.h (diagnostic_context::last_module): Strengthen
4257 from const line_map * to const line_map_ordinary *.
4258 (diagnostic_last_module_changed): Delete macro.
4259 (diagnostic_set_last_module): Delete macro.
4261 2017-05-05 David Malcolm <dmalcolm@redhat.com>
4263 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
4264 with diagnostic_report_diagnostic.
4265 (diagnostic_n_impl_richloc): Likewise.
4266 * diagnostic.h (report_diagnostic): Delete macro.
4267 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
4268 with diagnostic_report_diagnostic.
4269 * substring-locations.c (format_warning_va): Likewise.
4271 2017-05-05 David Malcolm <dmalcolm@redhat.com>
4273 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
4274 save/restor of format_spec. Move option-printing code to...
4275 (print_option_information): ...this new function, and
4276 reimplement by simply printing to the pretty_printer,
4277 rather than appending to the format string.
4279 2017-05-05 David Malcolm <dmalcolm@redhat.com>
4281 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
4282 handling logic into...
4283 (update_effective_level_from_pragmas): ...this new function.
4285 2017-05-04 Andrew Waterman <andrew@sifive.com>
4287 * config/riscv/riscv.opt (mstrict-align): New option.
4288 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
4289 (SLOW_UNALIGNED_ACCESS): Define.
4290 (riscv_slow_unaligned_access): Declare.
4291 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
4293 (riscv_slow_unaligned_access): New variable.
4294 (rocket_tune_info): Set slow_unaligned_access to true.
4295 (optimize_size_tune_info): Set slow_unaligned_access to false.
4296 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
4297 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
4298 (riscv_option_override): Set riscv_slow_unaligned_access.
4299 * doc/invoke.texi: Add -mstrict-align to RISC-V.
4301 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
4303 * config/riscv/riscv.md: Unify indentation.
4305 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4310 * config/rs6000/rs6000.md (u code attribute): Add FIX and
4312 (extendsi<mode>2): Add support for doing sign extension via
4313 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
4314 don't have ISA 3.0 instructions.
4315 (extendsi<mode>2 splitter): Likewise.
4316 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
4317 generate the normal insns since SImode can now go in vector
4318 registers. Disallow the special UNSPECs needed for previous
4319 machines to hide SImode being used. Add new insns
4320 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
4321 (fix_trunc<mode>si2_stfiwx): Likewise.
4322 (fix_trunc<mode>si2_internal): Likewise.
4323 (fixuns_trunc<mode>si2): Likewise.
4324 (fixuns_trunc<mode>si2_stfiwx): Likewise.
4325 (fctiw<u>z_<mode>_smallint): Likewise.
4326 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
4327 of floating point to 32-bit integer from doing a direct move to
4328 the GPR registers to do a store.
4329 (fctiwz_<mode>): Break long line.
4331 2017-05-05 Bin Cheng <bin.cheng@arm.com>
4333 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
4334 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
4335 (addr_list, addr_offset_valid_p): New.
4336 (split_address_groups): Check offset validity with above function.
4337 (gt-tree-ssa-loop-ivopts.h): Include header file.
4339 2017-05-05 Nathan Sidwell <nathan@acm.org>
4341 * config.gcc (arm*-*-*): Add missing 'fi'.
4343 2017-05-05 Steve Ellcey <sellcey@cavium.com>
4345 * doc/invoke.texi (-fopt-info): Explicitly say order of options
4346 included in -fopt-info does not matter.
4347 * doc/optinfo.texi (-fopt-info): Fix description of default
4348 behavour. Explicitly say order of options included in -fopt-info
4351 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
4353 * config.gcc: Allow combinations of aprofile and rmprofile values for
4354 --with-multilib-list.
4355 * config/arm/t-multilib: New file.
4356 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
4357 variables. Remove setting of ISA and floating-point ABI in
4358 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
4359 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
4360 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
4361 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
4363 * config/arm/t-rmprofile: Likewise except for the matches changes.
4364 * doc/install.texi (--with-multilib-list): Document the combination of
4365 aprofile and rmprofile values and warn about pitfalls in doing that.
4367 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
4369 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
4370 (movdi_aarch64): Likewise.
4372 2017-05-05 Jakub Jelinek <jakub@redhat.com>
4374 PR tree-optimization/80632
4375 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
4377 (build_arrays): Initialize it for virtual phis.
4378 (fix_phi_nodes): Use it for virtual phis.
4380 PR tree-optimization/80558
4381 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
4382 [x, y] op z into [x op, y op z] for op & or | if conditions
4385 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
4386 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
4389 * config/arm/arm.md (use_literal_pool): Remove.
4390 (64-bit immediate split): No longer takes cost into consideration
4391 if arm_disable_literal_pool is enabled.
4392 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
4393 used when arm_disable_literal_pool is enabled.
4394 (arm_max_const_double_inline_cost): Remove use of
4395 arm_disable_literal_pool.
4396 (push_minipool_fix): Add assert.
4397 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
4398 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
4399 (no_literal_pool_sf_immediate): New.
4401 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4403 PR tree-optimization/80613
4404 * tree-ssa-dce.c (propagate_necessity): Remove cases for
4405 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
4407 2017-05-05 Richard Biener <rguenther@suse.de>
4409 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
4411 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
4413 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
4414 of this flag from insn conditions due to removal from r247495.
4416 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
4418 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
4420 (arm_early_store_addr_dep_ptr): Likewise.
4421 * config/arm/aarch-common-protos.h
4422 (arm_early_load_addr_dep_ptr): Add prototype.
4423 (arm_early_store_addr_dep_ptr): Likewise.
4424 * config/arm/cortex-a53.md: Add new bypasses.
4426 2017-05-05 Jakub Jelinek <jakub@redhat.com>
4428 * tree.c (next_type_uid): Change type to unsigned.
4429 (type_hash_canon): Decrement back next_type_uid if
4430 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
4431 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
4434 2017-05-04 Martin Sebor <msebor@redhat.com>
4436 * builtins.c: Fix a trivial typo in a comment.
4439 * builtins.c (check_sizes): Adjust to handle reading past the end.
4440 Avoid printing excessive upper bound of ranges. Use %E to print
4441 tree nodes instead of converting them to %wu.
4442 (expand_builtin_memchr): New function.
4443 (compute_dest_size): Rename...
4444 (compute_objsize): ...to this.
4445 (expand_builtin_memcpy): Adjust.
4446 (expand_builtin_mempcpy): Adjust.
4447 (expand_builtin_strcat): Adjust.
4448 (expand_builtin_strcpy): Adjust.
4449 (check_strncat_sizes): Adjust.
4450 (expand_builtin_strncat): Adjust.
4451 (expand_builtin_strncpy): Adjust and simplify.
4452 (expand_builtin_memset): Adjust.
4453 (expand_builtin_bzero): Adjust.
4454 (expand_builtin_memcmp): Adjust.
4455 (expand_builtin): Handle memcmp.
4456 (maybe_emit_chk_warning): Check strncat just once.
4458 2017-05-04 Martin Sebor <msebor@redhat.com>
4460 PR preprocessor/79214
4463 * builtins.c (check_sizes): Add inlining context and issue
4464 warnings even when -Wno-system-headers is set.
4465 (check_strncat_sizes): Same.
4466 (expand_builtin_strncat): Same.
4467 (expand_builtin_memmove): New function.
4468 (expand_builtin_stpncpy): Same.
4469 (expand_builtin): Handle memmove and stpncpy.
4471 2017-05-04 Bin Cheng <bin.cheng@arm.com>
4473 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
4474 which is not used any more.
4476 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
4478 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
4480 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
4482 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
4483 (cortexa53_tunings): Likewise.
4484 (cortexa57_tunings): Likewise.
4485 (cortexa72_tunings): Likewise.
4486 (cortexa73_tunings): Likewise.
4488 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
4490 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
4491 Set loop alignment to 8.
4493 2017-05-04 Martin Sebor <msebor@redhat.com>
4495 PR translation/80280
4496 * builtins.c (expand_builtin_object_size): Add missing quoting to
4497 %D and like directives.
4498 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
4499 (hsa_type_for_tree_type): Same.
4500 (verify_function_arguments): Same.
4501 * symtab.c (symbol_table::change_decl_assembler_name): Same.
4502 * varasm.c (get_section): Same.
4505 2017-05-04 Martin Sebor <msebor@redhat.com>
4507 PR translation/80280
4508 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
4510 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
4512 * config/aarch64/aarch64.c (generic_addrcost_table):
4513 Change HI/TI mode setting.
4515 2017-05-04 Martin Jambor <mjambor@suse.cz>
4517 PR tree-optimization/80622
4518 * tree-sra.c (comes_initialized_p): New function.
4519 (build_accesses_from_assign): Only set write lazily when
4520 comes_initialized_p is false.
4521 (analyze_access_subtree): Use comes_initialized_p.
4522 (propagate_subaccesses_across_link): Assert !comes_initialized_p
4523 instead of testing for PARM_DECL.
4525 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4527 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
4528 constraint on operand 0 to allow more general addressing modes.
4529 Adjust output template.
4530 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
4532 * config/aarch64/aarch64-protos.h
4533 (aarch64_address_valid_for_prefetch_p): Declare prototype.
4534 * config/aarch64/constraints.md (Dp): New address constraint.
4535 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
4538 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
4540 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
4541 update use of estimate_ipcp_clone_size_and_time.
4542 (estimate_local_effects): Update use of
4543 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
4544 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
4545 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
4546 Return nonspecialized time.
4548 2017-05-04 Richard Biener <rguenther@suse.de>
4550 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
4551 for the last VUSE which def dominates the PHI. Directly call
4553 (get_continuation_for_phi_1): Remove.
4555 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
4557 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
4558 to explain the use of truncating division. Cap the number of
4559 iterations to the maximum given by nb_iterations_upper_bound,
4562 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4564 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
4565 * configure: Regenerate.
4566 * config.in: Regenerate.
4567 * config/i386/driver-mingw32.c: new file.
4568 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
4569 * config.host: Link driver-mingw32.o on MinGW host.
4570 * doc/install.texi: Document new --enable-mingw-wildcard configure
4573 2017-05-04 Marek Polacek <polacek@redhat.com>
4575 PR tree-optimization/80612
4576 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
4578 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
4579 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
4581 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
4582 (movt splitter): Likewise.
4583 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
4584 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
4585 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
4586 block for Thumb-1 with MOVT.
4587 (thumb2_legitimate_address_p): Move code block ...
4588 (can_avoid_literal_pool_for_label_p): ... into this new function.
4589 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
4591 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
4592 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
4593 "M-profile targets with the MOVT instruction".
4595 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
4597 * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
4598 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
4599 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
4601 2017-05-04 Martin Liska <mliska@suse.cz>
4603 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
4606 2017-05-04 Richard Biener <rguenther@suse.de>
4608 * tree.c (array_at_struct_end_p): Handle arrays at struct
4609 end with flexarrays more conservatively. Refactor and treat
4610 arrays of arrays or aggregates more strict. Fix
4611 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
4612 * tree.c (array_at_struct_end_p): Adjust prototype.
4613 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
4614 * gimple-fold.c (get_range_strlen): Likewise.
4615 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
4617 2017-05-04 Richard Biener <rguenther@suse.de>
4619 PR tree-optimization/31130
4620 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
4622 (supports_overflow_infinity): Likewise.
4623 (is_negative_overflow_infinity): Likewise.
4624 (is_positive_overflow_infinity): Likewise.
4625 (is_overflow_infinity): Likewise.
4626 (stmt_overflow_infinity): Likewise.
4627 (overflow_infinity_range_p): Likewise.
4628 (usable_range_p): Remove as always returning true.
4629 (make_overflow_infinity): Remove.
4630 (negative_overflow_infinity): Likewise.
4631 (positive_overflow_infinity): Likewise.
4632 (avoid_overflow_infinity): Likewise.
4633 (set_value_range): Adjust accordingly.
4634 (set_value_range_to_nonnegative): Likewise, remove now unused
4635 overflow_infinity arg.
4636 (vrp_operand_equal_p): Adjust.
4637 (update_value_range): Likewise.
4638 (range_int_cst_singleton_p): Likewise.
4639 (operand_less_p): Likewise.
4640 (compare_values_warnv): Likewise.
4641 (extract_range_for_var_from_comparison_expr): Likewise.
4642 (vrp_int_const_binop): Likewise.
4643 (zero_nonzero_bits_from_vr): Likewise.
4644 (extract_range_from_multiplicative_op_1): Likewise.
4645 (extract_range_from_binary_expr_1): Likewise.
4646 (extract_range_from_unary_expr): Likewise.
4647 (extract_range_from_comparison): Likewise.
4648 (extract_range_basic): Likewise.
4649 (adjust_range_with_scev): Likewise.
4650 (compare_ranges): Likewise.
4651 (compare_range_with_value): Likewise.
4652 (dump_value_range): Likewise.
4653 (test_for_singularity): Likewise, remove strict_overflow_p parameter
4655 (simplify_cond_using_ranges): Adjust.
4657 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
4659 * brig-builtins.def: Added a builtin for class_f64.
4660 * builtin-types.def: Added a builtin type needed by class_f64.
4662 2017-05-03 Jason Merrill <jason@redhat.com>
4664 * timevar.def: Add TV_CONSTEXPR.
4666 2017-05-03 David Malcolm <dmalcolm@redhat.com>
4668 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
4670 2017-05-03 Martin Jambor <mjambor@suse.cz>
4672 * ipa-prop.c (ipa_update_after_lto_read): Removed.
4673 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
4674 * ipa-cp.c (ipcp_propagate_stage): Do not call
4675 ipa_update_after_lto_read.
4676 * ipa-inline.c (ipa_inline): Likewise.
4678 2017-05-03 Martin Jambor <mjambor@suse.cz>
4680 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
4681 tag. Added a default constructor and a destructor.
4682 (ipa_edge_args_sum_t): New class;
4683 (ipa_edge_args_sum): Declare.
4684 (ipa_edge_args_vector): Remove declaration.
4685 (IPA_EDGE_REF): Use ipa_edge_args_sum.
4686 (ipa_free_edge_args_substructures): Remove declaration.
4687 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
4688 (ipa_edge_args_info_available_for_edge_p): Likewise.
4689 * ipa-prop.c (ipa_edge_args_vector): Removed.
4690 (edge_removal_hook_holder): Likewise.
4691 (edge_duplication_hook_holder): Likewise.
4692 (ipa_edge_args_sum): New variable.
4693 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
4694 ipa_edge_args_vector.
4695 (ipa_free_edge_args_substructures): Likewise.
4696 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
4697 ipa_edge_args_vector.
4698 (ipa_edge_removal_hook): Turned into method
4699 ipa_edge_args_sum_t::remove.
4700 (ipa_edge_duplication_hook): Turned into method
4701 ipa_edge_args_sum_t::duplicate.
4702 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
4703 registering edge hooks.
4704 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
4705 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
4706 ipa_edge_args_sum instead of ipa_edge_args_vector.
4707 * ipa-profile.c (ipa_profile): Likewise.
4709 2017-05-03 Martin Jambor <mjambor@suse.cz>
4711 * symbol-summary.h (function_summary): New method exists.
4712 (function_summary::symtab_removal): Deallocate through release.
4713 (call_summary): New class.
4714 (gt_ggc_mx): New overload.
4715 (gt_pch_nx): Likewise.
4716 (gt_pch_nx): Likewise.
4718 2017-05-03 Jeff Law <law@redhat.com>
4720 PR tree-optimization/78496
4721 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
4722 from simplify_cond_using_ranges. Split off code to walk
4723 backwards through casts into ...
4724 (simplify_cond_using_ranges_2): New function.
4725 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
4726 (execute_vrp): After identifying jump threads, call
4727 simplify_cond_using_ranges_2.
4729 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
4732 * ipa-inline.h (inline_summary): Add ctor.
4733 (create_ggc): Do not use ggc_cleared_alloc.
4735 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
4736 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4738 * gcc.c (handle_braces): Support escaping in switch matching
4740 * doc/invoke.texi (Spec Files): Document it.
4741 Remove superfluous @code markup in items.
4743 2017-05-03 David Malcolm <dmalcolm@redhat.com>
4745 * diagnostic-show-locus.c (struct column_range): New struct.
4746 (get_affected_columns): New function.
4747 (get_printed_columns): New function.
4748 (struct correction): New struct.
4749 (correction::ensure_capacity): New function.
4750 (correction::ensure_terminated): New function.
4751 (struct line_corrections): New struct.
4752 (line_corrections::~line_corrections): New dtor.
4753 (line_corrections::add_hint): New function.
4754 (layout::print_trailing_fixits): Reimplement in terms of the new
4756 (selftest::test_overlapped_fixit_printing): New function.
4757 (selftest::diagnostic_show_locus_c_tests): Call it.
4759 2017-05-03 Nathan Sidwell <nathan@acm.org>
4761 Canonicalize canonical type hashing
4762 * tree.h (type_hash_canon_hash): Declare.
4763 * tree.c (type_hash_list, attribute_hash_list): Move into
4764 type_hash_canon_hash.
4765 (build_type_attribute_qual_variant): Break out hash code calc into
4766 type_hash_canon_hash.
4767 (type_hash_canon_hash): New. Generic type hash computation.
4768 (build_range_type_1, build_array_type_1, build_function_type,
4769 build_method_type_directly, build_offset_type, build_complex_type,
4770 make_vector_type): Call it.
4772 2017-05-03 Richard Biener <rguenther@suse.de>
4774 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4775 When all DRs have unknown misaligned do not always peel
4776 when there is a store but apply the same costing model as if
4777 there were only loads.
4779 2017-05-03 Richard Biener <rguenther@suse.de>
4782 PR tree-optimization/80492
4783 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
4784 compare_base_decls returning dont-know properly.
4786 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
4788 * config/arm/iterators.md (CCSI): New mode iterator.
4789 (arch): New mode attribute.
4790 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
4791 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
4792 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
4793 code iterator for success result mode.
4794 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
4795 the corresponding new insn generators.
4797 2017-05-03 Bin Cheng <bin.cheng@arm.com>
4800 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4801 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
4803 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4805 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
4806 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
4807 (DDR_A): Wrap DDR argument in brackets.
4808 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
4809 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
4810 (DDR_REVERSED_P): Likewise.
4812 2017-05-03 Jakub Jelinek <jakub@redhat.com>
4814 PR tree-optimization/79472
4815 * tree-switch-conversion.c (struct switch_conv_info): Add
4816 contiguous_range and default_case_nonstandard fields.
4817 (collect_switch_conv_info): Compute contiguous_range and
4818 default_case_nonstandard fields, don't clear final_bb if
4819 contiguous_range and only the default case doesn't have the required
4821 (check_all_empty_except_final): Set default_case_nonstandard instead
4822 of failing if contiguous_range and the default case doesn't have empty
4824 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
4825 and only the default case doesn't have the required constants. Skip
4827 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
4828 if default_case_nonstandard.
4829 (build_constructors): Build constant 1 just once. Assert that default
4830 values aren't inserted in between cases if contiguous_range. Skip
4832 (build_arrays): Skip virtual phis.
4833 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
4834 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
4835 Handle virtual phis.
4836 (gen_inbound_check): Handle default_case_nonstandard case.
4837 (process_switch): Adjust check_final_bb caller. Call
4838 gather_default_values with the first non-default case instead of
4839 default case if default_case_nonstandard.
4841 2017-05-02 Nathan Sidwell <nathan@acm.org>
4843 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
4844 check. Fix formatting.
4846 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
4848 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
4849 errors when comparing specialized and unspecialized times.
4851 2017-05-02 David Malcolm <dmalcolm@redhat.com>
4853 * diagnostic-show-locus.c
4854 (layout::should_print_annotation_line_p): Make private.
4855 (layout::print_annotation_line): Make private.
4856 (layout::annotation_line_showed_range_p): Make private.
4857 (layout::show_ruler): Make private.
4858 (layout::print_source_line): Make private. Pass in line and
4859 line_width, rather than calling location_get_source_line. Drop
4861 (layout::print_leading_fixits): New method.
4862 (layout::print_any_fixits): Rename to...
4863 (layout::print_trailing_fixits): ...this, and make private.
4864 Don't print newline fixits.
4865 (diagnostic_show_locus): Move logic for printing one row into...
4866 (layout::print_line): ...this new function. Move the
4867 location_get_source_line call and error-handling from
4868 print_source_line to here. Call print_leading_fixits, and rename
4869 print_any_fixits to print_trailing_fixits.
4870 (selftest::test_fixit_insert_containing_newline): Update now that
4871 newlines are partially supported.
4872 (selftest::test_fixit_insert_containing_newline_2): New test.
4873 (selftest::test_fixit_replace_containing_newline): Update comments.
4874 (selftest::diagnostic_show_locus_c_tests): Call the new test.
4875 * edit-context.c (class added_line): New class.
4876 (class edited_line): Describe newline handling in comment.
4877 (edited_line::actually_edited_p): New method.
4878 (edited_line::print_content): Delete redundant decl.
4879 (edited_line::m_predecessors): New field.
4880 (edited_file::print_content): Call edited_line::print_content.
4881 (edited_file::print_diff): Update to support newlines.
4882 (edited_file::print_diff_hunk): Likewise.
4883 (edited_file::print_run_of_changed_lines): New function.
4884 (edited_file::print_diff_line): Convert to...
4885 (print_diff_line): ...this.
4886 (edited_file::get_effective_line_count): New function.
4887 (edited_line::edited_line): Initialize new field m_predecessors.
4888 (edited_line::~edited_line): Clean up m_predecessors.
4889 (edited_line::apply_fixit): Handle newlines.
4890 (edited_line::get_effective_line_count): New function.
4891 (edited_line::print_content): New function.
4892 (edited_line::print_diff_lines): New function.
4893 (selftest::test_applying_fixits_insert_containing_newline): New
4895 (selftest::test_applying_fixits_replace_containing_newline): New
4897 (selftest::insert_line): New function.
4898 (selftest::test_applying_fixits_multiple_lines): Add example of
4900 (selftest::edit_context_c_tests): Call the new tests.
4902 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4904 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
4905 parameter cand. Update dump information.
4906 (get_computation_cost): Update uses.
4908 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4910 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
4911 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
4912 (get_computation_at, rewrite_use_address): Update use of
4913 get_computation_aff.
4915 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4917 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
4918 (get_computation): Delete.
4919 (get_computation_cost): Implement like get_computation_cost_at.
4920 Use get_computation_at.
4921 (get_computation_cost_at): Delete.
4922 (rewrite_use_nonlinear_expr): Use get_computation_at.
4923 (rewrite_use_compare, remove_unused_ivs): Ditto.
4925 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4927 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
4929 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4931 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
4932 (ivopts_global_cost_for_size): Rename parameter and update uses.
4933 (iv_ca_recount_cost): Update uses.
4934 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
4935 candidates seperately in n_invs and n_cands.
4936 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
4938 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4940 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
4941 (find_inv_vars_cb): New.
4942 (find_depends): Renamed to ...
4943 (find_inv_vars): ... this.
4944 (add_candidate_1, force_var_cost): Call find_inv_vars.
4945 (split_address_cost, determine_group_iv_cost_cond): Ditto.
4947 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4949 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
4950 inv_vars. Add inv_exprs.
4951 (struct iv_cand): Rename depends_on to inv_vars.
4952 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
4953 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
4954 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
4955 (dump_cand): Dump inv_vars.
4956 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
4957 (record_invariant, find_depends, add_candidate_1): Ditto.
4958 (set_group_iv_cost, force_var_cost): Ditto.
4959 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
4960 (get_computation_cost_at, get_computation_cost): Ditto.
4961 (determine_group_iv_cost_generic): Ditto.
4962 (determine_group_iv_cost_address): Ditto.
4963 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
4964 (determine_group_iv_costs): Ditto.
4965 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
4966 (iv_ca_set_remove_invariants): Renamed to ...
4967 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
4968 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
4969 (iv_ca_set_add_invariants): Renamed to ...
4970 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
4971 (iv_ca_set_cp): Use iv_ca_set_add_invs.
4972 (iv_ca_has_deps): Support inv_vars and inv_exprs.
4973 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
4974 (create_new_ivs): Remove useless dump.
4976 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4978 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
4980 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
4981 (iv_ca_set_no_cp, create_new_iv): Ditto.
4983 2017-05-02 Bin Cheng <bin.cheng@arm.com>
4985 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
4987 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
4989 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
4990 function tree_check2.
4992 2017-05-02 Martin Liska <mliska@suse.cz>
4994 * doc/gcov.texi: Add missing preposition.
4995 * gcov.c (function_info::function_info): Properly fill up
4996 all member variables.
4998 2017-05-02 Tamar Christina <tamar.christina@arm.com>
5000 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
5002 2017-05-02 Tamar Christina <tamar.christina@arm.com>
5004 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
5006 2017-05-02 Martin Liska <mliska@suse.cz>
5009 * lto-streamer-in.c (lto_read_tree_1): Remove
5011 * lto-streamer.c (struct tree_hash_entry): Likewise.
5012 (struct tree_entry_hasher): Likewise.
5013 (tree_entry_hasher::hash): Likewise.
5014 (tree_entry_hasher::equal): Likewise.
5015 (lto_streamer_init): Likewise.
5016 (lto_orig_address_map): Likewise.
5017 (lto_orig_address_get): Likewise.
5018 (lto_orig_address_remove): Likewise.
5019 * lto-streamer.h: Likewise.
5020 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
5021 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
5023 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
5025 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
5026 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
5027 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
5028 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
5029 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
5030 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
5031 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
5032 (mm_maskz_sub_ss): New intrinsics.
5033 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
5034 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
5035 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
5036 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
5037 (__builtin_ia32_subss_mask_round): New builtins.
5038 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
5039 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
5040 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
5042 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
5043 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
5045 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
5048 2017-05-02 Martin Jambor <mjambor@suse.cz>
5050 PR tree-optimization/78687
5051 * tree-sra.c (access): New field parent.
5052 (process_subtree_disqualification): New function.
5053 (disqualify_candidate): Call it.
5054 (build_accesses_from_assign): Reset write flag if creating an
5056 (build_access_subtree): Fill in parent field and also prpagate
5057 down grp_write flag.
5058 (create_artificial_child_access): New parameter set_grp_write, set
5059 grp_write to its value.
5060 (propagate_subaccesses_across_link): Also propagate grp_write flag
5062 (propagate_all_subaccesses): Push the closest parent back to work
5063 queue if add_access_to_work_queue returned true.
5065 2017-05-02 Richard Biener <rguenther@suse.de>
5067 * common.opt (fstrict-overflow): Alias negative to fwrapv.
5068 * doc/invoke.texi (fstrict-overflow): Remove all traces of
5069 -fstrict-overflow documentation.
5070 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
5071 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
5072 flag_strict_overflow.
5073 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
5074 * lto-opts.c (lto_write_options): Do not stream it.
5075 * lto-wrapper.c (merge_and_complain): Do not handle it.
5076 * opts.c (default_options_table): Do not set -fstrict-overflow.
5077 (finish_options): Likewise do not clear it when sanitizing.
5078 * simplify-rtx.c (simplify_const_relational_operation): Do not
5079 test flag_strict_overflow.
5081 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
5083 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
5084 using enabled attribute.
5085 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
5086 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
5087 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
5088 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
5089 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
5090 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
5091 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
5092 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
5093 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
5094 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
5096 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
5098 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
5100 2017-05-02 Richard Biener <rguenther@suse.de>
5102 PR tree-optimization/80591
5104 2017-04-10 Richard Biener <rguenther@suse.de>
5106 * tree-ssa-structalias.c (find_func_aliases): Properly handle
5109 2017-05-02 Richard Biener <rguenther@suse.de>
5111 PR tree-optimization/80549
5112 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
5113 (cleanup_tree_cfg_noloop): Create forwarders to known loop
5114 headers if they do not have a preheader.
5116 2017-05-02 Martin Liska <mliska@suse.cz>
5119 * common.opt: Fix typo.
5120 * doc/invoke.texi: Likewise.
5122 2017-05-01 Jan Beulich <jbeulich@suse.com>
5124 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
5125 swapping, add (x,x,m,x,n) alternative.
5127 2017-05-01 Nathan Sidwell <nathan@acm.org>
5129 * calls.c (combine_pending_stack_adjustment_and_call): Remove
5130 unnecessary unadjusted_alignment check.
5132 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
5135 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
5137 * gimplify.c (gimplify_cilk_detach): New function.
5138 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
5139 * tree-core.h: Document EXPR_CILK_SPAWN.
5140 * tree.h (EXPR_CILK_SPAWN): Define.
5142 2017-05-01 David Malcolm <dmalcolm@redhat.com>
5144 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
5145 to use new fixit_hint representation, using the "replace" logic.
5146 (get_line_span_for_fixit_hint): Likewise.
5147 (layout::print_any_fixits): Likewise.
5148 (selftest::test_one_liner_many_fixits): Rename to...
5149 (selftest::test_one_liner_many_fixits_1): ...this, and update
5150 comment and expected output to reflect that the multiple fix-it
5151 hints are now consolidated into one insertion.
5152 (selftest::test_one_liner_many_fixits_2): New test.
5153 (selftest::test_diagnostic_show_locus_one_liner): Update for
5155 (selftest::test_fixit_consolidation): Update for fix-it API
5157 * diagnostic.c (print_parseable_fixits): Likewise.
5158 * edit-context.c (edited_line::m_line_events): Convert from
5159 auto_vec <line_event *> to auto_vec <line_event>.
5160 (class line_event): Convert from abstract base class to a concrete
5161 class, taking over the role of replace_event.
5162 (class insert_event): Delete.
5163 (class replace_event): Rename to class line_event. Convert to
5165 (edit_context::add_fixits): Reimplement.
5166 (edit_context::apply_insert): Delete.
5167 (edit_context::apply_replace): Rename to...
5168 (edit_context::apply_fixit): ...this. Convert to half-open range.
5169 (edited_file::apply_insert): Delete.
5170 (edited_file::apply_replace): Rename to...
5171 (edited_file::apply_fixit): ...this.
5172 (edited_line::~edited_line): Drop deletion of events.
5173 (edited_line::apply_insert): Delete.
5174 (edited_line::apply_replace): Rename to...
5175 (edited_line::apply_fixit): ...this. Convert to half-open range.
5176 Update for change to type of m_line_events.
5177 * edit-context.h (edit_context::apply_insert): Delete.
5178 (edit_context::apply_replace): Rename to...
5179 (edit_context::apply_fixit): ...this.
5181 2017-05-01 Martin Sebor <msebor@redhat.com>
5183 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
5186 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
5189 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
5190 __get_cpuid_max returns 0.
5191 (__get_cpuid_count): Ditto.
5193 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
5195 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
5196 replacement expression is another instance of one of its arguments.
5198 2017-05-01 Jakub Jelinek <jakub@redhat.com>
5201 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
5202 check for stack push/pop autoinc.
5203 * config/i386/i386.c (ix86_agi_dependent): Return false
5204 if the only reason why modified_in_p returned true is that
5205 addr is SP based and set_insn is a push or pop.
5207 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
5209 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
5212 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
5215 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
5216 (account_size_time): Use two predicates - exec_pred and
5218 (evaluate_conditions_for_known_args): Compute both clause and
5220 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
5221 (inline_summary_t::duplicate): Update.
5222 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
5224 (compute_inline_parameters): Likewise.
5225 (estimate_edge_size_and_time): Update caluclation of time.
5226 (estimate_node_size_and_time): Compute both time and nonspecialized
5228 (estimate_ipcp_clone_size_and_time): Update.
5229 (inline_merge_summary): Update.
5230 (do_estimate_edge_time): Update.
5231 (do_estimate_edge_size): Update.
5232 (do_estimate_edge_hints): Update.
5233 (inline_read_section, inline_write_summary): Stream both new predicates.
5234 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
5236 (compute_inlined_call_time): Cleanup.
5237 (big_speedup_p): Update.
5238 (edge_badness): Update.
5239 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
5240 (size_time_entry): Replace predicate by exec_predicate and
5242 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
5243 (estimate_edge_time): Return also nonspec_time.
5244 (reset_edge_growth_cache): Update.
5246 2017-04-29 Jakub Jelinek <jakub@redhat.com>
5248 PR rtl-optimization/80491
5249 * ifcvt.c (noce_process_if_block): When looking for x setter
5250 with missing else_bb, don't check only the insn right before
5251 cond_earliest, but look for the last insn that x is modified in
5254 PR rtl-optimization/80491
5255 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
5257 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
5259 PR tree-optimization/80487
5260 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
5262 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5264 PR tree-optimization/79697
5265 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
5266 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
5267 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
5269 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
5270 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
5272 2017-04-28 Martin Sebor <msebor@redhat.com>
5274 PR tree-optimization/80523
5275 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
5276 (init_target_to_host_charmap, target_to_host, target_strtol10): New
5278 (maybe_warn, format_directive, parse_directive): Use new functions.
5279 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
5281 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
5283 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
5285 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5287 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
5288 target_header_dir): Set correctly.
5289 * configure: Regenerated.
5290 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
5291 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
5292 instead of SYSTEM_HEADER_DIR.
5294 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
5296 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
5297 (estimate_local_effects): Likewise.
5298 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
5299 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
5300 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
5301 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
5302 do_estimate_edge_time, estimate_edge_time): Likewise.
5303 * ipa-inline-analysis.c (estimate_node_size_and_time,
5304 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
5305 (estimate_time_after_inlining): Remove.
5307 2017-04-28 Martin Liska <mliska@suse.cz>
5309 * doc/gcov.texi: Enhance documentation of gcov.
5311 2017-04-28 Martin Liska <mliska@suse.cz>
5313 * doc/gcov.texi: Sort options in alphabetic order.
5314 * doc/gcov-dump.texi: Likewise.
5315 * doc/gcov-tool.texi: Likewise.
5316 * gcov.c (print_usage): Likewise.
5317 * gcov-dump.c (print_usage): Likewise.
5318 * gcov-tool.c (print_merge_usage_message): Likewise.
5319 (print_rewrite_usage_message): Likewise.
5320 (print_overlap_usage_message): Likewise.
5322 2017-04-28 Martin Liska <mliska@suse.cz>
5324 PR gcov-profile/53915
5325 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
5327 2017-04-28 Martin Liska <mliska@suse.cz>
5329 PR gcov-profile/79891
5330 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
5331 is marked by compiler as living on a line.
5332 (get_cycles_count): Remove usage of the union.
5333 (output_intermediate_file): Likewise.
5334 (find_source): Fix GNU coding style.
5335 (accumulate_line_counts): Remove old non-all block mode.
5336 (output_lines): Remove usage of the union.
5337 * profile.c (output_location): Include all BBs, even if
5338 belonging to a same line (and file) as a previous BB.
5340 2017-04-28 Martin Liska <mliska@suse.cz>
5342 * gcov.c (process_args): Handle new argument 'w'.
5343 (read_graph_file): Assign ID to BBs.
5344 (output_branch_count): Display BB # if verbose flag is set.
5345 (output_lines): Likewise for arcs.
5346 (print_usage): Add '--verbose' option help.
5347 * doc/gcov.texi: Document --verbose (-w) option.
5349 2017-04-28 Martin Liska <mliska@suse.cz>
5351 * gcov.c (struct block_location_info): New struct.
5352 (process_file): Fill up the new structure.
5353 (read_graph_file): Replace usage of encoding by the newly added
5355 (add_line_counts): Likewise.
5356 (accumulate_line_counts): Remove usage of the union.
5357 (function_info::function_info): New function.
5358 (function_info::~function_info): Likewise.
5359 (process_file): Call delete instead of release_function.
5360 (release_function): Release the function.
5361 (release_structures): Call delete instead of release_function.
5362 (solve_flow_graph): Replace usage of num_blocks.
5363 (find_exception_blocks): Likewise.
5364 (output_lines): Fix GNU coding style.
5366 2017-04-28 Martin Liska <mliska@suse.cz>
5369 * coverage.c (coverage_remove_note_file): New function.
5370 * coverage.h: Declare the function.
5371 * toplev.c (finalize): Clean if an error has been seen.
5373 2017-04-28 Martin Liska <mliska@suse.cz>
5375 PR gcov-profile/80031
5376 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
5377 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
5378 * gcov.c (read_graph_file): Read just number of blocks.
5379 * profile.c (branch_prob): Do not stream 0 flags per a basic
5382 2017-04-28 Martin Liska <mliska@suse.cz>
5384 * gcov-dump.c (tag_*): Add new argument to declarations.
5385 (dump_gcov_file): Likewise.
5386 (tag_blocks): Add and use new argument depth.
5387 (tag_arcs): Likewise.
5388 (tag_lines): Likewise.
5389 (tag_counters): Likewise.
5390 (tag_summary): Likewise.
5391 (dump_working_sets): Use depth to do a proper indentation.
5393 2017-04-28 Jakub Jelinek <jakub@redhat.com>
5396 * cgraph.h (symtab_node::debug_symtab): No longer inline.
5397 * symtab.c (symtab_node::debug_symtab): Move definition here.
5399 2017-04-28 Richard Biener <rguenther@suse.de>
5401 * lto-streamer.h (LTO_major_version): Bump to 7.
5403 2017-04-28 Richard Biener <rguenther@suse.de>
5405 * tree-vrp.c (assert_info): New struct.
5406 (add_assert_info): New helper.
5407 (register_edge_assert_for_2): Refactor to add asserts to a vector
5409 (register_edge_assert_for_1): Likewise.
5410 (register_edge_assert_for): Likewise.
5411 (finish_register_edge_assert_for): New helper actually registering
5412 asserts where live on edge.
5413 (find_conditional_asserts): Adjust.
5414 (find_switch_asserts): Likewise.
5415 (evrp_dom_walker::try_find_new_range): Generalize.
5416 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
5418 2017-04-27 Marek Polacek <polacek@redhat.com>
5421 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
5422 arg10 and arg11 to itype.
5424 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
5426 * doc/extend.texi (Object Size Checking): Improve grammar.
5428 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
5431 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
5432 that the logic for permitting reciprocal estimates matches that
5435 2017-04-27 Jakub Jelinek <jakub@redhat.com>
5438 * tree.c (type_cache_hasher::equal): Only compare
5439 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
5440 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
5441 non-aggregate element types.
5442 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
5443 about the flag on ARRAY_TYPEs in the comment, formatting fix.
5445 2017-04-27 Richard Biener <rguenther@suse.de>
5448 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
5449 stripping ARRAY_REFs from MEM_EXPR make sure we're not
5450 keeping a reference to a trailing array.
5452 2017-04-27 Richard Biener <rguenther@suse.de>
5455 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
5456 being in loop-closed SSA form conservatively.
5457 (chrec_fold_multiply_poly_poly): Likewise.
5459 2017-04-27 Tamar Christina <tamar.christina@arm.com>
5462 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
5463 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
5465 2017-04-27 Jakub Jelinek <jakub@redhat.com>
5468 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
5469 (aarch64_function_arg_alignment): Return unsigned int again, but still
5470 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
5471 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
5472 Don't emit -Wpsabi note.
5473 (aarch64_function_arg_boundary): Likewise.
5474 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
5477 2017-04-26 Nathan Sidwell <nathan@acm.org>
5479 * tree.h (crc32_unsigned_n): Declare.
5480 (crc32_unsigned, crc32_unsigned): Make inline.
5481 * tree.c (crc32_unsigned_bits): Replace with ...
5482 (crc32_unsigned_n): ... this.
5483 (crc32_unsigned, crc32_byte): Remove.
5484 (crc32_string): Remove unnecessary braces.
5486 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
5488 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
5489 * ipa-inline-analysis.c (MAX_TIME): Remove.
5490 (account_size_time): Use sreal for time.
5491 (dump_inline_summary): Update.
5492 (estimate_function_body_sizes): Update.
5493 (estimate_edge_size_and_time): Update.
5494 (estimate_calls_size_and_time): Update.
5495 (estimate_node_size_and_time): Update.
5496 (inline_merge_summary): Update.
5497 (inline_update_overall_summary): Update.
5498 (estimate_time_after_inlining): Update.
5499 (inline_read_section): Update.
5500 (inline_write_summary): Update.
5501 * ipa-inline.c (compute_uninlined_call_time): Update.
5502 (compute_inlined_call_time): Update.
5503 (recursive_inlining): Update.
5504 (inline_small_functions): Update.
5505 (dump_overall_stats): Update.
5506 * ipa-inline.h: Include sreal.h.
5507 (size_time_entry): Turn time to sreal.
5508 (inline_summary): Turn self_time nad time to sreal.
5510 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
5512 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
5514 (sreal::stream_out, sreal::stream_in): New.
5515 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
5517 2017-04-25 Jakub Jelinek <jakub@redhat.com>
5519 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
5522 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
5525 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
5527 (dimode_scalar_chain::compute_convert_gain): Ditto.
5528 (dimode_scalar_chain::make_vector_copies): Ditto.
5529 (dimode_scalar_chain::convert_reg): Ditto.
5530 (dimode_scalar_chain::convert_insn): Ditto.
5531 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
5532 (VI248_AVX512BW_1): New mode iterator.
5533 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
5534 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
5537 2017-04-25 Martin Sebor <msebor@redhat.com>
5539 PR tree-optimization/80497
5540 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
5541 constants are representable in HOST_WIDE_INT.
5542 (parse_directive): Ditto.
5544 2017-04-25 Martin Sebor <msebor@redhat.com>
5547 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
5548 (new_zero_array): Adjust signature.
5549 (dom_info::dom_init): Used unsigned rather that size_t.
5550 (dom_info::dom_info): Same.
5552 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5553 Jakub Jelinek <jakub@redhat.com>
5556 * config/arm/arm.c: Include gimple.h.
5557 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
5558 returns negative, increment ncrn only if it returned positive.
5559 (arm_needs_doubleword_align): Return int instead of bool,
5560 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
5561 members, but if there is any such non-FIELD_DECL
5562 > PARM_BOUNDARY aligned decl, return -1 instead of false.
5563 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
5564 returns negative, increment nregs only if it returned positive.
5565 (arm_setup_incoming_varargs): Likewise.
5566 (arm_function_arg_boundary): Emit -Wpsabi note if
5567 arm_needs_doubleword_align returns negative, return
5568 DOUBLEWORD_ALIGNMENT only if it returned positive.
5570 2017-04-25 Marek Polacek <polacek@redhat.com>
5573 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
5574 first argument to type.
5576 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
5579 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
5580 type checks to test for compatibility instead of equality.
5582 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5583 Jakub Jelinek <jakub@redhat.com>
5586 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
5588 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
5589 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
5590 the alignment computation, but return their maximum in warn_alignment.
5591 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
5592 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
5594 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
5595 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
5598 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5600 * config/arc/simdext.md (dmpyh): Fix typo.
5602 2017-04-25 Richard Biener <rguenther@suse.de>
5604 PR tree-optimization/80492
5605 * alias.c (compare_base_decls): Handle registers with asm
5606 specification conservatively.
5607 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
5608 compare_base_decls returning dont-know properly.
5610 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5612 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
5613 (legitimate_offset_address_p): New function.
5614 (arc_legitimate_address_p): Use above function.
5616 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5618 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
5620 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5622 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
5623 ACCH registers whenever they are available.
5625 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5627 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
5628 double regs fix when not used.
5630 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5632 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
5634 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
5635 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
5637 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5639 * config/arc/arc.c (arc_output_addsi): Check for h-register class
5640 when emitting short ADD instructions.
5642 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
5644 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
5646 (cmpsi_cc_c_insn): Likewise.
5647 (cbranchsi4_scratch): Compute proper instruction length using
5648 compact_hreg_operand.
5649 * config/arc/predicates.md (compact_hreg_operand): New predicate.
5651 2017-04-25 Richard Biener <rguenther@suse.de>
5654 * passes.c (pass_manager::pass_manager): Initialize
5657 2017-04-25 Richard Biener <rguenther@suse.de>
5659 PR tree-optimization/79201
5660 * tree-ssa-sink.c (statement_sink_location): Handle calls.
5662 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5665 * config/s390/vector.md: Split MEM->GPR vector moves for
5666 non-s_operand addresses.
5668 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5671 * config/s390/predicates.md (reload_const_wide_int_operand): New
5673 * config/s390/s390.md ("movti"): Remove d/P alternative.
5674 ("movti_bigconst"): New pattern definition.
5676 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
5679 * s390-protos.h (s390_expand_cs_hqi): Removed.
5680 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
5681 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
5682 modes as well as CCZ1mode and CCZmode.
5683 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
5684 signature of s390_emit_compare_and_swap.
5685 (s390_expand_cs_hqi): Likewise, make static.
5686 (s390_expand_cs_tdsi): Generate an explicit compare before trying
5687 compare-and-swap, in some cases.
5688 (s390_expand_cs): Wrapper function.
5689 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
5691 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
5692 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
5693 patterns for small and large integers. Forbid symref memory operands.
5694 Move expander to s390.c. Require cc register.
5695 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
5696 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
5697 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
5698 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
5699 symref memory operands. Remove CC mode and call s390_match_ccmode
5701 ("atomic_exchange<mode>"): Allow and implement all integer modes.
5703 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
5705 * config/s390/s390.md (define_peephole2): New peephole to help
5706 combining the load-and-test pattern with volatile memory.
5708 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
5710 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
5711 with CCZmode for TARGET_Z196.
5713 2017-04-25 Jakub Jelinek <jakub@redhat.com>
5715 PR rtl-optimization/80501
5716 * combine.c (make_compound_operation_int): Set subreg_code to SET
5717 even for AND with mask of the sign bit of mode.
5719 PR rtl-optimization/80500
5720 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
5721 sum's initial value.
5723 2017-04-25 Julian Brown <julian@codesourcery.com>
5724 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
5726 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
5728 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
5730 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
5732 2017-04-25 Julian Brown <julian@codesourcery.com>
5733 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
5735 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
5736 (thunderx2t99_sha): New Reservation.
5738 2017-04-25 Julian Brown <julian@codesourcery.com>
5739 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
5741 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
5742 type for 1-element load.
5744 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
5746 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
5748 2017-04-24 Martin Jambor <mjambor@suse.cz>
5750 PR tree-optimization/80293
5751 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
5752 char arrays not totally scalarizable if it is false.
5753 (analyze_all_variable_accesses): Pass correct value in the new
5754 parameter. Add a statistics counter.
5756 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
5759 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
5761 2017-04-24 Richard Biener <rguenther@suse.de>
5763 PR tree-optimization/80494
5764 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
5765 out for complex types.
5767 2017-04-24 Richard Biener <rguenther@suse.de>
5769 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
5770 * tree-ssa-sccvn.c (print_scc): Print SCC size.
5771 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
5772 (DFS): Adjust and never fail.
5773 (sccvn_dom_walker::fail): Remove.
5774 (sccvn_dom_walker::before_dom_children): Adjust.
5775 (run_scc_vn): Likewise and never fail.
5776 * tree-ssa-pre.c (pass_pre::execute): Adjust.
5777 (pass_fre::execute): Likewise.
5779 2017-04-24 Richard Biener <rguenther@suse.de>
5781 PR tree-optimization/79725
5782 * tree-ssa-sink.c (statement_sink_location): Return whether
5783 failure reason was zero uses. Move that check later.
5784 (sink_code_in_bb): Deal with zero uses by removing the stmt
5787 2017-04-24 Richard Biener <rguenther@suse.de>
5790 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
5791 pointer-based references.
5793 2017-04-24 Richard Biener <rguenther@suse.de>
5796 * pass_manager.h (pass_manager::operator new): Remove.
5797 (pass_manager::operator delete): Likewise.
5798 * passes.c (pass_manager::operator new): Remove.
5799 (pass_manager::operator delete): Likewise.
5800 (pass_manager::pass_manager): Zero individual pass members.
5802 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
5805 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
5806 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
5807 Check "XEXP (src, 1)" operand here.
5808 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
5809 Check "XEXP (src, 1)" operand here.
5810 (dimode_scalar_chain::make_vector_copies): Detect count register
5811 of a shift instruction. Zero extend count register from QImode
5812 to DImode to satisfy vector shift pattern count operand predicate.
5813 Substitute vector shift count operand with a DImode copy.
5814 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
5817 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
5819 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
5820 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
5821 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
5822 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
5823 (UNSPEC_NOREX_MEM): Remove definition.
5825 2017-04-21 Richard Biener <rguenther@suse.de>
5827 PR tree-optimization/79547
5828 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5829 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
5830 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
5831 without any constraints.
5833 2017-04-21 Richard Biener <rguenther@suse.de>
5835 PR tree-optimization/78847
5836 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
5838 2017-04-21 Richard Biener <rguenther@suse.de>
5840 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
5841 (build_distinct_type_copy): Likewise.
5842 (build_variant_type_copy): Likewise.
5843 * tree.c (build_qualified_type): Pass down mem-stat info.
5844 (build_distinct_type_copy): Likewise.
5845 (build_variant_type_copy): Likewise.
5847 2017-04-21 Richard Biener <rguenther@suse.de>
5849 PR tree-optimization/80237
5850 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
5852 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
5853 for a simplified result.
5855 2016-04-21 Richard Biener <rguenther@suse.de>
5857 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
5858 sth as strict as a simple_iv but a chrec without symbols and an
5859 operand defined in the loop we are peeling (and not some subloop).
5860 (propagate_constants_for_unrolling): Propagate all constants.
5862 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
5865 * config/i386/i386.c (print_reg): Remove assert for disalowed
5866 regno values, call output_operand_lossage instead.
5868 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
5871 * config/i386/constraints.md (Yc): New register constraint.
5872 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
5873 Use Yc constraint for alternative 2 of operand 0. Remove
5874 preferred_for_speed attribute.
5876 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
5878 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
5879 lastprivate clauses in SIMT case.
5881 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
5883 * doc/invoke.texi (-Wextra-semi): Document new warning option.
5885 2017-04-20 Richard Biener <rguenther@suse.de>
5887 PR tree-optimization/57796
5888 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
5890 (vect_model_load_cost): Cost gathers as N scalar loads.
5892 2017-04-20 Richard Biener <rguenther@suse.de>
5894 * ggc-page.c (ggc_allocated_p): Rename to ...
5895 (safe_lookup_page_table_entry): ... this and return the lookup
5897 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
5899 2017-04-20 Richard Biener <rguenther@suse.de>
5901 PR tree-optimization/80453
5902 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
5903 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
5904 from the conditions.
5905 (vn_phi_eq): Pass them down.
5906 (vn_phi_lookup): Record them.
5907 (vn_phi_insert): Likewise.
5909 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
5911 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
5912 uninitialized variable warning to avoid buffer overrun.
5914 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
5917 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
5918 is suppressed for '{ 0 }' in C.
5920 2017-04-20 Jakub Jelinek <jakub@redhat.com>
5922 * BASE-VER: Set to 8.0.0.
5924 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
5926 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
5927 priority .init_array and .fini_array section with SECTION_NOTYPE
5930 2017-04-20 Jakub Jelinek <jakub@redhat.com>
5933 * tree.h (build_array_type): Add typeless_storage default argument.
5934 * tree.c (type_cache_hasher::equal): Also compare
5935 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
5936 (build_array_type): Add typeless_storage argument, set
5937 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
5939 (build_nonshared_array_type): Adjust build_array_type_1 caller.
5940 (build_array_type): Likewise. Add typeless_storage argument.
5942 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
5943 Jakub Jelinek <jakub@redhat.com>
5945 PR tree-optimization/80426
5946 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
5947 operation on symbolic operands, also compute the overflow for the
5948 invariant part when the operation degenerates into a negation.
5950 2017-04-19 Jakub Jelinek <jakub@redhat.com>
5953 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
5954 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
5957 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
5959 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
5962 * config/avr/avr.c (tree.h): Include it.
5963 (cgraph.h): Include it.
5964 (avr_encode_section_info): Don't warn for uninitialized progmem
5965 variable if it's just an alias.
5967 2017-04-19 Richard Biener <rguenther@suse.de>
5970 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
5971 when needed by AutoPGO.
5973 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
5976 * doc/lto.texi: Remove an extra 'that'.
5978 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
5980 PR rtl-optimization/80429
5981 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
5982 are only used in debug insns.
5984 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
5985 Vladimir Makarov <vmakarov@redhat.com>
5987 * config/sparc/predicates.md (input_operand): Add comment. Return
5988 true for any memory operand when LRA is in progress.
5989 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
5991 2017-04-18 Jeff Law <law@redhat.com>
5994 * mips.md ({return,simple_return}_internal): Do not overwrite
5997 2017-04-18 Jakub Jelinek <jakub@redhat.com>
5999 PR tree-optimization/80443
6000 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
6001 instead of adding 1, subtract -1 and similarly instead of subtracting
6004 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
6006 PR rtl-optimization/80357
6007 * haifa-sched.c (tmp_bitmap): New variable.
6008 (model_recompute): Handle duplicate use records.
6009 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
6010 (free_global_sched_pressure_data): Free it.
6012 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
6015 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6016 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
6017 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
6018 instead of SYSTEM_HEADER_DIR.
6020 2017-04-18 Jeff Law <law@redhat.com>
6023 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
6024 predecessors after walking up the insn chain.
6026 2017-04-18 Jakub Jelinek <jakub@redhat.com>
6029 * dwarf2out.c (modified_type_die): Try harder not to emit internal
6030 sizetype type into debug info.
6032 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6035 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
6036 unneeded test for TARGET_UPPER_REGS_SF.
6037 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
6039 2017-04-18 Jakub Jelinek <jakub@redhat.com>
6042 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
6043 instead of gsi_after_labels.
6045 2017-04-18 Jeff Law <law@redhat.com>
6047 * regcprop.c (maybe_mode_change): Avoid creating copies of the
6051 2017-04-13 Jeff Law <law@redhat.com>
6052 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
6053 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
6055 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
6058 * config/avr/avr.c (intl.h): Include it.
6059 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
6061 2017-04-18 Martin Liska <mliska@suse.cz>
6063 PR gcov-profile/78783
6064 * gcov-tool.c (gcov_output_files): Validate that destination
6065 file is either removed by the tool or by a user.
6067 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
6068 Guy Benyei <guybe@mellanox.com>
6070 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
6071 block, and do not negate it, the stored id is already negative.
6073 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
6075 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
6077 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6080 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
6081 masks of options that should be turned off if the VSX vector
6082 options are turned off.
6083 (OTHER_P8_VECTOR_MASKS): Likewise.
6084 (OTHER_VSX_VECTOR_MASKS): Likewise.
6085 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
6086 rs6000_disable_incompatible_switches to validate no type switches
6088 (rs6000_incompatible_switch): New function to disallow turning on
6089 other vector options if -mno-vsx, -mno-power8-vector, or
6090 -mno-power9-vector are specified.
6092 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
6094 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
6096 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
6098 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
6099 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
6100 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
6101 (ARG_POINTER_CFA_OFFSET): Likewise.
6103 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
6105 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
6106 conditions to take advantage of various optimizations.
6108 2017-04-13 Jeff Law <law@redhat.com>
6110 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
6111 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
6112 (zero_extendsidi2_dext): Likewise.
6114 2017-04-13 Jakub Jelinek <jakub@redhat.com>
6117 * fold-const.c (fold_ternary_loc): Revert
6118 use op0 instead of fold_convert_loc (loc, type, arg0) part of
6121 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
6123 PR rtl-optimization/80343
6124 * lra-remat.c (update_scratch_ops): Assign original hard reg to
6127 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
6130 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
6131 to ubsan_encode_value.
6133 2017-04-13 Jeff Law <law@redhat.com>
6135 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
6136 appearing in DEBUG_INSNs.
6138 2017-04-13 Martin Liska <mliska@suse.cz>
6140 PR gcov-profile/80413
6141 * gcov-io.c (gcov_write_string): Copy to buffer just when
6142 allocated size is greater than zero.
6144 2017-04-13 Jakub Jelinek <jakub@redhat.com>
6147 * dwarf2out.c (decls_for_scope): Ignore declarations of
6148 current_function_decl in BLOCK_NONLOCALIZED_VARS.
6150 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
6153 * ipa-visibility.c (non_local_p): Fix typos.
6154 (localize_node): When localizing symbol in same comdat group,
6155 dissolve the group only when we know external symbols are going
6157 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
6159 2017-04-12 Jakub Jelinek <jakub@redhat.com>
6161 PR tree-optimization/79390
6162 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
6163 order does not result in usable sequence, retry with reversed operand
6169 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
6170 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
6171 op0 instead of fold_convert_loc (loc, type, arg0).
6173 2017-04-12 Jeff Law <law@redhat.com>
6175 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
6176 has a delay slot in the generated code.
6178 * config/cris/cris.md (cris_preferred_reload_class): Return
6179 GENNONACR_REGS rather than GENERAL_REGS.
6181 2017-04-12 Jakub Jelinek <jakub@redhat.com>
6184 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
6185 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
6186 signedness of the result type.
6188 2017-04-12 Richard Biener <rguenther@suse.de>
6189 Jeff Law <law@redhat.com>
6191 PR tree-optimization/80359
6192 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
6193 trim stores to TARGET_MEM_REFs.
6195 2017-04-12 Richard Biener <rguenther@suse.de>
6197 PR tree-optimization/79390
6198 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
6199 threading case even more.
6201 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
6204 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
6205 for quad_address_p for TImode, instead of just not indexed_address.
6207 2017-04-12 Richard Biener <rguenther@suse.de>
6208 Bernd Edlinger <bernd.edlinger@hotmail.de>
6211 * alias.c (component_uses_parent_alias_set_from): Handle
6212 TYPE_TYPELESS_STORAGE.
6213 (get_alias_set): Likewise.
6214 * tree-core.h (tree_type_common): Add typeless_storage flag.
6215 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
6216 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
6217 for types containing members with TYPE_TYPELESS_STORAGE.
6218 (place_field): Likewise.
6219 (layout_type): Likewise for ARRAY_TYPE.
6220 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
6221 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
6222 TYPE_TYPELESS_STORAGE.
6223 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
6225 2017-04-12 Jakub Jelinek <jakub@redhat.com>
6228 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
6229 first argument to type.
6231 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6235 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
6236 CONST0_RTX (mode) rather than const0_rtx where appropriate.
6237 (rs6000_expand_binop_builtin): Likewise.
6238 (rs6000_expand_ternop_builtin): Likewise; also add missing
6239 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
6240 vshasigma built-ins.
6241 * doc/extend.texi: Document that vec_xxpermdi's third argument
6244 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
6246 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
6247 Use shift_const cost parameter when calculating gain of STV shifts.
6249 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
6251 PR rtl-optimization/70478
6252 * lra-constraints.c (process_alt_operands): Check memory for
6253 disfavoring memory insn operand.
6255 2017-04-11 Jakub Jelinek <jakub@redhat.com>
6258 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
6259 left shift in unsigned HOST_WIDE_INT type.
6261 PR rtl-optimization/80385
6262 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
6263 (not (neg X)) into (plus X -1) for complex or non-integral modes.
6266 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
6267 if they have any depend clauses.
6269 2017-04-11 Martin Liska <mliska@suse.cz>
6272 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
6273 * ipa-split.c (split_function): Create a local comdat symbol
6274 if caller is in a comdat group.
6276 2017-04-11 Martin Liska <mliska@suse.cz>
6279 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
6282 2017-04-11 Martin Sebor <msebor@redhat.com>
6285 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
6286 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
6288 (directive::set_width, directive::set_precision, format_character):
6290 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
6293 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
6296 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
6297 conflict, set target->arch_name instead of target->cpu_name.
6299 2017-04-11 Richard Biener <rguenther@suse.de>
6301 PR tree-optimization/80374
6302 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
6303 build_zero_cst, remove fold_convertible_p check again.
6305 2017-04-11 Martin Liska <mliska@suse.cz>
6308 * ubsan.c (instrument_object_size): Do not instrument register
6311 2017-04-11 Jakub Jelinek <jakub@redhat.com>
6314 * config/i386/i386-builtin-types.def
6315 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
6316 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
6317 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
6318 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
6319 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
6320 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
6321 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
6322 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
6323 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
6324 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
6325 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
6326 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
6327 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
6328 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
6329 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
6330 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
6331 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
6332 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
6333 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
6334 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
6335 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
6336 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
6337 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
6338 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
6339 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
6340 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
6341 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
6342 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
6343 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
6344 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
6345 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
6346 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
6347 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
6348 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
6349 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
6350 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
6351 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
6352 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
6353 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
6354 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
6355 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
6356 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
6357 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
6358 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
6359 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
6360 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
6362 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
6363 flag to second_arg_count, handle 4 argument function type _COUNT
6364 aliases, handle second_arg_count on second argument rather than last.
6366 2017-04-10 Jeff Law <law@redhat.com>
6368 PR tree-optimization/80374
6369 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
6370 record anything if we can not convert integer_zero_node to the
6373 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
6376 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6377 Enhance special handling given to the TARGET_P9_MINMAX option in
6378 relation to certain other options.
6380 2017-04-10 Bin Cheng <bin.cheng@arm.com>
6382 PR tree-optimization/80153
6383 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
6384 remove POINTER_PLUS_EXPR's base part directly, rather than through
6387 2017-04-10 Richard Biener <rguenther@suse.de>
6388 Bin Cheng <bin.cheng@arm.com>
6390 PR tree-optimization/80153
6391 * tree-affine.c (aff_combination_to_tree): Get base pointer from
6392 the first element of pointer type aff_tree. Build result expr in
6394 (add_elt_to_tree): Convert to type unconditionally. Remove other
6396 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
6397 (rewrite_use_nonlinear_expr): Check invariant using iv information.
6399 2017-04-10 Richard Biener <rguenther@suse.de>
6401 * tree-ssa-structalias.c (find_func_aliases): Properly handle
6404 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
6406 PR rtl-optimization/70478
6407 * lra-constraints.c (curr_small_class_check): New.
6408 (update_and_check_small_class_inputs): New.
6409 (process_alt_operands): Update curr_small_class_check. Disfavor
6410 alternative insn memory operands. Check available regs for small
6413 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
6416 * config/mips/mips.opt (-mvirt): Update description.
6417 * doc/invoke.texi (-mvirt): Likewise.
6419 2017-04-10 Richard Biener <rguenther@suse.de>
6422 * fold-const.c (fold_binary_loc): Look at unstripped ops when
6423 looking for NEGATE_EXPR in -A / -B to A / B folding.
6425 2017-04-10 Martin Liska <mliska@suse.cz>
6427 PR gcov-profile/80224
6428 * gcov.c (print_usage): Fix usage string.
6429 (get_gcov_intermediate_filename): Remove.
6430 (output_gcov_file): Use both for normal and intermediate format.
6431 (generate_results): Do not initialize special file for
6432 intermediate format.
6434 2017-04-10 Richard Biener <rguenther@suse.de>
6436 PR tree-optimization/80304
6437 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
6440 2017-04-10 Nathan Sidwell <nathan@acm.org>
6443 * config/rs6000/rs6000.c (rs6000_vector_type): New.
6444 (rs6000_init_builtins): Use it.
6446 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6448 * config/arm/arm.md (<mrc>): Add mode to SET source.
6451 2017-04-10 Richard Biener <rguenther@suse.de>
6454 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
6456 2017-04-10 Jakub Jelinek <jakub@redhat.com>
6459 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
6460 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
6461 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
6462 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
6463 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
6464 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
6465 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
6466 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
6467 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
6468 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
6469 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
6470 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
6471 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
6472 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
6473 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
6474 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
6475 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
6476 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
6477 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
6478 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
6479 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
6480 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
6481 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
6483 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
6485 PR rtl-optimization/70478
6486 * lra-constraints.c: Reverse the last patch.
6488 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
6490 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
6491 Add comment for WCHAR_T.
6493 2017-04-08 Martin Liska <mliska@suse.cz>
6496 2017-04-07 Martin Liska <mliska@suse.cz>
6499 * ipa-split.c (split_function): Add function part to a same comdat
6502 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6505 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
6507 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
6509 * rs6000/rs6000.c (vec_load_pendulum): Rename...
6510 (vec_pairing): ...to this.
6511 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
6512 (rs6000_sched_init): Adjust for name change.
6513 (struct rs6000_sched_context): Likewise.
6514 (rs6000_init_sched_context): Likewise.
6515 (rs6000_set_sched_context): Likewise.
6517 2017-04-07 Jakub Jelinek <jakub@redhat.com>
6523 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
6525 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
6526 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
6527 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
6529 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
6531 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
6533 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
6535 PR rtl-optimization/70703
6536 * ira-color.c (update_conflict_hard_regno_costs): Use
6537 int64_t instead of HOST_WIDE_INT.
6539 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
6541 PR rtl-optimization/70478
6542 * lra-constraints.c (process_alt_operands): Disfavor alternative
6543 insn memory operands.
6545 2017-04-07 Jeff Law <law@redhat.com>
6547 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
6548 CALL and NOTE_INSN_CALL_ARG_LOCATION.
6550 2017-04-07 Martin Liska <mliska@suse.cz>
6553 * config/aarch64/aarch64.c (aarch64_process_target_attr):
6554 Show error message instead of an ICE.
6556 2017-04-07 Martin Liska <mliska@suse.cz>
6559 * ipa-split.c (split_function): Add function part to a same comdat
6562 2017-04-07 Richard Biener <rguenther@suse.de>
6565 * tree.c (get_unwidened): Also handle ! for_type case for
6567 * convert.c (do_narrow): Split out from ...
6568 (convert_to_integer_1): ... here. Do not pass final truncation
6569 type to get_unwidened for TRUNC_DIV_EXPR.
6571 2017-04-07 Richard Biener <rguenther@suse.de>
6573 * tree-affine.c (wide_int_ext_for_comb): Take type rather
6575 (aff_combination_const): Adjust.
6576 (aff_combination_scale): Likewise.
6577 (aff_combination_add_elt): Likewise.
6578 (aff_combination_add_cst): Likewise.
6579 (aff_combination_convert): Likewise.
6580 (add_elt_to_tree): Likewise. Remove unused argument.
6581 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
6583 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
6585 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
6587 * config/arm/arm.c (arm_default_short_enums): Use
6588 ARM_DEFAULT_SHORT_ENUMS.
6589 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
6591 2017-04-06 Jakub Jelinek <jakub@redhat.com>
6594 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
6595 members with redundant out-of-class redeclaration.
6597 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
6600 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
6601 * config/i386/i386.md (*zero_extendsidi2):
6602 Add (?*x,*x) and (?*v,*v) alternatives.
6604 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
6607 * config/i386/i386.c (ix86_expand_builtin)
6608 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
6609 mode from insn data. Convert operands to insn operand mode.
6610 Copy operands that don't satisfy insn predicate to a register.
6612 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
6614 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
6617 2017-04-06 Richard Biener <rguenther@suse.de>
6619 PR tree-optimization/80334
6620 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
6621 preserve alignment of accesses.
6623 2017-04-06 Richard Biener <rguenther@suse.de>
6625 PR tree-optimization/80262
6626 * tree-sra.c (build_ref_for_offset): Preserve address-space
6628 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
6629 Drop useless address-space information on MEM_REF offsets.
6631 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
6633 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
6635 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
6637 PR rtl-optimization/70703
6638 * ira-color.c (update_conflict_hard_regno_costs): Use
6639 HOST_WIDE_INT instead of long.
6641 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
6644 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
6645 not defined for x86_64 target. Add -mmmx target option when __SSE2__
6647 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
6648 for x86_64 target. Handle -m3dnowa option.
6650 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
6652 PR rtl-optimization/70703
6653 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
6654 (update_conflict_hard_regno_costs): Use long instead of unsigned
6655 arithmetic for cost calculation.
6657 2017-04-05 Jakub Jelinek <jakub@redhat.com>
6658 Bernd Edlinger <bernd.edlinger@hotmail.de>
6661 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
6664 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
6667 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
6668 ptr_mode with Pmode throughout.
6669 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
6670 into probe_stack_range and use DImode.
6672 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
6675 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
6676 call_eh_return is true.
6678 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6680 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
6681 Initialize last_match_fntype_index.
6683 2017-04-05 Jakub Jelinek <jakub@redhat.com>
6686 * tree-nvr.c: Include internal-fn.h.
6687 (pass_return_slot::execute): Ignore internal calls without
6690 2017-04-04 Jakub Jelinek <jakub@redhat.com>
6691 Richard Biener <rguenther@suse.de>
6694 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
6695 captures used multiple times, except for the last use.
6696 * generic-match-head.c: Include gimplify.h.
6698 2017-04-04 Jakub Jelinek <jakub@redhat.com>
6700 PR tree-optimization/79390
6701 * target.h (struct noce_if_info): Declare.
6702 * targhooks.h (default_noce_conversion_profitable_p): Declare.
6703 * target.def (noce_conversion_profitable_p): New target hook.
6704 * ifcvt.h (struct noce_if_info): New type, moved from ...
6705 * ifcvt.c (struct noce_if_info): ... here.
6706 (noce_conversion_profitable_p): Renamed to ...
6707 (default_noce_conversion_profitable_p): ... this. No longer
6709 (noce_try_store_flag_constants, noce_try_addcc,
6710 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
6711 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
6712 instead of noce_conversion_profitable_p.
6713 * config/i386/i386.c: Include ifcvt.h.
6714 (ix86_option_override_internal): Don't override
6715 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
6716 (ix86_noce_conversion_profitable_p): New function.
6717 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
6718 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
6719 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
6720 * doc/tm.texi: Regenerated.
6722 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6724 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
6727 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6730 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
6731 instructions for small multiply cores.
6733 2017-04-04 Jeff Law <law@redhat.com>
6735 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
6737 (mips_expand_vec_perm_const): Initialize elements in orig_perm
6738 that are not set by the loop over the elements.
6740 2017-04-04 Jakub Jelinek <jakub@redhat.com>
6743 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
6744 int mode, convert_modes it to mode as unsigned, otherwise use
6745 lowpart_subreg to mode rather than SImode.
6746 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
6747 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
6748 Use DImode instead of SImode for the shift count operand.
6749 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
6752 2017-04-04 Richard Biener <rguenther@suse.de>
6755 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
6756 arithmetic done for the negate or the plus. Simplify.
6757 (A - (-B) -> A + B): Likewise.
6758 * fold-const.c (split_tree): Make sure to not negate pointers.
6760 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
6762 PR rtl-optimization/60818
6763 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
6764 a compare of comparisons with the thing compared if this results
6765 in a different machine mode.
6767 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
6769 * alias.c (base_alias_check): Fix typo in comment.
6770 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
6771 * cgraphunit.c (symbol_table::compile): Likewise.
6772 * collect2.c (maybe_run_lto_and_relink): Likewise.
6773 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
6774 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
6775 * config/avr/avr.c (avr_map_op_t): Likewise.
6776 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
6777 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
6778 * config/epiphany/epiphany.md (movcc): Likewise.
6779 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
6780 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
6782 * config/mips/mips.c (mips_save_restore_reg): Likewise.
6783 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
6784 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
6785 * config/sh/sh.c (sh_rtx_costs): Likewise.
6786 * fold-const.c (fold_truth_andor): Likewise.
6787 * genautomata.c (collapse_flag): Likewise.
6788 * gengtype.h (struct type::u::s): Likewise.
6789 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
6790 * input.c (FORMAT_AMOUNT): Likewise.
6791 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
6792 (known_aggs_to_agg_replacement_list): Likewise.
6793 * ipa-inline-analysis.c: Likewise.
6794 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
6795 * ipa-polymorphic-call.c
6796 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
6797 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
6798 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
6800 * modulo-sched.c (apply_reg_moves): Likewise.
6801 * omp-expand.c (build_omp_regions_1): Likewise.
6802 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
6803 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
6804 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
6805 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
6806 * value-prof.c: Likewise.
6807 * var-tracking.c (val_reset): Likewise.
6809 2017-04-03 Richard Biener <rguenther@suse.de>
6811 PR tree-optimization/80275
6812 * fold-const.c (split_address_to_core_and_offset): Handle
6815 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
6817 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
6818 descriptors is at least equal to that of functions.
6820 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
6822 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
6824 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
6827 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
6828 (mov<IMOD4:mode>): New expander.
6829 (*mov<IMOD4:mode>_internal): New insn and split pattern.
6831 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
6833 PR rtl-optimization/79405
6834 * fwprop.c (propagations_left): New variable.
6835 (forward_propagate_into): Decrement it.
6836 (fwprop_init): Initialize it.
6837 (fw_prop): If the variable has reached zero, stop propagating.
6838 (fwprop_addr): Ditto.
6840 2017-03-31 Jakub Jelinek <jakub@redhat.com>
6843 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
6844 a FUNCTION_DECL, pass it as decl instead of origin to
6847 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
6849 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
6852 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
6855 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
6856 TARGET_VSX_SMALL_INTEGER.
6858 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6860 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
6861 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
6863 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
6865 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
6866 extraction from odd-numbered MSA register.
6868 2017-03-31 Jakub Jelinek <jakub@redhat.com>
6871 * expmed.c (store_bit_field_1): Don't attempt to create
6872 a word subreg out of hard registers wider than word if they
6873 have HARD_REGNO_NREGS of 1 for their mode.
6876 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
6877 conversions to integer types wider than word and pointer.
6880 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
6881 (rtx_equal_for_cselib_p): Pass 0 to it.
6882 * cselib.c (cselib_hasher::equal): Likewise.
6883 (rtx_equal_for_cselib_1): Add depth argument. If depth
6884 is 128, don't look up VALUE locs and punt. Increment
6885 depth in recursive calls when walking VALUE locs.
6887 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
6889 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
6890 (make_gcov_file_name): Use the canonical path name for generating
6892 (read_line): Fix handling of files with ascii null bytes.
6894 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
6896 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
6897 to initialise a vector register instead
6898 of using a const_int.
6900 2017-03-30 Jakub Jelinek <jakub@redhat.com>
6902 PR translation/80189
6903 * gimplify.c (omp_default_clause): Use %qs instead of %s in
6904 diagnostic messages.
6906 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
6909 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
6910 (dfp_diex_<mode>): Update mode of operand 1.
6911 * doc/extend.texi (dxex, dxexq): Document change to return type.
6912 (diex, diexq): Document change to argument type.
6914 2017-03-30 Martin Jambor <mjambor@suse.cz>
6917 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
6918 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
6919 it reflects the signature changes performed at the callee side.
6920 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
6921 to cgraph_build_function_type_skip_args.
6922 (build_function_decl_skip_args): Adjust call to the above function.
6924 2017-03-30 Jakub Jelinek <jakub@redhat.com>
6927 * config/i386/sse.md
6928 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
6929 register as dest whenever it is a MEM not rtx_equal_p to the
6930 corresponding dup operand, and when forcing into reg move the
6931 reg into the memory afterwards.
6932 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
6933 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
6934 for the force_reg mode.
6935 (avx512vl_vextractf128<mode>): Use register as dest either
6936 always when a MEM, or when it is a MEM not rtx_equal_p to the
6937 corresponding dup operand, or even not when it is a CONST_VECTOR
6938 depending on the mode and lo vs. hi.
6939 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
6941 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
6942 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
6943 Likewise. Require that operands[2] is even.
6944 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
6945 Remove extraneous parens. Require that operands[2] is a multiple
6947 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
6948 operands[0] is a MEM if <mask_applied>, the predicates/constraints
6949 disallow memory then.
6951 2017-03-30 Richard Biener <rguenther@suse.de>
6953 PR tree-optimization/77498
6954 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
6955 to non-constants over backedges.
6957 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
6959 PR rtl-optimization/80233
6960 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
6961 as last_combined_insn. Do not test for BARRIER_P separately.
6963 2017-03-29 Andreas Schwab <schwab@suse.de>
6966 * calls.c (prepare_call_address): Convert funexp to Pmode before
6967 copying to temp reg.
6969 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6971 PR tree-optimization/80158
6972 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
6973 Handle possible future case of more than one alternate
6975 (replace_rhs_if_not_dup): Likewise.
6976 (replace_one_candidate): Likewise.
6978 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
6980 PR rtl-optimization/80193
6981 * ira.c (ira): Do not check allocation for LRA.
6983 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
6985 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
6986 (nvptx_output_simt_exit): Declare.
6987 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
6988 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
6989 (init_softstack_frame): Move initialization of crtl->is_leaf to...
6990 (nvptx_declare_function_name): ...here. Emit declaration of local
6991 memory space buffer for omp_simt_enter insn.
6992 (nvptx_output_unisimt_switch): New.
6993 (nvptx_output_softstack_switch): New.
6994 (nvptx_output_simt_enter): New.
6995 (nvptx_output_simt_exit): New.
6996 * config/nvptx/nvptx.h (struct machine_function): New fields
6997 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
6998 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
6999 (UNSPECV_SIMT_EXIT): Ditto.
7000 (omp_simt_enter_insn): New insn.
7001 (omp_simt_enter): New expansion.
7002 (omp_simt_exit): New insn.
7003 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
7005 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
7006 (expand_GOMP_SIMT_ENTER_ALLOC): New.
7007 (expand_GOMP_SIMT_EXIT): New.
7008 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
7009 (GOMP_SIMT_ENTER_ALLOC): Ditto.
7010 (GOMP_SIMT_EXIT): Ditto.
7011 * target-insns.def (omp_simt_enter): New insn.
7012 (omp_simt_exit): Ditto.
7013 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
7015 (lower_rec_simd_input_clauses): Implement SIMT privatization.
7016 (lower_rec_input_clauses): Likewise.
7017 (lower_lastprivate_clauses): Handle SIMT privatization.
7019 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
7020 (ompdevlow_adjust_simt_enter): New.
7021 (find_simtpriv_var_op): New.
7022 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
7023 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
7025 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
7026 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
7027 (copy_decl_for_dup_finish): Ditto.
7029 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
7031 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
7034 * config/i386/i386.c (ix86_option_override_internal): Always
7035 allow -mpreferred-stack-boundary=3 for 64-bit targets.
7037 2017-03-28 Bin Cheng <bin.cheng@arm.com>
7039 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
7041 2017-03-28 Bin Cheng <bin.cheng@arm.com>
7043 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
7044 mark new edge's irreducible flag accordign to it.
7045 (vect_do_peeling): Check loop preheader edge's irreducible flag
7046 and pass it to function slpeel_add_loop_guard.
7048 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
7050 PR tree-optimization/80218
7051 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
7052 Update block frequencies and counts.
7054 2017-03-28 Richard Biener <rguenther@suse.de>
7056 PR tree-optimization/78644
7057 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
7058 of a simplification result we may not use it at all.
7060 2017-03-28 Richard Biener <rguenther@suse.de>
7063 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
7064 without arguments, generate default definition of a SSA name.
7066 2017-03-28 Richard Biener <rguenther@suse.de>
7069 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
7070 TYPE_REF_CAN_ALIAS_ALL references.
7071 * fold-const.c (fold_indirect_ref_1): Likewise.
7073 2017-03-28 Martin Liska <mliska@suse.cz>
7076 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
7077 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
7079 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
7080 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7082 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
7083 (EXTRA_SPECS): Define.
7084 (SUBTARGET_EXTRA_SPECS): Likewise.
7085 (SUBTARGET_CPP_SPEC): Likewise.
7086 * config/arc/elf.h (EXTRA_SPECS): Renamed to
7087 SUBTARGET_EXTRA_SPECS.
7088 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
7090 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
7092 * config/arc/simdext.md (vst64_insn): Update pattern.
7093 (vld32wh_insn): Likewise.
7094 (vld32wl_insn): Likewise.
7095 (vld64_insn): Likewise.
7096 (vld32_insn): Likewise.
7098 2017-03-28 Marek Polacek <polacek@redhat.com>
7101 * fold-const.c (fold_comparison): Use protected_set_expr_location
7102 instead of SET_EXPR_LOCATION.
7104 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
7106 * tree.c (add_expr): Avoid name lookup warning.
7108 2017-03-27 Jeff Law <law@redhat.com>
7110 PR tree-optimization/80216
7111 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
7112 function name. Limit recursion depth.
7113 (record_temporary_equivalences): Corresponding changes.
7115 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
7117 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
7120 2017-03-27 Jakub Jelinek <jakub@redhat.com>
7123 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
7125 * cfgcleanup.c (reg_note_cfa_p): New array.
7126 (insns_have_identical_cfa_notes): New function.
7127 (old_insns_match_p): Don't cross-jump in between /f
7128 and non-/f instructions. If both i1 and i2 are frame related,
7129 verify all CFA notes, their order and content.
7131 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7134 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
7135 HImode and SImode with zero extend to DImode to one insn.
7136 (bswap<mode>2_extenddi): Likewise.
7137 (bswapsi2_extenddi): Likewise.
7138 (bswaphi2_extendsi): Likewise.
7139 (bswaphi2): Combine bswap HImode and SImode into one insn.
7140 Separate memory insns from swapping register.
7141 (bswapsi2): Likewise.
7142 (bswap<mode>2): Likewise.
7143 (bswaphi2_internal): Delete, no longer used.
7144 (bswapsi2_internal): Likewise.
7145 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
7146 store, and gpr<-gpr swap insns.
7147 (bswap<mode>2_store): Likewise.
7148 (bswaphi2_reg): Register only splitter, combine with the splitter.
7149 (bswaphi2 splitter): Likewise.
7150 (bswapsi2_reg): Likewise.
7151 (bswapsi2 splitter): Likewise.
7152 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
7153 the insns into load, store, and register/register insns.
7154 (bswapdi2_ldbrx): Likewise.
7155 (bswapdi2_load): Likewise.
7156 (bswapdi2_store): Likewise.
7157 (bswapdi2_reg): Likewise.
7159 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
7161 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
7162 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
7164 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
7167 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
7169 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7170 special handling for target option conflicts between dform
7171 options (-mpower9-dform, -mpower9-dform-vector,
7172 -mpower9-dform-scalar) and -mno-direct-move.
7174 2017-03-27 Richard Biener <rguenther@suse.de>
7176 PR tree-optimization/80181
7177 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
7179 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
7181 * config/arc/predicates.md (move_double_src_operand): Replace the
7182 call to move_double_src_operand with a call to address_operand.
7184 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
7186 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
7187 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
7188 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
7190 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
7192 * config/arc/predicates.md (long_immediate_loadstore_operand):
7193 Consider scaled addresses cases.
7195 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
7197 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
7198 restored when in interrupt.
7199 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
7200 doesn't have delay slot.
7202 2017-03-27 Richard Biener <rguenther@suse.de>
7205 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
7206 inlined thunk clones.
7208 2017-03-27 Jakub Jelinek <jakub@redhat.com>
7211 * asan.c (instrument_derefs): Copy over last operand from
7212 original COMPONENT_REF to the new COMPONENT_REF with
7213 DECL_BIT_FIELD_REPRESENTATIVE.
7214 * ubsan.c (instrument_object_size): Likewise.
7216 2017-03-27 Richard Biener <rguenther@suse.de>
7218 PR tree-optimization/80170
7219 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
7220 sure DR/SCEV didnt fold in constants we do not see when looking
7221 at the reference base alignment.
7223 2017-03-27 Richard Biener <rguenther@suse.de>
7226 * gimple-fold.c (fold_ctor_reference): Properly guard against
7227 NULL return value from canonicalize_constructor_val.
7229 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
7232 * config/i386/i386.c (ix86_expand_builtin)
7233 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
7234 flags reg setting and flags reg using instructions.
7235 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
7236 clobbering instructions to zero extend op2.
7238 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
7240 * doc/install.texi (Configuration) <--with-aix-soname>:
7241 Update link to AIX ld.
7243 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
7245 PR rtl-optimization/80160
7246 PR rtl-optimization/80159
7247 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
7248 reg_alternate_class into account.
7250 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
7253 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
7254 to consider in curr_insn_transform.
7256 2017-03-24 Jakub Jelinek <jakub@redhat.com>
7258 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
7259 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
7260 and emit_mode_inner.
7262 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7264 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
7265 argument to the overloaded builtin variants. Use the new flag to
7266 deprecate certain builtin variants.
7267 * config/s390/s390-builtin-types.def: Add new builtin types.
7268 * config/s390/s390-builtins.h: Support new flags field for
7269 overloaded builtins.
7270 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
7271 (s390_macro_to_expand): Enable vector float data type.
7272 (s390_cpu_cpp_builtins_internal): Indicate support of the new
7273 builtins by incrementing the __VEC__ version number.
7274 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
7276 (s390_resolve_overloaded_builtin): Emit error messages depending
7277 on the builtin flags.
7278 * config/s390/s390.c (s390_expand_builtin): Support additional
7279 flags argument. Change error message to match the messages
7280 emitted in s390-c.c.
7281 * config/s390/s390.md: New UNSPEC_* constants.
7282 (op_type): Add new instruction types.
7283 * config/s390/vecintrin.h: Add new builtins and test data class
7285 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
7286 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
7287 (VEC_INEXACT, VEC_NOINEXACT): New constants.
7288 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
7289 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
7290 ("vec_mergel<mode>"): V_HW -> VEC_HW.
7292 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
7293 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
7294 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
7295 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
7297 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
7298 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
7299 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
7300 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
7302 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
7303 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
7304 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
7305 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
7306 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
7307 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
7308 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
7310 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
7311 ("vec_scatter_element<V_HW_4:mode>_DI")
7312 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
7313 ("vec_fpint<mode>", "vflls")
7314 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
7315 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
7316 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
7317 ("*vec_cmphe<mode>_cc"): ... these.
7319 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
7320 mode constant instead of magic value.
7322 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7324 * config/s390/s390.c (s390_expand_vec_compare): Support other
7325 vector floating point modes than just V2DF.
7326 (s390_expand_vcond): Likewise.
7327 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
7328 (s390_cannot_change_mode_class): Prevent mode changes between TF
7329 and V1TF in vector registers.
7330 * config/s390/s390.md (DF, SF): New mode attributes.
7331 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
7332 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
7333 SFmode support for VRs.
7334 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
7336 (VFT, VF_HW): New mode iterators.
7337 (vw, sdx): New mode attributes.
7338 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
7339 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
7340 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
7341 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
7342 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
7343 also the new vector floating point modes. Renaming to ...
7345 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
7346 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
7347 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
7348 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
7349 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
7350 ("vec_unordered<mode>"): ... these.
7352 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
7353 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
7354 ("*vec_extendv2df"): New insn definitions.
7356 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7358 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
7359 ("mulditi3_2", "*muldi3_sign"): New patterns.
7360 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
7361 rename the pattern definition.
7363 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7365 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
7367 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
7369 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7371 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
7372 instruction if possible.
7373 * config/s390/vector.md (vec_halfnumelts): New mode
7375 ("*vec_vllezlf<mode>"): New pattern.
7377 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7379 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
7380 ("popcountv4si2", "popcountv2di2"): Rename to ...
7381 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
7382 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
7384 ("popcount<mode>2_vxe"): New pattern.
7386 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7388 * common/config/s390/s390-common.c (processor_flags_table): Add
7390 * config.gcc: Add arch12.
7391 * config/s390/driver-native.c (s390_host_detect_local_cpu):
7392 Default to arch12 for unknown CPU model numbers.
7393 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
7394 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
7395 PROCESSOR_max sanity check.
7396 * config/s390/s390-opts.h (enum processor_type): Add
7398 * config/s390/s390.c (processor_table): Add arch12.
7399 (s390_expand_builtin): Add check for B_VXE flag.
7400 (s390_issue_rate): Add PROCESSOR_ARCH12.
7401 (s390_get_sched_attrmask): Likewise.
7402 (s390_get_unit_mask): Likewise.
7403 (s390_sched_score): Enable z13 scheduling for arch12.
7404 (s390_sched_reorder): Likewise.
7405 (s390_sched_variable_issue): Likewise.
7406 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
7408 (s390_tune_attr): Use z13 scheduling also for arch12.
7409 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
7410 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
7411 (TARGET_VXE_P): New macros.
7412 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
7413 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
7414 * config/s390/s390.opt: Add arch12 as processor_type.
7416 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7418 * config/s390/s390.md
7419 ("fixuns_truncdddi2", "fixuns_trunctddi2")
7420 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
7421 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
7423 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
7424 Rename expanders to ...
7426 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
7427 ("fixuns_truncdddi2_emu"): ... these.
7429 ("fixuns_trunc<mode>si2_emu"): New expander.
7431 ("*fixuns_truncdfdi2_z13"): Rename to ...
7432 ("*fixuns_truncdfdi2_vx"): ... this.
7434 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7436 * config/s390/2964.md: Remove the single element vector compare
7437 instructions which are no longer used.
7438 * config/s390/s390.c (s390_select_ccmode): Remove handling of
7440 (s390_canonicalize_comparison): Remove handling of DFmode
7442 (s390_expand_vec_compare_scalar): Remove function.
7443 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
7444 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
7446 ("*cmp<mode>_ccs"): Add wfcdb instruction.
7448 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7450 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
7452 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
7453 will anyway by matched by mov<mode>_64dfp.
7455 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7457 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
7458 vlef/vstef. Add missing operand to vleif.
7460 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7462 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
7463 pair for all vector types with 64 bit elements.
7464 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
7465 * config/s390/vector.md (V_HW_64): ... here.
7466 (V_128_NOSINGLE): New mode iterator.
7467 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
7468 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
7469 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
7470 ("*vec_load_pairv2di"): Change to ...
7471 ("*vec_load_pair<mode>"): ... this one.
7473 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7475 * config/s390/constraints.md: Add comments.
7476 (jKK): Reject element sizes > 8 bytes.
7477 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
7479 * config/s390/s390.md: Add the s_operand checks formerly in
7480 s390_split_ok_p to various splitters where they are still
7482 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
7483 for 128 bit vectors. Plus two splitters.
7485 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7487 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
7490 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7493 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
7494 error if the boundary argument is not constant.
7496 2017-03-24 Jakub Jelinek <jakub@redhat.com>
7498 PR rtl-optimization/80112
7499 * loop-doloop.c (doloop_condition_get): Don't check condition
7500 if cmp isn't SET with IF_THEN_ELSE src.
7502 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7504 PR tree-optimization/80158
7505 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
7506 replacing a candidate statement, also replace it for the
7507 candidate's alternate interpretation.
7508 (replace_rhs_if_not_dup): Likewise.
7509 (replace_one_candidate): Likewise.
7511 2017-03-24 Richard Biener <rguenther@suse.de>
7513 PR tree-optimization/80167
7514 * graphite-isl-ast-to-gimple.c
7515 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
7517 (translate_isl_ast_to_gimple::get_rename): Likewise.
7519 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
7521 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
7522 handling of certain combinations of target options, including the
7523 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
7524 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
7526 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7529 * config/arm/arm.md (*load_multiple): Add reload_completed to
7532 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7533 Richard Biener <rguenth@suse.de>
7535 PR tree-optimization/79908
7536 PR tree-optimization/80136
7537 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
7538 been cast away, gimplify_and_add suffices.
7540 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
7542 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
7544 2017-03-23 Richard Biener <rguenther@suse.de>
7546 PR tree-optimization/80032
7547 * gimplify.c (gimple_push_cleanup): Forced unconditional
7548 cleanups still have to go to the conditional_cleanups
7551 2017-03-22 Jakub Jelinek <jakub@redhat.com>
7553 PR tree-optimization/80072
7554 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
7556 (next_operand_entry_id): Change type to unsigned int.
7557 (sort_by_operand_rank): Make sure to return the right return value
7558 even if unsigned fields are bigger than INT_MAX.
7559 (struct oecount): Change cnt and id type to unsigned int.
7560 (oecount_hasher::equal): Formatting fix.
7561 (oecount_cmp): Make sure to return the right return value
7562 even if unsigned fields are bigger than INT_MAX.
7563 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
7566 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
7567 TREE_READONLY on result if writing it more than once.
7570 * doc/invoke.texi (-fsanitize=thread): Document that with
7571 -fnon-call-exceptions atomics are not able to throw
7575 * tsan.c: Include tree-eh.h.
7576 (instrument_builtin_call): Call maybe_clean_eh_stmt or
7577 maybe_clean_or_replace_eh_stmt where needed.
7578 (instrument_memory_accesses): Add cfg_changed argument.
7579 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
7580 if it returned true.
7581 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
7583 PR rtl-optimization/63191
7584 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
7585 wrapper function, moved the whole old content into ...
7586 (ix86_delegitimize_address_1): ... this. New inline function.
7587 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
7588 true as last argument instead of ix86_delegitimize_address.
7590 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
7592 * config/aarch64/aarch64.c (generic_branch_cost): Copy
7593 cortexa57_branch_cost.
7595 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
7597 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
7599 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7602 * doc/md.texi (Constraints): Document wA constraint.
7603 * config/rs6000/constraints.md (wA): New.
7604 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
7605 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
7606 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
7607 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
7609 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
7612 * gimplify.c (is_oacc_declared): New function.
7613 (oacc_default_clause): Use it to set default flags for acc declared
7614 variables inside parallel regions.
7615 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
7617 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
7618 declare attribute to any decl as necessary.
7620 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
7623 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
7624 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
7625 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
7626 (arm_arch_lpae): This.
7627 * config/arm/arm.c (arm_arch7ve): Rename into ...
7628 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
7629 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
7632 2017-03-22 Martin Liska <mliska@suse.cz>
7635 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
7636 error message instead of an ICE.
7638 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7640 * doc/extend.texi (6.11 Additional Floating Types): Revise.
7642 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
7644 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
7646 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7649 2017-03-21 Martin Sebor <msebor@redhat.com>
7651 * doc/extend.texi: Use "cannot" instead of "can't."
7652 * doc/hostconfig.texi: Same.
7653 * doc/install.texi: Same.
7654 * doc/invoke.texi: Same.
7655 * doc/loop.texi: Same.
7656 * doc/md.texi: Same.
7657 * doc/objc.texi: Same.
7658 * doc/rtl.texi: Same.
7659 * doc/tm.texi: Same.
7660 * doc/tm.texi.in: Same.
7661 * doc/trouble.texi: Same.
7663 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
7666 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
7667 (collect_checksum_attributes): Set it.
7668 (die_checksum_ordered): Use it.
7670 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7672 PR tree-optimization/79908
7673 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
7674 change: For a VA_ARG whose LHS has been cast away, use
7675 force_gimple_operand to construct the side effects.
7677 2017-03-21 David Malcolm <dmalcolm@redhat.com>
7679 PR translation/80001
7680 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
7681 more amenable to translation.
7682 (oacc_loop_auto_partitions): Likewise.
7684 2017-03-21 Marek Polacek <polacek@redhat.com>
7685 Martin Sebor <msebor@redhat.com>
7687 PR tree-optimization/80109
7688 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
7691 2017-03-21 Jakub Jelinek <jakub@redhat.com>
7692 Segher Boessenkool <segher@kernel.crashing.org>
7695 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
7696 check reg_used_between_p between insn and one of succ or succ2
7697 depending on if succ is artificial insn not inserted into insn
7700 2017-03-21 Martin Liska <mliska@suse.cz>
7702 PR gcov-profile/80081
7703 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
7704 * doc/gcc.texi: Include gcov-dump stuff.
7705 * doc/gcov-dump.texi: New file.
7707 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
7709 PR rtl-optimization/79150
7710 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
7711 conditional jump, if the jump is the last insn of the loop.
7713 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7714 Richard Biener <rguenth@suse.de>
7716 PR tree-optimization/79908
7717 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
7718 been cast away, use force_gimple_operand to construct the side
7721 2017-03-21 Martin Liska <mliska@suse.cz>
7724 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
7727 2017-03-21 Brad Spengler <spender@grsecurity.net>
7730 * plugin.c (htab_hash_plugin): New function.
7731 (add_new_plugin): Use it and adjust.
7732 (parse_plugin_arg_opt): Adjust.
7733 (init_one_plugin): Likewise.
7735 2017-03-21 Richard Biener <rguenther@suse.de>
7737 PR tree-optimization/80032
7738 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
7739 if set force the cleanup to happen unconditionally.
7740 (gimplify_target_expr): Push inserted clobbers with force_uncond
7741 to avoid them being removed by control-dependent DCE.
7743 2017-03-21 Richard Biener <rguenther@suse.de>
7745 PR tree-optimization/80122
7746 * tree-inline.c (copy_bb): Do not expans va-arg packs or
7747 va_arg_pack_len when the inlined call stmt requires pack
7749 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
7751 2017-03-21 Jakub Jelinek <jakub@redhat.com>
7754 * tsan.c (instrument_builtin_call): If the memory model argument
7755 is not a constant, assume it is valid.
7758 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
7761 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
7763 PR rtl-optimization/79910
7764 * combine.c (can_combine_p): Do not allow combining an I0 or I1
7765 if its dest is used by an insn before I2 (other than the combined
7766 insns themselves, which are properly handled already).
7768 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
7771 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
7773 * combine.c (record_used_regs): New static function.
7774 (try_combine): Handle situations where there is an additional
7775 instruction between I2 and I3 which needs to have a LOG_LINK
7779 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
7781 * combine.c (try_combine): Delete redundant i1 test. Call
7782 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
7784 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7787 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
7790 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7792 PR tree-optimization/80054
7793 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
7794 the optimization if a PHI or any of its arguments is not dominated
7795 by the candidate's basis. Use gphi* rather than gimple* as
7797 (replace_profitable_candidates): Clean up a gimple* variable that
7798 should be a gphi* variable.
7800 2017-03-20 Martin Sebor <msebor@redhat.com>
7803 * doc/extend.texi (attribute constructor): Document present limitation.
7805 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
7808 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
7809 __POWER9_VECTOR__ #ifdef control, change template definition to
7810 use Power9-specific built-in function.
7811 (vec_any_eq): Likewise.
7812 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
7813 to control outcomes from this test.
7814 (vector_ae_<mode>p): For VEC_F modes, likewise.
7816 2017-03-20 Ian Lance Taylor <iant@google.com>
7818 * config/i386/i386.c (ix86_function_regparm): Save an extra
7819 register for -fsplit-stack with DECL_STATIC_CHAIN.
7821 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
7824 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
7825 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
7827 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
7829 * config/riscv/riscv.c (riscv_print_operand): Use "fence
7831 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
7834 2017-03-20 Marek Polacek <polacek@redhat.com>
7837 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
7839 2017-03-20 Richard Biener <rguenther@suse.de>
7841 PR tree-optimization/80113
7842 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
7843 allocate extra SSA name for PHI def.
7844 (add_close_phis_to_outer_loops): Likewise.
7845 (add_close_phis_to_merge_points): Likewise.
7846 (copy_loop_close_phi_args): Likewise.
7847 (copy_cond_phi_nodes): Likewise.
7849 2017-03-20 Martin Liska <mliska@suse.cz>
7852 * tree-chkp.c (chkp_build_returned_bound): Do not build
7853 returned bounds for a LHS that's not a BOUNDED_P type.
7855 2017-03-20 Martin Liska <mliska@suse.cz>
7859 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
7860 COMPLEX_CST and VECTOR_CST.
7862 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7865 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
7866 target operand. A new splitter adds the clobber statement in case
7867 the target operand is dead anyway.
7869 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
7871 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
7872 to age-old versions of binutils and glibc.
7874 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
7876 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
7878 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
7880 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
7882 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
7884 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
7885 requirement for binutils 2.13.
7887 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
7889 * combine.c (try_combine): Delete redundant i1 test. Call
7890 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
7892 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
7894 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
7895 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
7897 <riscv64-*-elf>: Re-arrange section
7898 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
7899 <riscv32-*-linux>: Likewise.
7900 <riscv64-*-elf>: Likewise
7901 <riscv64-*-linux>: Likewise.
7903 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
7906 * aarch64.opt(verbose-cost-dump): Fix typo.
7908 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
7911 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
7912 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
7914 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
7916 * reload.c (find_reloads): When reloading a nonoffsettable address,
7917 use RELOAD_OTHER for it and its address reloads.
7919 PR rtl-optimization/79910
7920 * combine.c (record_used_regs): New static function.
7921 (try_combine): Handle situations where there is an additional
7922 instruction between I2 and I3 which needs to have a LOG_LINK
7925 2017-03-17 Jeff Law <law@redhat.com>
7927 PR tree-optimization/71437
7928 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
7929 conditional in the hash table first.
7930 (vrp_dom_walker::before_dom_children): Extract condition from
7931 ASSERT_EXPR. Record condition, its inverion and any implied
7934 2017-03-17 Marek Polacek <polacek@redhat.com>
7935 Markus Trippelsdorf <markus@trippelsdorf.de>
7937 PR tree-optimization/80079
7938 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
7941 2017-03-17 Richard Biener <rguenther@suse.de>
7944 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
7945 Properly verify the LHS before the RHS possibly claims to be
7947 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
7950 2017-03-17 Martin Jambor <mjambor@suse.cz>
7952 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
7953 (List of -O2 options): Likewise.
7954 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
7957 2017-03-17 Tom de Vries <tom@codesourcery.com>
7959 * gcov-dump.c (print_usage): Print bug_report_url.
7961 2017-03-17 Richard Biener <rguenther@suse.de>
7964 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
7965 (parser::peek): Likewise.
7967 2017-03-17 Richard Biener <rguenther@suse.de>
7969 PR tree-optimization/80048
7970 * sese.c (free_sese_info): Properly release rename_map and
7971 copied_bb_map elements.
7973 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
7975 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
7976 Add linked-list forward and backlinks. Insert on
7977 construction, remove on destruction.
7978 (class pass_store_merging): Add m_stores_head field.
7979 (pass_store_merging::terminate_and_process_all_chains):
7980 Iterate over m_stores_head list.
7981 (pass_store_merging::terminate_all_aliasing_chains):
7983 (pass_store_merging::execute): Check for debug stmts first.
7984 Push new chains onto the m_stores_head stack.
7986 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
7989 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
7990 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
7991 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
7993 2017-03-16 Jeff Law <law@redhat.com>
7995 PR tree-optimization/71437
7996 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
7997 member function. Implementation moved into after_dom_children
7998 member function and into the threader's thread_outgoing_edges
8000 (dom_opt_dom_walker::after_dom_children): Simplify by moving
8001 some code into new thread_outgoing_edges.
8002 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
8003 definition. Simplify marker handling (do it here). Assume we always
8004 have the available expression and the const/copies tables.
8005 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
8007 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
8008 * tree-vrp.c (equiv_stack): No longer file scoped.
8009 (vrp_dom_walker): New class.
8010 (vrp_dom_walker::before_dom_children): New member function.
8011 (vrp_dom_walker::after_dom_children): Likewise.
8012 (identify_jump_threads): Setup domwalker. Use it rather than
8013 walking edges in a random order by hand. Simplify setup/finalization.
8014 (finalize_jump_threads): Remove.
8015 (vrp_finalize): Do not call identify_jump_threads here.
8016 (execute_vrp): Do it here instead and call thread_through_all_blocks
8019 PR tree-optimization/71437
8020 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
8022 (simplify_stmt_for_jump_threading): Add basic_block argument. All
8024 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
8025 (dom_opt_dom_walker::thread_across_edge): Remove
8026 handle_dominating_asserts argument. All callers changed.
8027 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
8028 changes. Remove calls to lhs_of_dominating_assert. Other
8029 uses of handle_dominating_asserts turn into unconditional code
8030 (simplify_control_stmt_condition_1): Likewise.
8031 (simplify_control_stmt_condition): Likewise.
8032 (thread_through_normal_block, thread_across_edge): Likewise.
8033 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
8034 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
8035 object if it is not an SSA_NAME.
8036 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
8037 before calling into the VRP specific simplifiers.
8038 (identify_jump_threads): Remove handle_dominating_asserts
8041 2017-03-16 Jakub Jelinek <jakub@redhat.com>
8044 * tree-diagnostic.c (default_tree_printer): No longer static.
8045 * tree-diagnostic.h (default_tree_printer): New prototype.
8047 2017-03-16 Tamar Christina <tamar.christina@arm.com>
8049 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
8050 Change ins into fmov.
8052 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8054 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
8055 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
8056 Use h_con constraint for operand 1.
8057 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
8058 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
8060 2017-03-15 Jeff Law <law@redhat.com>
8062 PR tree-optimization/71437
8063 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
8064 (record_temporary_equivalences): Use it.
8066 PR tree-optimization/71437
8067 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
8068 tree-ssa-scopedtables.
8069 (lookup_avail_expr, build_and_record_new_cond): Likewise.
8070 (record_conditions, record_cond, vuse_eq): Likewise.
8071 (record_edge_info): Adjust to API tweak of record_conditions.
8072 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
8073 (record_temporary_equivalences, optimize_stmt): Likewise.
8074 (eliminate_redundant_computations): Likewise.
8075 (record_equivalences_from_stmt): Likewise.
8076 * tree-ssa-scopedtables.c: Include options.h and params.h.
8077 (vuse_eq): New function, moved from tree-ssa-dom.c
8078 (build_and_record_new_cond): Likewise.
8079 (record_conditions): Likewise. Accept vector of conditions rather
8080 than edge_equivalence structure for first argument.
8081 for the first argument.
8082 (avail_exprs_stack::lookup_avail_expr): New member function, moved
8083 from tree-ssa-dom.c.
8084 (avail_exprs_stack::record_cond): Likewise.
8085 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
8086 from tree-ssa-dom.c.
8087 (avail_exprs_stack): Add new member functions lookup_avail_expr
8089 (record_conditions): Declare.
8091 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
8094 * lra-constraints.c (process_alt_operands): Increase reject for
8095 reloading an input/output operand.
8097 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
8100 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
8101 insns to convert from signed/unsigned char/short to IEEE 128-bit
8103 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
8105 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
8108 * config/i386/i386.c (ix86_vector_duplicate_value): Create
8109 subreg of inner mode for values already in registers.
8111 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
8113 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
8114 iteration reg is used after the loop.
8116 2017-03-14 Martin Sebor <msebor@redhat.com>
8118 PR tree-optimization/79800
8119 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
8120 precision in negative-positive range.
8121 (format_floating): Call non-const overload with adjusted precision.
8123 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8126 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
8129 2017-03-14 Martin Sebor <msebor@redhat.com>
8132 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
8133 * builtins.def (aligned_alloc): Use it.
8136 * Makefile.in (GTFILES): Add calls.c.
8137 * calls.c: Include "gt-calls.h".
8139 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
8141 PR rtl-optimization/79728
8142 * regs.h (struct target_regs): New field
8143 x_contains_allocatable_regs_of_mode.
8144 (contains_allocatable_regs_of_mode): New macro.
8145 * reginfo.c (init_reg_sets_1): Initialize it, and change
8146 contains_reg_of_mode so it includes global regs as well.
8147 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
8148 rather than contains_regs_of_mode.
8150 2017-03-14 Martin Liska <mliska@suse.cz>
8152 * doc/invoke.texi: Document options that can't be combined with
8153 -fcheck-pointer-bounds.
8155 2017-03-14 Martin Liska <mliska@suse.cz>
8158 * doc/invoke.texi (-Wchkp): Document the option.
8160 2017-03-14 Martin Liska <mliska@suse.cz>
8162 * Makefile.in: Install gcov-dump.
8164 2017-03-14 Martin Liska <mliska@suse.cz>
8166 * multiple_target.c (expand_target_clones): Bail out for
8167 an invalid attribute.
8169 2017-03-14 Richard Biener <rguenther@suse.de>
8171 * alias.c (struct alias_set_entry): Pack properly.
8172 * cfgloop.h (struct loop): Likewise.
8173 * cse.c (struct set): Likewise.
8174 * ipa-utils.c (struct searchc_env): Likewise.
8175 * loop-invariant.c (struct invariant): Likewise.
8176 * lra-remat.c (struct cand): Likewise.
8177 * recog.c (struct change_t): Likewise.
8178 * rtl.h (struct address_info): Likewise.
8179 * symbol-summary.h (function_summary): Likewise.
8180 * tree-loop-distribution.c (struct partition): Likewise.
8181 * tree-object-size.c (struct object_size_info): Likewise.
8182 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
8183 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
8184 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
8185 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
8186 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
8187 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
8188 (struct _stmt_vec_info): Likewise.
8190 2017-03-14 Martin Liska <mliska@suse.cz>
8193 * multiple_target.c (create_dispatcher_calls): Check that
8194 a target can create a function dispatcher.
8196 2017-03-14 Martin Liska <mliska@suse.cz>
8199 * multiple_target.c (expand_target_clones): Drop local.local
8200 flag for default implementation.
8202 2017-03-14 Richard Biener <rguenther@suse.de>
8204 PR tree-optimization/80030
8205 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
8207 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
8209 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
8210 gcc_fallthrough() instead of __attribute__((fallthrough));
8212 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
8214 * doc/gcc.texi: Remove "up" link to (DIR).
8215 * doc/gccint.texi: Ditto.
8217 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
8219 * doc/install.texi (Specific) <avr>: Remove reference to
8222 2017-03-13 Jeff Law <law@redhat.com>
8224 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
8225 attribute rather than comments.
8227 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
8228 match_scratch operand is highest.
8230 2017-03-13 Martin Liska <mliska@suse.cz>
8233 * ipa-pure-const.c (warn_function_noreturn): If the declarations
8234 is a CHKP clone, use original declaration.
8236 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
8238 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
8239 (arc_conditional_register_usage): Use a different allocation order
8240 when optimizing for size.
8241 * common/config/arc/arc-common.c (arc_option_optimization_table):
8242 Section anchors default on when optimizing for size.
8244 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
8246 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
8248 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
8250 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
8251 * config/arc/arc.md (cpu_facility): Add cd variant.
8252 (*movqi_insn): Add code density variant.
8253 (*movhi_insn): Likewise.
8254 (*movqi_insn): Likewise.
8255 (*addsi3_mixed): Likewise.
8256 (subsi3_insn): Likewise.
8258 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
8260 * config/arc/arc.md (movsi_cond_exec): Update constraint.
8262 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
8264 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
8265 expressions with MINUS and UNARY ops.
8267 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8270 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
8272 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
8273 between vec_select and vector argument.
8274 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
8275 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
8276 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
8277 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
8278 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
8279 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
8281 2017-03-13 Richard Biener <rguenther@suse.de>
8284 * params.def (vect-max-peeling-for-alignment): Fix typo.
8286 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
8288 * doc/install.texi (Specific) <mips-*-*>: Remove description of
8289 issue that only occurred with binutils below 2.18.
8291 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
8293 * doc/install.texi (Specific) <cris-axis-elf>: No longer
8294 refer to binutils 2.11/2.12 minimum.
8296 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
8298 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
8299 ftp.kernel.org and simplify binutils requirement.
8301 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
8303 * doc/invoke.texi (Warning Options): Fix spelling of link-time
8305 (Optimize Options): Ditto. Also remove redundancy.
8307 2017-03-10 David Malcolm <dmalcolm@redhat.com>
8309 PR translation/79848
8310 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
8312 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
8313 to G_ to avoid double translation.
8315 2017-03-10 David Malcolm <dmalcolm@redhat.com>
8317 PR translation/79923
8318 * auto-profile.c (get_combined_location): Convert leading
8319 character of diagnostics to lower case and remove trailing period.
8320 (read_profile): Likewise for various diagnostics.
8321 * config/arm/arm.c (arm_option_override): Remove trailing period
8322 from various diagnostics.
8323 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
8324 (msp430_expand_delay_cycles): Likewise.
8326 2017-03-10 David Malcolm <dmalcolm@redhat.com>
8329 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
8330 full command-line argument, rather than just "str".
8331 (aarch64_validate_march): Likewise.
8332 (aarch64_validate_mtune): Likewise.
8334 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
8336 PR rtl-optimization/78911
8337 * lra-assigns.c (must_not_spill_p): New function.
8338 (spill_for): Use it.
8340 2017-03-10 Jakub Jelinek <jakub@redhat.com>
8342 PR tree-optimization/79981
8343 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
8344 ATOMIC_COMPARE_EXCHANGE ifn result.
8345 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
8346 IFN_ATOMIC_COMPARE_EXCHANGE.
8348 2017-03-10 David Malcolm <dmalcolm@redhat.com>
8351 * opts.c (parse_sanitizer_options): Add missing question mark to
8352 "did you mean" message.
8354 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8356 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
8358 (VMULEUH_UNS): Likewise.
8359 (VMULOUB_UNS): Likewise.
8360 (VMULOUH_UNS): Likewise.
8361 * config/rs6000/rs6000.c (builtin_function_type): Remove
8362 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
8364 2017-03-10 David Malcolm <dmalcolm@redhat.com>
8367 * read-rtl-function.c (function_reader::read_rtx_operand): Update
8368 x with result of extra_parsing_for_operand_code_0.
8369 (function_reader::extra_parsing_for_operand_code_0): Convert
8370 return type from void to rtx, returning x. When reading
8371 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
8372 larger size containing struct block_symbol.
8374 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
8376 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
8377 -mfloat128-hardware without -m64.
8379 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
8382 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
8383 entries to the case statement that marks unsigned arguments to
8384 overloaded functions.
8386 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
8388 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
8389 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
8391 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
8394 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
8395 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
8397 2017-03-10 Martin Liska <mliska@suse.cz>
8401 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
8402 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
8405 2017-03-10 Olivier Hainque <hainque@adacore.com>
8407 * tree-switch-conversion (array_value_type): Start by resetting
8408 candidate type to it's main variant.
8410 2017-03-10 Jakub Jelinek <jakub@redhat.com>
8412 PR rtl-optimization/79909
8413 * combine.c (try_combine): Use simplify_replace_rtx on individual
8414 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
8415 of the whole CALL_INSN_FUNCTION_USAGE.
8417 PR tree-optimization/79972
8418 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
8419 get_range_info on SSA_NAMEs. Formatting fixes.
8421 2017-03-10 Richard Biener <rguenther@suse.de>
8422 Jakub Jelinek <jakub@redhat.com>
8424 PR tree-optimization/77975
8425 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
8426 edge to be constant.
8427 (get_val_for): For constant x return it. Formatting fix.
8428 (loop_niter_by_eval): Avoid pointless looping if the next iteration
8429 would use the same bases as the current one.
8431 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8433 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
8434 instead of vec_select for V1TImode.
8435 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
8437 (VSX_LE_128): Add V1TI to this mode iterator.
8438 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
8439 (*vsx_le_perm_store_<mode>): Likewise.
8440 (pre-reload splitter for VSX stores): Likewise.
8441 (post-reload splitter for VSX stores): Likewise.
8442 (*vsx_xxpermdi2_le_<mode>): Likewise.
8443 (*vsx_lxvd2x2_le_<mode>): Likewise.
8444 (*vsx_stxvd2x2_le_<mode>): Likewise.
8446 2017-03-09 Michael Eager <eager@eagercon.com>
8448 Correct failures with --enable-checking=yes,rtl.
8450 * config/microblaze/microblaze.c (microblaze_expand_shift):
8451 Replace GET_CODE test with CONST_INT_P and INTVAL test with
8452 test for const0_rtx.
8453 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
8454 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
8456 2017-03-09 Richard Biener <rguenther@suse.de>
8458 PR tree-optimization/79977
8459 * graphite-scop-detection.c (scop_detection::merge_sese):
8460 Handle the case of extra exits to blocks dominating the entry.
8462 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
8464 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
8467 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
8469 PR rtl-optimization/79949
8470 * lra-constraints.c (process_alt_operands): Check memory when
8471 trying to predict a cycle. Print about the overall increase.
8473 2017-03-09 Richard Biener <rguenther@suse.de>
8476 * gimple-expr.c (useless_type_conversion_p): Preserve
8477 TYPE_SATURATING for fixed-point types.
8479 2017-03-09 Richard Biener <rguenther@suse.de>
8482 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
8483 alignment of BLKmode params.
8485 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8488 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
8489 (VALL_NO_V2Q): Likewise.
8491 * config/aarch64/aarch64-simd.md
8492 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
8494 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
8495 VALL_NO_V2Q mode iterator.
8496 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
8498 2017-03-09 Martin Liska <mliska@suse.cz>
8500 PR tree-optimization/79631
8501 * tree-chkp-opt.c (chkp_is_constant_addr): Call
8502 tree_int_cst_sign_bit just for INTEGER constants.
8504 2017-03-09 Martin Liska <mliska@suse.cz>
8508 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
8511 2017-03-09 Marek Polacek <polacek@redhat.com>
8514 * tree.c (inchash::add_expr): Handle TREE_VEC.
8516 2017-03-09 Martin Liska <mliska@suse.cz>
8519 (chkp_narrow_size_and_offset): New function.
8520 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
8521 (void chkp_parse_bit_field_ref): New function.
8522 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
8523 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
8525 2017-03-09 Martin Liska <mliska@suse.cz>
8528 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
8529 (chkp_find_bounds_1): Remove gcc_unreachable.
8531 2017-03-09 Jakub Jelinek <jakub@redhat.com>
8534 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
8535 BUILT_IN_SYNC*, determine the access type from the size suffix and
8536 always build a MEM_REF with that type. Handle forgotten
8537 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
8540 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
8541 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
8542 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
8543 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
8544 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
8545 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
8546 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
8547 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
8548 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
8549 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
8550 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
8551 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
8552 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
8553 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
8554 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
8555 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
8556 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
8557 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
8558 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
8559 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
8560 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
8561 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
8562 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
8563 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
8564 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
8565 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
8566 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
8567 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
8568 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
8569 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
8570 definitions outside of __OPTIMIZE__ guarded section.
8573 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
8574 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
8575 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
8576 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
8579 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8581 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
8582 ("vfenez<mode>"): Add missing constraints.
8584 2017-03-08 Martin Sebor <msebor@redhat.com>
8587 * config/nds32/nds32.c (nds32_option_override):
8588 Fix misspelled diagnostic.
8590 2017-03-08 Jakub Jelinek <jakub@redhat.com>
8593 * gimplify.c (gimplify_omp_for): Replace index var in outer
8594 taskloop statement with an artificial variable and add
8595 OMP_CLAUSE_PRIVATE clause for it.
8597 2017-03-08 Richard Biener <rguenther@suse.de>
8599 PR tree-optimization/79955
8600 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
8601 for accesses that are completely outside of the variable.
8603 2017-03-08 Andrew Haley <aph@redhat.com>
8605 PR tree-optimization/79943
8606 * tree-ssa-loop-split.c (compute_new_first_bound): When
8607 calculating the new upper bound, (END-BEG) should be added, not
8610 2017-03-08 Jakub Jelinek <jakub@redhat.com>
8612 * config/avr/avr.md (setmemhi): Make sure match_dup
8613 operand number comes before match_scratch.
8615 2017-03-08 Richard Biener <rguenther@suse.de>
8617 PR tree-optimization/79920
8618 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
8619 with ncopies == 1 to ...
8620 (vect_transform_slp_perm_load): ... here. Properly compute
8621 all element loads by iterating VF times over the group. Do
8622 not handle ncopies (computed in a broken way) in
8623 vect_create_mask_and_perm.
8625 2017-03-08 Jakub Jelinek <jakub@redhat.com>
8628 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
8629 is a uniform vector, use uniform_vector_p return value instead of
8630 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
8632 2017-03-07 Marek Polacek <polacek@redhat.com>
8635 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
8636 (alloca_call_type): Likewise.
8638 2017-03-07 Martin Liska <mliska@suse.cz>
8640 * gcov.c (process_args): Put comment to correct location.
8642 2017-03-07 Martin Liska <mliska@suse.cz>
8645 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
8646 Use array_at_struct_end_p instead of DECL_CHAIN (field).
8647 (chkp_narrow_bounds_for_field): Likewise.
8648 (chkp_parse_array_and_component_ref): Pass one more argument to
8651 2017-03-07 Richard Biener <rguenther@suse.de>
8653 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
8656 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
8658 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
8659 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
8661 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8664 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
8665 to end of description.
8666 (PARAM_MAX_STORES_TO_MERGE): Likewise.
8668 2017-03-07 Jakub Jelinek <jakub@redhat.com>
8670 PR rtl-optimization/79901
8671 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
8673 (*avx512f_<code><mode>3<mask_name>): ... this.
8674 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
8675 iterator instead of VI8_AVX2_AVX512BW.
8677 PR rtl-optimization/79901
8678 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
8679 min/max expander, expand it using expand_vec_cond_expr.
8682 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
8685 2017-03-06 Jakub Jelinek <jakub@redhat.com>
8688 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
8689 to void * for PCH reasons.
8690 * dwarf2out.c (output_loc_operands, output_die): Cast
8691 v.val_vec.array to unsigned char *.
8693 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
8696 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
8699 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
8701 PR rtl-optimization/79571
8702 * lra-constraints.c (process_alt_operands): Calculate static
8703 reject and subtract it from overall when only addresses will be
8706 2017-03-06 Julia Koval <julia.koval@intel.com>
8709 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
8710 incoming stack boundary to 128 for 64-bit targets.
8712 2017-03-06 Richard Biener <rguenther@suse.de>
8714 PR tree-optimization/79894
8715 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
8716 to NULL after folding it.
8718 2017-03-06 Richard Biener <rguenther@suse.de>
8720 PR tree-optimization/79824
8721 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
8722 check disabling peeling for gaps.
8724 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
8726 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
8727 attributes): Document gettimeofday.
8729 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
8731 * config/s390/s390.c (s390_option_override_internal): Set
8732 PARAM_MIN_VECT_LOOP_BOUND
8734 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
8736 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
8737 * config/s390/s390.md: Likewise.
8739 2017-03-06 Jakub Jelinek <jakub@redhat.com>
8742 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
8743 (<avx2_avx512>_perm<mode>): Rename to ...
8744 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
8746 (<avx512>_perm<mode>_mask): Rename to ...
8747 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
8749 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
8750 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
8751 instead of VI8F_256_512.
8752 (avx512f_perm<mode>): New define_expand.
8753 (avx512f_perm<mode>_mask): Likewise.
8754 (avx512f_perm<mode>_1<mask_name>): New define_insn.
8755 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
8757 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
8759 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
8760 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
8762 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
8764 2017-03-06 Martin Liska <mliska@suse.cz>
8767 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
8768 when having a SSA NAME w/o VAR_DECL assigned to it.
8770 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
8772 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
8773 msa_dpsub_<su>_d): Fix MODE for vec_select.
8775 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
8777 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
8779 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
8781 2017-03-06 Richard Biener <rguenther@suse.de>
8783 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
8784 * plugin.c (register_plugin_info): Likewise.
8785 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
8787 2017-03-05 Jakub Jelinek <jakub@redhat.com>
8789 * config/i386/sse.md (sse_storehps, sse_storelps,
8790 avx_<castmode><avxsizesuffix>_<castmode>,
8791 avx512f_<castmode><avxsizesuffix>_<castmode>,
8792 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
8793 in condition that at least one operand is not a MEM.
8795 2017-03-03 Jakub Jelinek <jakub@redhat.com>
8798 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
8799 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
8801 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
8802 gimple_call_nothrow_p flag based on whether original builtin can throw.
8803 If it can, emit following stmts on the fallthrough edge.
8804 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
8805 don't create new bb if inserting just debug stmts on the edge, try to
8806 insert them on the fallthru bb or just reset debug stmts.
8808 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
8811 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
8812 restore recog_data (including the operand rtxes inside it) around
8813 the call to get_insn_template.
8815 2017-03-03 Martin Sebor <msebor@redhat.com>
8817 PR tree-optimization/79699
8818 * context.c (context::~context): Free MPFR caches to avoid
8819 a memory leak on program exit.
8821 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8823 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
8824 Use wide_int::ulow () instead of .elt (0).
8826 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
8828 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
8829 (*pushxf): Limit oF constraint to 32bit targets and add oC
8830 constraint for 64bit targets.
8831 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
8832 (*pushdf): Change rmF constraint to rmC.
8834 2017-03-03 Martin Liska <mliska@suse.cz>
8836 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
8837 Remove unused variable.
8839 2017-03-03 Jakub Jelinek <jakub@redhat.com>
8842 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
8843 is a memory operand, increase num_memory.
8844 (ix86_expand_args_builtin): Likewise.
8846 2017-03-03 Jan Hubicka <jh@suse.cz>
8849 * ipa-devirt.c (maybe_record_node): Properly handle
8850 __cxa_pure_virtual visibility.
8852 2017-03-03 Martin Liska <mliska@suse.cz>
8854 PR tree-optimization/79803
8855 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
8857 (pass_loop_prefetch::execute): Disabled optimization if an
8858 assumption about L1 cache size is not met.
8860 2017-03-03 Martin Liska <mliska@suse.cz>
8862 PR rtl-optimization/79574
8863 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
8864 (hash_scan_set): Likewise.
8865 (dump_hash_table): Likewise.
8866 (hoist_code): Likewise.
8868 2017-03-03 Richard Biener <rguenther@suse.de>
8870 * fixed-value.c (fixed_from_string): Restore use of elt (1)
8871 in place of uhigh ().
8872 (fixed_convert_from_real): Likewise.
8874 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
8877 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
8879 2017-03-03 Richard Biener <rguenther@suse.de>
8882 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
8883 TYPE_OVERFLOW_UNDEFINED check.
8885 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8887 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
8889 (vector_ae_<mode>_p): Likewise.
8890 (vector_nez_<mode>_p): Likewise.
8891 (vector_ne_v2di_p): Likewise.
8892 (vector_ae_v2di_p): Likewise.
8893 (vector_ne_<mode>_p): Likewise.
8894 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
8896 (vsx_tsqrt<mode>2_fe): Likewise.
8898 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
8901 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
8903 2017-03-02 Jakub Jelinek <jakub@redhat.com>
8905 PR rtl-optimization/79780
8906 * cprop.c (one_cprop_pass): When second and further conditional trap
8907 in a single basic block is turned into an unconditional trap, turn it
8908 into a deleted note to avoid RTL verification failures.
8910 2017-03-02 Richard Biener <rguenther@suse.de>
8912 * fold-const.c (const_binop): Use ulow () instead of elt (0).
8914 2017-03-02 Richard Biener <rguenther@suse.de>
8916 PR tree-optimization/79345
8918 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
8919 param and abort the walk, returning -1 if it is hit.
8920 (walk_aliased_vdefs): Take a limit param and pass it on.
8921 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
8922 defaulting to 0 and return a signed int.
8923 * tree-ssa-uninit.c (struct check_defs_data): New struct.
8924 (check_defs): New helper.
8925 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
8926 about uninitialized memory.
8927 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
8928 bogus uninitialized warning.
8929 (fixed_convert_from_real): Likewise.
8931 2017-03-02 Bin Cheng <bin.cheng@arm.com>
8933 PR tree-optimization/66768
8934 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
8935 iv_use if base object can't be determined.
8937 2017-03-02 Jakub Jelinek <jakub@redhat.com>
8939 PR tree-optimization/79345
8940 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
8941 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
8942 (get_pattern_stats): Initialize it.
8943 * genemit.c (gen_expand): Verify match_scratch numbers come after
8944 match_operand/match_dup numbers.
8945 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
8946 match_scratch numbers.
8947 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
8949 * config/s390/s390.md (trunctdsd2): Likewise.
8951 2017-03-02 Richard Biener <rguenther@suse.de>
8953 * wide-int.h (wide_int_storage::operator=): Implement in terms
8956 2017-03-02 Richard Biener <rguenther@suse.de>
8958 PR tree-optimization/79777
8959 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
8960 the to insert expression to sth existing.
8962 2017-03-01 Martin Sebor <msebor@redhat.com>
8965 * gimple-ssa-sprintf.c
8966 (directive::known_width_and_precision): New function.
8967 (format_integer): Use it.
8968 (get_mpfr_format_length): Consider the full range of precision
8969 when computing %g output with the # flag. Set the likely byte
8970 count to 3 rather than 1 when precision is indeterminate.
8971 (format_floating): Correct the lower bound of precision.
8973 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8975 * doc/invoke.texi: Document default code model for 64-bit Linux.
8977 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8980 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
8981 udiv rather than div since input pattern is unsigned.
8983 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
8985 * config/i386/i386.c (print_reg): Warn for values of
8986 unsupported size in integer register.
8988 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8991 * config/rs6000/predicates.md (current_file_function_operand): Do
8992 not allow self calls to be local if the function is replaceable.
8994 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
8997 * config/rs6000/altivec.h (vec_ctz and others): Change the
8998 preprocessor macro that controls conditional compilation from
8999 _ARCH_PWR9 to __POWER9_VECTOR__.
9000 (vec_all_ne): Change parameterization of __altivec_scalar_pred
9001 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
9002 control (instead of _ARCH_PWR9 control) so that template
9003 definition uses power9-specific function.
9004 (vec_any_eq): Likewise.
9005 (vec_all_ne): Change macro definition to use a power9-specific
9006 expansion under #ifdef __POWER9_VECTOR__ control (instead of
9007 _ARCH_PWR9 control).
9008 (vec_any_eq) Likewise.
9009 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
9010 expansion for CMPNEF to remove support for xvcmpnesp instruction.
9011 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
9012 support for xvcmpnedp instruction.
9013 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
9014 macro expansion so that Power9 implementation of vec_all_ne does
9015 not use the AltiVec predicate framework.
9016 (VCMPNEH_P): Likewise.
9017 (VCMPNEW_P): Likewise.
9018 (VCMPNED_P): Likewise.
9019 (VCMPNEFP_P): Likewise.
9020 (VCMPNEDP_P): Likewise.
9021 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
9022 implementation of vec_any_eq to not use AltiVec predicate
9024 (VCMPAEH_P): Likewise.
9025 (VCMPAEW_P): Likewise.
9026 (VCMPAED_P): Likewise.
9027 (VCMPAEFP_P): Likewise.
9028 (VCMPAEDP_P): Likewise.
9029 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
9030 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
9031 not use the AltiVec predicate framework.
9032 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
9033 of vec_any_eq to not use AltiVec predicate framework.
9034 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
9035 support for predefined __POWER9_VECTOR__ macro to indicate that
9036 Power9 instruction selection is enabled.
9037 (altivec_overloaded_builtins): Remove extraneous
9038 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
9039 function argument types RS6000_BTI_bool_V16QI and
9040 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
9041 entry for overloaded function argument types RS6000_BTI_bool_V4SI
9042 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
9043 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
9044 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
9045 Power9 for implementations of vec_cmpne. Change the signature for
9046 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
9047 (representing vec_all_ne) to remove the previously described first
9048 argument of type RS6000_BTI_INTSI, as this was an artifact of
9049 reliance on the AltiVec predicate framework, which is no longer
9050 used in the implementation of these functions. Add
9051 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
9052 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
9053 since, unlike the AltiVec predicate framework implementation, we
9054 do not share function descriptors between vec_alle and vec_anyeq.
9055 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
9056 set of modes that receive special treatment even when
9057 TARGET_P9_VECTOR is true. The special treatment emits code that
9058 does not depend on Power9 instructions.
9059 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
9060 define_expand to not rely on AltiVec predicate framework.
9061 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
9063 (vector_ne_v2di_p): Change this define_expand to not rely on
9064 AltiVec predicate framework.
9065 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
9067 (vector_ne_<mode>_p): Change this define_expand to not rely on
9068 AltiVec predicate framework.
9069 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
9071 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
9072 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
9073 define_insn pattern.
9074 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
9075 define_insn pattern because the xvcmpne<VSs>. instruction is not
9077 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
9078 instruction is not supported.
9080 2017-03-01 Jakub Jelinek <jakub@redhat.com>
9082 * config/nvptx/nvptx.c: Include intl.h.
9084 2017-03-01 Martin Jambor <mjambor@suse.cz>
9087 * ipa-prop.h (ipa_bits): Removed field known.
9088 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
9089 to pointers. Adjusted their comments to warn about their sharing.
9090 (ipcp_transformation_summary): Change bits to a vector of pointers.
9091 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
9092 (ipa_get_ipa_bits_for_value): Declare.
9093 * tree-vrp.h (value_range): Mark as GTY((for_user)).
9094 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
9095 (ipa_bits_hash_table): Likewise.
9096 (ipa_vr_ggc_hash_traits): Likewise.
9097 (ipa_vr_hash_table): Likewise.
9098 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
9099 being pointers and vr_known being removed.
9100 (ipa_set_jf_unknown): Likewise.
9101 (ipa_get_ipa_bits_for_value): New function.
9102 (ipa_set_jfunc_bits): Likewise.
9103 (ipa_get_value_range): New overloaded functions.
9104 (ipa_set_jfunc_vr): Likewise.
9105 (ipa_compute_jump_functions_for_edge): Use the above functions to
9106 construct bits and vr parts of jump functions.
9107 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
9108 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
9110 (ipcp_grow_transformations_if_necessary): Also allocate
9111 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
9113 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
9114 them. Fix too long lines.
9115 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
9116 vr_known being removed.
9117 (ipa_read_jump_function): Use new setter functions to construct bits
9118 and vr parts of jump functions or set them to NULL.
9119 (write_ipcp_transformation_info): Adjust for bits being pointers.
9120 (read_ipcp_transformation_info): Likewise.
9121 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
9123 Include gt-ipa-prop.h.
9124 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
9126 (ipcp_store_bits_results): Likewise.
9127 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
9128 Do not write to existing jump functions but use a temporary instead.
9130 2017-03-01 Jakub Jelinek <jakub@redhat.com>
9133 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
9134 attempt to use its first operand as BIT_FIELD_REF base.
9136 2017-03-01 Richard Biener <rguenther@suse.de>
9139 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
9140 interpolating formula in wrapping arithmetic.
9141 (chrec_apply): Convert chrec_evaluate return value to wanted type.
9143 2017-03-01 Jakub Jelinek <jakub@redhat.com>
9145 PR tree-optimization/79734
9146 * tree-vect-generic.c (expand_vector_condition): Optimize
9147 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
9148 Handle VEC_COND_EXPR where comparison has different inner width from
9151 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
9153 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
9154 markup, and similar issues. Remove @opindex entries for things
9155 that aren't options. Add missing -mmpy-option entries.
9157 2017-02-28 Jakub Jelinek <jakub@redhat.com>
9159 PR tree-optimization/79737
9160 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
9161 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
9162 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
9163 instead of byte_size. Formatting fix.
9164 (shift_bytes_in_array_right): Formatting fix.
9166 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
9169 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
9170 condition on optimize for the leaf function test.
9172 2017-02-28 Martin Liska <mliska@suse.cz>
9175 * read-rtl-function.c (function_reader::handle_unknown_directive):
9176 Bail out when one uses -flto.
9178 2017-02-28 Martin Liska <mliska@suse.cz>
9180 * common.opt: Replace space with tabular for options of <number>
9182 * config/i386/i386.opt: Show <number> value for
9183 -mlarge-data-threshold.
9184 * opts.c (print_filtered_help): Do not display number in hexadecimal
9187 2017-02-28 Martin Liska <mliska@suse.cz>
9189 * common.opt: Fix --help=option -Q for options which are of
9192 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
9194 * config/i386/i386.c (print_reg): Error out for values
9195 of 8-bit size in invalid integer register.
9197 2017-02-28 Martin Sebor <msebor@redhat.com>
9199 PR tree-optimization/79691
9200 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
9202 2017-02-28 Jakub Jelinek <jakub@redhat.com>
9205 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
9206 gcc_unreachable with output_operand_lossage.
9208 2017-02-28 Richard Biener <rguenther@suse.de>
9210 PR tree-optimization/79740
9211 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
9213 (visit_nary_op): Insert the nary into the hashtable if we
9214 pattern-matched sth.
9215 * tree-ssa-pre.c (eliminate_insert): Robustify.
9217 2017-02-28 Richard Biener <rguenther@suse.de>
9220 * fold-const.c (decode_field_reference): Reject out-of-bound
9223 2017-02-28 Jakub Jelinek <jakub@redhat.com>
9225 * config/i386/i386.c: Include intl.h.
9226 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
9227 instead of just cond ? "..." : "...".
9228 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
9229 * coverage.c (read_counts_file): Likewise.
9230 * omp-offload.c: Include intl.h.
9231 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
9232 of just cond ? "..." : "...".
9233 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
9234 of just cond ? "..." : "...".
9236 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
9239 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
9241 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
9242 'tune for' CPU name.
9243 * config/arm/arm-cpu-data.h: Regenerated.
9245 2017-02-28 Richard Biener <rguenther@suse.de>
9247 PR tree-optimization/79732
9248 * tree-inline.c (expand_call_inline): Do not shadow var.
9250 2017-02-28 Richard Biener <rguenther@suse.de>
9252 PR tree-optimization/79723
9253 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
9254 address-space properly.
9256 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
9258 * doc/optinfo.texi (Optimization groups): Fix option used for
9260 * doc/invoke.texi (-fopt-info): Document "omp".
9261 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
9262 (OPTGROUP_ALL): Add OPTGROUP_OMP.
9263 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
9264 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
9265 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
9267 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
9269 * dumpfile.c (optgroup_options): Instead of "openmp", associate
9270 OPTGROUP_OMP with "omp".
9272 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
9275 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
9276 for arithmetic shift of unsigned V2DI.
9278 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
9280 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
9281 arc/linux.h headers.
9282 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
9283 (LINK_SPEC): Likewise.
9284 (ARC_TLS_EXTRA_START_SPEC): Likewise.
9285 (EXTRA_SPECS): Likewise.
9286 (STARTFILE_SPEC): Likewise.
9287 (ENDFILE_SPEC): Likewise.
9288 (LIB_SPEC): Likewise.
9289 (TARGET_SDATA_DEFAULT): Likewise.
9290 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
9291 (MULTILIB_DEFAULTS): Likewise.
9292 (DWARF2_UNWIND_INFO): Likewise.
9293 * config/arc/big.h: New file.
9294 * config/arc/elf.h: Likewise.
9295 * config/arc/linux.h: Likewise.
9296 * config/arc/t-uClibc: Remove.
9298 2017-02-27 Bin Cheng <bin.cheng@arm.com>
9300 PR tree-optimization/77536
9301 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
9302 (tree_transform_and_unroll_loop): Use above function to compute the
9303 estimated niter of unrolled loop and use it when scaling profile.
9304 Also use count info rather than frequency if it's non-zero.
9305 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
9306 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
9307 (vect_transform_loop): Call above function.
9309 2017-02-27 Richard Biener <rguenther@suse.de>
9311 PR tree-optimization/45397
9312 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
9313 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
9314 (visit_nary_op): Add pattern matching for CSEing sign-changed
9315 or truncated operations with wider ones.
9317 2017-02-27 Richard Biener <rguenther@suse.de>
9319 PR tree-optimization/79690
9320 * tree-vect-stmts.c (vectorizable_store): Use vector type
9321 built from the DR with address-space.
9323 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9325 * doc/invoke.texi (Optimize Options): Refine the description
9326 of asan-use-after-return.
9328 2017-02-25 Alan Modra <amodra@gmail.com>
9330 PR rtl-optimization/79584
9331 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
9332 base, not ad->base_term, the reg within base. Remove assertion
9333 that ad->base == ad->base_term. Replace gen_int_mode using
9334 bogus mode with const0_rtx.
9336 2017-02-25 Jakub Jelinek <jakub@redhat.com>
9339 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
9340 FMA_EXPR like tcc_binary or tcc_unary.
9342 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
9345 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
9347 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
9348 (output_loc_operands): Handle DW_OP_call_ref and
9349 DW_OP_GNU_variable_value.
9350 (struct variable_value_struct): New type.
9351 (struct variable_value_hasher): Likewise.
9352 (variable_value_hash): New variable.
9353 (string_types): Remove.
9354 (copy_loc_descr): New function.
9355 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
9356 (prepend_loc_descr_to_each): New function.
9357 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
9358 instead of add_loc_descr_to_each if the first argument is single
9359 location list and the second has multiple.
9360 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
9361 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
9362 when looking for variable value which doesn't have other location info.
9363 (loc_list_from_tree): Formatting fix.
9364 (gen_array_type_die): Simplify DW_AT_string_length handling.
9365 (adjust_string_types): Remove.
9366 (gen_subprogram_die): Don't call adjust_string_types nor test/set
9367 string_types. Call resolve_variable_values.
9368 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
9369 (resolve_addr_in_expr): Likewise. Add A argument.
9370 (copy_deref_exprloc): Remove deref argument. Adjust for the
9371 original expression being DW_OP_GNU_variable_value with optionally
9372 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
9373 optionally after it.
9374 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
9375 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
9376 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
9377 (variable_value_hasher::hash, variable_value_hasher::equal): New
9379 (resolve_variable_value_in_expr, resolve_variable_value,
9380 resolve_variable_values, note_variable_value_in_expr,
9381 note_variable_value): New functions.
9382 (dwarf2out_early_finish): Call note_variable_value on all toplevel
9385 2017-02-24 Jakub Jelinek <jakub@redhat.com>
9388 * opts.h (handle_generated_option): Add GENERATED_P argument.
9389 * opts-common.c (handle_option): Adjust function comment.
9390 (handle_generated_option): Add GENERATED_P argument, pass it to
9392 (control_warning_option): Pass false to handle_generated_option
9394 * opts.c (maybe_default_option): Pass true to handle_generated_option
9396 * optc-gen.awk: Likewise.
9398 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
9400 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
9401 a REG, look at the REG it is a SUBREG of.
9402 (splitter for cmpeqsi_t): Ditto.
9404 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
9406 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
9407 the special USEs with the pattern of the insn, not the insn itself.
9409 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
9412 * doc/invoke.texi: Document -mload-store-pairs.
9414 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
9415 Sandra Loosemore <sandra@codesourcery.com>
9417 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
9418 argument isn't a CONST_INT.
9419 (nios2_alternate_compare_const): Assert op is a CONST_INT.
9420 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
9421 (nios2_validate_compare): Bypass alternate compare logic if *op2
9423 (ldstwm_operation_p): Return false if first_base is not a REG or
9424 if first_offset is not a CONST_INT.
9426 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
9428 * config/cris/cris.md: Use correct operand in a define_peephole2.
9430 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
9432 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
9434 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
9436 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
9437 this_insn if it is an INSN or JUMP_INSN.
9438 (force_offsettable): Look at base, not at addr.
9439 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
9440 on things that aren't necessarily CONST_INTs.
9442 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
9444 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
9445 -mfpmath=sse is the default also for x86-32 targets with SSE2
9446 instruction set when @option{-ffast-math} is enabled
9448 2017-02-24 Jeff Law <law@redhat.com>
9450 PR rtl-optimizatoin/79286
9451 * ira.c (update_equiv_regs): Drop may_trap_p exception to
9454 2017-02-24 Richard Biener <rguenther@suse.de>
9456 PR tree-optimization/79389
9457 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
9460 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
9462 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
9463 function comment to reflect reality.
9464 (loop_exits_before_overflow): Fix typo in function description.
9466 2017-02-24 Richard Biener <rguenther@suse.de>
9468 PR tree-optimization/79389
9469 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
9470 properly that a threading opportunity exists. Detect conditional
9471 copy/constant propagation opportunities.
9473 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
9475 * config/visium/visium.md (type): Add trap.
9476 (b): New mode attribute.
9477 (*btst): Rename into...
9478 (*btst<mode>): ...this and adjust.
9479 (*cbranchsi4_btst_insn): Rename into...
9480 (*cbranch<mode>4_btst_insn): ...this and adjust.
9481 (trap): New define_insn.
9483 2017-02-23 Jakub Jelinek <jakub@redhat.com>
9485 PR tree-optimization/79389
9486 * ifcvt.c (struct noce_if_info): Add rev_cond field.
9487 (noce_reversed_cond_code): New function.
9488 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
9489 reversed_comparison_code. Formatting fix.
9490 (noce_try_store_flag): Test rev_cond != NULL in addition to
9491 reversed_comparison_code.
9492 (noce_try_store_flag_constants): Likewise.
9493 (noce_try_store_flag_mask): Likewise.
9494 (noce_try_addcc): Use rev_cond if non-NULL instead of
9495 reversed_comparison_code.
9496 (noce_try_cmove_arith): Likewise. Formatting fixes.
9497 (noce_try_minmax, noce_try_abs): Clear rev_cond.
9498 (noce_find_if_block): Initialize rev_cond.
9499 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
9500 instead of false as last argument never attempt to reverse it
9503 2017-02-23 Bin Cheng <bin.cheng@arm.com>
9505 PR tree-optimization/79663
9506 * tree-predcom.c (combine_chains): Process refs in reverse order
9507 only for ZERO length chains, and add explaining comment.
9509 2017-02-23 Jeff Law <law@redhat.com>
9511 PR tree-optimization/79578
9512 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
9513 in call to operand_equal_p.
9515 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
9518 * config/i386/cpuid.h: Fix another undefined behavior.
9520 2017-02-23 Richard Biener <rguenther@suse.de>
9522 PR tree-optimization/79683
9523 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
9524 vector types for data-refs.
9526 2017-02-23 Martin Liska <mliska@suse.cz>
9528 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
9530 2017-02-23 Jakub Jelinek <jakub@redhat.com>
9533 * internal-fn.c (get_range_pos_neg): Moved to ...
9534 * tree.c (get_range_pos_neg): ... here. No longer static.
9535 * tree.h (get_range_pos_neg): New prototype.
9536 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
9537 are known to be in between 0 and signed maximum inclusive, try to
9538 expand both unsigned and signed divmod and use the cheaper one from
9541 2017-02-22 Jeff Law <law@redhat.com>
9543 PR tree-optimization/79578
9544 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
9545 to compare base operands.
9547 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
9550 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
9551 gpc_reg_operand instead of fpr_reg_operand.
9553 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
9555 * config/mips/mips.c (mips_return_in_memory): Force FP
9556 vector types to be returned in memory for o32 ABI.
9558 2017-02-22 Jakub Jelinek <jakub@redhat.com>
9560 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
9561 instead of DW_TAG_member for static data member declarations and don't
9562 set no_linkage_name for static inline data members.
9563 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
9566 2017-02-22 Martin Liska <mliska@suse.cz>
9568 * doc/invoke.texi: Replace inequality signs with square brackets
9571 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9573 PR tree-optimization/68644
9574 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
9576 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
9579 * lra-constraints.c (simplify_operand_subreg): Handle
9580 WORD_REGISTER_OPERATIONS targets.
9582 2017-02-22 Jakub Jelinek <jakub@redhat.com>
9585 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
9586 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
9587 elimination by swapping fld*.
9589 2017-02-22 Richard Biener <rguenther@suse.de>
9591 PR tree-optimization/79673
9592 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
9593 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
9594 irrelevant address-space qualifiers and avoiding a
9595 ADDR_SPACE_CONVERT_EXPR from fold_convert.
9597 2017-02-22 Richard Biener <rguenther@suse.de>
9599 PR tree-optimization/79666
9600 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
9601 to not symbolically negate if that may introduce undefined
9604 2017-02-22 Martin Liska <mliska@suse.cz>
9607 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
9608 * data-streamer-out.c (streamer_write_gcov_count_stream):
9610 * value-prof.c (stream_out_histogram_value): Make assert more
9611 precise based on type of counter.
9613 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
9616 * config/i386/i386.md (standard_x87sse_constant_load splitter):
9617 Use nonimmediate_operand instead of memory_operand for operand 1.
9618 (float-extend standard_x87sse_constant_load splitter): Ditto.
9620 2017-02-21 Jeff Law <law@redhat.com>
9622 PR tree-optimization/79621
9623 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
9624 blocks with edges to themselves.
9626 2017-02-21 Jakub Jelinek <jakub@redhat.com>
9629 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
9630 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
9631 Use gimple_call_builtin_p.
9634 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
9635 on temporarily removed DEBUG_INSNs.
9637 PR tree-optimization/79649
9638 * tree-loop-distribution.c (classify_partition): Give up on
9639 non-generic address space loads/stores.
9641 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
9643 * doc/loop.texi (Loop manipulation): Remove nonexistent
9644 tree_ssa_loop_version from the documentation.
9645 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
9647 2017-02-21 Jakub Jelinek <jakub@redhat.com>
9650 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
9651 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
9652 * config/rs6000/rs6000.c: Include except.h.
9653 (rs6000_expand_split_stack_prologue): Call
9654 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
9656 2017-02-21 Martin Jambor <mjambor@suse.cz>
9659 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
9662 2017-02-21 Martin Jambor <mjambor@suse.cz>
9664 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
9665 for backward compatibility only.
9666 * doc/invoke.texi (Option Summary): Remove all references to
9669 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
9673 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
9675 * lra-constraints.c (curr_insn_transform): Handle
9676 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
9678 2017-02-21 Martin Liska <mliska@suse.cz>
9680 * config/i386/i386.opt: Replace -masm-dialect with -masm.
9682 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
9684 PR translation/79638
9685 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
9687 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
9690 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9691 (arm_function_ok_for_sibcall): Return false for an indirect call by
9692 descriptor if all the argument registers are used.
9693 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
9694 alignment of the function.
9696 2017-02-21 Jakub Jelinek <jakub@redhat.com>
9698 PR tree-optimization/61441
9699 * simplify-rtx.c (simplify_const_unary_operation): For
9700 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
9701 the sNaN unmodified.
9703 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
9705 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
9706 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
9707 instead of SYSTEM_HEADER_DIR.
9709 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
9710 Martin Liška <mliska@suse.cz>
9712 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
9713 Fix typos and grammar, use active voice, and clarify.
9715 2017-02-20 Marek Polacek <polacek@redhat.com>
9718 * gimplify.c (gimplify_expr): Handle unused *&&L;.
9721 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
9723 2017-02-20 Jakub Jelinek <jakub@redhat.com>
9726 * config/i386/i386.c (ix86_expand_builtin): Handle
9727 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
9728 ix86_builtins_isa[fcode].isa as a requirement of those
9729 flags and any other flag in the bitmask.
9730 (ix86_init_mmx_sse_builtins): Use 0 instead of
9731 ~OPTION_MASK_ISA_64BIT as mask.
9732 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
9733 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
9734 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
9735 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
9737 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
9740 * lra-constraints.c (split_reg): Check requested split mode
9741 is supported by the register.
9743 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
9745 * lra-constraints.c (simplify_operand_subreg): Remove early
9748 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
9751 * lra-constraints.c (curr_insn_transform): Tighten condition
9752 for converting SUBREG reloads from OP_OUT to OP_INOUT.
9754 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
9757 * lra-constraints.c (curr_insn_transform): Handle
9758 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
9760 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
9763 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
9765 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
9767 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
9770 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
9773 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9775 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
9778 2017-02-18 Jakub Jelinek <jakub@redhat.com>
9780 * final.c (last_columnnum, override_columnnum): New variables.
9781 (final_start_function): Set last_columnnum, pass it to begin_prologue
9782 hook and pass 0 to dwarf2out_begin_prologue.
9783 (final_scan_insn): Update override_columnnum. Pass last_columnnum
9784 to source_line debug hook.
9785 (notice_source_line): Compute last_columnnum and for debug_column_info
9786 return true on column changes.
9787 * debug.h (struct gcc_debug_hooks): Add column argument to
9788 source_line and begin_prologue hooks.
9789 (debug_nothing_int_charstar_int_bool): Remove prototype.
9790 (debug_nothing_int_int_charstar,
9791 debug_nothing_int_int_charstar_int_bool): New prototypes.
9792 (dwarf2out_begin_prologue): Add column argument.
9793 * debug.c (do_nothing_debug_hooks): Adjust source_line and
9794 begin_prologue hooks.
9795 (debug_nothing_int_charstar_int_bool): Remove.
9796 (debug_nothing_int_int_charstar,
9797 debug_nothing_int_int_charstar_int_bool): New functions.
9798 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
9799 through to dwarf2out_source_line.
9800 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
9801 (dwarf2out_source_line): Add column argument, emit it if requested.
9802 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
9804 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
9805 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
9806 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
9807 through to dwarf2out_begin_prologue.
9808 (vmsdbgout_source_line): Add column argument, pass it through to
9809 dwarf2out_source_line.
9810 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
9811 dbxout_source_line caller.
9812 (dbxout_source_line): Add column argument.
9814 * common.opt (gno-column-info, gcolumn-info): New options.
9815 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
9816 (check_die): Also test for multiple DW_AT_decl_column attributes.
9817 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
9818 DW_AT_decl_column if requested.
9819 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
9821 (gen_variable_die): Likewise.
9822 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
9823 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
9826 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
9827 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
9828 (ix86_handle_option): Handle OPT_m3dnowa.
9829 * doc/invoke.texi (-m3dnowa): Document.
9830 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
9831 -m3dnowa instead of -m3dnow -march=athlon.
9834 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
9835 instead of gcc_assert for K, r and R code checks. Formatting fixes.
9837 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9840 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
9841 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
9842 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
9843 generator for vsx_xxpermdi_<mode>_be.
9844 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
9845 force big-endian semantics.
9846 (vsx_xxpermdi_<mode>_be): New define_expand with same
9847 implementation as previous version of vsx_xxpermdi_<mode>.
9849 2017-02-17 Jakub Jelinek <jakub@redhat.com>
9851 PR tree-optimization/79327
9852 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
9853 variable, its initialization and use.
9855 2017-02-17 Julia Koval <julia.koval@intel.com>
9857 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
9858 (OPTION_MASK_ISA_PKU_UNSET): New.
9859 (ix86_handle_option): Handle -mrdpid.
9860 * config/i386/cpuid.h (bit_RDPID): New.
9861 * config/i386/driver-i386.c (host_detect_local_cpu):
9862 Detect RDPID feature.
9863 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
9864 * config/i386/i386-c.c (ix86_target_macros_internal):
9866 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
9867 (ix86_valid_target_attribute_inner_p): Add "rdpid".
9868 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
9869 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
9870 * config/i386/i386.md (define_insn "rdpid"): New.
9871 * config/i386/i386.opt Add -mrdpid.
9872 * config/i386/immintrin.h (_rdpid_u32): New.
9874 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
9876 PR rtl-optimization/79541
9877 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
9878 instead of transforming it into USE.
9880 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
9882 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
9883 If HONOR_SNANS (SFmode) force the input to a register.
9884 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
9885 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
9886 an frsp or similar insn.
9888 2017-02-17 Martin Liska <mliska@suse.cz>
9890 PR rtl-optimization/79577
9891 * params.def (selsched-max-sched-times): Increase minimum to 1.
9893 2017-02-17 Martin Liska <mliska@suse.cz>
9895 PR rtl-optimization/79574
9896 * gcse.c (want_to_gcse_p): Prevent integer overflow.
9898 2017-02-17 Martin Liska <mliska@suse.cz>
9900 PR tree-optimization/79529
9901 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
9902 ssa_defined_default_def_p to handle cases which are implicitly
9904 * tree-ssa.c (ssa_defined_default_def_p): New function.
9905 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
9906 which are implicitly defined.
9907 * tree-ssa.h (ssa_defined_default_def_p): Declare.
9909 2017-02-17 Richard Biener <rguenther@suse.de>
9912 * params.def (max-ssa-name-query-depth): Limit to 10.
9914 2017-02-17 Richard Biener <rguenther@suse.de>
9916 PR tree-optimization/79552
9917 * tree-ssa-structalias.c (visit_loadstore): Properly verify
9920 2017-02-17 Richard Biener <rguenther@suse.de>
9923 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
9925 2017-02-17 Marek Polacek <polacek@redhat.com>
9928 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
9929 (fold_negate_expr): New wrapper.
9931 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
9933 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
9934 Correct terminology and de-emphasize pre-standard behavior.
9936 2017-02-16 Alan Modra <amodra@gmail.com>
9938 PR rtl-optimization/79286
9939 * ira.c (def_dominates_uses): New function.
9940 (update_equiv_regs): Don't create an equivalence for insns that
9941 may trap where the register def does not dominate the use.
9943 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
9945 PR rtl-optimization/78127
9946 * lra.c (lra): Call lra_eliminate before finish the loop after
9949 2017-02-16 Richard Biener <rguenther@suse.de>
9951 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
9953 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
9954 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
9955 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
9956 (isl_val_int_from_wi): New function.
9957 (extract_affine_gmp): Rename to ...
9958 (extract_affine_wi): ... this, take a widest_int.
9959 (extract_affine_int): Just wrap extract_affine_wi.
9960 (add_param_constraints): Use isl_val_int_from_wi.
9961 (add_loop_constraints): Likewise, and extract_affine_wi.
9963 2017-02-15 Jeff Law <law@redhat.com>
9966 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
9967 ira_init_register_move_cost_if_necessary.
9969 2017-02-15 Martin Sebor <msebor@redhat.com>
9972 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
9973 removed in a prior commit.
9975 2017-02-15 Bin Cheng <bin.cheng@arm.com>
9977 PR tree-optimization/79347
9978 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
9979 counters during peeling.
9981 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
9983 * Makefile.in (site.exp): Remove "set ISLVER".
9985 2017-02-15 Jakub Jelinek <jakub@redhat.com>
9988 * real.c (real_from_integer): Call real_convert even for decimal.
9990 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
9993 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
9995 2017-02-14 Andrew Pinski <apinski@cavium.com>
9997 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
9998 cores and change the partno/implementer to be correct.
9999 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
10000 the 'B" as the implementer.
10001 * config/aarch64/aarch64-tune.md: Regenerate.
10003 2017-02-14 Carl Love <cel@us.ibm.com>
10005 * config/rs6000/rs6000.c: Add case statement entry to make the
10006 xvcvuxdsp built-in argument unsigned.
10007 * config/rs6000/vsx.md: Fix the source and return operand types so they
10008 match the instruction definitions from the ISA document. Fix typo
10009 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
10012 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
10015 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
10016 member early_clobber_alts.
10017 * lra-lives.c (reg_early_clobber_p): New.
10018 (process_bb_lives): Use it.
10019 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
10020 (debug_operand_data): Initialize early_clobber_alts.
10021 (setup_operand_alternative): Set up early_clobber_alts.
10022 (collect_non_operand_hard_regs): Ditto. Pass early clobber
10023 alternatives to new_insn_reg.
10024 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
10026 (lra_update_insn_regno_info): Pass the new arg.
10028 2017-02-14 Jakub Jelinek <jakub@redhat.com>
10030 PR middle-end/79505
10031 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
10032 (new_oacc_loop_raw): Don't clear already cleared fields.
10035 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
10036 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
10037 _mm512_prefetch_i64gather_ps): New inline functions and macros.
10039 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
10042 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
10044 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
10047 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
10048 the extra instruction to the right place to store 128-bit constant
10051 2017-02-14 Martin Sebor <msebor@redhat.com>
10053 PR middle-end/79448
10054 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
10055 warning for strings of unknown length.
10057 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
10059 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
10061 2017-02-14 Jeff Law <law@redhat.com>
10064 * ira-costs.c (scan_one_insn): Initialize register move costs
10065 for pseudos seen in USE/CLOBBER insns.
10067 PR tree-optimization/79095
10068 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
10069 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
10070 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
10071 if the operands are known to be not equal, then the resulting range
10073 (intersect_ranges): If the new range is ~[0,0] and the old range is
10074 wide, then prefer ~[0,0].
10075 * tree-vrp.c (overflow_comparison_p_1): New function.
10076 (overflow_comparison_p): New function.
10077 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
10078 if NAME is used in an overflow test.
10079 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
10080 overflow check that can be expressed as an equality test, then adjust
10081 ops to be that equality test.
10083 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10085 * config/s390/s390-builtin-types.def: Remove flags argument.
10086 * config/s390/s390.c (s390_init_builtins): Likewise.
10088 2017-02-14 Martin Liska <mliska@suse.cz>
10090 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
10091 vector. Fix trailing white spaces.
10093 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
10095 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
10098 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10100 PR rtl-optimization/68664
10101 * config/arm/arm.c (arm_sched_can_speculate_insn):
10102 New function. Declare prototype.
10103 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
10105 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10107 PR rtl-optimization/68664
10108 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
10110 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
10112 2017-02-14 Amit Pawar <amit.pawar@amd.com>
10114 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
10115 max skip bytes for function, loop and jump.
10117 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10119 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
10120 ABS_EXPR for gimple dump.
10122 2017-02-14 Jakub Jelinek <jakub@redhat.com>
10125 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
10127 PR tree-optimization/79408
10128 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
10129 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
10130 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
10131 also if rhs1 is INTEGER_CST.
10133 2017-02-14 Richard Biener <rguenther@suse.de>
10135 PR middle-end/79432
10136 * tree-into-ssa.c (insert_phi_nodes): When the function can
10137 have abnormal edges rewrite SSA names with broken use-def
10138 dominance out of SSA and register them for PHI insertion.
10140 2017-02-13 Martin Sebor <msebor@redhat.com>
10142 PR middle-end/79496
10143 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
10144 clearing info.nowrite flag when snprintf size argument is a range.
10146 2017-02-13 Jakub Jelinek <jakub@redhat.com>
10148 * cprop.c (cprop_jump): Add missing space in string literal.
10149 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
10150 (get_constraint_for_component_ref): Likewise.
10151 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
10152 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
10153 * lra-constraints.c (process_alt_operands): Likewise.
10154 * ipa-inline.c (inline_small_functions): Likewise.
10155 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
10156 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
10157 * trans-mem.c (diagnose_tm_1_op): Likewise.
10158 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
10159 (grid_parallel_clauses_gridifiable): Likewise.
10161 * config/nvptx/mkoffload.c (process): Add space in between
10164 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
10165 "MOD4_SSE_REGS" and "ALL_REGS".
10167 * spellcheck.c (test_data): Add , in between "foo" and "food".
10169 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10172 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
10173 boundary crossing check and subsequent code generation agree.
10175 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10177 * config/aarch64/aarch64.c (has_memory_op): Delete.
10178 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
10181 2017-02-13 Jakub Jelinek <jakub@redhat.com>
10183 PR rtl-optimization/79388
10184 PR rtl-optimization/79450
10185 * combine.c (distribute_notes): When removing TEM_INSN for which
10186 corresponding dest has last value recorded, invalidate that last
10189 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10191 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
10192 of explicit '@'. Add missing assembly comment marker on branch costs
10195 2017-02-13 Nathan Sidwell <nathan@acm.org>
10197 * gengtype-lex.l (<in_struct>): Add '/'.
10199 2017-02-13 Martin Liska <mliska@suse.cz>
10202 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
10204 2017-02-13 Richard Biener <rguenther@suse.de>
10206 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
10208 * configure: Re-generate.
10209 * config.in: Likewise.
10210 * graphite-dependences.c: Simplify as if
10211 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
10212 * graphite-isl-ast-to-gimple.c: Likewise.
10213 * graphite-optimize-isl.c: Likewise.
10214 * graphite-poly.c: Likewise.
10215 * graphite-sese-to-poly.c: Likewise.
10216 * graphite.h: Likewise.
10217 * toplev.c: Include isl/version.h and use isl_version () for
10218 printing the ISL version.
10219 * doc/install.texi: Update ISL requirement.
10221 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
10223 * doc/standards.texi (Standards): Update reference to
10226 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
10228 * doc/extend.texi (Named Address Spaces): sourceware.org now
10230 * doc/install.texi (Binaries): Ditto.
10233 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
10235 * doc/cpp.texi: Replace "stringify"/"stringification" with C
10236 standard terminology "stringize"/"stringizing" throughout.
10237 * doc/cppinternals.texi: Likewise.
10239 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
10241 * doc/extend.texi: Fix some spelling mistakes and typos.
10242 * doc/invoke.texi: Likewise.
10244 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
10247 * params.def (inline-min-speedup) Change from 10 to 8.
10249 2017-02-11 Jakub Jelinek <jakub@redhat.com>
10251 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
10254 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
10257 * ipa-inline-analysis.c (get_minimal_bb): New function.
10258 (record_modified): Use it.
10259 (remap_edge_change_prob): Handle also ancestor functions.
10261 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
10263 * doc/contrib.texi (Contributors): Remove broken link into
10264 the Mauve CVS repository.
10266 2017-02-11 Jakub Jelinek <jakub@redhat.com>
10268 PR middle-end/79454
10269 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
10270 result computation whenever lhs doesn't have vector mode, not
10271 just when it has BLKmode.
10273 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
10275 * doc/makefile.texi (profiledbootstrap): Refer to the
10276 installation instructions only in textual form.
10278 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10281 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
10283 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
10285 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
10286 (Specific): Update mingw-w64 reference.
10288 (Specific): Remove broken link to Renesas RX processor.
10290 2017-02-10 Richard Biener <rguenther@suse.de>
10292 * toplev.c (process_options): Do not mention obsolete graphite
10293 options when printing sorry message about missing graphite support.
10294 Mention -floop-nest-optimize.
10296 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
10298 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
10299 (vtst_p16): Likewise.
10300 (vtstq_p8): Likewise.
10301 (vtstq_p16): Likewise.
10303 (vtstq_p64): Likewise.
10304 * config/arm/arm_neon.h (vgetq_lane_p64): New.
10305 (vset_lane_p64): New.
10306 (vsetq_lane_p64): New.
10308 2017-02-10 Jakub Jelinek <jakub@redhat.com>
10310 PR tree-optimization/79411
10311 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
10312 stmt operands are SSA_NAMEs used in abnormal phis.
10313 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
10316 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
10319 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
10322 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
10324 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
10326 2017-02-09 Jakub Jelinek <jakub@redhat.com>
10328 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
10332 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
10333 not arbitrary TREE_CONSTANT.
10336 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
10337 "omp declare target link" attribute unless is_global_var.
10338 * omp-offload.c (find_link_var_op): Likewise.
10340 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
10341 Chung-Lin Tang <cltang@codesourcery.com>
10343 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
10345 (gimplify_adjust_omp_clauses): Don't delete TILE.
10346 (gimplify_omp_for): Deal with TILE.
10347 * internal-fn.c (expand_GOACC_TILE): New function.
10348 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
10350 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
10351 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
10353 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
10354 avoid DIV for outermost collapse var.
10355 (expand_oacc_for): Insert tile element loop as needed. Adjust.
10356 Remove out of date comments, fix whitespace.
10357 * omp-general.c (omp_extract_for_data): Deal with tiling.
10358 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
10359 adjust OLF_DIM_BASE value.
10360 (struct omp_for_data): Add tiling field.
10361 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
10362 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
10363 for auto loops. Remove default auto determining, moved to
10364 oacc_loop_fixed_partitions.
10365 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
10366 stmts, add e_mask field.
10367 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
10368 (oacc_thread_numbers): Use oacc_dim_call.
10369 (oacc_xform_tile): New.
10370 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
10371 (finish_oacc_loop): Adjust for ifns vector.
10372 (oacc_loop_discover_walk): Append loop abstraction sites to list,
10373 add case for GOACC_TILE fns.
10374 (oacc_loop_xform_loop): Delete.
10375 (oacc_loop_process): Iterate over call list directly, and add
10376 handling for GOACC_TILE fns.
10377 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
10379 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
10380 vector partitioning to outer loops. Assign 2 partitions to loops
10381 when available. Add TILE handling.
10382 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
10383 (execite_oacc_device_lower): Process GOACC_TILE fns,
10384 ignore unknown specs.
10385 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
10386 * tree.c (omp_clause_num_ops): Adjust TILE ops.
10387 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
10389 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
10391 * configure.ac (ACX_BUGURL): Update.
10392 * configure: Regenerate.
10394 2017-02-09 Richard Biener <rguenther@suse.de>
10396 PR tree-optimization/69823
10397 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
10398 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
10400 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
10402 * config/arc/arc-c.def: Add __NPS400__ definition.
10403 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
10404 (TARGET_NPS400): Define.
10406 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
10408 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
10410 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
10411 pointer, arch_info.
10412 (arc_cpu_types): Fill the arch_info field with a pointer into the
10413 arc_arch_types table.
10414 (arc_selected_cpu): Declare.
10415 * config/arc/arc.c (arc_selected_cpu): Make global.
10416 (arc_selected_arch): Delete.
10417 (arc_base_cpu): Delete.
10418 (arc_override_options): Remove references to deleted variables,
10419 update access to arch information.
10420 (ARC_OPT): Update access to arch information.
10421 (ARC_OPTX): Likewise.
10422 * config/arc/arc.h (arc_base_cpu): Remove declaration.
10423 (TARGET_ARC600): Update access to arch information.
10424 (TARGET_ARC601): Likewise.
10425 (TARGET_ARC700): Likewise.
10426 (TARGET_EM): Likewise.
10427 (TARGET_HS): Likewise.
10428 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
10431 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
10434 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
10435 condition/operands for integer GE/LE/GEU/LEU operations.
10437 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
10439 PR translation/79397
10440 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
10443 2017-02-08 Martin Jambor <mjambor@suse.cz>
10446 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
10447 whether allocation happened.
10448 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
10449 nothing was allocated.
10451 2017-02-08 Jakub Jelinek <jakub@redhat.com>
10453 PR tree-optimization/79408
10454 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
10455 constant, but SSA_NAME with a known integer range, use the minimum
10456 of that range instead of op1 to determine if modulo can be replaced
10457 with its first operand.
10459 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10461 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
10463 2017-02-08 Richard Biener <rguenther@suse.de>
10465 PR tree-optimization/71824
10466 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
10467 Check all loops contained in the merged region.
10469 2017-02-07 Andrew Pinski <apinski@cavium.com>
10471 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
10473 2017-02-07 Andrew Pinski <apinski@cavium.com>
10475 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
10476 (thunderxt88): Likewise.
10477 (thunderxt81): Disable LSE and change v8.1 to v8.
10478 (thunderxt83): Likewise.
10480 2017-02-07 Jakub Jelinek <jakub@redhat.com>
10481 Richard Biener <rguenther@suse.de>
10483 PR middle-end/79399
10484 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
10485 type from int to size_t.
10486 * ira-costs.c (struct_costs_size): Change type from int to size_t.
10488 2017-02-07 Jakub Jelinek <jakub@redhat.com>
10490 PR rtl-optimization/79386
10491 * cprop.c (bypass_conditional_jumps): Initialize
10492 bypass_last_basic_block already before splitting bbs after
10493 unconditional traps...
10494 (bypass_conditional_jumps): ... rather than here.
10497 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
10498 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
10499 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
10500 fix -masm=intel patterns.
10502 2017-02-07 Richard Biener <rguenther@suse.de>
10504 PR tree-optimization/79256
10505 PR middle-end/79278
10506 * builtins.c (get_object_alignment_2): Use min_align_of_type
10507 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
10508 and ADJUST_FIELD_ALIGN.
10510 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
10512 * doc/tm.texi: Regenerate.
10513 * stor-layout.c (layout_decl): Adjust.
10514 (update_alignment_for_field): Likewise.
10515 (place_field): Likewise.
10516 (min_align_of_type): Likewise.
10517 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
10518 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
10519 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
10520 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
10521 * config/frv/frv.c (frv_adjust_field_align): Likewise.
10522 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
10523 * config/i386/i386.c (x86_field_alignment): Likewise.
10524 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
10525 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
10526 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
10527 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
10528 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
10529 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
10533 2017-01-30 Richard Biener <rguenther@suse.de>
10535 PR tree-optimization/79256
10536 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
10537 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
10540 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
10542 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
10543 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
10544 builtins to SImode and emit a zero-extend, if necessary.
10546 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
10548 * docs/invoke.texi (RISC-V Options): Alphabetize.
10550 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
10552 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
10555 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
10557 * config/riscv/riscv.c: New file.
10558 * gcc/common/config/riscv/riscv-common.c: Likewise.
10559 * config.gcc: Likewise.
10560 * config/riscv/constraints.md: Likewise.
10561 * config/riscv/elf.h: Likewise.
10562 * config/riscv/generic.md: Likewise.
10563 * config/riscv/linux.h: Likewise.
10564 * config/riscv/multilib-generator: Likewise.
10565 * config/riscv/peephole.md: Likewise.
10566 * config/riscv/pic.md: Likewise.
10567 * config/riscv/predicates.md: Likewise.
10568 * config/riscv/riscv-builtins.c: Likewise.
10569 * config/riscv/riscv-c.c: Likewise.
10570 * config/riscv/riscv-ftypes.def: Likewise.
10571 * config/riscv/riscv-modes.def: Likewise.
10572 * config/riscv/riscv-opts.h: Likewise.
10573 * config/riscv/riscv-protos.h: Likewise.
10574 * config/riscv/riscv.h: Likewise.
10575 * config/riscv/riscv.md: Likewise.
10576 * config/riscv/riscv.opt: Likewise.
10577 * config/riscv/sync.md: Likewise.
10578 * config/riscv/t-elf-multilib: Likewise.
10579 * config/riscv/t-linux: Likewise.
10580 * config/riscv/t-linux-multilib: Likewise.
10581 * config/riscv/t-riscv: Likewise.
10582 * configure.ac: Likewise.
10583 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
10584 Waterman as RISC-V maintainers.
10585 * doc/install.texi: Add RISC-V entries.
10586 * doc/invoke.texi: Add RISC-V options section.
10587 * doc/md.texi: Add RISC-V constraints section.
10588 * configure: Regenerated.
10590 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10593 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
10594 false values to be constant vectors with all 0 or all 1 bits set.
10595 (vcondu<mode><mode>): Likewise.
10596 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
10598 (fpmask_comparison_operator): Update comment.
10599 (vecint_comparison_operator): New predicate.
10600 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
10601 vector conditionals when the true and false values are constant
10602 vectors with all 0 bits or all 1 bits set.
10604 2017-02-06 Martin Sebor <msebor@redhat.com>
10606 PR tree-optimization/79376
10607 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
10609 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
10611 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
10612 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
10613 to simplify split condition.
10615 2017-02-06 Jakub Jelinek <jakub@redhat.com>
10617 * omp-expand.c (oxpand_omp_atomic_fetch_op,
10618 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
10621 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
10623 PR rtl-optimization/68664
10624 * target.def (can_speculate_insn): New hook.
10625 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
10626 * doc/tm.texi: Regenerate.
10627 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
10628 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
10629 (rs6000_sched_can_speculate_insn): New function.
10631 2017-02-06 Jakub Jelinek <jakub@redhat.com>
10633 PR tree-optimization/79284
10634 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
10635 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
10636 vectorizable_mask_load_store, vectorizable_operation,
10637 vect_is_simple_cond, get_same_sized_vectype): Use it instead
10638 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
10639 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
10640 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
10641 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
10642 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
10643 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
10644 is_gimple_assign (stmt). Replace another such test with
10645 is_gimple_assign (stmt).
10647 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
10650 * config/avr/avr.c (rtl-iter.h): Include it.
10651 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
10652 (avr_legitimate_combined_insn): ...and implementation.
10654 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
10656 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
10657 * config/s390/s390.c (s390_const_operand_ok)
10658 (s390_canonicalize_comparison, s390_extract_part)
10659 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
10660 (s390_contiguous_bitmask_p, s390_rtx_costs)
10661 (legitimize_pic_address): Likewise.
10662 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
10663 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
10664 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
10665 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
10666 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
10668 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
10670 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
10671 REGNO($0) == REGNO($1).
10673 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10675 * config/s390/linux.h(SIZE_TYPE): Add comment.
10677 2017-02-06 Julian Brown <julian@codesourcery.com>
10678 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
10679 Virendra Pathak <virendra.pathak@broadcom.com>
10681 * config/aarch64/aarch64-cores.def: Change the scheduler
10683 * config/aarch64/aarch64.md: Include thunderx2t99.md.
10684 * config/aarch64/thunderx2t99.md: New file.
10686 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
10688 * doc/standards.texi (Go Language): Update link to language
10691 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
10693 * tree-eh.c (lower_resx): Sanitize profile.
10694 (cleanup_empty_eh_move_lp): Likewise.
10696 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
10699 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
10701 * cfgloopmanip.h (loop_version): Update prototype.
10702 * modulo-sched.c (sms_schedule): Update call of loop_version.
10703 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
10704 * tree-parloops.c (gen_parallel_loop): Likewise.
10705 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
10706 * tree-ssa-loop-split.c (split_loop): Likewise.
10707 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
10708 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
10710 2017-02-05 Martin Liska <mliska@suse.cz>
10713 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
10715 (print_operand_address): Initialize a struct to zero.
10717 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
10719 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
10720 garbage collector only in textual form.
10722 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
10724 * doc/extend.texi (x86 specific memory model extensions for
10725 transactional memory): Simplify a phrase.
10727 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
10730 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
10731 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
10732 (atomic_storedi_1): Likewise.
10734 2017-02-04 Jakub Jelinek <jakub@redhat.com>
10736 PR tree-optimization/79338
10737 * tree-parloops.c (gather_scalar_reductions): Don't call
10738 vect_analyze_loop_form for loop->inner before destroying loop's
10741 2017-02-03 Martin Sebor <msebor@redhat.com>
10743 PR tree-optimization/79327
10744 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
10745 when precision has resulted in leading zeros.
10746 (format_integer): Adjust the likely counter to assume an unknown
10747 argument that may be zero is non-zero.
10749 2017-02-03 Jason Merrill <jason@redhat.com>
10752 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
10753 avoid copying non-taken branch.
10755 2017-02-03 Jakub Jelinek <jakub@redhat.com>
10757 PR tree-optimization/79340
10758 * tree-vect-loop.c (vectorizable_reduction): Release
10759 vec_defs elements after safe_splicing them into other vectors.
10762 PR tree-optimization/79327
10763 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
10764 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
10766 (format_integer): Use wide_int_to_tree instead of build_int_cst
10767 + to_?hwi. If argmin is NULL, just set argmin and argmax to
10768 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
10769 of shortest and longest sequence.
10771 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
10773 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
10774 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
10776 2017-02-03 Walter Lee <walt@tilera.com>
10779 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
10780 after initial stackframe link reg save.
10781 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
10783 2017-02-03 Jakub Jelinek <jakub@redhat.com>
10786 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
10787 wu for stxssp alternative.
10789 2017-02-03 Martin Sebor <msebor@redhat.com>
10791 PR tree-optimization/79352
10792 * gimple-fold.c (get_range_strlen): Add argument.
10793 (get_range_strlen): Change return type to bool.
10794 (get_maxval_strlen): Pass in a dummy argument.
10795 * gimple-fold.h (get_range_strlen): Change return type to bool.
10796 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
10797 * tree.h (array_at_struct_end_p): Add argument.
10798 * tree.c (array_at_struct_end_p): Handle it.
10800 2017-02-03 Martin Liska <mliska@suse.cz>
10803 * multiple_target.c (create_dispatcher_calls): Redirect edge
10804 from a caller of a dispatcher.
10805 (expand_target_clones): Make the clones local.
10806 (ipa_target_clone): Do both target clones and resolvers.
10807 (ipa_dispatcher_calls): Remove the pass.
10808 (pass_dispatcher_calls::gate): Likewise.
10809 (make_pass_dispatcher_calls): Likewise.
10810 * passes.def (pass_target_clone): Put as very first IPA early
10813 2017-02-03 Martin Liska <mliska@suse.cz>
10815 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
10816 in case of a function with ifunc attribute.
10818 2017-02-03 Martin Liska <mliska@suse.cz>
10820 * cgraph.c (cgraph_node::dump): Dump function version info.
10821 * symtab.c (symtab_node::dump_base): Add missing new line.
10823 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
10825 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
10826 (ifcombine_ifandif): Use it.
10828 2017-02-03 Martin Liska <mliska@suse.cz>
10830 * doc/invoke.texi: Document default value for
10831 use-after-scope-direct-emission-threshold.
10833 2017-02-03 Martin Liska <mliska@suse.cz>
10835 PR tree-optimization/79339
10836 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
10837 (format_floating): Likewise.
10839 2017-02-03 Martin Liska <mliska@suse.cz>
10842 * ipa-prop.c (ipa_node_params_t::insert): Remove current
10844 (ipa_node_params_t::remove): Likewise.
10845 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
10846 initialization from removed ipa_node_params_t::insert.
10847 (ipa_node_params::~ipa_node_params): Move from removed
10848 ipa_node_params_t::release.
10849 * symbol-summary.h (symbol_summary::m_released): New member.
10850 Do not release a summary twice. Do not allow to call finalizer
10851 for types of a summary that live in GGC memory.
10853 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
10855 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
10858 2017-02-02 Martin Sebor <msebor@redhat.com>
10860 PR middle-end/79275
10861 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
10862 (format_string): Tighten up the range of output for non-constant
10863 strings and correct the expected range for wide non-constant strings.
10865 2017-02-02 Martin Sebor <msebor@redhat.com>
10867 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
10869 PR middle-end/32003
10870 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
10872 (-fdump-tree-@var): Add to index and document how to come up
10873 with pass-specific option and dump file names.
10874 (-fdump-passes): Clarify where to look for output.
10876 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
10878 PR middle-end/77445
10879 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
10880 statistics of the analyzed path; allow threading for speed when
10881 any of BBs along the path are optimized for speed.
10883 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
10885 PR middle-end/78468
10886 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
10887 settings of the virtual registers.
10890 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10892 * explow.c (get_dynamic_stack_size): Take known alignment of stack
10893 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
10896 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10898 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
10899 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
10901 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10903 * config/s390/s390.md: Add missing comments with the expanded
10905 * config/s390/vector.md: Likewise.
10906 * config/s390/vx-builtins.md: Likewise.
10908 2017-02-02 Jakub Jelinek <jakub@redhat.com>
10911 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
10912 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
10913 conditions on a single line.
10915 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10917 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
10918 __S390_VX__ to __VX__.
10920 2017-02-01 Andrew Pinski <apinski@cavium.com>
10922 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
10923 stmt_info to record_stmt_cost.
10924 (vect_get_known_peeling_cost): Pass stmt_info if known to
10926 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
10927 cpu_vector_cost field into
10928 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
10929 field into vec_int_stmt_cost and vec_fp_stmt_cost.
10930 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
10931 splitting of scalar_stmt_cost and vec_stmt_cost.
10932 (thunderx_vector_cost): Likewise.
10933 (cortexa57_vector_cost): LIkewise.
10934 (exynosm1_vector_cost): Likewise.
10935 (xgene1_vector_cost): Likewise.
10936 (thunderx2t99_vector_cost): Improve after the splitting of the two
10938 (aarch64_builtin_vectorization_cost): Update for the splitting of
10939 scalar_stmt_cost and vec_stmt_cost.
10941 2017-02-01 Torvald Riegel <triegel@redhat.com>
10942 Richard Henderson <rth@redhat.com>
10944 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
10945 conditional on existance of a fast atomic load.
10946 * optabs-query.c (can_atomic_load_p): New function.
10947 * optabs-query.h (can_atomic_load_p): Declare it.
10948 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
10949 no fast atomic load is available for the particular size of access.
10950 (expand_atomic_compare_and_swap): Likewise.
10951 (expand_atomic_load): Likewise.
10952 (expand_atomic_store): Likewise.
10953 (expand_atomic_fetch_op): Likewise.
10954 * testsuite/lib/target-supports.exp
10955 (check_effective_target_sync_int_128): Remove x86 because it provides
10956 no fast atomic load.
10957 (check_effective_target_sync_int_128_runtime): Likewise.
10959 2017-02-01 Richard Biener <rguenther@suse.de>
10961 * graphite.c: Include tree-vectorizer.h for find_loop_location.
10962 (graphite_transform_loops): Provide opt-info for optimized nests.
10963 * tree-parloop.c (parallelize_loops): Provide opt-info for
10964 parallelized loops.
10966 2017-02-01 Richard Biener <rguenther@suse.de>
10968 PR middle-end/79315
10969 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
10970 was not set before.
10972 2017-02-01 Richard Biener <rguenther@suse.de>
10974 PR tree-optimization/71824
10975 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
10976 Verify the loops are valid in the merged SESE region.
10977 (scop_detection::can_represent_loop_1): Check analyzing the
10978 evolution of the number of iterations in the region succeeds.
10980 2017-01-31 Ian Lance Taylor <iant@golang.org>
10982 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
10983 REG_ARGS_SIZE note to 32-bit push insns and call insn.
10985 2017-01-31 David Malcolm <dmalcolm@redhat.com>
10987 PR preprocessor/79210
10988 * input.c (get_substring_ranges_for_loc): Replace line_width
10989 assertion with error-handling.
10991 2017-01-31 Richard Biener <rguenther@suse.de>
10993 PR tree-optimization/77318
10994 * graphite-sese-to-poly.c (extract_affine): Fix assert.
10995 (create_pw_aff_from_tree): Take loop parameter.
10996 (add_condition_to_pbb): Pass loop of the condition to
10997 create_pw_aff_from_tree.
10999 2017-01-31 Jakub Jelinek <jakub@redhat.com>
11001 * config/s390/s390.c (s390_asan_shadow_offset): New function.
11002 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
11004 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
11008 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
11010 (convert_int_to_float128): Likewise.
11011 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
11012 (convert_int_to_float128): Likewise.
11013 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
11014 (UNSPEC_IEEE128_CONVERT): Likewise.
11015 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
11016 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
11017 Use local variables for IBM extended format.
11018 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
11019 (fix_trunc<mode>si2_fprs): Likewise.
11020 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
11021 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
11022 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
11023 to know that we can now have integers of all sizes in vector
11025 (fix<uns>_<mode>di2_hw): Likewise.
11026 (float<uns>_<mode>si2_hw): Likewise.
11027 (fix_<mode>si2_hw): Likewise.
11028 (fixuns_<mode>si2_hw): Likewise.
11029 (float<uns>_<mode>di2_hw): Likewise.
11030 (float_<mode>di2_hw): Likewise.
11031 (float_<mode>si2_hw): Likewise.
11032 (floatuns_<mode>di2_hw): Likewise.
11033 (floatuns_<mode>si2_hw): Likewise.
11034 (xscvqp<su>wz_<mode>): Delete, no longer used.
11035 (xscvqp<su>dz_<mode>): Likewise.
11036 (xscv<su>dqp_<mode>): Likewise.
11037 (ieee128_mfvsrd_64bit): Likewise.
11038 (ieee128_mfvsrd_32bit): Likewise.
11039 (ieee128_mfvsrwz): Likewise.
11040 (ieee128_mtvsrw): Likewise.
11041 (ieee128_mtvsrd_64bit): Likewise.
11042 (ieee128_mtvsrd_32bit): Likewise.
11044 2017-01-31 Martin Liska <mliska@suse.cz>
11047 * ipa-prop.c (ipa_free_all_node_params): Call release method
11048 instead of ~sumbol_summary to not to trigger double times
11051 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
11053 PR tree-optimization/71691
11054 * bitmap.h (class auto_bitmap): New.
11055 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
11056 is_maybe_undefined instead of ssa_undefined_value_p.
11058 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11060 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
11061 __S390_ARCH_LEVEL__ to __ARCH__.
11063 2017-01-31 Jakub Jelinek <jakub@redhat.com>
11065 PR tree-optimization/79267
11066 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
11067 if should_remove_lhs_p is true.
11069 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
11072 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
11073 (add_alignment_attribute): New.
11074 (base_type_die): Add alignment attribute.
11075 (subrange_type_die): Likewise.
11076 (modified_type_die): Likewise.
11077 (gen_array_type_die): Likewise.
11078 (gen_descr_array_type_die: Likewise.
11079 (gen_enumeration_type_die): Likewise.
11080 (gen_subprogram_die): Likewise.
11081 (gen_variable_die): Likewise.
11082 (gen_field_die): Likewise.
11083 (gen_ptr_to_mbr_type_die): Likewise.
11084 (gen_struct_or_union_type_die): Likewise.
11085 (gen_subroutine_type_die): Likewise.
11086 (gen_typedef_die): Likewise.
11087 (base_type_cmp): Compare alignment attribute.
11089 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11092 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
11093 (setb_unsigned) New pattern for setb with CCUNS.
11094 * config/rs6000/rs6000.c (expand_block_compare): Use a different
11095 subfc./subfe sequence to avoid overflow problems. Generate a
11096 shorter sequence with cmpld/setb for power9.
11097 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
11098 for generating subfc. instruction.
11099 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
11100 now uses this instruction.
11102 2017-01-30 Ian Lance Taylor <iant@google.com>
11105 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
11106 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
11108 2017-01-30 Martin Sebor <msebor@redhat.com>
11110 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
11111 Move constant to the right of a relational operator.
11112 (get_mpfr_format_length, format_character, format_string): Ditto.
11113 (should_warn_p, maybe_warn): Same.
11115 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
11117 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
11120 * asan.c (get_translation_unit_decl): Remove function.
11121 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
11123 2017-01-30 Martin Liska <mliska@suse.cz>
11125 PR gcov-profile/79259
11126 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
11127 -fprofile-generate.
11129 2017-01-30 Martin Liska <mliska@suse.cz>
11132 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
11133 Initialize variables with NULL value.
11135 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
11138 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
11140 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
11142 2017-01-30 Richard Biener <rguenther@suse.de>
11144 PR tree-optimization/79276
11145 * tree-vrp.c (process_assert_insertions): Properly adjust common
11146 when removing a duplicate.
11148 * gcc.dg/torture/pr79276.c: New testcase.
11150 2017-01-30 Richard Biener <rguenther@suse.de>
11152 PR tree-optimization/79256
11153 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
11154 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
11156 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
11158 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
11161 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
11162 ("*r<noxa>sbg_<mode>_sll_bitmask")
11163 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
11164 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
11165 Use contiguous_bitmask_nowrap_operand.
11167 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11170 * config/rs6000/altivec.h (vec_xl): Revise #define.
11171 (vec_xst): Likewise.
11173 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
11175 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
11177 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
11179 PR rtl-optimization/79194
11180 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
11181 traps before call to bypass_conditional_jumps.
11183 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
11185 PR tree-optimization/71374
11186 * lra-constraints.c (check_conflict_input_operands): New.
11187 (match_reload): Use it.
11189 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
11192 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
11193 account to calculate conflict_set.
11195 2017-01-27 Bin Cheng <bin.cheng@arm.com>
11197 PR rtl-optimization/78559
11198 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
11199 other_insn in combine.
11201 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
11203 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
11204 uint16_type_node for BT_UINT16.
11206 2017-01-27 David Malcolm <dmalcolm@redhat.com>
11208 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
11209 "RTL Tests" to menu.
11210 (GIMPLE Tests): New node.
11211 (RTL Tests): New node.
11213 2017-01-27 Richard Biener <rguenther@suse.de>
11215 PR tree-optimization/79245
11216 * tree-loop-distribution.c (distribute_loop): Apply cost
11217 modeling also to detected patterns.
11219 2017-01-27 Richard Biener <rguenther@suse.de>
11221 PR tree-optimization/71433
11222 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
11223 (compare_assert_loc): New function.
11224 (process_assert_insertions): Sort and optimize assert locations
11225 to remove duplicates and push down identical assertions on
11226 edges to their destination block.
11228 2017-01-27 Richard Biener <rguenther@suse.de>
11230 PR tree-optimization/79244
11231 * tree-vrp.c (remove_range_assertions): Forcefully propagate
11232 out SSA names even if abnormal.
11234 2017-01-27 Jakub Jelinek <jakub@redhat.com>
11236 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
11237 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
11238 instead of MPFR_RNDN.
11240 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
11243 * arm.c (arm_option_override): Don't call build_target_option_node
11244 until after doing all option overrides.
11245 (arm_valid_target_attribute_tree): Likewise.
11247 2017-01-27 Martin Liska <mliska@suse.cz>
11249 * doc/invoke.texi (-fprofile-arcs): Document profiling support
11250 for {cd}tors and C++ {cd}tors.
11252 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
11254 * config/s390/s390.md ("*setmem_long_and")
11255 ("*setmem_long_and_31z"): Use zero_extend instead of and.
11257 2017-01-26 Martin Sebor <msebor@redhat.com>
11259 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
11262 2017-01-26 Martin Sebor <msebor@redhat.com>
11264 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
11265 HAVE_DFmode before using XFmode or DFmode.
11266 (parse_directive): Avoid using the z length modifier to avoid
11267 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
11269 PR middle-end/78703
11270 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
11271 to accept adjustment as an array.
11272 (get_int_range): New function.
11273 (struct directive): Make width and prec arrays.
11274 (directive::set_width, directive::set_precision): Call get_int_range.
11275 (format_integer, format_floating): Handle width and precision ranges.
11276 (format_string, parse_directive): Same.
11278 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11281 * dwarf2out.c (generate_skeleton_bottom_up): For children with
11282 comdat_type_p set, just clone them, but keep the children in the
11286 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
11287 which have direct callers with -fvar-tracking-assignments enabled
11289 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
11290 inside of type units.
11292 2017-01-26 Martin Sebor <msebor@redhat.com>
11294 PR middle-end/78703
11295 * gimple-ssa-sprintf.c (struct result_range): Add likely and
11297 (struct format_result): Replace number_chars, number_chars_min,
11298 and number_chars_max with a single member of struct result_range.
11300 (format_result::operator+=): Adjust.
11301 (struct fmtresult): Remove bounded. Handle likely and unlikely
11303 (fmtresult::adjust_for_width_or_precision): New function.
11304 (fmtresult:type_max_digits): New function.
11305 (bytes_remaining): Handle likely and unlikely counters.
11306 (min_bytes_remaining): Remove.
11307 (format_percent): Simplify.
11308 (format_integer, format_floating): Set likely and unlikely counters.
11309 (get_string_length, format_character, format_string): Same.
11310 (format_plain, should_warn_p): New function.
11311 (maybe_warn): Call should_warn_p. Update diagnostic messages
11312 and handle those for all directives, including plain strings.
11313 (format_directive): Handle likely and unlikely counters.
11314 Remove unnecessary quoting from diagnostics. Add an informational
11316 (add_bytes): Remove.
11317 (pass_sprintf_length::compute_format_length): Simplify.
11318 (try_substitute_return_value): Handle likely and unlikely counters.
11320 2017-01-26 Carl Love <cel@us.ibm.com>
11322 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
11323 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
11325 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
11328 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
11329 endianess for subregs into account.
11330 * lra-constraints.c (lra_constraints): Do risky transformations
11331 always on the first iteration.
11332 * lra-lives.c (check_pseudos_live_through_calls): Add arg
11333 last_call_used_reg_set.
11334 (process_bb_lives): Define and use last_call_used_reg_set.
11335 * lra.c (lra): Always continue after lra_constraints on the first
11338 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
11340 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
11342 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
11344 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11346 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
11347 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
11348 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
11349 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
11350 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
11351 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
11352 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
11353 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
11354 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
11356 2017-01-26 Marek Polacek <polacek@redhat.com>
11359 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
11360 for the third operand.
11362 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11364 PR middle-end/79236
11365 * omp-low.c (struct omp_context): Add simt_stmt field.
11366 (scan_omp_for): Return omp_context *.
11367 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
11368 context to the _simt_ SIMD stmt.
11369 (lower_omp_for): For combined SIMD with sibling _simt_
11370 SIMD, make sure to use the same decls in _looptemp_
11371 clauses as in the sibling.
11373 2017-01-26 David Sherwood <david.sherwood@arm.com>
11375 PR middle-end/79212
11376 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
11379 2017-01-26 Jakub Jelinek <jakub@redhat.com>
11382 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
11383 emit fld b; fld a; if possible.
11385 * brig-builtins.def: Update copyright years.
11386 * config/arm/arm_acle_builtins.def: Update copyright years.
11388 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
11391 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
11392 constraint instead of o for the stxsd instruction.
11394 2017-01-25 Carl Love <cel@us.ibm.com>
11396 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
11397 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
11399 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
11401 * doc/invoke.texi (C++ Dialect Options): Fix typo.
11403 2017-01-25 Richard Biener <rguenther@suse.de>
11405 PR tree-optimization/69264
11406 * target.def (vector_alignment_reachable): Improve documentation.
11407 * doc/tm.texi: Regenerate.
11408 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
11410 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
11411 earlier changes with respect to TYPE_USER_ALIGN.
11412 (vector_alignment_reachable_p): Likewise. Improve dumping.
11414 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11417 * config/arm/arm.md (xordi3): Force constant operand into a register
11420 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11422 * doc/invoke.texi (-fstore-merging): Correct default optimization
11423 levels at which it is enabled.
11424 (-O): Move -fstore-merging from list to...
11427 2017-01-25 Richard Biener <rguenther@suse.de>
11430 * omp-expand.c: Include debug.h.
11431 (expand_omp_taskreg): Make sure to generate early debug before
11432 outlining anything from a function.
11433 (expand_omp_target): Likewise.
11434 (grid_expand_target_grid_body): Likewise.
11436 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
11439 * asan.c (get_translation_unit_decl): New function.
11440 (asan_add_global): Extract modules file name from globals
11441 TRANSLATION_UNIT_DECL name.
11443 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
11446 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
11447 for long calls with APCS frame and VFP.
11449 2017-01-24 David Malcolm <dmalcolm@redhat.com>
11451 * cfg.c (original_copy_tables_initialized_p): New function.
11452 * cfg.h (original_copy_tables_initialized_p): New decl.
11453 * cfgrtl.c (relink_block_chain): Guard the call to
11454 free_original_copy_tables with a call to
11455 original_copy_tables_initialized_p.
11456 * cgraph.h (symtab_node::native_rtl_p): New decl.
11457 * cgraphunit.c (symtab_node::native_rtl_p): New function.
11458 (symtab_node::needed_p): Don't assert for early assembly output
11459 for __RTL functions.
11460 (cgraph_node::finalize_function): Set "force_output" for __RTL
11462 (cgraph_node::analyze): Bail out early for __RTL functions.
11463 (analyze_functions): Update assertion to support __RTL functions.
11464 (cgraph_node::expand): Bail out early for __RTL functions.
11465 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
11467 * function.h (struct function): Update comment for field
11469 * gimple-expr.c: Include "tree-pass.h".
11470 (gimple_has_body_p): Return false for __RTL functions.
11471 * Makefile.in (OBJS): Add run-rtl-passes.o.
11472 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
11474 (gcc::pass_manager::get_clean_slate): New accessor.
11475 * passes.c: Include "insn-addr.h".
11476 (should_skip_pass_p): Add logging. Update logic for running
11477 "expand" to be compatible with both __GIMPLE and __RTL. Guard
11478 property-provider override so it is only done for gimple passes.
11480 (skip_pass): New function.
11481 (execute_one_pass): Call skip_pass when skipping passes.
11482 * read-md.c (md_reader::read_char): Support filtering
11483 the input to a subset of line numbers.
11484 (md_reader::md_reader): Initialize fields
11485 m_first_line and m_last_line.
11486 (md_reader::read_file_fragment): New function.
11487 * read-md.h (md_reader::read_file_fragment): New decl.
11488 (md_reader::m_first_line): New field.
11489 (md_reader::m_last_line): New field.
11490 * read-rtl-function.c (function_reader::create_function): Only
11491 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
11492 curr_properties. Set DECL_INITIAL to a dummy block.
11493 (read_rtl_function_body_from_file_range): New function.
11494 * read-rtl-function.h (read_rtl_function_body_from_file_range):
11496 * run-rtl-passes.c: New file.
11497 * run-rtl-passes.h: New file.
11499 2017-01-24 Jeff Law <law@redhat.com>
11501 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
11504 2017-01-24 Bin Cheng <bin.cheng@arm.com>
11506 PR tree-optimization/79159
11507 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
11508 (record_nonwrapping_iv): Improve boundary using above function if no
11509 value range information.
11511 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
11512 Martin Jambor <mjambor@suse.cz>
11514 * brig-builtins.def: New file.
11515 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
11516 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
11517 (DEF_HSAIL_SAT_BUILTIN): Likewise.
11518 (DEF_HSAIL_INTR_BUILTIN): Likewise.
11519 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
11520 * builtin-types.def (BT_INT8): New.
11521 (BT_INT16): Likewise.
11522 (BT_UINT8): Likewise.
11523 (BT_UINT16): Likewise.
11524 (BT_FN_ULONG): Likewise.
11525 (BT_FN_UINT_INT): Likewise.
11526 (BT_FN_UINT_ULONG): Likewise.
11527 (BT_FN_UINT_LONG): Likewise.
11528 (BT_FN_UINT_PTR): Likewise.
11529 (BT_FN_ULONG_PTR): Likewise.
11530 (BT_FN_INT8_FLOAT): Likewise.
11531 (BT_FN_INT16_FLOAT): Likewise.
11532 (BT_FN_UINT32_FLOAT): Likewise.
11533 (BT_FN_UINT16_FLOAT): Likewise.
11534 (BT_FN_UINT8_FLOAT): Likewise.
11535 (BT_FN_UINT64_FLOAT): Likewise.
11536 (BT_FN_UINT16_UINT32): Likewise.
11537 (BT_FN_UINT32_UINT16): Likewise.
11538 (BT_FN_UINT16_UINT16_UINT16): Likewise.
11539 (BT_FN_INT_PTR_INT): Likewise.
11540 (BT_FN_UINT_PTR_UINT): Likewise.
11541 (BT_FN_LONG_PTR_LONG): Likewise.
11542 (BT_FN_ULONG_PTR_ULONG): Likewise.
11543 (BT_FN_VOID_UINT64_UINT64): Likewise.
11544 (BT_FN_UINT8_UINT8_UINT8): Likewise.
11545 (BT_FN_INT8_INT8_INT8): Likewise.
11546 (BT_FN_INT16_INT16_INT16): Likewise.
11547 (BT_FN_INT_INT_INT): Likewise.
11548 (BT_FN_UINT_FLOAT_UINT): Likewise.
11549 (BT_FN_FLOAT_UINT_UINT): Likewise.
11550 (BT_FN_ULONG_UINT_UINT): Likewise.
11551 (BT_FN_ULONG_UINT_PTR): Likewise.
11552 (BT_FN_ULONG_ULONG_ULONG): Likewise.
11553 (BT_FN_UINT_UINT_UINT): Likewise.
11554 (BT_FN_VOID_UINT_PTR): Likewise.
11555 (BT_FN_UINT_UINT_PTR: Likewise.
11556 (BT_FN_UINT32_UINT64_PTR): Likewise.
11557 (BT_FN_INT_INT_UINT_UINT): Likewise.
11558 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
11559 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
11560 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
11561 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
11562 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
11563 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
11564 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
11565 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
11566 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
11567 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
11568 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
11569 * doc/frontends.texi: List BRIG FE.
11570 * doc/install.texi (Testing): Add BRIG tesring requirements.
11571 * doc/invoke.texi (Overall Options): Mention BRIG.
11572 * doc/standards.texi (Standards): Doucment BRIG HSA version.
11574 2017-01-24 Richard Biener <rguenther@suse.de>
11576 PR translation/79208
11577 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
11579 2017-01-24 Martin Jambor <mjambor@suse.cz>
11582 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
11583 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
11584 and known_contexts.
11586 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
11588 PR middle-end/79123
11589 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
11590 casts from signed to unsigned really don't have a range.
11592 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
11594 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
11595 GMP_RNDx for compatiblity.
11597 2017-01-24 Martin Liska <mliska@suse.cz>
11600 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
11601 that would prevent us to call alloca with -1 as argument.
11603 2017-01-24 Jakub Jelinek <jakub@redhat.com>
11605 * dwarf2out.c (output_compilation_unit_header, output_file_names):
11606 Avoid -Wformat-security warning.
11608 2017-01-23 Andrew Pinski <apinski@cavium.com>
11610 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
11613 2017-01-23 Martin Sebor <msebor@redhat.com>
11615 PR middle-end/78703
11616 * gimple-ssa-sprintf.c (warn_level): New global.
11617 (format_integer): Use it here and throughout the rest of the file.
11618 Use the same switch to compute sign as base.
11619 (maybe_warn): New function.
11620 (format_directive): Factor out warnings into maybe_warn.
11621 Add debugging output. Use warn_level.
11622 (add_bytes): Use warn_level.
11623 (pass_sprintf_length::compute_format_length): Add debugging output.
11624 (try_substitute_return_value): Same.
11625 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
11627 PR middle-end/78703
11628 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
11629 (struct fmtresult, format_integer, format_floating): Adjust.
11630 (fmtresult::fmtresult): Set max correctly in two argument ctor.
11631 (get_string_length, format_string,format_directive): Same.
11632 (pass_sprintf_length::compute_format_length): Same.
11633 (try_substitute_return_value): Simplify slightly.
11635 PR middle-end/78703
11636 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
11637 (fmtresult::operator+=): Outlined.
11638 (struct fmtresult): Add ctors.
11639 (struct conversion_spec): Rename...
11640 (struct directive): ...to this. Add and remove data members.
11641 (directive::set_width, directive::set_precision): New functions.
11642 (format_percent): Use fmtresult ctor.
11643 (get_width_and_precision): Remove.
11644 (format_integer): Make naming changes. Avoid computing width and
11646 (format_floating): Same. Adjust indentation.
11647 (format_character, format_none): New functions.
11648 (format_string): Moved character handling to format_character.
11649 (format_directive): Remove arguments, change return type.
11650 (parse_directive): New function.
11651 (pass_sprintf_length::compute_format_length): Move directive
11652 parsing to parse_directive.
11654 2017-01-23 Jakub Jelinek <jakub@redhat.com>
11656 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
11657 (assign_assembler_name_if_needed): ... this.
11658 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
11659 (assign_assembler_name_if_needed): ... this.
11660 (free_lang_data_in_cgraph): Adjust callers.
11661 * cgraphunit.c (cgraph_node::analyze): Likewise.
11662 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
11665 2017-01-23 Richard Biener <rguenther@suse.de>
11667 PR tree-optimization/79088
11668 PR tree-optimization/79188
11669 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
11670 resetting loop bounds after last path deletion. Reset loop
11671 bounds of the target loop, make code match the comments.
11672 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
11673 Make sure loops need no fixups.
11675 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
11677 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
11678 exponent support with double type for first argument.
11679 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
11680 type returned by __builtin_vec_extract_sig,
11681 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
11682 functions from "vector int" to "vector unsigned int" or from
11683 "vector long long int" to "vector unsigned long long int".
11684 Changed type returned by __builtin_vec_extract_exp,
11685 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
11686 functions from "vector int" to "vector unsigned int" or from
11687 "vector long long int" to "vector unsigned long long int".
11688 Changed return type of __builtin_vec_test_data_class,
11689 __builtin_vec_test_data_class_sp, and
11690 __builtin_vec_test_data_class_dp from "vector int" to
11691 "vector bool int" or from "vector long long int" to "vector bool
11692 long long int" and changed second argument type from "unsigned
11693 int" to "int". Added new overloaded function forms "vector float
11694 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
11695 "vector float __builtin_vec_insert_exp_sp (vector float, vector
11696 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
11697 double, vector unsigned long long int)" and "vector double
11698 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
11699 long int)". Changed return type of
11700 __builtin_scalar_test_data_class and
11701 __builtin_scalar_test_data_class_sp and
11702 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
11703 int" and changed second argument from "unsigned int" to "int".
11704 Changed type returned by __builtin_scalar_test_neg,
11705 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
11706 from "int" to "bool int". Added new overloaded function form
11707 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
11708 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
11709 exponent double-precision with floating point first argument.
11710 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
11711 documentation of scalar_test_data_class, scalar_test_neg,
11712 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
11713 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
11714 vec_test_data_class built-in functions to reflect refinements in
11715 their type signatures.
11717 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
11719 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
11721 (aarch64_elf_asm_destructor): Likewise.
11723 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
11725 PR rtl-optimization/78634
11726 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
11727 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
11728 * ifcvt.c (noce_try_cmove): Add missing cost check.
11730 PR rtl-optimization/71724
11731 * combine.c (if_then_else_cond): Look for situations where it is
11732 beneficial to undo the work of one of the recursive calls.
11734 2017-01-23 Bin Cheng <bin.cheng@arm.com>
11736 PR tree-optimization/70754
11737 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
11738 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
11739 combined stmt before it if not NULL.
11740 (combine_chains): Process refs reversely and compute dominance point
11743 2017-01-23 Martin Liska <mliska@suse.cz>
11745 PR tree-optimization/79196
11746 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
11747 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
11749 (strlen_optimize_stmt): Call the renamed function.
11751 2017-01-23 Michael Matz <matz@suse.de>
11753 PR tree-optimization/78384
11754 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
11756 2017-01-23 Richard Biener <rguenther@suse.de>
11758 PR tree-optimization/79186
11759 * tree-vrp.c (register_new_assert_for): Make sure we've seen
11760 both incoming edges before moving an assert.
11762 2017-01-23 Martin Jambor <mjambor@suse.cz>
11764 * ipa-prop.c (load_from_param_1): Removed.
11765 (load_from_unmodified_param): Bits from load_from_param_1 put back
11767 (load_from_param): Removed.
11768 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
11769 with stmt. Reverted back to use of load_from_unmodified_param.
11771 2017-01-23 Martin Jambor <mjambor@suse.cz>
11774 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
11775 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
11776 field a pointer to garbage collected vector, mark lattices and
11777 ipcp_orig_node with GTY((skip)).
11778 (ipa_get_param_count): Adjust to descriptors being a pointer.
11779 (ipa_get_param): Likewise.
11780 (ipa_get_type): Likewise.
11781 (ipa_get_param_move_cost): Likewise.
11782 (ipa_set_param_used): Likewise.
11783 (ipa_get_controlled_uses): Likewise.
11784 (ipa_set_controlled_uses): Likewise.
11785 (ipa_is_param_used): Likewise.
11786 (ipa_node_params_t): Move into garbage collector. New methods insert
11788 (ipa_node_params_sum): Annotate wth GTY(()).
11789 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
11791 (ipa_load_from_parm_agg): Adjust declaration.
11792 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
11793 * ipa-profile.c (ipa_profile): Likewise.
11794 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
11795 (ipa_populate_param_decls): Make descriptors parameter garbage
11797 (ipa_dump_param): Adjust to descriptors being a pointer.
11798 (ipa_alloc_node_params): Likewise.
11799 (ipa_initialize_node_params): Likewise.
11800 (load_from_param_1): Make descriptors parameter garbage collected.
11801 (load_from_unmodified_param): Likewise.
11802 (load_from_param): Likewise.
11803 (ipa_load_from_parm_agg): Likewise.
11804 (ipa_node_params::~ipa_node_params): Removed.
11805 (ipa_free_all_node_params): Remove call to delete operator.
11806 (ipa_node_params_t::insert): New.
11807 (ipa_node_params_t::remove): Likewise.
11808 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
11809 copy known_csts and known_contexts vectors.
11810 (ipa_read_node_info): Adjust to descriptors being a pointer.
11811 (ipcp_modif_dom_walker): Make m_descriptors field garbage
11813 (ipcp_transform_function): Make descriptors variable garbage
11816 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
11818 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
11819 * config/i386/avx512dqintrin.h: Ditto.
11820 * config/i386/avx512fintrin.h: Ditto.
11821 * gcc/config/i386/i386.c: Handle new builtins.
11822 * config/i386/i386-builtin.def: Add new builtins.
11823 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
11824 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
11826 2017-01-23 Jakub Jelinek <jakub@redhat.com>
11827 Martin Liska <mliska@suse.cz>
11829 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
11830 * asan.c (asan_expand_poison_ifn): Support stores and use
11831 appropriate ASAN report function.
11832 * internal-fn.c (expand_ASAN_POISON_USE): New function.
11833 * internal-fn.def (ASAN_POISON_USE): Declare.
11834 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
11835 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
11836 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
11837 ASAN_POISON calls w/o LHS.
11838 * tree-ssa.c (execute_update_addresses_taken): Create clobber
11839 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
11840 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
11841 * gimplify.c (asan_poison_variables): Add attribute
11842 use_after_scope_memory to variables that really needs to live
11844 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
11845 having the attribute.
11847 2017-01-23 Martin Liska <mliska@suse.cz>
11849 * asan.c (create_asan_shadow_var): New function.
11850 (asan_expand_poison_ifn): Likewise.
11851 * asan.h (asan_expand_poison_ifn): New declaration.
11852 * internal-fn.c (expand_ASAN_POISON): Likewise.
11853 * internal-fn.def (ASAN_POISON): New builtin.
11854 * sanopt.c (pass_sanopt::execute): Expand
11855 asan_expand_poison_ifn.
11856 * tree-inline.c (copy_decl_for_dup_finish): Make function
11858 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
11859 * tree-ssa.c (is_asan_mark_p): New function.
11860 (execute_update_addresses_taken): Rewrite local variables
11861 (identified just by use-after-scope as addressable) into SSA.
11863 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
11865 * doc/install.texi (Specific): opensource.apple.com uses https
11866 now. Remove trailing slash.
11868 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
11870 * README.Portability: Remove note on an Irix compatibility issue.
11872 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
11874 * gcov.c (INCLUDE_ALGORITHM): Define.
11875 (INCLUDE_VECTOR): Define.
11876 No longer include <vector> and <algorithm> directly.
11878 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
11880 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
11882 * doc/invoke.texi (Code Gen Options): Ditto.
11884 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
11887 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
11889 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
11891 rtl-optimization/79125
11892 * cprop.c (local_cprop_pass): Handle cases where we make an
11893 unconditional trap.
11895 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
11899 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
11900 read from, for big endian.
11902 2017-01-20 Jiong Wang <jiong.wang@arm.com>
11904 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
11905 register pauth builtins for LP64 only.
11907 2017-01-20 Marek Polacek <polacek@redhat.com>
11910 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
11913 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
11915 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
11917 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
11918 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
11919 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
11921 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11924 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
11925 in big-endian mode when they are not a single duplicated value.
11927 2017-01-20 Richard Biener <rguenther@suse.de>
11929 * BASE-VER: Bump to 7.0.1.
11931 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
11933 * omp-low.c (omplow_simd_context): New struct. Use it...
11934 (lower_rec_simd_input_clauses): ...here and...
11935 (lower_rec_input_clauses): ...here to hold common data. Adjust all
11936 references to idx, lane, max_vf, is_simt.
11938 2017-01-20 Graham Markall <graham.markall@embecosm.com>
11940 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
11943 2017-01-20 Martin Jambor <mjambor@suse.cz>
11945 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
11946 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
11948 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
11949 (GTFILES): Rename hsa.c to hsa-common.c.
11950 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
11951 * hsa-dump.c: Likewise.
11952 * hsa-gen.c: Likewise.
11953 * hsa-regalloc.c: Likewise.
11954 * ipa-hsa.c: Likewise.
11955 * omp-expand.c: Likewise.
11956 * omp-low.c: Likewise.
11957 * toplev.c: Likewise.
11959 2017-01-20 Marek Polacek <polacek@redhat.com>
11962 * doc/invoke.texi: Document -Wduplicated-branches.
11963 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
11964 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
11965 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
11966 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
11967 return 0 only when not OEP_LEXICOGRAPHIC.
11968 (fold_build_cleanup_point_expr): Use the expression
11969 location when building CLEANUP_POINT_EXPR.
11970 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
11971 * tree.c (add_expr): Handle error_mark_node.
11973 2017-01-20 Martin Liska <mliska@suse.cz>
11976 * tree-profile.c (init_ic_make_global_vars): Do not call
11978 (gimple_init_gcov_profiler): Likewise.
11980 2017-01-20 Martin Liska <mliska@suse.cz>
11983 * cgraph.h (maybe_create_reference): Remove argument and
11985 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
11987 * ipa-cp.c (create_specialized_node): Likewise.
11988 * symtab.c (symtab_node::maybe_create_reference): Handle
11989 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
11991 2017-01-20 Martin Liska <mliska@suse.cz>
11993 * read-rtl-function.c (function_reader::create_function): Use
11994 build_decl instread of build_decl_stat.
11996 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
11998 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
11999 * config/i386/avx512dqintrin.h: Ditto.
12000 * config/i386/avx512fintrin.h: Ditto.
12001 * config/i386/i386-builtin-types.def: Add new types.
12002 * gcc/config/i386/i386.c: Handle new types.
12003 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
12004 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
12005 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
12006 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
12007 (__builtin_ia32_kshiftridi): New.
12008 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
12010 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
12014 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
12015 define to rs6000_init_stack_protect_guard.
12016 (rs6000_init_stack_protect_guard): New function.
12018 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
12019 Yunqiang Su <yunqiang.su@imgtec.com>
12021 * config.gcc (supported_defaults): Add madd4.
12022 (with_madd4): Add validation.
12023 (all_defaults): Add madd4.
12024 * config/mips/mips.opt (mmadd4): New option.
12025 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
12027 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
12029 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
12030 (ISA_HAS_FUSED_MADD4): Likewise.
12031 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
12032 * gcc/doc/install.texi (--with-madd4): Document the new option.
12034 2017-01-19 Jiong Wang <jiong.wang@arm.com>
12036 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
12037 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
12038 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
12039 (aarch64_init_pauth_hint_builtins): New.
12040 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
12041 (aarch64_expand_builtin): Expand new builtins.
12043 2017-01-19 Jiong Wang <jiong.wang@arm.com>
12045 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
12046 * combine-stack-adj.c (no_unhandled_cfa): Handle
12047 REG_CFA_TOGGLE_RA_MANGLE.
12048 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
12049 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
12050 info for return address signing.
12051 (aarch64_expand_epilogue): Likewise.
12053 2017-01-19 Jiong Wang <jiong.wang@arm.com>
12055 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
12056 * config/aarch64/aarch64-protos.h
12057 (aarch64_return_address_signing_enabled): New declaration.
12058 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
12060 (aarch64_expand_prologue): Sign return address before it's pushed onto
12062 (aarch64_expand_epilogue): Authenticate return address fetched from
12064 (aarch64_override_options): Sanity check for ILP32 and ISA level.
12065 (aarch64_attributes): New function attributes for "sign-return-address".
12066 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
12067 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
12068 ("*do_return"): Generate combined instructions according to key index.
12069 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
12070 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
12072 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
12073 * config/aarch64/aarch64.opt (msign-return-address=): New.
12074 * doc/extend.texi (AArch64 Function Attributes): Documents
12075 "sign-return-address=".
12076 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
12078 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
12080 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
12081 overall option summary.
12083 2017-01-19 Jiong Wang <jiong.wang@arm.com>
12085 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
12086 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
12087 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
12088 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
12090 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
12092 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
12093 -mpower9-minmax by default for -mcpu=power9.
12094 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
12095 128-bit floating point.
12097 2017-01-20 Alan Modra <amodra@gmail.com>
12099 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
12100 optimizing for size.
12102 2017-01-20 Alan Modra <amodra@gmail.com>
12105 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
12106 for strcmp and strncmp from corresponding builtin decl.
12108 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
12110 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
12111 instead of i386/rtems-64.h.
12112 * config/i386/rtems-64.h: Remove.
12114 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
12118 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
12120 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
12122 2017-01-19 Tamar Christina <tamar.christina@arm.com>
12124 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
12125 Change int to HOST_WIDE_INT.
12126 * config/aarch64/aarch64-protos.h
12127 (aarch64_simd_gen_const_vector_dup): Likewise.
12128 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
12130 2017-01-19 David Malcolm <dmalcolm@redhat.com>
12132 * langhooks-def.h (lhd_type_for_size): New decl.
12133 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
12134 * langhooks.c (lhd_type_for_size): New function, taken from
12137 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
12139 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
12140 define_bypass for CR latency.
12141 (power9-cracked-alu): Update bypass latency and remove power9-branch.
12142 (power9-alu2): Add define_bypass for CR latency.
12144 (power9-mul): Update insn latency.
12145 (power9-mul-compare): Update insn latency, bypass latency and remove
12148 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12150 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
12152 * config/aarch64/aarch64.md
12153 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
12154 aarch64_nopcrelative_literal_loads.
12155 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
12157 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
12159 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
12160 TARGET_LOONGSON_3A.
12161 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
12163 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
12166 * config.gcc (supported_defaults): Add lxc1-sxc1.
12167 (with_lxc1_sxc1): Add validation.
12168 (all_defaults): Add lxc1-sxc1.
12169 * config/mips/mips.opt (mlxc1-sxc1): New option.
12170 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
12172 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
12173 __mips_no_lxc1_sxc1.
12174 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
12175 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
12176 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
12178 2017-01-19 Richard Biener <rguenther@suse.de>
12180 PR tree-optimization/72488
12181 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
12182 sure to restore SSA info.
12183 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
12185 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
12187 PR rtl-optimization/79121
12188 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
12189 of the inner type when shifting an extended value.
12191 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
12194 * symtab.c (symtab_node::equal_address_to): Fix comparing of
12195 interposable aliases.
12197 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
12200 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
12201 Use the evmergelohi instruction.
12202 (mov_si<mode>_e500_subreg4_2_le): Likewise.
12203 (mov_sitf_e500_subreg8_2_be): Likewise.
12204 (mov_sitf_e500_subreg12_2_le): Likewise.
12205 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
12206 (mov_si<mode>_e500_subreg4_2_be): Likewise.
12207 (mov_sitf_e500_subreg8_2_le): Likewise.
12208 (mov_sitf_e500_subreg12_2_be): Likewise.
12210 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12212 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
12213 attribute from vecsimple to vecperm.
12214 (altivec_vbpermq2): Likewise.
12216 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12219 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
12221 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
12222 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
12223 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
12224 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
12225 case where N arg is SIZE_MAX.
12226 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
12227 (cmpstrsi): Add pattern.
12229 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
12231 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12232 __builtin_vec_revb builtins.
12233 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
12234 built-in functions to support generation of the ISA 3.0 XXBR<x>
12235 vector byte reverse instructions.
12236 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
12237 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
12238 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
12239 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
12240 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
12241 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
12242 (P9V_BUILTIN_VEC_REVB): Likewise.
12243 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
12244 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
12245 (p9_xxbrq_v16qi): Likewise.
12246 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
12247 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
12248 (p9_xxbrh_v8hi): Likewise.
12249 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
12250 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
12251 vec_revb built-in functions.
12253 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
12255 PR rtl-optimization/78952
12256 * config/i386/i386.md (any_extract): New code iterator.
12257 (*insvqi_2): Use any_extract for source operand.
12258 (*insvqi_3): Use any_shiftrt for source operand.
12260 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
12262 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
12264 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
12266 2017-01-18 Matthias Klose <doko@ubuntu.com>
12268 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
12270 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12272 * config/rs6000/altivec.h (vec_bperm): Change #define.
12273 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
12274 (altivec_vbpermq2): New define_insn.
12275 (altivec_vbpermd): Likewise.
12276 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
12277 function interface.
12278 (VBPERMD): Likewise.
12279 (VBPERM): New polymorphic function interface.
12280 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
12281 Add entries for P9V_BUILTIN_VEC_VBPERM.
12282 * doc/extend.texi: Add interfaces for vec_bperm.
12284 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12286 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
12287 first letter of error messages.
12288 (s390_resolve_overloaded_builtin): Likewise.
12289 * config/s390/s390.c (s390_expand_builtin): Likewise.
12290 (s390_invalid_arg_for_unprototyped_fn): Likewise.
12291 (s390_valid_target_attribute_inner_p): Likewise.
12292 * config/s390/s390.md ("tabort"): Likewise.
12294 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
12296 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
12297 (ISA_AVOID_DIV_HILO): New macro.
12298 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
12299 (ISA_HAS_DDIV): Likewise.
12301 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
12303 * doc/invoke.texi (fabi-version): Correct number of occurrences.
12305 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
12307 * doc/invoke.texi (fabi-version): Spelling fix.
12309 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
12312 * doc/invoke.texi (fabi-version): Mention mangling fix for
12315 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
12318 * doc/invoke.texi (fabi-version): Document discriminator mangling.
12320 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
12323 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
12324 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
12326 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
12328 (stack_protect_test): Ditto.
12329 * config/rs6000/rs6000.opt (mstack-protector-guard=,
12330 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
12332 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
12333 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
12334 -mstack-protector-guard-offset=.
12335 (RS/6000 and PowerPC Options): Ditto.
12337 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
12339 * config/i386/i386.h (MASK_CLASS_P): New define.
12340 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
12341 there are no registers from different register sets also when
12342 mask registers are used. Update function comment.
12343 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
12344 to (*k/*r) and (*k/*km) alternatives.
12346 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
12348 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
12349 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
12350 (EH_RETURN_HANDLER_RTX): New define.
12351 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
12352 Force frame pointer in EH return functions.
12353 (aarch64_expand_epilogue): Add barrier for eh_return.
12354 (aarch64_final_eh_return_addr): Remove.
12355 (aarch64_eh_return_handler_rtx): New function.
12356 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
12358 (aarch64_eh_return_handler_rtx): New prototype.
12360 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12362 * config/rs6000/altivec.h (vec_rlmi): New #define.
12363 (vec_vrlnm): Likewise.
12364 (vec_rlnm): Likewise.
12365 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
12366 (UNSPEC_VRLNM): Likewise.
12367 (VIlong): New mode iterator.
12368 (altivec_vrl<VI_char>mi): New define_insn.
12369 (altivec_vrl<VI_char>nm): Likewise.
12370 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
12372 (VRLDNM): Likewise.
12373 (RLNM): New polymorphic function entry.
12374 (VRLWMI): New monomorphic function entry.
12375 (VRLDMI): Likewise.
12376 (RLMI): New polymorphic function entry.
12377 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
12378 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
12379 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
12382 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12385 * dwarf2out.c (field_byte_offset): Restore the
12386 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
12387 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
12388 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
12391 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
12394 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
12396 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12399 * dwarf2out.c (add_data_member_location_attribute): For constant
12400 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
12401 instead of DW_AT_data_member_location, DW_AT_bit_offset and
12402 DW_AT_byte_size attributes.
12404 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
12406 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
12407 after forcing to constant memory when the code model is medium.
12409 2017-01-17 Julia Koval <julia.koval@intel.com>
12412 * config/i386/avx512fintrin.h
12413 (_mm512_i32gather_ps): Change __addr type to void const*.
12414 (_mm512_mask_i32gather_ps): Ditto.
12415 (_mm512_i32gather_pd): Ditto.
12416 (_mm512_mask_i32gather_pd): Ditto.
12417 (_mm512_i64gather_ps): Ditto.
12418 (_mm512_mask_i64gather_ps): Ditto.
12419 (_mm512_i64gather_pd): Ditto.
12420 (_mm512_mask_i64gather_pd): Ditto.
12421 (_mm512_i32gather_epi32): Ditto.
12422 (_mm512_mask_i32gather_epi32): Ditto.
12423 (_mm512_i32gather_epi64): Ditto.
12424 (_mm512_mask_i32gather_epi64): Ditto.
12425 (_mm512_i64gather_epi32): Ditto.
12426 (_mm512_mask_i64gather_epi32): Ditto.
12427 (_mm512_i64gather_epi64): Ditto.
12428 (_mm512_mask_i64gather_epi64): Ditto.
12429 (_mm512_i32scatter_ps): Change __addr type to void*.
12430 (_mm512_mask_i32scatter_ps): Ditto.
12431 (_mm512_i32scatter_pd): Ditto.
12432 (_mm512_mask_i32scatter_pd): Ditto.
12433 (_mm512_i64scatter_ps): Ditto.
12434 (_mm512_mask_i64scatter_ps): Ditto.
12435 (_mm512_i64scatter_pd): Ditto.
12436 (_mm512_mask_i64scatter_pd): Ditto.
12437 (_mm512_i32scatter_epi32): Ditto.
12438 (_mm512_mask_i32scatter_epi32): Ditto.
12439 (_mm512_i32scatter_epi64): Ditto.
12440 (_mm512_mask_i32scatter_epi64): Ditto.
12441 (_mm512_i64scatter_epi32): Ditto.
12442 (_mm512_mask_i64scatter_epi32): Ditto.
12443 (_mm512_i64scatter_epi64): Ditto.
12444 (_mm512_mask_i64scatter_epi64): Ditto.
12445 * config/i386/avx512pfintrin.h
12446 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
12447 (_mm512_mask_prefetch_i32gather_ps): Ditto.
12448 (_mm512_mask_prefetch_i64gather_pd): Ditto.
12449 (_mm512_mask_prefetch_i64gather_ps): Ditto.
12450 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
12451 (_mm512_prefetch_i32scatter_ps): Ditto.
12452 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
12453 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
12454 (_mm512_prefetch_i64scatter_pd): Ditto.
12455 (_mm512_prefetch_i64scatter_ps): Ditto.
12456 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
12457 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
12458 * config/i386/avx512vlintrin.h
12459 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
12460 (_mm_mmask_i32gather_ps): Ditto.
12461 (_mm256_mmask_i32gather_pd): Ditto.
12462 (_mm_mmask_i32gather_pd): Ditto.
12463 (_mm256_mmask_i64gather_ps): Ditto.
12464 (_mm_mmask_i64gather_ps): Ditto.
12465 (_mm256_mmask_i64gather_pd): Ditto.
12466 (_mm_mmask_i64gather_pd): Ditto.
12467 (_mm256_mmask_i32gather_epi32): Ditto.
12468 (_mm_mmask_i32gather_epi32): Ditto.
12469 (_mm256_mmask_i32gather_epi64): Ditto.
12470 (_mm_mmask_i32gather_epi64): Ditto.
12471 (_mm256_mmask_i64gather_epi32): Ditto.
12472 (_mm_mmask_i64gather_epi32): Ditto.
12473 (_mm256_mmask_i64gather_epi64): Ditto.
12474 (_mm_mmask_i64gather_epi64): Ditto.
12475 (_mm256_i32scatter_ps): Change __addr type to void*.
12476 (_mm256_mask_i32scatter_ps): Ditto.
12477 (_mm_i32scatter_ps): Ditto.
12478 (_mm_mask_i32scatter_ps): Ditto.
12479 (_mm256_i32scatter_pd): Ditto.
12480 (_mm256_mask_i32scatter_pd): Ditto.
12481 (_mm_i32scatter_pd): Ditto.
12482 (_mm_mask_i32scatter_pd): Ditto.
12483 (_mm256_i64scatter_ps): Ditto.
12484 (_mm256_mask_i64scatter_ps): Ditto.
12485 (_mm_i64scatter_ps): Ditto.
12486 (_mm_mask_i64scatter_ps): Ditto.
12487 (_mm256_i64scatter_pd): Ditto.
12488 (_mm256_mask_i64scatter_pd): Ditto.
12489 (_mm_i64scatter_pd): Ditto.
12490 (_mm_mask_i64scatter_pd): Ditto.
12491 (_mm256_i32scatter_epi32): Ditto.
12492 (_mm256_mask_i32scatter_epi32): Ditto.
12493 (_mm_i32scatter_epi32): Ditto.
12494 (_mm_mask_i32scatter_epi32): Ditto.
12495 (_mm256_i32scatter_epi64): Ditto.
12496 (_mm256_mask_i32scatter_epi64): Ditto.
12497 (_mm_i32scatter_epi64): Ditto.
12498 (_mm_mask_i32scatter_epi64): Ditto.
12499 (_mm256_i64scatter_epi32): Ditto.
12500 (_mm256_mask_i64scatter_epi32): Ditto.
12501 (_mm_i64scatter_epi32): Ditto.
12502 (_mm_mask_i64scatter_epi32): Ditto.
12503 (_mm256_i64scatter_epi64): Ditto.
12504 (_mm256_mask_i64scatter_epi64): Ditto.
12505 (_mm_i64scatter_epi64): Ditto.
12506 (_mm_mask_i64scatter_epi64): Ditto.
12507 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
12508 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
12509 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
12510 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
12511 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
12512 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
12513 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
12514 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
12515 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
12516 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
12517 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
12518 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
12519 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
12520 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
12521 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
12522 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
12523 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
12524 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
12525 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
12526 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
12527 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
12528 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
12529 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
12530 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
12531 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
12532 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
12533 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
12534 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
12535 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
12536 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
12537 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
12538 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
12539 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
12540 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
12541 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
12542 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
12543 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
12544 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
12545 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
12546 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
12547 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
12548 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
12549 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
12550 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
12551 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
12552 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
12553 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
12554 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
12555 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
12556 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
12557 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
12558 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
12559 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
12560 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
12561 definitions accordingly.
12563 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
12564 Kuan-Lin Chen <kuanlinchentw@gmail.com>
12567 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
12570 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
12573 * ira-conflicts.c (ira_build_conflicts): Update total conflict
12574 hard regs for inner regno.
12576 2017-01-17 Martin Liska <mliska@suse.cz>
12579 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
12580 assumption and add comment.
12582 2017-01-17 Nathan Sidwell <nathan@acm.org>
12584 * ipa-visibility.c (localize_node): New function, broken out of ...
12585 (function_and_variable_visibility): ... here. Call it.
12587 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
12589 PR middle-end/77445
12590 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
12591 correctly set frequency of oudgoing edge.
12592 (duplicate_thread_path): Fix profile updating.
12594 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12597 * configure.ac: Add GCC_BASE_VER.
12598 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
12599 version from BASE-VER file.
12600 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
12601 (gcc.o): Depend on $(BASEVER).
12602 * common.opt (dumpfullversion): New option.
12603 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
12604 * doc/invoke.texi: Document -dumpfullversion.
12605 * doc/install.texi: Document --with-gcc-major-version-only.
12606 * configure: Regenerated.
12608 2017-01-17 Richard Biener <rguenther@suse.de>
12610 PR tree-optimization/71433
12611 * tree-vrp.c (register_new_assert_for): Merge same asserts
12612 on all incoming edges.
12613 (process_assert_insertions_for): Handle insertions at the
12616 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
12618 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
12619 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
12621 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
12624 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
12627 2017-01-17 Alan Modra <amodra@gmail.com>
12630 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
12631 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
12632 symbolic stack limit when pic.
12634 2017-01-16 Martin Sebor <msebor@redhat.com>
12636 PR tree-optimization/78608
12637 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
12639 2017-01-16 Jeff Law <law@redhat.com>
12642 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
12643 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
12644 for several include directories that may be relative to sysroot.
12645 * config/i386/x-mingw32 (gplus_includedir): Define.
12646 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
12647 (native_system_includedir): Likewise.
12648 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
12649 override if TARGET_SYSTEM_ROOT is defined.
12650 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
12652 PR tree-optimization/79090
12653 PR tree-optimization/33562
12654 PR tree-optimization/61912
12655 PR tree-optimization/77485
12656 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
12657 and computed trims into the dump file.
12659 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
12661 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
12663 2017-01-16 Jakub Jelinek <jakub@redhat.com>
12666 * gimplify.c (gimplify_init_constructor): If want_value and
12667 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
12671 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
12672 sequence. Formatting fixes.
12673 (doloop_optimize): Formatting fixes.
12676 * gcc.c (debug_level_greater_than_spec_func): New function.
12677 (static_spec_functions): Add debug-level-gt spec function.
12678 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
12680 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
12681 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
12682 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
12683 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
12684 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
12685 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
12687 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
12689 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
12690 QImode fixups to general and mask registers only.
12692 2017-01-16 Carl Love <cel@us.ibm.com>
12694 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
12695 for built-in functions
12696 vector signed char vec_nabs (vector signed char)
12697 vector signed short vec_nabs (vector signed short)
12698 vector signed int vec_nabs (vector signed int)
12699 vector signed long long vec_nabs (vector signed long long)
12700 vector float vec_nabs (vector float)
12701 vector double vec_nabs (vector double)
12702 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
12704 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
12705 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
12706 * doc/extend.texi: Update the documentation file for the new built-in
12709 2017-01-16 Martin Sebor <msebor@redhat.com>
12711 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
12714 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12716 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
12717 UNSPEC_VSX__XXSPLTD to require special splat handling.
12719 2017-01-16 David Malcolm <dmalcolm@redhat.com>
12722 * system.h: Poison strndup.
12724 2017-01-16 Alan Modra <amodra@gmail.com>
12727 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
12730 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
12732 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
12734 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
12736 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
12737 call recog here. Assert that INSN_CODE (insn) is non-negative.
12739 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
12742 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
12744 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
12745 in the currently scheduled RTL fragment.
12747 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
12749 PR rtl-optimization/78751
12750 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
12753 2017-01-14 Jeff Law <law@redhat.com>
12755 PR tree-optimization/79090
12756 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
12757 variable length stores.
12758 (compute_trims): Delete dead assignment to *trim_tail.
12759 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
12762 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
12764 PR rtl-optimization/78626
12765 PR rtl-optimization/78727
12766 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
12767 of a block, and split such blocks after everything else is finished.
12769 2017-01-14 Alan Modra <amodra@gmail.com>
12772 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
12773 target legitimate_combined_insn.
12774 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
12775 (rs6000_legitimate_combined_insn): New function.
12776 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
12778 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
12779 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
12780 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
12782 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
12784 * doc/frontends.texi (G++ and GCC): Remove references to Java.
12786 2017-01-13 Jeff Law <law@redhat.com>
12788 PR tree-optimization/33562
12789 PR tree-optimization/61912
12790 PR tree-optimization/77485
12791 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
12793 (delete_dead_assignment): Likewise.
12794 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
12795 statement to delete_dead_call and delete_dead_assignment.
12797 2017-01-13 David Malcolm <dmalcolm@redhat.com>
12800 * substring-locations.c (format_warning_va): Strengthen case 1 so
12801 that both endpoints of the substring must be within the format
12802 range for just the substring to be printed.
12804 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
12806 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
12807 * config/i386/i386.c (ix86_target_string): Add missing options
12808 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
12809 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
12810 flags_other and ix86_target_other to flags2_other. Display unknown
12812 (ix86_valid_target_attribute_inner_p): Add missing options and
12813 reorder options by implied ISAs, as in ix86_target_string.
12815 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
12817 * hash-table.h (hash_table::too_empty_p): New function.
12818 (hash_table::expand): Use it.
12819 (hash_table::traverse): Likewise.
12820 (hash_table::empty_slot): Use sizeof (value_type) instead of
12821 sizeof (PTR) to convert bytes to elements. Shrink the table
12822 if the current size is excessive for the current number of
12825 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
12827 * ira-costs.c (record_reg_classes): Break from the inner loop
12828 early once alt_fail is known to be true. Update outer loop
12829 handling accordingly.
12831 2017-01-13 Jeff Law <law@redhat.com>
12833 * tree-ssa-dse.c (decrement_count): New function.
12834 (increment_start_addr, maybe_trim_memstar_call): Likewise.
12835 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
12836 when we know the partially dead statement is a mem* function.
12838 PR tree-optimization/61912
12839 PR tree-optimization/77485
12840 * tree-ssa-dse.c: Include expr.h.
12841 (maybe_trim_constructor_store): New function.
12842 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
12844 PR tree-optimization/33562
12845 PR tree-optimization/61912
12846 PR tree-optimization/77485
12847 * doc/invoke.texi: Document new dse-max-object-size param.
12848 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
12849 * tree-ssa-dse.c: Include params.h.
12850 (dse_store_status): New enum.
12851 (initialize_ao_ref_for_dse): New, partially extracted from
12853 (valid_ao_ref_for_dse, normalize_ref): New.
12854 (setup_live_bytes_from_ref, compute_trims): Likewise.
12855 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
12856 (maybe_trim_partially_dead_store): Likewise.
12857 (maybe_trim_complex_store): Likewise.
12858 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
12859 Track what bytes live from the original store. Return tri-state
12860 for dead, partially dead or live.
12861 (dse_dom_walker): Add constructor, destructor and new private members.
12862 (delete_dead_call, delete_dead_assignment): New extracted from
12864 (dse_optimize_stmt): Make a member of dse_dom_walker.
12865 Use initialize_ao_ref_for_dse.
12867 PR tree-optimization/33562
12868 PR tree-optimization/61912
12869 PR tree-optimization/77485
12870 * sbitmap.h (bitmap_count_bits): Prototype.
12871 (bitmap_clear_range, bitmap_set_range): Likewise.
12872 * sbitmap.c (bitmap_clear_range): New function.
12873 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
12875 2017-01-13 Martin Liska <mliska@suse.cz>
12878 * function.c (set_cfun): Add new argument force.
12879 * function.h (set_cfun): Likewise.
12880 * ipa-inline-transform.c (inline_call): Use the function when
12881 strict alising from is dropped for function we inline to.
12883 2017-01-13 Richard Biener <rguenther@suse.de>
12885 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
12886 for dumping GIMPLE INTEGER_CSTs.
12888 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12890 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
12891 to 201112L since C++17.
12893 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
12896 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
12897 if -fsanitize=kernel-address is present.
12899 2017-01-13 Richard Biener <rguenther@suse.de>
12901 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
12902 as _Literal ( type ) number in case usual suffixes do not
12903 preserve all information.
12905 2017-01-13 Richard Biener <rguenther@suse.de>
12907 PR tree-optimization/77283
12908 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
12909 and ssa-iterators.h.
12910 (is_feasible_trace): Implement a cost model based on joiner
12913 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12916 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
12917 char or short to __float128/_Float128 directly.
12919 2017-01-12 Martin Sebor <msebor@redhat.com>
12921 to -Wformat-overflow.
12922 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
12923 (min_bytes_remaining): Same.
12924 (get_string_length): Same.
12925 (format_string): Same.
12926 (format_directive): Same.
12928 (pass_sprintf_length::handle_gimple_call): Same.
12930 2017-01-12 Jakub Jelinek <jakub@redhat.com>
12932 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
12933 info.nowrite calls with no lhs that can't throw. Return bool
12934 whether gsi_remove has been called or not.
12935 (pass_sprintf_length::handle_gimple_call): Return bool whether
12936 try_substitute_return_value called gsi_remove. Formatting fix.
12937 (pass_sprintf_length::execute): Don't use gsi_remove if
12938 handle_gimple_call returned true.
12941 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
12942 be removed due to side-effects, don't remove following barrier nor
12943 turn the successor edge into fallthru edge.
12945 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12948 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
12949 element-reversing loads and stores as not swappable.
12951 2017-01-12 Nathan Sidwell <nathan@acm.org>
12952 Nicolai Stange <nicstange@gmail.com>
12954 * combine.c (try_combine): Don't ignore result of overlap checking
12955 loop. Combine overlap & asm check into single loop.
12957 2017-01-12 Richard Biener <rguenther@suse.de>
12959 * tree-pretty-print.c (dump_generic_node): Provide -gimple
12960 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
12962 2017-01-12 Richard Biener <rguenther@suse.de>
12964 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
12965 and TS_TARGET_OPTION directly derive from TS_BASE.
12966 * tree-core.h (tree_optimization_option): Derive from tree_base.
12967 (tree_target_option): Likewise.
12969 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
12971 * config/i386/i386.c (memory_address_length): Increase len
12972 only when rip_relative_addr_p returns false.
12974 2017-01-11 Julia Koval <julia.koval@intel.com>
12976 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
12977 (OPTION_MASK_ISA_SGX_SET): New.
12978 (ix86_handle_option): Handle OPT_msgx.
12979 * config.gcc: Added sgxintrin.h.
12980 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
12981 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
12982 * config/i386/i386.c (ix86_target_string): Add -msgx.
12984 (ix86_option_override_internal): Handle new options.
12985 (ix86_valid_target_attribute_inner_p): Add sgx.
12986 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
12987 * config/i386/i386.opt: Add msgx.
12988 * config/i386/sgxintrin.h: New file.
12989 * config/i386/x86intrin.h: Add sgxintrin.h.
12991 2017-01-11 Jakub Jelinek <jakub@redhat.com>
12994 * fold-const.c (maybe_nonzero_address): Return 1 for function
12996 (tree_single_nonzero_warnv_p): Don't handle function local objects
13000 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
13003 2017-01-11 David Malcolm <dmalcolm@redhat.com>
13006 * opts.c: Include "spellcheck.h"
13007 (struct string_fragment): New struct.
13008 (struct edit_distance_traits<const string_fragment &>): New
13010 (get_closest_sanitizer_option): New function.
13011 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
13013 2017-01-11 Jakub Jelinek <jakub@redhat.com>
13015 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
13017 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
13018 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
13019 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
13020 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
13021 for initial die_offset if dwarf_split_debug_info.
13022 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
13023 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
13025 (output_skeleton_debug_sections): Formatting fix. Use
13026 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
13027 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
13029 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
13031 * config/arm/cortex-a53.md: Add bypasses for
13032 cortex_a53_r2f_cvt.
13033 (cortex_a53_r2f): Only use for transfers.
13034 (cortex_a53_f2r): Likewise.
13035 (cortex_a53_r2f_cvt): Add reservation for conversions.
13036 (cortex_a53_f2r_cvt): Likewise.
13038 2017-01-11 Tamar Christina <tamar.christina@arm.com>
13040 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
13041 to all inlined functions, change static to extern.
13043 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
13046 * config/arm/arm.c (legitimize_pic_address): Handle reference to
13048 (arm_assemble_integer): Likewise.
13050 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
13052 * config.gcc: Use new awk script to check CPU, FPU and architecture
13053 parameters for --with-... options.
13054 * config/arm/parsecpu.awk: New file
13055 * config/arm/arm-cpus.in: New file.
13056 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
13058 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
13060 * config/arm/t-arm: Update dependency rules.
13061 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
13062 of processing .def files.
13063 * config/arm/genopt.sh: Deleted.
13064 * config/arm/gentune.sh: Deleted.
13065 * config/arm/arm-cores.def: Deleted.
13066 * config/arm/arm-arches.def: Deleted.
13067 * config/arm/arm-fpus.def: Deleted.
13068 * config/arm/arm-tune.md: Regenerated.
13069 * config/arm/arm-tables.opt: Regenerated.
13070 * config/arm/arm-cpu.h: New generated file.
13071 * config/arm/arm-cpu-data.h: New generated file.
13072 * config/arm/arm-cpu-cdata.h: New generated file.
13074 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
13077 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
13079 (input_varpool_node): Unpack dynamically_initialized bit.
13081 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
13083 PR rtl-optimization/79032
13084 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
13085 the alignment of the adjusted memory reference against that of MODE,
13086 instead of the alignment of the original memory reference.
13088 2017-01-11 Martin Jambor <mjambor@suse.cz>
13090 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
13092 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
13093 decorated functions.
13095 2017-01-11 Richard Biener <rguenther@suse.de>
13097 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
13098 set range/nonnull info for PHI results. Do not set it on
13099 stmts marked for removal.
13101 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
13103 * expr.c (store_field): In the bitfield case, fetch the return value
13104 from the registers before applying a single big-endian adjustment.
13105 Always do a final load for a BLKmode value not larger than a word.
13107 2017-01-10 David Malcolm <dmalcolm@redhat.com>
13110 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
13111 that we correctly handle column numbers greater than
13112 LINE_MAP_MAX_COLUMN_NUMBER.
13114 2017-01-10 Martin Sebor <msebor@redhat.com>
13116 PR middle-end/78245
13117 * gimple-ssa-sprintf.c (get_destination_size): Call
13118 {init,fini}object_sizes.
13119 * tree-object-size.c (addr_object_size): Adjust.
13120 (pass_through_call): Adjust.
13121 (pass_object_sizes::execute): Adjust.
13122 * tree-object-size.h (fini_object_sizes): Declare.
13124 2017-01-10 Martin Sebor <msebor@redhat.com>
13126 PR tree-optimization/78775
13127 * builtins.c (get_size_range): Move...
13128 * calls.c: ...to here.
13129 (alloc_max_size): Accept zero argument.
13130 (operand_signed_p): Remove.
13131 (maybe_warn_alloc_args_overflow): Call get_size_range.
13132 * calls.h (get_size_range): Declare.
13134 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
13136 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
13137 from TI's devices.csv file as of September 2016.
13138 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
13140 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
13142 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
13143 * doc/invoke.texi: Likewise.
13144 * doc/md.texi: Likewise.
13145 * doc/objc.texi: Likewise.
13147 2017-01-10 Joshua Conner <joshconner@google.com>
13149 * config/arm/fuchsia-elf.h: New file.
13150 * config/fuchsia.h: New file.
13151 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
13152 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
13154 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
13156 2016-01-10 Richard Biener <rguenther@suse.de>
13158 PR tree-optimization/79034
13159 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
13160 Propagate out degenerate PHIs in the joiner.
13162 2017-01-10 Martin Liska <mliska@suse.cz>
13164 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
13165 (sort_congruence_classes_by_decl_uid): Likewise.
13166 (sort_congruence_class_groups_by_decl_uid): Likewise.
13167 (sem_item_optimizer::merge_classes): Sort class, groups in these
13168 classes and members in the groups by DECL_UID of declarations.
13169 This would make merge operations stable.
13171 2017-01-10 Martin Liska <mliska@suse.cz>
13173 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
13174 usage of m_classes_vec.
13175 (sem_item_optimizer::~sem_item_optimizer): Likewise.
13176 (sem_item_optimizer::get_group_by_hash): Likewise.
13177 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
13178 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
13179 (sem_item_optimizer::verify_classes): Likewise.
13180 (sem_item_optimizer::process_cong_reduction): Likewise.
13181 (sem_item_optimizer::dump_cong_classes): Likewise.
13182 (sem_item_optimizer::merge_classes): Likewise.
13183 * ipa-icf.h (congruence_class_hash): Rename from
13184 congruence_class_group_hash. Remove declaration of m_classes_vec.
13186 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
13188 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
13189 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
13190 * config.gcc: Add avx512vpopcntdqintrin.h.
13191 * config/i386/avx512vpopcntdqintrin.h: New.
13192 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
13193 * config/i386/i386-builtin-types.def: Add new types.
13194 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
13195 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
13196 __builtin_ia32_vpopcountq_v8di_mask): New.
13197 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13198 __AVX512VPOPCNTDQ__.
13199 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
13200 (PTA_AVX512VPOPCNTDQ): Define.
13201 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
13202 TARGET_AVX512VPOPCNTDQ_P): Define.
13203 * config/i386/i386.opt: Add mavx512vpopcntdq.
13204 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
13205 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
13207 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
13209 PR middle-end/77484
13210 * predict.def (PRED_CALL): Set to 67.
13212 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
13214 * expr.c (store_field): In the bitfield case, if the value comes from
13215 a function call and is of an aggregate type returned in registers, do
13216 not modify the field mode; extract the value in all cases if the mode
13217 is BLKmode and the size is not larger than a word.
13219 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
13222 * config/i386/cpuid.h: Fix undefined behavior.
13224 2017-01-04 Jeff Law <law@redhat.com>
13226 PR tree-optimization/79007
13227 PR tree-optimization/67955
13228 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
13229 conservative for pt.null when flag_non_call_exceptions is on.
13231 2017-01-09 Jakub Jelinek <jakub@redhat.com>
13233 PR translation/79019
13234 PR translation/79020
13235 * params.def (PARAM_INLINE_MIN_SPEEDUP,
13236 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
13237 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
13239 * config/avr/avr.opt (maccumulate-args): Likewise.
13240 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
13241 * common.opt (freport-bug): Likewise.
13242 * cif-code.def (CIF_FINAL_ERROR): Likewise.
13243 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
13244 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
13245 translatable string.
13246 * config/i386/i386.c (function_value_32): Likewise.
13247 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
13248 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
13250 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
13251 * common/config/msp430/msp430-common.c (msp430_handle_option):
13253 * symtab.c (symtab_node::verify_base): Likewise.
13254 * opts.c (set_debug_level): Likewise.
13255 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
13256 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13257 missing whitespace to translatable strings.
13258 * config/avr/avr.md (bswapsi2): Fix typo in comment.
13259 * config/sh/superh.h: Likewise.
13260 * config/i386/xopintrin.h: Likewise.
13261 * config/i386/znver1.md: Likewise.
13262 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
13263 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
13264 * double-int.h (struct double_int): Likewise.
13265 * double-int.c (div_and_round_double): Likewise.
13266 * wide-int.cc: Likewise.
13267 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
13268 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
13269 * cfgcleanup.c (crossjumps_occured): Renamed to ...
13270 (crossjumps_occurred): ... this.
13271 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
13274 PR tree-optimization/78899
13275 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
13276 returning bool return struct loop *, NULL for failure and the new
13278 (versionable_outer_loop_p): Don't version outer loop if it has
13279 dont_vectorized bit set.
13280 (tree_if_conversion): When versioning outer loop, ensure
13281 tree_if_conversion is performed also on the inner loop of the
13282 non-vectorizable outer loop copy.
13283 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
13284 LOOP_VECTORIZED in inner loop of the scalar outer loop and
13285 prevent vectorization of it.
13286 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
13287 the outer loop vectorization of the non-scalar version is attempted
13288 before vectorization of the inner loop in scalar version. If
13289 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
13290 vectorization of its inner loop.
13291 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
13292 has 2 inner loops, rename also on edges from bb whose single pred
13293 is outer_loop->header. Fix typo in function comment.
13295 2017-01-09 Martin Sebor <msebor@redhat.com>
13298 * asan.c (asan_emit_stack_protection): Increase local buffer size
13299 to avoid snprintf truncation warning.
13301 2017-01-09 Andrew Pinski <apinski@cavium.com>
13303 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
13304 to reference thunderx2t99 for the tuning structure
13305 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
13307 (thunderx2t99_extra_costs): This.
13308 * config/aarch64/aarch64-tune.md: Regenerate.
13309 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
13310 (vulcan_addrcost_table): This.
13311 (vulcan_regmove_cost): Rename to ...
13312 (thunderx2t99_regmove_cost): This.
13313 (vulcan_vector_cost): Rename to ...
13314 (thunderx2t99_vector_cost): this.
13315 (vulcan_branch_cost): Rename to ...
13316 (thunderx2t99_branch_cost): This.
13317 (vulcan_tunings): Rename to ...
13318 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
13319 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
13321 2017-01-09 Martin Jambor <mjambor@suse.cz>
13325 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
13326 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
13327 (propagate_vr_accross_jump_function): Use the above function for all
13328 value range computations for pass-through jump functions and type
13329 converasion from explicit value range values.
13330 (ipcp_propagate_stage): Do not attempt to deduce types of formal
13331 parameters from TYPE_ARG_TYPES.
13332 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
13333 (ipa_write_node_info): Stream type of the actual argument.
13334 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
13336 2017-01-09 Martin Liska <mliska@suse.cz>
13339 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
13340 (lookup_compiler): Do not show error message with have_E.
13342 2017-01-09 Jakub Jelinek <jakub@redhat.com>
13344 PR tree-optimization/78938
13345 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
13346 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
13347 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
13348 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
13351 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13353 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
13356 2017-01-09 Richard Biener <rguenther@suse.de>
13358 PR tree-optimization/78997
13359 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
13360 name condition properly.
13362 2017-01-09 Richard Biener <rguenther@suse.de>
13365 * dwarf2out.c (is_cxx): New overload with context.
13366 (is_naming_typedef_decl): Use it.
13368 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
13370 * invoke.texi (Option Summary): Correct spacing in option lists
13371 and add line breaks to fix over-long lines.
13373 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
13375 PR middle-end/17660
13377 * extend.texi (Common Variable Attributes): Add xref to GCC
13378 Internals manual to explain mode attribute keywords.
13380 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
13383 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
13384 and Preprocessor Options.
13385 (Options for Linking): Document -pthread here....
13386 (RS/6000 and PowerPC Options): ...not here.
13387 (Solaris 2 Options): ...or here.
13388 * doc/cppopts.texi: Document -pthread.
13390 2017-01-08 Martin Sebor <msebor@redhat.com>
13392 PR middle-end/77708
13393 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
13394 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
13395 New member functions.
13396 (format_directive): Used them.
13398 (pass_sprintf_length::handle_gimple_call): Same.
13399 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
13400 to avoid truncation for any argument.
13401 (extract_affine_mul): Same.
13402 * tree.c (get_file_function_name): Same.
13404 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
13406 PR middle-end/77484
13407 * predict.def (PRED_INDIR_CALL): Set to 86.
13409 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
13411 PR preprocessor/54124
13412 * doc/cppopts.texi: Reformat -d subtable to list the full name
13413 of the options. Add cross-reference to the docs for the general
13414 compiler -d options.
13415 * doc/invoke.texi (Developer Options): Add cross-reference to the
13416 preprocessor-specific -d option documentation.
13418 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
13420 PR preprocessor/13498
13421 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
13422 redudant material, and reflect new command-line options.
13423 (System Headers): Likewise.
13425 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
13427 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
13428 -isystem, and -idirafter. Copy-edit.
13429 * doc/cppopts.texi: Copy-edit. Remove contradiction about
13430 default for -ftrack-macro-expansion. Delete obsolete and
13431 badly-formatted implementation details about -fdebug-cpp output.
13432 * doc/cppwarnopts.texi: Copy-edit.
13434 2017-01-07 David Malcolm <dmalcolm@redhat.com>
13437 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
13438 that the transition from a max line width >= 1<<10 to narrower
13439 lines works correctly.
13441 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
13443 * doc/options.texi (PerFunction): New.
13444 * opt-functions.awk (switch_flags): Map both Optimization and
13445 PerFunction to CL_OPTIMIZATION.
13446 * opth-gen.awk: Test for PerFunction flag along with
13448 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
13449 it only when the latter is present. Skip those that don't in
13450 the hash function generator.
13451 * common.opt (fvar-tracking): Mark as PerFunction instead of
13453 (fvar-tracking-assignments): Likewise.
13454 (fvar-tracking-assignments-toggle): Likewise.
13455 (fvar-tracking-uninit): Likewise.
13457 2017-01-07 Jakub Jelinek <jakub@redhat.com>
13459 PR translation/79018
13460 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
13463 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
13466 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
13467 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
13468 TARGET_LONG_JUMP_TABLE_OFFSETS.
13469 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
13470 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
13471 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
13472 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
13473 * config/m68k/m68k.md (tablejump expander): Likewise.
13474 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
13475 TARGET_LONG_JUMP_TABLE_OFFSETS.
13476 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
13477 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
13479 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
13480 David Holsgrove <david.holsgrove@xilinx.com>
13482 * common/config/microblaze/microblaze-common.c
13483 (TARGET_EXCEPT_UNWIND_INFO): Remove.
13484 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
13486 * config/microblaze/microblaze.c (microblaze_must_save_register)
13487 (microblaze_expand_epilogue, microblaze_return_addr): Handle
13489 (microblaze_eh_return): New function.
13490 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
13491 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
13492 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
13493 * config/microblaze/microblaze.md (eh_return): New pattern.
13495 2017-01-06 Jakub Jelinek <jakub@redhat.com>
13497 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
13498 GCC_DIAGNOSTIC_STRINGIFY): Define.
13500 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
13502 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
13504 * config/arm/arm.md (<mcrr>): New.
13506 * config/arm/arm.c (arm_arch5te): New.
13507 (arm_option_override): Set arm_arch5te.
13508 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
13510 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
13511 (arm_mcrr_qualifiers): ... this. New.
13512 (MRRC_QUALIFIERS): Define to...
13513 (arm_mrrc_qualifiers): ... this. New.
13514 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
13516 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
13517 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
13518 (MRRCI, mrrc, MRRC): New.
13519 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
13520 VUNSPEC_MRRC2): New.
13522 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
13524 * config/arm/arm.md (<mcr>): New.
13526 * config/arm/arm.c (arm_coproc_builtin_available): Add
13527 support for mcr, mrc, mcr2 and mrc2.
13528 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
13529 (arm_mcr_qualifiers): ... this. New.
13530 (MRC_QUALIFIERS): Define to ...
13531 (arm_mrc_qualifiers): ... this. New.
13532 (MCR_QUALIFIERS): Define to ...
13533 (arm_mcr_qualifiers): ... this. New.
13534 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
13536 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
13537 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
13538 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
13539 VUNSPEC_MRC2): New.
13541 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
13543 * config/arm/arm.md (*ldc): New.
13547 * config/arm/arm.c (arm_coproc_builtin_available): Add
13548 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
13549 (arm_coproc_ldc_stc_legitimate_address): New.
13550 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
13551 'qualifier_const_pointer'.
13552 (LDC_QUALIFIERS): Define to...
13553 (arm_ldc_qualifiers): ... this. New.
13554 (STC_QUALIFIERS): Define to...
13555 (arm_stc_qualifiers): ... this. New.
13556 * config/arm/arm-protos.h
13557 (arm_coproc_ldc_stc_legitimate_address): New.
13558 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
13559 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
13560 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
13561 stc2, stcl, stc2l): New.
13562 * config/arm/constraints.md (Uz): New.
13563 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
13564 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
13565 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
13566 VUNSPEC_STC2L): New.
13568 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
13570 * config/arm/arm.md (<cdp>): New.
13571 * config/arm/arm.c (neon_const_bounds): Rename this ...
13572 (arm_const_bounds): ... this.
13573 (arm_coproc_builtin_available): New.
13574 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
13575 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
13576 (CDP_QUALIFIERS): Define to...
13577 (arm_cdp_qualifiers): ... this. New.
13579 (arm_expand_builtin_args): Add case for 6 arguments.
13580 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
13581 (arm_const_bounds): ... this.
13582 (arm_coproc_builtin_available): New.
13583 * config/arm/arm_acle.h (__arm_cdp): New.
13585 * config/arm/arm_acle_builtins.def (cdp): New.
13587 * config/arm/iterators.md (CDPI,CDP,cdp): New.
13588 * config/arm/neon.md: Rename all 'neon_const_bounds' to
13589 'arm_const_bounds'.
13590 * config/arm/types.md (coproc): New.
13591 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
13592 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
13593 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
13594 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
13596 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
13598 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
13599 (UBINOP_QUALIFIERS): New.
13601 (acle_builtin_data): New. Change comment.
13602 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
13603 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
13604 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
13605 arm_acle_builtins.def.
13606 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
13607 (arm_init_acle_builtins): New.
13608 (CRC32_BUILTIN): Remove.
13609 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
13610 crc32cb, crc32ch and crc32cw.
13611 (arm_init_crc32_builtins): Remove.
13612 (arm_init_builtins): Use arm_init_acle_builtins rather
13613 than arm_init_crc32_builtins.
13614 (arm_expand_acle_builtin): New.
13615 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
13616 * config/arm/arm_acle_builtins.def: New.
13618 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
13620 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
13621 (arm_builtin_datum): ... this.
13622 (arm_init_neon_builtin): Rename to ...
13623 (arm_init_builtin): ... this. Add a new parameters PREFIX
13624 and USE_SIG_IN_NAME.
13625 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
13626 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
13627 'arm_builtin_datum'.
13628 (arm_init_vfp_builtins): Likewise.
13629 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
13630 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
13631 (arm_expand_neon_args): Rename to ...
13632 (arm_expand_builtin_args): ... this. Rename builtin_arg
13633 enum values and differentiate between ARG_BUILTIN_MEMORY
13634 and ARG_BUILTIN_NEON_MEMORY.
13635 (arm_expand_neon_builtin_1): Rename to ...
13636 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
13637 values, arm_expand_builtin_args and add bool parameter NEON.
13638 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
13639 (arm_expand_vfp_builtin): Likewise.
13640 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
13642 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
13644 PR middle-end/77484
13645 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
13646 * predict.c (tree_estimate_probability_bb): Reverse direction of
13647 polymorphic call predictor.
13649 2017-01-06 David Malcolm <dmalcolm@redhat.com>
13651 * passes.c (execute_one_pass): Split out pass-skipping logic into...
13652 (determine_pass_name_match): ...this new function and...
13653 (should_skip_pass_p): ...this new function.
13655 2017-01-06 Nathan Sidwell <nathan@acm.org>
13657 * ipa-visibility.c (function_and_variable_visibility): Reformat
13658 comments and long lines. Remove extrneous if.
13659 * symtab.c (symtab_node::make_decl_local): Fix code format.
13660 (symtab_node::set_section_for_node): Fix comment typo.
13662 2017-01-06 Martin Liska <mliska@suse.cz>
13665 * lra-constraints.c: Rename invariant to lra_invariant.
13666 * predict.c (set_even_probabilities): Initialize e to NULL.
13668 2017-01-05 Martin Sebor <msebor@redhat.com>
13670 PR tree-optimization/78910
13671 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
13672 (format_integer): Correct off-by-one error in the handling
13673 of precision with negative numbers in signed conversions..
13675 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
13677 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
13679 2017-01-05 Jakub Jelinek <jakub@redhat.com>
13681 PR tree-optimization/71016
13682 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
13683 factor_out_conditional_conversion. Formatting fix.
13684 (factor_out_conditional_conversion): Add cond_stmt argument.
13685 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
13686 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
13689 2017-01-05 David Malcolm <dmalcolm@redhat.com>
13691 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
13692 read-rtl-function.o, and selftest-rtl.o.
13693 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
13694 (selftest::aarch64_test_loading_full_dump): New function.
13695 (selftest::aarch64_run_selftests): New function.
13696 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
13697 selftest::aarch64_run_selftests.
13698 * config/i386/i386.c
13699 (selftest::ix86_test_loading_dump_fragment_1): New function.
13700 (selftest::ix86_test_loading_call_insn): New function.
13701 (selftest::ix86_test_loading_full_dump): New function.
13702 (selftest::ix86_test_loading_unspec): New function.
13703 (selftest::ix86_run_selftests): Call the new functions.
13704 * emit-rtl.c (maybe_set_max_label_num): New function.
13705 * emit-rtl.h (maybe_set_max_label_num): New decl.
13706 * function.c (instantiate_decls): Guard call to
13707 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
13708 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
13710 * gensupport.c (gen_reader::gen_reader): Pass "false"
13711 for new "compact" param of rtx_reader.
13712 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
13713 rather than an empty string for NULL strings.
13714 * read-md.c: Potentially include config.h rather than bconfig.h.
13715 Wrap include of errors.h with #ifdef GENERATOR_FILE.
13716 (have_error): New global, copied from errors.c.
13717 (md_reader::read_name): Rename to...
13718 (md_reader::read_name_1): ...this, adding "out_loc" param,
13719 and converting "missing name or number" to returning false, rather
13721 (md_reader::read_name): Reimplement in terms of read_name_1.
13722 (md_reader::read_name_or_nil): New function.
13723 (md_reader::read_string): Handle "(nil)" by returning NULL.
13724 (md_reader::md_reader): Add new param "compact".
13725 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
13726 (md_reader::read_file): New method.
13727 * read-md.h (md_reader::md_reader): Add new param "compact".
13728 (md_reader::read_file): New method.
13729 (md_reader::is_compact): New accessor.
13730 (md_reader::read_name): Convert return type from void to file_location.
13731 (md_reader::read_name_or_nil): New decl.
13732 (md_reader::read_name_1): New decl.
13733 (md_reader::m_compact): New field.
13734 (noop_reader::noop_reader): Pass "false" for new "compact" param
13736 (rtx_reader::rtx_reader): Add new "compact" param.
13737 (rtx_reader::read_rtx_operand): Make virtual and convert return
13738 type from void to rtx.
13739 (rtx_reader::read_until): New decl.
13740 (rtx_reader::handle_any_trailing_information): New virtual function.
13741 (rtx_reader::postprocess): New virtual function.
13742 (rtx_reader::finalize_string): New virtual function.
13743 (rtx_reader::m_in_call_function_usage): New field.
13744 (rtx_reader::m_reuse_rtx_by_id): New field.
13745 * read-rtl-function.c: New file.
13746 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
13747 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
13748 (selftest::verify_three_block_rtl_cfg): New decl.
13749 * read-rtl-function.h: New file.
13750 * read-rtl.c: Potentially include config.h rather than bconfig.h.
13751 For host, include function.h, memmodel.h, and emit-rtl.h.
13752 (one_time_initialization): New function.
13753 (struct compact_insn_name): New struct.
13754 (compact_insn_names): New array.
13755 (find_code): Handle insn codes in compact dumps.
13756 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
13757 (bind_subst_iter_and_attr): Likewise.
13758 (add_condition_to_string): Likewise.
13759 (add_condition_to_rtx): Likewise.
13760 (apply_attribute_uses): Likewise.
13761 (add_current_iterators): Likewise.
13762 (apply_iterators): Likewise.
13763 (initialize_iterators): Guard usage of apply_subst_iterator with
13764 #ifdef GENERATOR_FILE.
13765 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
13766 (md_reader::read_mapping): Likewise.
13767 (add_define_attr_for_define_subst): Likewise.
13768 (add_define_subst_attr): Likewise.
13769 (read_subst_mapping): Likewise.
13770 (check_code_iterator): Likewise.
13771 (rtx_reader::read_rtx): Likewise. Move one-time initialization
13773 (one_time_initialization): New function.
13774 (rtx_reader::read_until): New method.
13775 (read_flags): New function.
13776 (parse_reg_note_name): New function.
13777 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
13778 Handle reuse_rtx ids.
13779 Wrap iterator lookup within #ifdef GENERATOR_FILE.
13780 Add parsing support for RTL dumps, mirroring the special-cases in
13781 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
13782 values, and calling handle_any_trailing_information.
13783 (rtx_reader::read_rtx_operand): Convert return type from void
13784 to rtx, returning return_rtx. Handle case 'e'. Call
13785 finalize_string on XSTR and XTMPL fields.
13786 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
13787 "(nil)" values were omitted. Call the postprocess vfunc on the
13789 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
13790 class ctor. Initialize m_in_call_function_usage. Call
13791 one_time_initialization.
13792 * rtl-tests.c (selftest::test_uncond_jump): Call
13793 set_new_first_and_last_insn.
13794 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
13795 * selftest-rtl.c: New file.
13796 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
13797 (selftest::get_insn_by_uid): New decl.
13798 * selftest-run-tests.c (selftest::run_tests): Call
13799 read_rtl_function_c_tests.
13800 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
13801 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
13804 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
13806 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
13807 operands in a special way. Assert that pos+len <= mode precision.
13809 2017-01-05 Jakub Jelinek <jakub@redhat.com>
13811 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
13812 3 argument Alias with unlimited for the negative form.
13813 (fno-vect-cost-model): Removed.
13815 2017-01-05 Martin Liska <mliska@suse.cz>
13817 * hsa-gen.c (gen_hsa_divmod): New function.
13818 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
13820 2017-01-05 Martin Liska <mliska@suse.cz>
13823 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
13826 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13828 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
13829 small constant length operands.
13831 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13833 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
13834 between loop iterations.
13836 2017-01-05 Martin Liska <mliska@suse.cz>
13839 * gimplify.c (gimplify_decl_expr): Compare to
13840 asan_poisoned_variables instread of checking flags.
13841 (gimplify_target_expr): Likewise.
13842 (gimplify_expr): Likewise.
13843 (gimplify_function_tree): Conditionally initialize
13844 asan_poisoned_variables.
13846 2017-01-04 Jeff Law <law@redhat.com>
13848 PR tree-optimizatin/78812
13849 * rtl.h (contains_mem_rtx_p): Prototype.
13850 * ifcvt.c (containts_mem_rtx_p): Move from here to...
13851 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
13852 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
13853 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
13854 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
13856 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
13858 * input.c (assert_char_at_range): Default-initialize actual_range.
13860 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
13862 * df-scan.c (df_ref_create_structure): Make regno unsigned,
13863 to match the caller.
13865 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
13867 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
13868 insns after final jump in test to emit dummy move.
13870 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
13872 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
13873 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
13875 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
13877 * multiple_target.c (create_dispatcher_calls): Init e_next.
13878 * tree-ssa-loop-split.c (split_loop): Init border.
13879 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
13882 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
13887 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
13888 (altivec_register_operand): Do not return true if the operand
13889 contains a SUBREG mixing SImode and SFmode.
13890 (vsx_register_operand): Likewise.
13891 (vsx_reg_sfsubreg_ok): New predicate.
13892 (vfloat_operand): Do not return true if the operand contains a
13893 SUBREG mixing SImode and SFmode.
13894 (vint_operand): Likewise.
13895 (vlogical_operand): Likewise.
13896 (gpc_reg_operand): Likewise.
13897 (int_reg_operand): Likewise.
13898 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
13899 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
13900 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
13902 (rs6000_emit_move_si_sf_subreg): New helper function.
13903 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
13904 fixup SUBREGs involving SImode and SFmode.
13905 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
13906 numbers for the new peephole2 optimization.
13907 (peephole2 for SFmode unions): New peephole2 to optimize cases in
13908 the GLIBC math library that do AND/IOR/XOR operations on single
13909 precision floating point.
13910 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
13911 target macros to say whether we need to avoid SUBREGs mixing
13913 (TARGET_ALLOW_SF_SUBREG): Likewise.
13914 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
13915 (UNSPEC_SI_FROM_SF): Likewise.
13916 (iorxor): Change spacing.
13917 (and_ior_xor): New iterator for AND, IOR, and XOR.
13918 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
13919 (movdi_from_sf_zero_ext): Likewise.
13920 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
13921 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
13922 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
13923 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
13924 (fms<mode>4): Likewise.
13925 (fnma<mode>4): Likewise.
13926 (fnms<mode>4): Likewise.
13927 (nfma<mode>4): Likewise.
13928 (nfms<mode>4): Likewise.
13930 2017-01-04 Marek Polacek <polacek@redhat.com>
13933 * doc/invoke.texi: Document -Wpointer-compare.
13935 2017-01-04 Jakub Jelinek <jakub@redhat.com>
13937 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
13940 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
13941 descriptions for -gdwarf-5 and emit them as uleb128 instead of
13944 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
13947 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
13948 documentation of the powerpc_popcntb_ok attribute.
13949 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
13950 code to issue warning messages if a requested CPU configuration is
13951 not supported by the binary (assembler and loader) toolchain.
13952 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
13953 made to define a built-in function that has been disabled.
13954 (paired_init_builtins): Add assertion to prevent ICE if attempt is
13955 made to define a built-in function that has been disabled.
13956 (altivec_init_builtins): Add comment explaining why definition
13957 of the DST built-in functions is not preceded by an assertion
13958 check. Add assertions to prevent ICE if attempts are made to
13959 define an altivec predicate or an abs* built-in function that has
13961 (htm_init_builtins): Add comment explaining why definition of the
13962 htm built-in functions is not preceded by an assertion check.
13964 2017-01-04 Jeff Law <law@redhat.com>
13966 PR tree-optimizatin/67955
13967 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
13968 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
13969 the points-to solution does not include pt_null. Use DECL_PT_UID
13972 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
13974 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
13975 Use gen_int_mode instead of gen_lopwart for const_int operands.
13977 2017-01-04 Jakub Jelinek <jakub@redhat.com>
13979 PR tree-optimization/71563
13980 * match.pd: Simplify X << Y into X if Y is known to be 0 or
13981 out of range value - has low bits known to be zero.
13983 2017-01-04 Alan Modra <amodra@gmail.com>
13985 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
13986 * configure: Regenerate.
13987 * config.in: Regenerate.
13989 2017-01-04 Jakub Jelinek <jakub@redhat.com>
13992 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
13993 a substring of the message, but strcmp with the whole message. Ifdef
13994 ENABLE_NLS, translate the message first using dgettext.
13996 2017-01-03 Jeff Law <law@redhat.com>
13998 PR tree-optimizatin/78856
13999 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
14000 (mark_threaded_blocks): Remove code to truncate thread paths that
14001 cross multiple loop headers. Instead invalidate the cached loop
14002 iteration information and handle case of a thread path walking
14003 into an irreducible region.
14005 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14008 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
14009 assertions. Add support for doing the signbit if the IEEE 128-bit
14010 floating point value is in a GPR.
14011 * config/rs6000/rs6000.md (Fsignbit): Delete.
14012 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
14013 Update the length attribute if the value is in a GPR.
14014 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
14015 the sign or zero extension instruction, since the value is always 0/1.
14016 (signbit<mode>2_dm2): Delete using <Fsignbit>.
14019 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
14020 extracting SImode to a GPR register so that we can generate a
14021 store, limit the vector to be in a traditional Altivec register
14022 for the vextuwrx instruction.
14024 2017-01-03 Ian Lance Taylor <iant@google.com>
14026 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
14028 2017-01-03 Martin Sebor <msebor@redhat.com>
14030 PR tree-optimization/78696
14031 * gimple-ssa-sprintf.c (format_floating): Correct handling of
14032 precision. Use MPFR for %f for greater fidelity. Correct handling
14034 (pass_sprintf_length::compute_format_length): Set width and precision
14035 specified by asrerisk to void_node for vararg functions.
14036 (try_substitute_return_value): Adjust dump output.
14038 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
14040 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
14042 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
14044 * doc/invoke.texi (SPARC options): Document -mlra as the default.
14045 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
14046 -mlra/-mno-lra was passed to the compiler.
14048 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
14050 PR rtl-optimization/65618
14051 * emit-rtl.c (try_split): Move initialization of "before" and
14052 "after" to just before the call to emit_insn_after_setloc.
14054 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
14056 * doc/md.texi (Standard Names): Remove reference to Java frontend.
14058 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
14060 * dwarf2out.c (gen_enumeration_type_die): When
14061 -gno-strict-dwarf, add a DW_AT_encoding attribute.
14063 2017-01-03 Jakub Jelinek <jakub@redhat.com>
14065 PR tree-optimization/78965
14066 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
14067 Change first argument from const call_info & to call_info &. For %n
14068 set info.nowrite to false.
14070 PR middle-end/78901
14071 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
14072 possibly throwing calls.
14074 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
14075 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
14076 and fns handling, rather than in a separate case SSA_NAME.
14078 2017-01-02 Jeff Law <law@redhat.com>
14080 * config/darwin-driver.c (darwin_driver_init): Const-correctness
14081 fixes for first_period and second_period variables.
14083 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
14086 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
14087 (*insvqi_1): New insn pattern.
14088 (*insvqi_1_mem_rex64): Ditto.
14089 (*insvqi_2): Ditto.
14090 (*insvqi_3): Rename from *insvqi.
14092 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
14094 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14096 * doc/cfg.texi (Edges): Remove reference to Java.
14097 (Maintaining the CFG): Ditto.
14099 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
14101 PR middle-end/77674
14102 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
14103 transparent aliases.
14105 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
14107 PR middle-end/77484
14108 * predict.def (PRED_CALL): Update hitrate.
14109 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
14110 * predict.c (tree_estimate_probability_bb): Split CALL predictor
14111 into direct/indirect/polymorphic variants.
14113 2017-01-01 Jakub Jelinek <jakub@redhat.com>
14115 Update copyright years.
14117 * gcc.c (process_command): Update copyright notice dates.
14118 * gcov-dump.c (print_version): Ditto.
14119 * gcov.c (print_version): Ditto.
14120 * gcov-tool.c (print_version): Ditto.
14121 * gengtype.c (create_file): Ditto.
14122 * doc/cpp.texi: Bump @copying's copyright year.
14123 * doc/cppinternals.texi: Ditto.
14124 * doc/gcc.texi: Ditto.
14125 * doc/gccint.texi: Ditto.
14126 * doc/gcov.texi: Ditto.
14127 * doc/install.texi: Ditto.
14128 * doc/invoke.texi: Ditto.
14130 Copyright (C) 2017 Free Software Foundation, Inc.
14132 Copying and distribution of this file, with or without modification,
14133 are permitted in any medium without royalty provided the copyright
14134 notice and this notice are preserved.