1 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
3 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
4 variable. Add the new parameter to the insn generator. Set that
5 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
6 return value from the negation of that parameter for Thumb-1, keeping
7 the logic unchanged otherwise except for using bdst as the destination
8 register of the compare_and_swap insn.
9 (arm_split_compare_and_swap): Add explanation about how is the value
10 returned to the function comment. Rename scratch variable to
11 neg_bval. Adapt initialization of variables holding operands to the
12 new operand numbers. Use return register to hold result of store
13 exclusive for Thumb-1, scratch register otherwise. Construct the
14 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
15 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
16 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
17 for strongly ordered compare_and_swap.
18 * config/arm/predicates.md (cc_register_operand): New predicate.
19 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
20 match_operand with the new predicate to accept either the CC flag or a
21 destination register for the boolean return value, restricting it to
22 CC flag only via constraint. Adapt operand numbers accordingly.
24 2016-10-26 Jeff Law <law@redhat.com>
26 * config/frv/frv.c (comparison_string): Do not fall through after
29 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
31 (expand_one_builtin): Add missing break.
33 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
34 (m32c_legitimate_address_p): Likewise.
36 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
38 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
40 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
43 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
46 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
48 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
50 (rl78_asm_ctor_dtor): Increase buffer size.
52 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
54 (xstormy16_asm_output_constructor): Likewise.
56 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
59 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
60 comment to silence warning.
62 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
63 (spu_legitimate_address_p): Fix logic error and add missing fallthru
66 2016-10-26 Michael Matz <matz@suse.de>
68 PR tree-optimization/78060
69 PR tree-optimization/78061
70 PR tree-optimization/78088
71 * tree-ssa-loop-split.c (easy_exit_values): New function.
72 (tree_ssa_split_loops): Use it.
73 (compute_new_first_bound): Change order of operations,
74 fix invalid use of types.
76 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
78 gen-pass-instances.awk is sensitive to the order in which
79 passes are added; passes that appear later have to be added first.
83 * config/avr/avr-passes.def: Swap order of directives for
84 gen-pass-instances.awk.
86 2016-10-25 Jeff Law <law@redhat.com>
88 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
89 (vax_notice_update_cc): Likewise.
91 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
93 * config.gcc (sparc*-*-solaris2*): Adjust.
94 (sparc64-*-linux*): Likewise.
95 * config/sparc/default-64.h: Rename to...
96 * config/sparc/default64.h: ...this.
97 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
99 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
100 * config/sparc/sparc.h: Minor tweaks.
101 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
102 TARGET_ARCH32 throughout. Minor various tweaks throughout.
104 2016-10-25 David Malcolm <dmalcolm@redhat.com>
106 * input.c (fcache::file_patch): Add comment about lifetime.
107 (selftest::cpp_reader_ptr): New class.
108 (selftest::lexer_test): Convert m_parser from cpp_reader *
109 to a cpp_reader_ptr, and move m_tempfile to after it.
110 (selftest::lexer_test::lexer_test): Update for above reordering.
111 (lexer_test::~lexer_test): Move cleanup of m_parser to
112 cpp_reader_ptr's dtor.
114 2016-10-25 David Malcolm <dmalcolm@redhat.com>
116 * toplev.c (toplev::main): Remove call to
117 location_adhoc_data_fini.
119 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
121 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
122 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
124 2016-10-25 David Malcolm <dmalcolm@redhat.com>
126 * ggc-tests.c (forcibly_ggc_collect): Rename to...
127 (selftest::forcibly_ggc_collect): ...this, and remove "static".
128 (test_basic_struct): Update for above renaming.
129 (test_length): Likewise.
130 (test_union): Likewise.
131 (test_finalization): Likewise.
132 (test_deletable_global): Likewise.
133 (test_inheritance): Likewise.
134 (test_chain_next): Likewise.
135 (test_user_struct): Likewise.
136 (test_tree_marking): Likewise.
137 * selftest-run-tests.c (selftest::run_tests): Call
138 selftest::forcibly_ggc_collect at the end of the selftests.
139 * selftest.h (selftest::forcibly_ggc_collect): New decl.
141 2016-10-25 Jakub Jelinek <jakub@redhat.com>
144 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
145 * optabs.c (expand_vec_cond_expr): For comparison codes
146 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
147 (expand_vec_cmp_expr): For comparison codes
148 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
149 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
150 Add enum tree_code argument.
151 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
153 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
154 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
156 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
157 NE_EXPR, attempt to use vcondeq_optab as fallback.
158 * tree-vect-generic.c (expand_vector_comparison,
159 expand_vector_divmod, expand_vector_condition): Adjust
160 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
161 * tree-vect-stmts.c (vectorizable_condition,
162 vectorizable_comparison): Likewise.
163 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
164 check_bool_pattern, search_type_for_mask_1): Likewise.
165 * expr.c (do_store_flag): Likewise.
166 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
167 @code{vcondeq@var{m}@var{n}}): Document.
168 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
171 2016-10-25 Jeff Law <law@redhat.com>
173 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
175 (v850_output_aligned_bss): Add missing break.
177 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
179 2016-10-25 Martin Liska <mliska@suse.cz>
182 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
183 statements as they can also contain possibly a freeing call.
185 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
186 Martin Liska <mliska@suse.cz>
189 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
190 * ipa-icf.c (sem_function::get_hash): Add target optimization
193 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
196 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
197 Remove partial overlap check for shift by 1.
198 (ashldi3_neon): Likewise.
200 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
202 * config/arm/constraints.md (Q constraint): Document its use for
204 (Pf constraint): New constraint for relaxed, consume or relaxed memory
206 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
207 alternatives to allow any register when memory model matches Pf and
208 thus lda is used, but only low registers otherwise. Use unpredicated
209 output template for Thumb-1 targets.
210 (atomic_store<mode>): Likewise for stl.
211 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
212 whose output template does not have predication.
213 (arm_load_acquire_exclusive<mode>): Likewise.
214 (arm_load_exclusivesi): Likewise.
215 (arm_load_acquire_exclusivesi): Likewise.
216 (arm_store_release_exclusive<mode>): Likewise.
217 (arm_store_exclusive<mode>): Use unpredicated output template for
220 2016-10-25 Jakub Jelinek <jakub@redhat.com>
222 * internal-fn.def (LAUNDER): New internal function.
223 * internal-fn.c (expand_LAUNDER): New function.
225 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
226 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
228 New avr target pass to work around performance loss by PR fix.
232 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
233 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
234 * config/avr/predicates.md (extend_operator): New.
235 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
236 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
237 (make_avr_pass_casesi): New prototypes.
238 * config/avr/avr.c (print-rtl.h): Include it.
239 (pass_data avr_pass_data_casesi): Data for new pass.
240 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
241 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
242 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
243 (avr_optimize_casesi): New functions.
245 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
246 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
250 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
252 2016-10-24 Jakub Jelinek <jakub@redhat.com>
254 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
255 DW_AT_rvalue_reference attributes.
257 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
259 * doc/invoke.text (Wint-in-bool-context): Update documentation.
260 * value-prof.c (stringop_block_profile): Fix a warning.
262 2016-10-24 Martin Sebor <msebor@redhat.com>
265 * builtins.c (string_length): New function.
266 (c_strlen): Use string_length. Correctly handle wide strings.
267 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
269 (target_int_max): Call target_max_value.
270 (format_result::knownrange): New data member.
271 (fmtresult::fmtresult): Define default constructor.
272 (format_integer): Use it and set format_result::knownrange.
273 Handle global constants.
274 (format_floating_max): Add third argument.
275 (format_floating): Recompute maximum value for %a for each argument.
276 (get_string_length): Use fmtresult default ctor.
277 (format_string): Set format_result::knownrange.
278 (format_directive): Check format_result::knownrange.
279 (add_bytes): Same. Correct caret placement in diagnostics.
280 (pass_sprintf_length::compute_format_length): Set
281 format_result::knownrange.
282 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
284 2016-10-24 Jakub Jelinek <jakub@redhat.com>
286 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
287 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
289 2016-10-24 Ximin Luo <infinity0@pwned.gg>
292 * dwarf2out.c (file_table_relative_p): Remove.
293 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
294 also for absolute paths.
295 * doc/tm.texi: Update.
296 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
297 * target.def (force_at_comp_dir): Remove hook.
298 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
300 2016-10-24 Richard Biener <rguenther@suse.de>
302 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
303 backedges when identifying the single predecessor to take
304 conditional info from. Use SCEV to get at ranges for loop IVs.
305 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
308 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
311 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
312 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
313 (avr_address_tiny_absdata_p): New static function.
314 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
315 it to determine validity of constant addresses.
316 (avr_attribute_table) [absdata]: New variable attribute...
317 (avr_handle_absdata_attribute): ...and handler.
318 (avr_decl_absdata_p): New static function.
319 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
320 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
321 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
323 2016-10-24 Richard Biener <rguenther@suse.de>
325 PR tree-optimization/78076
326 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
327 also on the loop tree root.
329 2016-10-24 Jakub Jelinek <jakub@redhat.com>
331 * config/i386/i386.c (ix86_fold_builtin): Handle
332 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
333 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
334 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
335 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
337 2016-10-24 Martin Liska <mliska@suse.cz>
340 * opts.c (finish_options): Skip conditionally.
342 2016-10-23 Martin Sebor <msebor@redhat.com>
345 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
346 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
348 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
350 * config/sparc/sparc.md (cpu_feature): Minor tweak.
352 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
353 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
354 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
355 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
356 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
357 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
359 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
361 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
362 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
364 2016-10-21 Andrew Pinski <apinski@cavium.com>
366 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
368 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
369 implementer_id to unsigned char.
370 Change part_no to unsigned int.
371 (AARCH64_BIG_LITTLE): New define.
372 (INVALID_IMP): New define.
373 (INVALID_CORE): New define.
374 (cpu_data): Change the last element's implementer_id and part_no to
376 (valid_bL_string_p): Rewrite to ..
377 (valid_bL_core_p): this for integers instead of strings.
378 (parse_field): New function.
379 (contains_string_p): Rewrite to ...
380 (contains_core_p): this for integers and only for the part_no.
381 (host_detect_local_cpu): Rewrite handling of implementation and
382 par num to be integers; simplifying the code.
384 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
386 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
387 value range for pointers in more cases.
389 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
391 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
392 Add extra argument to allow emitting the move immediate.
393 Use add/sub with positive immediate.
394 (aarch64_add_constant): Add inline function.
395 (aarch64_add_sp): Likewise.
396 (aarch64_sub_sp): Likewise.
397 (aarch64_expand_prologue): Call aarch64_sub_sp.
398 (aarch64_expand_epilogue): Call aarch64_add_sp.
399 Decide when to leave out move.
400 (aarch64_output_mi_thunk): Call aarch64_add_constant.
402 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
404 * config/aarch64/aarch64.c (aarch64_layout_frame):
405 Align FP callee-saves.
407 2016-10-21 Jakub Jelinek <jakub@redhat.com>
409 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
410 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
412 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
413 _rdseed64_step): Likewise.
414 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
417 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
419 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
420 with INTEGER_CST argument.
421 (ix86_gimple_fold_builtin): New function.
422 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
424 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
425 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
426 (ranges_table_allocated, ranges_table_in_use,
427 ranges_by_label_allocated, ranges_by_label_in_use,
428 RANGES_TABLE_INCREMENT): Removed.
429 (add_ranges_num): Use vec_safe_push into ranges_table.
430 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
431 (output_ranges): Adjust for ranges_table and ranges_by_label
432 conversion from arrays to vec.
433 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
434 conversion from arrays to vec.
435 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
436 ranges_table_in_use, ranges_by_label_allocated and
437 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
439 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
440 if needed. Re-add origin_die variable and its initialization.
442 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
443 even for -fstack-reuse=none, or for volatile vars etc.
445 2016-10-21 David Malcolm <dmalcolm@redhat.com>
447 * print-rtl-function.c (flag_compact): Move extern decl to...
448 * print-rtl.h (flag_compact): ...here.
449 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
450 (ASSERT_RTL_DUMP_EQ): New macro.
451 (selftest::test_dumping_regs): New function.
452 (selftest::test_dumping_insns): New function.
453 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
455 (selftest::rtl_tests_c_tests): Call the new test functions.
457 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
459 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
460 (outgoing_edges_match): Likewise.
461 (try_crossjump_to_edge): Likewise.
462 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
463 (rtl_tidy_fallthru_edge): Likewise.
464 * rtl.h (tablejump_p): Adjust prototype.
465 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
467 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
469 * rtl.h (label_ref_label): New function.
470 (set_label_ref_label): New function.
471 (LABEL_REF_LABEL): Delete.
472 * alias.c (rtx_equal_for_memref_p): Adjust.
473 * cfgbuild.c (make_edges): Likewise.
474 (purge_dead_tablejump_edges): Likewise.
475 * cfgexpand.c (convert_debug_memory_address): Likewise.
476 * cfgrtl.c (patch_jump_insn): Likewise.
477 * combine.c (distribute_notes): Likewise.
478 * cse.c (hash_rtx_cb): Likewise.
479 (exp_equiv_p): Likewise.
480 (fold_rtx): Likewise.
481 (check_for_label_ref): Likewise.
482 * cselib.c (rtx_equal_for_cselib_1): Likewise.
483 (cselib_hash_rtx): Likewise.
484 * emit-rtl.c (mark_label_nuses): Likewise.
485 * explow.c (convert_memory_address_addr_space_1): Likewise.
486 * final.c (output_asm_label): Likewise.
487 (output_addr_const): Likewise.
488 * gcse.c (add_label_notes): Likewise.
489 * genconfig.c (walk_insn_part): Likewise.
490 * genrecog.c (validate_pattern): Likewise.
491 * ifcvt.c (cond_exec_get_condition): Likewise.
492 (noce_emit_store_flag): Likewise.
493 (noce_get_alt_condition): Likewise.
494 (noce_get_condition): Likewise.
495 * jump.c (maybe_propagate_label_ref): Likewise.
496 (mark_jump_label_1): Likewise.
497 (redirect_exp_1): Likewise.
498 (rtx_renumbered_equal_p): Likewise.
499 * lra-constraints.c (operands_match_p): Likewise.
500 * print-rtl.c (print_value): Likewise.
501 * reload.c (find_reloads): Likewise.
502 * reload1.c (set_label_offsets): Likewise.
503 * reorg.c (get_branch_condition): Likewise.
504 * rtl-tests.c (test_uncond_jump): Likewise.
505 * rtl.c (rtx_equal_p_cb): Likewise.
506 (rtx_equal_p): Likewise.
507 * rtlanal.c (reg_mentioned_p): Likewise.
508 (rtx_referenced_p): Likewise.
509 (get_condition): Likewise.
510 * varasm.c (const_hash_1): Likewise.
511 (compare_constant): Likewise.
512 (const_rtx_hash_1): Likewise.
513 (output_constant_pool_1): Likewise.
515 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
518 * reload.c (find_valid_class_1): Allow regclass if atleast one
519 regno in regclass is ok. Compute and use rclass size based on
520 actually available regnos for mode in rclass.
522 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
524 * config/sparc/sparc-modes.def (CCV): New.
526 * config/sparc/predicates.md (v_comparison_operator): New.
527 (icc_comparison_operator): Add support for CCV/CCXV.
528 (xcc_comparison_operator): Likewise.
529 * config/sparc/sparc.c (output_cbranch): Likewise.
530 (sparc_print_operand): Likewise.
531 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
532 (uaddvdi4): New expander.
534 (uaddvdi4_sp32): New instruction.
535 (addvdi4_sp32): Likewise.
536 (uaddvsi4): New expander.
538 (cmp_ccc_plus_sltu_set): New instruction.
539 (cmp_ccv_plus): Likewise.
540 (cmp_ccxv_plus): Likewise.
541 (cmp_ccv_plus_set): Likewise.
542 (cmp_ccxv_plus_set): Likewise.
543 (cmp_ccv_plus_sltu_set): Likewise.
544 (uaddvdi4): New expander.
546 (usubdi4_sp32): New instruction.
547 (subvdi4_sp32): Likewise.
548 (usubvsi4): New expander.
550 (cmpsi_minus_sltu_set): New instruction.
551 (cmp_ccv_minus): Likewise.
552 (cmp_ccxv_minus): Likewise.
553 (cmp_ccv_minus_set): Likewise.
554 (cmp_ccxv_minus_set): Likewise.
555 (cmp_ccv_minus_sltu_set): Likewise.
556 (unegvdi3): New expander.
558 (unegdi3_sp32): New instruction.
559 (negvdi3_sp32): Likewise.
560 (unegvsi3): New expander.
562 (cmp_ccc_neg_sltu_set): New instruction.
563 (cmp_ccv_neg): Likewise.
564 (cmp_ccxv_neg): Likewise.
565 (cmp_ccv_neg_set): Likewise.
566 (cmp_ccxv_neg_set): Likewise.
567 (cmp_ccv_neg_sltu_set): Likewise.
569 * tree-ssa-loop-split.c: Remove trailing spaces.
570 * match.pd: Likewise.
572 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
574 PR rtl-optimization/78038
575 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
576 be deduced to set REG through the RTL structure.
577 (make_defs_and_copies_lists): Return false on a failing get_defs call.
579 2016-10-21 Richard Biener <rguenther@suse.de>
581 PR tree-optimization/78051
582 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
583 and mark replaced if folding did something.
585 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
587 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
588 and "protected" in visibility types.
589 (rs6000_xcoff_declare_function_name): Fix formatting.
590 (rs6000_xcoff_declare_object_name): Fix formatting.
592 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
594 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
595 and IX86_BUILTIN_HUGE_VALQ here ...
596 (ix86_expand_builtin): ... not here.
598 2016-10-20 Jakub Jelinek <jakub@redhat.com>
600 * doc/gty.texi (for_user): Use @item next to @findex.
602 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
605 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
606 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
607 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
608 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
609 __builtin_ia32_lzcnt_u16.
610 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
611 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
612 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
613 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
614 (bmi_tzcnt_<mode>): New expander.
615 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
616 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
617 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
618 (lzcnt_<mode>): New expander.
619 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
620 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
621 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
622 (UINT64_FTYPE_UINT64): New.
623 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
624 (__builtin_ia32_lzcnt_u16): New description.
625 (__builtin_ia32_lzcnt_u32): Ditto.
626 (__builtin_ia32_lzcnt_u64): Ditto.
627 (__builtin_ctzs): Remove description.
628 (__builtin_ia32_tzcnt_u16): New description.
629 (__builtin_ia32_tzcnt_u32): Ditto.
630 (__builtin_ia32_tzcnt_u64): Ditto.
631 * config/i386/i386.c (ix86_expand_args_builtin): Handle
632 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
634 2016-10-20 Martin Liska <mliska@suse.cz>
637 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
638 comparison with STMT_UID_NOT_IN_RANGE.
639 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
642 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
644 * compare-elim.c (conforming_compare): Accept UNSPECs.
645 (find_comparison_dom_walker::before_dom_children): Deal with
646 instructions both using and killing the flags register.
647 (equivalent_reg_at_start): New function extracted from...
648 (try_eliminate_compare): ...here. Use it and add support for
649 registers and UNSPECs as second operand of the compare.
650 * config/visium/visium-modes.def (CCV): New.
651 * config/visium/predicates.md (visium_v_comparison_operator): New.
652 (visium_branch_operator): Deal with CCV mode.
653 * config/visium/visium.c (visium_select_cc_mode): Likewise.
654 (output_cbranch): Likewise.
655 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
656 (uaddv<mode>4): New expander.
657 (addv<mode>4): Likewise.
658 (add<mode>3_insn_set_carry): New instruction.
659 (add<mode>3_insn_set_overflow): Likewise.
660 (addsi3_insn_set_overflow): Likewise.
661 (usubv<mode>4): New expander.
662 (subv<mode>4): Likewise.
663 (sub<mode>3_insn_set_carry): New instruction.
664 (sub<mode>3_insn_set_overflow): Likewise.
665 (subsi3_insn_set_overflow): Likewise.
666 (unegv<mode>3): New expander.
667 (negv<mode>3): Likewise.
668 (neg<mode>2_insn_set_overflow): New instruction.
669 (addv_tst<mode>): Likewise.
670 (subv_tst<mode>): Likewise.
671 (negv_tst<mode>): Likewise.
672 (cbranch<mode>4_addv_insn): New splitter and instruction.
673 (cbranch<mode>4_subv_insn): Likewise.
674 (cbranch<mode>4_negv_insn): Likewise.
676 2016-10-20 Richard Biener <rguenther@suse.de>
678 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
679 Handle decls possibly not bound.
680 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
681 nothing_id for decls that might not be bound if we are interested
683 (get_constraint_for_component_ref): Deal with that.
685 2016-10-20 Michael Matz <matz@suse.de>
688 * common.opt (-fsplit-loops): New flag.
689 * passes.def (pass_loop_split): Add.
690 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
691 (enable_fdo_optimizations): Add loop splitting.
692 * timevar.def (TV_LOOP_SPLIT): Add.
693 * tree-pass.h (make_pass_loop_split): Declare.
694 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
695 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
696 * tree-ssa-loop-split.c: New file.
697 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
698 * doc/invoke.texi (fsplit-loops): Document.
699 * doc/passes.texi (Loop optimization): Add paragraph about loop
702 2016-10-20 Richard Biener <rguenther@suse.de>
704 * cgraphunit.c (analyze_functions): Set node->definition to
705 false to signal symbol removal to debug_hooks->late_global_decl.
706 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
707 WPA signal symbol removal to the debuginfo machinery.
708 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
709 using early_finised to guard the we're called for symbol
710 removal case look at the symtabs definition flag.
711 (gen_variable_die): Remove redundant check.
713 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
715 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
717 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
719 PR tree-optimization/53979
720 * match.pd ((a ^ b) | a -> a | b): New pattern.
722 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
724 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
725 config/pa/pa64-hpux-lib.h.
726 (PA_CRTBEGIN_HACK): Likewise.
727 (DTOR_LIST_BEGIN): Likewise.
729 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
731 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
732 register only if "in" and "out" are different registers.
734 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
736 * omp-low.c (pass_oacc_device_lower::gate): New method.
737 (execute): Always call execute_oacc_device_lower.
739 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
741 PR tree-optimization/77916
742 PR tree-optimization/77937
743 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
745 (insert_initializers): Requirement of initializer for -1 should be
746 based on pointer-typedness of the candidate basis.
748 2016-10-19 Bin Cheng <bin.cheng@arm.com>
750 PR tree-optimization/78005
751 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
752 upper (included) bound for niters of prolog loop.
753 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
754 Compute niters of scalar loop above which vectorized loop is
755 preferred, as well as the upper (included) bound for the niters.
756 (vect_do_peeling): Record niter bound for loops accordingly.
758 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
761 * tree-core.h (enum tree_index): Put the complex types after their
763 * tree-streamer.c (verify_common_node_recorded): New function.
764 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
766 2016-10-19 Martin Liska <mliska@suse.cz>
768 * cgraph.h (cgraph_edge::binds_to_current_def_p):
769 Replace NULL with false as a return value.
771 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
773 PR tree-optimization/78024
774 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
775 don't clear BB_VISITED after processing.
777 2016-10-19 Richard Biener <rguenther@suse.de>
779 * domwalk.c (dom_walker::walk): Use RPO order.
781 2016-10-19 Richard Biener <rguenther@suse.de>
783 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
785 (evrp_dom_walker::~evrp_dom_walker): Free it.
786 (evrp_dom_walker::stmts_to_remove): Add.
787 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
788 whose output we fully propagate for removal. Propagate
789 into BB destination PHI arguments.
790 (execute_early_vrp): Remove queued stmts. Dump value ranges
793 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
795 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
796 * passes.def: Add two instances of pass_walloca.
797 * tree-pass.h (make_pass_walloca): New.
798 * gimple-ssa-warn-alloca.c: New file.
799 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
800 -Wvla-larger-than= options.
802 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
804 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
805 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
807 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
809 * config/rs6000/altivec.h (vec_xl_len): New macro.
810 (vec_xst_len): New macro.
811 (vec_cmpnez): New macro.
812 (vec_cntlz_lsbb): New macro.
813 (vec_cnttz_lsbb): New macro.
814 (vec_xlx): New macro.
815 (vec_xrx): New macro.
816 (vec_all_nez): New C++ predicate template.
817 (vec_any_eqz): New C++ predicate template.
818 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
819 conditional compilation.
820 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
821 conditional compilation.
822 (vec_all_nez): New macro.
823 (vec_any_eqz): New macro.
824 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
826 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
828 * config/rs6000/vector.md (VI): Moved this mode iterator
829 definition from altivec.md to vector.md.
830 (UNSPEC_NEZ_P): New value.
831 (vector_ne_<mode>_p): New expansion for implementation of
832 vec_all_ne and vec_any_eq built-in functions.
833 (vector_nez_<mode>_p): New expansion for implementation of
834 vec_all_nez and vec_any_eqz built-in functions.
835 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
836 and vec_any_eq built-in function.
837 (cr6_test_for_zero): New commentary to explain this expansion.
838 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
839 (cr6_test_for_lt): New commentary to explain this expansion.
840 (cr6_test_for_lt_reverse): New commentary to explain this
842 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
843 overloaded function prototypes for vec_all_ne, vec_all_nez,
844 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
845 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
847 (altivec_resolve_overloaded_builtin): Modify the handling of
848 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
849 the compiler is configured to support TARGET_P9_VECTOR.
850 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
851 to explain the special processing that is given to predicate
852 built-ins introduced using this macro.
853 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
854 the special processing given to predicate built-ins introduced
856 (BU_VSX_P): Likewise.
857 (BU_P8V_AV_P): Likewise.
858 (BU_P9V_AV_P): Likewise.
859 (BU_P9V_AV_X): New macro.
860 (BU_P9V_64BIT_AV_X): New macro.
861 (BU_P9V_VSX_3): New macro.
862 (BU_P9V_OVERLOAD_P): New macro.
863 (LXVL): New BU_P9V_64BIT_VSX_2.
864 (VEXTUBLX): New BU_P9V_AV_2.
865 (VEXTUBRX): Likewise.
866 (VEXTUHLX): Likewise.
867 (VEXTUHRX): Likewise.
868 (VEXTUWLX): Likewise.
869 (VEXTUWRX): Likewise.
870 (STXVL): New BU_P9V_64BIT_AV_X.
871 (VCLZLSBB): New BU_P9V_AV_1.
872 (VCTZLSBB): Likewise.
873 (CMPNEB): New BU_P9V_AV_2.
878 (VCMPNEB_P): New BU_P9V_AV_P.
879 (VCMPNEH_P): Likewise.
880 (VCMPNEW_P): Likewise.
881 (VCMPNED_P): Likewise.
882 (VCMPNEFP_P): Likewise.
883 (VCMPNEDP_P): Likewise.
884 (CMPNEZB): New BU_P9V_AV_2.
887 (VCMPNEZB_P): New BU_P9V_AV_P.
888 (VCMPNEZH_P): Likewise.
889 (VCMPNEZW_P): Likewise.
890 (LXVL): New BU_P9V_OVERLOAD_2.
891 (STXVL): New BU_P9V_OVERLOAD_3.
892 (VEXTULX): New BU_P9V_OVERLOAD_2.
895 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
896 (VCMPNE_P): Likewise.
897 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
898 (VCTZLSBB): Likewise.
899 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
900 comment to explain mode used for scratch register.
901 (altivec_expand_stxvl_builtin): New function.
902 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
903 (altivec_init_builtins): Add initialized variable
904 void_ftype_v16qi_pvoid_long and use this type to define the
905 built-in function __builtin_altivec_stxvl.
906 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
907 (UNSPEC_STXVL): New value.
908 (UNSPEC_VCLZLSBB): New value.
909 (UNSPEC_VCTZLSBB): New value.
910 (UNSPEC_VEXTUBLX): New value.
911 (UNSPEC_VEXTUHLX): New value.
912 (UNSPEC_VEXTUWLX): New value.
913 (UNSPEC_VEXTUBRX): New value.
914 (UNSPEC_VEXTUHRX): New value.
915 (UNSPEC_VEXTUWRX): New value.
916 (UNSPEC_VCMPNEB): New value.
917 (UNSPEC_VCMPNEZB): New value.
918 (UNSPEC_VCMPNEH): New value.
919 (UNSPEC_VCMPNEZH): New value.
920 (UNSPEC_VCMPNEW): New value.
921 (UNSPEC_VCMPNEZW): New value.
922 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
923 vector of integer modes.
924 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
925 vector of float or double modes.
926 (*vector_nez_<mode>_p): New insn for vector test all not equal or
928 (lxvl): New expand for load VSX vector with length.
929 (*lxvl): New insn for load VSX vector with length.
930 (stxvl): New expand for store VSX vector with length.
931 (*stxvl): New insn for store VSX vector with length.
932 (vcmpneb): New insn for vector of byte compare not equal.
933 (vcmpnezb): New insn for vector of byte compare not equal or zero.
934 (vcmpneh): New insn for vector of half word compare not equal.
935 (vcmpnezh): New insn for vector of half word compare not equal or
937 (vcmpnew): New insn for vector of word compare not equal.
938 (vcmpne<VSs>): New insn for vector of float or double compare not
940 (vcmpnezw): New insn for vector of word compare not equal or zero.
941 (vclzlsbb): New insn for vector count leading zero
942 least-significant bits byte.
943 (vctzlsbb): New insn for vector count trailing zero least
944 signficant bits byte.
945 (vextublx): New insn for vector extract unsigned byte left
947 (vextubrx): New insn for vector extract unsigned byte right
949 (vextuhlx): New insn for vector extract unsigned half word left
951 (vextuhrx): New insn for vector extract unsigned half word right
953 (vextuwlx): New insn for vector extract unsigned word left
955 (vextuwrx): New insn for vector extract unsigned word right
957 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
958 clarify intent of this constant.
959 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
960 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
961 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
962 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
963 and vec_xrx functions.
965 2016-10-18 Andrew Pinski <apinski@cavium.com>
968 * predict.c (is_exit_with_zero_arg): New function.
969 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
972 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
975 * config/i386/i386.c (legitimize_tls_address)
976 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
977 convert dest to Pmode if different than Pmode.
979 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
981 PR tree-optimization/77916
982 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
983 stopgap fix, as pointers with -1 increment are still broken.
985 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
987 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
988 mapping class decoration from here...
989 (rs6000_xcoff_encode_section): ...to here.
991 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
992 if shrink-wrapping and optimizing for speed.
994 2016-10-18 Richard Biener <rguenther@suse.de>
996 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
997 not visited but non-executable predecessors. Return taken edge.
998 Simplify conditions and refactor propagation vs. folding step.
1000 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
1002 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
1003 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
1004 (rs6000_get_separate_components): Assert we do not have those
1005 strategies selected.
1007 2016-10-18 Richard Biener <rguenther@suse.de>
1009 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
1010 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
1012 (substitute_and_fold_dom_walker): Adjust constructor.
1013 (substitute_and_fold_dom_walker::before_dom_children): Remove
1014 do_dce flag and handling (always true).
1015 (substitute_and_fold): Likewise.
1016 * tree-vrp.c (vrp_finalize): Adjust.
1017 (execute_early_vrp): Remove final BB_VISITED clearing.
1018 * tree-ssa-ccp.c (ccp_finalize): Adjust.
1019 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1020 * ira.c (ira): Call clear_bb_flags.
1022 2016-10-18 Richard Biener <rguenther@suse.de>
1024 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
1025 get at the operand to look at with TREE_OPERAND for generic
1028 2016-10-18 David Malcolm <dmalcolm@redhat.com>
1030 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
1032 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
1033 (write_test_expr): Use rtx_reader_ptr for calls to
1035 (write_attr_value): Likewise.
1036 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
1037 call to print_md_ptr_loc.
1038 (write_one_condition): Likewise for calls to print_c_condition.
1039 * genconstants.c: Include "statistics.h" and "vec.h".
1040 (main): Update for conversion to member functions.
1041 * genemit.c (emit_c_code): Use rtx_reader_ptr for
1042 call to print_md_ptr_loc.
1043 * genenums.c: Include "statistics.h" and "vec.h".
1044 (main): Update for conversion of traverse_enum_types to a method.
1045 * genmddeps.c: Include "statistics.h" and "vec.h".
1046 * genoutput.c (process_template): Use rtx_reader_ptr for call to
1048 * genpreds.c (write_predicate_subfunction): Likewise.
1049 (write_predicate_expr): Likewise for calls to print_c_condition.
1050 * genrecog.c (print_test): Likewise.
1051 * gensupport.c (process_rtx): Likewise for calls to
1052 copy_md_ptr_loc and join_c_conditions.
1053 (alter_test_for_insn): Likewise for call to join_c_conditions.
1054 (process_substs_on_one_elem): Likewise.
1055 (gen_mnemonic_setattr): Update for move of string_obstack to a
1056 field of rtx_reader.
1057 (mnemonic_htab_callback): Likewise. Fix formatting.
1058 (gen_mnemonic_attr): Likewise.
1059 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
1060 to print_c_condition.
1061 * read-md.c: Include "statistics.h" and "vec.h".
1062 (string_obstack): Convert this global to field "m_string_obstack"
1063 of class rtx_reader.
1064 (ptr_locs): Likewise, as "m_ptr_locs".
1065 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
1066 (joined_conditions): Likewise, as "m_joined_conditions".
1067 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
1068 (md_constants): Likewise, as "m_md_constants".
1069 (enum_types): Likewise, as "m_enum_types".
1070 (set_md_ptr_loc): Convert to...
1071 (rtx_reader::set_md_ptr_loc): ...member function.
1072 (get_md_ptr_loc): Convert to...
1073 (rtx_reader::get_md_ptr_loc): ...member function.
1074 (copy_md_ptr_loc): Convert to...
1075 (rtx_reader::copy_md_ptr_loc): ...member function.
1076 (fprint_md_ptr_loc): Convert to...
1077 (rtx_reader::fprint_md_ptr_loc): ...member function.
1078 (print_md_ptr_loc): Convert to...
1079 (rtx_reader::print_md_ptr_loc): ...member function.
1080 (join_c_conditions): Convert to...
1081 (rtx_reader::join_c_conditions): ...member function.
1082 (fprint_c_condition): Convert to...
1083 (rtx_reader::fprint_c_condition): ...member function.
1084 (print_c_condition): Convert to...
1085 (rtx_reader::print_c_condition): ...member function.
1086 (read_name): Convert to...
1087 (rtx_reader::read_name): ...member function.
1088 (read_escape): Convert to...
1089 (rtx_reader::read_escape): ...member function.
1090 (read_quoted_string): Convert to...
1091 (rtx_reader::read_quoted_string): ...member function.
1092 (read_braced_string): Convert to...
1093 (rtx_reader::read_braced_string): ...member function.
1094 (read_string): Convert to...
1095 (rtx_reader::read_string): ...member function.
1096 (read_skip_construct): Convert to...
1097 (rtx_reader::read_skip_construct): ...member function.
1098 (handle_constants): Convert to...
1099 (rtx_reader::handle_constants): ...member function.
1100 (traverse_md_constants): Convert to...
1101 (rtx_reader::traverse_md_constants): ...member function.
1102 (handle_enum): Convert to...
1103 (rtx_reader::handle_enum): ...member function.
1104 (lookup_enum_type): Convert to...
1105 (rtx_reader::lookup_enum_type): ...member function.
1106 (traverse_enum_types): Convert to...
1107 (rtx_reader::traverse_enum_types): ...member function.
1108 (rtx_reader::rtx_reader): Move initializations
1109 of various former global data from rtx_reader::read_md_files to
1110 here, as fields, along with the call to unlock_std_streams.
1111 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
1113 (rtx_reader::read_md_files): Move initializations of various
1114 global data from here to the ctor.
1115 * read-md.h (read_name): Convert to...
1116 (rtx_reader::read_name): ...member function.
1117 (rtx_reader::read_escape): New method decl.
1118 (read_quoted_string): Convert to...
1119 (rtx_reader::read_quoted_string): ...member function.
1120 (rtx_reader::read_braced_string): New method decl.
1121 (read_string): Convert to...
1122 (rtx_reader::read_string): ...member function.
1123 (rtx_reader::read_skip_construct): New method decl.
1124 (rtx_reader::set_md_ptr_loc): New method decl.
1125 (rtx_reader::get_md_ptr_loc): New method decl.
1126 (copy_md_ptr_loc): Convert to...
1127 (rtx_reader::copy_md_ptr_loc): ...member function.
1128 (fprint_md_ptr_loc): Convert to...
1129 (rtx_reader::fprint_md_ptr_loc): ...member function.
1130 (print_md_ptr_loc): Convert to...
1131 (rtx_reader::print_md_ptr_loc): ...member function.
1132 (rtx_reader::lookup_enum_type): New method decl.
1133 (rtx_reader::traverse_enum_types): New method decl.
1134 (rtx_reader::handle_constants): New method decl.
1135 (traverse_md_constants): Convert to...
1136 (rtx_reader::traverse_md_constants): ...member function.
1137 (rtx_reader::handle_enum): New method decl.
1138 (rtx_reader::join_c_conditions): New method decl.
1139 (fprint_c_condition): Convert to...
1140 (rtx_reader::fprint_c_condition): ...member function.
1141 (print_c_condition): Convert to...
1142 (rtx_reader::print_c_condition): ...member function.
1143 (rtx_reader::apply_iterator_to_string): New method decl.
1144 (rtx_reader::copy_rtx_for_iterators): New method decl.
1145 (rtx_reader::read_conditions): New method decl.
1146 (rtx_reader::record_potential_iterator_use): New method decl.
1147 (rtx_reader::read_mapping): New method decl.
1148 (rtx_reader::read_rtx): New method decl.
1149 (rtx_reader::read_rtx_code): New method decl.
1150 (rtx_reader::read_rtx_operand): New method decl.
1151 (rtx_reader::read_nested_rtx): New method decl.
1152 (rtx_reader::read_rtx_variadic): New method decl.
1153 (rtx_reader::get_string_obstack): New method.
1154 (rtx_reader::get_md_constants): New method.
1155 (string_obstack): Convert global variable decl to...
1156 (rtx_reader::m_string_obstack): ...this new field.
1157 (rtx_reader::m_ptr_locs): New field.
1158 (rtx_reader::m_ptr_loc_obstack): New field.
1159 (rtx_reader::m_joined_conditions): New field.
1160 (rtx_reader::m_joined_conditions_obstack): New field.
1161 (rtx_reader::m_md_constants): New field.
1162 (rtx_reader::m_enum_types): New field.
1163 * read-rtl.c (apply_iterator_to_string): Convert to...
1164 (rtx_reader::apply_iterator_to_string): ...member function.
1165 (copy_rtx_for_iterators): Convert to...
1166 (rtx_reader::copy_rtx_for_iterators): ...member function.
1167 (add_condition_to_string): Use rtx_reader_ptr for
1168 calls join_c_conditions.
1169 (apply_iterators): Use rtx_reader_ptr for calls to
1170 join_c_conditions and copy_rtx_for_iterators.
1171 (read_conditions): Convert to...
1172 (rtx_reader::read_conditions): ...member function.
1173 (record_potential_iterator_use): Convert to...
1174 (rtx_reader::record_potential_iterator_use): ...member function.
1175 (read_mapping): Convert to...
1176 (rtx_reader::read_mapping): ...member function.
1177 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
1178 (read_rtx): Convert to...
1179 (rtx_reader::read_rtx): ...member function.
1180 (read_rtx_code): Convert to...
1181 (rtx_reader::read_rtx_code): ...member function.
1182 (read_rtx_operand): Convert to...
1183 (rtx_reader::read_rtx_operand): ...member function. Update for move
1184 of string_obstack to a field.
1185 (read_nested_rtx): Convert to..
1186 (rtx_reader::read_nested_rtx): ...member function.
1187 (read_rtx_variadic): Convert to..
1188 (rtx_reader::read_rtx_variadic): ...member function.
1190 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
1192 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
1194 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
1196 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
1197 for pointer type too.
1198 (ipcp_update_vr): set_ptr_nonnull for pointer.
1200 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
1202 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
1203 pt_solution_singleton_p.
1204 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
1205 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
1206 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
1207 pointer nonnull computed by VRP.
1208 Also Conservatively set pt.null to 1.
1209 (pt_solution_reset): Conservatively set pt.null to 1.
1210 (pt_solution_singleton_or_null_p): Renamed from
1211 pt_solution_singleton_p.
1212 * tree-ssanames.h (set_ptr_nonnull): Declare.
1213 (get_ptr_nonnull): Likewise.
1214 * tree-ssanames.c (set_ptr_nonnull): New.
1215 (get_ptr_nonnull): Likewise.
1216 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
1217 (evrp_dom_walker::before_dom_children): Likewise.
1219 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
1221 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
1222 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
1223 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
1224 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
1225 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
1226 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
1227 (rs6000_option_override_internal): Clear it if ABI_AIX.
1228 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
1229 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
1231 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1233 * gimple-ssa-strength-reduction.c (record_increment): Remove
1236 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
1238 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
1239 that the result is non-zero if it is true.
1240 (maybe_expand_shift): New wrapper around expand_shift_1.
1241 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
1243 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1245 PR tree-optimization/77916
1246 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
1247 Don't allow a MINUS_EXPR for pointer arithmetic for either known
1249 (record_increment): Increments of -1 for unknown strides just use
1250 a multiply initializer like other negative values.
1251 (analyze_increments): Remove stopgap solution for -1 increment
1252 applied to pointer arithmetic.
1254 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
1256 * dominance.c (dom_info::dom_info): Add new constructor for region
1257 which is vector of basic blocks.
1258 (dom_init): New method to initialize members common for both
1260 (dom_info::dom_info): Invoke dom_init for partial initialization.
1261 (dom_info::get_idom): Add check to corner cases on basic blocks which
1263 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
1264 to detect unreachable bbs.
1265 (dom_info::calc_idoms): Likewise.
1266 (compute_dom_fast_query_in_region): New function.
1267 (calculate_dominance_info_for_region): Likewise.
1268 (free_dominance_info_for_region): Likewise.
1269 * dominance.h: Add prototypes for introduced region-based functions
1270 tree-if-conv.c: (build_region): New function.
1271 (if_convertible_loop_p_1): Invoke local version of post-dominators
1272 calculation before basic block predication with subsequent freeing
1273 post-dominator info.
1274 (tree_if_conversion): Remove free of post-dominator info
1275 (pass_if_conversion::execute): Delete detection of infinite loops
1276 and fake edges to exit block since post-dominator calculation is
1277 performed per if-converted loop only.
1279 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
1282 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
1283 register explicitly.
1284 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
1285 optimizing for size.
1287 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1289 * config/aarch64/aarch64.c: Delete inclusion of
1290 cortex-a57-fma-steering.h.
1291 (aarch64_override_options): Delete call
1292 to aarch64_register_fma_steering.
1293 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
1294 * config/aarch64/cortex-a57-fma-steering.h: Delete.
1295 * config/aarch64/aarch64-passes.def: New file.
1296 * config/aarch64/cortex-a57-fma-steering.c
1297 (aarch64_register_fma_steering): Delete definition.
1298 (make_pass_fma_steering): Remove static qualifier.
1299 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
1300 (cortex-a57-fma-steering.o): Remove dependency on
1301 cortex-a57-fma-steering.h.
1303 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
1305 * explow.c (validize_mem): Do not modify the argument in-place.
1307 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
1309 * tree-streamer.c (record_common_node): Explicitly list expected
1312 2016-10-17 Richard Biener <rguenther@suse.de>
1314 PR tree-optimization/77988
1315 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
1317 2016-10-17 Marek Polacek <polacek@redhat.com>
1319 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
1321 2016-10-17 Richard Biener <rguenther@suse.de>
1323 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
1326 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1328 PR tree-optimization/71636
1329 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
1331 2016-10-17 Richard Biener <rguenther@suse.de>
1333 * gimplify.c (gimplify_function_tree): Do not move the outer
1336 2016-10-17 Jakub Jelinek <jakub@redhat.com>
1338 * langhooks.h (struct lang_hooks_for_decls): Remove
1339 function_decl_explicit_p, function_decl_deleted_p and
1340 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
1341 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
1342 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
1343 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
1344 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
1345 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
1346 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
1347 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
1348 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
1349 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
1350 * langhooks.c (lhd_decl_dwarf_attribute): New function.
1351 * dwarf2out.c (gen_subprogram_die): Use
1352 lang_hooks.decls.decl_dwarf_attribute instead of
1353 lang_hooks.decls.function_decl_*.
1355 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
1359 * common.opt (-ftrampolines): New option.
1360 * doc/invoke.texi (Code Gen Options): Document it.
1361 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
1362 * doc/tm.texi: Regenerate.
1363 * builtins.def: Add init_descriptor and adjust_descriptor.
1364 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
1365 on platforms with descriptors.
1366 (expand_builtin_init_descriptor): New function.
1367 (expand_builtin_adjust_descriptor): Likewise.
1368 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
1369 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
1370 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
1371 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
1372 Set STATIC_CHAIN_REG_P on the static chain register, if any.
1373 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
1374 (expand_call): Likewise. Move around call to prepare_call_address
1375 and pass all flags to it.
1376 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
1377 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
1378 (gimple_call_set_by_descriptor): New setter.
1379 (gimple_call_by_descriptor_p): New getter.
1380 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
1381 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
1382 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
1383 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
1384 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
1385 * rtl.h (STATIC_CHAIN_REG_P): New macro.
1386 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
1387 * target.def (custom_function_descriptors): New POD hook.
1388 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
1389 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
1390 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
1391 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
1392 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
1393 (build_common_builtin_nodes): Initialize init_descriptor and
1395 * tree-nested.c: Include target.h.
1396 (struct nesting_info): Add 'any_descr_created' field.
1397 (get_descriptor_type): New function.
1398 (lookup_element_for_decl): New function extracted from...
1399 (create_field_for_decl): Likewise.
1400 (lookup_tramp_for_decl): ...here. Adjust.
1401 (lookup_descr_for_decl): New function.
1402 (convert_tramp_reference_op): Deal with descriptors.
1403 (build_init_call_stmt): New function extracted from...
1404 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
1405 * defaults.h (FUNCTION_ALIGNMENT): Define.
1406 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
1407 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
1408 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
1409 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
1410 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
1412 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
1414 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
1415 constants in CONST_VECTORs.
1417 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
1419 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
1420 register as destination of bmask.
1421 (vector_init_bshuffle): Likewise.
1422 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1423 (bmaskdi_vis): Enable only in 64-bit mode.
1425 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
1427 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
1428 make LR a separately shrink-wrapped component unless savres_strategy
1429 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
1430 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
1431 wrapping when not both {SAVE,REST}_INLINE_GPRS.
1433 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
1435 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
1436 and keep looping on failure.
1438 2016-10-14 David Malcolm <dmalcolm@redhat.com>
1440 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
1442 (print_rtx_function): Update example in comment for...
1443 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
1444 non-virtual pseudos with a '%' sigil followed by the regno, offset
1445 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
1446 pseudo is dumped as "%0".
1448 2016-10-14 Jakub Jelinek <jakub@redhat.com>
1451 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
1454 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
1456 * config/sparc/sparc-passes.def: New file.
1457 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
1458 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
1459 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
1461 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
1463 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
1464 loop peel to loops with exit test at the beginning.
1466 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
1468 PR rtl-optimization/68212
1469 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
1470 frequency when computing scale factor for peeled copies.
1471 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
1472 values for switch/peel blocks/edges.
1474 2016-10-14 Pedro Alves <palves@redhat.com>
1476 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
1478 2016-10-14 Catherine Moore <clm@codesourcery.com>
1480 * gcc/config/mips/mips.c (mips_prepare_pch_save): Initialize
1481 micromips_globals to zero.
1483 2016-10-14 Richard Biener <rguenther@suse.de>
1485 PR tree-optimization/77979
1486 * tree-vrp.c (compare_name_with_value): Handle released SSA names
1487 in the equivalency sets.
1488 (compare_names): Likewise.
1490 2016-10-14 Martin Liska <mliska@suse.cz>
1492 * builtins.h(target_char_cst_p): Declare the function.
1493 * builtins.c (fold_builtin_memchr): Remove.
1494 (target_char_cst_p): Move the function from gimple-fold.c.
1495 (fold_builtin_3): Do not call the function.
1496 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
1497 (gimple_fold_builtin): Call the function.
1498 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
1500 2016-10-14 Martin Liska <mliska@suse.cz>
1502 * builtins.c (fold_builtin_strcmp): Remove function.
1503 (fold_builtin_strncmp): Likewise.
1504 (fold_builtin_2): Remove call of the function.
1505 (fold_builtin_3): Likewise.
1506 * fold-const-call.c (fold_const_call): Add constant folding
1507 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
1508 * fold-const-call.h (build_cmp_result): Declare the function.
1509 * gimple-fold.c (gimple_load_first_char): New function.
1510 (gimple_fold_builtin_string_compare): Likewise.
1511 (gimple_fold_builtin): Call the function.
1513 2016-10-14 Nathan Sidwell <nathan@acm.org>
1515 * gcov-io.c (gcov_open): Deconstify 'mode'.
1517 2016-10-14 Martin Liska <mliska@suse.cz>
1519 * fold-const.c (c_getstr): Support of properly \0-terminated
1520 string constants. New argument is added.
1521 * fold-const.h: New argument is added.
1523 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1525 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
1527 (aarch64_print_hint_for_core): Likewise.
1528 (aarch64_print_hint_for_arch): Likewise.
1529 (aarch64_validate_march): Use it. Fix indentation in type signature.
1530 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
1531 (aarch64_validate_mtune): Likewise.
1532 (aarch64_handle_attr_arch): Likewise.
1533 (aarch64_handle_attr_cpu): Likewise.
1534 (aarch64_handle_attr_tune): Likewise.
1536 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1538 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
1541 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
1543 * config/m68k/m68k.c (m68k_option_override): Check
1544 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
1545 instead of stack_limit_rtx.
1547 2016-10-13 Jakub Jelinek <jakub@redhat.com>
1549 * dwarf2out.c (gen_member_die): Handle inline static data member
1552 2016-10-13 Nathan Sidwell <nathan@acm.org>
1554 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
1555 gcov_var.mode. Remove unnecessary fstat.
1557 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
1560 * function.c (thread_prologue_and_epilogue_insns): Call all
1561 make_*logue_seq in the same order as traditional. Call them
1562 all a second time if shrink_wrapped_separate.
1564 2016-10-13 Marek Polacek <polacek@redhat.com>
1566 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
1567 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
1570 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1572 PR tree-optimization/77937
1573 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
1574 to infinite when we have a pointer with an increment of -1.
1576 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1578 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
1580 * memmodel.h: This file.
1581 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
1582 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
1583 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
1584 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
1585 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
1586 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
1587 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
1588 compare-elim.c, config/aarch64/aarch64-builtins.c,
1589 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
1590 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
1591 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
1592 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
1593 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
1594 config/darwin.c, config/epiphany/epiphany.c,
1595 config/epiphany/mode-switch-use.c,
1596 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
1597 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
1598 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
1599 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
1600 config/m68k/m68k.c, config/mcore/mcore.c,
1601 config/microblaze/microblaze.c, config/mmix/mmix.c,
1602 config/mn10300/mn10300.c, config/moxie/moxie.c,
1603 config/msp430/msp430.c, config/nds32/nds32-cost.c,
1604 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
1605 config/nds32/nds32-memory-manipulation.c,
1606 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
1607 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
1608 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
1609 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
1610 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
1611 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
1612 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
1613 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
1614 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
1615 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
1616 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
1617 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
1618 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
1619 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
1620 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
1621 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
1622 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
1623 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
1624 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
1625 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
1626 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
1627 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
1628 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
1629 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
1630 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
1631 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
1632 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
1633 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
1634 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
1635 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
1636 var-tracking.c, varasm.c: Include memmodel.h.
1637 * genattrtab.c (write_header): Include memmodel.h in generated file.
1638 * genautomata.c (main): Likewise.
1639 * gengtype.c (open_base_files): Likewise.
1640 * genopinit.c (main): Likewise.
1641 * genconditions.c (write_header): Include memmodel.h earlier in
1643 * genemit.c (main): Likewise.
1644 * genoutput.c (output_prologue): Likewise.
1645 * genpeep.c (main): Likewise.
1646 * genpreds.c (write_insn_preds_c): Likewise.
1647 * genrecog.c (write_header): Likewise.
1648 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
1650 2016-10-13 David Malcolm <dmalcolm@redhat.com>
1652 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
1653 for new "compact" param of print_rtx_function. Check for "cinsn"
1655 * print-rtl-function.c (flag_compact): New decl.
1656 (print_rtx_function): Add param "compact" and use it to set
1657 flag_compact, adding a description of the effect to the leading
1658 comment, and updating the example output.
1659 * print-rtl.c (flag_compact): New variable.
1660 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
1662 (print_rtx_operand_code_i): When printing source locations, wrap
1663 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
1664 (print_rtx_operand_code_r): Don't print regnos for hard regs and
1665 virtuals in compact mode.
1666 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
1667 apart from in LABEL_REFs.
1668 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
1669 Don't print basic block ids in compact mode.
1670 (print_rtx): In compact mode, prefix the code of insns with "c",
1671 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
1672 * print-rtl.h (print_rtx_function): Add "compact" param.
1674 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
1676 * arm.h (TARGET_VFP): Delete.
1677 (TARGET_VFPD32): Remove references to TARGET_VFP.
1678 (TARGET_VFP3, TARGET_VFP5): Likewise.
1679 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
1680 (TARGET_NEON_FP16): Likewise.
1681 (TARGET_FMA): Likewise.
1682 (TARGET_CRYPTO): Likewise.
1683 (TARGET_NEON): Likewise.
1684 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
1685 (FUNCTION_ARG_REGNO_P): Likewise.
1686 * arm.c (arm_option_check_internal): Likewise.
1687 (arm_option_override): Likewise.
1688 (use_return_insn): Likewise.
1689 (arm_function_value_regno_p): Likewise.
1690 (arm_apply_result_size): Likewise.
1691 (use_vfp_abi): Likewise.
1692 (arm_legitimate_address_outer_p): Likewise.
1693 (thumb2_legitimate_address_p): Likewise.
1694 (arm_legitimate_index_p): Likewise.
1695 (thumb2_legitimate_index_p): Likewise.
1696 (arm_legitimate_address): Likewise.
1697 (arm_get_vfp_saved_size): Likewise.
1698 (arm_emit_vfp_multi_reg_pop): Likewise.
1699 (arm_get_frame_offsets): Likewise.
1700 (arm_save_coproc_regs): Likewise.
1701 (arm_hard_regno_mode_ok): Likewise.
1702 (arm_expand_epilogue_apcs_frame): Likewise.
1703 (arm_expand_epilogue): Likewise.
1704 (arm_file_start): Likewise.
1705 (arm_conditional_register_usage): Likewise.
1706 (arm_validize_comparison): Use vfp_compare_operand directly.
1707 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
1708 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
1710 (arm_atomic_assign_expand_fenv): Likewise.
1711 * arm.md (divsf3): Likewise.
1712 (arm_negsi2): Likewise.
1714 (arm_movdi): Likewise.
1715 (arm_movt): Likewise.
1716 (cbranchsf4): Change predicate to vfp_compare_operand.
1717 (cbranchdf4): Change predicate to vfp_compare_operand.
1718 (cstorehf4): Change predicate to vfp_compare_operand.
1719 (cstoresf4): Change predicate to vfp_compare_operand.
1720 (cstoredf4): Change predicate to vfp_compare_operand.
1721 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
1722 (movhi_insn_arch4, movhi_bytes): Likewise.
1723 * constraints.md (Dt): Likewise.
1725 * iterators.md (SDF): Likewise.
1726 * predicates.md (arm_float_compare_operand): Delete.
1727 (const_double_vcvt_power_of_two_reciprocal): Remove references to
1729 (const_double_vcvt_power_of_two): Likewise.
1730 * thumb2.md thumb2_movsi_insn): Likewise.
1731 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
1732 (movhf_vfp): Likewise.
1733 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
1734 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
1735 (movsf_vfp, thumb2_movsf_vfp): Likewise.
1736 (movdf_vfp, thumb2_movdf_vfp): Likewise.
1737 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
1738 (subsf3_vfp, divsf3_vfp): Likewise.
1739 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
1740 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
1741 (mulsf3negsfsubsf_vfp): Likewise.
1742 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
1743 (floatunssisf2, sqrtsf2_vfp): Likewise.
1744 (movcc_vfp): Likewise.
1745 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
1746 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
1747 (push_multi_vfp): Likewise.
1748 (set_fpscr, get_fpscr): Likewise.
1749 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
1751 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
1753 * arm.h (TARGET_VFP): Unconditionally define to 1.
1754 (arm_fpu_desc): Remove 'model' field.
1755 (TARGET_FPU_MODEL): Delete.
1756 * arm.c (all_fpus): Don't initialize the model field.
1757 (arm_can_inline_p): Don't check the FPU model.
1758 * arm-fpus.def: Remove redundant model field from all FPU
1761 2016-10-13 Richard Biener <rguenther@suse.de>
1764 * genmatch.c (struct capture): Add value_match member.
1765 (commutate): Preserve value_match.
1766 (lower_opt_convert): Likewise.
1767 (lower_cond): Likewise.
1768 (replace_id): Likewise.
1769 (struct dt_operand): Add value_match member.
1770 (decision_tree::cmp_node): Compare it.
1771 (decision_tree::insert_operand): Honor it when finding and
1772 when appending a DT_MATCH.
1773 (dt_operand::gen_match_op): Generate a type check after
1774 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
1775 (parser::get_internal_capture_id): New helper.
1776 (parser::finish_match_operand): New function lowering @@<id>.
1777 (parser::parse_capture): Parse @@<id> as value-match.
1778 (parser::parse_expr): Use get_internal_capture_id.
1779 (parser::parse_simplify): Call finish_match_operand.
1780 (walk_captures): New helper.
1781 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
1783 ((X /[ex] A) * A -> X): Likewise.
1784 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
1785 convert[12] and value-matching.
1786 ((A | B) & (A | C) -> A | (B & C)): Likewise.
1787 ((X | Y) | Y -> X | Y): Likewise.
1788 ((X ^ Y) ^ Y -> X): Likewise.
1789 (A - (A & B) -> ~B & A): Likewise.
1790 ((T)(P + A) - (T)P -> (T) A): Likewise.
1791 ((T)P - (T)(P + A) -> -(T) A): Likewise.
1792 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
1793 * doc/match-and-simplify.texi: Amend capture section.
1795 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
1797 * config/arc/arc.md (umul_600): Remove predicated variant.
1798 (umul64_600): Likewise.
1800 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
1802 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
1804 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1806 * tree-vect-loop.c (loop_niters_no_overflow): New func.
1807 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
1808 no-overflow information to vect_do_peeling_for_loop_bound and
1809 vect_gen_vector_loop_niters.
1811 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1813 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
1816 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1818 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
1819 adjust_vec automatically.
1820 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
1821 param exit_bb to guard_to.
1822 (slpeel_checking_verify_cfg_after_peeling):
1823 (set_prologue_iterations):
1824 (create_lcssa_for_virtual_phi): New func which is factored out from
1825 slpeel_tree_peel_loop_to_edge.
1826 (slpeel_tree_peel_loop_to_edge):
1827 (iv_phi_p): New func.
1828 (vect_can_advance_ivs_p): Call iv_phi_p.
1829 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
1830 new gimple stmts in basic block.
1831 (vect_gen_niters_for_prolog_loop): Rename to...
1832 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
1833 adjust implementation.
1834 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
1835 sizetype if necessary.
1836 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
1837 it to external function.
1838 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
1839 (vect_gen_vector_loop_niters_mult_vf): New.
1840 (slpeel_update_phi_nodes_for_loops): New.
1841 (slpeel_update_phi_nodes_for_guard1): Reimplement.
1842 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
1843 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
1844 * tree-vect-loop.c (vect_build_loop_niters): Move to file
1845 tree-vect-loop-manip.c
1846 (vect_generate_tmps_on_preheader): Delete.
1847 (vect_transform_loop): Rename vectorization_factor to vf. Call
1848 vect_do_peeling instead of vect_do_peeling-* functions.
1849 * tree-vectorizer.h (vect_do_peeling): New decl.
1850 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
1851 (vect_do_peeling_for_loop_bound): Delete.
1852 (vect_do_peeling_for_alignment): Delete.
1854 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1856 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
1857 duplicated loop after its preheader and after the original loop.
1859 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1861 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
1862 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
1864 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1866 * tree-vect-loop.c (vectorizable_live_operation): Support handling
1867 for live variable outside loop but not in lcssa form.
1869 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1871 * cfg.c (reset_original_copy_tables): New func.
1872 * cfg.h (reset_original_copy_tables): New decl.
1874 2016-10-13 Jakub Jelinek <jakub@redhat.com>
1877 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
1879 * varasm.c (default_binds_local_p_3): Formatting fix.
1881 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1883 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
1885 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1886 Remove useless code.
1888 2016-10-13 Martin Liska <mliska@suse.cz>
1890 PR tree-optimization/77943
1891 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
1892 a different EH landing pads.
1894 2016-10-13 Jakub Jelinek <jakub@redhat.com>
1897 * hooks.h (hook_tree_void_null): Declare.
1898 * hooks.c (hook_tree_void_null): New function.
1899 * langhooks.c (lhd_return_null_tree_v): Remove.
1900 * langhooks-def.h (lhd_return_null_tree_v): Remove.
1901 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
1902 set y to const0_rtx.
1903 * function.c (stack_protect_epilogue): Likewise.
1904 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
1905 if TARGET_THREAD_SSP_OFFSET is defined.
1906 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1907 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1908 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1909 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1910 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1911 (ix86_stack_protect_guard): New function.
1913 2016-10-13 Richard Biener <rguenther@suse.de>
1915 * dwarf2out.c (tree_add_const_value_attribute): Do not try
1916 rtl_for_decl_init during early phase.
1917 (gen_variable_die): Do not create locations during early phase.
1918 (gen_label_die): Likewise.
1919 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
1922 2016-10-12 Richard Biener <rguenther@suse.de>
1924 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
1925 try_add_new_range and made to eturn new range.
1926 (evrp_dom_walker::before_dom_children): Push op1 value range before
1927 pushing op0 value range.
1929 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1931 PR tree-optimization/77937
1932 * gimple-ssa-strength-reduction.c (analyze_increments): Use
1933 POINTER_TYPE_P on the candidate type to determine whether
1934 candidates in this chain require pointer arithmetic.
1936 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
1938 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
1939 correction if the type is smaller than a word.
1940 (visium_select_cc_mode): Add ... fall through ... comment.
1942 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1944 * config/rs6000/rs6000.c (machine_function): Add new fields
1945 gpr_is_wrapped_separately and lr_is_wrapped_separately.
1946 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
1947 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
1948 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
1949 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
1950 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
1951 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
1952 (rs6000_get_separate_components): New function.
1953 (rs6000_components_for_bb): New function.
1954 (rs6000_disqualify_components): New function.
1955 (rs6000_emit_prologue_components): New function.
1956 (rs6000_emit_epilogue_components): New function.
1957 (rs6000_set_handled_components): New function.
1958 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
1959 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
1960 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
1961 (rs6000_emit_epilogue): Don't emit GPR restores if
1962 gpr_is_wrapped_separately for that register. Don't make a
1963 REG_CFA_RESTORE note for registers we did not restore, either.
1965 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1967 * function.c (thread_prologue_and_epilogue_insns): Call
1968 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
1969 if it has possibly changed. Compute the split_prologue_seq and
1970 epilogue_seq later, too.
1971 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
1972 (dump_components): New function.
1973 (struct sw): New struct.
1975 (init_separate_shrink_wrap): New function.
1976 (fini_separate_shrink_wrap): New function.
1977 (place_prologue_for_one_component): New function.
1978 (spread_components): New function.
1979 (disqualify_problematic_components): New function.
1980 (emit_common_heads_for_components): New function.
1981 (emit_common_tails_for_components): New function.
1982 (insert_prologue_epilogue_for_components): New function.
1983 (try_shrink_wrapping_separate): New function.
1984 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
1986 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1988 * regrename.c (build_def_use): Invalidate chains that have a
1989 REG_CFA_RESTORE on some instruction.
1991 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1993 * dce.c (delete_unmarked_insns): Don't delete instructions with
1994 a REG_CFA_RESTORE note.
1996 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1998 * common.opt (-fshrink-wrap-separate): New flag.
1999 * doc/invoke.texi: Document it.
2000 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
2001 * doc/tm.texi: Regenerate.
2002 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
2003 * target.def (shrink_wrap): New hook vector.
2004 (get_separate_components, components_for_bb, disqualify_components,
2005 emit_prologue_components, emit_epilogue_components,
2006 set_handled_components): New hooks.
2008 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
2010 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
2011 vector return by reference only if -Wpsabi.
2012 (rs6000_pass_by_reference): Similarly, for argument passing.
2014 2016-10-12 David Malcolm <dmalcolm@redhat.com>
2016 * function-tests.c: Include "print-rtl.h".
2017 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
2018 function, and verify what is dumped.
2019 * print-rtl-function.c (print_edge): New function.
2020 (begin_any_block): New function.
2021 (end_any_block): New function.
2022 (can_have_basic_block_p): New function.
2023 (print_rtx_function): Track the basic blocks of insns in the
2024 chain, wrapping those that are within blocks within "(block)"
2025 directives. Remove the "(cfg)" directive.
2027 2016-10-12 David Malcolm <dmalcolm@redhat.com>
2029 * selftest.c (selftest::read_file): New function.
2030 (selftest::test_read_file): New function.
2031 (selftest::selftest_c_tests): Call test_read_file.
2032 * selftest.h (selftest::read_file): New decl.
2034 2016-10-12 Richard Biener <rguenther@suse.de>
2037 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
2040 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
2042 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
2044 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
2045 dwarf2out_assembly_start.
2047 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
2049 * Makefile.in (SELFTEST_FLAGS): New variable.
2050 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
2052 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
2055 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
2057 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
2058 dumped in RTL dumps.
2060 2016-10-12 Martin Liska <mliska@suse.cz>
2062 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
2063 (gimple_fold_builtin_memory_op): Use the function.
2064 (gimple_fold_builtin_strchr): Likewise.
2065 (gimple_fold_builtin_strcat): Likewise.
2066 (gimple_build): Likewise.
2068 2016-10-12 Nathan Sidwell <nathan@acm.org>
2070 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
2072 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
2074 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
2075 equivalent 32-bit constant (modulo 2**32) when that yields
2076 smaller instructions.
2077 (size_of_int_loc_descriptor): Update accordingly.
2079 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
2081 * dwarf2out.c (dwarf2out_early_global_decl): For nested
2082 functions, call dwarf2out_decl on the parent function first.
2084 2016-10-12 Richard Biener <rguenther@suse.de>
2086 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
2089 2016-10-12 Richard Biener <rguenther@suse.de>
2091 * tree-ssa-propagate.c
2092 (substitute_and_fold_dom_walker::before_dom_children): Do not
2093 ignore ASSERT_EXPRs but only preserve them.
2094 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
2095 that have been propagated into.
2096 (vrp_finalize): Enable DCE for substitute_and_fold.
2098 2016-10-12 Richard Biener <rguenther@suse.de>
2100 PR tree-optimization/77920
2101 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
2102 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
2103 (simplify_abs_using_ranges): Likewise.
2104 (simplify_conversion_using_ranges): Likewise.
2105 (simplify_stmt_using_ranges): Adjust.
2107 2016-10-12 Jakub Jelinek <jakub@redhat.com>
2109 PR tree-optimization/77929
2110 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
2111 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
2113 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2116 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
2117 needs a base register for arg 1.
2119 2016-10-12 Jakub Jelinek <jakub@redhat.com>
2121 * common.opt (Wimplicit-fallthrough) Turn into alias to
2122 -Wimplicit-fallthrough=3. Remove EnabledBy.
2123 (Wimplicit-fallthrough=): New option.
2124 * gimplify.c (warn_implicit_fallthrough_r): Use
2125 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
2126 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
2127 to -Wimplicit-fallthrough=3.
2128 (-Wimplicit-fallthrough=): Document.
2130 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
2132 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
2133 and GEU in DImode if TARGET_SUBXC.
2134 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
2135 (seqdi<W:mode>_zero_subxc): Delete.
2136 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
2137 (neg_seqdi<W:mode>_zero_vis3): Delete.
2138 (plus_seqdi<W:mode>_zero): Likewise.
2139 (minus_seqdi<W:mode>_zero): Likewise.
2140 (plus_plus_sltu<W:mode>): Accept only register.
2141 (addx<W:mode>): Likewise.
2142 (plus_sltu<W:mode>_vis3): Likewise.
2143 (plus_plus_sltu<W:mode>_vis3): Likewise.
2144 (neg_sgeu<W:mode>_vis3): Delete.
2145 (minus_sgeu<W:mode>_vis3): Likewise.
2146 (addxc<W:mode>): Accept only registers.
2147 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
2148 (minus_neg_sltu<W:mode>_subxc): Accept only register.
2149 (neg_plus_sltu<W:mode>_subxc): Likewise.
2150 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
2151 (minus_minus_sltu<W:mode>_subxc): Accept only register.
2152 (sgeu<W:mode>_insn_subxc): Delete.
2153 (plus_sgeu<W:mode>_subxc): Likewise.
2154 (subxc<W:mode>): Accept only register.
2155 (scc splitter): Split always GEU again.
2157 2016-10-11 Jeff Law <law@redhat.com>
2159 PR tree-optimization/77424
2160 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
2161 dead conditionals. Assert that all e->aux fields are NULL.
2163 2016-10-11 David Malcolm <dmalcolm@redhat.com>
2165 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
2166 operand-printing "switch" statement into...
2167 (print_rtx_operand_code_0): ...this new function, ...
2168 (print_rtx_operand_code_e): ...this new function, ...
2169 (print_rtx_operand_codes_E_and_V): ...this new function, ...
2170 (print_rtx_operand_code_i): ...this new function, ...
2171 (print_rtx_operand_code_r): ...this new function, ...
2172 (print_rtx_operand_code_u): ...this new function, ...
2173 (print_rtx_operand): ...and this new function.
2175 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
2177 * config/alpha/alpha-passes.def: New file.
2178 * config/alpha/t-alpha: New file.
2179 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
2180 (make_pass_handle_trap_shadows): New prototype.
2181 (make_pass_align_insns): Ditto.
2182 * config/alpha/alpha.c (alpha_option_override): Don't register
2184 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
2186 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2189 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
2190 distinct __ibm128 IBM extended double type if long doubles are
2191 128-bits and the default format for long double is IEEE 128-bit.
2193 2016-10-11 Richard Biener <rguenther@suse.de>
2195 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
2196 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
2197 (verify_die): New function.
2198 (dwarf2out_finish): Call it.
2199 (output_line_info): Handle case of -gsplit-dwarf without
2200 DWARF2_ASM_LINE_DEBUG_INFO.
2202 2016-10-11 Richard Biener <rguenther@suse.de>
2205 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
2206 sub-chains of BLOCK_VARS and gimple_bind_vars.
2208 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
2210 * config/i386/znver1.md : Fix imov/imovx load type reservations.
2212 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
2214 * config/sparc/sparc.opt (msubxc): New option.
2215 * doc/invoke.texi (SPARC options): Document it and tidy up.
2216 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
2217 * doc/tm.texi: Regenerate.
2218 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
2220 (CCX_NOOV): Rename into...
2224 * config/sparc/predicates.m (fcc_register_operand): Simplify.
2225 (fcc0_register_operand): Likewise.
2226 (icc_register_operand): New.
2227 (icc_or_fcc_register_operand): Simplify.
2228 (nz_comparison_operator): New.
2229 (c_comparison_operator): Likewise.
2230 (noov_compare_operator): Rename into...
2231 (icc_comparison_operator): ...this. Use above predicates.
2232 (noov_compare64_operator): Rename into...
2233 (v9_comparison_operator): ...this and tidy up.
2234 (fcc_comparison_operator): New.
2235 (icc_or_fcc_comparison_operator): Likewise.
2236 (v9_register_compare_operator): Rename info...
2237 (v9_register_comparison_operator): ...this.
2238 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
2239 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
2241 (sparc_fixed_condition_code_regs): New function.
2242 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
2243 renaming and add support for CCC/CCXC.
2244 (output_cbranch): Likewise.
2245 (sparc_print_operand): Likewise.
2246 (gen_v9_scc): Remove obsolete assertion.
2247 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
2248 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
2249 (output_cbcond): Remove bogus handling of CC modes.
2250 (sparc_register_move_cost): Return 100 for NO_REGS.
2251 * config/sparc/sparc.md (W): New mode iterator.
2252 (length): Adjust for noov_compare64_operator renaming.
2253 (cmpsi_sne): New instruction.
2254 (cmpdi_sne): Likewise.
2255 (seqdi_special): Delete.
2256 (seqdi_special): Likewise.
2257 (snesi<P:mode>_special): Likewise.
2258 (snedi_special): Likewise.
2259 (snedi_special_vis3): Likewise.
2260 (snesi patterns): Use W iterator.
2261 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
2262 (sltu patterns): Likewise.
2263 (sgeu patterns): Likewise.
2264 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
2265 (normal_branch): Use icc_comparison_operator predicate.
2266 (inverted_branch): Likewise.
2267 (cbcond_sp32): Use comparison_operator predicate.
2268 (cbcond_sp64): Likewise.
2269 (normal_int_branch_sp64): Adjust for renaming
2270 (inverted_int_branch_sp64): Likewise.
2271 (mov<I:mode>_cc_reg_sp64): Likewise.
2272 (movsf_cc_reg_sp6): Likewise.
2273 (movdf_cc_reg_sp64): Likewise.
2274 (movtf_cc_reg_hq_sp64): Likewise.
2275 (movtf_cc_reg_sp64): Likewise.
2276 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
2277 (movsf_cc_v9): Likewise.
2278 (movdf_cc_v9): Likewise.
2279 (movtf_cc_hq_v9): Likewise.
2280 (movtf_cc_v9): Likewise.
2281 (adddi3): Call gen_adddi3_sp32.
2282 (adddi3_insn_sp32): Rename to...
2283 (adddi3_sp32): ...this. Accept only register_operand as operand #1
2284 and use CCCmode for the carry.
2285 (addx_extend_sp32): Use CCCmode for the carry.
2286 (addx_extend_sp64): Delete.
2287 (adddi3_extend_sp32): Use CCCmode for the carry.
2288 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
2289 (subdi3): Call gen_subdi3_sp32.
2290 (subdi3_insn_sp32): Rename to...
2291 (subdi3_sp32): ...this and use CCmode for the carry.
2292 (subx_extend_sp32): Use CCCmode for the carry.
2293 (subx_extend_sp64): Delete.
2294 (subdi3_extend_sp32): Use CCmode for the carry.
2295 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
2296 (negdi3): Call gen_negdi3_sp32.
2297 (negdi3_sp32): Use CCCmode for the carry.
2298 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
2299 (cmp_nz_ashift_1): Use CCNZ mode.
2300 (cmp_nz_set_ashift_1): Likewise.
2301 (ctrapsi4): Use comparison_operator predicate.
2302 (ctrapdi4): Likewise.
2303 (trapsi_insn): Use icc_comparison_operator predicate.
2304 (trapdi_insn): Likewise.
2305 (edge8 patterns): Use CCNZmode.
2306 (edge16 patterns): Likewise.
2307 (edge32 patterns): Likewise.
2309 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
2311 * config/visium/visium-modes.def (CC_NOOV): Rename into...
2313 (CC_BTST): Rename into...
2315 * config/visium/predicates.md (real_add_operand): New.
2316 (visium_btst_operator): Rename into...
2317 (visium_equality_comparison_operator): ...this.
2318 (visium_noov_operator): Rename into...
2319 (visium_nz_comparison_operator): ...this.
2320 (visium_c_comparison_operator): New.
2321 (visium_branch_operator): Adjust and deal with all CC modes.
2322 * config/visium/visium.c (visium_adjust_cost): Adjust.
2323 (visium_split_double_add): Use the *_set_carry patterns.
2324 (visium_select_cc_mode): Add support for CCC mode and adjust.
2325 (output_cbranch): Adjust and use the carry-based operators for
2326 floating-point comparisons.
2327 * config/visium/visium.md (flags_subst_arith): Adjust.
2328 (addsi3_insn_set_carry): New instruction.
2329 (subsi3_insn_set_carry): Likewise.
2330 (negsi2_insn_set_carry): Likewise.
2332 (cmp<mode>_sne): Likewise.
2333 (cbranch<mode>4): Use ordered_comparison_operator.
2334 (cbranch<mode>4_insn): Likewise.
2335 (cbranchsi4_btst_insn): Adjust.
2337 2016-10-11 Tom de Vries <tom@codesourcery.com>
2340 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
2343 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
2345 * tree.h (build_complex_type): Add second parameter with default.
2346 * tree.c (build_complex_type): Add NAMED second parameter and adjust
2347 recursive call. Create a TYPE_DECL only if NAMED is true.
2348 (build_common_tree_nodes): Pass true in calls to build_complex_type.
2350 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
2352 New avr-passes.def to register AVR specific passes.
2354 * config/avr/avr-passes.def: New file.
2355 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
2356 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
2357 (make_avr_pass_recompute_note): New proto.
2358 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
2359 (avr_pass_recompute_notes): Use anonymous namespace.
2360 (avr_register_passes): Remove function...
2361 (avr_option_override): ...and its call.
2363 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
2365 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
2366 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
2367 PTF_AVOID_BRANCHLIKELY_SPEED for others.
2368 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
2370 * config/mips/mips.c (mips_option_override): Enable the branch
2371 likely depending on the tune flags and optimization level.
2372 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
2373 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
2374 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
2375 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
2377 2016-10-11 Richard Biener <rguenther@suse.de>
2379 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
2380 (output_function): Properly stream the whole block tree.
2381 * lto-streamer-in.c (input_function): Likewise.
2383 2016-10-11 Marek Polacek <polacek@redhat.com>
2385 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
2387 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
2389 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
2390 (evrp_dom_walker::before_dom_children): Infer and push new value
2391 ranges for x in y < x.
2393 2016-10-10 Joseph Myers <joseph@codesourcery.com>
2396 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
2397 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
2398 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
2399 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
2400 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
2401 (IA64_NO_LIBGCC_TFMODE): Likewise.
2403 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
2405 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
2408 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
2410 * config.gcc: Add aarch64-*-freebsd* support.
2411 * config.host: Likewise.
2412 * config/aarch64/aarch64-freebsd.h: New file.
2413 * config/aarch64/t-aarch64-freebsd: Ditto.
2415 2016-10-10 Jeff Law <law@redhat.com>
2417 PR tree-optimization/71947
2418 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
2419 B with A within a single statement.
2421 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2423 PR tree-optimization/77824
2424 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
2425 zero cost for copies.
2426 (find_candidates_dom_walker::before_dom_children): Replace
2427 MODIFY_EXPR with SSA_NAME.
2428 (replace_mult_candidate): Likewise.
2429 (replace_profitable_candidates): Likewise.
2431 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2433 * config/s390/s390.h: Wrap more macros args in brackets and fix
2435 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
2437 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
2439 2016-10-10 Andreas Schwab <schwab@suse.de>
2442 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
2443 pseudo is not DImode.
2445 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
2447 * common/config/arc/arc-common.c (arc_option_optimization_table):
2448 Remove compact casesi option.
2449 * config/arc/arc.c (arc_override_options): Use compact casesi
2450 option only for pre-ARCv2 cores.
2451 * doc/invoke.texi (mcompact-casesi): Update text.
2453 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2455 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
2456 Add macro to say we can efficiently handle overlapping unaligned
2458 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
2459 poor code for processors older than p8.
2461 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
2463 * gen-pass-instances.awk: Remove GNUism.
2465 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2467 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
2468 NULL of (*ipcp_transformations)][node->uid].
2470 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
2472 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
2473 (MALLOC_ABI_ALIGNMENT): Define.
2475 2016-10-09 Jakub Jelinek <jakub@redhat.com>
2477 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
2478 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
2479 VAR_OR_FUNCTION_DECL_P macros.
2480 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
2481 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
2482 chkp_find_bounds_1): Likewise.
2483 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
2484 * hsa-gen.c (get_symbol_for_decl): Likewise.
2485 * cgraphunit.c (check_global_declaration, analyze_functions,
2486 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
2488 * gimple-fold.c (can_refer_decl_in_current_unit_p,
2489 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
2491 * tree.c (set_decl_section_name, copy_node_stat,
2492 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
2493 merge_dllimport_decl_attributes, handle_dll_attribute,
2494 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
2495 verify_type): Likewise.
2496 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
2497 find_explicit_erroneous_behavior): Likewise.
2498 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
2499 * ipa.c (process_references): Likewise.
2500 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
2501 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
2502 notice_global_symbol, assemble_variable, mark_decl_referenced,
2503 build_constant_desc, output_constant_def_contents, do_assemble_alias,
2504 make_decl_one_only, default_section_type_flags,
2505 categorize_decl_for_section, default_encode_section_info): Likewise.
2506 * trans-mem.c (requires_barrier): Likewise.
2507 * gimple-expr.c (mark_addressable): Likewise.
2508 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
2509 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
2510 expand_debug_expr): Likewise.
2511 * tree-dump.c (dequeue_and_dump): Likewise.
2512 * ubsan.c (instrument_bool_enum_load): Likewise.
2513 * tree-pretty-print.c (print_declaration): Likewise.
2514 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2515 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
2516 * asan.c (asan_protect_global, instrument_derefs): Likewise.
2517 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
2518 pass_build_ssa::execute): Likewise.
2519 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
2520 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
2522 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
2524 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
2525 can_be_nonlocal, remap_decls, copy_debug_stmt,
2526 initialize_inlined_parameters, add_local_variables,
2527 reset_debug_binding, replace_locals_op): Likewise.
2528 * dse.c (can_escape): Likewise.
2529 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
2531 * tree-diagnostic.c (default_tree_printer): Likewise.
2532 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
2533 unpack_ts_decl_with_vis_value_fields,
2534 lto_input_ts_decl_common_tree_pointers): Likewise.
2535 * builtins.c (builtin_save_expr, fold_builtin_expect,
2536 readonly_data_expr): Likewise.
2537 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
2538 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
2540 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
2541 * gimplify.c (force_constant_size, gimplify_bind_expr,
2542 gimplify_decl_expr, gimplify_var_or_parm_decl,
2543 gimplify_compound_lval, gimplify_init_constructor,
2544 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
2545 gimplify_type_sizes): Likewise.
2546 * cgraphbuild.c (record_reference, record_type_list, mark_address,
2547 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
2548 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
2549 remove_unused_locals): Likewise.
2550 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
2551 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
2552 * function.c (instantiate_expr, instantiate_decls_1,
2553 setjmp_vars_warning, add_local_decl): Likewise.
2554 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
2556 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
2557 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
2558 optimize_va_list_gpr_fpr_size): Likewise.
2559 * tree-nrv.c (pass_nrv::execute): Likewise.
2560 * tsan.c (instrument_expr): Likewise.
2561 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
2562 * vtable-verify.c (verify_bb_vtables): Likewise.
2563 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
2564 get_ref_base_and_extent): Likewise.
2565 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
2567 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
2568 analyze_all_variable_accesses): Likewise.
2569 * tree-nested.c (get_nonlocal_debug_decl,
2570 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
2571 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
2572 get_local_debug_decl, convert_local_omp_clauses,
2573 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
2575 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
2576 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
2577 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
2578 dbxout_symbol, dbxout_common_check): Likewise.
2579 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
2580 string_constant): Likewise.
2581 * hsa.c (hsa_get_declaration_name): Likewise.
2582 * passes.c (rest_of_decl_compilation): Likewise.
2583 * tree-ssanames.c (make_ssa_name_fn): Likewise.
2584 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
2585 pack_ts_decl_with_vis_value_fields,
2586 write_ts_decl_common_tree_pointers): Likewise.
2587 * stor-layout.c (place_field): Likewise.
2588 * symtab.c (symtab_node::maybe_create_reference,
2589 symtab_node::verify_base, symtab_node::make_decl_local,
2590 symtab_node::copy_visibility_from,
2591 symtab_node::can_increase_alignment_p): Likewise.
2592 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
2593 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
2594 fortran_common, add_location_or_const_value_attribute,
2595 add_scalar_info, add_linkage_name, set_block_abstract_flags,
2596 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
2597 optimize_one_addr_into_implicit_ptr,
2598 optimize_location_into_implicit_ptr): Likewise.
2599 * gimple-low.c (record_vars_into): Likewise.
2600 * ipa-visibility.c (update_vtable_references): Likewise.
2601 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
2603 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
2604 DFS::DFS_write_tree_body, write_symbol): Likewise.
2605 * langhooks.c (lhd_warn_unused_global_decl,
2606 lhd_set_decl_assembler_name): Likewise.
2607 * attribs.c (decl_attributes): Likewise.
2608 * except.c (output_ttype): Likewise.
2609 * varpool.c (varpool_node::get_create, ctor_for_folding,
2610 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
2611 * fold-const.c (fold_unary_loc): Likewise.
2612 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
2613 ipa_find_agg_cst_from_init): Likewise.
2614 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
2615 expand_omp_target, lower_omp_regimplify_p,
2616 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
2617 find_link_var_op): Likewise.
2618 * tree-chrec.c (chrec_contains_symbols): Likewise.
2619 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
2620 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
2621 execute_fixup_cfg): Likewise.
2623 PR tree-optimization/77901
2624 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
2625 if ranges[i].exp is SSA_NAME when looking for >= and only when
2626 ranges[i].exp is NULL or SSA_NAME when looking for the other
2629 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2631 * ipa-cp.c (ipcp_alignment_lattice): Remove.
2632 (ipcp_param_lattices): Remove field alignment.
2633 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
2634 (set_all_contains_variable): Remove call to
2635 ipcp_alignment_lattice::set_to_bottom.
2636 (initialize_node_lattices): Likewise.
2637 (propagate_alignment_accross_jump_function): Remove.
2638 (propagate_constants_accross_call): Remove call to
2639 propagate_alignment_accross_jump_function.
2640 (ipcp_store_alignment_results): Remove.
2641 (ipcp_driver): Remove call to ipcp_store_alignment_results.
2642 (propagate_bits_accross_jump_function): Handle ancestor jump function.
2643 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
2644 pretty-printing of alignment jump function.
2645 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
2646 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
2647 alignments and remove computing ipa_alignment jump function.
2648 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
2649 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
2650 (ipa_read_jump_function): Remove reading of ipa_alignment.
2651 (write_ipcp_transformation_info): Remove streaming for alignment
2652 propagation summary.
2653 (read_ipcp_transformation_info): Remove reading of alignment
2654 propagation summary.
2655 (ipcp_update_alignments): Remove.
2656 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
2658 (ipcp_transform_function): Remove call to ipcp_update_alignments()
2659 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
2660 * ipa-prop.h (ipa_alignment): Remove.
2661 (ipa_jump_func): Remove field alignment.
2662 (ipcp_transformation_summary): Remove field alignments.
2663 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
2664 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
2665 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
2667 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
2669 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
2671 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
2673 (visium_expand_fp_cstore): Likewise.
2675 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2677 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
2678 * diagnostic.c (warning_at_rich_loc_n): New function.
2679 (diagnostic_n_impl_richloc): Likewise.
2680 (diagnostic_n_impl): Move most of the function to
2681 diagnostic_n_impl_richloc and call it.
2683 2016-10-08 Jakub Jelinek <jakub@redhat.com>
2685 * gen-pass-instances.awk: Rewritten.
2686 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
2687 $(PASSES_EXTRA) after passes.def to the script.
2688 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
2689 * config/i386/i386-passes.def: New file.
2690 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
2691 make_pass_stv): Declare.
2692 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
2694 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
2696 (pass_stv::clone, pass_stv::set_pass_param): New methods.
2697 (pass_stv::timode_p): New non-static data member.
2698 (ix86_option_override): Don't register passes here.
2700 * doc/invoke.texi: Document accepting Else, fallthrough.
2702 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
2705 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
2706 FALLTHRU comment styles.
2708 2016-10-07 Andrew Pinski <apinski@cavium.com>
2710 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
2711 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
2712 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
2714 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
2716 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
2718 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
2719 (AARCH64_ARCH): Likewise.
2720 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
2722 (AARCH64_CORE): Likewise.
2723 (AARCH64_ARCH): Likewise.
2724 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
2725 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
2726 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
2727 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
2728 (AARCH64_ARCH): Likewise.
2729 (AARCH64_CORE): Likewise.
2730 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
2731 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
2732 (AARCH64_CORE): Likewise.
2733 (AARCH64_ARCH): Likewise.
2735 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2737 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
2738 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
2739 floating point type infrastructre, and -mfloat128 that enables the
2740 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
2741 if -mfloat128-type. Define __ibm128 to be long double by default.
2742 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
2743 the IEEE 128-bit floating point type infrastructure should
2744 automatically be enabled.
2745 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
2746 instead of -mfloat128 to enable KFmode.
2747 (rs6000_option_override_internal): Split the option -mfloat128
2748 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
2749 systems, automatically set -mfloat128-type, but don't enable it on
2750 other operating systems. Move setting the long double size and
2751 IEEE quad support before the IEEE 128-bit floating point changes.
2752 (rs6000_init_builtins): Do not create a unique type for __ibm128
2753 if long double is IBM extended double, instead rely on __ibm128
2754 being defined as 'long double'. If -mfloat128-type and not
2755 -mfloat128, create the KFmode type with an undocumented __ieee128
2757 (rs6000_init_libfuncs): Use -mfloat128-type instead of
2758 -mfloat128 for tests about the types, but keep tests for
2759 -mfloat128 to enable the keyword support.
2760 (rs6000_complex_function_value): Likewise.
2761 (rs6000_scalar_mode_supported_p): Likewise.
2762 (rs6000_floatn_mode): Likewise.
2763 (rs6000_c_mode_for_suffix): Likewise.
2764 (rs6000_opt_masks): Add -mfloat128-type.
2765 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
2766 -mfloat128-type being split from -mfloat128. Add
2767 -mfloat128-hardware, which was missing.
2768 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
2769 -mfloat128 and -mfloat128-type:
2770 (-mfloat128-type): Likewise.
2771 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
2772 that 64-bit Linux systems with enable -mfloat128-type by default
2774 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
2775 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
2776 -mfloat128-type instead of -mfloat128.
2777 (FLOAT128_2REG_P): Likewise.
2778 (MASK_FLOAT128_TYPE): Likewise.
2779 (ALTIVEC_ARG_MAX_RETURN): Likewise.
2780 (RS6000_BTM_FLOAT128): Likewise.
2781 (TARGET_FLOAT128): Poison old identifiers.
2782 (OPTION_MASK_FLOAT128): Likewise.
2783 (MASK_FLOAT128): Likewise.
2784 * config/rs6000/rs6000.md (FP): Likewise.
2785 (FLOAT128): Likewise.
2786 (fix_trunc<mode>di2): Likewise.
2787 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2788 (floatdi<mode>2): Likewise.
2789 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
2790 (neg<mode>2, FLOAT128 iterator): Likewise.
2791 (abs<mode>2, FLOAT128 iterator): Likewise.
2792 (ieee_128bit_negative_zero): Likewise.
2793 (ieee_128bit_vsx_neg<mode>2): Likewise.
2794 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
2795 (ieee_128bit_vsx_abs<mode>2): Likewise.
2796 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2797 (ieee_128bit_vsx_nabs<mode>2): Likewise.
2798 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2799 (extendiftf2): Likewise.
2800 (extendifkf2): Likewise.
2801 (extendtfkf2): Likewise.
2802 (trunciftf2): Likewise.
2803 (truncifkf2): Likewise.
2804 (trunckftf2): Likewise.
2805 (trunctfif2): Likewise.
2806 (extendkftf2): Likewise.
2807 (trunctfkf2): Likewise.
2809 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2811 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
2812 before merging in bytes to pass down to real_from_target.
2814 2016-10-07 Richard Biener <rguenther@suse.de>
2816 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
2818 (substitute_and_fold_dom_walker::before_dom_children):
2819 Substitute and fold before pass specific folding to avoid
2820 feeding that with SSA names that will be later released.
2821 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
2822 introduced by folding and visited by evaluate_stmt called during
2824 (likely_value): Likewise.
2825 (evaluate_stmt): Likewise.
2826 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
2827 (simplify_div_or_mod_using_ranges): Likewise.
2828 (simplify_min_or_max_using_ranges): Likewise.
2829 (simplify_abs_using_ranges): Likewise.
2830 (simplify_conversion_using_ranges): Likewise.
2831 (simplify_float_conversion_using_ranges): Likewise.
2832 (simplify_stmt_using_ranges): Likewise.
2834 2016-10-07 Marek Polacek <polacek@redhat.com>
2836 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
2837 FALLTHROUGH_LABEL_P here...
2838 (warn_implicit_fallthrough_r): ...not here.
2840 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
2842 PR tree-optimization/77880
2843 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
2846 2016-10-07 Marek Polacek <polacek@redhat.com>
2849 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
2851 2016-10-07 Richard Biener <rguenther@suse.de>
2853 * bitmap.h: Document constraints on bitmap modification while
2856 2016-10-07 Richard Biener <rguenther@suse.de>
2858 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
2859 * bitmap.h (bmp_iter_set): When advancing to the next element
2860 check that we didn't remove the current one.
2861 (bmp_iter_and): Likewise.
2862 (bmp_iter_and_compl): Likewise.
2863 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
2864 we currently iterate on but keep a one-level queue.
2865 * sched-deps.c (remove_from_deps): Do not clear current bit
2866 but keep a one-level queue.
2868 2016-10-07 Jakub Jelinek <jakub@redhat.com>
2870 PR tree-optimization/77664
2871 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
2872 for the other ranges.
2873 (optimize_range_tests_diff): Fix up formatting.
2874 (optimize_range_tests_var_bound): New function.
2875 (optimize_range_tests): Use it.
2877 2016-10-07 Martin Liska <mliska@suse.cz>
2879 * coverage.c (build_gcov_exit_decl): Fix priority what
2880 should be really 99.
2882 2016-10-07 Richard Biener <rguenther@suse.de>
2884 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
2885 vars in gimple_bind_vars but not in BLOCK_VARS.
2887 2016-10-07 Richard Biener <rguenther@suse.de>
2889 PR tree-optimization/77879
2890 * tree-ssa-structalias.c (handle_const_call): Properly handle
2892 (handle_pure_call): Likewise.
2894 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2896 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
2897 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
2900 2016-10-06 Andrew Pinski <apinski@cavium.com>
2902 * config/aarch64/aarch64-cores.def: Add a comment before each
2905 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2907 PR tree-optimization/77862
2908 * tree-vrp.c (add_equivalence): Use get_value_range so that
2909 num_vr_values is checked before accessing vr_values.
2911 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2913 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
2916 2016-10-05 Jeff Law <law@redhat.com>
2918 PR tree-optimization/71661
2919 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
2920 removal of a forwarder exposes a new natural loop.
2922 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
2924 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
2925 Introduce ssesuffix variable.
2926 (<mask_codefor><code><mode>3<mask_name>): Ditto.
2927 (*<code><mode>3): Ditto.
2929 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
2931 * postreload.c (reload_cse_simplify): Skip also USE when detecting
2934 2016-10-06 Richard Biener <rguenther@suse.de>
2936 PR tree-optimization/77855
2937 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
2938 instead of removing the current item while iterating over the set
2941 2016-10-06 James Clarke <jrtc27@jrtc27.com>
2942 Eric Botcazou <ebotcazou@adacore.com>
2945 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
2946 (classify_registers): Don't set it
2947 (function_arg_slotno): Don't initialize and test it. Tidy up.
2949 2016-10-06 Richard Biener <rguenther@suse.de>
2951 PR tree-optimization/77839
2952 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
2955 2016-10-06 Martin Liska <mliska@suse.cz>
2957 * gcc.c: Set -fprofile-update=atomic when profiling is
2958 enabled and -pthread is set. Warn when one combines
2959 -pthread and -fprofile-update=single for an app using
2962 2016-10-06 Martin Liska <mliska@suse.cz>
2965 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
2966 * gimple-ssa-strength-reduction.c (slsr_process_cast):
2967 Initialize a pointer to NULL.
2968 (slsr_process_copy): Likewise.
2969 * input.c (location_get_source_line): Likewise.
2970 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2972 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
2974 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
2975 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
2976 (ix86_handle_option): Deleted handle of OPT_mpcommit.
2977 * config.gcc: Deleted pcommitintrin.h
2978 * config/i386/pcommitintrin.h: Deleted file.
2979 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
2980 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
2982 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
2984 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
2985 (PTA_PCOMMIT): Deleted define.
2986 (ix86_option_override_internal): Deleted handle of option.
2987 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
2988 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
2989 __builtin_ia32_pcommit): Deleted.
2990 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
2991 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
2992 (pcommit): Deleted instruction.
2993 * config/i386/i386.opt: Mention -mpcommit deprecation.
2994 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
2996 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
2999 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
3000 Remove wrong assert.
3001 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
3002 Use <round_constraint> as operand 1 constraint.
3004 2016-10-05 Jakub Jelinek <jakub@redhat.com>
3007 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
3008 (ubsan_instrument_float_cast): And not here.
3011 * ubsan.c (ubsan_ids): New GTY(()) array.
3012 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
3013 instead of static local counters.
3015 2016-10-05 Martin Sebor <msebor@redhat.com>
3018 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
3019 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
3020 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
3021 (default_printf_pointer_format): Define function.
3022 * targhooks.c (linux_printf_pointer_format): Define new function.
3023 * targhooks.h (linux_printf_pointer_format): Declare.
3024 (gnu_libc_printf_pointer_format): Remove declaration.
3026 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3028 * fold-const.c (native_encode_real): Fix logic for selecting offset
3029 to write to when BYTES_BIG_ENDIAN.
3031 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
3033 * builtins.c (fold_builtin_strchr): Remove function.
3034 (fold_builtin_strrchr): Likewise.
3035 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
3036 * gimple-fold.c (target_char_cst_p): New function.
3037 (gimple_fold_builtin_strchr) Add more foldings.
3038 (gimple_fold_builtin): Add index, strrchr, rindex cases.
3040 2016-10-05 Richard Biener <rguenther@suse.de>
3043 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
3044 capture ids in c-exprs.
3046 2016-10-05 Richard Biener <rguenther@suse.de>
3049 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
3050 with types_match for GIMPLE code gen to handle type mismatched
3052 (dt_operand::gen): Adjust.
3053 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
3056 2016-10-05 Richard Biener <rguenther@suse.de>
3058 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
3060 2016-10-05 Richard Biener <rguenther@suse.de>
3063 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
3065 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
3067 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
3068 version check to protect only DW_TAG_imported_module generation.
3070 2016-10-05 Richard Biener <rguenther@suse.de>
3073 * match.pd (min(a,-a) -> -abs(a)): New pattern.
3075 2016-10-04 Ian Lance Taylor <iant@golang.org>
3077 * explow.c (allocate_dynamic_stack_space): Call
3078 do_pending_stack_adjust before handling flag_split_stack.
3080 2016-10-04 David Malcolm <dmalcolm@redhat.com>
3082 * genattrtab.c (make_internal_attr): Supply dummy column number to
3085 * genoutput.c (init_insn_for_nothing): Likewise.
3086 * gensupport.c (add_define_attr): Likewise.
3087 * read-md.c (message_at_1): Print column number.
3088 (fatal_with_file_and_line): Likewise.
3089 (rtx_reader::read_char): Track column numbers.
3090 (rtx_reader::unread_char): Likewise.
3091 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
3092 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
3093 (rtx_reader::handle_file): Initialize m_read_md_colno.
3094 (rtx_reader::get_current_location): Supply column number to
3096 * read-md.h (struct file_location): Add field "colno".
3097 (file_location::file_location): Likewise.
3098 (rtx_reader::get_colno): New accessor.
3099 (rtx_reader::m_read_md_colno): New field.
3100 (rtx_reader::m_last_line_colno): New field.
3102 2016-10-04 Jakub Jelinek <jakub@redhat.com>
3104 * doc/extend.texi (Java Exceptions): Remove.
3105 (java_interface): Remove.
3107 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
3109 PR tree-optimization/77808
3110 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
3111 and addr are different before copying points-to information.
3113 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
3115 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
3116 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
3117 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
3118 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
3120 2016-10-04 Richard Biener <rguenther@suse.de>
3122 PR tree-optimization/77399
3123 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
3124 verify the target can convert.
3126 2016-10-04 Richard Biener <rguenther@suse.de>
3129 * explow.c (plus_constant): Verify the mode of the constant
3130 pool offset before calling plus_constant.
3132 2016-10-04 Richard Biener <rguenther@suse.de>
3135 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
3136 type support, mark with :C.
3137 (X / -X -> -1): Mark with :C.
3139 2016-10-04 Jakub Jelinek <jakub@redhat.com>
3141 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
3142 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
3143 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
3144 * doc/tm.texi: Regenerated.
3145 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
3146 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
3147 * config/darwin.h (JCR_SECTION_NAME): Remove.
3148 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
3149 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
3150 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
3151 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
3152 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
3153 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
3155 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3157 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
3158 between "because" and "param" in dump message in call to fprintf.
3160 2016-10-03 Jeff Law <law@redhat.com>
3162 PR tree-optimization/71550
3163 PR tree-optimization/71403
3164 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
3165 (profitable_jump_thread_path): Also return boolean indicating if
3166 the realized path will create an irreducible loop.
3167 Remove loop depth tests from 71403.
3168 (fsm_find_control_statement_thread_paths): Remove loop depth tests
3169 from 71403. If threading will create an irreducible loop, then
3170 throw away loop iteration and related information.
3172 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
3174 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
3175 -Woverloaded-virtual checks for warning options.
3176 * configure: Regenerate.
3178 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
3180 PR preprocessor/77699
3181 * input.c (maybe_grow): Don't allocate one byte extra headroom.
3182 (get_next_line): Return false on error.
3183 (read_next_line): Removed, use get_next_line instead.
3184 (read_line_num): Don't copy the line.
3185 (location_get_source_line): Don't use static data.
3186 (selftest::test_reading_source_line): Add more test cases.
3188 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3191 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3193 * ifcvt.c (noce_try_avoid_const_materialization): New function.
3194 (noce_process_if_block): Use it.
3196 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
3198 * doc/invoke.texi: Update -Wint-in-bool-context.
3200 2016-10-02 Jakub Jelinek <jakub@redhat.com>
3202 * dwarf2out.c (output_fde, output_call_frame_info,
3203 dwarf2out_do_cfi_startproc, set_indirect_string,
3204 gen_internal_sym, output_die, output_line_info): Use
3205 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
3206 ASM_GENERATE_INTERNAL_LABEL output.
3208 2016-10-01 Richard Biener <rguenther@suse.de>
3211 * genmatch.c (get_operand_type): Add operand position arg
3212 and handle COND_EXPR comparison operand with fixed boolean_type_node.
3213 (expr::gen_transform): Adjust.
3214 (dt_simplify::gen_1): Likewise.
3216 2016-10-01 Jakub Jelinek <jakub@redhat.com>
3218 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
3219 comments. Simplify asserts, remove unnecessary conditions.
3221 (*<code><mode>3): Likewise.
3223 2016-09-30 Jakub Jelinek <jakub@redhat.com>
3225 * doc/invoke.texi (-Wregister): Document.
3227 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
3229 * configure.ac: Split CHECKING_P into CHECKING_P and
3230 ENABLE_EXTRA_CHECKING.
3231 * configure: Regenerated.
3232 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
3233 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
3235 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
3238 * gcc.c (process_command): For @filename handling, output
3239 the correct name if the file does not exist.
3241 2016-09-30 Marek Polacek <polacek@redhat.com>
3243 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
3244 * config/alpha/predicates.md: Likewise.
3246 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3248 * ifcvt.c (noce_try_avoid_const_materialization): New function.
3249 (noce_process_if_block): Use it.
3251 2016-09-30 Martin Liska <mliska@suse.cz>
3253 * doc/invoke.texi: Document asan-use-after-return that
3254 it's disabled by default in runtime.
3256 2016-09-30 Richard Biener <rguenther@suse.de>
3258 * tree-vrp.c (intersect_ranges): If we failed to handle
3259 the intersection choose a constant singleton range if available.
3261 2016-09-30 Richard Biener <rguenther@suse.de>
3263 PR tree-optimization/77399
3264 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
3265 float <-> int conversions.
3267 2016-09-30 Alan Modra <amodra@gmail.com>
3269 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
3271 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
3273 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
3274 ext_level before calling CPUID with 0x80000008.
3275 Simplify xgetbv checks.
3277 2016-09-29 David Malcolm <dmalcolm@redhat.com>
3279 * Makefile.in (OBJS): Add print-rtl-function.o.
3280 * print-rtl-function.c: New file.
3281 * print-rtl.h (print_rtx_function): New decl.
3283 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
3286 * config/i386/cpuid.h (__get_cpuid_count): New.
3287 (__get_cpuid): Rename __level to __leaf.
3289 2016-09-29 Marek Polacek <polacek@redhat.com>
3291 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
3293 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
3295 * builtins.c (expand_builtin_memcmp): don't swap args unless
3296 result is only being compared with zero.
3298 2016-09-29 Marek Polacek <polacek@redhat.com>
3300 * dwarf2out.c (loc_descriptor): Add fall through comment.
3301 (add_const_value_attribute): Likewise.
3303 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
3305 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
3306 with "v6t2". Move "arch" attribute above "pool_range".
3307 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
3309 (*thumb2_movhi_vfp): Likewise.
3310 (*arm_movhi_fp16): Likewise.
3311 (*thumb2_movhi_fp16): Likewise.
3312 (*arm_movsi_vfp): Remove "arch" attribute.
3313 (*thumb2_movsi_vfp): Likewise.
3315 2016-09-29 Martin Liska <mliska@suse.cz>
3317 * doc/extend.texi: Remove limitation of Objective C for
3318 __attribute__((constructor)) and __attribute__((destructor)).
3320 2016-09-29 Richard Biener <rguenther@suse.de>
3322 PR tree-optimization/77768
3323 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3324 Handle stores to readonly memory when removing redundant stores.
3326 2016-09-29 Richard Biener <rguenther@suse.de>
3329 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
3330 X / -X -> -1 simplifications.
3332 2016-09-29 Richard Biener <rguenther@suse.de>
3335 * match.pd: Add max(a,-a) -> abs(a) pattern.
3336 * tree-ssa-phiopt.c (minmax_replacement): Disable for
3337 HONOR_SIGNED_ZEROS types.
3339 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
3341 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
3342 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
3344 2016-09-29 Richard Biener <rguenther@suse.de>
3346 * tree-vrp.c (set_defs_to_varying): New helper avoiding
3347 writing to vr_const_varying.
3348 (vrp_initialize): Call it.
3349 (vrp_visit_stmt): Likewise.
3350 (evrp_dom_walker::before_dom_children): Likewise.
3352 2016-09-29 Richard Biener <rguenther@suse.de>
3354 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
3355 constructors with vector elements.
3357 2016-09-29 Richard Biener <rguenther@suse.de>
3359 PR tree-optimization/77768
3360 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
3361 with stores to a place we know has a constant value.
3363 2016-09-29 Alan Modra <amodra@gmail.com>
3365 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
3366 * doc/invoke.texi: Document it.
3367 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
3368 (rs6000_passes_float): Comment.
3369 (rs6000_passes_long_double): New static var.
3370 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
3371 (init_cumulative_args): Set up to emit fp .gnu_attribute for
3372 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
3373 to include fp values returned in vectors.
3374 Set rs6000_passes_long_double.
3375 (rs6000_function_arg_advance_1): Likewise for function args.
3376 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
3377 and SPE. Emit long double tag value too.
3378 (rs6000_opt_vars): Add gnu-attr.
3379 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
3380 * configure: Regenerate.
3381 * config.in: Regenerate.
3383 2016-09-28 Jakub Jelinek <jakub@redhat.com>
3385 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
3387 (format_floating, format_string, format_directive,
3388 get_destination_size, pass_sprintf_length::handle_gimple_call):
3391 2016-09-28 Jakub Jelinek <jakub@redhat.com>
3393 * gimple-ssa-sprintf.c: Fix comment formatting.
3394 (format_integer): Use is_gimple_assign.
3395 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
3396 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
3397 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
3398 (pass_sprintf_length::execute): Use is_gimple_call.
3400 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
3402 * gimple-fold.c (gimple_fold_builtin): After failing to fold
3403 strchr, also try the generic folding.
3405 2016-09-28 Martin Sebor <msebor@redhat.com>
3408 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
3411 2016-09-28 Martin Sebor <msebor@redhat.com>
3414 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
3415 length modifier is not expected.
3416 (format_floating): Ignore l length modifier and fail gracefuly
3417 when it isn't one of the other expected ones.
3419 2016-09-28 Martin Sebor <msebor@redhat.com>
3422 * varasm.c (assemble_addr_to_section): Increase local buffer size.
3424 2016-09-27 Richard Biener <rguenther@suse.de>
3426 * dwarf2out.c (cu_die_list): New global.
3427 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
3428 main_comp_unit_die to cu_die_list if we created it.
3429 Move break_out_includes ...
3430 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
3433 2016-09-28 Richard Biener <rguenther@suse.de>
3435 * dwarf2out.c (struct die_struct): Add removed flag.
3436 (lookup_type_die): If the DIE is marked as removed, clear
3437 TYPE_SYMTAB_DIE and return NULL.
3438 (lookup_decl_die): If the DIE is marked as removed, remove it
3439 from the hash and return NULL.
3440 (mark_removed): New helper.
3441 (prune_unused_types_prune): Call it for removed DIEs.
3442 (gen_subprogram_die): Move the premark_used_types call to after
3443 DIEs for the functions scopes are generated.
3444 (process_scope_var): Do not re-create pruned types or type decls.
3445 Make sure to also re-parent type decls.
3446 (dwarf2out_finish): Move unused type pruning and debug_types
3448 (dwarf2out_early_finish): ... here.
3450 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
3452 * config/arc/arc-c.c: New file.
3453 * config/arc/arc-c.def: Likewise.
3454 * config/arc/t-arc: Likewise.
3455 * config.gcc: Include arc-c.o as c and cpp object.
3456 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
3457 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
3458 arc_cpu_cpp_builtins.
3460 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
3462 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
3463 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
3465 2016-09-28 Nathan Sidwell <nathan@acm.org>
3467 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
3470 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
3472 PR tree-optimization/61056
3473 * gimple-fold.c (gimple_fold_builtin_strchr):
3474 New function to optimize strchr (s, 0) to strlen.
3475 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
3477 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
3479 PR tree-optimization/77724
3480 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
3481 Add tree_fits_shwi_p check.
3483 2016-09-27 Jakub Jelinek <jakub@redhat.com>
3485 * auto-inc-dec.c (try_merge): Remove break after return.
3486 * cselib.c (autoinc_split): Likewise.
3487 * explow.c (promote_mode): Likewise.
3488 * fixed-value.c (fixed_arithmetic): Likewise.
3489 * hsa.c (hsa_internal_fn::get_arity): Likewise.
3490 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
3491 * trans-mem.c (get_attrs_for): Likewise.
3492 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
3493 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
3494 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
3495 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
3496 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
3497 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
3498 * config/cris/cris.c (cris_op_str): Likewise.
3499 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
3500 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
3502 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
3504 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
3505 IFN_GOACC_REDUCTION_CODES): New.
3506 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
3507 ifn_goacc_reduction_kind): Use them.
3508 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
3509 of internal functions, when applicable.
3511 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
3513 * config/mips/constraints.md (d): Fix documentation.
3514 * doc/md.texi (Machine Constraints): Update accordingly.
3516 2016-09-27 Richard Biener <rguenther@suse.de>
3518 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
3519 cur_line_info_table initialization ...
3520 (dwarf2out_assembly_start): ... here.
3522 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
3524 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
3525 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
3526 (*thumb2_movhi_vfp): Likewise.
3527 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
3528 template. Expand predicable attribute to mark VMOV.F16 as not
3529 predicable. Add "arch" attribute.
3530 (*thumb2_movhi_fp16): Likewise.
3531 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
3532 (*thumb2_movsi_vfp): Add "arch" attribute.
3534 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
3536 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
3539 2016-09-27 Marek Polacek <polacek@redhat.com>
3541 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
3544 * config/c6x/c6x.h: Adjust fall through comment.
3545 * config/sh/sh.c (final_prescan_insn): Likewise.
3546 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
3547 (visium_expand_fp_cstore): Likewise.
3549 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3551 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
3552 expected by -Wimplicit-fallthrough.
3553 (thumb1_size_rtx_costs): Likewise.
3554 (thumb2_reorg): Likewise.
3555 (tls_mentioned_p): Add "Fall through" comment.
3556 (thumb2_reorg): Likewise.
3557 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
3558 comment form expected by -Wimplicit-fallthrough.
3560 2016-09-27 Martin Liska <mliska@suse.cz>
3562 PR gcov-profile/46266
3563 * input.h (RESERVED_LOCATION_P): New macro.
3564 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
3565 instread of comparison with UNKNOWN_LOCATION.
3567 2016-09-27 Richard Biener <rguenther@suse.de>
3569 PR tree-optimization/77745
3570 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3571 When removing redundant stores make sure to check compatibility
3572 of the TBAA state for downstream accesses.
3573 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
3574 value-numbering virtual operands for store matches.
3576 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
3579 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
3580 movrt patterns. Match them before anything else in the SET case.
3582 2016-09-27 Martin Liska <mliska@suse.cz>
3584 PR gcov-profile/7970
3585 PR gcov-profile/16855
3586 PR gcov-profile/44779
3587 * coverage.c (build_gcov_exit_decl): New function.
3588 (coverage_obj_init): Call the function and generate __gcov_exit
3590 * doc/gcov.texi: Document when __gcov_exit function is called.
3592 2016-09-27 Marek Polacek <polacek@redhat.com>
3595 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
3596 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
3597 -Wno-error instead of -Wno-implicit-fallthrough.
3599 2016-09-27 Martin Liska <mliska@suse.cz>
3602 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
3604 2016-09-27 Jakub Jelinek <jakub@redhat.com>
3606 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
3607 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
3608 comments. Remove break after return.
3609 (ix86_fp_compare_code_to_integer, has_dispatch,
3610 ix86_simd_clone_usable): Remove break after return.
3612 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
3614 PR rlt-optimization/77714
3615 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
3618 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
3621 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
3622 extract_range_from_unary_expr to convert value_range.
3623 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
3624 (extract_range_from_unary_expr): This.
3625 * tree-vrp.h (extract_range_from_unary_expr): Declare.
3627 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
3629 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
3631 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3633 * config/i386/i386.c (ix86_print_operand)
3634 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
3635 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
3636 (epilogue_renumber): Likewise.
3638 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
3641 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
3642 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
3644 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
3646 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
3647 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
3648 is_mm_seq_cst, is_mm_sync): Move to ...
3649 * memmodel.h: This. New file.
3650 * builtins.c: Include memmodel.h.
3651 * optabs.c: Likewise.
3653 * config/aarch64/aarch64.c: Likewise.
3654 * config/alpha/alpha.c: Likewise.
3655 * config/arm/arm.c: Likewise.
3656 * config/i386/i386.c: Likewise.
3657 * config/ia64/ia64.c: Likewise.
3658 * config/mips/mips.c: Likewise.
3659 * config/rs6000/rs6000.c: Likewise.
3660 * config/sparc/sparc.c: Likewise.
3661 * genconditions.c: Include memmodel.h in generated file.
3662 * genemit.c: Likewise.
3663 * genoutput.c: Likewise.
3664 * genpeep.c: Likewise.
3665 * genpreds.c: Likewise.
3666 * genrecog.c: Likewise.
3668 2016-09-26 David Malcolm <dmalcolm@redhat.com>
3670 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
3671 "c" instead when parsing characters. Move operand parsing into...
3672 (read_rtx_operand): ...this new function, renaming "i" to "idx",
3673 and tightening the scope of various locals.
3675 2016-09-26 Liu Hao <lh_mouse@126.com>
3677 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
3679 2016-09-26 Marek Polacek <polacek@redhat.com>
3681 * system.h: Use __has_attribute to check whether the fallthrough
3682 attribute is supported.
3684 2016-09-26 Marek Polacek <polacek@redhat.com>
3686 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
3687 gimple_call_internal_p.
3688 * ipa-split.c (find_return_bb): Likewise.
3689 (execute_split_functions): Likewise.
3690 * omp-low.c (dump_oacc_loop_part): Likewise.
3691 (oacc_loop_xform_head_tail): Likewise.
3692 * predict.c (predict_loops): Likewise.
3693 * sanopt.c (pass_sanopt::execute): Likewise.
3694 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
3695 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
3696 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
3697 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
3698 (expand_ifn_va_arg): Likewise.
3699 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
3700 (optimize_mask_stores): Likewise.
3701 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
3702 (vect_transform_stmt): Likewise.
3703 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
3704 * tsan.c (instrument_memory_accesses): Likewise.
3706 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3707 Alexander Monakov <amonakov@ispras.ru>
3709 * regrename.c (rename_chains): Check
3710 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
3711 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
3712 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3714 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3716 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
3717 (s390_sched_score): Likewise.
3719 2016-09-26 Martin Liska <mliska@suse.cz>
3721 * doc/gcov.texi: Update program output of gcov tool.
3723 2016-09-26 Martin Liska <mliska@suse.cz>
3725 PR gcov-profile/23332
3726 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
3727 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
3728 * value-prof.c (dump_histogram_value): Do not handle
3729 HIST_TYPE_CONST_DELTA.
3730 (stream_in_histogram_value): Likewise.
3731 (gimple_find_values_to_profile): Likewise.
3732 * value-prof.h (enum hist_type): Likewise.
3734 2016-09-26 Martin Liska <mliska@suse.cz>
3736 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
3737 from default sanitize recover values.
3738 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
3739 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
3740 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
3742 * opts.c (finish_options): Do a generic loop over options
3743 that can be recovered.
3744 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
3746 (common_handle_option): Likewise.
3747 * opts.h: Declare can_recover to sanitizer_opts_s.
3749 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
3751 * target.def(elf_flags_numeric): Change documentation to present tense.
3752 * doc/tm.texi: Regenerate.
3754 2016-09-26 Marek Polacek <polacek@redhat.com>
3757 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
3758 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
3759 -Wno-switch-fallthrough.
3760 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
3761 (expand_builtin): Likewise.
3762 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
3763 * convert.c (convert_to_real_1): Likewise.
3764 (convert_to_integer_1): Likewise.
3765 * final.c (output_alternate_entry_point): Likewise.
3766 * genattrtab.c (make_canonical): Likewise.
3767 (write_test_expr): Likewise.
3768 * genpreds.c (validate_exp): Likewise.
3769 * gimple-ssa-strength-reduction.c
3770 (find_candidates_dom_walker::before_dom_children): Likewise.
3771 * godump.c (go_format_type): Likewise.
3772 * reload1.c (elimination_effects): Likewise.
3773 * resource.c (mark_referenced_resources): Likewise.
3774 (mark_set_resources): Likewise.
3775 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
3776 * varasm.c (output_addressed_constants): Likewise.
3778 2016-09-26 Marek Polacek <polacek@redhat.com>
3781 * common.opt (Wimplicit-fallthrough): New option.
3782 * doc/extend.texi: Document statement attributes and the fallthrough
3784 * doc/invoke.texi: Document -Wimplicit-fallthrough.
3785 * gimple.h (gimple_call_internal_p): New function.
3786 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
3787 (struct label_entry): New struct.
3788 (find_label_entry): New function.
3789 (case_label_p): New function.
3790 (collect_fallthrough_labels): New function.
3791 (last_stmt_in_scope): New function.
3792 (should_warn_for_implicit_fallthrough): New function.
3793 (warn_implicit_fallthrough_r): New function.
3794 (maybe_warn_implicit_fallthrough): New function.
3795 (expand_FALLTHROUGH_r): New function.
3796 (expand_FALLTHROUGH): New function.
3797 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
3798 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
3799 (gimplify_label_expr): New function.
3800 (gimplify_case_label_expr): Set location.
3801 (gimplify_expr): Call gimplify_label_expr.
3802 * internal-fn.c (expand_FALLTHROUGH): New function.
3803 * internal-fn.def (FALLTHROUGH): New internal function.
3804 * langhooks.c (lang_GNU_OBJC): New function.
3805 * langhooks.h (lang_GNU_OBJC): Declare.
3806 * system.h (gcc_fallthrough): Define.
3807 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
3808 * tree.h (FALLTHROUGH_LABEL_P): Define.
3810 2016-09-26 Richard Biener <rguenther@suse.de>
3812 * dwarf2out.c (stripattributes): Remove unused function.
3813 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
3814 Push dwarf_split_debug_info handling into init_sections_and_labels.
3815 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
3816 (DEBUG_MACRO_SECTION_FLAGS): Remove.
3817 (debug_macinfo_section_name): New global.
3818 (output_macinfo): Use debug_macinfo_section_name.
3819 (init_sections_and_labels): Split out section and label generation
3820 from dwarf2out_init. Set debug_macinfo_section_name.
3821 (dwarf2out_init): Move text section label generation and emission
3823 (dwarf2out_assembly_start): ... here.
3824 (dwarf2out_finish): Call init_sections_and_labels before DWARF
3827 2016-09-26 Richard Biener <rguenther@suse.de>
3830 * cgraphunit.c (analyze_functions): Before early removing
3831 global vars calls the late_global_decl debug handler mark
3832 the variable as readonly.
3834 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3837 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
3838 (sh_rtx_costs): Handle SET of movt and movrt patterns.
3839 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
3840 declare new overloads.
3841 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
3844 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3846 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
3847 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
3849 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
3851 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
3852 * configure: Regenerate.
3854 2016-09-24 Marek Polacek <polacek@redhat.com>
3857 * doc/invoke.texi: Document -Wbool-operation.
3859 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3861 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
3862 * config/rs6000/rs6000.c (expand_block_compare): New function used by
3863 cmpmemsi pattern to do builtin expansion of memcmp ().
3864 (compute_current_alignment): Add helper function for
3865 expand_block_compare used to compute alignment as the compare proceeds.
3866 (select_block_compare_mode): Used by expand_block_compare to select
3867 the mode used for reading the next chunk of bytes in the compare.
3868 (do_load_for_compare): Used by expand_block_compare to emit the load
3869 insns for the compare.
3870 (rs6000_emit_dot_insn): Moved this function to avoid a forward
3871 reference from expand_block_compare ().
3872 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
3873 prototype for this function.
3874 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
3875 target option for controlling how much code inline expansion of
3876 memcmp() will be allowed to generate.
3878 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3880 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
3881 hook_bool_mode_false, hook_bool_mode_true,
3882 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
3883 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
3884 hook_bool_const_rtx_insn_const_rtx_insn_true,
3885 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
3886 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
3887 hook_bool_const_tree_hwi_hwi_const_tree_false,
3888 hook_bool_const_tree_hwi_hwi_const_tree_true,
3889 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
3890 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
3891 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
3892 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
3893 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
3894 hook_bool_const_tree_true, hook_bool_tree_tree_false,
3895 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
3896 hook_bool_rtx_insn_true, hook_bool_rtx_false,
3897 hook_bool_uintp_uintp_false,
3898 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
3899 hook_rtx_tree_int_null, hook_uint_mode_0,
3900 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
3901 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
3902 hook_constcharptr_const_rtx_insn_null,
3903 hook_constcharptr_const_tree_const_tree_null,
3904 hook_constcharptr_int_const_tree_null,
3905 hook_constcharptr_int_const_tree_const_tree_null,
3906 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
3907 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
3908 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
3910 * vec.h (vNULL): Extend comment to say = vNULL initialization
3911 isn't needed for static vars.
3913 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
3914 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
3915 = vNULL initialization of file scope vec.
3916 * passes.c (pass_tab, enabled_pass_uid_range_tab,
3917 disabled_pass_uid_range_tab): Likewise.
3918 * haifa-sched.c (sched_luids, h_i_d): Likewise.
3919 * tree-chkp-opt.c (check_infos): Likewise.
3920 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
3922 * vec.h (vnull::operator vec): Add constexpr keyword for
3925 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
3927 PR tree-optimization/77654
3928 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
3929 to duplicate_ssa_name_ptr_info.
3931 2016-09-23 David Malcolm <dmalcolm@redhat.com>
3933 PR preprocessor/77672
3934 * input.c (selftest::test_lexer_string_locations_simple): Update
3935 test to expect location information of the terminator character
3936 at the location of the final closing quote.
3937 (selftest::test_lexer_string_locations_hex): Likewise.
3938 (selftest::test_lexer_string_locations_oct): Likewise.
3939 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
3940 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
3941 (selftest::test_lexer_string_locations_ucn4): Likewise.
3942 (selftest::test_lexer_string_locations_ucn8): Likewise.
3943 (selftest::test_lexer_string_locations_u8): Likewise.
3944 (selftest::test_lexer_string_locations_utf8_source): Likewise.
3945 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
3946 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
3947 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
3948 (selftest::test_lexer_string_locations_macro): Likewise.
3949 (selftest::test_lexer_string_locations_long_line): Likewise.
3951 2016-09-23 Richard Biener <rguenther@suse.de>
3953 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
3954 virtual definition to virtual use if the call devirtualizes
3955 to a const or pure function.
3956 (visit_use): Also visit calls we can devirtualize to a
3957 const or pure function.
3959 2016-09-23 Richard Biener <rguenther@suse.de>
3961 PR tree-optimization/77697
3962 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
3963 signal error if we have sth ternary or unhandled.
3965 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3967 * config/arm/arm_neon.h (vabd_f16): New.
4001 (vcvt_f16_s16): New.
4002 (vcvt_f16_u16): New.
4003 (vcvt_s16_f16): New.
4004 (vcvt_u16_f16): New.
4005 (vcvtq_f16_s16): New.
4006 (vcvtq_f16_u16): New.
4007 (vcvtq_s16_f16): New.
4008 (vcvtq_u16_f16): New.
4009 (vcvta_s16_f16): New.
4010 (vcvta_u16_f16): New.
4011 (vcvtaq_s16_f16): New.
4012 (vcvtaq_u16_f16): New.
4013 (vcvtm_s16_f16): New.
4014 (vcvtm_u16_f16): New.
4015 (vcvtmq_s16_f16): New.
4016 (vcvtmq_u16_f16): New.
4017 (vcvtn_s16_f16): New.
4018 (vcvtn_u16_f16): New.
4019 (vcvtnq_s16_f16): New.
4020 (vcvtnq_u16_f16): New.
4021 (vcvtp_s16_f16): New.
4022 (vcvtp_u16_f16): New.
4023 (vcvtpq_s16_f16): New.
4024 (vcvtpq_u16_f16): New.
4025 (vcvt_n_f16_s16): New.
4026 (vcvt_n_f16_u16): New.
4027 (vcvtq_n_f16_s16): New.
4028 (vcvtq_n_f16_u16): New.
4029 (vcvt_n_s16_f16): New.
4030 (vcvt_n_u16_f16): New.
4031 (vcvtq_n_s16_f16): New.
4032 (vcvtq_n_u16_f16): New.
4046 (vmul_lane_f16): New.
4049 (vmulq_lane_f16): New.
4071 (vrsqrteq_f16): New.
4075 (vrsqrtsq_f16): New.
4079 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
4081 * config.gcc (extra_headers): Add arm_fp16.h
4082 * config/arm/arm_fp16.h: New.
4083 * config/arm/arm_neon.h: Include "arm_fp16.h".
4085 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
4087 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
4089 (vmulf): New (v8hf, v4hf variants).
4090 (vfma): New (v8hf, v4hf variants).
4091 (vfms): New (v8hf, v4hf variants).
4092 (vsub): New (v8hf, v4hf variants).
4093 (vcage): New (v8hf, v4hf variants).
4094 (vcagt): New (v8hf, v4hf variants).
4095 (vcale): New (v8hf, v4hf variants).
4096 (vcalt): New (v8hf, v4hf variants).
4097 (vceq): New (v8hf, v4hf variants).
4098 (vcgt): New (v8hf, v4hf variants).
4099 (vcge): New (v8hf, v4hf variants).
4100 (vcle): New (v8hf, v4hf variants).
4101 (vclt): New (v8hf, v4hf variants).
4102 (vceqz): New (v8hf, v4hf variants).
4103 (vcgez): New (v8hf, v4hf variants).
4104 (vcgtz): New (v8hf, v4hf variants).
4105 (vcltz): New (v8hf, v4hf variants).
4106 (vclez): New (v8hf, v4hf variants).
4107 (vabd): New (v8hf, v4hf variants).
4108 (vmaxf): New (v8hf, v4hf variants).
4109 (vmaxnm): New (v8hf, v4hf variants).
4110 (vminf): New (v8hf, v4hf variants).
4111 (vminnm): New (v8hf, v4hf variants).
4112 (vpmaxf): New (v4hf variant).
4113 (vpminf): New (v4hf variant).
4114 (vpadd): New (v4hf variant).
4115 (vrecps): New (v8hf, v4hf variants).
4116 (vrsqrts): New (v8hf, v4hf variants).
4117 (vabs): New (v8hf, v4hf variants).
4118 (vneg): New (v8hf, v4hf variants).
4119 (vrecpe): New (v8hf, v4hf variants).
4120 (vrnd): New (v8hf, v4hf variants).
4121 (vrnda): New (v8hf, v4hf variants).
4122 (vrndm): New (v8hf, v4hf variants).
4123 (vrndn): New (v8hf, v4hf variants).
4124 (vrndp): New (v8hf, v4hf variants).
4125 (vrndx): New (v8hf, v4hf variants).
4126 (vrsqrte): New (v8hf, v4hf variants).
4127 (vmul_lane): Add v4hf and v8hf variants.
4128 (vmul_n): Add v4hf and v8hf variants.
4129 (vext): New (v8hf, v4hf variants).
4130 (vcvts): New (v8hi, v4hi variants).
4131 (vcvts): New (v8hf, v4hf variants).
4132 (vcvtu): New (v8hi, v4hi variants).
4133 (vcvtu): New (v8hf, v4hf variants).
4134 (vcvts_n): New (v8hf, v4hf variants).
4135 (vcvtu_n): New (v8hi, v4hi variants).
4136 (vcvts_n): New (v8hi, v4hi variants).
4137 (vcvtu_n): New (v8hf, v4hf variants).
4138 (vbsl): New (v8hf, v4hf variants).
4139 (vcvtas): New (v8hf, v4hf variants).
4140 (vcvtau): New (v8hf, v4hf variants).
4141 (vcvtms): New (v8hf, v4hf variants).
4142 (vcvtmu): New (v8hf, v4hf variants).
4143 (vcvtns): New (v8hf, v4hf variants).
4144 (vcvtnu): New (v8hf, v4hf variants).
4145 (vcvtps): New (v8hf, v4hf variants).
4146 (vcvtpu): New (v8hf, v4hf variants).
4148 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
4150 * config/arm/arm-builtins.c (hf_UP): New.
4152 (vfp_builtin_data): New. Update comment.
4153 (enum arm_builtins): Include "arm_vfp_builtins.def".
4154 (ARM_BUILTIN_VFP_PATTERN_START): New.
4155 (arm_init_vfp_builtins): New.
4156 (arm_init_builtins): Add arm_init_vfp_builtins.
4157 (arm_expand_vfp_builtin): New.
4158 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
4160 * config/arm/arm_vfp_builtins.def: New file.
4161 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
4162 (arm-builtins.o): Likewise.
4164 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4167 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
4168 from constant while creating value range.
4170 2016-09-23 Renlin Li <renlin.li@arm.com>
4172 * ira.c (ira): Move ira_use_lra_p initialization code to ...
4173 (ira_init_once): Here.
4175 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
4176 Jakub Jelinek <jakub@redhat.com>
4178 * hooks.h (hook_uint_uintp_false): Rename to...
4179 (hook_bool_uint_uintp_false): ... this.
4180 * hooks.c (hook_uint_uintp_false): Rename to...
4181 (hook_bool_uint_uintp_false): ... this.
4182 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
4183 instead of hook_uint_uintp_false.
4185 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
4187 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
4188 (arm_init_builtins): Move body of a loop to the standalone
4189 function arm_init_neon_builtin.
4190 (arm_expand_neon_builtin_1): New. Update comment. Function body
4191 moved from arm_neon_builtin with some white-space fixes.
4192 (arm_expand_neon_builtin): Move code into the standalone function
4193 arm_expand_neon_builtin_1.
4195 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
4197 * config/arm/iterators.md (VCVTHI): New.
4198 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
4202 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
4203 (V_HALF): Add V4HF. Fix white-space.
4204 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
4205 (V_s_elem): Likewise.
4206 (V_sz_elem): Fix white-space.
4207 (V_elem_ch): Likewise.
4209 (scalar_mul_constraint): Add V8HF and V4HF.
4210 (Is_float_mode): Fix white-space.
4211 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
4212 (q): Add HF. Fix white-space.
4215 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
4216 (neon_vfm_lane_as): New.
4217 * config/arm/neon.md (add<mode>3_fp16): New.
4218 (sub<mode>3_fp16): New.
4219 (mul<mode>3add<mode>_neon): New.
4220 (fma<VH:mode>4_intrinsic): New.
4221 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
4222 (fmsub<VH:mode>4_intrinsic): New.
4223 (<absneg_str><mode>2): New.
4224 (neon_v<absneg_str><mode>): New.
4225 (neon_v<fp16_rnd_str><mode>): New.
4226 (neon_vrsqrte<mode>): New.
4227 (neon_vpaddv4hf): New.
4228 (neon_vadd<mode>): New.
4229 (neon_vsub<mode>): New.
4230 (neon_vmulf<mode>): New.
4231 (neon_vfma<VH:mode>): New.
4232 (neon_vfms<VH:mode>): New.
4233 (neon_vc<cmp_op><mode>): New.
4234 (neon_vc<cmp_op><mode>_fp16insn): New
4235 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
4236 (neon_vca<cmp_op><mode>): New.
4237 (neon_vca<cmp_op><mode>_fp16insn): New.
4238 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
4239 (neon_vc<cmp_op>z<mode>): New.
4240 (neon_vabd<mode>): New.
4241 (neon_v<maxmin>f<mode>): New.
4242 (neon_vp<maxmin>fv4hf: New.
4243 (neon_<fmaxmin_op><mode>): New.
4244 (neon_vrecps<mode>): New.
4245 (neon_vrsqrts<mode>): New.
4246 (neon_vrecpe<mode>): New (VH variant).
4247 (neon_vdup_lane<mode>_internal): New.
4248 (neon_vdup_lane<mode>): New.
4249 (neon_vcvt<sup><mode>): New (VCVTHI variant).
4250 (neon_vcvt<sup><mode>): New (VH variant).
4251 (neon_vcvt<sup>_n<mode>): New (VH variant).
4252 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
4253 (neon_vcvt<vcvth_op><sup><mode>): New.
4254 (neon_vmul_lane<mode>): New.
4255 (neon_vmul_n<mode>): New.
4256 * config/arm/unspecs.md (UNSPEC_VCALE): New
4257 (UNSPEC_VCALT): New.
4258 (UNSPEC_VFMA_LANE): New.
4259 (UNSPECS_VFMS_LANE): New.
4261 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4263 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
4264 ("*extzv<mode><clobbercc_or_nocc>"):
4265 Correct a typo in a comment.
4267 ("*insv<mode>_zEC12", "*insv<mode>_z10")
4268 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
4269 ("*insv<mode>_zEC12_appendbitsleft")
4270 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
4271 ("*insv<mode>_z10_appendbitsleft"): Ditto.
4272 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
4273 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
4274 Provide pattern with operands switched.
4275 ("*pre_z10_extv<mode>"):
4276 Use new subst patterns.
4277 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
4278 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
4279 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
4280 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
4281 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
4282 ("*<risbg_n>_sidi_ior_and_lshiftrt")
4283 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
4285 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
4286 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
4287 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
4289 ("SINT"): New mode_iterator with SI, HI, QI.
4290 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
4291 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
4294 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4296 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
4297 new interface of s390_contiguous_bitmask_p.
4298 ("contiguous_bitmask_nowrap_operand"): New predicate.
4299 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
4300 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
4301 of s390_contiguous_bitmask_p.
4302 ("NxxDw"): Rename NxxDq constraint to NxxDw.
4303 ("NxxSw"): New constraint.
4304 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
4305 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
4307 (s390_contiguous_bitmask_nowrap_p): Export.
4308 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
4309 former s390_contiguous_bitmask_p.
4310 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
4311 detect contiguous bit ranges with wraparound. Change signature to
4312 return START and END position instead of POS and LENGTH.
4313 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
4314 ranges with wraparound.
4315 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
4316 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
4317 Adapt to new signature of s390_contiguous_bitmask_p.
4319 2016-09-23 Bin Cheng <bin.cheng@arm.com>
4321 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
4322 (create_intersect_range_checks): New.
4323 (vect_create_cond_for_alias_checks): Call above function.
4325 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
4327 * config/arm/iterators.md (Code iterators): Fix some white-space
4331 (FCVT): Moved from vfp.md.
4332 (VCVT_HF_US_N): New.
4333 (VCVT_SI_US_N): New.
4338 (FCVTI32typename): Moved from vfp.md.
4339 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
4340 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
4341 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
4342 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
4343 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
4345 (fp16_rnd_str): New.
4346 (fp16_rnd_insn): New.
4347 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
4348 (UNSPEC_VCVT_HF_U_N): New.
4349 (UNSPEC_VCVT_SI_S_N): New.
4350 (UNSPEC_VCVT_SI_U_N): New.
4351 (UNSPEC_VCVTH_S): New.
4352 (UNSPEC_VCVTH_U): New.
4353 (UNSPEC_VCVTA_S): New.
4354 (UNSPEC_VCVTA_U): New.
4355 (UNSPEC_VCVTM_S): New.
4356 (UNSPEC_VCVTM_U): New.
4357 (UNSPEC_VCVTN_S): New.
4358 (UNSPEC_VCVTN_U): New.
4359 (UNSPEC_VCVTP_S): New.
4360 (UNSPEC_VCVTP_U): New.
4361 (UNSPEC_VCVTP_S): New.
4362 (UNSPEC_VCVTP_U): New.
4364 (UNSPEC_VRNDA): New.
4365 (UNSPEC_VRNDI): New.
4366 (UNSPEC_VRNDM): New.
4367 (UNSPEC_VRNDN): New.
4368 (UNSPEC_VRNDP): New.
4369 (UNSPEC_VRNDX): New.
4370 * config/arm/vfp.md (<absneg_str>hf2): New.
4372 (neon_v<fp16_rnd_str>hf): New.
4373 (neon_vrndihf): New.
4378 (*mulsf3neghf_vfp): New.
4379 (*negmulhf3_vfp): New.
4380 (*mulsf3addhf_vfp): New.
4381 (*mulhf3subhf_vfp): New.
4382 (*mulhf3neghfaddhf_vfp): New.
4383 (*mulhf3neghfsubhf_vfp): New.
4386 (fmsubhf4_fp16): New.
4390 (neon_vsqrthf): New.
4391 (neon_vrsqrtshf): New.
4392 (FCVT): Move to iterators.md.
4393 (FCVTI32typename): Likewise.
4394 (neon_vcvth<sup>hf): New.
4395 (neon_vcvth<sup>si): New.
4396 (neon_vcvth<sup>_nhf_unspec): New.
4397 (neon_vcvth<sup>_nhf): New.
4398 (neon_vcvth<sup>_nsi_unspec): New.
4399 (neon_vcvth<sup>_nsi): New.
4400 (neon_vcvt<vcvth_op>h<sup>si): New.
4401 (neon_<fmaxmin_op>hf): New.
4403 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4405 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
4406 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
4407 ("*insv<mode>_zEC12_appendbitsleft")
4408 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
4409 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
4411 2016-09-23 Jakub Jelinek <jakub@redhat.com>
4413 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
4414 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
4415 construct values without normalization.
4416 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
4417 static local lhs_ops to vNULL.
4419 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
4420 Jiong Wang <jiong.wang@arm.com>
4422 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
4423 available when FP16 instructions are available.
4424 (output_move_vfp): Add support for 16-bit data moves.
4425 (arm_validize_comparison): Fix some white-space. Support HFmode
4426 by conversion to SFmode.
4427 * config/arm/arm.md (truncdfhf2): Fix a comment.
4428 (extendhfdf2): Likewise.
4430 (movsicc): Fix some white-space.
4432 (movsfcc): Fix some white-space.
4434 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
4435 instructions are available.
4436 (*thumb2_movhi_vfp): Likewise.
4437 (*arm_movhi_fp16): New.
4438 (*thumb2_movhi_fp16): New.
4439 (*movhf_vfp_fp16): New.
4440 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
4441 (*movhf_vfp): Likewise.
4442 (extendhfsf2): Enable when VFP FP16 instructions are available.
4443 (truncsfhf2): Enable when VFP FP16 instructions are available.
4445 2016-09-23 Martin Liska <mliska@suse.cz>
4447 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
4449 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
4451 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
4453 (arm_evpc_neon_vtrn): Likewise.
4454 (arm_evpc_neon_vrev): Likewise.
4455 (arm_evpc_neon_vext): Likewise.
4456 * config/arm/arm_neon.h (vbsl_f16): New.
4460 (vdup_lane_f16): New.
4461 (vdupq_lane_f16): New.
4474 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
4475 (vdup_lane): New (v8hf, v4hf variants).
4476 (vext): New (v8hf, v4hf variants).
4477 (vbsl): New (v8hf, v4hf variants).
4478 * config/arm/iterators.md (VDQWH): New.
4480 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
4481 (Scalar_mul_8_16): Fix white-space.
4482 (Is_d_reg): Add V4HF and V8HF.
4483 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
4484 (neon_vdup_lane<mode>): New.
4485 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
4486 (*neon_vtrn<mode>_insn): Likewise.
4487 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
4488 (*neon_vzip<mode>_insn): Likewise
4489 (neon_vuzp<mode>_internal): Likewise.
4490 (*neon_vuzp<mode>_insn): Likewise
4491 * config/arm/vec-common.md (vec_perm_const<mode>): New.
4493 2016-09-23 Jiong Wang <jiong.wang@arm.com>
4494 Matthew Wahab <matthew.wahab@arm.com>
4496 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
4497 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
4498 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
4499 available. Also fix some white-space.
4500 * config/arm/vfp.md (*arm_movhi_vfp): New.
4501 (*thumb2_movhi_vfp): New.
4503 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
4505 * config/arm/arm-c.c (arm_cpu_builtins): Define
4506 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
4507 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
4509 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
4511 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
4512 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
4513 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
4514 arm_v8_2a_fp16_neon_hw.
4515 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
4518 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
4520 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
4521 arm_fp16_alternative_ok and arm_fp16_none_ok.
4523 2016-09-23 Martin Liska <mliska@suse.cz>
4525 * ipa-icf.c (sem_variable::merge): Replace adress with address.
4527 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
4529 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
4531 ("armv8.2-a+fp16"): New.
4532 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
4533 (FL2_FP16INST): New.
4534 (FL2_FOR_ARCH8_2A): New.
4535 * config/arm/arm-tables.opt: Regenerate.
4536 * config/arm/arm.c (arm_arch8_2): New.
4537 (arm_fp16_inst): New.
4538 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
4539 for incompatible fp16-format settings.
4540 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
4541 (TARGET_NEON_FP16INST): New.
4542 (arm_arch8_2): Declare.
4543 (arm_fp16_inst): Declare.
4544 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
4545 march=armv8.2-a and march=armv8.2-a+fp16.
4546 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
4548 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
4549 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
4551 2016-09-23 Martin Liska <mliska@suse.cz>
4553 * doc/extend.texi: Remove fused-madd from i386 target options.
4555 2016-09-23 Martin Liska <mliska@suse.cz>
4557 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
4560 2016-09-23 Martin Liska <mliska@suse.cz>
4562 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
4565 2016-09-23 Martin Liska <mliska@suse.cz>
4568 * config/i386/i386.c (ix86_option_override_internal): Change
4569 signature and return false when there's an error related to
4571 (release_options_strings): New function.
4572 (ix86_valid_target_attribute_tree): Call the function.
4574 2016-09-23 Jakub Jelinek <jakub@redhat.com>
4576 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
4577 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
4578 (gen_hsa_ctor_assignment): Likewise.
4579 * print-tree.c (print_node): Likewise.
4580 * tree-dump.c (dequeue_and_dump): Likewise.
4581 * tree-sra.c (sra_modify_constructor_assign): Likewise.
4582 * expr.c (store_constructor): Likewise.
4583 * fold-const.c (operand_equal_p): Likewise.
4584 * tree-pretty-print.c (dump_generic_node): Likewise.
4585 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
4586 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
4588 2016-09-23 Richard Biener <rguenther@suse.de>
4590 * hooks.h (hook_uint_uintp_false): Declare.
4592 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4594 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
4595 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
4597 2016-09-22 Martin Sebor <msebor@redhat.com>
4600 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
4601 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
4602 (target_int_min): Correct computation.
4603 (format_integer): Use long long as the argument for the ll length
4605 (format_floating): Use target_int_max().
4606 (get_string_length): Same.
4607 (format_string): Avoid setting the bounded flag for strings
4609 (try_substitute_return_value): Avoid setting range info when
4610 the result isn't bounded.
4611 * varasm.c (assemble_name): Increase buffer size.
4613 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
4614 Terry Guo <terry.guo@arm.com>
4616 * target.def (elf_flags_numeric): New target hook.
4617 * targhooks.h (default_asm_elf_flags_numeric): New.
4618 * varasm.c (default_asm_elf_flags_numeric): New.
4619 (default_elf_asm_named_section): Use new target hook.
4620 * config/arm/arm.opt (mpure-code): New.
4621 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
4622 * config/arm/arm.c (arm_asm_init_sections): Add section
4623 attribute to default text section if -mpure-code.
4624 (arm_option_check_internal): Diagnose use of option with
4625 non supported targets and/or options.
4626 (arm_asm_elf_flags_numeric): New.
4627 (arm_function_section): New.
4628 (arm_elf_section_type_flags): New.
4629 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
4631 * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
4632 * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
4634 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
4636 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
4638 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4640 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
4641 * rtl.h: Adjust prototype.
4643 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4645 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
4646 (prev_active_insn): Likewise.
4647 (active_insn_p): Likewise.
4648 * rtl.h: Adjust prototypes.
4649 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
4650 * config/arc/arc.md: Likewise.
4651 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
4652 (branch_needs_nop_p): Likewise.
4653 (use_skip_p): Likewise.
4654 * config/sh/sh.c (gen_block_redirect): Likewise.
4655 (split_branches): Likewise.
4656 * reorg.c (optimize_skip): Likewise.
4657 (fill_simple_delay_slots): Likewise.
4658 (fill_slots_from_thread): Likewise.
4659 (relax_delay_slots): Likewise.
4660 * resource.c (mark_target_live_regs): Likewise.
4662 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4664 * config/cris/cris.c (cris_asm_output_case_end): Change argument
4666 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
4667 (prev_nonnote_nondebug_insn): Likewise.
4668 * config/cris/cris-protos.h: Adjust prototype.
4670 * jump.c (rtx_renumbered_equal_p): Adjust.
4672 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4674 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
4675 * rtl.h: Adjust prototype.
4676 * config/sh/sh.md: Adjust.
4677 * dwarf2out.c (add_var_loc_to_decl): Likewise.
4679 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4681 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
4682 (prev_nondebug_insn): Likewise.
4683 * loop-doloop.c (doloop_condition_get): Likewise.
4684 * rtl.h: Adjust prototype.
4685 * cfgloop.h: Likewise.
4687 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4689 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
4690 (prev_nonnote_insn): Likewise.
4691 * jump.c (reversed_comparison_code_parts): Likewise.
4692 (reversed_comparison): Likewise.
4693 * rtl.h: Adjust prototypes.
4694 * config/arc/arc.md: Adjust.
4695 * cse.c (find_comparison_args): Likewise.
4696 * reorg.c (redundant_insn): Change return type to rtx_insn *.
4697 (fix_reg_dead_note): Change argument type to rtx_insn *.
4698 (delete_prior_computation): Likewise.
4699 (delete_computation): Likewise.
4700 (fill_slots_from_thread): Adjust.
4701 (relax_delay_slots): Likewise.
4702 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4703 (simplify_relational_operation_1): Likewise.
4704 (simplify_ternary_operation): Likewise.
4706 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4708 * config/arc/arc-protos.h (arc_label_align): Change type of
4709 variables from rtx to rtx_insn *.
4710 * config/arc/arc.c (arc_label_align): Likewise.
4711 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
4712 * config/bfin/bfin.c (workaround_speculation): Likewise.
4713 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
4714 (find_last_same_clock): Likewise.
4715 (reorg_split_calls): Likewise.
4716 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
4717 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
4718 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
4719 (same_cmp_following_p): Likewise.
4720 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
4721 (same_cmp_following_p): Likwise.
4722 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
4723 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
4724 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
4725 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
4726 (rl78_alloc_physical_registers_cmp): Likewise.
4727 (rl78_alloc_physical_registers_umul): Likewise.
4728 (rl78_calculate_death_notes): Likewise.
4729 * config/s390/s390-protos.h (s390_label_align): Likewise.
4730 * config/s390/s390.c (s390_label_align): Likewise.
4731 * config/sh/sh.c (barrier_align): Likewise.
4732 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
4733 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
4734 (emit_cbcond_nop): Likewise.
4736 2016-09-22 Martin Liska <mliska@suse.cz>
4739 * ipa-icf.c (sem_variable::merge): Yield merge operation if
4740 alias address matters, not necessarily address of original.
4742 2016-09-22 Richard Biener <rguenther@suse.de>
4745 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
4748 2016-09-22 Richard Biener <rguenther@suse.de>
4751 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
4752 from constant folding results.
4753 (gimple_resimplify2): Likewise.
4754 (gimple_resimplify3): Likewise.
4756 2016-09-22 Richard Biener <rguenther@suse.de>
4759 * expr.c (expand_expr_real_1): Guard array access against negative
4762 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4764 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
4766 (format_floating): Likewise.
4768 2016-09-22 Jakub Jelinek <jakub@redhat.com>
4771 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
4772 for all IFN_GOMP_SIMD_* internal fns, not just for
4773 IFN_GOMP_SIMD_ORDERED_*.
4775 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4778 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
4779 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
4780 instructions when you want to invert the test.
4781 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
4782 correct order for XXSEL.
4783 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
4784 for using XSCMP{EQ,GT,GE}DP.
4786 2016-09-21 David Malcolm <dmalcolm@redhat.com>
4788 * genconstants.c (main): Introduce noop_reader and convert call
4789 to read_md_files to a method call.
4790 * genenums.c (main): Likewise.
4791 * genmddeps.c (main): Likewise.
4792 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
4793 rtx_reader_ptr->get_top_level_filename ().
4794 (write_tm_preds_h): Likewise.
4795 (write_insn_preds_c): Likewise.
4796 * gensupport.c (class gen_reader): New subclass of rtx_reader.
4797 (rtx_handle_directive): Convert to...
4798 (gen_reader::handle_unknown_directive): ...this.
4799 (init_rtx_reader_args_cb): Convert return type from bool to
4800 rtx_reader *. Create a gen_reader instance, using it for the
4801 call to read_md_files. Return it if no errors occur.
4802 (init_rtx_reader_args): Convert return type from bool to
4804 * gensupport.h (init_rtx_reader_args_cb): Likewise.
4805 (init_rtx_reader_args_cb): Likewise.
4806 * read-md.c (struct file_name_list): Move to class rtx_reader.
4807 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
4808 (read_md_filename): Delete in favor of
4809 rtx_reader::m_read_md_filename.
4810 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
4811 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
4812 (base_dir): Delete in favor of rtx_reader::m_base_dir.
4813 (first_dir_md_include): Delete in favor of
4814 rtx_reader::m_first_dir_md_include.
4815 (last_dir_md_include_ptr): Delete in favor of
4816 rtx_reader::m_last_dir_md_include_ptr.
4817 (max_include_len): Delete.
4818 (rtx_reader_ptr): New.
4819 (fatal_with_file_and_line): Use get_filename and get_lineno
4820 accessors of rtx_reader_ptr.
4821 (require_char_ws): Likewise.
4822 (rtx_reader::read_char): New method, based on ::read_char.
4823 (rtx_reader::unread_char): New method, based on ::unread_char.
4824 (read_escape): Use get_filename and get_lineno accessors of
4826 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
4827 (read_string): Use get_filename and get_lineno accessors of
4829 (rtx_reader::rtx_reader): New ctor.
4830 (rtx_reader::~rtx_reader): New dtor.
4831 (handle_include): Convert from a function to...
4832 (rtx_reader::handle_include): ...this method, converting
4833 handle_directive from a callback to a virtual function.
4834 (handle_file): Likewise, converting to...
4835 (rtx_reader::handle_file): ...this method.
4836 (handle_toplevel_file): Likewise, converting to...
4837 (rtx_reader::handle_toplevel_file): ...this method.
4838 (rtx_reader::get_current_location): New method.
4839 (parse_include): Convert from a function to...
4840 (rtx_reader::add_include_path): ...this method, dropping redundant
4841 update to unused max_include_len.
4842 (read_md_files): Convert from a function to...
4843 (rtx_reader::read_md_files): ...this method, converting
4844 handle_directive from a callback to a virtual function.
4845 (noop_reader::handle_unknown_directive): New method.
4846 * read-md.h (directive_handler_t): Delete this typedef.
4848 (read_md_file): Delete.
4849 (read_md_lineno): Delete.
4850 (read_md_filename): Delete.
4851 (class rtx_reader): New class.
4852 (rtx_reader_ptr): New decl.
4853 (class noop_reader): New subclass of rtx_reader.
4854 (read_char): Reimplement in terms of rtx_reader::read_char.
4855 (unread_char): Reimplement in terms of rtx_reader::unread_char.
4856 (read_md_files): Delete.
4857 * read-rtl.c (read_rtx_code): Update for deletion of globals
4858 read_md_filename and read_md_lineno.
4860 2016-09-21 Jason Merrill <jason@redhat.com>
4862 * input.h (from_macro_definition_at): New.
4864 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4866 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
4868 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4870 PR tree-optimization/77550
4871 * tree-vect-stmts.c (create_array_ref): Change parameters.
4872 (get_group_alias_ptr_type): New function.
4873 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
4875 2016-09-21 Marek Polacek <polacek@redhat.com>
4877 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
4878 Add falls through comment.
4880 2016-09-21 Richard Biener <rguenther@suse.de>
4882 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
4883 (replace_child): Likewise.
4884 (remove_child_TAG): Adjust.
4885 (move_marked_base_types): Likewise.
4886 (prune_unused_types_prune): Clear die_sib of removed children.
4888 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
4891 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
4892 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
4894 2016-09-21 Richard Biener <rguenther@suse.de>
4896 PR tree-optimization/77648
4897 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
4899 (make_transitive_closure_constraints): Adjust comment.
4900 (make_any_offset_constraints): New function.
4901 (handle_rhs_call): Make sure to first expand a pointer to all
4902 subfields before transitively closing it.
4903 (handle_const_call): Likewise. Properly expand returned
4905 (handle_pure_call): Likewise.
4907 2016-09-21 Richard Biener <rguenther@suse.de>
4908 Jakub Jelinek <jakub@redhat.com>
4910 PR tree-optimization/77621
4911 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
4912 group at non-vectorizable stmts.
4914 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4916 PR tree-optimization/72835
4917 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
4918 (make_new_ssa_for_all_defs): Likewise.
4919 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
4921 2016-09-20 Martin Sebor <msebor@redhat.com>
4924 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
4925 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
4926 * config/linux.c (gnu_libc_printf_pointer_format): New function.
4927 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
4928 * config/sol2.c (solaris_printf_pointer_format): New function.
4929 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
4931 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
4932 * doc/tm.texi: Regenerate.
4933 * gimple-fold.h (get_range_strlen): New function.
4934 (get_maxval_strlen): Declare existing function.
4935 * gimple-fold.c (get_range_strlen): Add arguments and compute both
4936 maximum and minimum.
4937 (get_range_strlen): Define overload.
4938 (get_maxval_strlen): Adjust.
4939 * gimple-ssa-sprintf.c: New file and pass.
4940 * passes.def (pass_sprintf_length): Add new pass.
4941 * targhooks.h (default_printf_pointer_format): Declare new function.
4942 (gnu_libc_printf_pointer_format): Same.
4943 (solaris_libc_printf_pointer_format): Same.
4944 * targhooks.c (default_printf_pointer_format): Define new function.
4945 * tree-pass.h (make_pass_sprintf_length): Declare new function.
4946 * print-tree.c: Increase buffer size.
4948 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4950 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
4952 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4954 * common.opt: New option -fipa-vrp.
4955 * ipa-cp.c (ipa_get_vr_lat): New.
4956 (ipcp_vr_lattice::print): Likewise.
4957 (print_all_lattices): Call ipcp_vr_lattice::print.
4958 (ipcp_vr_lattice::meet_with): New.
4959 (ipcp_vr_lattice::meet_with_1): Likewise.
4960 (ipcp_vr_lattice::top_p): Likewise.
4961 (ipcp_vr_lattice::bottom_p): Likewsie.
4962 (ipcp_vr_lattice::set_to_bottom): Likewise.
4963 (set_all_contains_variable): Call VR set_to_bottom.
4964 (initialize_node_lattices): Init VR lattices.
4965 (propagate_vr_accross_jump_function): New.
4966 (propagate_constants_accross_call): Call
4967 propagate_vr_accross_jump_function.
4968 (ipcp_store_vr_results): New.
4969 (ipcp_driver): Handle VR.
4970 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
4971 (ipa_set_jf_unknown): Likewise.
4972 (ipa_compute_jump_functions_for_edge): Likewise.
4973 (ipa_node_params_t::duplicate): Likewise.
4974 (ipa_write_jump_function): Likewise.
4975 (ipa_read_jump_function): Likewise.
4976 (write_ipcp_transformation_info): Likewise.
4977 (read_ipcp_transformation_info): Likewise.
4978 (ipcp_update_vr): New.
4979 (ipcp_transform_function): Handle VR.
4980 * ipa-prop.h (struct ipa_vr): New.
4981 * cgraph.c: Include tree-vrp.h.
4982 * cgraphunit.c: Likewise.
4983 * ipa-utils.c: Likewise.
4986 * toplev.c: Likewise.
4987 * ipa-devirt.c: Likewise.
4988 * ipa-inline-transform.c: Likewise.
4989 * ipa-inline.c: Likewise.
4990 * ipa-profile.c: Likewise.
4992 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4994 * doc/invoke.texi: Document -fdump-tree-evrp.
4995 * passes.def: Define new pass_early_vrp.
4996 * timevar.def: Define new TV_TREE_EARLY_VRP.
4997 * tree-pass.h (make_pass_early_vrp): New.
4998 * tree-ssa-propagate.c: Make replace_uses_in non static.
4999 * tree-ssa-propagate.h: Export replace_uses_in.
5000 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
5001 (extract_range_from_assert): Factor out
5002 extract_range_for_var_from_comparison_expr.
5003 (vrp_initialize_lattice): New.
5004 (vrp_initialize): Factor out vrp_initialize_lattice.
5005 (vrp_valueize): Fix it to reject complex value ranges.
5006 (vrp_free_lattice): New.
5007 (evrp_dom_walker::before_dom_children): Likewise.
5008 (evrp_dom_walker::after_dom_children): Likewise.
5009 (evrp_dom_walker::push_value_range): Likewise.
5010 (evrp_dom_walker::pop_value_range): Likewise.
5011 (execute_early_vrp): Likewise.
5012 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
5013 (make_pass_early_vrp): New.
5015 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
5017 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
5018 instead of exact_log2.
5020 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
5023 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
5024 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
5025 (ix86_add_stmt_cost): Penalize DFmode vector operations
5026 for !TARGET_VECTORIZE_DOUBLE.
5028 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
5030 * doc/invoke.texi (Warning Options): Simplify language.
5031 (Optimize Options): Complete sentence.
5033 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
5035 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
5038 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
5041 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
5042 inits on power8 and above, use the VMRGEW instruction instead of a
5045 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
5046 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
5049 2016-09-20 Tamar Christina <tamar.christina@arm.com>
5051 * config/aarch64/arm_neon.h
5052 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
5053 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
5054 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
5056 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5058 * config/var/vax.h (ELIMINABLE_REGS): Define.
5059 (INITIAL_ELIMINATION_OFFSET): Define.
5061 2016-09-20 Jakub Jelinek <jakub@redhat.com>
5064 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
5065 cast to void * if the cast is from some other pointer type.
5067 2016-09-20 Richard Biener <rguenther@suse.de>
5069 PR tree-optimization/77646
5070 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
5073 2016-09-20 Tamar Christina <tamar.christina@arm.com>
5075 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
5076 attributes to all inlined functions and make them extern.
5078 2016-09-20 Richard Biener <rguenther@suse.de>
5080 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
5082 * debug.c (do_nothing_debug_hooks): Adjust.
5083 * dbxout.c (dbx_debug_hooks): Likewise.
5084 * sdbout.c (sdb_debug_hooks): Likewise.
5085 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
5086 (dwarf2out_finish): Move producer, filename and
5088 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
5089 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
5091 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5094 * doc/invoke.texi: Document -Wint-in-bool-context.
5097 * dwarf2out.c (output_loc_operands): Fix an assertion.
5099 2016-09-19 Joseph Myers <joseph@codesourcery.com>
5101 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
5102 (CR_DECIMAL_DIG): New macro.
5104 2016-09-19 Joseph Myers <joseph@codesourcery.com>
5106 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
5109 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
5111 PR rtl-optimization/77416
5112 * lra-remat.c (operand_to_remat): Process hard coded insn
5115 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5117 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
5118 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
5120 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
5122 * target.def (lra_p): Wordsmithing.
5123 * doc/tm.texi: Regenerate.
5125 2016-09-19 Jakub Jelinek <jakub@redhat.com>
5126 Jan Hubicka <jh@suse.cz>
5129 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
5130 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
5131 Call ultimate_alias_target just once, not up to 4 times.
5133 2016-09-19 Richard Biener <rguenther@suse.de>
5135 * dwarf2out.c (early_dwarf_finished): New global.
5136 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
5138 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
5139 if called from LTO exit early.
5140 (dwarf2out_late_global_decl): When being during the early
5141 debug phase do not add locations but only const value attributes.
5142 Adjust the way we generate early DIEs for LTO.
5144 2016-09-19 Richard Biener <rguenther@suse.de>
5147 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
5148 proper niter to bound the loops.
5150 2016-09-19 Richard Biener <rguenther@suse.de>
5152 PR tree-optimization/77514
5153 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
5154 search for folded stmt.
5156 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
5158 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
5159 * tree-pass.h (make_pass_early_thread_jumps): Declare.
5160 * tree-ssa-threadbackward.c (fsm_find_thread_path,
5161 fsm_find_thread_path, profitable_jump_thread_path,
5162 fsm_find_control_statement_thread_paths,
5163 find_jump_threads_backwards): Add speed_p parameter.
5164 (pass_data_early_thread_jumps): New pass.
5165 (make_pass_early_thread_jumps): New function.
5167 2016-09-17 Andreas Schwab <schwab@suse.de>
5169 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
5170 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
5172 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
5174 * recog.c (rest_of_handle_split_after_reload): Delete.
5175 (pass_split_after_reload::gate): New method.
5176 (pass_split_after_reload::execute): Call split_all_insns directly.
5178 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
5180 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
5181 parameters for functions taking long long arguments.
5183 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5186 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
5187 splat with truncate.
5189 2016-09-16 Jason Merrill <jason@redhat.com>
5191 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
5193 * hwint.c (exact_log2): Use pow2p_hwi.
5194 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
5195 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
5196 * builtins.c (get_object_alignment_2, get_object_alignment)
5197 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
5199 * calls.c (compute_argument_addresses, store_one_arg): Use
5201 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
5202 * combine.c (force_to_mode): Use least_bit_hwi.
5203 (contains_muldiv, find_split_point, combine_simplify_rtx)
5204 (simplify_if_then_else, simplify_set, force_to_mode)
5205 (if_then_else_cond, simplify_and_const_int_1)
5206 (simplify_compare_const): Use pow2p_hwi.
5207 * cse.c (fold_rtx): Use pow2p_hwi.
5208 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
5210 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
5211 (init_expmed_one_conv): Use pow2p_hwi.
5212 * expr.c (is_aligning_offset): Use pow2p_hwi.
5213 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
5214 (fold_binary_loc): Use pow2p_hwi.
5215 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
5216 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
5217 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
5218 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
5220 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
5221 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
5222 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
5223 * omp-low.c (oacc_loop_fixed_partitions)
5224 (oacc_loop_auto_partitions): Use least_bit_hwi.
5225 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
5226 * stor-layout.c (place_field): Use least_bit_hwi.
5227 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
5228 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
5229 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
5230 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
5231 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
5232 * tree-vect-data-refs.c (vect_analyze_group_access_1)
5233 (vect_grouped_store_supported, vect_grouped_load_supported)
5234 (vect_permute_load_chain, vect_shift_permute_load_chain)
5235 (vect_transform_grouped_load): Use pow2p_hwi.
5236 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
5237 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
5238 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
5240 * tsan.c (instrument_expr): Use least_bit_hwi.
5241 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
5243 2016-09-16 Andreas Schwab <schwab@suse.de>
5245 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
5247 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
5249 2016-09-16 Jakub Jelinek <jakub@redhat.com>
5252 * combine.c (rest_of_handle_combine): If any edges have been purged,
5253 free dominators if available.
5255 2016-09-16 Jakub Jelinek <jakub@redhat.com>
5256 Eric Botcazou <ebotcazou@adacore.com>
5259 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
5260 through into expand_addsub_overflow after expand_neg_overflow.
5262 2016-09-15 David Malcolm <dmalcolm@redhat.com>
5264 * diagnostic-show-locus.c
5265 (selftest::test_fixit_insert_containing_newline): New function.
5266 (selftest::test_fixit_replace_containing_newline): New function.
5267 (selftest::diagnostic_show_locus_c_tests): Call the above.
5269 2016-09-15 Bin Cheng <bin.cheng@arm.com>
5271 PR tree-optimization/77503
5272 * tree-vect-loop.c (vectorizable_reduction): Record reduction
5273 code for CONST_COND_REDUCTION at analysis stage and use it at
5275 * tree-vectorizer.h (struct _stmt_vec_info): New field.
5276 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
5277 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
5280 2016-09-15 Richard Biener <rguenther@suse.de>
5283 * fold-const.c (split_tree): Do not split constant ~X.
5285 2016-09-15 Jakub Jelinek <jakub@redhat.com>
5287 PR rtl-optimization/77425
5288 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
5292 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
5293 use %qs instead of %s where desirable, use argument instead of arg in
5294 the diagnostic wording, add list of supported strategies and
5296 (ix86_option_override_internal): Emit target("m...") instead of
5297 option("m...") in the diagnostic. Use %qs instead of %s in invalid
5298 -march/-mtune option diagnostic. Add list of supported arches/tunings
5299 and spellcheck hint. Remove prefix, suffix and sw variables, use
5300 main_args_p ? "..." : "..." in diagnostics to make translation
5303 2016-09-15 Richard Biener <rguenther@suse.de>
5305 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
5306 extra offset argument.
5307 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
5308 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
5309 to reflect new offset parameter.
5310 * doc/tm.texi: Regenerate.
5311 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
5312 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
5314 (darwin_asm_output_dwarf_offset): Likewise.
5315 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
5317 (darwin_asm_output_dwarf_offset): Pass offset argument through.
5318 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
5319 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
5321 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
5324 * ipa-icf.c (set_alias_uids): New function.
5325 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
5326 all the merged variable's referring aliases.
5328 2016-09-15 Richard Biener <rguenther@suse.de>
5330 PR tree-optimization/77514
5331 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
5332 only forced_stmts sequence.
5334 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
5336 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
5337 * cfgexpand.c (update_alias_info_with_stack_vars): Use
5338 FOR_EACH_SSA_NAME to iterate over SSA variables.
5339 (pass_expand::execute): Likewise.
5340 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
5341 * tree-cfg.c (dump_function_to_file): Likewise.
5342 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
5343 (update_ssa): Likewise.
5344 * tree-ssa-alias.c (dump_alias_info): Likewise.
5345 * tree-ssa-ccp.c (ccp_finalize): Likewise.
5346 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
5347 (create_outofssa_var_map): Likewise.
5348 (coalesce_ssa_name): Likewise.
5349 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
5350 * tree-ssa-pre.c (compute_avail): Likewise.
5351 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
5352 (scc_vn_restore_ssa_info): Likewise.
5353 (free_scc_vn): Likwise.
5354 (run_scc_vn): Likewise.
5355 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
5356 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
5357 * tree-ssa-copy.c (fini_copy_prop): Likewise.
5358 * tree-ssa.c (verify_ssa): Likewise.
5360 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
5362 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
5363 and mips64r2 as default 32-bit and 64-bit architectures.
5364 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
5365 as default 32-bit and 64-bit architectures.
5367 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
5369 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
5372 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
5374 * target.def (lra_p): Change commentary (for the manual) for the
5376 * doc/tm.texi: Regenerate.
5378 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
5380 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
5381 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
5382 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
5383 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
5385 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
5387 * targhooks.c (default_lra_p): Return true instead of false.
5389 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
5391 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
5392 hook_bool_void_false.
5393 * config/avr/avr.c: Ditto.
5394 * config/bfin/bfin.c: Ditto.
5395 * config/c6x/c6x.c: Ditto.
5396 * config/cr16/cr16.c: Ditto.
5397 * config/cris/cris.c: Ditto.
5398 * config/epiphany/epiphany.c: Ditto.
5399 * config/fr30/fr30.c: Ditto.
5400 * config/frv/frv.c: Ditto.
5401 * config/h8300/h8300.c: Ditto.
5402 * config/ia64/ia64.c: Ditto.
5403 * config/iq2000/iq2000.c: Ditto.
5404 * config/lm32/lm32.c: Ditto.
5405 * config/m32c/m32c.c: Ditto.
5406 * config/m32r/m32r.c: Ditto.
5407 * config/m68k/m68k.c: Ditto.
5408 * config/mcore/mcore.c: Ditto.
5409 * config/microblaze/microblaze.c: Ditto.
5410 * config/mmix/mmix.c: Ditto.
5411 * config/mn10300/mn10300.c: Ditto.
5412 * config/moxie/moxie.c: Ditto.
5413 * config/msp430/msp430.c: Ditto.
5414 * config/nios2/nios2.c: Ditto.
5415 * config/nvptx/nvptx.c: Ditto.
5416 * config/pa/pa.c: Ditto.
5417 * config/pdp11/pdp11.c: Ditto.
5418 * config/rl78/rl78.c: Ditto.
5419 * config/sparc/sparc.c: Ditto.
5420 * config/spu/spu.c: Ditto.
5421 * config/stormy16/stormy16.c: Ditto.
5422 * config/tilegx/tilegx.c: Ditto.
5423 * config/tilepro/tilepro.c: Ditto.
5424 * config/v850/v850.c: Ditto.
5425 * config/vax/vax.c: Ditto.
5426 * config/visium/visium.c: Ditto.
5427 * config/xtensa/xtensa.c: Ditto.
5429 2016-09-14 Jakub Jelinek <jakub@redhat.com>
5432 * tsan.c: Include target.h.
5433 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
5434 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
5435 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
5436 BUILT_IN_ATOMIC_TEST_AND_SET entries.
5437 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
5439 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5440 Martin Liska <mliska@suse.cz>
5443 * predict.c (force_edge_cold): Add braces to a condition.
5445 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
5447 PR rtl-optimization/77289
5448 * lra-constraints.c (get_final_hard_regno): Removed.
5449 (get_hard_regno): Add new parameter final_p.
5450 (get_reg_class): Directly call lra_get_elimination_hard_regno.
5451 (operands_match_p): Adjust call to get_hard_regno.
5452 (uses_hard_regs_p): Likewise.
5453 (process_alt_operands): Likewise.
5455 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
5458 * config/msp430/msp430.c (msp430_start_function): Emit an error
5459 if a function is both weak and specifies an interrupt number.
5461 2016-09-13 Jakub Jelinek <jakub@redhat.com>
5463 PR tree-optimization/77454
5464 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
5465 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
5468 2016-09-13 Tamar Christina <tamar.christina@arm.com>
5470 * config/aarch64/aarch64-builtins.c
5471 (aarch64_init_simd_builtins): Fix builtin type signature printing.
5473 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
5475 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
5476 SFmode and SCmode arguments by reference.
5478 2016-09-13 David Malcolm <dmalcolm@redhat.com>
5480 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
5482 (selftest::test_one_liner_fixit_insert_before): ...this, and update
5483 for renaming of add_fixit_insert to add_fixit_insert_before.
5484 (selftest::test_one_liner_fixit_insert_after): New function.
5485 (selftest::test_one_liner_fixit_validation_adhoc_locations):
5486 Update for renaming of add_fixit_insert to add_fixit_insert_before.
5487 (selftest::test_one_liner_many_fixits): Likewise.
5488 (selftest::test_diagnostic_show_locus_one_liner): Update for
5489 renaming, call new test function.
5490 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
5491 renaming of add_fixit_insert to add_fixit_insert_before.
5492 (selftest::test_fixit_consolidation): Likewise.
5493 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
5495 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
5496 (selftest::test_applying_fixits_insert_before): ...this.
5497 (selftest::test_applying_fixits_insert): Update for renaming of
5498 add_fixit_insert to add_fixit_insert_before.
5499 (selftest::test_applying_fixits_insert_after): New function.
5500 (selftest::test_applying_fixits_insert_after_at_line_end): New
5502 (selftest::test_applying_fixits_insert_after_failure): New function.
5503 (selftest::test_applying_fixits_multiple): Update for renaming of
5504 add_fixit_insert to add_fixit_insert_before.
5505 (selftest::change_line): Likewise.
5506 (selftest::test_applying_fixits_unreadable_file): Likewise.
5507 (selftest::test_applying_fixits_line_out_of_range): Likewise.
5508 (selftest::test_applying_fixits_column_validation): Likewise.
5509 (selftest::test_applying_fixits_column_validation): Likewise.
5510 (selftest::edit_context_c_tests): Update for renamed test function;
5511 call new test functions.
5513 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
5515 PR tree-optimization/77536
5516 PR rtl-optimization/68212
5517 * config/rs6000/rs6000.md (div->recip splitter): Remove
5518 optimize_insn_for_speed_p condition.
5520 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
5522 * optabs.c (prepare_cmp_insn): Update documentation comment.
5524 2016-09-13 Jakub Jelinek <jakub@redhat.com>
5525 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5528 * opts.h (candidates_list_and_hint): Declare.
5529 * opts-common.c (candidates_list_and_hint): New function.
5530 (cmdline_handle_error): Use it.
5532 2016-09-12 David Malcolm <dmalcolm@redhat.com>
5534 * edit-context.c (edited_line::get_len): New accessor.
5535 (edited_file::print_diff): Split out hunk-printing into...
5536 (edited_file::print_diff_hunk): New method.
5537 (edited_file::print_diff_line): New method.
5539 2016-09-12 Andrew Pinski <apinski@cavium.com>
5541 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
5543 * config/aarch64/aarch64.c (thunderx_tunings): Enable
5544 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
5545 (aarch64_operands_ok_for_ldpstp): Return false if
5546 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
5547 was SImode and the alignment is less than 8 byte.
5548 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
5550 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
5553 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
5555 2016-09-12 Marek Polacek <polacek@redhat.com>
5557 * doc/extend.texi: Use lowercase "boolean".
5558 * doc/invoke.texi: Likewise.
5559 * doc/md.texi: Likewise.
5560 * target.def: Likewise.
5561 * doc/tm.texi: Regenerated.
5563 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5566 * expmed.c (synth_mult): Delete duplicate mode check.
5568 2016-09-10 Tom de Vries <tom@codesourcery.com>
5571 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
5573 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
5574 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
5576 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
5578 PR rtl-optimization/77289
5579 * lra-constraints.c (get_final_hard_regno): Add support for non hard
5580 register numbers. Remove support for subregs.
5581 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
5582 (get_reg_class): Delete removed get_final_hard_regno() argument.
5583 (uses_hard_regs_p): Call get_final_hard_regno().
5585 2016-09-09 Martin Sebor <msebor@redhat.com>
5589 * pretty-print.c (pp_quoted_string): New function.
5590 (pp_format): Call it for %c and %s directives.
5592 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
5594 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
5595 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
5596 INITIAL_ELIMINATION_OFFSET) : Update documentation.
5597 * target.def (frame_pointer_required, can_eliminate): Likewise.
5598 * doc/tm.texi: Regenerated.
5599 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
5601 * df-scan.c (df_hard_reg_init): Likewise.
5602 * ira.c (ira_setup_eliminable_regset): Likewise.
5603 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
5604 init_elim_table): Likewise.
5605 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
5606 set_initial_elim_offsets, update_eliminables,
5607 init_elim_table): Likewise.
5608 * rtlanal.c (get_initial_register_offset): Likewise.
5609 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5610 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
5611 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
5612 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
5613 * config/fr30/fr30.h: Fix comment.
5614 * config/frv/frv.c: Likewise.
5615 * config/frv/frv.h: Likewise.
5616 * config/ft32/ft32.h: Likewise.
5617 * config/visium/visium.h: Likewise.
5618 * config/pa/pa64-linux.h: Likewise.
5619 * config/v850/v850.h: Likewise.
5620 * config/cris/cris.c: Likewise.
5621 * config/ia64/ia64.h: Likewise.
5622 * config/moxie/moxie.h: Likewise.
5623 * config/m32r/m32r.h: Likewise.
5625 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5628 * config.in: Regenerate.
5629 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
5631 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
5632 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
5633 static-libmpxwrappers case.
5634 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
5635 MPX_LD_AS_NEEDED_GUARD_POP.
5636 * configure: Regenerate.
5637 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
5638 defined if linker support "--push-state"/"--pop-state".
5640 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5642 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
5644 2016-09-09 Joseph Myers <joseph@codesourcery.com>
5646 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
5647 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
5648 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
5649 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
5650 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
5651 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
5652 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
5654 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
5655 width macros from TS 18661-1.
5656 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
5658 2016-09-08 Jakub Jelinek <jakub@redhat.com>
5661 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
5662 OMP_CLAUSE_SAFELEN_EXPR.
5664 2016-09-07 David Malcolm <dmalcolm@redhat.com>
5666 * Makefile.in (OBJS): Add substring-locations.o.
5667 * langhooks-def.h (class substring_loc): New forward decl.
5668 (lhd_get_substring_location): New decl.
5669 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
5670 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
5671 * langhooks.c (lhd_get_substring_location): New function.
5672 * langhooks.h (class substring_loc): New forward decl.
5673 (struct lang_hooks): Add field get_substring_location.
5674 * substring-locations.c: New file, taking definition of
5675 format_warning_va and format_warning_at_substring from
5676 c-family/c-format.c, making them non-static.
5677 * substring-locations.h (class substring_loc): Move class here
5678 from c-family/c-common.h. Add and rewrite comments.
5679 (format_warning_va): New decl.
5680 (format_warning_at_substring): New decl.
5681 (get_source_location_for_substring): Add comment.
5683 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
5685 * config/i386/i386.c: Add 'U' suffix to processor feature bits
5686 to avoid -Wnarrowing warning.
5687 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
5688 * opts.c: Likewise for SANITIZER_OPT bitmasks.
5690 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
5692 * config/aarch64/aarch64.c (aarch64_legitimize_address):
5693 Avoid use of base_offset if offset already in range.
5695 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
5697 * config/sh/sh-protos.h (struct sh_atomic_model,
5698 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
5699 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
5700 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
5701 * config/sh/sh.h (struct sh_atomic_model,
5702 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
5703 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
5704 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
5705 Guard with __cplusplus.
5707 2016-09-06 Jakub Jelinek <jakub@redhat.com>
5710 * config/i386/i386.c (ix86_expand_builtin): For builtin with
5711 unsupported or unknown ISA, use expand_call.
5713 2016-09-06 Martin Liska <mliska@suse.cz>
5715 PR gcov-profile/77378
5716 PR gcov-profile/77466
5717 * tree-profile.c (tree_profiling): Detect whether target can use
5718 -fprofile-update=atomic.
5720 2016-09-06 Richard Biener <rguenther@suse.de>
5722 PR tree-optimization/77479
5723 * tree-vrp.c (update_value_range): Extend overflow handling to
5726 2016-09-05 Jakub Jelinek <jakub@redhat.com>
5729 * config/i386/i386.md (isa): Add x64_avx512bw.
5730 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
5731 (kmov_isa): New mode attr.
5732 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
5733 (*zero_extend<mode>si2): Likewise.
5734 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
5736 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
5738 * doc/invoke.texi (SPU Options): nops -> NOPs.
5739 (x86 Options): Ditto.
5741 2016-09-05 Jakub Jelinek <jakub@redhat.com>
5744 * toplev.c (process_options): Temporarily set input_location
5745 to UNKNOWN_LOCATION around targetm.target_option.override () call.
5747 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
5749 PR rtl-optimization/77452
5750 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
5751 inner-mode reference to a CONST_VECTOR constant in the constant pool.
5753 2016-09-05 Marek Polacek <polacek@redhat.com>
5756 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
5758 2016-09-05 Jakub Jelinek <jakub@redhat.com>
5761 * gensupport.c (alter_output_for_subst_insn): Remove redundant
5762 *insn_out == '*' test. Don't copy unnecessary to yet another
5763 memory buffer, and don't leak it.
5765 PR rtl-optimization/77425
5766 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
5768 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
5770 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
5772 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5774 * common.opt (fdiagnostics-generate-patch): New option.
5775 * diagnostic.c: Include "edit-context.h".
5776 (diagnostic_initialize): Initialize context->edit_context_ptr.
5777 (diagnostic_finish): Delete context->edit_context_ptr.
5778 (diagnostic_report_diagnostic): Add fix-it hints from the
5779 diagnostic to context->edit_context_ptr, if any.
5780 * diagnostic.h (class edit_context): Add forward decl.
5781 (struct diagnostic_context): Add field "edit_context_ptr".
5782 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5783 -fdiagnostics-generate-patch.
5784 (-fdiagnostics-generate-patch): New item.
5785 * toplev.c: Include "edit-context.h".
5786 (process_options): Set global_dc->edit_context_ptr to a new
5787 edit_context if the options need one.
5788 (toplev::main): Handle -fdiagnostics-generate-patch by using
5789 global_dc->edit_context_ptr.
5791 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5794 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
5795 map and firstprivate clauses on target construct for _Atomic
5797 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
5798 on target construct for _Atomic qualified decls.
5799 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
5801 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
5802 _Atomic qualified arguments not mentioned in uniform clause.
5804 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5806 * Makefile.in (OBJS-libcommon): Add edit-context.o.
5807 * diagnostic-color.c (color_dict): Add "diff-filename",
5808 "diff-hunk", "diff-delete", and "diff-insert".
5809 (parse_gcc_colors): Update default value of GCC_COLORS in comment
5810 to reflect above changes.
5811 * doc/invoke.texi (-fdiagnostics-color): Update description of
5812 default GCC_COLORS, and of the supported capabilities.
5813 * edit-context.c: New file.
5814 * edit-context.h: New file.
5815 * input.c (struct fcache): Add field "missing_trailing_newline".
5816 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
5818 (add_file_to_cache_tab): Likewise.
5819 (fcache::fcache): Likewise.
5820 (get_next_line): Update c->missing_trailing_newline.
5821 (location_missing_trailing_newline): New function.
5822 * input.h (location_missing_trailing_newline): New decl.
5823 * selftest-run-tests.c (selftest::run_tests): Call
5824 edit_context_c_tests.
5825 * selftest.h (edit_context_c_tests): New decl.
5827 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5828 Richard Biener <rguenth@suse.de>
5830 PR tree-optimization/77444
5831 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
5832 as steptype, remove redundant initialization.
5834 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5837 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
5838 (sanopt_optimize_walker): Optimize away
5839 __asan_before_dynamic_init (...) followed by
5840 __asan_after_dynamic_init () without intervening memory loads/stores.
5841 * ipa-pure-const.c (special_builtin_state): Handle
5842 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
5843 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
5845 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5847 * cfg.c (free_original_copy_tables): Replace second assignment of
5848 bb_copy = NULL by bb_original = NULL.
5850 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5853 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
5854 assignment added in r216794.
5856 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5858 * Makefile.in (OBJS): Add typed-splay-tree.o.
5859 * selftest-run-tests.c (selftest::run_tests): Call
5860 typed_splay_tree_c_tests.
5861 * selftest.h (typed_splay_tree_c_tests): New decl.
5862 * typed-splay-tree.c: New file.
5863 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
5864 (typed_splay_tree::max): New method.
5865 (typed_splay_tree::min): New method.
5866 (typed_splay_tree::foreach): New method.
5867 (typed_splay_tree::closure): New struct.
5868 (typed_splay_tree::inner_foreach_fn): New function.
5870 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5872 * ipa-cp.c (ipcp_store_bits_results): Change option name from
5873 -fipa-cp-bit to -fipa-bit-cp.
5875 2016-09-01 Martin Sebor <msebor@redhat.com>
5877 PR tree-optimization/71831
5878 * tree-object-size.h: Return bool instead of the size and add
5879 argument for the size.
5880 * tree-object-size.c (compute_object_offset): Update signature.
5881 (addr_object_size): Same.
5882 (compute_builtin_object_size): Return bool instead of the size
5883 and add argument for the size. Handle POINTER_PLUS_EXPR when
5884 optimization is disabled.
5885 (expr_object_size): Adjust.
5886 (plus_stmt_object_size): Adjust.
5887 (pass_object_sizes::execute): Adjust.
5888 * builtins.c (fold_builtin_object_size): Adjust.
5889 * doc/extend.texi (Object Size Checking): Update.
5890 * ubsan.c (instrument_object_size): Adjust.
5892 2016-09-01 Martin Sebor <msebor@redhat.com>
5894 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
5895 it fits the output of the formatted function regardless of its
5897 * gcc/genmodes.c (parser::parse_expr): Same.
5898 * gimplify.c (gimplify_asm_expr): Same.
5899 * passes.c (pass_manager::register_one_dump_file): Same.
5900 * print-tree.c (print_node): Same.
5902 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5904 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
5906 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5908 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
5910 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5912 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
5913 * config/rs6000/vector.md: Ditto.
5914 * config/rs6000/vsx.md: Ditto.
5916 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
5918 * ipa-inline-analysis.c (param_change_prob): Get to the base object
5921 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5923 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
5924 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
5925 *return_and_restore_gpregs_<mode>_r11,
5926 *return_and_restore_gpregs_<mode>_r12,
5927 *return_and_restore_gpregs_<mode>_r1,
5928 *return_and_restore_fpregs_<mode>_r11,
5929 *return_and_restore_fpregs_<mode>_r12,
5930 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
5931 directly instead of via the "l" constraint. Renumber operands.
5934 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5936 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
5937 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
5938 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
5939 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
5940 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
5941 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
5942 *call_value_nonlocal_darwin64, reload_macho_picbase,
5943 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
5944 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
5945 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
5946 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
5947 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
5948 *save_fpregs_<mode>_r1): Ditto.
5949 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
5950 *return_and_restore_gpregs_spe): Ditto.
5952 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5954 * config/rs6000/rs6000.md
5955 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
5956 the use of the link register.
5957 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
5959 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5960 Michael Meissner <meissner@linux.vnet.ibm.com>
5963 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
5964 reg+reg addressing for TImode.
5965 (rs6000_legitimate_address_p): Only allow register indirect
5966 addressing for TImode, even without TARGET_QUAD_MEMORY.
5968 2016-09-01 Richard Biener <rguenther@suse.de>
5971 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
5972 check whether the result fits the desired result type.
5974 2016-09-01 Nathan Sidwell <nathan@acm.org>
5976 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
5978 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
5980 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
5982 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
5984 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5986 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
5987 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
5988 for comparisons of integer ZERO_EXTEND against zero.
5990 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
5992 * config/i386/i386.c (ix86_option_override_internal): Also disable the
5993 STV pass if -mstackrealign is enabled.
5995 2016-08-31 Ilya Verbin <iverbin@gmail.com>
5997 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
6000 2016-08-31 David Malcolm <dmalcolm@redhat.com>
6002 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
6003 (layout_range::intersects_line_p): New method.
6004 (test_range_contains_point_for_single_point): Rename to...
6005 (test_layout_range_for_single_point): ...this, and add testing
6006 for layout_range::intersects_line_p.
6007 (test_range_contains_point_for_single_line): Rename to...
6008 (test_layout_range_for_single_line): ...this, and add testing
6009 for layout_range::intersects_line_p.
6010 (test_range_contains_point_for_multiple_lines): Rename to...
6011 (test_layout_range_for_multiple_lines): ...this, and add testing
6012 for layout_range::intersects_line_p.
6013 (layout::layout): Populate m_fixit_hints.
6014 (layout::get_expanded_location): Handle the case of a line-span
6016 (layout::validate_fixit_hint_p): New method.
6017 (get_line_span_for_fixit_hint): New function.
6018 (layout::calculate_line_spans): Add spans for fixit-hints.
6019 (layout::should_print_annotation_line_p): New method.
6020 (layout::print_any_fixits): Drop param "richloc", instead using
6021 validated fixits in m_fixit_hints. Add "const" to hint pointers.
6022 (diagnostic_show_locus): Avoid printing blank annotation lines.
6023 (selftest::test_diagnostic_context::test_diagnostic_context):
6024 Initialize show_column and start_span.
6025 (selftest::test_diagnostic_context::start_span_cb): New static
6027 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
6028 (selftest::diagnostic_show_locus_c_tests): Update for function
6029 renamings. Call test_diagnostic_show_locus_fixit_lines.
6031 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
6033 PR tree-optimization/73714
6034 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
6036 2016-08-31 David Malcolm <dmalcolm@redhat.com>
6038 * selftest.c: Move "namespace selftest {" to top of file,
6039 removing explicit "selftest::" qualifiers throughout.
6041 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
6043 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
6045 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
6046 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
6047 Replace builtin with vector extension.
6048 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
6050 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
6051 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
6052 Replace builtin with vector extension.
6053 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
6054 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
6055 Replace builtin with vector extension.
6056 * config/i386/xmmintrin.h (__m128_u): New type.
6057 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
6058 (_mm_load_ps, _mm_store_ps): Simplify.
6060 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
6062 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
6064 2016-08-30 David Malcolm <dmalcolm@redhat.com>
6066 * diagnostic-show-locus.c (colorizer::begin_state): Support more
6067 than 3 ranges per diagnostic by alternating between color 1 and
6069 (layout::layout): Replace use of rich_location::MAX_RANGES
6070 with richloc->get_num_locations ().
6071 (layout::calculate_line_spans): Replace use of
6072 rich_location::MAX_RANGES with m_layout_ranges.length ().
6073 (layout::print_annotation_line): Handle arbitrary numbers of
6074 ranges in caret-printing by defaulting to '^'.
6075 (selftest::test_one_liner_many_fixits): New function.
6076 (test_diagnostic_show_locus_one_liner): Call it.
6077 * diagnostic.c (diagnostic_initialize): Update for renaming
6078 of rich_location::MAX_RANGES to
6079 rich_location::STATICALLY_ALLOCATED_RANGES.
6080 * diagnostic.h (struct diagnostic_context): Likewise.
6082 2016-08-30 David Malcolm <dmalcolm@redhat.com>
6084 * selftest.c (selftest::named_temp_file::named_temp_file): New
6086 (selftest::temp_source_file::~temp_source_file): Move to...
6087 (selftest::named_temp_file::~named_temp_file): ...here.
6088 (selftest::test_named_temp_file): New function.
6089 (selftest::selftest_c_tests): Call test_named_temp_file.
6090 * selftest.h (class named_temp_file): New class.
6091 (class temp_source_file): Convert to a subclass of named_temp_file.
6093 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
6095 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
6096 USEs of LR_REGNO in returns and sibcalls.
6097 (rs6000_output_mi_thunk): Similar.
6098 (rs6000_sibcall_aix): Similar.
6099 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
6100 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
6101 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
6102 Remove the USE of LR_REGNO from the patterns as well. Delete an
6104 (return_internal_<mode>): Delete.
6106 2016-08-30 Tamar Christina <tamar.christina@arm.com>
6108 * gcc/config/aarch64/aarch64-simd.md
6109 (aarch64_ld2<mode>_dreg_le): New.
6110 (aarch64_ld2<mode>_dreg_be): New.
6111 (aarch64_ld2<mode>_dreg): Removed.
6112 (aarch64_ld3<mode>_dreg_le): New.
6113 (aarch64_ld3<mode>_dreg_be): New.
6114 (aarch64_ld3<mode>_dreg): Removed.
6115 (aarch64_ld4<mode>_dreg_le): New.
6116 (aarch64_ld4<mode>_dreg_be): New.
6117 (aarch64_ld4<mode>_dreg): Removed.
6118 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
6120 2016-08-30 David Malcolm <dmalcolm@redhat.com>
6122 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
6123 redundant location param.
6124 (test_one_liner_fixit_remove): Likewise.
6125 (test_one_liner_fixit_replace): Likewise.
6126 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
6127 * gcc-rich-location.c
6128 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
6129 get_range_from_loc. Drop overload taking a const char *.
6130 * gcc-rich-location.h
6131 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
6134 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
6136 * config/linux.c (linux_libc_has_function): Return true on musl.
6138 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
6140 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
6142 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
6144 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
6145 used for abnormal egdes.
6147 2016-08-30 Jakub Jelinek <jakub@redhat.com>
6149 PR tree-optimization/72866
6150 * tree-vect-patterns.c (search_type_for_mask): Turn into
6151 a small wrapper, move all code to ...
6152 (search_type_for_mask_1): ... this new function. Add caching
6153 and adjust recursive calls.
6156 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
6157 instead of lookup_type_die (type_main_variant (type)) even for array
6161 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
6162 constant pool reference return x instead of c.
6164 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
6166 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
6169 2016-08-29 David Malcolm <dmalcolm@redhat.com>
6172 (selftest::test_make_location_nonpure_range_endpoints): Fix
6175 2016-08-29 David Malcolm <dmalcolm@redhat.com>
6177 * diagnostic-show-locus.c
6178 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
6180 (selftest::test_diagnostic_show_locus_one_liner): Call it.
6181 * input.c (get_pure_location): Move to libcpp/line-map.c.
6182 * input.h (get_pure_location): Convert decl to an inline function
6183 calling implementation in libcpp.
6185 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
6188 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
6189 template for intel asm dialect.
6190 (vec_set_hi_<mode><mask_name>): Ditto.
6192 2016-08-29 David Malcolm <dmalcolm@redhat.com>
6194 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
6195 (selftest::fail_formatted): Likewise.
6197 2016-08-29 David Malcolm <dmalcolm@redhat.com>
6199 * input.c (make_location): Call get_start and get_finish
6200 on the endpoints to avoid storing packed ranges or ad-hoc
6202 (selftest::test_make_location_nonpure_range_endpoints): New function.
6203 (selftest::input_c_tests): Call it.
6204 * input.h (get_start): New inline function.
6206 2016-08-29 Tom de Vries <tom@codesourcery.com>
6209 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
6212 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
6214 * Makefile.in (gcov-iov.h): Add dummy recipe.
6216 2016-08-29 Nathan Sidwell <nathan@acm.org>
6218 * config/nvptx/nvptx.c: #include tree-vrp.h.
6220 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
6223 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
6224 HIGH+LO construct during reload.
6226 2016-08-28 Tom de Vries <tom@codesourcery.com>
6229 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
6230 'sysv_abi va_list' attribute.
6231 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
6232 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
6235 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6237 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
6238 * emit-rtl.c (unshare_all_rtl_1): Adjust.
6239 (unshare_all_rtl_again): Likewise.
6240 * function.c (assign_stack_local_1): Likewise.
6241 (assign_stack_temp_for_type): Likewise.
6243 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6245 * cfgbuild.c (make_edges): Adjust.
6246 * cfgrtl.c (can_delete_label_p): Likewise.
6247 * dwarf2cfi.c (create_trace_edges): Likewise.
6248 * except.c (sjlj_emit_dispatch_table): Likewise.
6249 * function.h (struct expr_status): make x_forced_labels a vector.
6250 * jump.c (rebuild_jump_labels_1): Adjust.
6251 * reload1.c (set_initial_label_offsets): Likewise.
6252 * stmt.c (force_label_rtx): Likewise.
6253 (expand_label): Likewise.
6255 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6257 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
6259 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
6261 PR tree-optimization/71077
6262 PR tree-optimization/68542
6263 * fold-const.c (fold_relational_const): Fix folding of
6264 VECTOR_CST comparisons that have a scalar boolean result type.
6265 (selftest::test_vector_folding): New static function.
6266 (selftest::fold_const_c_tests): Call it.
6268 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
6270 * doc/extend.texi (SPU Built-in Functions): Remove stale
6271 references to material formerly at IBM and Sony.
6273 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
6276 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
6278 2016-08-26 David Malcolm <dmalcolm@redhat.com>
6280 * diagnostic-show-locus.c
6281 (selftest::test_fixit_consolidation): New function.
6282 (selftest::diagnostic_show_locus_c_tests): Call it.
6283 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
6284 constructor based on source_range.
6286 2016-08-26 David Malcolm <dmalcolm@redhat.com>
6288 * diagnostic-color.c (color_dict): Add "fixit-insert" and
6290 (parse_gcc_colors): Update description of default GCC_COLORS.
6291 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
6292 (colorizer::set_fixit_insert): New method.
6293 (colorizer::set_fixit_delete): New method.
6294 (colorizer::get_color_by_name): New method.
6295 (colorizer::STATE_FIXIT_INSERT): New constant.
6296 (colorizer::STATE_FIXIT_DELETE): New constant.
6297 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
6298 fields in favor of new field "m_stop_color". Add fields
6299 "m_fixit_insert" and "m_fixit_delete".
6300 (colorizer::colorizer): Update for above changes. Replace
6301 colorize_start calls with calls to get_color_by_name.
6302 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
6303 STATE_FIXIT_DELETE. Update for field renamings.
6304 (colorizer::finish_state): Simplify by using m_stop_color,
6305 rather than multiple identical "*_ce" fields.
6306 (colorizer::get_color_by_name): New method.
6307 (layout::print_any_fixits): Print insertions and replacements
6308 using the "fixit-insert" color, and deletions using the
6309 "fixit-delete" color.
6310 * doc/invoke.texi (-fdiagnostics-color): Update description of
6311 default GCC_COLORS, and of the supported capabilities.
6313 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
6315 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
6316 current_function_static_stack_size variable with the static
6317 stack frame size of the current function when
6318 flag_stack_usage_info is enabled.
6320 2016-08-26 Nathan Sidwell <nathan@acm.org>
6322 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
6323 assignment inside if condition.
6325 2016-08-26 Richard Biener <rguenther@suse.de>
6327 PR tree-optimization/69047
6328 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
6329 extracts similar to what FRE does.
6330 (non_rewritable_mem_ref_base): Likewise.
6332 2016-08-26 Joseph Myers <joseph@codesourcery.com>
6334 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
6335 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
6336 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
6337 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
6338 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
6340 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
6341 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
6342 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
6343 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
6344 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
6346 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6349 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
6350 reservation duration to 15 cycles.
6351 (cortex_a8_vfp_macs): Likewise.
6352 (cortex_a8_vfp_macd): Likewise.
6353 (cortex_a8_vfp_divs): Likewise.
6354 (cortex_a8_vfp_divd): Likewise.
6356 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6358 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
6359 (aarch_macro_fusion_pair_p): Use above to avoid early return.
6361 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6362 Martin Jambhor <mjambor@suse.cz>
6364 * common.opt: New option -fipa-bit-cp.
6365 * doc/invoke.texi: Document -fipa-bit-cp.
6366 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
6367 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
6368 * tree-ssa-ccp.h: New header file.
6369 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
6370 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
6371 Replace all occurences of tree parameter by two new params: signop, int.
6372 (bit_value_unop_1): Change to bit_value_unop and export it.
6373 Replace all occurences of tree parameter by two new params: signop,
6375 (bit_value_binop): Change call from bit_value_binop_1 to
6377 (bit_value_assume_aligned): Likewise.
6378 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
6379 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
6381 (ccp_finalize): Skip processing if val->mask == 0.
6382 * ipa-cp.c: Include tree-ssa-ccp.h
6383 (ipcp_bits_lattice): New class.
6384 (ipcp_param_lattice (bits_lattice): New member.
6385 (print_all_lattices): Call ipcp_bits_lattice::print.
6386 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
6387 (initialize_node_lattices): Likewise.
6388 (propagate_bits_accross_jump_function): New function.
6389 (propagate_constants_accross_call): Call
6390 propagate_bits_accross_jump_function.
6391 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
6392 (ipcp_store_bits_results): New function.
6393 (ipcp_driver): Call ipcp_store_bits_results.
6394 * ipa-prop.h (ipa_bits): New struct.
6395 (ipa_jump_func): Add new member bits of type ipa_bits.
6396 (ipa_param_descriptor): Change decl to decl_or_type.
6397 (ipa_get_param): Change decl to decl_or_type and assert on
6399 (ipa_get_type): New function.
6400 (ipcp_transformation_summary): New member bits.
6401 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
6402 (ipa_populate_param_decls): Likewise.
6403 (ipa_dump_param): Likewise.
6404 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
6406 (ipa_set_jf_unknown): Set ipa_bits::known to false.
6407 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
6409 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
6410 (ipa_write_jump_function): Add streaming for ipa_bits.
6411 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
6412 (write_ipcp_transformation_info): Add streaming for ipa_bits
6414 (read_ipcp_transfomration_info): Add support for reading streamed
6416 (ipcp_update_bits): New function.
6417 (ipcp_transform_function): Call ipcp_update_bits.
6419 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
6421 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
6422 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
6424 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
6426 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
6428 2016-08-25 Richard Biener <rguenther@suse.de>
6430 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
6431 Only add locations in late dwarf.
6432 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
6433 (dwarf2out_early_finish): But do it here.
6435 2016-08-24 Michael Collison <michael.collison@linaro.org>
6436 Michael Collison <michael.collison@arm.com>
6438 * config/arm/arm-modes.def: Add new condition code mode CC_V
6439 to represent the overflow bit.
6440 * config/arm/arm.c (maybe_get_arm_condition_code):
6441 Add support for CC_Vmode.
6442 (arm_gen_unlikely_cbranch): New function to generate common
6443 rtl conditional branches for overflow patterns.
6444 * config/arm/arm-protos.h: Add prototype for
6445 arm_gen_unlikely_cbranch.
6446 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
6447 addsi3_compareV_upper): New patterns to support signed
6448 builtin overflow add operations.
6449 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
6450 New patterns to support unsigned builtin add overflow operations.
6451 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
6452 builtin overflow subtract operations,
6453 (usubv<mode>4): New patterns to support unsigned builtin subtract
6454 overflow operations.
6455 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
6456 to support builtin overflow negate operations.
6458 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6461 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
6463 * explow.c (get_dynamic_stack_size): Take known alignment of stack
6464 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
6467 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
6469 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
6470 MULTILIB_OPTIONS should be used. Small wording fixes.
6471 * genmultilib: Memorize set of all option combinations in
6472 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
6473 found in MULTILIB_OPTIONS by checking if option set is listed in
6474 combination_space. Output new and existing error message to stderr.
6476 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
6478 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
6479 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
6480 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
6481 (MULTILIB_REUSE): Remove reuse rules for option set including
6482 -mfpu=fp-armv8 and -mfpu=vfpv4
6484 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
6486 * config/arm/t-rtems: Add vfp multilib.
6488 2016-08-23 Ian Lance Taylor <iant@golang.org>
6490 * config/s390/s390.c (s390_asm_file_start): Call
6493 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6495 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
6496 initialization of all 0's to the 0 constant, instead of directly
6497 generating XOR. Add support for V4SImode vector initialization on
6498 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
6499 initialization. Change variables used in V4SFmode vector
6500 intialization. For V4SFmode vector splat on ISA 3.0, make sure
6501 any memory addresses are in index form. Add support for using
6502 VSPLTH/VSPLTB to initialize vector short and vector char vectors
6503 with all of the same element.
6504 (regno_or_subregno): New helper function to return a register
6505 number for either REG or SUBREG.
6506 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
6507 Use regno_or_subregno where possible.
6508 (rs6000_split_v4si_init_di_reg): New helper function to build up a
6509 DImode value from two SImode values in order to generate V4SImode
6510 vector initialization on 64-bit systems with direct move.
6511 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
6513 (rtx_is_swappable_p): V4SImode vector initialization insn is not
6515 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
6517 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
6518 attributes to initialize V8HImode and V16QImode vectors with the
6520 (VSX_SPLAT_COUNT): Likewise.
6521 (VSX_SPLAT_SUFFIX): Likewise.
6522 (UNSPEC_VSX_VEC_INIT): New unspec.
6523 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
6524 Allow SFmode values to come from Altivec registers.
6525 (vsx_init_v4si): New insn/split for V4SImode vector initialization
6526 on 64-bit systems with direct move.
6527 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
6528 vector initializations, to allow V4SImode vector initializations
6529 on 64-bit systems with direct move.
6530 (vsx_splat_v4si): Likewise.
6531 (vsx_splat_v4si_di): Likewise.
6532 (vsx_splat_v4sf): Likewise.
6533 (vsx_splat_v4sf_internal): Likewise.
6534 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
6536 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
6537 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
6538 initializing V8HImode and V16QImode vectors with the same
6540 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
6541 optimization if -maltivec=be.
6543 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
6545 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
6546 attribute for alternatives 3 and 4.
6548 2016-08-23 David Malcolm <dmalcolm@redhat.com>
6550 * selftest.c (selftest::assert_str_contains): New function.
6551 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
6552 * selftest.h (selftest::assert_str_contains): New decl.
6553 (ASSERT_STR_CONTAINS): New macro.
6555 2016-08-23 Richard Biener <rguenther@suse.de>
6557 PR tree-optimization/77286
6558 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
6560 (vect_transform_loop): Split exit edges of loop and scalar
6561 loop if required and at the appropriate time.
6563 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
6565 * explow.c (get_dynamic_stack_size): Take known alignment of stack
6566 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
6568 Correct a typo in a comment.
6570 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
6572 * config/s390/s390.md ("*andc_split"): New splitter for and with
6575 2016-08-23 Richard Biener <rguenther@suse.de>
6577 PR tree-optimization/27336
6578 * tree-vrp.c (infer_value_range): Handle stmts that can throw
6579 by looking for a non-EH edge.
6580 (process_assert_insertions_for): Likewise.
6582 2016-08-23 Richard Biener <rguenther@suse.de>
6585 * statistics.c (statistics_counter_event): Robustify against
6588 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6590 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
6591 for targets amdfam10 and barcelona.
6593 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
6595 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
6596 (zero_extend<mode>di2): Ditto.
6597 (*zero_extend<mode>si2): Ditto.
6598 (*zero_extendqihi2): Ditto.
6600 2016-08-22 Joseph Myers <joseph@codesourcery.com>
6603 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
6604 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
6606 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
6608 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
6609 identical consecutive elements.
6610 [SSA_NAME]: Print the name's def stmt on its own line. When printing
6611 the node's def stmt, avoid printing an unwanted trailing newline by
6612 replacing the call to print_gimple_stmt() with its inlined body and
6613 adjusting it to not set pp_needs_newline and to call pp_flush()
6614 instead of pp_newline_and_flush().
6616 2016-08-22 Joseph Myers <joseph@codesourcery.com>
6618 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
6619 (float32_type_node, float64_type_node, float32x_type_node)
6620 (float128x_type_node): New macros.
6621 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
6622 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
6623 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
6624 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
6625 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
6626 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
6627 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
6628 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
6629 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
6630 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
6631 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
6632 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
6633 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
6634 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
6635 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
6636 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
6637 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
6638 (copysign, fabs, huge_val, inf, nan, nans): Use it.
6639 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
6641 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
6642 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
6643 * doc/extend.texi (Other Builtins): Document these built-in
6645 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
6648 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
6650 * doc/install.texi (Binaries): www.opencsw.org now uses https.
6652 2016-08-22 Richard Biener <rguenther@suse.de>
6654 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
6656 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
6659 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
6660 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
6661 non-SSE2 athlons only, otherwise prefer SSE prefetches.
6663 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
6665 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
6666 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
6667 (vrp_visit_switch_stmt): Likewise.
6668 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
6669 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
6670 (vrp_visit_stmt): Use extract_range_from_stmt.
6671 (vrp_visit_phi_node): Use extract_range_from_phi_node.
6673 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
6675 * Makefile.in: Add tree-vrp.h to GTFILES.
6676 * gengtype.c (open_base_files): Add tree-vrp.h.
6677 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
6678 * builtins.c: Likewise.
6679 * fold-const.c: Likewise.
6680 * gimple-builder.c: Likewise.
6681 * gimple-laddress.c: Likewise.
6682 * hsa-gen.c: Likewise.
6683 * internal-fn.c: Likewise.
6685 * targhooks.c: Liewise,
6686 * tree-ssa-address.c: Likewise.
6687 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
6688 * tree-vrp.c (struct value_range): Move to tree-vrp.h
6689 * tree-vrp.h: New file.
6691 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
6693 PR tree-optimization/61839
6694 * tree-vrp.c (two_valued_val_range_p): New.
6695 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
6696 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
6697 Also Convert VAR BINOP CST where VAR is two-valued to
6698 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
6700 2016-08-19 David Malcolm <dmalcolm@redhat.com>
6702 * diagnostic-show-locus.c
6703 (layout::annotation_line_showed_range_p): New method.
6704 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
6705 Reimplement case fixit_hint::REPLACE to cover removals, and
6706 replacements where the range of the replacement isn't one
6707 of the ranges in the rich_location.
6708 (test_one_liner_fixit_replace): Likewise.
6709 (selftest::test_one_liner_fixit_replace_non_equal_range): New
6711 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
6713 (selftest::test_diagnostic_show_locus_one_liner): Call the new
6715 * diagnostic.c (print_parseable_fixits): Remove case
6718 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
6721 * config/i386/i386.c (ix86_option_override_internal): Remove
6722 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
6723 Enable SSE prefetch also for TARGET_PREFETCHWT1.
6724 Do not try to enable TARGET_PRFCHW ISA flag here.
6725 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
6726 Rewrite expander function body.
6727 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
6729 2016-08-19 Joseph Myers <joseph@codesourcery.com>
6732 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
6733 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
6734 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
6735 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
6736 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
6737 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
6738 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
6739 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
6740 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
6742 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
6744 (struct floatn_type_info): New structure type.
6745 (floatn_nx_types): New variable declaration.
6746 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
6747 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
6748 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
6749 * tree.c (floatn_nx_types): New variable.
6750 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
6751 corresponding complex types.
6752 * target.def (floatn_mode): New hook.
6753 * targhooks.c: Include "real.h".
6754 (default_floatn_mode): New function.
6755 * targhooks.h (default_floatn_mode): New prototype.
6756 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
6758 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
6759 effective-target and dg-add-options keywords.
6760 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
6761 Document new effective-target keywords.
6762 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
6763 * doc/tm.texi: Regenerate.
6764 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
6765 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
6766 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
6768 * real.h (struct real_format): Add field ieee_bits.
6769 * real.c (ieee_single_format, mips_single_format)
6770 (motorola_single_format, spu_single_format, ieee_double_format)
6771 (mips_double_format, motorola_double_format)
6772 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
6773 (ieee_extended_intel_128_format)
6774 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
6775 (mips_extended_format, ieee_quad_format, mips_quad_format)
6776 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
6777 (decimal_double_format, decimal_quad_format, ieee_half_format)
6778 (arm_half_format, real_internal_format: Initialize ieee_bits
6780 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
6781 float128_type_node. Set float80_type_node to float64x_type_node
6782 if appropriate and long_double_type_node not appropriate.
6783 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
6784 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
6785 Initialize ieee_bits field.
6786 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
6787 (rs6000_init_builtins): Set ieee128_float_type_node to
6789 (rs6000_floatn_mode): New function.
6791 2016-08-19 Jakub Jelinek <jakub@redhat.com>
6793 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
6794 _rdseed64_step): Uglify argument names and/or local variable names
6795 in inline functions.
6796 * config/i386/rtmintrin.h (_xabort): Likewise.
6797 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
6798 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
6799 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
6800 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
6801 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
6802 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
6803 _mm_maskz_ternarylogic_epi32): Likewise.
6804 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
6805 __lwpins32, __lwpins64): Likewise.
6806 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
6807 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
6808 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
6809 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
6810 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
6811 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
6812 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
6813 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
6814 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
6815 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
6816 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
6817 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
6818 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
6819 _mm256_mask_i64gather_epi32): Likewise.
6820 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
6821 * config/i386/ia32intrin.h (__writeeflags): Likewise.
6822 * config/i386/pkuintrin.h (_wrpkru): Likewise.
6823 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
6824 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
6825 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
6826 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
6827 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
6828 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
6829 _mm512_mask_prefetch_i64scatter_ps): Likewise.
6830 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
6831 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
6832 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
6833 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
6834 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
6835 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
6836 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
6837 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
6839 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
6841 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
6842 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
6844 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
6845 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
6847 (_rdpkru_u32): Add space after function name.
6849 * config/i386/t-i386 (i386-c.o): Don't depend on
6850 i386-builtin-types.inc.
6851 (i386.o): Depend on i386-builtin-types.inc.
6853 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
6856 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
6857 Use const_vec_duplicate to check for duplicated elements.
6859 2016-08-19 Richard Biener <rguenther@suse.de>
6861 PR tree-optimization/77290
6862 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6863 Fix flag_tree_parallelize_loops check.
6865 2016-08-19 Richard Biener <rguenther@suse.de>
6867 * match.pd (x | 0 -> x): Add.
6869 2016-08-19 Richard Biener <rguenther@suse.de>
6871 PR tree-optimization/77286
6872 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6873 Deal with virtual PHIs being out-of-order.
6875 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6877 * doc/invoke.texi (fverbose-asm): Note that source code lines
6878 are emitted, and provide an example.
6879 * final.c (asm_show_source): New function.
6880 (final_scan_insn): Call asm_show_source.
6882 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6884 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
6885 param with diagnostic_kind.
6886 (class colorizer): Similarly replace field m_diagnostic with
6888 (colorizer::colorizer): Replace diagnostic
6889 param with diagnostic_kind.
6890 (colorizer::begin_state): Update for above field change.
6891 (layout::layout): Replace diagnostic param with rich_location *
6892 and diagnostic_kind.
6893 (diagnostic_show_locus): Replace diagnostic param with richloc
6894 and diagnostic_kind.
6895 (class selftest::test_diagnostic_context): New class.
6896 (selftest::test_diagnostic_show_locus_unknown_location): New
6898 (selftest::test_one_liner_simple_caret): New function.
6899 (selftest::test_one_liner_caret_and_range): New function.
6900 (selftest::test_one_liner_multiple_carets_and_ranges): New
6902 (selftest::test_one_liner_fixit_remove): New function.
6903 (selftest::test_one_liner_fixit_replace): New function.
6904 (selftest::test_diagnostic_show_locus_one_liner): New function.
6905 (selftest::diagnostic_show_locus_c_tests): Call the new test
6907 * diagnostic.c (diagnostic_initialize): Initialize
6908 colorize_source_p, show_ruler_p and parseable_fixits_p.
6909 (default_diagnostic_finalizer): Update for change to
6910 diagnostic_show_locus.
6911 (diagnostic_append_note): Likewise.
6912 * diagnostic.h (diagnostic_show_locus): Replace
6913 const diagnostic_info * param with location * and diagnostic_t.
6915 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6917 * input.c (saved_line_table): New global.
6918 (class selftest::temp_line_table): Rename to line_table_test and
6919 move declaration to selftest.h, and drop field m_old_line_table.
6920 (selftest::temp_line_table::temp_line_table): Rename ctor to...
6921 (selftest::line_table_test::line_table_test): ...this. Add a
6922 default ctor. Store current value of line_table within
6924 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
6925 (selftest::line_table_test::~line_table_test): ...this, and
6926 restore line_table from the saved_line_table, rather than
6928 (selftest::test_accessing_ordinary_linemaps): Update for above
6930 (selftest::test_lexer): Likewise.
6931 (struct selftest::lexer_test): Likewise.
6932 (selftest::lexer_test::lexer_test): Likewise.
6933 (selftest::input_c_tests): Move the looping over test cases from
6935 (selftest::for_each_line_table_case): New function.
6936 * input.h (saved_line_table): New decl.
6937 * selftest.h (struct selftest::line_table_case): New forward decl.
6938 (class selftest::line_table_test): New class, moved here from
6939 selftest::temp_line_table in input.c, and renamed.
6940 (selftest::for_each_line_table_case): New decl.
6942 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
6945 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
6947 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
6950 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
6951 enclosing parallel construct for reduction variables on OpenACC loop
6954 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
6956 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
6957 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
6959 (function_to_dwarf_procedure): Update comment.
6961 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6963 * input.c (diagnostics_file_cache_forcibly_evict_file): New
6965 * input.h (diagnostics_file_cache_forcibly_evict_file): New
6967 * selftest.c (selftest::temp_source_file::~temp_source_file):
6968 Evict m_filename from the diagnostic file cache.
6970 2016-08-18 Richard Biener <rguenther@suse.de>
6972 * tree-pass.h (make_pass_materialize_all_clones): Declare.
6973 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
6974 make_pass_materialize_all_clones): New simple IPA pass encapsulating
6975 clone materialization.
6976 * passes.def (all_late_ipa_passes): Start with
6977 pass_materialize_all_clones.
6978 * cgraphunit.c (symbol_table::compile): Remove call to
6979 materialize_all_clones.
6980 * tree-into-ssa.c: Include statistics.h.
6981 (update_ssa): Count number of times we do incremental/rewrite
6984 2016-08-18 Richard Biener <rguenther@suse.de>
6986 PR tree-optimization/77282
6987 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6988 When doing auto-parallelizing also prevent use of PHIs that
6989 carry dependences across loop backedges.
6991 2016-08-18 Tamar Christina <tamar.christina@arm.com>
6992 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6994 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
6996 2016-08-18 Richard Biener <rguenther@suse.de>
6998 * ssa-iterators.h (ssa_vuse_operand): New inline.
6999 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
7000 (predicate_all_scalar_phis): Use remove_phi_node to remove
7001 phi nodes predicated. Delay removing virtual PHIs.
7002 (predicate_mem_writes): Update virtual operands.
7003 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
7004 (tree_if_conversion): Do not rewrite virtual SSA form.
7005 * tree-phinodes.c (release_phi_node): Make static.
7006 * tree-phinodes.h (release_phi_node): Remove.
7008 2016-08-18 Jakub Jelinek <jakub@redhat.com>
7010 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
7011 codes that appear in bdesc_* arrays, instead include i386-builtin.def
7012 twice to define those.
7013 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
7014 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
7015 bdesc_multi_arg): Define by including i386-builtin.def the third time.
7016 * config/i386/i386-builtin.def: New file.
7018 2016-08-17 David Malcolm <dmalcolm@redhat.com>
7020 * input.c (get_source_range_for_char): Rename to...
7021 (selftest::get_source_range_for_char): ...this, and move within
7022 the #if CHECKING_P guard.
7023 (get_num_source_ranges_for_substring): Rename to...
7024 (selftest::get_num_source_ranges_for_substring): ...this, move
7025 within the #if CHECKING_P guard, and make static.
7026 (selftest::assert_num_substring_ranges): Initialize
7029 2016-08-18 Alan Modra <amodra@gmail.com>
7031 PR rtl-optimization/72771
7032 * reload.c (find_reloads): Don't assume that a subreg mem is OK
7033 when find_reloads_toplev returns address_reloaded==-1.
7034 (alternative_allows_const_pool_ref): Update comment.
7036 2015-08-17 Alan Hayward <alan.hayward@arm.com>
7038 PR tree-optimization/71752
7039 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
7040 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
7042 2016-08-17 Jakub Jelinek <jakub@redhat.com>
7044 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
7045 instead of testing ECF_NORETURN bit in gimple_call_flags.
7046 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
7047 * predict.c (tree_bb_level_predictions): Likewise.
7048 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
7051 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
7052 turning a call into __builtin_unreachable-like noreturn call, adjust
7053 gimple_call_set_fntype.
7054 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
7055 gimple_call_fntype has void return type.
7057 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
7059 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
7060 maybe_lookup_decl, to handle nested acc loop directives.
7062 2016-08-17 Richard Biener <rguenther@suse.de>
7064 PR tree-optimization/76490
7065 * tree-vrp.c (update_value_range): Preserve overflow infinities
7066 when intersecting with ranges from get_range_info.
7067 (operand_less_p): Handle overflow infinities correctly.
7068 (value_range_constant_singleton): Use vrp_operand_equal_p
7069 to handle overflow max/min correctly.
7070 (vrp_valueize): Likewise.
7071 (union_ranges): Likewise.
7072 (intersect_ranges): Likewise.
7073 (vrp_visit_phi_node): Improve iteration limitation to only
7074 apply when we'll possibly re-visit the PHI via a changed argument
7077 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
7079 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
7080 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
7081 rather than those that should not be built.
7083 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
7086 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
7088 2016-08-17 Richard Biener <rguenther@suse.de>
7090 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
7091 (verify_vssa): New function verifying virtual SSA form.
7092 (verify_ssa): Call it.
7093 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
7094 Do not apply loop-closed SSA handling to virtuals.
7095 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
7096 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
7097 when rewriting their symbol.
7098 (prepare_def_site_for): Likewise.
7099 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
7100 operands of moved stmts.
7102 2016-08-17 Richard Biener <rguenther@suse.de>
7104 PR tree-optimization/23855
7105 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
7106 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
7107 find guards to hoist. Do not update SSA form but rewrite virtuals
7108 into loop closed SSA.
7109 (find_loop_guard): Adjust to skip already hoisted guards. Do
7110 not mark virtuals for renaming or update SSA form.
7112 2016-08-17 Martin Liska <mliska@suse.cz>
7114 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
7115 a LONG_LONG_TYPE_SIZE comparison.
7116 * gcov-io.h: Remove macro definitions.
7117 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
7118 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
7121 2016-08-16 Jakub Jelinek <jakub@redhat.com>
7123 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
7124 that builtins not mentioned in bdesc_* arrays come first, then
7125 the ones mentioned in bdesc_* arrays in the order they appear in
7126 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
7127 IX86_BUILTIN__BDESC_*_LAST enumerator.
7128 (bdesc_mpx): Fix up a comment typo.
7129 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
7130 __builtin_ia32_vpcomneu[bwdq] builtins.
7131 (BDESC_VERIFY, BDESC_VERIFYS): Define.
7132 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
7133 enum ix86_builtins ordering.
7134 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
7135 for direct bdesc_* array member access instead of searching all the
7136 arrays until an fcode match is found.
7138 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
7140 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
7141 pattern as define_insn_and_split. Split insn before reload to
7143 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
7144 <shift_insn><mode>3_1.
7145 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
7146 <rotate_insn><mode>3_1.
7148 2016-08-16 David Malcolm <dmalcolm@redhat.com>
7151 * input.c (get_source_range_for_substring): Rename to...
7152 (get_source_location_for_substring): ...this, adding param
7153 "caret_idx", and converting output param from source_range * to
7155 (get_source_range_for_char): New function.
7156 (get_num_source_ranges_for_substring): Update comment to reflect
7158 (assert_char_at_range): Update to use get_source_range_for_char
7159 rather than get_source_range_for_substring.
7160 (test_lexer_string_locations_concatenation_2): Likewise.
7161 * substring-locations.h (get_source_range_for_substring): Rename
7163 (get_source_location_for_substring): ...this, and adding param
7164 "caret_idx", and converting output param from source_range * to
7167 2016-08-16 David Malcolm <dmalcolm@redhat.com>
7169 * input.c (class selftest::temp_source_file): Move to
7171 (selftest::temp_source_file::temp_source_file): Move to
7173 (selftest::temp_source_file::~temp_source_file): Likewise.
7174 * selftest.c (selftest::temp_source_file::temp_source_file): Move
7176 (selftest::temp_source_file::~temp_source_file): Likewise.
7177 * selftest.h (class selftest::temp_source_file): Move here from
7180 2016-08-16 Jakub Jelinek <jakub@redhat.com>
7183 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
7184 inlining, add cgraph edge for the added __builtin_unreachable call.
7187 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
7188 only cast it to SHWI for the final comparison.
7190 2016-08-16 Martin Liska <mliska@suse.cz>
7192 PR gcov-profile/36412
7193 * doc/gcov.texi: Document --hash-filenames(-x).
7194 * gcov.c (print_usage): Add the option.
7195 (process_args): Process the option, sort options alphabetically.
7196 (md5sum_to_hex): New function.
7197 (make_gcov_file_name): Do the md5sum and append it to a
7200 2016-08-16 Bin Cheng <bin.cheng@arm.com>
7202 PR tree-optimization/69848
7203 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
7204 and swtich operands to avoid additional NOT instruction.
7205 (vcond<v_cmp_mixed><mode>): Ditto.
7206 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
7208 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
7210 * doc/install.texi (*-*-solaris2*): Adjust latest change.
7212 2016-08-16 Richard Biener <rguenther@suse.de>
7214 PR tree-optimization/76783
7215 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
7216 BB visited flags at start.
7218 2016-08-16 Bin Cheng <bin.cheng@arm.com>
7220 PR tree-optimization/72817
7221 PR tree-optimization/73450
7222 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
7223 multiple_of_p for adjusted IV.base.
7225 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
7228 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
7229 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
7230 for !flag_finite_math_only or flag_signed_zeros.
7231 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
7232 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
7233 depend on flag_finite_math_only.
7234 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
7236 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
7237 (*ieee_smin<mode>3): Ditto.
7238 (*ieee_smax<mode>3): Ditto.
7239 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
7240 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
7242 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
7243 depend on flag_finite_math_only.
7244 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
7245 (*mmx_<code>v2sf3): Remove.
7246 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
7247 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
7248 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
7250 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
7252 PR rtl-optimization/73650
7253 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
7254 it is not a simple move.
7256 2016-08-15 Martin Liska <mliska@suse.cz>
7259 * gcc.c (do_spec_1): Call save_string with the right size.
7260 (save_string): Do an assert about string we copy.
7262 2016-08-15 Richard Biener <rguenther@suse.de>
7264 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
7265 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
7267 (pass_data_stv): Likewise.
7269 2016-08-15 Richard Biener <rguenther@suse.de>
7271 PR tree-optimization/73434
7272 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
7273 TBAA info on the base when forwarding a non-invariant address.
7275 2016-08-15 Jakub Jelinek <jakub@redhat.com>
7277 * dwarf2out.c (struct checksum_attributes): Add
7278 at_string_length_bit_size and at_string_length_byte_size fields.
7279 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
7280 and DW_AT_string_length_byte_size.
7281 (die_checksum_ordered): Handle at_string_length_bit_size and
7282 at_string_length_byte_size.
7283 (gen_array_type_die): For dwarf_version >= 5 emit
7284 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
7285 (adjust_string_types): For dwarf_version >= 5 remove
7286 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
7287 (resolve_addr): Likewise.
7290 * dwarf2out.c (string_types): New variable.
7291 (gen_array_type_die): Change early_dwarf handling of
7292 DW_AT_string_length, create DW_OP_call4 referencing the
7293 length var temporarily. Handle parameters that are pointers
7295 (adjust_string_types): New function.
7296 (gen_subprogram_die): Temporarily set string_types to local var,
7297 call adjust_string_types if needed.
7298 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
7300 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
7302 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
7304 * doc/install.texi (*-*-solaris2*): Fix version number and document
7305 requirement on GNU make for building libjava with the Solaris linker.
7307 2016-08-15 Martin Liska <mliska@suse.cz>
7308 Jakub Jelinek <jakub@redhat.com>
7310 PR tree-optimization/72824
7311 * tree-loop-distribution.c (const_with_all_bytes_same)
7312 <case VECTOR_CST>: Fix a typo.
7314 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
7317 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
7318 Renamed from _mm512_undefined_si512.
7319 (_mm_undefined_si512): New definition.
7321 2016-08-13 Richard Biener <rguenther@suse.de>
7323 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
7324 into PHIs and update the lattice for its def.
7326 2016-08-12 Jakub Jelinek <jakub@redhat.com>
7329 * ubsan.c (instrument_si_overflow): Pass true instead of false
7331 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
7332 of bbs. Return TODO_cleanup_cfg if any returned true.
7334 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7336 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
7337 ISA 3.0 MTVSRDD instruction.
7338 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
7341 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
7343 PR tree-optimization/71083
7344 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
7345 bitfield access when possible.
7347 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
7350 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
7351 sign-changing cast from a shorter unsigned type to a wider
7354 2016-08-12 Jakub Jelinek <jakub@redhat.com>
7356 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
7357 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
7358 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
7360 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7362 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
7363 Correct costs for vec_construct.
7365 2016-08-12 Bin Cheng <bin.cheng@arm.com>
7367 PR tree-optimization/69848
7368 * tree-vectorizer.h (enum vect_def_type): New condition reduction
7369 type CONST_COND_REDUCTION.
7370 * tree-vect-loop.c (vectorizable_reduction): Support new condition
7371 reudction type CONST_COND_REDUCTION.
7373 2016-08-12 Richard Biener <rguenther@suse.de>
7375 PR tree-optimization/57326
7376 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
7377 returning an SSA name.
7378 (phi_translate_1): When fully_constant_expression returns a NAME
7379 make sure we have a leader for it.
7381 2016-08-12 Martin Liska <mliska@suse.cz>
7382 Adam Fineman <afineman@afineman.com>
7384 * gcov.c (process_file): Create .gcov file when .gcda
7387 2016-08-12 Marek Polacek <polacek@redhat.com>
7390 * alias.c (find_base_value): Adjust fall through comment.
7391 * cfgexpand.c (expand_debug_expr): Likewise.
7392 * combine.c (find_split_point): Likewise.
7393 (expand_compound_operation): Likewise. Add FALLTHRU.
7394 (make_compound_operation): Adjust fall through comment.
7395 (canon_reg_for_combine): Add FALLTHRU.
7396 (force_to_mode): Adjust fall through comment.
7397 (simplify_shift_const_1): Likewise.
7398 (simplify_comparison): Likewise.
7399 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
7401 * config/aarch64/predicates.md: Likewise.
7402 * config/i386/i386.c (function_arg_advance_32): Likewise.
7403 (ix86_gimplify_va_arg): Likewise.
7404 (print_reg): Likewise.
7405 (ix86_print_operand): Likewise.
7406 (ix86_build_const_vector): Likewise.
7407 (ix86_expand_branch): Likewise.
7408 (ix86_sched_init_global): Adjust fall through comment.
7409 (ix86_expand_args_builtin): Add FALLTHRU.
7410 (ix86_expand_builtin): Likewise.
7411 (ix86_expand_vector_init_one_var): Likewise.
7412 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
7413 (rs6000_adjust_cost): Likewise.
7414 (insn_must_be_first_in_group): Likewise.
7415 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
7416 * dbxout.c (dbxout_symbol): Adjust fall through comment.
7417 * df-scan.c (df_uses_record): Likewise.
7418 * dojump.c (do_jump): Add FALLTHRU.
7419 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
7421 (resolve_args_picking_1): Adjust fall through comment.
7422 (loc_list_from_tree_1): Likewise.
7423 * expmed.c (make_tree): Likewise.
7424 * expr.c (expand_expr_real_2): Add FALLTHRU.
7425 (expand_expr_real_1): Likewise. Adjust fall through comment.
7426 * fold-const.c (const_binop): Adjust fall through comment.
7427 (fold_truth_not_expr): Likewise.
7428 (fold_cond_expr_with_comparison): Add FALLTHRU.
7429 (fold_binary_loc): Likewise.
7430 (contains_label_1): Adjust fall through comment.
7431 (multiple_of_p): Likewise.
7432 * gcov-tool.c (process_args): Add FALLTHRU.
7433 * genattrtab.c (check_attr_test): Likewise.
7434 (write_test_expr): Likewise.
7435 * genconfig.c (walk_insn_part): Likewise.
7436 * genpreds.c (validate_exp): Adjust fall through comment.
7437 (needs_variable): Likewise.
7438 * gensupport.c (get_alternatives_number): Add FALLTHRU.
7439 (subst_dup): Likewise.
7440 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
7441 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
7442 (gimplify_scan_omp_clauses): Add FALLTHRU.
7443 (goa_stabilize_expr): Likewise.
7444 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
7446 * hsa-gen.c (get_address_from_value): Likewise.
7447 * ipa-icf.c (sem_function::hash_stmt): Likewise.
7448 * ira.c (ira_setup_alts): Add FALLTHRU.
7449 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
7451 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
7452 * opts.c (common_handle_option): Likewise.
7453 * read-rtl.c (read_rtx_code): Likewise.
7454 * real.c (round_for_format): Likewise.
7455 * recog.c (asm_operand_ok): Likewise.
7456 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
7457 * reload1.c (set_label_offsets): Likewise.
7458 (eliminate_regs_1): Likewise.
7459 (reload_reg_reaches_end_p): Likewise.
7460 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
7461 (rtx_cost): Likewise.
7462 * sched-rgn.c (is_exception_free): Likewise.
7463 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
7464 * stor-layout.c (int_mode_for_mode): Likewise.
7465 * toplev.c (print_to_asm_out_file): Likewise.
7466 (print_to_stderr): Likewise.
7467 * tree-cfg.c (gimple_verify_flow_info): Likewise.
7468 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
7469 (chrec_fold_multiply): Likewise.
7470 (evolution_function_is_invariant_rec_p): Likewise.
7471 (for_each_scev_op): Likewise.
7472 * tree-data-ref.c (siv_subscript_p): Likewise.
7473 (get_references_in_stmt): Likewise.
7474 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
7475 (substitute_in_expr): Likewise.
7476 (type_cache_hasher::equal): Likewise.
7477 (walk_type_fields): Likewise.
7478 * var-tracking.c (adjust_mems): Add FALLTHRU.
7479 (set_dv_changed): Adjust fall through comment.
7480 * varasm.c (default_function_section): Add FALLTHRU.
7482 2016-08-12 Marek Polacek <polacek@redhat.com>
7485 * tree-complex.c (expand_complex_division): Add missing break.
7487 2016-08-12 Richard Biener <rguenther@suse.de>
7489 * passes.c (execute_todo): Do not push/pop TV_TODO.
7490 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
7491 (execute_one_pass): Likewise.
7492 * common.opt (ftime-report-details): New switch.
7493 * doc/invoke.texi (ftime-report-details): Document.
7494 * timevar.h (timer::print_row): Adjust signature.
7495 (timer::all_zero): New static helper.
7496 (timer::child_map_t): New typedef.
7497 (timer::time_var_def): Add children field.
7498 * timevar.c (timer::named_items::print): Adjust.
7499 (timer::~timer): Free timevar recorded children.
7500 (timer::pop_internal): When -ftime-report-details record
7501 time spent in sub-timevars.
7502 (timer::print_row): Adjust.
7503 (timer::print): Print sub-timevar stats, use all_zero.
7504 * timevar.def (TV_TODO): Remove.
7506 2016-08-12 Richard Biener <rguenther@suse.de>
7508 PR tree-optimization/72851
7509 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
7510 worklists to use bitmaps indexed in execution order.
7511 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
7512 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
7513 (cfg_blocks): Make a bitmap.
7514 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
7516 (cfg_blocks_empty_p): Adjust.
7517 (cfg_blocks_add): Likewise.
7518 (cfg_blocks_get): Likewise.
7519 (add_ssa_edge): Likewise.
7520 (add_control_edge): Likewise.
7521 (simulate_stmt): Likewise.
7522 (process_ssa_edge_worklist): Likewise.
7523 (simulate_block): Likewise.
7524 (ssa_prop_init): Compute PRE order and stmt UIDs.
7525 (ssa_prop_fini): Adjust.
7526 (ssa_propagate): Adjust.
7528 2016-08-12 Richard Biener <rguenther@suse.de>
7530 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
7531 the currently executable edges have fixed ranges. Always
7532 go through update_value_range.
7534 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
7538 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
7539 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
7540 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
7541 (LANG_HOOKS_DECLS): Add it.
7542 * langhooks.h (struct lang_hooks_for_decls): Add
7543 function_decl_defaulted. Const_tree-ify
7544 function_decl_explicit_p and function_decl_deleted_p.
7545 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
7546 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
7547 also at strict DWARF v5.
7550 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
7551 TYPE_QUAL_CONST in reference-typed decls.
7554 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
7555 in DW_OP_pieces, just enough to handle pointers to member
7557 (gen_remaining_tmpl_value_param_die_attribute): Use a location
7558 expression on DWARFv5 if a constant value doesn't work.
7560 2016-08-11 David Malcolm <dmalcolm@redhat.com>
7562 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
7563 * selftest.c (selftest::test_assertions): New function.
7564 (selftest::selftest_c_tests): New function.
7565 * selftest.h (selftest::selftest_c_tests): New declaration.
7567 2016-08-11 Richard Biener <rguenther@suse.de>
7568 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7570 PR rtl-optimization/72855
7571 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
7573 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7576 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
7577 (vsx_store_<mode>): Likewise.
7579 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
7581 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
7582 TImode CONST_WIDE_INT store.
7583 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
7585 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
7587 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
7588 mode if unaligned SSE load and store are optimal.
7590 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
7592 PR tree-optimization/71083
7593 * tree-predcom.c (ref_at_iteration): Correctly align the
7596 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7598 * config/s390/s390-builtin-types.def: Add INT128 types.
7599 * config/s390/s390-builtins.def: Add INT128 variants for the add
7600 sub low-level builtins dealing with TImode.
7601 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
7602 via subreg when expanding a builtin.
7603 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
7604 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
7606 * config/s390/vecintrin.h: Adjust builtin names accordingly.
7607 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
7608 ("vec_addc<mode>", "vec_addc_u128"): Merge to
7609 "vacc<bhfgq>_<mode>".
7610 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
7611 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
7612 ("vec_subc<mode>", "vec_subc_u128"): Merge to
7613 "vscbi<bhfgq>_<mode>".
7614 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
7615 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
7617 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7619 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
7621 2016-08-11 Bin Cheng <bin.cheng@arm.com>
7623 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
7625 (vcond<v_cmp_mixed><mode>): Ditto.
7626 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
7628 2016-08-11 Bin Cheng <bin.cheng@arm.com>
7630 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
7631 variable explicitly, also assert on it before use.
7633 2016-08-11 Richard Biener <rguenther@suse.de>
7635 PR tree-optimization/72772
7636 * cfgloopmanip.c (create_preheader): Use split_edge if there
7637 is a single loop entry, avoiding degenerate PHIs.
7639 2016-08-11 Richard Biener <rguenther@suse.de>
7641 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
7642 unconditional TODO_cleanup_cfg.
7643 (pass_thread_jumps::execute): Initialize loops, perform a CFG
7644 cleanup only if we threaded a jump.
7646 2016-08-11 Alan Modra <amodra@gmail.com>
7649 * lra-constraints.c (simplify_operand_subreg): Allow subreg
7650 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
7651 slow. Emit two reloads for slow mem case, first loading in
7652 fast innermode, then converting to required mode.
7654 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
7656 * config/rs6000/altivec.h (vec_extract_exp): New macro.
7657 (vec_extract_sig): New macro.
7658 (vec_insert_exp): New macro.
7659 (vec_test_data_class): New macro.
7660 (scalar_extract_exp): New macro.
7661 (scalar_extract_sig): New macro.
7662 (scalar_insert_exp): New macro.
7663 (scalar_test_data_class): New macro.
7664 (scalar_test_neg): New macro.
7665 (scalar_cmp_exp_gt): New macro.
7666 (scalar_cmp_exp_lt): New macro.
7667 (scalar_cmp_exp_eq): New macro.
7668 (scalar_cmp_exp_unordered): New macro.
7669 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
7670 to enforce constraint that operand is a 7-bit unsigned literal.
7671 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
7672 for power9 built-ins.
7673 (BU_P9V_VSX_2): Likewise.
7674 (BU_P9V_64BIT_VSX_2): Likewise.
7675 (VSEEDP): Add scalar extract exponent support.
7676 (VSEESP): Add scalar extract signature support.
7677 (VSTDCNDP): Add scalar test negative support.
7678 (VSTDCNSP): Likewise.
7679 (VSIEDP): Add scalar insert exponent support.
7680 (VSCEDPGT): Add scalar compare exponent greater than support.
7681 (VSCEDPLT): Add scalar compare exponent less than support.
7682 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
7683 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
7684 (VSTDCDP): Add scalar test data class support.
7685 (VSTDCSP): Likewise.
7686 (VSEEDP): Add overload support for scalar extract exponent
7688 (VSESDP): Add overload support for scalar extract signature
7690 (VSTDCN): Add overload support for scalar test negative
7692 (VSTDCNDP): Add overload support for scalar test negative
7694 (VSTDCNSP): Add overload support for scalar test negative
7696 (VSIEDP): Add overload support for scalar insert exponent
7698 (VSTDC): Add overload support for scalar test data class
7700 (VSTDCDP): Add overload support for scalar test data class
7702 (VSTDCSP): Add overload support for scalar test data class
7704 (VSCEDPGT): Add overload support for scalar compare exponent
7705 greater than operation.
7706 (VSCEDPLT): Add overload support for scalar compare exponent
7707 less than operation.
7708 (VSCEDPEQ): Add overload support for scalar compare exponent
7709 test-for-equality operation.
7710 (VSCEDPUO): Add overload support for scalar compare exponent
7711 test-for-unordered operation.
7712 (VEEDP): Add vector extract exponent support.
7714 (VESDP): Add vector extract significand support.
7716 (VIEDP): Add vector insert exponent support.
7718 (VTDCDP): Add vector test data class support.
7720 (VES): Add overload support for vector extract significand operation.
7723 (VEE): Add overload support for vector extract exponent operation.
7726 (VTDC): Add overload support for vector test data class operation.
7729 (VIE): Add overload support for vector insert exponent operation.
7732 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7733 overloaded binary floating point functions.
7734 (altivec_resolve_overloaded_builtin): Improve error messages to
7735 distinguish between functions not supported in the current
7736 compiler configuration and functions that were invoked with an
7737 invalid parameter combination, and include the built-in function
7738 name in both error messages.
7739 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
7741 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
7743 (rs6000_expand_binop_builtin): Add check to enforce that argument
7744 2 of the test data class operations is a 7-bit unsigned literal.
7745 (rs6000_invalid_builtin): Add code to issue an error message if a
7746 built-in function that requires the power9_vector and -m32
7747 command-line options is compiled without these options.
7748 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
7749 (UNSPEC_VSX_SXSIGDP): New value.
7750 (UNSPEC_VSX_SXSIGPDP): New value.
7751 (UNSPEC_VSX_SIEXPDP): New value.
7752 (UNSPEC_VSX_SCMPEXPDP): New value.
7753 (UNSPEC_VSX_STSTDC): New value.
7754 (UNSPEC_VSX_VXEXP): New value.
7755 (UNSPEC_VSX_VXSIG): New value.
7756 (UNSPEC_VSX_VIEXP): New value.
7757 (UNSPEC_VSX_VTSTDC): New value.
7758 (xsxexpdp): New insn for scalar extract exponent.
7759 (xsxsigdp): New insn for scalar extract significand.
7760 (xsiexpdp): New insn for scalar insert exponent.
7761 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
7762 (*xscmpexpdp): New insn for scalar compare exponents.
7763 (xststdc<Fvsx): New expansion for both single- and
7764 double-precision scalar test data class operations.
7765 (xststdcneg<Fvsx>): New expansion for both single- and
7766 double-precision scalar test for negative value operations.
7767 (*xststdc<Fvsx>): New insn for scalar test data class
7769 (xvxexp<VSs>): New insn for single- and double-precision
7770 vector extract exponent operation.
7771 (xvxsig<VSs>): New insn for single- and double-precision
7772 vector extract significand operation.
7773 (xviexp<VSs>): New insn for single- and double-precision
7774 vector insert exponent operation.
7775 (xvtstdc<VSs>): New insn for single- and double-precision
7776 vector test data class operation.
7777 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7778 built-in functions to represent the Power9 binary floating-point
7779 support instructions.
7781 2016-08-10 bin cheng <bin.cheng@arm.com>
7783 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
7785 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
7786 Renlin Li <renlin.li@arm.com>
7787 Bin Cheng <bin.cheng@arm.com>
7789 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
7790 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
7791 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
7792 (aarch64_vcond_internal<mode><mode>): Delete pattern.
7793 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
7794 (vcond<v_cmp_result><mode>): Ditto.
7795 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
7796 (vcondu<mode><mode>): Ditto.
7797 (vcond<v_cmp_mixed><mode>): New pattern.
7798 (vcondu<mode><v_cmp_mixed>): New pattern.
7799 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
7800 of aarch64_vcond_internal.
7802 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
7803 Renlin Li <renlin.li@arm.com>
7804 Bin Cheng <bin.cheng@arm.com>
7806 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
7807 (vec_cmp<mode><v_cmp_result>): New pattern.
7808 (vec_cmpu<mode><mode>): New pattern.
7809 (vcond_mask_<mode><v_cmp_result>): New pattern.
7811 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
7813 PR tree-optimization/71734
7814 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
7815 REF_LOOP, invoke ref_indep_loop_p_1.
7816 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
7817 to ref_indep_loop_p.
7818 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
7819 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
7820 is inside LOOP, do not cache dpendence value for loops with
7822 (ref_indep_loop_p_2): Delete function.
7823 (can_sm_ref_p): Pass LOOP as additional argument to
7826 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
7829 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
7830 being an offsettable address.
7832 2016-08-10 Martin Liska <mliska@suse.cz>
7834 PR gcov-profile/58306
7835 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
7836 atomic variants of profile update functions.
7838 2016-08-10 Martin Liska <mliska@suse.cz>
7840 Cherry picked (and modified) from google-4_7 branch
7841 2012-12-26 Rong Xu <xur@google.com>
7842 * common.opt (fprofile-update): Add new flag.
7843 * coretypes.h: Define enum profile_update.
7844 * doc/invoke.texi: Document -fprofile-update.
7845 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
7846 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
7847 * tree-profile.c (gimple_init_edge_profiler): Generate
7848 also atomic profiler update.
7849 (gimple_gen_edge_profiler): Likewise.
7851 2016-08-10 David Malcolm <dmalcolm@redhat.com>
7853 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
7854 stack_usage_file to NULL after fclose calls.
7856 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7859 * reload.c (push_reload): Compute subreg_in_class for
7860 subregs of constants and plus expressions. Remove special
7861 handling of SYMBOL_REFs.
7863 2016-08-10 Alan Modra <amodra@gmail.com>
7866 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
7867 SImode for TARGET_E500_DOUBLE when given SImode.
7869 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
7871 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
7872 unused variable __O.
7874 2016-08-09 Martin Liska <mliska@suse.cz>
7876 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
7877 _gcov_reset to __gcov_reset.
7878 * doc/gcov-tool.texi: Fix typo.
7880 2016-08-09 Martin Liska <mliska@suse.cz>
7882 * value-prof.c (gimple_divmod_values_to_profile): Do not
7883 instrument MOD histogram if a value is not a SSA name.
7885 2016-08-09 Martin Liska <mliska@suse.cz>
7887 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
7890 2016-08-09 Renlin Li <renlin.li@arm.com>
7893 * calls.c (prepare_call_address): Convert funexp to Pmode when
7895 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
7896 (sibcall_value): Likewise.
7898 2016-08-09 Marek Polacek <polacek@redhat.com>
7901 * cselib.c (cselib_expand_value_rtx_1): Add return.
7902 * gengtype.c (dbgprint_count_type_at): Likewise.
7903 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
7904 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
7906 2016-08-09 Martin Jambor <mjambor@suse.cz>
7909 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
7910 if instance is a MEM_REF.
7912 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
7915 * config/i386/i386.md (*movtf_internal): Use
7916 lra_in_progress || reload_completed instead of !can_create_pseudo_p
7917 in the insn constraint.
7918 (*movxf_internal): Ditto.
7919 (*movdf_internal): Ditto.
7920 (*movsf_internal): Ditto.
7922 2016-08-09 Bin Cheng <bin.cheng@arm.com>
7924 PR tree-optimization/72772
7925 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
7928 2016-08-09 Bin Cheng <bin.cheng@arm.com>
7930 PR tree-optimization/72772
7931 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
7933 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
7934 parameter STOP and update calls. Move expand_simple_operations
7935 function call from here...
7936 (simplify_using_initial_conditions): ...to here. Delete parameter
7938 (tree_simplify_using_condition): Delete parameter STOP.
7939 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
7940 simplify_using_initial_conditions.
7942 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
7945 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
7946 Use create_tmp_var_raw instead of create_tmp_var.
7948 2016-08-09 Richard Biener <rguenther@suse.de>
7950 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
7951 Treat same SSA names related.
7953 2016-08-09 Jakub Jelinek <jakub@redhat.com>
7955 PR tree-optimization/72824
7956 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
7957 real_zerop is not negative.
7959 2016-08-09 Richard Biener <rguenther@suse.de>
7961 PR tree-optimization/71802
7962 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
7963 all merge opportunities with the predecessor.
7965 2016-08-09 Richard Biener <rguenther@suse.de>
7968 * ipa-prop.c (ipa_modify_formal_parameters): Build
7969 parameter types with natural alignment also for the
7972 2016-08-08 Andi Kleen <ak@linux.intel.com>
7974 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
7976 2016-08-08 David Malcolm <dmalcolm@redhat.com>
7979 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
7980 do-nothing langhook.
7981 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
7982 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
7983 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
7984 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
7986 2016-08-08 David Malcolm <dmalcolm@redhat.com>
7989 * input.c: Ensure that HAVE_ICONV is defined.
7991 2016-08-08 Jakub Jelinek <jakub@redhat.com>
7994 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
7995 private vars for lastprivate and for linear iterator.
7998 * omp-simd-clone.c: Include varasm.h.
7999 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
8000 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
8001 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
8002 update function name.
8004 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8006 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
8007 (avr_diagnose_devicespecs_error): Remove.
8008 (avr_devicespecs_file): Remove composing absolute path for specfile
8009 and its verbose info. Remove conditions to check specs-file,
8011 2016-08-08 Jakub Jelinek <jakub@redhat.com>
8013 PR rtl-optimization/72821
8014 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
8015 just return false for them.
8017 2016-08-08 Alan Modra <amodra@gmail.com>
8020 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
8021 toc refs created during reload. Update function comment.
8023 2016-08-08 Alan Modra <amodra@gmail.com>
8026 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
8027 alternatives. Put loads first, then stores, and reg/reg moves
8028 within same class later. Delete attr length.
8030 2016-08-08 Alan Modra <amodra@gmail.com>
8033 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
8034 (mem_operand_ds_form): New predicate.
8035 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
8036 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
8037 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
8038 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
8039 (extendsfdf2_fpr): Replace o constraint with wY.
8041 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
8043 * tree-ssa-threadbackward.c: Include tree-inline.h
8044 (profitable_jump_thread_path): Use estimate_num_insns to estimate
8045 size of copied block; for cold paths reduce duplication.
8046 (find_jump_threads_backwards): Remove redundant tests.
8047 (pass_thread_jumps::gate): Enable for -Os.
8049 2016-08-07 Jakub Jelinek <jakub@redhat.com>
8052 * stor-layout.c (layout_decl): Fix up formatting.
8053 (relayout_decl): Allow DECL to be FIELD_DECL.
8055 2016-08-07 Alan Modra <amodra@gmail.com>
8057 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
8059 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
8061 * data-streamer-in.c (streamer_read_wide_int): New.
8062 (streamer_read_widest_int): Renamed function.
8063 * data-streamer-out.c (streamer_write_wide_int): New
8064 (streamer_write_widest_int): Renamed function.
8065 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
8067 (input_cfg): Call renamed function.
8068 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
8070 (output_cfg): Call renamed function.
8071 * data-streamer.h: Add declarations.
8073 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8075 * tree-ssa-ccp.c (extend_mask): New param sgn.
8076 Remove ORing with wi::mask.
8077 (get_default_value): Adjust call to extend_mask to pass sign.
8078 (evaluate_stmt): Likewise.
8080 2016-08-06 Jakub Jelinek <jakub@redhat.com>
8082 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
8085 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8087 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
8088 transform if operand's type is pointer to function or method.
8090 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
8092 PR tree-optimization/18046
8093 * tree-ssa-threadedge.c: Include cfganal.h.
8094 (simplify_control_statement_condition): If simplifying a
8095 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
8096 with the dominating ASSERT_EXPR before handing it off to VRP.
8097 Mention that a CASE_LABEL_EXPR may be returned.
8098 (thread_around_empty_blocks): Adjust to handle
8099 simplify_control_statement_condition() returning a
8101 (thread_through_normal_block): Likewise.
8102 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
8103 a switch statement by trying to determine which case label
8106 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
8108 PR rtl-optimization/69847
8109 * lra-constraints.c (process_invariant_for_inheritance): Save
8110 pattern instead of src.
8111 (remove_inheritance_pseudos): Use the pattern. Add assert.
8113 2016-08-05 David Malcolm <dmalcolm@redhat.com>
8115 * input.c (string_concat::string_concat): New constructor.
8116 (string_concat_db::string_concat_db): New constructor.
8117 (string_concat_db::record_string_concatenation): New method.
8118 (string_concat_db::get_string_concatenation): New method.
8119 (string_concat_db::get_key_loc): New method.
8120 (class auto_cpp_string_vec): New class.
8121 (get_substring_ranges_for_loc): New function.
8122 (get_source_range_for_substring): New function.
8123 (get_num_source_ranges_for_substring): New function.
8124 (class selftest::lexer_test_options): New class.
8125 (struct selftest::lexer_test): New struct.
8126 (class selftest::ebcdic_execution_charset): New class.
8127 (selftest::ebcdic_execution_charset::s_singleton): New variable.
8128 (selftest::lexer_test::lexer_test): New constructor.
8129 (selftest::lexer_test::~lexer_test): New destructor.
8130 (selftest::lexer_test::get_token): New method.
8131 (selftest::assert_char_at_range): New function.
8132 (ASSERT_CHAR_AT_RANGE): New macro.
8133 (selftest::assert_num_substring_ranges): New function.
8134 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
8135 (selftest::assert_has_no_substring_ranges): New function.
8136 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
8137 (selftest::test_lexer_string_locations_simple): New function.
8138 (selftest::test_lexer_string_locations_ebcdic): New function.
8139 (selftest::test_lexer_string_locations_hex): New function.
8140 (selftest::test_lexer_string_locations_oct): New function.
8141 (selftest::test_lexer_string_locations_letter_escape_1): New function.
8142 (selftest::test_lexer_string_locations_letter_escape_2): New function.
8143 (selftest::test_lexer_string_locations_ucn4): New function.
8144 (selftest::test_lexer_string_locations_ucn8): New function.
8145 (selftest::uint32_from_big_endian): New function.
8146 (selftest::test_lexer_string_locations_wide_string): New function.
8147 (selftest::uint16_from_big_endian): New function.
8148 (selftest::test_lexer_string_locations_string16): New function.
8149 (selftest::test_lexer_string_locations_string32): New function.
8150 (selftest::test_lexer_string_locations_u8): New function.
8151 (selftest::test_lexer_string_locations_utf8_source): New function.
8152 (selftest::test_lexer_string_locations_concatenation_1): New
8154 (selftest::test_lexer_string_locations_concatenation_2): New
8156 (selftest::test_lexer_string_locations_concatenation_3): New
8158 (selftest::test_lexer_string_locations_macro): New function.
8159 (selftest::test_lexer_string_locations_stringified_macro_argument):
8161 (selftest::test_lexer_string_locations_non_string): New function.
8162 (selftest::test_lexer_string_locations_long_line): New function.
8163 (selftest::test_lexer_char_constants): New function.
8164 (selftest::input_c_tests): Call the new test functions once per
8165 case within the line_table test matrix.
8166 * input.h (struct string_concat): New struct.
8167 (struct location_hash): New struct.
8168 (class string_concat_db): New class.
8169 * substring-locations.h: New header.
8171 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
8173 PR tree-optimization/72810
8174 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
8175 the type of the case labels when truncating.
8177 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
8180 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
8181 (aarch64_fp16_ptr_type_node): Likewise.
8182 * config/aarch64/aarch64-simd-builtins.c
8183 (aarch64_fp16_ptr_type_node): Define.
8184 (aarch64_init_fp16_types): New, refactored out of...
8185 (aarch64_init_builtins): ...here, update to call
8186 aarch64_init_fp16_types.
8187 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
8189 (aapcs_vfp_sub_candidate): Likewise.
8191 2016-08-05 Martin Liska <mliska@suse.cz>
8192 Joshua Cranmer <Pidgeot18@gmail.com>
8194 * gcov.c (line_t::has_block): New function.
8195 (enum loop_type): New enum.
8196 (handle_cycle): New function.
8197 (unblock): Likewise.
8198 (circuit): Likewise.
8199 (get_cycles_count): Likewise.
8200 (accumulate_line_counts): Use new loop detection algorithm.
8202 2016-08-05 Martin Liska <mliska@suse.cz>
8204 * gcov.c (output_intermediate_file): Rename
8205 function_info::line_next to next_file_fn.
8206 (process_file): Likewise.
8207 (read_graph_file): Likewise.
8208 (accumulate_line_counts): Likewise.
8209 (output_lines): Likewise.
8211 2016-08-05 Richard Biener <rguenther@suse.de>
8213 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
8214 restriction on threading to a loop header.
8216 2016-08-05 Richard Biener <rguenther@suse.de>
8218 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
8219 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
8220 adjust loop info accordingly.
8222 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
8224 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
8225 before folding call to __builtin_constant_p with parameters to false.
8227 2016-08-05 Alan Modra <amodra@gmail.com>
8229 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
8230 code accidentally committed 2016-05-02 providing class when given
8233 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
8235 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
8236 the case label ranges that partially overlap with OP's value
8239 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
8242 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
8243 Cast builtin function result to __mmask16 instead of __mmask8.
8244 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
8245 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
8246 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
8248 2016-08-04 David Malcolm <dmalcolm@redhat.com>
8250 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
8251 (ASSERT_TRUE_AT): New macro.
8252 (ASSERT_FALSE): Reimplement in terms of...
8253 (ASSERT_FALSE_AT): New macro.
8254 (ASSERT_STREQ_AT): Fix typo in comment.
8256 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
8258 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
8259 labels are exhaustive, designate the label with the widest
8260 range to be the default label.
8262 2016-08-04 Andrew Pinski <apinski@cavium.com>
8264 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
8265 (thunderx_tunings): Use thunderx_vector_cost instead of
8266 generic_vector_cost.
8268 2016-08-04 Martin Liska <mliska@suse.cz>
8270 * gcov.c (main): Fix GNU coding style.
8271 (output_intermediate_file): Likewise.
8272 (process_file): Likewise.
8273 (generate_results): Likewise.
8274 (release_structures): Likewise.
8275 (create_file_names): Likewise.
8276 (find_source): Likewise.
8277 (read_graph_file): Likewise.
8278 (find_exception_blocks): Likewise.
8279 (canonicalize_name): Likewise.
8280 (make_gcov_file_name): Likewise.
8281 (mangle_name): Likewise.
8282 (accumulate_line_counts): Likewise.
8283 (output_branch_count): Likewise.
8284 (read_line): Likewise.
8286 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8288 PR rtl-optimization/71779
8289 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
8290 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
8291 or if it was truncated.
8293 PR rtl-optimization/70903
8294 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
8296 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
8298 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
8299 accessing SSA_NAME_PTR_INFO.
8301 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
8304 * common/config/avr/avr-common.c (avr_option_optimization_table)
8305 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
8307 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
8310 * config/avr/avr.md: New pattern to work around do_store_flag
8311 generating shift instructions for bit extractions.
8313 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
8315 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
8317 (add_equivalence): Likewise.
8318 (get_value_range): Allocate value range with vrp_value_range_pool.
8319 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
8320 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
8322 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
8324 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
8325 the default for the rs6000 port.
8327 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
8330 * calls.c (special_function_p): Remove special handling of
8331 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
8332 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
8333 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
8335 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
8338 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
8339 Don't stop on regular insns.
8341 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
8343 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
8344 size to DImode boundary.
8345 (nvptx_propagate): Likewise.
8347 2016-08-03 Alan Modra <amodra@gmail.com>
8349 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
8350 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
8351 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
8352 from -mefficient-unaligned-vector. Note that this affects fp too.
8354 2016-08-03 Alan Modra <amodra@gmail.com>
8356 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
8359 2016-08-03 Alan Modra <amodra@gmail.com>
8361 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
8362 to a reg. Localize vars.
8364 2016-08-03 Alan Modra <amodra@gmail.com>
8366 * config/rs6000/rs6000.opt: Remove negatives from help strings
8369 2016-08-03 Alan Modra <amodra@gmail.com>
8371 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
8372 Delete duplicated code.
8374 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
8377 * lra-spills.c (regno_in_use_p): New.
8378 (lra_final_code_change): Use it.
8380 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
8382 PR rtl-optimization/69847
8383 * lra-int.h (struct lra-reg): Use restore_rtx instead of
8385 (lra_rtx_hash): New.
8386 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
8388 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
8389 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
8390 * lra-spills.c (lra_final_code_change): Don't delete insn when the
8391 next insn is USE with the same reg as the current insn source.
8392 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
8394 (lra_constraints_init): Call initiate_invariants.
8395 (lra_constraints_finish): Call finish_invariants.
8396 (struct invariant, invariant_t, invariant_ptr_t): New.
8397 (const_invariant_ptr_t, invariants, invariants_pool): New.
8398 (invariant_table, invariant_hash, invariant_eq_p): New.
8399 (insert_invariant, initiate_invariants, finish_invariants): New.
8400 (clear_invariants, invalid_invariant_regs): New.
8401 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
8402 instead of restore_regno.
8403 (invariant_p, process_invariant_for_inheritance): New.
8404 (inherit_in_ebb): Implement invariant inheritance.
8405 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
8406 (remove_inheritance_pseudos): Implement undoing invariant
8408 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
8409 instead of restore_regno.
8410 * lra-assigns.c (regno_live_length): New.
8411 (reload_pseudo_compare_func): Use regno_live_length.
8412 (assign_by_spills): Use restore_rtx instead of restore_regno.
8413 (lra_assign): Ditto. Initiate regno_live_length.
8415 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
8417 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
8418 __builtin_aarch64_fmindf.
8420 2016-08-02 Bin Cheng <bin.cheng@arm.com>
8422 PR tree-optimization/34114
8423 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
8424 information for more control IVs.
8426 2016-08-02 Bin Cheng <bin.cheng@arm.com>
8428 PR tree-optimization/34114
8429 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
8430 PLUS_EXPR case. Handle SSA_NAME case.
8432 2016-08-02 Tamar Christina <tamar.christina@arm.com>
8434 * config/aarch64/aarch64-simd-builtins.def
8435 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
8436 (__builtin_aarch64_fmaxdf): Likewise.
8437 (__builtin_aarch64_smin_nandf): Likewise.
8438 (__builtin_aarch64_smax_nandf): Likewise.
8439 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
8440 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
8441 (<fmaxmin><mode>3): ...this.
8442 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
8443 (vminnm_f64): Likewise.
8444 (vmin_f64): Likewise.
8445 (vmax_f64): Likewise.
8446 * config/aarch64/iterators.md (FMAXMIN): Merge with...
8447 (FMAXMIN_UNS): ...this.
8448 (fmaxmin): Merged with
8449 (fmaxmin_op): ...this...
8450 (maxmin_uns_op): ...in to this.
8452 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8454 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8455 Add support for vec_extract on vector float, vector int, vector
8456 short, and vector char vector types.
8457 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8458 vector float, vector int, vector short, and vector char
8459 optimizations on 64-bit ISA 2.07 systems for both constant and
8460 variable element numbers.
8461 (rs6000_split_vec_extract_var): Likewise.
8462 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
8463 Altivec registers on ISA 2.07 and above.
8464 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
8465 which never was matched due to the split occuring before register
8466 allocation (and the code would not have worked on little endian
8467 systems if it did match). Allow extracts to go to the Altivec
8468 registers if ISA 2.07 (power8). Change from using "" around the
8469 C++ code to using {}'s.
8470 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
8471 vec_extracts when the vector is in memory.
8472 (vsx_extract_v4sf_var): New insn to optimize vector float
8473 vec_extracts when the element number is variable on 64-bit ISA
8475 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
8476 for 64-bit ISA 2.07 as well as ISA 3.0.
8477 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
8478 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
8479 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
8480 optimize vector int, vector short, and vector char vec_extracts
8481 when the vector is in memory.
8482 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
8483 optimize vector int, vector short, and vector char vec_extracts
8484 when the element number is variable.
8486 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
8489 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
8490 does not overlap with other symbol flags.
8492 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
8494 * config/aarch64/aarch64.h (aarch64_frame):
8495 Remove padding0 and hardfp_offset. Add locals_offset,
8496 initial_adjust, callee_adjust, callee_offset and final_adjust.
8497 * config/aarch64/aarch64.c (aarch64_layout_frame):
8498 Remove unused padding0 and hardfp_offset initializations.
8499 Choose frame layout and set frame variables accordingly.
8500 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
8501 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
8502 (aarch64_pop_regs): Likewise.
8503 (aarch64_expand_prologue): Remove all decision code, just emit
8504 prolog according to frame variables.
8505 (aarch64_expand_epilogue): Remove all decision code, just emit
8506 epilog according to frame variables.
8507 (aarch64_initial_elimination_offset): Use offset to local/arg area.
8509 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
8512 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
8513 fix_debug_reg_uses after changing source register mode to
8514 V1TImode if source register is undefined.
8516 2015-08-01 Alan Hayward <alan.hayward@arm.com>
8518 PR tree-optimization/71818
8519 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
8520 with non invariant evolutions
8522 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
8525 * config/avr/avr.md (length) [branch]: Correct insn length
8526 attribute for forward branches.
8528 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
8530 * doc/extend.texi (AVR Built-in Functions): Document
8532 * config/avr/builtins.def (NOPS): New.
8533 * config/avr/avr.c (avr_expand_nops): New static function.
8534 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
8536 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8538 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
8539 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
8542 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
8544 * config/aarch64/aarch64.c (vulcan_tunings): Update
8545 vulcan L1 cache_line_size.
8547 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
8549 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
8550 function that takes a vector memory address, a hard register, an
8551 element number and a temporary base register, and recreates an
8552 address that points to the appropriate element within the vector.
8553 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
8554 (rs6000_split_vec_extract_var): Add support for the target of a
8555 vec_extract with variable element number being a scalar memory
8557 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
8559 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
8560 vsx_extract_<mode>_load insn with a new insn that optimizes
8561 storing either element to a memory location, using scratch
8562 registers to pick apart the vector and reconstruct the address.
8563 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
8564 (vsx_extract_<mode>_store): Rework alternatives to more correctly
8565 support Altivec registers. Add support for ISA 3.0 Altivec d-form
8567 (vsx_extract_<mode>_var): Add support for extracting a variable
8568 element number from memory.
8570 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
8572 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
8573 when testing for compares against constants of the form 0xabab.
8575 2016-07-29 Bin Cheng <bin.cheng@arm.com>
8577 PR tree-optimization/57558
8578 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
8580 (vect_loop_versioning): Support versioning with niter assumptions.
8581 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
8582 (vect_get_loop_niters): New parameter. Reimplement to support
8583 assumptions in loop niter info.
8584 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
8585 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
8586 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
8587 Support loop versioning for niters.
8588 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
8589 (vect_free_loop_info_assumptions): New function.
8590 (vectorize_loops): Free loop niter info for loops with flag
8591 LOOP_F_ASSUMPTIONS set if vectorization failed.
8592 * tree-vectorizer.h (struct _loop_vec_info): New field
8593 num_iters_assumptions.
8594 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
8595 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
8596 (LOOP_REQUIRES_VERSIONING): New macro.
8597 (vect_free_loop_info_assumptions): New decl.
8599 2016-07-29 Bin Cheng <bin.cheng@arm.com>
8601 * cfgloop.h (struct loop): New field constraints.
8602 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
8603 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
8605 * cfgloop.c (alloc_loop): Initialize new field.
8606 * cfgloopmanip.c (copy_loop_info): Copy constraints.
8607 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
8608 Adjust niter analysis wrto loop constraints.
8609 * doc/loop.texi (@node Number of iterations): Add description for loop
8612 2016-07-29 Marek Polacek <polacek@redhat.com>
8615 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
8616 (ix86_expand_round_builtin): Likewise.
8618 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
8619 Georg-Johann Lay <avr@gjlay.de>
8621 PR rtl-optimization/71976
8622 * combine.c (get_last_value): Return 0 if the argument for which
8623 the function is called has a wider mode than the recorded value.
8625 2016-07-29 Marek Polacek <polacek@redhat.com>
8628 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
8629 (altivec_expand_st_builtin): Likewise.
8631 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
8633 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
8634 introduced in r238381.
8636 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
8639 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
8640 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
8642 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
8644 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
8646 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8647 Add support for vec_extract of vector double or vector long having
8648 a variable element number on 64-bit ISA 2.07 systems or newer.
8649 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
8651 (rs6000_split_vec_extract_var): New function to split a
8652 vec_extract built-in function with variable element number.
8653 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
8655 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
8656 (UNSPEC_VSX_EXTRACT): Likewise.
8657 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
8658 direct move instructions to be generated on 64-bit ISA 2.07
8659 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
8661 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
8662 arguments for vec_extract variable element.
8663 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
8664 vec_extract with variable element on V2DFmode and V2DImode
8666 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
8667 -mupper-regs-df requirement, since it isn't needed.
8668 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
8669 do direct moves on 64-bit systems, which allows optimization of
8670 vec_extract on 64-bit ISA 2.07 systems and newer.
8672 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
8673 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
8675 * config/aarch64/aarch64.md
8676 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
8678 (<optab>qihi2_aarch64): Likewise, and split into two.
8679 (extendqihi2_aarch64): New.
8680 (zero_extendqihi2_aarch64): New.
8681 * config/aarch64/iterators.md (ldrxt): Remove.
8682 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
8685 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
8687 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
8689 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
8691 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
8692 (aarch64_push_reg): New function to push 1 or 2 registers.
8693 (aarch64_pop_reg): New function to pop 1 or 2 registers.
8694 (aarch64_expand_prologue): Use aarch64_push_regs.
8695 (aarch64_expand_epilogue): Use aarch64_pop_regs.
8697 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
8699 PR tree-optimization/71734
8700 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
8701 attribute instead of REF_LOOP and use it.
8702 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
8703 set it for Loops having non-zero safelen attribute.
8704 (ref_indep_loop_p): Pass zero as initial value for safelen.
8706 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
8710 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
8711 call using chkp_gimple_call_builtin_p.
8712 (chkp_copy_bounds_for_assign): Likewise.
8714 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8716 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
8717 * config/arm/arm-protos.h (struct tune_params): Likewise.
8718 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8719 (cortex_a9_sched_adjust_cost): Likewise.
8720 (fa726te_sched_adjust_cost): Likewise.
8721 (arm_adjust_cost): Likewise.
8722 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
8723 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
8724 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
8725 * config/i386/i386.c (ix86_adjust_cost): Likewise.
8726 * config/ia64/ia64.c: Likewise.
8727 * config/m68k/m68k.c: Likewise.
8728 * config/mep/mep.c (mep_adjust_cost): Likewise.
8729 * config/microblaze/microblaze.c (microblaze_adjust_cost):
8731 * config/mips/mips.c (mips_adjust_cost): Likewise.
8732 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
8734 * config/pa/pa.c (pa_adjust_cost): Likewise.
8735 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
8736 (rs6000_debug_adjust_cost): Likewise.
8737 * config/sh/sh.c (sh_adjust_cost): Likewise.
8738 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
8739 (hypersparc_adjust_cost): Likewise.
8740 (sparc_adjust_cost): Likewise.
8741 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
8742 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
8743 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
8745 * config/visium/visium.c (visium_adjust_cost): Likewise.
8746 * doc/tm.texi: Regenerate.
8747 * haifa-sched.c (dep_cost_1): Adjust.
8748 * target.def: Merge adjust_cost and adjust_cost_2.
8750 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8752 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
8754 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8756 * store-motion.c (struct st_expr): Make pattern_regs a vector.
8757 (extract_mentioned_regs): Append to a vector instead of
8758 returning a rtx_expr_list.
8759 (st_expr_entry): Adjust.
8760 (free_st_expr_entry): Likewise.
8761 (store_ops_ok): Likewise.
8762 (store_killed_in_insn): Likewise.
8763 (find_moveable_store): Likewise.
8765 2016-07-28 Martin Liska <mliska@suse.cz>
8767 PR gcov-profile/68025
8768 * tree-profile.c (tree_profiling): Respect
8769 no_profile_instrument_function attribute.
8770 * doc/extend.texi: Document no_profile_instrument_function
8773 2016-07-28 Martin Liska <mliska@suse.cz>
8775 PR rtl-optimization/70944
8776 * combine.c (make_compound_operation):
8777 Do not allow make_compound_operation for vector mode
8779 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
8782 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
8783 before calling get_ops.
8785 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
8787 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
8788 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
8789 (BITS_PER_UNIT_LOG): Remove.
8790 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
8791 * expr.c (expand_assignment): Likewise.
8792 * stor-layout.c (initialize_sizetypes): Likewise.
8794 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
8796 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
8797 signature of rs6000_expand_vector_extract so that the element
8798 number is a RTX instead of a constant integer.
8799 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
8801 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
8802 (altivec_expand_vec_ext_builtin): Likewise.
8803 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
8804 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
8805 MFVSRLD instruction.
8807 2016-07-27 David Malcolm <dmalcolm@redhat.com>
8809 * input.c (get_pure_location): Move here from tree.c.
8810 (make_location): Likewise. Add header comment.
8811 (selftest::test_accessing_ordinary_linemaps): Verify
8812 pure_location_p, make_location, get_location_from_adhoc_loc and
8814 * input.h (get_pure_location): Move declaration here from tree.h.
8815 (get_finish): Likewise for inline function.
8816 (make_location): Likewise for declaration.
8817 * tree.c (get_pure_location): Move to input.c.
8818 (make_location): Likewise.
8819 * tree.h (get_pure_location): Move declaration to tree.h.
8820 (get_finish): Likewise for inline function.
8821 (make_location): Likewise for declaration.
8823 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8826 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
8828 2016-07-27 David Malcolm <dmalcolm@redhat.com>
8830 * system.h (STATIC_ASSERT): Use static_assert if building
8833 2016-07-27 Richard Biener <rguenther@suse.de>
8835 PR tree-optimization/72517
8836 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8837 Revert change to not compute read-read dependences.
8839 2016-07-27 Richard Biener <rguenther@suse.de>
8841 * predict.c (set_even_probabilities): Make nedges unsigned.
8843 2016-07-27 Martin Liska <mliska@suse.cz>
8845 * predict.c (set_even_probabilities): Handle unlikely edges.
8846 (combine_predictions_for_bb): Likewise.
8848 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8851 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
8852 __float128 support when we don't have hardware support, so that
8853 the IEEE built-in functions like isgreater, first call __unordkf3
8854 to make sure neither operand is a NaN, and if both operands are
8855 ordered, do the normal comparison.
8857 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
8859 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
8861 (extract_code_and_val_from_cond_with_ops): Verify that name is
8862 either cond_op0 or cond_op1.
8864 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
8866 PR tree-optimization/18046
8867 * genmodes.c (emit_mode_size_inline): Emit an assert that
8868 verifies that mode is a valid array index.
8869 (emit_mode_nuinits_inline): Likewise.
8870 (emit_mode_inner_inline): Likewise.
8871 (emit_mode_unit_size_inline): Likewise.
8872 (emit_mode_unit_precision_inline): Likewise.
8873 * tree-vrp.c: Include params.h.
8874 (find_switch_asserts): Register edge assertions for the default
8875 label which correspond to the anti-ranges of each case label.
8876 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
8877 * doc/invoke.texi: Document it.
8879 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8881 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
8882 and unnecessary call to gimple_bb.
8884 2016-07-26 Richard Biener <rguenther@suse.de>
8886 PR rtl-optimization/71984
8887 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
8890 2016-07-26 Richard Biener <rguenther@suse.de>
8893 * expmed.c (extract_bit_field_1): Constrain the vector mode
8894 with element size matching the extraction mode size when
8895 choosing a better vector mode to do the extraction from.
8897 2016-07-26 Richard Biener <rguenther@suse.de>
8898 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8901 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
8904 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8906 * tree-ssa-structalias.c (struct scc_info): Change types of
8907 members to auto_sbitmap and auto_vec.
8908 (scc_info::scc_info): New constructor.
8909 (scc_info::~scc_info): New destructor.
8910 (init_scc_info): Remove.
8911 (free_scc_info): Remove.
8912 (find_indirect_cycles): Adjust.
8913 (perform_var_substitution): Likewise.
8914 (free_var_substitution_info): Likewise.
8916 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8918 * tree-outof-ssa.c (struct elim_graph): Change type of members
8919 to auto_vec and auto_sbitmap.
8920 (elim_graph::elim_graph): New constructor.
8921 (delete_elim_graph): Remove.
8922 (expand_phi_nodes): Adjust.
8924 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8926 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
8927 (new_elim_graph): Adjust.
8928 (clear_elim_graph): Likewise.
8929 (delete_elim_graph): Likewise.
8930 (elim_graph_size): Likewise.
8931 (elim_graph_add_node): Likewise.
8932 (elim_graph_add_edge): Likewise.
8933 (elim_graph_remove_succ_edge): Likewise.
8934 (eliminate_name): Likewise.
8935 (eliminate_build): Likewise.
8936 (elim_forward): Likewise.
8937 (elim_unvisited_predecessor): Likewise.
8938 (elim_backward): Likewise.
8939 (elim_create): Likewise.
8940 (eliminate_phi): Likewise.
8941 (expand_phi_nodes): Likewise.
8943 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8945 * bt-load.c (compute_out): Use auto_sbitmap class.
8946 (link_btr_uses): Likewise.
8947 * cfganal.c (mark_dfs_back_edges): Likewise.
8948 (post_order_compute): Likewise.
8949 (inverted_post_order_compute): Likewise.
8950 (pre_and_rev_post_order_compute_fn): Likewise.
8951 (single_pred_before_succ_order): Likewise.
8952 * cfgexpand.c (pass_expand::execute): Likewise.
8953 * cfgloop.c (verify_loop_structure): Likewise.
8954 * cfgloopmanip.c (fix_bb_placements): Likewise.
8955 (remove_path): Likewise.
8956 (update_dominators_in_loop): Likewise.
8957 * cfgrtl.c (break_superblocks): Likewise.
8958 * ddg.c (check_sccs): Likewise.
8959 (create_ddg_all_sccs): Likewise.
8960 * df-core.c (df_worklist_dataflow): Likewise.
8961 * dse.c (dse_step3): Likewise.
8962 * except.c (eh_region_outermost): Likewise.
8963 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8964 * gcse.c (prune_expressions): Likewise.
8965 (prune_insertions_deletions): Likewise.
8966 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
8967 * graph.c (draw_cfg_nodes_no_loops): Likewise.
8968 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
8969 * lcm.c (compute_earliest): Likewise.
8970 (compute_farthest): Likewise.
8971 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
8972 (unroll_loop_runtime_iterations): Likewise.
8973 (unroll_loop_stupid): Likewise.
8974 * lower-subreg.c (decompose_multiword_subregs): Likewise.
8975 * lra-lives.c: Likewise.
8976 * lra.c (lra): Likewise.
8977 * modulo-sched.c (schedule_reg_moves): Likewise.
8978 (optimize_sc): Likewise.
8979 (get_sched_window): Likewise.
8980 (sms_schedule_by_order): Likewise.
8981 (check_nodes_order): Likewise.
8982 (order_nodes_of_sccs): Likewise.
8983 (order_nodes_in_scc): Likewise.
8984 * recog.c (split_all_insns): Likewise.
8985 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
8986 * reload1.c (reload): Likewise.
8987 * sched-rgn.c (haifa_find_rgns): Likewise.
8988 (split_edges): Likewise.
8989 (compute_trg_info): Likewise.
8990 * sel-sched.c (init_seqno): Likewise.
8991 * store-motion.c (remove_reachable_equiv_notes): Likewise.
8992 * tree-into-ssa.c (update_ssa): Likewise.
8993 * tree-ssa-live.c (live_worklist): Likewise.
8994 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
8995 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8997 (try_peel_loop): Likewise.
8998 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
9000 * tree-ssa-pre.c (compute_antic): Likewise.
9001 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
9002 * tree-stdarg.c (reachable_at_most_once): Likewise.
9003 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
9004 * var-tracking.c (vt_find_locations): Likewise.
9006 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9008 * sbitmap.h (auto_sbitmap): New class.
9010 2016-07-26 Alan Modra <amodra@gmail.com>
9013 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
9016 2016-07-25 David Malcolm <dmalcolm@redhat.com>
9018 * input.c (selftest::temp_source_file::temp_source_file): Fix
9019 missing "%s" in fprintf.
9021 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
9024 * cselib.c (cselib_process_insn): Invalidate argument slots for
9027 2016-07-25 Jiong Wang <jiong.wang@arm.com>
9029 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
9030 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
9031 vmulxh_lane_f16, vmulxh_laneq_f16): New.
9033 2016-07-25 Jiong Wang <jiong.wang@arm.com>
9035 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
9036 * config/aarch64/aarch64.md (fma, fnma): Support HF.
9037 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
9039 2016-07-25 Jiong Wang <jiong.wang@arm.com>
9041 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
9042 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
9044 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
9045 (add<mode>3): Likewise.
9046 (sub<mode>3): Likewise.
9047 (mul<mode>3): Likewise.
9048 (div<mode>3): Likewise.
9049 (*div<mode>3): Likewise.
9050 (<fmaxmin><mode>3): Extend to HF.
9051 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
9052 (fabd<mode>3): Likewise.
9053 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
9054 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
9055 (aarch64_fmulx<mode>): Likewise.
9056 (aarch64_fac<optab><mode>): Likewise.
9057 (aarch64_frecps<mode>): Likewise.
9058 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
9059 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
9060 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
9061 (VSDQ_HSDI): Support HI.
9062 (fcvt_target, FCVT_TARGET): Likewise.
9063 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
9064 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
9065 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
9066 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
9067 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
9068 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
9069 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
9072 2016-07-25 Jiong Wang <jiong.wang@arm.com>
9074 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
9075 * config/aarch64/aarch64-builtins.c (hi_UP): New.
9076 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
9077 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
9079 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
9080 (aarch64_cm<optab><mode>): Likewise.
9081 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
9082 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
9083 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
9084 (sqrt<mode>2): Likewise.
9085 (*sqrt<mode>2): Likewise.
9086 (abs<mode>2): Likewise.
9087 (<optab><mode>hf2): New pattern for HF mode.
9088 (<optab>hihf2): Likewise.
9089 * config/aarch64/arm_neon.h: Include arm_fp16.h.
9090 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
9091 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
9093 * config/aarch64/arm_fp16.h: New file.
9094 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
9095 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
9096 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
9097 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
9098 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
9099 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
9100 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
9101 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
9102 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
9103 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
9104 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
9105 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
9108 2016-07-25 Jiong Wang <jiong.wang@arm.com>
9110 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
9111 reduc_smin_scal_): Use VDQIF_F16.
9112 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
9113 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
9115 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
9116 * config/aarch64/iterators.md (VDQIF_F16): New.
9117 (vp): Support HF modes.
9118 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
9119 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
9121 2016-07-25 Jiong Wang <jiong.wang@arm.com>
9123 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
9124 "*aarch64_mulx_elt_from_dup<mode>".
9125 (*aarch64_mul3_elt<mode>): Update schedule type.
9126 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
9127 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
9128 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
9129 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
9130 (f, fp): Support HF modes.
9131 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
9132 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
9133 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
9134 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
9135 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
9136 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
9138 2016-07-25 Jiong Wang <jiong.wang@arm.com>
9140 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
9141 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
9143 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
9146 2016-07-25 Jiong Wang <jiong.wang@arm.com>
9148 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
9149 * config/aarch64/aarch64-simd.md
9150 (aarch64_rsqrts<mode>): Extend to HF modes.
9151 (fabd<mode>3): Likewise.
9152 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
9153 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
9154 (aarch64_<maxmin_uns>p<mode>): Likewise.
9155 (<su><maxmin><mode>3): Likewise.
9156 (<maxmin_uns><mode>3): Likewise.
9157 (<fmaxmin><mode>3): Likewise.
9158 (aarch64_faddp<mode>): Likewise.
9159 (aarch64_fmulx<mode>): Likewise.
9160 (aarch64_frecps<mode>): Likewise.
9161 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
9162 (add<mode>3): Extend to HF modes.
9163 (sub<mode>3): Likewise.
9164 (mul<mode>3): Likewise.
9165 (div<mode>3): Likewise.
9166 (*div<mode>3): Likewise.
9167 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
9169 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
9170 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
9171 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
9172 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
9173 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
9174 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
9175 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
9176 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
9177 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
9178 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
9179 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
9180 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
9181 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
9182 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
9184 2016-07-25 Jiong Wang <jiong.wang@arm.com>
9186 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
9187 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
9188 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
9189 (neg<mode>2): Likewise.
9190 (abs<mode>2): Likewise.
9191 (<frint_pattern><mode>2): Likewise.
9192 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
9193 (<optab><VDQF:mode><fcvt_target>2): Likewise.
9194 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
9195 (ftrunc<VDQF:mode>2): Likewise.
9196 (<optab><fcvt_target><VDQF:mode>2): Likewise.
9197 (sqrt<mode>2): Likewise.
9198 (*sqrt<mode>2): Likewise.
9199 (aarch64_frecpe<mode>): Likewise.
9200 (aarch64_cm<optab><mode>): Likewise.
9201 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
9203 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
9204 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
9206 * config/aarch64/arm_neon.h (vdup_n_f16): New.
9207 (vdupq_n_f16): Likewise.
9208 (vld1_dup_f16): Use vdup_n_f16.
9209 (vld1q_dup_f16): Use vdupq_n_f16.
9210 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
9211 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
9212 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
9213 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
9214 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
9215 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
9216 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
9217 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
9218 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
9219 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
9220 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
9221 vsqrt_f16, vsqrtq_f16): New.
9223 2016-07-25 Jiong Wang <jiong.wang@arm.com>
9225 * config/aarch64/aarch64-simd.md
9226 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
9227 (aarch64_ext<mode>): Likewise.
9228 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
9229 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
9230 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
9232 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
9234 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
9235 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
9236 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
9237 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
9238 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
9239 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
9240 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
9242 (vmov_n_f16): Reimplement using vdup_n_f16.
9243 (vmovq_n_f16): Reimplement using vdupq_n_f16..
9245 2016-07-25 Jiong Wang <jiong.wang@arm.com>
9247 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
9248 "frame_related_p". Generate CFA annotation when it's necessary.
9249 (aarch64_expand_prologue): Use aarch64_add_constant.
9250 (aarch64_expand_epilogue): Likewise.
9251 (aarch64_output_mi_thunk): Pass "false" when calling
9252 aarch64_add_constant.
9254 2016-07-25 Jiong Wang <jiong.wang@arm.com>
9256 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
9259 2016-07-25 Jiong Wang <jiong.wang@arm.com>
9261 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
9262 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
9263 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
9264 (aarch64_build_constant): Delete.
9266 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
9269 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
9271 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
9272 flag_toplevel_reorder.
9274 2016-07-25 Richard Biener <rguenther@suse.de>
9276 * cgraph.c (cgraph_node::verify_node): Compare against builtin
9277 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
9278 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
9279 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
9280 (streamer_get_builtin_tree): Likewise.
9281 (streamer_write_builtin): Likewise.
9282 * lto-streamer.h (LTO_builtin_decl): Remove.
9283 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
9284 (lto_input_scc): Remove LTO_builtin_decl handling.
9285 (lto_input_tree_1): Liekwise.
9286 * lto-streamer-out.c (lto_output_tree_1): Remove special
9287 handling of builtins.
9288 (DFS::DFS): Likewise.
9289 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
9290 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
9292 (streamer_write_builtin): Remove.
9294 2016-07-25 Martin Liska <mliska@suse.cz>
9296 * lto-cgraph.c (input_symtab): Don't call get_working_sets
9297 if flag_auto_profile is set to true.
9299 2016-07-25 Martin Liska <mliska@suse.cz>
9301 PR gcov-profile/71868
9302 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
9303 have a function with multiple latches, count them all.
9305 2016-07-25 Martin Liska <mliska@suse.cz>
9307 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
9309 2016-07-25 Martin Liska <mliska@suse.cz>
9311 PR tree-optimization/71987
9312 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
9313 just for SSA_NAMEs. Fix GNU coding style.
9315 2016-07-25 Martin Liska <mliska@suse.cz>
9317 PR gcov-profile/64874
9318 * gcov-io.h: Update command about file format.
9319 * gcov-iov.c (main): Adapt the numbering scheme.
9321 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
9324 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
9325 whose result is used in PHI.
9326 (final_range_test_p): Likewise.
9327 (maybe_optimize_range_tests): Likewise.
9329 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9331 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9332 Reformat two multi-line strings.
9334 2016-07-22 Martin Sebor <msebor@redhat.com>
9336 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
9338 2016-07-22 Martin Sebor <msebor@redhat.com>
9341 * doc/extend.texi (Compound Literals): Correct and clarify.
9342 (Cast to Union): Same.
9344 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
9346 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
9347 comments to explain why certain error messages make mention of
9348 undocumented options.
9349 (rs6000_invalid_builtin): Change error messages to replace mention
9350 of undocumented options with mention of the -mcpu=power9 option
9351 that enables those undocumented options.
9352 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
9353 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
9354 definition of this macro to correct an existing error.
9355 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
9356 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
9357 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
9358 descriptions of built-in functions so that they depend on
9359 -mcpu=power9 instead of on the corresponding undocumented flags.
9360 * doc/invoke.texi (Option Summary): Remove all mention of newly
9362 (IBM RS/6000 and PowerPC Options): Likewise.
9363 * doc/md.texi (Constraints for Particuliar Machines): Remove all
9364 mention of newly undocumented flags.
9366 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
9368 * ipa-cp.c (determine_versionability): Do not create constprop clones,
9369 when target_clones attribute is set.
9371 2016-07-22 Bin Cheng <bin.cheng@arm.com>
9373 * common.opt (funsafe-loop-optimizations): Mark ignore.
9374 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
9375 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
9377 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
9378 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
9380 2016-07-22 Bin Cheng <bin.cheng@arm.com>
9382 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
9384 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
9386 (number_of_iterations_exit): Warn missed loop optimization for
9387 possible infinite loops.
9389 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
9392 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
9393 when to emit a ".machine" pseudo-op.
9395 2016-07-22 Martin Liska <mliska@suse.cz>
9397 PR gcov-profile/69028
9398 PR gcov-profile/62047
9399 * coverage.c (coverage_compute_lineno_checksum): Do not
9400 calculate checksum for fns w/o xloc.file.
9401 (coverage_compute_profile_id): Likewise.
9403 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
9405 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
9406 (avr_secondary_reload): ...and implementation.
9407 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
9408 * config/avr/avr.md (reload_in<mode>): Remove insns.
9409 (adjust_len) [lpm]: Remove insn attribute value.
9410 * config/avr/predicates.md (flash_operand): Remove insn predicate.
9412 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9415 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
9417 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
9418 * calls.c (special_function_p): Remove the special handling of the
9419 "__builtin_" prefix.
9421 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9424 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
9425 if STMT may be an alloca call.
9426 (gimple_alloca_call_p, alloca_call_p): Return only true for the
9427 builtin alloca call.
9428 * calls.h (gimple_maybe_alloca_call_p): New function.
9429 * tree-inline.c (inline_forbidden_p_stmt): Use
9430 gimple_maybe_alloca_call_p here.
9432 2016-07-21 David Malcolm <dmalcolm@redhat.com>
9434 * spellcheck-tree.c (best_macro_match::best_macro_match):
9435 Explictly specify the template arguments when invoking the base
9436 class constructor, to help older C++ compilers.
9438 2016-07-21 Jakub Jelinek <jakub@redhat.com>
9441 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
9442 before builtin_decl_implicit.
9444 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
9446 * optabs.c (emit_condiitonal_move): Short circuit for identical
9449 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
9451 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
9452 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
9453 (noce_conversion_profitable_p): New.
9454 (noce_try_store_flag_constants): Use it.
9455 (noce_try_addcc): Likewise.
9456 (noce_try_store_flag_mask): Likewise.
9457 (noce_try_cmove): Likewise.
9458 (noce_try_cmove_arith): Likewise.
9459 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
9461 (noce_convert_multiple_sets): Move cost model to here, from...
9462 (bb_ok_for_noce_convert_multiple_sets) ...here.
9463 (noce_process_if_block): Update calls for above changes.
9464 (noce_find_if_block): Record new noce_if_info parameters.
9466 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
9468 * target.def (max_noce_ifcvt_seq_cost): New.
9469 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
9470 * doc/tm.texi: Regenerate.
9471 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
9472 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
9473 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
9474 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
9475 * doc/invoke.texi: Document new params.
9477 2016-07-21 Richard Biener <rguenther@suse.de>
9479 PR tree-optimization/71947
9480 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
9481 ranges have useful limit_vr information.
9483 2016-07-21 Richard Biener <rguenther@suse.de>
9485 * function-tests.c (build_trivial_generic_function): Set
9486 BLOCK_SUPERCONTEXT of DECL_INITIAL.
9487 * omp-low.c (create_omp_child_function): Likewise.
9488 (grid_expand_target_grid_body): Likewise.
9489 * cgraphunit.c (init_lowered_empty_function): Likewise.
9490 (cgraph_node::expand_thunk): Likewise.
9491 * tree-parloops.c (create_loop_fn): Likewise.
9492 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
9494 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9496 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
9499 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
9501 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
9502 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
9503 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
9504 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
9505 values for insn attribute.
9506 * config/avr/avr.c (avr_out_insert_notbit): New function.
9507 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
9508 ADJUST_LEN_INSV_NOTBIT_0/_7.
9509 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
9511 2016-07-21 Bin Cheng <bin.cheng@arm.com>
9513 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
9514 (chrec_convert_1, chrec_convert): Ditto.
9515 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
9516 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
9517 * tree-vrp.c (adjust_range_with_scev): Ditto.
9518 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
9519 (scev_var_range_cant_overflow): New function.
9520 (scev_probably_wraps_p): New parameter. Call above function.
9521 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
9523 2016-07-21 Bin Cheng <bin.cheng@arm.com>
9525 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
9526 by removing computation of may_be_zero.
9528 2016-07-21 Jakub Jelinek <jakub@redhat.com>
9530 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
9532 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
9534 Improving concepts performance and diagnostics.
9535 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
9536 for constraint satisfaction and subsumption.
9537 * timevar.h (auto_timevar): New constructor that matches the push/pop
9538 pattern of usage in pt.c.
9540 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
9542 * hwint.h (HOST_WIDE_INT_0): New define.
9543 (HOST_WIDE_INT_0U): Ditto.
9544 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
9545 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
9546 * simplify-rtx.c: Ditto.
9547 * tree-object-size.c: Ditto.
9549 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9551 * config/s390/s390.c (s390_encode_section_info): Remove mode size
9554 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
9556 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
9557 * combine.c: Use HOST_WIDE_INT_M1U instead of
9558 ~(unsigned HOST_WIDE_INT) 0.
9559 * double-int.h: Ditto.
9561 * dwarf2asm.c:Ditto.
9563 * genmodes.c: Ditto.
9565 * read-rtl.c: Ditto.
9566 * tree-ssa-loop-ivopts.c: Ditto.
9567 * tree-ssa-loop-prefetch.c: Ditto.
9568 * tree-vect-generic.c: Ditto.
9569 * tree-vect-patterns.c: Ditto.
9572 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
9574 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
9575 constant addresses outside [0,0xc0] into a register.
9576 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
9577 cases where the base address register is unused after.
9578 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
9579 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
9580 (avr_out_store_psi_reg_disp_tiny): Same.
9582 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
9584 Implement attribute progmem on reduced Tiny cores by adding
9585 flash offset 0x4000 to respective symbols.
9588 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
9589 documentation how it works on reduced Tiny cores.
9590 (AVR Named Address Spaces): No support for reduced Tiny.
9591 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
9592 (avr_address_tiny_pm_p): New static function.
9593 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
9594 if the address is in progmem.
9595 (avr_assemble_integer): Same.
9596 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
9597 for symbol_ref in progmem.
9598 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
9599 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
9600 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
9602 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
9604 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
9605 * configure: Regenerate.
9606 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
9607 (USE_THIN_ARCHIVES): New variable.
9608 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
9609 this archive as a thin archive.
9611 2016-07-20 David Malcolm <dmalcolm@redhat.com>
9613 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
9614 same location as last time, don't skip if we have fix-it hints.
9615 Clarify the skipping logic by converting it from one "if" clause
9616 to repeated "if" clauses.
9617 * spellcheck-tree.c: Include "cpplib.h".
9618 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
9619 (best_macro_match::best_macro_match): New constructor.
9620 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
9621 Move here from c/c-decl.c.
9622 (class best_macro_match): Move here from c/c-decl.c, converting
9623 from a typedef to a subclass, gaining a ctor.
9625 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
9627 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
9628 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
9630 (avr_addr_space_diagnose_usage): ...and implementation.
9631 (avr_addr_space_supported_p): New function.
9632 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
9633 report bad address space usage if that space is supported.
9634 (avr_insert_attributes): Same. No more complain about unsupported
9636 * config/avr/avr-c.c (tm_p.h): Include it.
9637 (avr_cpu_cpp_builtins): Only define addr-space related built-in
9638 macro if avr_addr_space_supported_p.
9640 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
9642 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
9643 flag_toplevel_reorder.
9645 2016-07-20 David Malcolm <dmalcolm@redhat.com>
9647 * gcc-rich-location.c
9648 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
9650 * gcc-rich-location.h
9651 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
9653 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
9655 * target.def (addr_space): Add new diagnose_usage to hook vector.
9656 * targhooks.c (default_addr_space_diagnose_usage): Add default
9657 implementation and...
9658 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
9659 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
9660 is some address space, call targetm.addr_space.diagnose_usage.
9661 * doc/tm.texi.in (Named Address Spaces): Add anchor for
9662 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
9663 * doc/tm.texi: Regenerate.
9665 2016-07-20 Martin Liska <mliska@suse.cz>
9668 * graphite-isl-ast-to-gimple.c (later_of_the_two):
9669 Properly handly PHI stmts.
9671 2016-07-20 Bin Cheng <bin.cheng@arm.com>
9673 PR tree-optimization/71503
9674 PR tree-optimization/71683
9675 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
9678 2016-07-20 Martin Liska <mliska@suse.cz>
9680 * doc/invoke.texi (-fipa-ra): Document when the option is
9681 disabled. Fix a typo.
9683 2016-07-20 Martin Liska <mliska@suse.cz>
9685 * Makefile.in: Include fibonacci_heap.c
9686 * fibonacci_heap.c: New file.
9687 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
9688 (fibonacci_heap::union_with): Fix deletion of the second heap.
9689 * selftest-run-tests.c (selftest::run_tests): Incorporate
9690 fibonacci heap tests.
9691 * selftest.h: Declare fibonacci_heap_c_tests.
9693 2016-07-20 Martin Liska <mliska@suse.cz>
9695 * selftest-run-tests.c (selftest::run_tests): New function.
9696 * selftest.h (sreal_c_tests): Declare.
9697 * sreal.c (sreal_verify_basics): New function.
9698 (verify_aritmetics): Likewise.
9699 (sreal_verify_arithmetics): Likewise.
9700 (verify_shifting): Likewise.
9701 (sreal_verify_shifting): Likewise.
9702 (void sreal_c_tests): Likewise.
9704 2016-07-19 Jakub Jelinek <jakub@redhat.com>
9706 PR rtl-optimization/71916
9707 * cfgrtl.c (contains_no_active_insn_p): Return false also for
9708 bb which have a single succ fake edge.
9710 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
9713 * dwarf2out.c (gen_subprogram_die): Only call
9714 gen_unspecified_parameters_die while dumping early dwarf.
9716 2016-07-19 Jakub Jelinek <jakub@redhat.com>
9719 * gimple-fold.c (fold_builtin_memory_op): Use
9720 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9722 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
9724 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
9725 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
9726 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
9727 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
9731 * double-int.c: Ditto.
9733 * dwarf2out.c: Ditto.
9736 * fold-const.c: Ditto.
9737 * function.c: Ditto.
9739 * genmodes.c: Ditto.
9743 * loop-doloop.c: Ditto.
9744 * loop-invariant.c: Ditto.
9751 * simplify-rtx.c: Ditto.
9752 * stor-layout.c: Ditto.
9754 * tree-ssa-loop-ivopts.c: Ditto.
9755 * tree-vect-generic.c: Ditto.
9756 * tree-vect-patterns.c: Ditto.
9761 * wide-int-print.cc: Ditto.
9762 * wide-int.cc: Ditto.
9763 * wide-int.h: Ditto.
9765 2016-07-19 David Malcolm <dmalcolm@redhat.com>
9767 * selftest.c (selftest::assert_streq): Handle NULL values of
9768 val_actual and val_expected.
9770 2016-07-19 Martin Jambor <mjambor@suse.cz>
9773 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
9774 rather than cgraph_create_node to get a call graph node.
9776 2016-07-19 Richard Biener <rguenther@suse.de>
9778 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
9779 handle all tcc_constant bases and valueize SSA names.
9780 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
9783 2016-07-19 David Malcolm <dmalcolm@redhat.com>
9785 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
9786 the flags of the exit block and bb2, not just the entry block.
9788 2016-07-19 Richard Biener <rguenther@suse.de>
9790 PR tree-optimization/71901
9791 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
9792 align member, group stuff with the bitfield.
9793 (vn_ref_op_align_unit): New inline.
9794 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
9795 record element alignment and operand 3 unchanged.
9796 (ao_ref_init_from_vn_reference): Adjust.
9797 (valueize_refs_1): Likewise.
9798 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9800 2016-07-19 Richard Biener <rguenther@suse.de>
9802 PR tree-optimization/71908
9803 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
9804 symbolic constants in a more reliable way.
9806 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
9808 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
9810 (vect_update_inits_of_drs): Likewise.
9811 (vect_create_cond_for_alias_checks): Likewise.
9812 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
9814 2016-07-19 Richard Biener <rguenther@suse.de>
9817 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
9818 with an abstract origin that is not an inlined function outer
9819 scope add a self-reference as abstract origin.
9820 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
9822 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9825 * config/rs6000/rs6000.c (rs6000_function_value): Fix
9826 unintentional System V.4 structure return breakage for structures
9827 with a single floating point element.
9829 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
9831 PR tree-optimization/71734
9832 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
9833 contains REF, use it to check safelen, assume that safelen value
9834 must be greater 1, fix style.
9835 (ref_indep_loop_p_2): Add REF_LOOP argument.
9836 (ref_indep_loop_p): Pass LOOP as additional argument to
9839 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
9841 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
9842 allocation in the prologue.
9843 * explow.c (get_dynamic_stack_base): New function to return an address
9844 expression for the dynamic stack base.
9845 (get_dynamic_stack_size): New function to do the required dynamic stack
9846 space size calculations.
9847 (allocate_dynamic_stack_space): Use new functions.
9848 (align_dynamic_address): Move some code from
9849 allocate_dynamic_stack_space to new function.
9850 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
9852 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9854 * config/s390/s390.c (s390_encode_section_info): Always set
9855 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
9858 2016-07-18 Richard Biener <rguenther@suse.de>
9860 PR tree-optimization/71893
9861 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
9862 for sizetype cast added by array_ref_element_size.
9863 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9865 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
9867 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
9868 register parameters. Remove code to initialize argument pointer
9869 on TARGET_64BIT. Optimize call to _mcount when it can be reached
9870 using a pc-relative branch. Cleanup conditional code.
9871 * config/pa/pa.md (call_mcount): New expander.
9872 (call_mcount_nonpic): New insn.
9873 (call_mcount_pic): New insn and split.
9874 (call_mcount_pic_post_reload): New insn.
9875 (call_mcount_64bit): New insn and split.
9876 (call_mcount_64bit_post_reload): New insn.
9878 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
9880 * config/avr/predicates.md (const_m255_to_m1_operand): New.
9881 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
9882 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
9883 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
9884 (*usum_widenqihi3, *udiff_widenqihi3)
9885 (*addhi3_zero_extend.const): New combiner insns.
9886 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
9887 just 1 bit is affected.
9888 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
9889 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
9891 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
9893 * omp-low.c (lower_omp_target): Mark data clauses with
9894 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
9895 zero-length subarrays.
9897 2016-07-15 Richard Biener <rguenther@suse.de>
9899 PR tree-optimization/71881
9900 * tree-loop-distribution.c (destroy_loop): Remove blocks in
9901 reverse DOM order to make debug temp generation happy.
9903 2016-07-15 Richard Biener <rguenther@suse.de>
9905 PR tree-optimization/71887
9906 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
9907 verify it is not zero for division / modulo handling.
9908 (value_replacement): Adjust.
9910 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
9911 Julian Brown <julian@codesourcery.com>
9913 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
9914 * config/aarch64/aarch64-cost-tables.h
9915 (vulcan_extra_costs): New variable.
9916 * config/aarch64/aarch64.c
9917 (vulcan_addrcost_table): Likewise.
9918 (vulcan_regmove_cost): Likewise.
9919 (vulcan_vector_cost): Likewise.
9920 (vulcan_branch_cost): Likewise.
9921 (vulcan_tunings): Likewise.
9923 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
9925 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
9926 (output_in_order): Loop over undefined variables too. Output them
9927 via assemble_undefined_decl. Skip variables that correspond to hard
9928 registers or have value-exprs.
9929 * varpool.c (symbol_table::output_variables): Handle undefined
9930 variables together with defined ones.
9932 2016-07-15 Richard Biener <rguenther@suse.de>
9934 * tree-ssa-pre.c (get_representative_for): Make sure to return
9935 the value number of SSA names.
9936 (phi_translate_1): get_representative_for cannot return NULL.
9937 (do_pre_regular_insertion): Remove redundant call to
9938 fully_constant_expression.
9939 (do_pre_partial_partial_insertion): Likewise.
9941 2016-07-15 Bin Cheng <bin.cheng@arm.com>
9943 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
9944 (derive_simple_iv_with_niters): New function.
9945 (simple_iv): Rewrite using simple_iv_with_niters.
9946 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
9947 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
9949 (number_of_iterations_exit): Rewrite using above function.
9950 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
9953 2016-07-15 Richard Biener <rguenther@suse.de>
9955 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
9958 2016-07-14 Jakub Jelinek <jakub@redhat.com>
9960 PR tree-optimization/71872
9961 * tree-data-ref.c (get_references_in_stmt): Ignore references
9962 with is_gimple_constant get_base_address.
9964 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9966 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
9967 (TARGET_HAVE_LDACQD): New macro.
9968 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
9969 than TARGET_HAVE_LDACQ.
9970 (arm_load_acquire_exclusivedi): Likewise.
9971 (arm_store_release_exclusivedi): Likewise.
9973 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9975 PR rtl-optimization/71878
9976 * lra-constraints.c (match_reload): Pass information about other
9977 output operands. Create new unique register value if matching input
9978 operand shares same register value as output operand being considered.
9979 (curr_insn_transform): Record output operands already processed.
9981 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9984 PR tree-optimization/70923
9985 * tree-vect-patterns.c: Include mult-synthesis.h.
9986 (target_supports_mult_synth_alg): New function.
9987 (synth_lshift_by_additions): Likewise.
9988 (apply_binop_and_append_stmt): Likewise.
9989 (vect_synth_mult_by_constant): Likewise.
9990 (target_has_vecop_for_code): Likewise.
9991 (vect_recog_mult_pattern): Use above functions to synthesize vector
9992 multiplication by integer constants.
9994 2016-07-14 Alan Modra <amodra@gmail.com>
9996 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
9997 gpr alternatives. Correct '*' placement on Y,r alternative.
9998 Add '*' on operand 1 of r,r alternative.
10000 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10002 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
10003 * expmed.h: ... Here.
10005 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
10007 * gimple.h (stmt_can_terminate_bb_p): New function.
10008 * tree-cfg.c (need_fake_edge_p): Rename to ...
10009 (stmt_can_terminate_bb_p): ... this; return true if stmt can
10010 throw external; handle const and pure calls.
10011 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
10013 2016-07-14 Richard Biener <rguenther@suse.de>
10015 PR tree-optimization/71866
10016 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
10017 (do_hoist_insertion): Avoid endless recursion when we
10018 didn't insert anything because we managed to simplify
10019 things down to a constant or SSA name.
10020 (fully_constant_expression): Re-write in terms of ...
10021 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
10022 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
10023 vn_nary_build_or_lookup_1.
10024 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
10025 (vn_nary_build_or_lookup): ... this which now wraps it.
10027 2016-07-14 Alan Modra <amodra@gmail.com>
10030 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
10031 with p9_vector override before power9-dform override.
10033 2016-07-13 Andi Kleen <ak@linux.intel.com>
10035 * value-prof.c (gimple_value_profile_transformations): Don't run
10036 when auto_profile is on.
10038 2016-07-13 Andi Kleen <ak@linux.intel.com>
10040 * auto-profile.c (update_inlined_ind_target,
10041 afdo_indirect_call): Print information to dump file.
10043 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
10045 * genrecog.c (special_predicate_operand_p): New function.
10046 (predicate_name): Move function.
10047 (validate_pattern): Don't warn about missing mode for all
10048 define_special_predicate predicates.
10050 2016-07-13 Bin Cheng <bin.cheng@arm.com>
10052 * tree-vect-data-refs.c (vect_no_alias_p): New function.
10053 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
10054 resolve alias checks which are known at compilation time.
10055 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
10056 alias checks are resolved. Move dump info for too many runtime
10057 alias checks to here...
10058 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
10060 2016-07-13 Richard Biener <rguenther@suse.de>
10062 PR tree-optimization/24574
10063 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
10064 position and add shift, rotate, divison and modulo support
10066 (value_replacement): Pass in argument position to absorbing_element_p.
10068 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
10071 * ipa-inline-transform.c (inline_call): Support
10072 instrumented thunks.
10074 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
10076 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
10077 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
10079 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
10080 Baseline. Make initial alternative TARGET_32BIT only.
10081 (udivsi3): Likewise.
10082 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
10083 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
10086 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
10088 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
10089 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
10090 availability with TARGET_HAVE_MOVT.
10091 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
10092 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
10093 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
10095 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
10096 extra instruction if MOVW is available. Use a cost variable
10097 incremented by COSTS_N_INSNS (1) when the condition match rather than
10098 returning an arithmetic expression based on COSTS_N_INSNS. Make
10099 constant with bottom half word zero cost 2 instruction if MOVW is
10101 * config/arm/arm.md (define_attr "arch"): Add v8mb.
10102 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
10103 target is ARMv8-M Baseline.
10104 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
10105 (arm_movtas_ze): Likewise.
10106 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
10107 alternative for constants satisfying j constraint.
10108 (thumb1_movsi_insn): Likewise.
10109 (movsi splitter for K alternative): Tighten condition to not trigger
10110 if movt is available and j constraint is satisfied.
10111 (Pe immediate splitter): Likewise.
10112 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
10113 constant fitting in an halfword to use MOVW.
10114 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
10117 2016-07-13 Richard Biener <rguenther@suse.de>
10119 PR middle-end/71104
10120 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
10121 gimplifying the LHS. Make sure to gimplify a returning twice
10122 call LHS without using SSA names.
10124 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10126 * tree-data-ref.c (find_data_references_in_stmt): Remove
10127 unnecessary call to vec::release.
10128 (graphite_find_data_references_in_stmt): Likewise.
10129 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
10130 * tree-vect-stmts.c (vectorizable_condition): Likewise.
10132 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10134 * cfgexpand.c (expand_used_vars): Make the type of a local
10136 * genmatch.c (lower_for): Likewise.
10137 * haifa-sched.c (haifa_sched_init): Likewise.
10138 (add_to_speculative_block): Likewise.
10139 (create_check_block_twin): Likewise.
10140 * predict.c (handle_missing_profiles): Likewise.
10141 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
10142 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
10143 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
10145 (maybe_lower_iteration_bound): Likewise.
10146 * tree-ssa-sccvn.c (DFS): Likewise.
10147 * tree-stdarg.c (reachable_at_most_once): Likewise.
10148 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
10149 (vectorizable_store): Likewise.
10151 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10153 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
10154 (sccvn_dom_walker): make cond_stack an auto_vec.
10156 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10158 * ree.c (struct ext_state): Make type of members auto_vec.
10159 (find_and_remove_re): Adjust.
10161 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10163 * cfgexpand.c (struct stack_vars_data): Make type of fields
10165 (expand_used_vars): Adjust.
10167 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10169 * ipa.c (record_cdtor_fn): Adjust.
10170 (build_cdtor_fns): Likewise.
10171 (ipa_cdtor_merge): Make static_ctors and static_dtors local
10174 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10176 * genextract.c (struct accum_extract): Add constructor and make
10178 (gen_insn): Adjust.
10180 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10182 * tree.c (struct free_lang_data_d): Add constructor and change
10183 types of members to ones that automatically manage resources.
10184 (fld_worklist_push): Adjust.
10185 (find_decls_types): Likewise.
10186 (find_decls_types_in_eh_region): Likewise.
10187 (free_lang_data_in_cgraph): Stop manually creating and
10188 destroying members of free_lang_data_d.
10190 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
10192 PR rtl-optimization/68961
10193 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
10194 peephole variant. Use sse_reg_operand predicates.
10196 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
10198 * config/i386/predicates.md (x86_64_immediate_operand)
10199 <case CONST_INT>: Remove unneeded truncation to DImode.
10200 <case CONST>: Ditto.
10201 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
10203 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10206 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
10207 The xxperm and xxpermr instructions require that the 2nd input
10208 operand overlap with the output operand, and not the 1st.
10209 (altivec_vperm_v8hiv16qi): Likewise.
10210 (altivec_vperm_<mode>_uns_internal): Likewise.
10211 (altivec_vpermr_<mode>_internal): Likewise.
10212 (vperm_v8hiv4si): Likewise.
10213 (vperm_v16qiv8hi): Likewise.
10215 2016-07-12 Nathan Sidwell <nathan@acm.org>
10217 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
10218 when -mno-pic-data-is-text-relative is in effect, by default.
10219 * doc/invoke.texi (mpic-data-is-text-relative): Document new
10220 behavior and clarify.
10222 2016-07-12 Martin Liska <mliska@suse.cz>
10224 * params.def: Add avg-loop niter.
10225 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
10226 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
10227 * doc/invoke.texi: Document the new parameter.
10229 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10231 PR middle-end/71700
10232 * expr.c (store_constructor): Mask sign-extended bits when widening
10233 sub-word constructor element at the start of a word.
10235 2016-07-12 Martin Liska <mliska@suse.cz>
10237 * Makefile.in: Append rule for params-options.h.
10238 * params-options.h: New file.
10240 2016-07-12 Martin Liska <mliska@suse.cz>
10242 * ira-build.c (mark_loops_for_removal): Properly iterate
10245 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
10246 Richard Biener <rguenther@suse.de>
10248 PR tree-optimization/23286
10249 PR tree-optimization/70159
10250 * doc/invoke.texi: Document -fcode-hoisting.
10251 * common.opt (fcode-hoisting): New flag.
10252 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
10253 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
10254 (do_regular_insertion): Rename to ...
10255 (do_pre_regular_insertion): ... this and amend general comments
10256 on insertion strathegy.
10257 (do_partial_partial_insertion): Rename to ...
10258 (do_pre_partial_partial_insertion): ... this.
10259 (do_hoist_insertion): New function.
10260 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
10261 and call do_hoist_insertion properly.
10263 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
10264 (pass_pre::execute): Register hoist_insert stats.
10266 2016-07-12 Jakub Jelinek <jakub@redhat.com>
10268 PR middle-end/71716
10269 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
10270 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
10271 is different from mode's bitsize. Small cleanup.
10273 2016-07-12 Richard Biener <rguenther@suse.de>
10275 PR rtl-optimization/68961
10276 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
10277 to simplify to a non-constant.
10279 2016-07-11 Jakub Jelinek <jakub@redhat.com>
10281 PR middle-end/71758
10282 * omp-low.c (expand_omp_target): Gimplify device.
10284 PR tree-optimization/71823
10285 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
10286 to get vec_oprnds2 from op2.
10288 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
10290 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
10291 Hoist common subexpressions.
10292 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
10294 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
10297 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
10298 prevent generation of 'stxsiwx' on pre Power8 hardware.
10300 2016-07-11 David Malcolm <dmalcolm@redhat.com>
10302 * input.c: Include cpplib.h.
10303 (selftest::temp_source_file): New class.
10304 (selftest::temp_source_file::temp_source_file): New ctor.
10305 (selftest::temp_source_file::~temp_source_file): New dtor.
10306 (selftest::should_have_column_data_p): New function.
10307 (selftest::test_should_have_column_data_p): New function.
10308 (selftest::temp_line_table): New class.
10309 (selftest::temp_line_table::temp_line_table): New ctor.
10310 (selftest::temp_line_table::~temp_line_table): New dtor.
10311 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
10312 it to create a temp_line_table.
10313 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
10314 locations that are known to have column data.
10315 (selftest::line_table_case): New struct.
10316 (selftest::test_reading_source_line): Move tempfile handling
10317 to class temp_source_file.
10318 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
10319 (selftest::assert_token_loc_eq): New function.
10320 (ASSERT_TOKEN_LOC_EQ): New macro.
10321 (selftest::test_lexer): New function.
10322 (selftest::boundary_locations): New array.
10323 (selftest::input_c_tests): Call test_should_have_column_data_p.
10324 Loop over a test matrix of interesting values of location and
10325 default_range_bits, calling test_lexer on each case in the matrix.
10326 Move call to test_accessing_ordinary_linemaps into the matrix.
10327 * selftest.h (ASSERT_EQ): Reimplement in terms of...
10328 (ASSERT_EQ_AT): New macro.
10330 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
10333 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
10334 Don't convert TImode in debug insn.
10336 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
10338 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
10339 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
10340 (tree_type_common::lang_flag_7): New.
10341 (tree_type_common::spare): Reduce size.
10342 * tree.h (TYPE_ALIGN_OK): Remove.
10343 (TYPE_LANG_FLAG_7): New.
10344 (get_inner_reference): Adjust header.
10345 * print-tree.c (print_node): Adjust.
10346 * expr.c (get_inner_reference): Remove parameter keep_aligning.
10347 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
10348 calls to get_inner_reference.
10349 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
10350 handling of TYPE_ALIGN_OK.
10351 * builtins.c (get_object_alignment_2): Adjust call to
10352 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
10353 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
10355 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
10356 * cfgexpand.c (expand_debug_expr): Likewise.
10357 * dbxout.c (dbxout_expand_expr): Likewise.
10358 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
10359 loc_list_from_tree, fortran_common): Likewise.
10360 * fold-const.c (optimize_bit_field_compare,
10361 decode_field_reference, fold_unary_loc, fold_comparison,
10362 split_address_to_core_and_offset): Likewise.
10363 * gimple-laddress.c (execute): Likewise.
10364 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
10365 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
10366 * hsa-gen.c (gen_hsa_addr): Likewise.
10367 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
10368 * tsan.c (instrument_expr): Likewise.
10369 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
10370 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
10371 * tree-affine.c (tree_to_aff_combination,
10372 get_inner_reference_aff): Adjust calls to get_inner_reference.
10373 * tree-data-ref.c (split_constant_offset_1,
10374 dr_analyze_innermost): Likewise.
10375 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
10376 * tree-sra.c (ipa_sra_check_caller): Likewise.
10377 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
10378 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
10379 bswap_replace): Likewise.
10380 * tree-vect-data-refs.c (vect_check_gather,
10381 vect_analyze_data_refs): Likewise.
10382 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
10383 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
10386 2016-07-11 David Malcolm <dmalcolm@redhat.com>
10388 * Makefile.in (selftest-valgrind): New phony target.
10389 * function-tests.c (selftest::build_cfg): Delete pass instances
10390 created by the test.
10391 (selftest::convert_to_ssa): Likewise.
10392 (selftest::test_expansion_to_rtl): Likewise.
10393 * tree-cfg.c (selftest::test_linear_chain): Release dominator
10395 (selftest::test_diamond): Likewise.
10397 2016-07-11 Richard Biener <rguenther@suse.de>
10399 PR tree-optimization/71816
10400 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
10401 than replacing all of its operands.
10403 2016-07-11 Alan Modra <amodra@gmail.com>
10405 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
10406 (ctr<mode>): Add unspec.
10407 (ctr<mode>_internal*): Likewise.
10409 2016-07-08 James Bowman <james.bowman@ftdichip.com>
10411 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
10412 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
10414 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
10416 PR rtl-optimization/71621
10417 * lra-constraints.c (process_alt_operands): Check combination of
10418 reg class and mode.
10420 2016-07-08 Jason Merrill <jason@redhat.com>
10421 Richard Biener <rguenther@suse.de>
10423 P0145: Refining Expression Order for C++.
10424 * gimplify.c (initial_rhs_predicate_for): New.
10425 (gimplfy_modify_expr): Gimplify RHS before LHS.
10427 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10430 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10431 Allow standard error handling to take over when a wrong number
10432 of arguments is presented to __builtin_vec_ld () or
10433 __builtin_vec_st ().
10435 2016-07-08 Jiong Wang <jiong.wang@arm.com>
10437 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
10442 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
10443 __builtin_aarch64_fmaxv2sf.
10444 (vmaxnmq_f32): Likewise.
10445 (vmaxnmq_f64): Likewise.
10446 (vminnm_f32): Likewise.
10447 (vminnmq_f32): Likewise.
10448 (vminnmq_f64): Likewise.
10450 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10453 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
10454 enable -mfloat128-hardware by default.
10455 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
10456 that IEEE 128-bit hardware support needs.
10457 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
10458 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
10459 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
10460 floating point requires.
10461 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10462 -mfloat128 and -mfloat128-hardware changes.
10464 2016-07-08 Alan Hayward <alan.hayward@arm.com>
10466 PR tree-optimization/71667
10467 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
10469 2016-07-08 Martin Liska <mliska@suse.cz>
10471 PR middle-end/71606
10472 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
10473 folding produces SAVE_EXPRs, thus return false for the type.
10475 2016-07-07 Martin Liska <mliska@suse.cz>
10477 * file-find.c (remove_prefix): New function.
10478 * file-find.h (remove_prefix): Declare the function.
10479 * gcc-ar.c (main): Skip a folder of the wrapper if
10480 a wrapped binary would point to the same file.
10482 2016-07-07 Jan Hubicka <jh@suse.cz>
10484 * tree-scalar-evolution.c (iv_can_overflow_p): export.
10485 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
10486 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
10488 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
10491 * ipa-inline-analysis.c (compute_inline_parameters): Set
10492 local.can_change_signature to false for intrumentation
10495 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
10497 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
10498 with TARGET_HAVE_MOVT.
10499 (TARGET_HAVE_MOVT): Define.
10500 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
10501 availability with TARGET_HAVE_MOVT.
10502 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
10504 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
10506 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
10507 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
10508 * config/arm/constraints.md (define_constraint "j"): Use
10509 TARGET_HAVE_MOVT to check MOVT availability.
10511 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
10513 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
10515 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
10517 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
10518 (armv8-m.main): Likewise.
10519 (armv8-m.main+dsp): Likewise.
10520 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
10521 (FL_FOR_ARCH8M_MAIN): Likewise.
10522 * config/arm/arm-tables.opt: Regenerate.
10523 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
10524 armv8-m.main+dsp to BE8_LINK_SPEC.
10525 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
10526 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
10527 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
10528 Baseline and Mainline.
10529 (arm_option_override_internal): Also disable arm_restrict_it when
10530 !arm_arch_notm. Update comment for -munaligned-access to also cover
10532 (arm_file_start): Increase buffer size for printing architecture name.
10533 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
10534 and armv8-m.main+dsp.
10535 (mno-unaligned-access): Clarify that this is disabled by default for
10536 ARMv8-M Baseline architectures as well.
10538 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
10540 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
10541 decide whether to prevent some libgcc routines being included for some
10542 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
10543 link between this condition and the one in
10544 libgcc/config/arm/lib1func.S.
10546 2016-07-07 Richard Biener <rguenther@suse.de>
10548 * tree-ssa-pre.c: Include alias.h.
10549 (compute_avail): If we have multiple VN_REFERENCEs with the
10550 same hashtable entry adjust that to make it a valid replacement
10551 for all of them with respect to alignment and aliasing
10552 when doing insertion.
10553 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
10554 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
10556 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
10560 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
10561 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
10564 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10566 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
10567 (adjust_mems): Adjust.
10568 (adjust_insn): Likewise.
10569 (prepare_call_arguments): Likewise.
10571 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10573 * gcse.c (struct ls_expr): Make stores field a vector.
10574 (ldst_entry): Adjust.
10575 (free_ldst_entry): Likewise.
10576 (print_ldst_list): Likewise.
10577 (compute_ld_motion_mems): Likewise.
10578 (update_ld_motion_stores): Likewise.
10580 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10582 * gcse.c (struct ls_expr): Remove loads field.
10583 (ldst_entry): Adjust.
10584 (free_ldst_entry): Likewise.
10585 (print_ldst_list): Likewise.
10586 (compute_ld_motion_mems): Likewise.
10588 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10590 * store-motion.c (struct st_expr): Make antic_stores a vector.
10591 (st_expr_entry): Adjust.
10592 (free_st_expr_entry): Likewise.
10593 (print_store_motion_mems): Likewise.
10594 (find_moveable_store): Likewise.
10595 (compute_store_table): Likewise.
10596 (remove_reachable_equiv_notes): Likewise.
10597 (replace_store_insn): Likewise.
10598 (build_store_vectors): Likewise.
10600 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10602 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
10603 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
10605 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
10607 PR tree-optimization/71518
10608 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
10609 misalign also for outer loops with negative step.
10611 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
10613 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
10614 (cortex_a53_shift): Add mov_shift.
10615 (cortex_a53_shift_reg): Add new reservation for register shifts.
10616 (cortex_a53_alu): Remove bfm.
10617 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
10618 (cortex_a53_alu_extr): Add new reservation for EXTR.
10619 (bypasses): Improve bypass modelling.
10621 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10624 * config/avr/avr.c (avr_asm_select_section): Strip off
10625 SECTION_DECLARED from flags when calling get_section.
10627 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
10629 * tree-vectorizer.h (vect_memory_access_type): Add
10630 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
10631 * tree-vect-stmts.c (compare_step_with_zero): New function.
10632 (perm_mask_for_reverse): Move further up file.
10633 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
10635 (get_negative_load_store_type): New function.
10636 (get_load_store_type): Call it. Add an ncopies argument.
10637 (vectorizable_mask_load_store): Update call accordingly and
10638 remove tests for negative steps.
10639 (vectorizable_store, vectorizable_load): Likewise. Handle new
10640 memory_access_types.
10642 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
10644 * tree-vectorizer.h (vect_memory_access_type): New enum.
10645 (_stmt_vec_info): Add a memory_access_type field.
10646 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
10647 (vect_model_store_cost): Take an access type instead of a boolean.
10648 (vect_model_load_cost): Likewise.
10649 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
10650 vect_model_store_cost and vect_model_load_cost.
10651 * tree-vect-stmts.c (vec_load_store_type): New enum.
10652 (vect_model_store_cost): Take an access type instead of a
10653 store_lanes_p boolean. Simplify tests.
10654 (vect_model_load_cost): Likewise, but for load_lanes_p.
10655 (get_group_load_store_type, get_load_store_type): New functions.
10656 (vectorizable_store): Use get_load_store_type. Record the access
10657 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
10658 (vectorizable_load): Likewise.
10659 (vectorizable_mask_load_store): Likewise. Replace is_store
10660 variable with vls_type.
10662 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
10664 * tree-vectorizer.h (vect_grouped_load_supported): Add a
10665 single_element_p parameter.
10666 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
10667 Check the PR65518 case here rather than in vectorizable_load.
10668 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
10669 * tree-vect-stmts.c (vectorizable_load): Likewise.
10671 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
10673 * tree-vectorizer.h (gather_scatter_info): New structure.
10674 (vect_check_gather_scatter): Return a bool rather than a decl.
10675 Replace return-by-pointer arguments with a single
10676 gather_scatter_info *.
10677 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
10678 (vect_analyze_data_refs): Update call accordingly.
10679 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
10680 (vectorizable_mask_load_store): Likewise. Also record the
10681 offset dt and vectype in the gather_scatter_info.
10682 (vectorizable_store): Likewise.
10683 (vectorizable_load): Likewise.
10685 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
10687 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
10688 strided groups, use the cost of N scalar accesses instead
10689 of ncopies vector accesses.
10690 (vect_model_load_cost): Likewise.
10692 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
10694 * tree-vect-stmts.c (vect_cost_group_size): Delete.
10695 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
10696 variable to indicate when once-per-group costs are being used.
10697 (vect_model_load_cost): Likewise. Fix comment and misindented code.
10699 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
10701 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
10702 peeling-for-gaps condition.
10704 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10706 * config/s390/s390.c (s390_expand_vec_init): Force initializer
10707 element to register if it doesn't match general_operand.
10709 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10710 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10712 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
10714 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
10715 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
10716 (SIGNBIT): New mode iterator.
10717 (Fsignbit): New mode attribute.
10718 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
10719 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
10720 when direct moves are available.
10721 (signbit<mode>2_dm): New define_insn_and_split).
10722 (signbit<mode>2_dm2): New define_insn.
10724 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10726 PR rtl-optimization/71594
10727 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
10728 into subregs of appropriate mode before trying to emit a conditional
10731 2016-07-05 Jan Hubicka <jh@suse.cz>
10733 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
10734 (simple_iv): Use it.
10736 2016-07-05 Jan Hubicka <jh@suse.cz>
10738 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
10740 2016-07-05 Jiong Wang <jiong.wang@arm.com>
10742 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
10745 2016-07-05 Jan Hubicka <jh@suse.cz>
10747 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
10750 2016-07-05 Richard Biener <rguenther@suse.de>
10752 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
10753 Handle empty else block.
10754 (is_feasible_trace): Likewise.
10755 (split_paths): Likewise.
10757 2016-07-05 Richard Biener <rguenther@suse.de>
10759 * tree-loop-distribution.c (distribute_loop): Fix issue with
10760 the cost model loop.
10762 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
10764 * config/arm/neon-testgen.ml: Delete.
10765 * config/arm/neon.ml: Delete.
10767 2016-07-04 Jakub Jelinek <jakub@redhat.com>
10770 * tree.c (attribute_value_equal): Use get_attribute_name instead of
10771 directly using TREE_PURPOSE.
10773 2016-07-04 Jiong Wang <jiong.wang@arm.com>
10775 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
10776 * config/aarch64/aarch64_neon.h: Likewise.
10777 * config/aarch64/arm_neon.h: Likewise.
10778 * config/aarch64/atomics.md: Likewise.
10779 * config/aarch64/aarch64-simd-builtins.def: Likewise.
10780 * doc/invoke.texi: Likewise.
10782 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
10784 * config/s390/s390.md: Add "z13" cpu_facility.
10785 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
10786 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
10787 condition" type instructions.
10789 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
10790 Jeff Law <law@redhat.com>
10792 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
10793 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
10795 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
10797 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
10798 permutation for TARGET_AVX512F.
10799 (ix86_expand_vec_one_operand_perm_avx512): New function.
10800 (expand_vec_perm_1): Invoke introduced function.
10801 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
10802 it may be not valid after vectorization.
10804 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10807 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
10808 typo in comment. Only force to memory if it is a weak
10809 external reference.
10811 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
10812 Jiong Wang <jiong.wang@arm.com>
10814 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
10815 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
10816 (AARCH64_FL_F16): New.
10817 (AARCH64_FL_FOR_ARCH8_2): New.
10818 (AARCH64_ISA_8_2): New.
10819 (AARCH64_ISA_F16): New.
10820 (TARGET_FP_F16INST): New.
10821 (TARGET_SIMD_F16INST): New.
10822 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
10823 ("fp"): Disabling "fp" also disables "fp16".
10824 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
10825 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
10826 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
10827 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
10829 2016-07-04 Jan Beulich <jbeulich@suse.com>
10831 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
10833 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10836 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
10837 the insns, use an insn form that does not adjust the offset on
10838 little endian systems.
10840 2016-07-01 Jan Beulich <jbeulich@suse.com>
10842 * varasm.c (get_variable_section): Validate initializer in
10843 named .bss-like sections.
10845 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
10847 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
10848 Exchange the order of the second and third operands in the vpermr
10849 instruction tmeplate.
10851 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
10854 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
10855 Disallow TDmode values.
10857 2016-07-01 Alan Modra <amodra@gmail.com>
10859 PR rtl-optimization/71709
10860 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
10861 being set, not referenced.
10863 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
10865 PR tree-optimization/70729
10866 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
10867 of loop since it can be not valid after transformation.
10869 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10871 * config/arm/arm.c (thumb_reload_in_hi): Delete.
10872 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
10874 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
10876 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
10879 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
10882 * config/rs6000/constraints.md (wY constraint): New constraint to
10883 match the requirements for the LXSD and STXSD instructions.
10884 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
10885 predicate to match the requirements for the LXSD and STXSD
10887 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
10888 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
10889 to make sure that the bottom 2 bits of offset are 0, the address
10890 form is offsettable, and no updating is done in the address mode.
10891 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
10892 (movdi_internal32): Likewise
10893 (movdi_internal64): Likewise.
10895 2016-06-30 Jakub Jelinek <jakub@redhat.com>
10897 PR tree-optimization/71707
10898 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
10899 strinfo even for ADDR_EXPR ptr.
10901 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
10903 * config/rs6000/altivec.md (darn_32): Change the condition to
10904 TARGET_P9_MISC instead of TARGET_MODULO.
10905 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
10906 condition expression.
10907 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
10908 condition expression.
10909 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
10910 (DFP_TEST): New code iterator.
10911 (dfptstsfi_<code>_mode>): New define_expand.
10912 (*dfp_sgnfcnc_<mode>): New define_insn.
10913 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
10914 definition next to BU_P9_MISC_1 definition and change the MASK
10915 value to RS6000_BTM_P9_MISC.
10916 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
10917 (BU_P9_64BIT_MISC_0): Likewise.
10918 (BU_P9_DFP_MISC_0): New macro definition.
10919 (BU_P9_DFP_MISC_1): New macro definition.
10920 (BU_P9_DFP_MISC_2): New macro definition.
10921 (BU_P9_DFP_OVERLOAD_1): New macro definition.
10922 (BU_P9_DFP_OVERLOAD_2): New macro definition.
10923 (BU_P9_DFP_OVERLOAD_3): New macro definition.
10924 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
10925 (TSTSFI_LT_TD): Likewise.
10926 (TSTSFI_EQ_DD): Likewise.
10927 (TSTSFI_EQ_TD): Likewise.
10928 (TSTSFI_GT_DD): Likewise.
10929 (TSTSFI_GT_TD): Likewise.
10930 (TSTSFI_OV_DD): Likewise.
10931 (TSTSFI_OV_TD): Likewise.
10932 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
10933 (TSTSFI_LT_DD): Likewise.
10934 (TSTSFI_LT_TD): Likewise.
10935 (TSTSFI_EQ): Likewise.
10936 (TSTSFI_EQ_DD): Likewise.
10937 (TSTSFI_EQ_TD): Likewise.
10938 (TSTSFI_GT): Likewise.
10939 (TSTSFI_GT_DD): Likewise.
10940 (TSTSFI_GT_TD): Likewise.
10941 (TSTSFI_OV): Likewise.
10942 (TSTSFI_OV_DD): Likewise.
10943 (TSTSFI_OV_TD): Likewise.
10944 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10945 overloaded test significance functions.
10946 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
10947 OPTION_MASK_P9_MISC into the representation of this mask.
10948 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
10950 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
10951 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
10953 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
10954 argument is a 6-bit unsigned literal value if the icode argument
10955 represents a DFP test significance built-in call.
10956 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
10957 flag used independently and in combination with the
10958 RS6000_BTM_64BIT flag.
10959 (rs6000_opt_masks): Add entry for power9-misc command-line option.
10960 (rs6000_builtin_mask_names): Add entry for power9-misc
10961 command-line option.
10962 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
10963 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
10964 RS6000_BTM_P9_MISC macros.
10965 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
10966 option and change the description of the -mpower9-vector option to
10967 enable only vector instructions, removing its erroneously claimed
10968 support for scalar instructions.
10969 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
10970 the ISA 3.0 digital floating point test significance built-in
10973 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
10975 * config/aarch64/aarch64.c (cortexa35_tunings):
10976 Enable AES fusion. Use cortexa57_branch_cost.
10977 (cortexa53_tunings): Use cortexa57_branch_cost.
10978 (cortexa72_tunings): Use cortexa57_branch_cost.
10979 Use AUTOPREFETCHER_WEAK.
10980 (cortexa73_tunings): Use cortexa57_branch_cost.
10982 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10983 James Greenhalgh <james.greenhalgh@arm.com>
10985 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
10986 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
10987 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
10988 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
10989 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
10990 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
10991 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
10992 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
10993 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
10994 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
10995 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
10996 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
10997 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
11000 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
11001 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11003 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
11005 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
11007 2016-06-30 David Malcolm <dmalcolm@redhat.com>
11010 * gcc.c (driver::build_option_suggestions): Pass "option" to
11011 add_misspelling_candidates.
11012 * opts-common.c (add_misspelling_candidates): Add "option" param;
11013 use it to avoid adding negated forms for options marked with
11015 * opts.h (add_misspelling_candidates): Add "option" param.
11017 2016-06-30 Jakub Jelinek <jakub@redhat.com>
11019 PR middle-end/71693
11020 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
11021 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
11022 first when permuting bitwise operation with rotate. Cast
11023 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
11025 2016-06-29 David Malcolm <dmalcolm@redhat.com>
11027 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
11028 for misspelled param names.
11029 * params.c: Include spellcheck.h.
11030 (find_param_fuzzy): New function.
11031 * params.h (find_param_fuzzy): New prototype.
11032 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
11033 * spellcheck.h (struct edit_distance_traits<const char *>):
11036 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
11038 * config/rs6000/predicates.md (const_0_to_7_operand): New
11039 predicate, recognize 0..7.
11040 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
11041 support for doing extracts from V16QImode, V8HImode, V4SImode
11043 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
11044 vector extract support.
11045 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
11046 for ISA 3.0 vector extract.
11047 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
11048 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
11049 extracts of a constant element number from small integer vectors
11050 on 64-bit ISA 3.0 systems.
11051 (vsx_extract_<mode>_di): Likewise.
11052 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
11053 say when we can do ISA 3.0 vector extracts.
11054 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
11055 registers, using the stxsiwx instruction.
11057 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
11059 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
11060 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
11061 qdf24xx_regmove_cost, qdf24xx_tunings): New.
11062 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
11063 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
11064 * config/arm/arm.c (arm_qdf24xx_tune): New.
11066 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
11068 * config/aarch64/aarch64.c (cortexa53_tunings):
11069 Increase loop alignment to 8. Set function alignment to 16.
11070 (cortexa35_tunings): Likewise.
11071 (cortexa57_tunings): Increase loop alignment to 8.
11072 (cortexa72_tunings): Likewise.
11073 (cortexa73_tunings): Likewise.
11075 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
11077 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
11078 for arm_fp16_ok and arm_fp16_hw.
11079 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
11080 arm_fp16_alternative.
11082 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
11084 PR tree-optimization/71655
11085 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
11086 types when swapping operands.
11088 2016-06-29 Martin Liska <mliska@suse.cz>
11090 PR middle-end/71585
11091 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
11092 * ipa-inline-transform.c (inline_call): Remove unnecessary call
11093 of build_optimization_node.
11095 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
11097 PR tree-optimization/70729
11098 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
11099 independent in loops having positive safelen value.
11100 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
11101 it may be not valid after vectorization.
11103 2016-06-29 Jakub Jelinek <jakub@redhat.com>
11105 PR tree-optimization/71625
11106 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
11107 is sorted by ascending list->offset. If PTR is non-NULL and there is
11108 previous strinfo, call get_stridx_plus_constant.
11109 (get_stridx): Pass exp as second argument to get_addr_stridx.
11110 (addr_stridxptr): Add missing list = list->next, so that there can be
11111 more than one entries in the list. Bump limit from 16 to 32. Ensure
11112 the list is sorted by ascending list->offset.
11113 (get_stridx_plus_constant): Adjust so that it can be also called with
11114 ADDR_EXPR instead of SSA_NAME as PTR.
11115 (handle_char_store): Pass NULL_TREE as second argument to
11118 2016-06-29 Richard Biener <rguenther@suse.de>
11120 PR rtl-optimization/68961
11121 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
11123 2016-06-29 Richard Biener <rguenther@suse.de>
11125 PR middle-end/71002
11126 * alias.c (component_uses_parent_alias_set_from): Handle
11127 type punning through union accesses by using the union alias set.
11128 * gimple.c (gimple_get_alias_set): Remove union type punning case.
11130 2016-07-29 Richard Biener <rguenther@suse.de>
11132 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
11133 precision not matching mode precision.
11135 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
11137 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
11138 pa_output_arg_descriptor.
11139 (call_val_symref_64bit_post_reload): Likewise.
11140 (call_val_powf_64bit_post_reload): Likewise.
11141 (sibcall_internal_symref_64bit): Likewise.
11142 (sibcall_value_internal_symref_64bit): Likewise.
11144 2016-06-28 Jakub Jelinek <jakub@redhat.com>
11146 PR middle-end/71626
11147 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
11148 a constant, force its SUBREG_REG into memory or register instead
11151 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11154 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
11155 * doc/invoke.texi (AVR Options): Document it.
11157 2016-06-28 Walter Lee <walt@tilera.com>
11159 * config/tilegx/linux.h: Do not include arch/icache.h
11160 (CLEAR_INSN_CACHE): Provide inlined definition directly.
11161 * config/tilepro/linux.h: Do not include arch/icache.h
11162 (CLEAR_INSN_CACHE): Provide inlined definition directly.
11164 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
11166 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
11167 for big-endian BIT_FIELD_REF.
11169 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
11171 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
11172 ('size' attribute): Add '128'.
11174 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
11175 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
11176 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
11177 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
11178 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
11179 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
11180 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
11181 *trunc<mode>df2_odd): Set size attribute to '128'.
11182 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
11183 * config/rs6000/power6.md (power6-fp): Include dfp type.
11184 * config/rs6000/power7.md (power7-fp): Likewise.
11185 * config/rs6000/power8.md (power8-fp): Likewise.
11186 * config/rs6000/power9.md: New file.
11187 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
11188 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
11189 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
11191 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
11192 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
11193 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
11194 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
11195 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
11196 dfp_dscri_<mode>): Change type attribute to dfp.
11197 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
11198 attribute to vecsimple.
11199 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
11200 and prefetch streams.
11201 (rs6000_option_override_internal): Remove temporary code setting
11202 tuning to power8. Don't set rs6000_sched_groups for power9.
11203 (last_scheduled_insn): Change to rtx_insn *.
11204 (divide_cnt, vec_load_pendulum): New variables.
11205 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
11206 (rs6000_issue_rate): Set issue rate for Power9.
11207 (is_power9_pairable_vec_type): New.
11208 (power9_sched_reorder2): New.
11209 (rs6000_sched_reorder2): Call new function for Power9 specific
11211 (insn_must_be_first_in_group): Remove Power9.
11212 (insn_must_be_last_in_group): Likewise.
11213 (force_new_group): Likewise.
11214 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
11215 Initialize divide_cnt/vec_load_pendulum.
11216 (_rs6000_sched_context, rs6000_init_sched_context,
11217 rs6000_set_sched_context): Handle context save/restore of new
11220 2016-06-28 Richard Biener <rguenther@suse.de>
11222 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11223 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
11224 COMPONENT_REF operand.
11225 (nonoverlapping_component_refs_p): Likewise.
11226 * stor-layout.c (start_bitfield_representative): Mark
11227 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
11229 2016-06-28 Jakub Jelinek <jakub@redhat.com>
11231 * Makefile.in: Don't cat ../stage_current if it does not exist.
11233 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
11234 last argument is a bit-field.
11236 PR rtl-optimization/71673
11237 * internal-fn.c (expand_arith_overflow_result_store): Use
11238 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
11239 expand_simple_binop.
11241 PR middle-end/66867
11242 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
11243 expand_ifn_atomic_compare_exchange): New functions.
11244 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
11245 * tree.h (build_call_expr_internal_loc): Rename to ...
11246 (build_call_expr_internal_loc_array): ... this. Fix up type of
11248 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
11249 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
11250 ATOMIC_COMPARE_EXCHANGE result.
11251 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
11252 * gimple-fold.h (optimize_atomic_compare_exchange_p,
11253 fold_builtin_atomic_compare_exchange): New prototypes.
11254 * gimple-fold.c (optimize_atomic_compare_exchange_p,
11255 fold_builtin_atomic_compare_exchange): New functions..
11256 * tree-ssa.c (execute_update_addresses_taken): If
11257 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
11258 of call when finding addressable vars, and if such var becomes
11259 non-addressable, call fold_builtin_atomic_compare_exchange.
11261 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
11264 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
11265 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
11267 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
11269 * config/rs6000/rs6000.md ('type' attribute): Add
11270 veclogical,veccmpfx,vecexts,vecmove insn types.
11271 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
11272 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
11273 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
11274 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
11275 *nabs<mode>2_hw): Change type to vecmove.
11276 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
11277 *boolcc<mode>3_internal, *eqv<mode>3_internal,
11278 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
11279 *ieee_128bit_vsx_abs<mode>2_internal,
11280 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
11281 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
11282 *ieee128_mtvsrd_32bit): Change type to veclogical.
11283 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
11284 *movdi_internal32, *movdi_internal64): Update insn types.
11285 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
11286 vsx_extract_<mode>): Change type to veclogical.
11287 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
11288 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
11289 *vsx_sign_extend_si_v2di): Change type to vecexts.
11290 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
11291 type to veclogical.
11292 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
11293 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
11294 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
11295 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
11296 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
11297 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
11298 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
11299 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
11300 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
11301 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
11302 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
11303 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
11304 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
11305 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
11306 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
11307 (ppc7450-vecsimple): Add veclogical, vecmove.
11308 (ppc7450-veccmp): Add veccmpfx.
11309 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
11311 (ppc8540_vector_compare): Add veccmpfx.
11312 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
11313 * config/rs6000/cell.md (cell-fp): Add fpsimple.
11314 (cell-vecsimple): Add veclogical, vecmove.
11315 (cell-veccmp): Add veccmpfx.
11316 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
11317 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
11319 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
11320 * config/rs6000/power4.md (power4-fp): Add fpsimple.
11321 (power4-vecsimple): Add veclogical, vecmove.
11322 (power4-veccmp): Add veccmpfx.
11323 * config/rs6000/power5.md (power5-fp): Add fpsimple.
11324 * config/rs6000/power6.md (power6-fp): Add fpsimple.
11325 (power6-vecsimple): Add veclogical, vecmove.
11326 (power6-veccmp): Add veccmpfx.
11327 * config/rs6000/power7.md (power7-fp): Add fpsimple.
11328 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
11329 * config/rs6000/power8.md (power8-fp): Add fpsimple.
11330 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
11331 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
11332 * config/rs6000/titan.md (titan_fp): Add fpsimple.
11333 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
11335 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
11337 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
11340 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
11341 OPTION_MASK_P9_DFORM_VECTOR.
11342 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
11343 disable -mpower9-dform-vector when using reload.
11344 (quad_address_p): Remove 'gpr_p' argument and all associated code.
11345 New 'strict' argument. Update all callers. Add strict addressing
11347 (rs6000_legitimate_offset_address_p): Remove call to
11348 virtual_stack_registers_memory_p.
11349 (rs6000_legitimize_reload_address): Add quad address support.
11350 (rs6000_legitimate_address_p): Move call to quad_address_p above
11351 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
11352 to account for new strict usage.
11353 (rs6000_output_move_128bit): Adjust quad_address_p args to account
11354 for new strict usage.
11355 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
11357 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
11364 * config/i386/i386.c (ix86_spill_class): Disable condition to
11365 always return NO_REGS.
11367 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
11369 * predict.c: Include gimple-pretty-print.h
11370 (predicted_by_loop_heuristics_p): Check also
11371 PRED_LOOP_EXIT_WITH_RECURSION
11372 (predict_loops): Find self recursive calls and use special purpose
11373 predictors for them; dump log about decisions.
11374 (pass_profile::execute): Dump info about #of iterations.
11375 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
11376 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
11378 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
11380 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
11381 output_asm_insn calls and shorten long lines. Output .CALL
11382 argument descriptor using pa_output_arg_descriptor. Add various
11383 inline $$dyncall and other optimizations.
11384 (pa_attr_length_indirect_call): Adjust ordering and lengths.
11386 2016-06-25 Jakub Jelinek <jakub@redhat.com>
11388 PR tree-optimization/71643
11389 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
11392 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
11393 leak a bitmap if dep_bb is NULL.
11395 PR tree-optimization/71631
11396 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
11397 to rewrite_expr_tree even if negate_result, move new_lhs var
11398 declaration and initialization earlier, for powi_result set afterwards
11399 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
11400 if new_lhs != lhs, and don't shadow gsi var.
11402 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
11404 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
11405 Add in_loop parameter.
11406 (predict_loops): Add loop guard heuristics.
11407 * predict.def (PRED_LOOP_GUARD): New heuristics.
11409 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
11411 * predict.c: Include ipa-utils.h
11412 (tree_bb_level_prediction): Predict recursive calls.
11413 (tree_estimate_probability_bb): Skip inexpensive calls for call
11415 * predict.def (PRED_RECURSIVE_CALL): New.
11417 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11419 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
11420 (BU_FLOAT128_1): Likewise.
11422 (COPYSIGNQ): Likewise.
11423 (RS6000_BUILTIN_NANQ): Likewise.
11424 (RS6000_BUILTIN_NANSQ): Likewise.
11425 (RS6000_BUILTIN_INFQ): Likewise.
11426 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
11427 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
11428 (TARGET_FOLD_BUILTIN): New #define.
11429 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
11430 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
11431 (rs6000_fold_builtin): New target hook implementation, handling
11432 folding of 128-bit NaNs and infinities.
11433 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
11434 entries are filled in to avoid problems during bootstrap
11435 self-test; define builtins for 128-bit NaNs and infinities.
11436 (rs6000_opt_mask): Add entry for float128.
11437 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
11438 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
11439 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
11440 (const_str_type_node): New #define.
11441 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
11442 to a define_expand that dispatches to either copysign<mode>3_soft
11443 or copysign<mode>3_hard.
11444 (copysign<mode>3_hard): Rename from copysign<mode>3.
11445 (copysign<mode>3_soft): New define_insn.
11446 * doc/extend.texi: Document new builtins.
11448 2016-06-24 Jakub Jelinek <jakub@redhat.com>
11450 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
11451 PRIu64 instead of lu.
11453 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
11456 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
11457 copy the type name.
11459 2016-06-24 Jakub Jelinek <jakub@redhat.com>
11461 PR tree-optimization/71647
11462 * omp-low.c (lower_rec_input_clauses): Convert
11463 omp_clause_aligned_alignment (c) to size_type_node for the
11464 last argument of __builtin_assume_aligned.
11466 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
11468 * configure.ac (calling ___tls_get_addr via GOT): New
11469 assembler/linker check.
11470 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
11471 assembler and linker supports calling ___tls_get_addr via GOT.
11472 Otherise, defined to 0.
11473 * config.in: Regenerated.
11474 * configure: Likewise.
11475 * config/i386/constraints.md (Yb): New constraint.
11476 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
11477 (REG_CLASS_NAMES): Likewise.
11478 (REG_CLASS_CONTENTS): Likewise.
11479 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
11480 the b constraint with the Yb constraint. Call ___tls_get_addr
11481 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
11483 (*tls_local_dynamic_base_32_gnu): Likewise.
11484 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
11485 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
11486 (*tls_local_dynamic_base_64_<mode>): Likewise.
11488 2016-06-24 Martin Liska <mliska@suse.cz>
11490 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
11491 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
11493 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
11494 argument to true if the expected number of iterations is
11497 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
11499 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
11500 assemble for 32bit target.
11501 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
11502 and $ld_ix86_gld_32_opt to link for 32bit target.
11503 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
11504 * configure: Regenerate.
11506 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11508 * config/arm/arm.c (int_log2): Delete definition and prototype.
11509 (shift_op): Use exact_log2 instead of int_log2.
11510 (vfp3_const_double_for_fract_bits): Likewise.
11512 2016-06-24 Jakub Jelinek <jakub@redhat.com>
11514 * internal-fn.c (expand_arith_set_overflow): New function.
11515 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
11517 (expand_arith_overflow_result_store): Likewise. Handle precision
11518 smaller than mode precision.
11519 * tree-vrp.c (extract_range_basic): For imag part, handle
11520 properly signed 1-bit precision result.
11521 * doc/extend.texi (__builtin_add_overflow): Document that last
11522 argument can't be pointer to enumerated or boolean type.
11523 (__builtin_add_overflow_p): Document that last argument can't
11524 have enumerated or boolean type.
11526 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11527 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11529 * config/rs6000/predicates.md (splat_input_operand): Rework.
11530 Don't allow constants, since the insns that use this predicate
11531 don't support constants. Constants are handled by other insns
11532 that are created via combine. During and after register
11533 allocation, only allow indexed or indirect addresses, and not
11534 general addresses. Only allow modes supported by the hardware.
11535 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
11536 comment. Move check for using VSPLTIS<x> to a common location,
11537 instead of doing it in two different places.
11539 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
11541 * config/i386/driver-i386.c (host_detect_local_cpu): Set
11542 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
11543 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
11544 signature_CENTAUR_ebx.
11546 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
11550 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
11551 (as_ix86_gas_32_opt): This.
11552 (ld_ix86_tls_ldm_opt): Renamed to ...
11553 (ld_ix86_gld_32_opt): This.
11554 (R_386_TLS_LDM reloc): Updated.
11555 (R_386_GOT32X reloc): New assembler/linker check.
11556 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
11557 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
11559 * config.in: Regenerated.
11560 * configure: Likewise.
11561 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
11562 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
11563 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
11564 if ix86_force_load_from_GOT_p returns true.
11565 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
11566 ix86_force_load_from_GOT_p returns true.
11567 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
11568 the external function address via the GOT slot.
11569 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
11570 HAVE_AS_IX86_GOT32X before returning false.
11571 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
11572 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
11574 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
11576 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
11578 2016-06-23 Andi Kleen <ak@linux.intel.com>
11580 * Makefile.in: Regenerate.
11581 * doc/install.texi: Document autoprofiledbootstrap.
11583 2016-06-23 Andi Kleen <ak@linux.intel.com>
11585 * config/i386/gcc-auto-profile: New file.
11587 2016-06-23 Martin Liska <mliska@suse.cz>
11589 PR middle-end/71619
11590 * predict.c (predict_loops): Revert the hunk that was removed
11593 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
11595 * config.gcc: Add support for arm*-*-phoenix* targets.
11596 * config/arm/t-phoenix: New.
11597 * config/phoenix.h: New.
11599 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
11600 H.J. Lu <hongjiu.lu@intel.com>
11603 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
11604 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
11605 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
11606 ix86_force_load_from_GOT_p returns true.
11607 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
11608 ix86_force_load_from_GOT_p returns true.
11609 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
11610 ix86_force_load_from_GOT_p returns true.
11611 (ix86_expand_move): Load the external function address via the
11612 GOT slot if ix86_force_load_from_GOT_p returns true.
11613 * config/i386/predicates.md (x86_64_immediate_operand): Return
11614 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
11615 (x86_64_zext_immediate_operand): Ditto.
11617 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
11619 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
11621 2016-06-22 David Malcolm <dmalcolm@redhat.com>
11624 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
11625 * diagnostic.c (pedwarn_at_rich_loc): New function.
11626 * spellcheck.h (best_match::best_match): Add a
11627 "best_distance_so_far" optional parameter.
11628 (best_match::set_best_so_far): New method.
11629 (best_match::get_best_distance): New accessor.
11630 (best_match::get_best_candidate_length): New accessor.
11632 2016-06-22 Nick Clifton <nickc@redhat.com>
11634 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
11635 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
11636 modes are accepted as well.
11637 (ucompare_loc_descriptor): Likewise.
11638 (minmax_loc_descriptor): Likewise.
11639 (clz_loc_descriptor): Likewise.
11640 (popcount_loc_descriptor): Likewise.
11641 (bswap_loc_descriptor): Likewise.
11642 (rotate_loc_descriptor): Likewise.
11643 (mem_loc_descriptor): Likewise.
11644 (loc_descriptor): Likewise.
11646 2016-06-22 David Malcolm <dmalcolm@redhat.com>
11648 * common.opt (fdiagnostics-parseable-fixits): New option.
11649 * diagnostic.c: Include "selftest.h".
11650 (print_escaped_string): New function.
11651 (print_parseable_fixits): New function.
11652 (diagnostic_report_diagnostic): Call print_parseable_fixits.
11653 (selftest::assert_print_escaped_string): New function.
11654 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
11655 (selftest::test_print_escaped_string): New function.
11656 (selftest::test_print_parseable_fixits_none): New function.
11657 (selftest::test_print_parseable_fixits_insert): New function.
11658 (selftest::test_print_parseable_fixits_remove): New function.
11659 (selftest::test_print_parseable_fixits_replace): New function.
11660 (selftest::diagnostic_c_tests): New function.
11661 * diagnostic.h (struct diagnostic_context): Add field
11662 "parseable_fixits_p".
11663 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
11664 -fdiagnostics-parseable-fixits.
11665 (-fdiagnostics-parseable-fixits): New option.
11666 * opts.c (common_handle_option): Handle
11667 -fdiagnostics-parseable-fixits.
11668 * selftest-run-tests.c (selftest::run_tests): Call
11669 selftest::diagnostic_c_tests.
11670 * selftest.h (selftest::diagnostic_c_tests): New prototype.
11672 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
11674 PR tree-optimization/71488
11675 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
11676 comparison of boolean vectors.
11677 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
11678 of boolean vectors using bitwise operations.
11680 2016-06-22 Andreas Schwab <schwab@suse.de>
11682 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
11683 Remove declaration.
11685 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
11687 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
11689 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
11691 * config/i386/i386.c (print_reg): Emit an error message on attempt to
11694 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11696 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
11697 * config/arm/arm-cores.def (cortex-a73): New entry.
11698 (cortex-a73.cortex-a35): Likewise.
11699 (cortex-a73.cortex-a53): Likewise.
11700 * config/arm/arm-tables.opt: Regenerate.
11701 * config/arm/arm-tune.md: Likewise.
11702 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
11703 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
11704 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
11705 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
11706 * doc/invoke.texi (ARM Options): Document cortex-a73,
11707 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
11709 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11711 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
11712 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
11713 (cortex-a73.cortex-a35): Likewise.
11714 (cortex-a73.cortex-a53): Likewise.
11715 * config/aarch64/aarch64-tune.md: Regenerate.
11716 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
11717 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
11720 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11722 * configure.ac (gcc_cv_as_compress_debug): Remove
11723 --compress-debug-sections as extra as switch.
11724 Handle gas --compress-debug-sections=type.
11725 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
11726 Handle gld --compress-debug-sections=type.
11727 * configure: Regenerate.
11729 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
11731 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
11733 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
11735 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
11736 (do_rewrite): likewise.
11738 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11740 * common/config/mep/mep-common.c: Remove.
11741 * config.gcc: Remove mep-* support.
11742 * config/mep/constraints.md: Remove.
11743 * config/mep/default.h: Remove.
11744 * config/mep/intrinsics.h: Remove.
11745 * config/mep/intrinsics.md: Remove.
11746 * config/mep/ivc2-template.h: Remove.
11747 * config/mep/mep-c5.cpu: Remove.
11748 * config/mep/mep-core.cpu: Remove.
11749 * config/mep/mep-default.cpu: Remove.
11750 * config/mep/mep-ext-cop.cpu: Remove.
11751 * config/mep/mep-intrin.h: Remove.
11752 * config/mep/mep-ivc2.cpu: Remove.
11753 * config/mep/mep-pragma.c: Remove.
11754 * config/mep/mep-protos.h: Remove.
11755 * config/mep/mep.c: Remove.
11756 * config/mep/mep.cpu: Remove.
11757 * config/mep/mep.h: Remove.
11758 * config/mep/mep.md: Remove.
11759 * config/mep/mep.opt: Remove.
11760 * config/mep/predicates.md: Remove.
11761 * config/mep/t-mep: Remove.
11762 * doc/install.texi: Remove mep-* documentation.
11763 * doc/md.texi: Likewise.
11765 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11767 * config.gcc: Remove support for avr-rtems.
11768 * config/avr/gen-avr-mmcu-specs.c: Likewise.
11769 * config/avr/rtems.h: Remove.
11770 * config/avr/t-rtems: Remove.
11772 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11774 * config.gcc: Remove m32r-rtems support.
11775 * config/m32r/rtems.h: Remove.
11777 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11779 * config.gcc: Remove h8300-rtems support.
11780 * config/h8300/rtems.h: Remove.
11781 * config/h8300/t-rtems: Remove.
11783 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11785 * config.gcc: Remove support for knetbsd.
11786 * configure.ac: Likewise.
11787 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
11788 * config/knetbsd-gnu.h: Remove.
11789 * configure: Regenerate.
11791 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11793 * config.gcc: Remove support for openbsd 2 and 3.
11794 * config/openbsd-oldgas.h: Remove.
11796 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11798 * config.gcc: Remove interix support.
11799 * config/i386/i386-interix.h: Remove.
11800 * config/i386/interix.opt: Remove.
11801 * config/i386/t-interix: Remove.
11802 * configure: Regenerate.
11803 * configure.ac: Remove interix support.
11804 * doc/install.texi: Remove interix documentation.
11806 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
11808 * config/rs6000/rs6000.h: Add conditional preprocessing directives
11809 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
11812 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
11814 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
11815 they are both PLACEHOLDER_EXPRs.
11817 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11819 * stor-layout.c (layout_type): Move setting complex MODE to
11820 layout_type, instead of setting it ahead of time by the caller.
11821 * tree.c (build_complex_type): Likewise.
11823 2016-06-21 Martin Liska <mliska@suse.cz>
11825 * predict.c (force_edge_cold): Replace imposisble with
11828 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
11830 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
11831 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
11833 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
11835 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
11837 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
11838 Ilya Enkovich <ilya.enkovich@intel.com>
11841 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
11842 New member function to convert V1TImode register to SUBREG
11843 TImode in debug insn.
11844 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
11845 after changing register mode to V1TImode.
11847 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
11849 * config/aarch64/aarch64-cores.def (vulcan): New core.
11850 * config/aarch64/aarch64-tune.md: Regenerate.
11851 * doc/invoke.texi: Document vulcan as an available option.
11853 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
11855 * cse.c (canon_asm_operands): New function extracted from...
11856 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
11857 either standalone or member of a PARALLEL.
11859 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
11862 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
11863 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
11864 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
11866 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
11869 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
11870 constant addresses if can_create_pseudo_p.
11872 2016-06-21 Jakub Jelinek <jakub@redhat.com>
11874 PR tree-optimization/71588
11875 * tree-ssa-strlen.c (valid_builtin_call): New function.
11876 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
11879 2016-06-20 Jakub Jelinek <jakub@redhat.com>
11881 PR middle-end/71581
11882 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
11883 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
11884 for conversion of scalar user var to complex type and use the
11885 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
11888 PR rtl-optimization/71591
11889 * toplev.c (toplev::run_self_tests): If no_backend, complain and
11890 don't run any tests.
11892 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
11895 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
11896 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
11897 space for PIC with non-v32 and the common non-PIC "jump".
11899 2016-06-20 Jakub Jelinek <jakub@redhat.com>
11902 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
11903 returned values and add UN*/LTGT/*ORDERED cases with values matching
11904 D operand modifier on vcmp for AVX.
11906 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11908 * config/aarch64/aarch64.opt
11909 (mpc-relative-literal-loads): Rename internal option name.
11910 * config/aarch64/aarch64.c
11911 (aarch64_nopcrelative_literal_loads): Rename to
11912 aarch64_pcrelative_literal_loads.
11913 (aarch64_expand_mov_immediate): Likewise.
11914 (aarch64_secondary_reload): Likewise.
11915 (aarch64_can_use_per_function_literal_pools_p): Likewise.
11916 (aarch64_override_options_after_change_1): Rename and simplify logic.
11917 (aarch64_classify_symbol): Merge large model checks into switch,
11918 remove pc-relative load check.
11920 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11922 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
11923 costs relative to the cost of a register move.
11925 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11927 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
11928 (vcvt_n_f64_u64): Likewise.
11929 (vcvt_n_s64_f64): Likewise.
11930 (vcvt_n_u64_f64): Likewise.
11931 (vcvt_f64_s64): Likewise.
11932 (vrecpe_f64): Likewise.
11933 (vcvt_f64_u64): Likewise.
11934 (vrecps_f64): Likewise.
11936 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11938 * config/aarch64/aarch64.md
11939 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
11941 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
11943 * config/aarch64/aarch64-builtins.c
11944 (aarch64_types_binop_uss_qualifiers): Delete.
11945 (TYPES_BINOP_USS): Likewise.
11946 (aarch64_types_binop_sus_qualifiers): Likewise.
11947 (TYPES_BINOP_SUS): Likewise.
11948 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
11949 (TYPES_FCVTIMM_SUS): Likewise.
11950 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
11952 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
11953 (fcvtzs): Use SHIFTIMM rather than BINOP.
11954 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
11956 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11958 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
11959 costs relative to the cost of a register move.
11961 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11963 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
11964 Allow scalar/single vector modes to be tieable.
11966 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11968 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
11970 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11972 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
11974 * tree.h (TYPE_ALIGN): Likewise.
11976 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
11979 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
11981 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
11983 * config/avr/avr.c (avr_print_operand): Fix "format not a string
11984 literal" build warnings.
11985 (avr_print_operand_address): Dito.
11987 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
11990 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
11991 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
11993 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
11995 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
11997 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
12000 * reload1.c (reload): Pass 0 to finish_spills when called because
12001 update_eliminables_and_spill returns true and remove did_spill.
12002 (finish_spills): Adjust comment and document GLOBAL parameter.
12004 2016-06-17 DJ Delorie <dj@redhat.com>
12007 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
12008 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
12009 (umulqihi3_virt): Likewise.
12010 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
12011 (umulqihi3_real): Likewise.
12013 2016-06-17 Martin Liska <mliska@suse.cz>
12015 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
12017 2016-06-17 Martin Liska <mliska@suse.cz>
12019 * predict.def: PRED_LOOP_EXIT from 92 to 85.
12021 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
12023 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
12025 (vaddq_f32): Likewise.
12026 (vmul_f32): Likewise.
12027 (vmulq_f32): Likewise.
12028 (vsub_f32): Likewise.
12029 (vsubq_f32): Likewise.
12031 2016-06-17 Bin Cheng <bin.cheng@arm.com>
12033 PR tree-optimization/71347
12034 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
12035 cost for all uses in group.
12037 2016-06-17 Bin Cheng <bin.cheng@arm.com>
12039 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
12040 insert gimple seq if it's not empty.
12042 2016-06-17 Bin Cheng <bin.cheng@arm.com>
12044 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
12046 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
12047 rather than OFFSET.
12048 (comp_dr_with_seg_len_pair): Ditto.
12049 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
12050 struct dr_with_seg_len_pair against DR_OFFSET.
12051 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
12052 DR_OFFSET directly.
12054 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
12056 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
12058 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
12060 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
12061 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
12062 (pa_output_millicode_call): Likewise.
12063 (pa_output_call): Likewise.
12064 (pa_output_indirect_call): Likewise.
12065 (pa_asm_output_mi_thunk): Likewise.
12067 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12069 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
12071 2016-06-16 Martin Liska <mliska@suse.cz>
12073 * predict.c (combine_predictions_for_insn): When we find a first
12074 match predictor, we should consider just predictors with
12075 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
12076 DS theory predictor.
12077 (combine_predictions_for_bb): Likewise.
12079 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12081 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
12082 with base of reference to struct.
12084 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
12086 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
12088 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12091 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
12092 progmem_swtable_section.
12093 (progmem_swtable_section): Remove.
12094 (avr_asm_function_rodata_section): Remove.
12095 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
12096 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
12098 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
12100 * config/i386/driver-i386.c (host_detect_local_cpu): Set
12101 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
12102 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
12103 signature_CENTAUR_ebx.
12104 * config/i386/i386.c (ix86_option_override_internal): Add
12105 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
12106 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
12107 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
12109 2016-06-16 Martin Liska <mliska@suse.cz>
12111 * predict.def: Add fortran loop preheader predictor.
12112 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
12113 fold IFN_BUILTIN_EXPECT with a known constant argument.
12115 2016-06-16 Martin Liska <mliska@suse.cz>
12117 * predict.def: Add 'Fortran' to display text of all
12118 PRED_FORTRAN_* predictors.
12120 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
12123 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
12124 [IA64_BUILTIN_NANSQ]: Ditto.
12125 (ia64_fold_builtin): New function.
12126 (TARGET_FOLD_BUILTIN): New define.
12127 (ia64_init_builtins) Declare const_string_type node.
12128 Add __builtin_nanq and __builtin_nansq builtin functions.
12129 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
12131 2016-06-16 Nick Clifton <nickc@redhat.com>
12133 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
12134 MSP430_HWMULT_ prefix to enum values.
12135 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
12136 * config/msp430/msp430.c: Update use of enum values.
12137 * config/msp430/msp430.md: Likewise.
12138 * config/msp430/msp430.opt: Likewise.
12140 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
12142 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
12143 of comparsions in the last iteration.
12145 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
12146 Joern Rennecke <joern.rennecke@embecosm.com>
12148 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
12150 (arc_needs_pcl_p): Add GOTOFFPC.
12151 (arc_legitimate_pic_addr_p): Likewise.
12152 (arc_output_pic_addr_const): Likewise.
12153 (arc_legitimize_pic_address): Generate a pc-relative address using
12155 (arc_output_libcall): Use @pcl syntax.
12156 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
12157 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
12158 (*movsi_insn): Use @pcl syntax.
12159 (doloop_begin_i): Likewise.
12161 2016-06-16 Martin Liska <mliska@suse.cz>
12163 * predict.def: Define a new predictor.
12165 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
12167 * config/arc/arc.opt (mtp-regno): Update text.
12169 2016-06-16 Renlin Li <renlin.li@arm.com>
12171 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
12173 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12176 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
12177 (setcc + and peephole2): Likewise.
12179 PR rtl-optimization/71532
12180 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
12183 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12185 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
12186 DImode constants with XXSPLTIB in vector registers.
12187 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
12188 vsx_extract_<mode>_internal{1,2} into a single insn that handles
12189 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
12190 extraction of the element at the top of the register as a scalar
12192 (vsx_extract_<mode>_internal1): Likewise.
12193 (vsx_extract_<mode>_internal2): Likewise.
12194 * config/rs6000/constraints.md (wi constraint): Remove a comment
12195 about DImode not being allowed in Altivec registers.
12196 (wB constraint): New constraint for constants that can be
12197 generated in Altivec registers with VSPLTISW/VUPKHSW.
12198 * config/rs6000/predicates.md (xxspltib_constant_split): Update
12200 (xxspltib_constant_nosplit): Likewise.
12201 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
12202 support for -mupper-regs-di to enable DImode to go into Altivec
12204 (POWERPC_MASKS): Likewise.
12205 (power7 cpu): Likewise.
12206 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
12207 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
12208 for DImode being allowed in Altivec registers. Update wi/wj
12209 constraints. Set scalar_in_vmx_p flag.
12210 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
12211 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
12212 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
12213 (rs6000_opt_masks): Add -mupper-regs-di.
12214 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
12215 direct move to use wi and not wj.
12216 (lfiwzx): Likewise.
12217 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
12219 (floatunssi<mode>2_lfiwzx_mem): Likewise.
12220 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
12221 any VSX register, instead of just Altivec registers, to allow
12222 either operand to be an Altivec register or both.
12223 (fixuns_trunc<mode>di2_fctiduz): Likewise.
12224 (movdi_internal32): Add support for -mupper-regs-di. Add support
12225 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
12226 the alternatives and attributes to be lined up to be easier to
12228 (movdi_internal64): Likewise.
12229 (64-bit DImode splitters): Change predicates to only split loading
12230 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
12231 load constants in ISA 3.0 or ISA 2.07 respectively.
12232 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
12233 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
12234 mention -mcpu=power9 sets these options.
12235 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
12238 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12241 * config/avr/avr.c (avr_set_current_function): Warn misspelled
12242 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
12243 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
12244 by default to warn misspelled interrupt/ signal handler.
12245 * doc/invoke.texi (AVR Options): Document it. Update description
12246 for -nodevicelib option.
12248 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12250 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
12251 up parentheses. Use GET_MODE_UNIT_BITSIZE.
12252 (aarch64_<sur>shll2_n<mode>): Likewise.
12254 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
12256 PR middle-end/71529
12257 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
12258 DECL_CONTEXT for copied arguments.
12260 2016-06-15 Alan Hayward <alan.hayward@arm.com>
12262 PR tree-optimization/71483
12263 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
12266 2016-06-15 Martin Liska <mliska@suse.cz>
12268 * predict.c (tree_predict_by_opcode): Call predict_edge_def
12269 instead of predict_edge w/o a probability.
12271 2016-06-15 Alan Hayward <alan.hayward@arm.com>
12273 PR tree-optimization/71439
12274 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
12277 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12279 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
12280 register subregs in SET_SRC.
12282 2016-06-15 Richard Biener <rguenther@suse.de>
12284 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
12285 store restrictions.
12287 2016-06-15 Richard Biener <rguenther@suse.de>
12289 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
12290 not consider dependences between accesses that belong to the
12292 (vect_analyze_data_ref_dependences): Do not analyze read-read
12293 or self-dependences.
12295 2016-06-14 David Malcolm <dmalcolm@redhat.com>
12297 * spellcheck-tree.c: Include spellcheck-tree.h rather than
12299 (find_closest_identifier): Reimplement in terms of
12300 best_match<tree,tree>.
12301 * spellcheck-tree.h: New file.
12302 * spellcheck.c (struct edit_distance_traits<const char *>): New
12304 (find_closest_string): Reimplement in terms of
12305 best_match<const char *, const char *>.
12306 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
12307 overload to spellcheck-tree.h.
12308 (find_closest_identifier): Likewise.
12309 (struct edit_distance_traits<T>): New template.
12310 (class best_match): New class.
12312 2016-06-14 David Malcolm <dmalcolm@redhat.com>
12314 * selftest-run-tests.c (selftest::run_tests): Call
12315 selftest::spellcheck_tree_c_tests.
12316 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
12317 * spellcheck-tree.c: Include selftest.h and stringpool.h.
12318 (selftest::test_find_closest_identifier): New function.
12319 (selftest::spellcheck_tree_c_tests): New function.
12320 * spellcheck.c (selftest::test_find_closest_string): Verify that
12321 the order of the vec does not affect the results for this case.
12322 (selftest::test_data): New array.
12323 (selftest::test_metric_conditions): New function.
12324 (selftest::spellcheck_c_tests): Add a test of case-comparison.
12325 Call selftest::test_metric_conditions.
12327 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12329 * config/rs6000/rs6000-builtin.def (commentary): Typo.
12330 (BU_P9_MISC_1): Likewise.
12331 (BU_P9_64BIT_MISC_0): Likewise.
12332 (BU_P9_MISC_0): Likewise.
12334 2016-06-14 David Malcolm <dmalcolm@redhat.com>
12336 * gcc-rich-location.c
12337 (gcc_rich_location::add_fixit_misspelled_id): New method.
12338 * gcc-rich-location.h
12339 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
12341 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
12343 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
12344 FreeBSD 11 and above.
12346 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
12348 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
12350 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12352 * expmed.h: Close parenthesis in "at your option" in copyright
12354 * lower-subreg.h: Likewise.
12356 2016-06-14 Richard Biener <rguenther@suse.de>
12358 PR middle-end/71526
12359 * genmatch.c (expr::gen_transform): Use in_type for comparisons
12362 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12364 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
12366 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
12367 mask+shift version.
12368 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
12370 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
12371 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
12373 2016-06-14 Richard Biener <rguenther@suse.de>
12375 PR tree-optimization/71522
12376 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
12377 copying into float copying.
12379 2016-06-14 Jakub Jelinek <jakub@redhat.com>
12381 PR tree-optimization/71520
12382 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
12383 (replace_block_by): Move user labels from bb1 to bb2.
12385 2016-06-14 Richard Biener <rguenther@suse.de>
12387 PR middle-end/71310
12389 * expr.h (get_bit_range): Declare.
12390 * expr.c (get_bit_range): Export.
12391 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
12392 word_mode again to constrain the bitfield access.
12394 2016-06-14 Richard Biener <rguenther@suse.de>
12396 PR tree-optimization/71521
12397 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
12398 division int_const_binop against zero divisor.
12400 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
12402 * config/i386/i386.md (signbittf2): New expander.
12403 * config/i386/sse.md (ptesttf2): New insn pattern.
12405 2016-06-13 David Malcolm <dmalcolm@redhat.com>
12408 * input.c (selftest::test_reading_source_line): Avoid reading from
12409 __FILE__ by creating a tempfile with known content and reading
12412 2016-06-13 David Malcolm <dmalcolm@redhat.com>
12414 * pretty-print.c (assert_pp_format_colored): Skip the test if
12416 (test_pp_format): Remove comment about GCC_COLORS.
12418 2016-06-13 David Malcolm <dmalcolm@redhat.com>
12420 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
12421 * pretty-print.c (assert_pp_format_va): Add location param and use
12422 it with ASSERT_STREQ_AT.
12423 (assert_pp_format): Add location param and pass it to
12424 assert_pp_format_va.
12425 (assert_pp_format_colored): Likewise.
12426 (ASSERT_PP_FORMAT_1): New.
12427 (ASSERT_PP_FORMAT_2): New.
12428 (ASSERT_PP_FORMAT_3): New.
12429 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
12430 explicitly, or implicitly via the above macros.
12431 * selftest.c (selftest::pass): Use a selftest::location rather
12432 than file and line.
12433 (selftest::fail): Likewise. Print the function name.
12434 (selftest::fail_formatted): Likewise.
12435 (selftest::assert_streq): Use a selftest::location rather than
12437 * selftest.h (selftest::location): New struct.
12438 (SELFTEST_LOCATION): New macro.
12439 (selftest::pass): Accept a const location & rather than file
12441 (selftest::fail): Likewise.
12442 (selftest::fail_formatted): Likewise.
12443 (selftest::assert_streq): Likewise.
12444 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
12445 (ASSERT_FALSE): Likewise.
12446 (ASSERT_EQ): Likewise.
12447 (ASSERT_NE): Likewise.
12448 (ASSERT_STREQ): Likewise.
12449 (ASSERT_PRED1): Likewise.
12450 (ASSERT_STREQ_AT): New macro.
12452 2016-06-13 David Malcolm <dmalcolm@redhat.com>
12454 * selftest.c (selftest::fail_formatted): New function.
12455 (selftest::assert_streq): New function.
12456 * selftest.h (selftests::fail_formatted): New decl.
12457 (selftest::assert_streq): New decl.
12458 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
12460 2016-06-13 Jeff Law <law@redhat.com>
12462 PR tree-optimization/71403
12463 * tree-ssa-threadbackward.c
12464 (convert_and_register_jump_thread_path): No longer accept reference
12465 to path. Do not pop items off the path anymore.
12466 (fsm_find_control_statement_thread_paths): Do not allow threading
12467 to a deeper loop nest. Pop the last item off the path here rather
12468 than in convert_and_register_jump_thread_path.
12470 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
12471 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
12473 [AArch64] Emit division using the Newton series
12475 * config/aarch64/aarch64-protos.h
12476 (cpu_approx_modes): Add new member "division".
12477 (aarch64_emit_approx_div): Declare new function.
12478 * config/aarch64/aarch64.c
12479 (generic_approx_modes): New member "division".
12480 (exynosm1_approx_modes): Likewise.
12481 (xgene1_approx_modes): Likewise.
12482 (aarch64_emit_approx_div): Define new function.
12483 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
12484 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
12485 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
12486 * doc/invoke.texi (-mlow-precision-div): Describe new option.
12488 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
12489 Wilco Dijkstra <wilco.dijkstra@arm.com>
12491 [AArch64] Emit square root using the Newton series
12493 * config/aarch64/aarch64-protos.h
12494 (aarch64_emit_approx_rsqrt): Replace with new function
12495 "aarch64_emit_approx_sqrt".
12496 (cpu_approx_modes): New member "sqrt".
12497 * config/aarch64/aarch64.c
12498 (generic_approx_modes): New member "sqrt".
12499 (exynosm1_approx_modes): Likewise.
12500 (xgene1_approx_modes): Likewise.
12501 (aarch64_emit_approx_rsqrt): Replace with new function
12502 "aarch64_emit_approx_sqrt".
12503 (aarch64_override_options_after_change_1): Handle new option.
12504 * config/aarch64/aarch64-simd.md
12505 (rsqrt<mode>2): Use new function instead.
12506 (sqrt<mode>2): New expansion and insn definitions.
12507 * config/aarch64/aarch64.md: Likewise.
12508 * config/aarch64/aarch64.opt
12509 (mlow-precision-sqrt): Add new option description.
12510 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
12512 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
12514 [AArch64] Add more choices for the reciprocal square root approximation
12516 Allow a target to prefer such operation depending on the operation mode.
12518 * config/aarch64/aarch64-protos.h
12519 (AARCH64_APPROX_MODE): New macro.
12520 (AARCH64_APPROX_{NONE,ALL}): Likewise.
12521 (cpu_approx_modes): New structure.
12522 (tune_params): New member "approx_modes".
12523 * config/aarch64/aarch64-tuning-flags.def
12524 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
12525 * config/aarch64/aarch64.c
12526 (generic_approx_modes): New core "cpu_approx_modes" structure.
12527 (exynosm1_approx_modes): Likewise.
12528 (xgene1_approx_modes): Likewise.
12529 (generic_tunings): New member "approx_modes".
12530 (cortexa35_tunings): Likewise.
12531 (cortexa53_tunings): Likewise.
12532 (cortexa57_tunings): Likewise.
12533 (cortexa72_tunings): Likewise.
12534 (exynosm1_tunings): Likewise.
12535 (thunderx_tunings): Likewise.
12536 (xgene1_tunings): Likewise.
12537 (use_rsqrt_p): New argument for the mode and use new member from
12539 (aarch64_builtin_reciprocal): Devise mode from builtin.
12540 (aarch64_optab_supported_p): New argument for the mode.
12541 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
12543 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
12545 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
12546 RS6000_BTM_MODULO flag into the set of flags that are considered
12547 to be part of the common configuration.
12549 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
12551 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
12552 difference unsigned.
12553 (vec_absdb): New macro for vector absolute difference unsigned
12555 (vec_absdh): New macro for vector absolute difference unsigned
12557 (vec_absdw): New macro for vector absolute difference unsigned word.
12558 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
12559 (vadu<mode>3): New insn.
12560 (*p9_vadu<mode>3): New insn.
12561 * config/rs6000/rs6000-builtin.def (vadub): New built-in
12563 (vaduh): New built-in definition.
12564 (vaduw): New built-in definition.
12565 (vadu): New overloaded built-in definition.
12566 (vadub): New overloaded built-in definition.
12567 (vaduh): New overloaded built-in definition.
12568 (vaduw): New overloaded built-in definition.
12569 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12570 overloaded vector absolute difference unsigned functions.
12571 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12572 the ISA 3.0 vector absolute difference unsigned built-in functions.
12574 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
12576 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
12577 update shared_lookup_references only once after changing operands.
12579 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
12581 PR middle-end/71373
12582 * tree-nested.c (convert_nonlocal_omp_clauses)
12583 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
12585 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
12586 * tree.def (CASE_LABEL_EXPR): Likewise.
12588 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12591 * input.c (test_builtins): Fix an assertion.
12593 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
12595 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
12596 (paritysi2): Ditto.
12598 (isinf<mode>2): Ditto.
12600 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
12602 * ggc-tests.c (test_finalization): Only test need_finalization_p
12603 for GCC_VERSION >= 4003.
12605 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12607 * config/s390/vecintrin.h: Fix file description in comment.
12609 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12611 * config/s390/s390-builtin-types.def: Change builtin type naming
12612 scheme to match builtin-types.def.
12614 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
12616 * fold-const.c (optimize_minmax_comparison): Remove.
12617 (fold_comparison): Remove call to the above.
12618 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
12619 New transformations.
12621 2016-06-13 Alan Hayward <alan.hayward@arm.com>
12623 PR tree-optimization/71416
12624 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
12627 2016-06-13 Martin Liska <mliska@suse.cz>
12629 * predict.c (enum predictor_reason): Prefix enum with REASON_.
12630 (combine_predictions_for_insn): Likewise.
12631 (prune_predictions_for_bb): Likewise.
12632 (combine_predictions_for_bb): Likewise.
12634 2016-06-13 Richard Biener <rguenther@suse.de>
12636 PR tree-optimization/71505
12637 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
12638 assert match comment.
12640 2016-06-13 Marek Polacek <polacek@redhat.com>
12642 PR middle-end/71476
12643 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
12644 gimplify_switch_expr.
12645 (warn_switch_unreachable_r): New function.
12647 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12650 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
12653 2016-06-13 Richard Biener <rguenther@suse.de>
12655 PR middle-end/64516
12656 * fold-const.c (fold_unary_loc): Preserve alignment when
12657 folding a VIEW_CONVERT_EXPR into a MEM_REF.
12659 2016-06-13 Martin Liska <mliska@suse.cz>
12662 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
12663 w/ -fsanitize=bounds.
12665 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
12667 * config/i386/i386.c (ix86_init_builtins): Calculate
12668 FLOAT128_FTYPE_CONST_STRING function type only once.
12669 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
12670 built-in functions are available for x86-32 and x86-64 targets.
12672 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
12675 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
12676 New primitive type.
12677 (FLOAT128_FTYPE_CONST_STRING): New function type.
12678 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
12679 [IX86_BUILTIN_NANSQ]: Ditto.
12680 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
12681 (ix86_init_builtin_types): Declare const_string_type_node.
12682 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
12684 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
12685 * doc/extend.texi (x86 Built-in Functions): Document
12686 __builtin_nanq and __builtin_nansq.
12688 2016-06-11 Jiong Wang <jiong.wang@arm.com>
12691 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
12692 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
12693 length for pop patterns.
12694 (arm_attr_length_push_multi): Update comments.
12695 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
12697 (*pop_multiple_with_writeback_and_return): Likewise.
12698 (*pop_multiple_with_return): Likewise.
12700 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
12702 PR middle-end/71310
12703 * fold-const.c (optimize_bit_field_compare): Don't try to use
12704 word_mode unconditionally for reading the bit field, look at
12705 DECL_BIT_FIELD_REPRESENTATIVE instead.
12707 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
12709 PR middle-end/71478
12710 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
12711 vector integer type.
12713 2016-06-10 Jakub Jelinek <jakub@redhat.com>
12715 PR middle-end/71494
12716 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
12717 without LABEL_DECL, set *handled_ops_p to false instead of true.
12719 2016-06-10 Martin Sebor <msebor@redhat.com>
12722 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
12723 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
12724 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
12726 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
12727 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
12728 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
12729 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
12730 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
12731 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
12732 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
12733 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
12735 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12737 * config/arm/arm.h (pool_vector_label,
12738 return_used_this_function): Remove.
12740 2016-06-10 Jeff Law <law@redhat.com>
12742 PR tree-optimization/71335
12743 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
12744 zero length paths here.
12745 (convert_and_register_jump_thread_path): Remove hacks related to
12746 duplicated blocks in the jump thread path.
12747 (fsm_find_control_statement_thread_paths): Avoid putting the same
12748 block on the thread path twice, but ensure the thread path is
12749 unchanged from the caller's point of view.
12751 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
12753 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
12754 * predict.def (PRED_LOOP_BRANCH): Remove.
12756 2016-06-10 David Malcolm <dmalcolm@redhat.com>
12758 * Makefile.in (OBJS): Add ggc-tests.o.
12759 (GTFILES): Add ggc-tests.c.
12760 * ggc-tests.c: New file.
12761 * selftest-run-tests.c (selftest::run_tests): Call
12762 selftest::ggc_tests_c_tests.
12763 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
12765 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
12767 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
12769 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
12772 * varasm.c (place_block_symbol): Adjust alignment for asan protected
12773 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
12775 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
12777 * profile.c: Include cfgloop.h.
12778 (branch_prob): Compute estimated number of iterations.
12779 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
12780 recompute estimate number of iterations from profile.
12782 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12784 PR inline-asm/68843
12785 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
12786 must be grouped on top of stack. Don't force early clobber
12787 on ordinary reg outputs.
12789 2016-06-10 Richard Biener <rguenther@suse.de>
12791 * targhooks.c (default_builtin_vectorization_cost): Adjust
12792 vec_construct cost.
12794 2016-06-10 Richard Biener <rguenther@suse.de>
12796 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
12797 to fold the RHS to a constant if possible.
12799 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12801 PR middle-end/71373
12802 * tree-nested.c (convert_nonlocal_omp_clauses)
12803 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
12804 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
12805 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
12807 * gimplify.c (gimplify_adjust_omp_clauses): Discard
12809 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
12811 * omp-low.c (scan_sharing_clauses): Don't expect
12812 OMP_CLAUSE__CACHE_.
12814 2016-06-10 Alan Hayward <alan.hayward@arm.com>
12816 PR tree-optimization/71407
12817 PR tree-optimization/71416
12818 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
12819 BIT_FIELD_REF type.
12821 2016-06-10 Richard Biener <rguenther@suse.de>
12823 PR middle-end/71477
12824 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
12826 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
12828 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
12830 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
12831 Jiong Wang <jiong.wang@arm.com>
12833 PR rtl-optimization/70751
12834 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
12835 spilled into memory.
12837 2016-06-09 Jonathan Yong <10walls@gmail.com>
12840 2015-09-21 Jonathan Yong <10walls@gmail.com>
12842 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12843 sysroot/usr/lib/32api for additional win32 libraries,
12844 fixes failing Cygwin bootstrapping.
12846 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
12848 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
12851 2016-06-09 David Malcolm <dmalcolm@redhat.com>
12854 * pretty-print.c (pp_indent): Specify that %p is printed in a
12855 host-dependent manner.
12856 (test_pp_format): Remove the test for %p.
12858 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
12860 * config/mips/mips.c (mips_output_jump): Fix formatting.
12862 2016-06-09 Richard Biener <rguenther@suse.de>
12864 PR tree-optimization/71462
12865 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
12868 2016-06-09 Martin Liska <mliska@suse.cz>
12870 * predict.c (dump_prediction): Add new argument.
12871 (enum predictor_reason): New enum.
12872 (struct predictor_hash): New struct.
12873 (predictor_hash::hash): New function.
12874 (predictor_hash::equal): Likewise.
12875 (not_removed_prediction_p): New function.
12876 (prune_predictions_for_bb): Likewise.
12877 (combine_predictions_for_bb): Prune predictions.
12879 2016-06-09 Martin Liska <mliska@suse.cz>
12881 * predict.c (filter_predictions): New function.
12882 (remove_predictions_associated_with_edge): Use the filter
12884 (equal_edge_p): New function.
12886 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
12888 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
12889 Correct usage of @samp vs @option, add @samp where appropriate.
12890 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
12891 Add armv6s-m and document it, as it is no official ARM name.
12893 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12895 * ifcvt.c (struct noce_if_info): Add transform_name field.
12896 (noce_try_move): Set if_info->transform_name to the function name.
12897 (noce_try_ifelse_collapse): Likewise.
12898 (noce_try_store_flag): Likewise.
12899 (noce_try_inverse_constants): Likewise.
12900 (noce_try_store_flag_constants): Likewise.
12901 (noce_try_addcc): Likewise.
12902 (noce_try_store_flag_mask): Likewise.
12903 (noce_try_cmove): Likewise.
12904 (noce_try_cmove_arith): Likewise.
12905 (noce_try_minmax): Likewise.
12906 (noce_try_abs): Likewise.
12907 (noce_try_sign_mask): Likewise.
12908 (noce_try_bitop): Likewise.
12909 (noce_convert_multiple_sets): Likewise.
12910 (noce_process_if_block): Print if_info->transform_name to
12911 dump_file if transformation succeeded.
12913 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12915 * config/arm/cortex-a57.md (cortex_a57_alu):
12918 2016-06-08 Martin Sebor <msebor@redhat.com>
12919 Jakub Jelinek <jakub@redhat.com>
12923 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
12924 BUILT_IN_MUL_OVERFLOW_P): New builtins.
12925 * builtins.c: Include gimple-fold.h.
12926 (fold_builtin_arith_overflow): Handle
12927 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
12928 (fold_builtin_3): Likewise.
12929 * doc/extend.texi (Integer Overflow Builtins): Document
12930 __builtin_{add,sub,mul}_overflow_p.
12932 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
12934 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
12935 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
12937 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
12939 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
12940 Rewrite, looking one level down for records and arrays.
12942 2016-06-08 David Malcolm <dmalcolm@redhat.com>
12944 * pretty-print.c: Include "selftest.h".
12945 (pp_format): Fix comment.
12946 (identifier_to_locale): Likewise.
12947 (selftest::test_basic_printing): New function.
12948 (selftest::assert_pp_format): New function.
12949 (selftest::test_pp_format): New function.
12950 (selftest::pretty_print_c_tests): New function.
12951 * selftest-run-tests.c (selftest::run_tests): Call
12952 selftest::pretty_print_c_tests.
12953 * selftest.h (pretty_print_c_tests): New declaration.
12955 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12957 * invoke.texi (max-loop-headers-insns): Document.
12958 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
12959 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
12960 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
12962 2016-06-08 Richard Biener <rguenther@suse.de>
12964 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
12965 on strided SLP loads and fall back to scalar loads in case
12966 we can't chunk them.
12968 2016-06-08 Richard Biener <rguenther@suse.de>
12970 PR tree-optimization/71452
12971 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
12972 type used for the SSA rewrite has enough precision to cover
12973 the dynamic type of the location.
12975 2016-06-08 Jakub Jelinek <jakub@redhat.com>
12976 Richard Biener <rguenther@suse.de>
12979 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
12980 the same as DECL_P (base0) for indirect_base0. Use equality_code
12981 in one further place.
12983 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
12985 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
12986 to one word if the field is known to overlap other words.
12987 (extract_bit_field_1): Likewise.
12988 (store_split_bit_field): Remove compensating code.
12989 (extract_split_bit_field): Likewise.
12991 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
12995 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
12997 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12999 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
13001 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
13002 (arch64_addpv4sf): Delete.
13003 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
13004 "gen_aarch64_addpv4sf".
13005 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
13007 (vpadds_f32): Likewise.
13008 (vpaddq_f32): Likewise.
13009 (vpaddq_f64): Likewise.
13011 2016-06-08 Jiong Wang <jiong.wang@arm.com>
13013 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
13015 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
13016 to VALLF. Rename to "fabd<mode>3".
13017 "*fabd_scalar<mode>3): Delete.
13018 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
13020 (vabdd_f64): Likewise.
13021 (vabd_f32): Likewise.
13022 (vabd_f64): Likewise.
13023 (vabdq_f32): Likewise.
13024 (vabdq_f64): Likewise.
13026 2016-06-08 Jiong Wang <jiong.wang@arm.com>
13028 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
13030 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
13031 "aarch64_rsqrts<mode>".
13032 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
13033 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
13035 (vrsqrtsd_f64): Likewise.
13036 (vrsqrts_f32): Likewise.
13037 (vrsqrts_f64): Likewise.
13038 (vrsqrtsq_f32): Likewise.
13039 (vrsqrtsq_f64): Likewise.
13041 2016-06-08 Jiong Wang <jiong.wang@arm.com>
13043 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
13045 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
13046 "aarch64_rsqrte<mode>".
13047 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
13048 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
13050 (vrsqrted_f64): Likewise.
13051 (vrsqrte_f32): Likewise.
13052 (vrsqrte_f64): Likewise.
13053 (vrsqrteq_f32): Likewise.
13054 (vrsqrteq_f64): Likewise.
13056 2016-06-08 Jiong Wang <jiong.wang@arm.com>
13058 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
13060 (fcvtzs): Likewise.
13061 (fcvtzu): Likewise.
13062 * config/aarch64/aarch64-simd.md
13063 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
13064 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
13065 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
13067 (vcvt_n_f32_u32): Likewise.
13068 (vcvt_n_s32_f32): Likewise.
13069 (vcvt_n_u32_f32): Likewise.
13070 (vcvtq_n_f32_s32): Likewise.
13071 (vcvtq_n_f32_u32): Likewise.
13072 (vcvtq_n_f64_s64): Likewise.
13073 (vcvtq_n_f64_u64): Likewise.
13074 (vcvtq_n_s32_f32): Likewise.
13075 (vcvtq_n_s64_f64): Likewise.
13076 (vcvtq_n_u32_f32): Likewise.
13077 (vcvtq_n_u64_f64): Likewise.
13078 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
13079 (VSDQ_SDI): Likewise.
13080 (fcvt_target): Support V4DI, V4SI and V2SI.
13081 (FCVT_TARGET): Likewise.
13083 2016-06-08 Jiong Wang <jiong.wang@arm.com>
13085 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
13086 (TYPES_BINOP_SUS): Likewise.
13087 (aarch64_simd_builtin_data): Update include file name.
13088 (aarch64_builtins): Likewise.
13089 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
13090 for conversion between scalar float-point and fixed-point.
13092 (fcvtzs): Likewise.
13093 (fcvtzu): Likewise.
13094 * config/aarch64/aarch64.md
13095 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
13096 pattern for conversion between scalar float to fixed-pointer.
13097 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
13098 (UNSPEC_FCVTZS): New UNSPEC enumeration.
13099 (UNSPEC_FCVTZU): Likewise.
13100 (UNSPEC_SCVTF): Likewise.
13101 (UNSPEC_UCVTF): Likewise.
13102 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
13104 (vcvtd_n_f64_u64): Likewise.
13105 (vcvtd_n_s64_f64): Likewise.
13106 (vcvtd_n_u64_f64): Likewise.
13107 (vcvtd_n_f32_s32): Likewise.
13108 (vcvts_n_f32_u32): Likewise.
13109 (vcvtd_n_s32_f32): Likewise.
13110 (vcvts_n_u32_f32): Likewise.
13111 * config/aarch64/iterators.md (fcvt_target): Support integer to float
13113 (FCVT_TARGET): Likewise.
13114 (FCVT_FIXED2F): New iterator.
13115 (FCVT_F2FIXED): Likewise.
13116 (fcvt_fixed_insn): New define_int_attr.
13118 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
13120 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
13121 some statements was removed.
13123 2016-06-08 Alan Hayward <alan.hayward@arm.com>
13125 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
13126 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
13127 (vect_can_advance_ivs_p): likewise.
13128 (vect_update_ivs_after_vectorizer): likewise.
13129 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
13130 (vect_analyze_scalar_cycles_1): likewise.
13131 (vect_analyze_loop_operations): likewise.
13132 (report_vect_op): likewise.
13133 (vect_is_slp_reduction): likewise.
13134 (vect_is_simple_reduction): likewise.
13135 (get_initial_def_for_induction): likewise.
13136 (vect_transform_loop): likewise.
13137 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
13138 (vect_recog_sad_pattern): likewise.
13139 (vect_recog_widen_sum_pattern): likewise.
13140 (vect_recog_widening_pattern): likewise.
13141 (vect_recog_divmod_pattern): likewise.
13142 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
13143 (vect_analyze_slp_instance): likewise.
13144 (vect_transform_slp_perm_load): likewise.
13145 (vect_schedule_slp_instance): likewise.
13147 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
13149 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
13150 (return_prediction): PRED_CONST_RETURN predict return as not taken.
13151 * predict.def (PRED_CONTINUE): Change hitrate 50->67
13152 (PRED_LOOP_BRANCH): Document predictor as broken.
13153 (PRED_LOOP_EXIT): Change hitrate 91->92.
13154 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
13155 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
13156 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
13157 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
13158 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
13159 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
13160 (PRED_CALL): Chane hitrate 71->67.
13161 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
13162 (PRED_GOTO): Document as unused right now.
13163 (PRED_CONST_RETURN): Change hitrate 67->69
13164 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
13165 (PRED_NULL_RETURN): Change hitrate 91->90.
13166 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
13167 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
13168 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
13170 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
13172 * config/rs6000/altivec.h: Add __builtin_vec_mul.
13173 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
13174 special case Altivec builtin.
13175 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
13176 VSX_BUILTIN_VEC_MUL (replaced with special case code).
13177 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13178 code for ALTIVEC_BUILTIN_VEC_MUL.
13179 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
13180 for __builtin_vec_mul.
13182 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
13184 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
13187 2016-06-07 David Malcolm <dmalcolm@redhat.com>
13189 * spellcheck.c (selftest::test_find_closest_string): New function.
13190 (spellcheck_c_tests): Call the above.
13192 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13194 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
13196 2016-06-07 Jakub Jelinek <jakub@redhat.com>
13198 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
13199 Yv=Yv,C alternatives.
13201 2016-06-07 Richard Biener <rguenther@suse.de>
13204 * common.opt (ffast-math): Make Optimization.
13206 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
13207 Prachi Godbole <prachi.godbole@imgtec.com>
13209 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
13210 `fabs' and `fneg' type attributes.
13211 (p5600_fpu_fabs): Add `fmove' to the comment.
13213 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
13215 * gimple.c: Include builtins.h
13216 (gimple_inexpensive_call_p): New function.
13217 * gimple.h (gimple_inexpensive_call_p): Declare.
13218 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
13219 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
13222 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
13224 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
13225 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
13226 warning_at_rich_loc, warning_n, pedwarn, permerror,
13227 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
13228 sorry, fatal_error, internal_error, internal_error_no_backtrace):
13231 2016-06-07 Richard Biener <rguenther@suse.de>
13233 PR tree-optimization/71428
13234 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
13235 BIT_FIELD_REF op vs. load.
13237 2016-06-07 Richard Biener <rguenther@suse.de>
13239 PR middle-end/71423
13240 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
13243 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
13245 * config/pa/pa.md (call): Generate indirect long calls to non-local
13246 functions on TARGET_64BIT.
13247 (call_value): Likewise.
13249 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
13251 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
13252 pattern and subsequent splitters.
13253 (call_val_reg_64bit_post_reload): Likewise.
13255 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
13257 PR middle-end/71408
13258 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
13259 propagate_op_to_single_use.
13261 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
13263 PR middle-end/71281
13264 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
13266 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
13268 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
13269 (enum x86_dirflag_state): New enum.
13270 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
13271 (machine_function): Remove needs_cld.
13272 (ix86_current_function_needs_cld): Remove.
13273 * config/i386/i386.c (ix86_set_func_type): Set
13274 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
13275 (ix86_expand_prologue): Do not emit CLD here.
13276 (ix86_dirflag_mode_needed): New function.
13277 (ix86_dirflag_mode_entry): Ditto.
13278 (ix86_mode_needed): Handle X86_DIRFLAG entity.
13279 (ix86_mode_after): Ditto.
13280 (ix86_mode_entry): Ditto.
13281 (ix86_mode_exit): Ditto.
13282 (ix86_emit_mode_set): Ditto.
13283 * config/i386/i386.md (strmov_singleop): Set
13284 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
13285 Do not set ix86_current_function_needs_cld.
13287 (strset_singleop): Ditto.
13289 (cmpstrnqi_nz_1): Ditto.
13290 (cmpstrnqi_1): Ditto.
13291 (strlenqi_1): Ditto.
13293 2016-06-06 Jakub Jelinek <jakub@redhat.com>
13295 PR tree-optimization/71259
13296 * tree-vect-slp.c (vect_get_constant_vectors): For
13297 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
13298 one for constant op, and use COND_EXPR for non-constant.
13300 2016-06-06 David Malcolm <dmalcolm@redhat.com>
13302 * Makefile.in (OBJS): Add function-tests.o,
13303 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
13304 selftest-run-tests.o.
13305 (OBJS-libcommon): Add selftest.o.
13306 (OBJS-libcommon-target): Add selftest.o.
13307 (all.internal): Add "selftest".
13308 (all.cross): Likewise.
13309 (selftest): New phony target.
13310 (s-selftest): New target.
13311 (selftest-gdb): New phony target.
13312 (COLLECT2_OBJS): Add selftest.o.
13313 * bitmap.c: Include "selftest.h".
13314 (selftest::test_gc_alloc): New function.
13315 (selftest::test_set_range): New function.
13316 (selftest::test_clear_bit_in_middle): New function.
13317 (selftest::test_copying): New function.
13318 (selftest::test_bitmap_single_bit_set_p): New function.
13319 (selftest::bitmap_c_tests): New function.
13320 * common.opt (fself-test): New.
13321 * diagnostic-show-locus.c: Include "selftest.h".
13322 (make_range): New function.
13323 (test_range_contains_point_for_single_point): New function.
13324 (test_range_contains_point_for_single_line): New function.
13325 (test_range_contains_point_for_multiple_lines): New function.
13326 (assert_eq): New function.
13327 (test_get_line_width_without_trailing_whitespace): New function.
13328 (selftest::diagnostic_show_locus_c_tests): New function.
13329 * et-forest.c: Include "selftest.h".
13330 (selftest::test_single_node): New function.
13331 (selftest::test_simple_tree): New function.
13332 (selftest::test_disconnected_nodes): New function.
13333 (selftest::et_forest_c_tests): New function.
13334 * fold-const.c: Include "selftest.h".
13335 (selftest::assert_binop_folds_to_const): New function.
13336 (selftest::assert_binop_folds_to_nonlvalue): New function.
13337 (selftest::test_arithmetic_folding): New function.
13338 (selftest::fold_const_c_tests): New function.
13339 * function-tests.c: New file.
13340 * gimple.c: Include "selftest.h".
13341 Include "gimple-pretty-print.h".
13342 (selftest::verify_gimple_pp): New function.
13343 (selftest::test_assign_single): New function.
13344 (selftest::test_assign_binop): New function.
13345 (selftest::test_nop_stmt): New function.
13346 (selftest::test_return_stmt): New function.
13347 (selftest::test_return_without_value): New function.
13348 (selftest::gimple_c_tests): New function.
13349 * hash-map-tests.c: New file.
13350 * hash-set-tests.c: New file.
13351 * input.c: Include "selftest.h".
13352 (selftest::assert_loceq): New function.
13353 (selftest::test_accessing_ordinary_linemaps): New function.
13354 (selftest::test_unknown_location): New function.
13355 (selftest::test_builtins): New function.
13356 (selftest::test_reading_source_line): New function.
13357 (selftest::input_c_tests): New function.
13358 * rtl-tests.c: New file.
13359 * selftest-run-tests.c: New file.
13360 * selftest.c: New file.
13361 * selftest.h: New file.
13362 * spellcheck.c: Include "selftest.h".
13363 (selftest::levenshtein_distance_unit_test_oneway): New function,
13364 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
13365 (selftest::levenshtein_distance_unit_test): Likewise.
13366 (selftest::spellcheck_c_tests): Likewise.
13367 * toplev.c: Include selftest.h.
13368 (toplev::run_self_tests): New.
13369 (toplev::main): Handle -fself-test.
13370 * toplev.h (toplev::run_self_tests): New.
13371 * tree.c: Include "selftest.h".
13372 (selftest::test_integer_constants): New function.
13373 (selftest::test_identifiers): New function.
13374 (selftest::test_labels): New function.
13375 (selftest::tree_c_tests): New function.
13376 * tree-cfg.c: Include "selftest.h".
13377 (selftest::push_fndecl): New function.
13378 (selftest::test_linear_chain): New function.
13379 (selftest::test_diamond): New function.
13380 (selftest::test_fully_connected): New function.
13381 (selftest::tree_cfg_c_tests): New function.
13382 * vec.c: Include "selftest.h".
13383 (selftest::safe_push_range): New function.
13384 (selftest::test_quick_push): New function.
13385 (selftest::test_safe_push): New function.
13386 (selftest::test_truncate): New function.
13387 (selftest::test_safe_grow_cleared): New function.
13388 (selftest::test_pop): New function.
13389 (selftest::test_safe_insert): New function.
13390 (selftest::test_ordered_remove): New function.
13391 (selftest::test_unordered_remove): New function.
13392 (selftest::test_block_remove): New function.
13393 (selftest::reverse_cmp): New function.
13394 (selftest::test_qsort): New function.
13395 (selftest::vec_c_tests): New function.c.
13396 * wide-int.cc: Include selftest.h and wide-int-print.h.
13397 (selftest::from_int <wide_int>): New function.
13398 (selftest::from_int <offset_int>): New function.
13399 (selftest::from_int <widest_int>): New function.
13400 (selftest::assert_deceq): New function.
13401 (selftest::assert_hexeq): New function.
13402 (selftest::test_printing <VALUE_TYPE>): New function template.
13403 (selftest::test_ops <VALUE_TYPE>): New function template.
13404 (selftest::test_comparisons <VALUE_TYPE>): New function template.
13405 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
13407 (selftest::wide_int_cc_tests): New function.
13409 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13411 PR middle-end/37780
13412 * ifcvt.c (noce_try_ifelse_collapse): New function.
13414 (noce_process_if_block): Call noce_try_ifelse_collapse.
13415 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
13416 (simplify_ternary_operation): Use the above to simplify
13417 conditional CLZ/CTZ expressions.
13419 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13421 PR middle-end/37780
13422 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
13423 define_insn_and_split.
13425 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13427 PR middle-end/37780
13428 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
13430 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
13433 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
13434 Implicitly clobber memory for basic asm with non-empty assembler
13435 string. Use targetm.md_asm_adjust also here.
13436 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
13437 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
13438 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
13439 non-empty assembler string.
13440 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
13441 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
13442 (decode_asm_operands): Handle basic asm in PARALLEL block.
13443 (extract_insn): Handle basic asm in PARALLEL block.
13444 * doc/extend.texi: Mention new behavior of basic asm.
13445 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
13446 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
13447 branch_needs_nop_p): Use asm_noperands.
13449 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
13451 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
13452 Include the M7 SPARC DFA scheduler.
13453 New attribute v3pipe.
13454 Annotate insns with v3pipe where appropriate.
13455 Define cpu_feature vis4.
13456 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
13457 Add (V8QI "8") to vbits.
13458 Add insns {add,sub}v8qi3
13459 Add insns ss{add,sub}v8qi3
13460 Add insns us{add,sub}{v8qi,v4hi}3
13461 Add insns {min,max}{v8qi,v4hi,v2si}3
13462 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
13463 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
13464 * config/sparc/niagara4.md: Add a comment explaining the
13465 discrepancy between the documented latenty numbers and the
13467 * config/sparc/niagara7.md: New file.
13468 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
13469 supports SPARC5 and VIS 4.0 instructions.
13470 * configure: Regenerate.
13471 * config.in: Likewise.
13472 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
13473 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
13474 TARGET_CPU_niagara7.
13475 (ASM_CPU64_DEFAULT_SPEC): Likewise.
13476 (CPP_CPU_SPEC): Handle niagara7.
13477 (ASM_CPU_SPEC): Likewise.
13478 * config/sparc/sparc-opts.h (processor_type): Add
13479 PROCESSOR_NIAGARA7.
13480 (mvis4): New option.
13481 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
13482 (AS_NIAGARA7_FLAG): Define.
13483 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
13484 (CPP_CPU64_DEFAULT_SPEC): Likewise.
13485 (CPP_CPU_SPEC): Handle niagara7.
13486 (ASM_CPU_SPEC): Likewise.
13487 * config/sparc/sparc.c (niagara7_costs): Define.
13488 (sparc_option_override): Handle niagara7 and adjust cache-related
13489 parameters with better values for niagara cpus. Also support VIS4.
13490 (sparc32_initialize_trampoline): Likewise.
13491 (sparc_use_sched_lookahead): Likewise.
13492 (sparc_issue_rate): Likewise.
13493 (sparc_register_move_cost): Likewise.
13494 (dump_target_flag_bits): Support VIS4.
13495 (sparc_vis_init_builtins): Likewise.
13496 (sparc_builtins): Likewise.
13497 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
13499 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
13501 * config/sparc/sparc.opt (sparc_processor_type): New value
13503 * config/sparc/visintrin.h (__attribute__): Prototypes for the
13505 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
13507 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
13510 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
13512 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
13514 2016-06-06 Richard Biener <rguenther@suse.de>
13516 PR tree-optimization/71398
13517 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
13520 2016-06-05 James Bowman <james.bowman@ftdichip.com>
13522 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
13523 ft32_expand_prolog, ft32_expand_epilogue):
13524 Handle pretend_args.
13525 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
13526 * config/ft32/ft32.md: Add pretend_returner.
13528 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
13531 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13532 Copy op1 RTX to avoid invalid sharing.
13533 (ix86_expand_vector_move_misalign): Ditto.
13535 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
13537 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
13540 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
13542 * predict.c (predicted_by_loop_heuristics_p): New function.
13543 (predict_iv_comparison): Use it.
13544 (predict_loops): Walk from innermost loops; do not predict edges
13545 leaving multiple loops multiple times; implement
13546 PRED_LOOP_ITERATIONS_MAX heuristics.
13547 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
13549 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
13551 * cfg.c (check_bb_profile): Do not report mismatched profiles when
13552 only edges out of BB are EH edges.
13554 2016-06-04 Martin Sebor <msebor@redhat.com>
13555 Marcin Baczyński <marbacz@gmail.com>
13558 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
13559 a void expression in a void function.
13561 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
13563 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
13564 aux; dump reasons of decisions.
13565 (should_duplicate_loop_header_p): Likewise.
13566 (do_while_loop_p): Likewise.
13567 (ch_base::copy_headers): Dump asi num insns duplicated.
13569 2016-06-04 Jakub Jelinek <jakub@redhat.com>
13571 PR tree-optimization/71405
13572 * tree-ssa.c (execute_update_addresses_taken): For clobber with
13573 incompatible type, build a new clobber with the right type instead
13574 of building a VIEW_CONVERT_EXPR around it.
13576 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
13578 PR tree-optimization/52171
13579 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
13580 by_pieces_ninsns instead of move_by_pieces_ninsns.
13582 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
13584 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
13585 for reg+reg addressing mode.
13587 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13589 * rs6000-c.c (c/c-tree.h): Add #include.
13590 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
13591 in C++ when found in the base position of vec_ld or vec_st.
13593 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
13595 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
13596 use of profile unless profile status is PROFILE_READ.
13597 * profile.c (compute_branch_probabilities): Set profile status
13598 only after reporting predictor hitrates.
13600 2016-06-03 Joseph Myers <joseph@codesourcery.com>
13604 * common.opt (ffp-int-builtin-inexact): New option.
13605 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
13606 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
13607 (ceil@var{m}2): Document dependence on this option.
13608 * ipa-inline-transform.c (inline_call): Handle
13609 flag_fp_int_builtin_inexact.
13610 * ipa-inline.c (can_inline_edge_p): Likewise.
13611 * config/i386/i386.md (rintxf2): Do not test
13612 flag_unsafe_math_optimizations.
13613 (rint<mode>2_frndint): New define_insn.
13614 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
13615 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
13616 for 387 instead of extending and truncating.
13617 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
13618 !flag_trapping_math instead of flag_unsafe_math_optimizations.
13619 Change to frndint<mode>2_<rounding>.
13620 (frndintxf2_<rounding>_i387): Likewise. Change to
13621 frndint<mode>2_<rounding>_i387.
13622 (<rounding_insn>xf2): Likewise.
13623 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
13624 !flag_trapping_math instead of flag_unsafe_math_optimizations for
13625 x87. Test TARGET_ROUND || !flag_trapping_math ||
13626 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
13627 SSE. Use ROUND_NO_EXC in constant operand of
13628 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
13629 for 387 instead of extending and truncating.
13631 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
13632 Julia Koval <julia.koval@intel.com>
13644 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
13645 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
13646 all registers, except for function return registers if there are
13647 no caller-saved registers.
13648 (ix86_set_func_type): New function.
13649 (ix86_set_current_function): Call ix86_set_func_type to set
13650 no_caller_saved_registers and func_type. Call reinit_regs if
13651 caller-saved registers are changed. Don't allow MPX, SSE, MMX
13652 nor x87 instructions in interrupt handler nor function with
13653 no_caller_saved_registers attribute.
13654 (ix86_function_ok_for_sibcall): Return false if there are no
13655 caller-saved registers.
13656 (type_natural_mode): Don't warn ABI change for MMX in interrupt
13658 (ix86_function_arg_advance): Skip for callee in interrupt handler.
13659 (ix86_function_arg): Return special arguments in interrupt handler.
13660 (ix86_promote_function_mode): Promote pointer to word_mode only
13661 for normal functions.
13662 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
13664 (ix86_epilogue_uses): New function.
13665 (ix86_hard_regno_scratch_ok): Likewise.
13666 (ix86_save_reg): Preserve all registers in interrupt handler
13667 after reload. Preserve all registers, except for function return
13668 registers, if there are no caller-saved registers after reload.
13669 (find_drap_reg): Always use callee-saved register if there are
13670 no caller-saved registers.
13671 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
13672 for interrupt handler.
13673 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
13674 Emit cld instruction if stringops are used in interrupt handler
13675 or interrupt handler isn't a leaf function.
13676 (ix86_expand_epilogue): Generate interrupt return for interrupt
13677 handler and pop the 'ERROR_CODE' off the stack before interrupt
13678 return in exception handler.
13679 (ix86_expand_call): Disallow calling interrupt handler directly.
13680 If there are no caller-saved registers, mark all registers that
13681 are clobbered by the call which returns as clobbered.
13682 (ix86_handle_no_caller_saved_registers_attribute): New function.
13683 (ix86_handle_interrupt_attribute): Likewise.
13684 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
13686 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
13687 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
13688 accumulation in interrupt function if stack may be realigned to
13690 (EPILOGUE_USES): New.
13691 (function_type): New enum.
13692 (machine_function): Add func_type and no_caller_saved_registers.
13693 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
13694 (interrupt_return): New pattern.
13695 * doc/extend.texi: Document x86 interrupt and
13696 no_caller_saved_registers attributes.
13698 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
13700 PR tree-optimization/52171
13701 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
13702 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
13703 Look for constant strings. Move some code to emit_block_cmp_hints
13705 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
13706 * defaults.h (COMPARE_MAX_PIECES): New macro.
13707 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
13708 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
13709 (clear_by_pieces_1): Don't declare. Move definition before use.
13710 (can_do_by_pieces): New static function.
13711 (can_move_by_pieces): Use it. Return bool.
13712 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
13713 OP. All callers changed. Handle COMPARE_BY_PIECES.
13714 (class pieces_addr); New.
13715 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
13716 pieces_addr::adjust, pieces_addr::increment_address,
13717 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
13719 (class op_by_pieces_d): New.
13720 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
13722 (class move_by_pieces_d, class compare_by_pieces_d,
13723 class store_by_pieces_d): New subclasses of op_by_pieces_d.
13724 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
13725 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
13726 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
13727 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
13728 compare_by_pieces_d::finish_mode): New member functions.
13729 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
13731 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
13732 (emit_block_cmp_hints): New function.
13733 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
13734 use the newly defined classes.
13735 * expr.h (by_pieces_constfn): New typedef.
13736 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
13737 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
13738 (move_by_pieces_ninsns): Don't declare.
13739 (can_move_by_pieces): Change return value to bool.
13740 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
13741 (compare_by_pieces_branch_ratio): New hook.
13742 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
13743 (by_pieces_ninsns): Declare.
13744 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
13746 (default_compare_by_pieces_branch_ratio): New function.
13747 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
13748 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
13749 * doc/tm.texi: Regenerate.
13750 * tree-ssa-strlen.c: Include "builtins.h".
13751 (handle_builtin_memcmp): New static function.
13752 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
13753 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
13755 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13757 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
13758 relevant stmts which are simple and invariant.
13759 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
13760 instead of simple and invariant
13762 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13764 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
13765 (vectorizable_reduction): Check for new relevant state.
13766 (vectorizable_live_operation): vectorize live stmts using
13767 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
13768 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
13769 (vect_stmt_relevant_p): Check for stmts which are only used live.
13770 (process_use): Use of a stmt does not inherit it's live value.
13771 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
13772 (vect_analyze_stmt): Check for new relevant state.
13773 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
13774 outside the loop, but not inside it.
13776 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13778 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
13779 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
13780 (vect_get_vec_def_for_operand): Split out code.
13782 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
13784 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
13786 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13788 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
13790 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13792 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
13794 2016-06-03 Jakub Jelinek <jakub@redhat.com>
13796 PR middle-end/71387
13797 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
13798 to noreturn e->callee->decl that has void return type and void
13799 arguments, adjust gimple_call_fntype and remove lhs even if it had
13800 previously addressable type.
13802 2016-06-02 Jeff Law <law@redhat.com>
13804 PR tree-optimization/71328
13805 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
13806 error when checking for a jump back onto the copied path.
13808 2016-06-02 David Malcolm <dmalcolm@redhat.com>
13810 * config/microblaze/microblaze.c (get_branch_target): Add return
13811 NULL_RTX for the non-CALL_P case.
13812 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
13813 (insert_wic): Remove unused local "j".
13815 2016-06-02 Martin Liska <mliska@suse.cz>
13817 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
13819 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
13820 Julia Koval <julia.koval@intel.com>
13822 * function.c (assign_parm_setup_stack): Force source into a
13823 register if needed.
13824 * target.def (function_incoming_arg): Update documentation to
13825 allow arbitrary address computation based on hard register.
13826 * doc/tm.texi: Regenerated.
13828 2016-06-02 Martin Liska <mliska@suse.cz>
13830 * predict.c (combine_predictions_for_bb): Fix first match in
13831 cases where a first predictor contains more than one occurence
13832 in list of predictors. Take the best value in such case.
13834 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13836 PR rtl-optimization/71295
13837 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
13838 offset would go over the size of the inner mode reject it.
13840 2016-06-02 Jakub Jelinek <jakub@redhat.com>
13842 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
13843 x=x,x and v=v,m instead of x=x,m.
13845 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
13846 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
13847 alternative to v=rm,C.
13849 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
13850 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
13851 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
13852 instead of vex for the last two above mentioned alternatives.
13854 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13857 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
13859 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
13861 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
13863 2016-06-01 David Malcolm <dmalcolm@redhat.com>
13865 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
13866 from int to unsigned.
13868 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13870 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
13871 alternatives, eliminating preferred register class. Add support
13872 for the MTVSRDD instruction in ISA 3.0.
13873 (vsx_splat_v4si_internal): Use splat_input_operand instead of
13874 reg_or_indexed_operand.
13875 (vsx_splat_v4sf_internal): Likewise.
13877 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13880 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
13881 for loading up all 0's or all 1's.
13883 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
13885 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
13887 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
13889 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
13891 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
13892 * gcc.c (set_source_date_epoch_envvar): New function, sets
13893 the SOURCE_DATE_EPOCH environment variable to the current time.
13895 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
13897 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
13898 the factor for live Phi nodes.
13900 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
13902 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
13903 * tree-parloops.c (parallelize_loops): likewise.
13904 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
13905 tree_unswitch_outer_loop): likewise.
13907 2016-06-01 Jakub Jelinek <jakub@redhat.com>
13909 PR middle-end/71371
13910 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
13911 around creation of the temporary.
13913 2016-06-01 Richard Biener <rguenther@suse.de>
13915 PR tree-optimization/71366
13916 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
13917 (unloop_loops): Move removing edges here ...
13918 (try_unroll_loop_completely): ... from here.
13919 (try_peel_loop): ... and here.
13920 (tree_unroll_loops_completely_1): Track parent loops via
13921 bitmap of header BBs.
13922 (tree_unroll_loops_completely): Adjust for that.
13924 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
13926 * config/rs6000/altivec.h (vec_slv): New macro.
13927 (vec_srv): New macro.
13928 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
13929 (UNSPEC_VSRV): New value.
13932 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
13933 (vsrv): New builtin definition.
13934 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
13935 define argument types for new builtin.
13936 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
13938 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
13941 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
13942 Jocelyn Mayer <l_indien@magic.fr>
13945 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
13946 detect processor family for signature_CENTAUR_ebx.
13947 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
13948 signature_CENTAUR_ebx.
13949 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
13950 <default>: Pass x86-64 for has_longmode.
13952 2016-06-01 Nathan Sidwell <nathan@acm.org>
13954 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
13957 2016-06-01 Richard Biener <rguenther@suse.de>
13959 PR tree-optimization/71261
13960 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
13961 of stmts successfully put in the bool pattern. Remove
13962 single-use restriction.
13963 (adjust_bool_pattern_cast): Add cast at the use site via the
13964 pattern def sequence.
13965 (adjust_bool_pattern): Remove recursion, maintain a hash-map
13966 of patterned defs. Use the pattern def seqence instead of
13967 multiple independent patterns.
13968 (sort_after_uid): New qsort compare function.
13969 (adjust_bool_stmts): New function to process stmts in the bool
13970 pattern in IL order.
13971 (vect_recog_bool_pattern): Adjust.
13972 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
13973 (ifcvt_walk_pattern_tree): Likewise.
13974 (stmt_is_root_of_bool_pattern): Likewise.
13975 (ifcvt_repair_bool_pattern): Likewise.
13976 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
13978 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
13980 * loop-unroll.c (decide_unroll_constant_iterations,
13981 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
13982 likely upper bounds.
13983 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
13985 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
13987 * tree-core.h (enum omp_clause_code): Remove
13988 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
13990 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13992 * config/arm/sync.md (arm_store_exclusive<mode>):
13993 Use 'H' output modifier on operands[2] rather than creating a new
13994 entry in out-of-bounds memory of the operands array.
13995 (arm_store_release_exclusivedi): Likewise.
13997 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13999 * config/arm/arm.c (arm_fusion_enabled_p): New function.
14000 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
14001 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
14002 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
14004 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
14006 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
14007 into account live statements for mask producers.
14009 2016-06-01 Richard Biener <rguenther@suse.de>
14011 PR tree-optimization/71311
14012 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
14013 restrict to non-INTEGER_CST @0.
14015 2016-06-01 Richard Biener <rguenther@suse.de>
14017 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
14018 (relational patterns): Use :c to avoid pattern duplications.
14020 2016-06-01 Richard Biener <rguenther@suse.de>
14022 * genmatch.c (comparison_code_p): New predicate.
14023 (swap_tree_comparison): New function.
14024 (commutate): Add for_vec parameter to append new for entries.
14025 Support commutating relational operators by swapping it alongside
14027 (lower_commutative): Adjust.
14028 (dt_simplify::gen): Do not pass artificial operators to gen
14030 (decision_tree::gen): Do not add artificial operators as parameters.
14031 (parser::parse_expr): Verify operator commutativity when :c is
14032 applied. Allow :C to override this.
14033 * match.pd: Adjust patterns to use :C instead of :c where required.
14035 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
14037 PR tree-optimization/71077
14038 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
14039 the combining step, use boolean_false_node and boolean_true_node
14040 as the designated false/true return values.
14042 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
14044 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
14045 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
14046 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
14049 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
14051 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
14052 of flags impliying the register renaming.
14053 * toplev.c (process_options): Do not imply flag_rename_registers with
14056 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
14058 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
14059 default implementation.
14061 2016-05-31 Nathan Sidwell <nathan@acm.org>
14063 * dwarf2out.c (cur_line_info_table): Add GTY marker.
14065 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
14067 * config/sh/constraints.md (b): Remove constraint.
14068 * config/sh/predicates.md (arith_reg_operand): Remove
14070 * config/sh/sh-modes.def (PDI): Remove.
14071 * config/sh/sh.c (sh_target_reg_class,
14072 sh_optimize_target_register_callee_saved): Remove functions.
14073 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
14074 (sh_expand_epilogue): Update comment.
14075 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
14076 sh_secondary_reload): Remove TARGET_REGS related code.
14077 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
14078 TARGET_REGISTER_P): Remove macros.
14079 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
14080 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
14081 TR1_REG, TR2_REG): Remove constants.
14082 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
14084 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
14086 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
14087 define_expand patterns.
14088 (adddi3_compact): Rename to adddi3.
14089 (subdi3_compact): Rename to subdi3.
14090 (*negdi2): Rename to negdi2.
14091 (*abs<mode>2): Rename to abs<mode>2.
14093 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
14095 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
14096 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
14097 (atomic_sub_fetchsi): ... this new pattern.
14098 (mvtc): Add CC_REG clobber.
14100 2016-05-31 Marek Polacek <polacek@redhat.com>
14102 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
14104 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14106 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
14107 aarch64_fusion_enabled_p to check for fusion capabilities.
14109 2016-05-31 Richard Biener <rguenther@suse.de>
14111 PR tree-optimization/71352
14112 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
14113 minus one and a negate.
14115 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14117 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
14118 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
14120 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
14121 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
14122 Remove use of aarch64_simd_attr_length_move, set length attribute
14124 (*aarch64_be_movoi): Likewise.
14125 (*aarch64_be_movci): Likewise.
14126 (*aarch64_be_movxi): Likewise.
14128 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
14130 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
14131 It no longer does that.
14132 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
14134 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
14136 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
14137 attribute __unused__.
14139 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
14141 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
14142 * config/arm/arm.c (arm_arch_thumb1): Define.
14143 (arm_option_override): Initialize arm_arch_thumb1.
14144 * config/arm/arm.h (arm_arch_thumb1): Declare.
14145 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
14146 support Thumb-1 ISA.
14148 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
14151 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
14152 `Yv' for scalar operand.
14154 2016-05-31 Tom de Vries <tom@codesourcery.com>
14156 PR tree-optimization/69068
14157 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
14158 phis with more than two args.
14160 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
14162 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
14163 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
14166 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
14168 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
14170 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
14172 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
14173 cpu_32, cpu_64, tune_32 and tune_64.
14174 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
14176 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
14178 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
14180 2016-05-30 Andi Kleen <ak@linux.intel.com>
14182 * auto-profile.c (read_profile): Replace asserts with errors
14183 when file does not exist.
14184 * gcov-io.c (gcov_read_words): Dito.
14186 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
14188 * tree-cfg.c (print_loop): Print likely upper bounds.
14190 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
14192 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
14193 * opts.c (default_options): Enable peel loops at -O3.
14194 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
14195 (try_peel_loop): Do not re-peel already peeled loops;
14196 use likely upper bounds; fix profile updating.
14197 (pass_complete_unroll::execute): Initialize peeled_loops.
14199 2016-05-30 Martin Liska <mliska@suse.cz>
14201 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
14202 computed costs by frequency of BB they belong to.
14203 (get_scaled_computation_cost_at): New function.
14205 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
14206 Marc Glisse <marc.glisse@inria.fr>
14208 PR tree-optimization/71289
14209 * match.pd (-1 / B < A, A > -1 / B): New transformations.
14211 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
14213 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
14215 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
14217 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
14218 for peeled copies; avoid underflow when updating estimates; correctly
14219 scale loop profile.
14221 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
14223 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
14224 r236875. Corrected oe3 to oe2 as obvious.
14226 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
14228 PR middle-end/71269
14229 PR middle-end/71252
14230 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
14231 that inserted stmt will not dominate stmts that defines its operand.
14232 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
14233 (rewrite_expr_tree_parallel): Likewise.
14235 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
14237 PR middle-end/71252
14238 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
14239 all fields including stmt_to_insert are swapped.
14241 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
14243 * predict.h (force_edge_cold): Declare.
14244 * predict.c (force_edge_cold): New function.
14245 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
14247 (canonicalize_loop_induction_variables): Fix formating.
14249 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
14251 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
14252 (visium_expand_copysign): Use gen_int_mode directly.
14253 (visium_compute_frame_size): Minor tweaks.
14255 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
14257 * tree-vect-loop.c (vect_analyze_loop_2): Use
14258 likely_max_stmt_executions_int.
14260 2016-05-30 Tom de Vries <tom@codesourcery.com>
14262 PR tree-optimization/69067
14263 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
14265 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
14268 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
14269 New peepholes to remove unneeded fild/fistp pairs.
14270 (define_peephole2 atomic_loaddi_fpu): Ditto.
14272 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
14274 * predict.c (maybe_hot_frequency_p): Avoid division.
14276 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
14278 * doc/install.texi: Use https for shop.fsf.org.
14280 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
14282 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
14283 likely_max_stmt_executions_int.
14285 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
14287 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
14288 likely_max_stmt_executions_int.
14290 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
14292 * profile.c (compute_branch_probabilities): Do not report hitrates
14294 (branch_prob): Report hitrates here.
14295 * predict.c (gimple_predict_edge): Do not assert profile status;
14296 fix formatting issues.
14298 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
14300 * predict.c (edge_predicted_by_p): New function.
14301 (predict_paths_for_bb): Do not put multiple predictions of the same type
14304 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
14306 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
14309 2016-05-28 Alan Modra <amodra@gmail.com>
14311 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
14313 2016-05-28 Alan Modra <amodra@gmail.com>
14315 PR rtl-optimization/71275
14316 * ira.c (ira): Free dominance info.
14318 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
14320 * doc/sourcebuild.texi: New address for upstream Go repository.
14322 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
14324 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
14325 (TARGET_ARM_V7M): Likewise.
14327 2016-05-26 Jeff Law <law@redhat.com>
14329 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
14330 (thread_across_edge): Remove calls to find_jump_threads_backwards.
14331 * passes.def: Add jump threading passes before DOM/VRP.
14332 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
14333 argument to a basic block from an edge. Remove tests which are
14335 (pass_data_thread_jumps, class pass_thread_jumps): New.
14336 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
14337 (make_pass_thread_jumps): Likewise.
14338 * tree-pass.h (make_pass_thread_jumps): Declare.
14340 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
14342 * config/visium/visium-protos.h (split_double_move): Rename into...
14343 (visium_split_double_move): ...this.
14344 (visium_split_double_add): Declare.
14345 * config/visium/visium.c (split_double_move): Rename into...
14346 (visium_split_double_move): ...this.
14347 (visium_split_double_add): New function.
14348 (visium_expand_copysign): Renumber operands for consistency.
14349 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
14350 (DFmode move splitter): Likewise.
14351 (*addi3_insn): Split by means of visium_split_double_add.
14352 (*adddi3_insn_flags): Delete.
14353 (*plus_plus_sltu<subst_arith>): New insn.
14354 (*subdi3_insn): Split by means of visium_split_double_add.
14355 (subdi3_insn_flags): Delete.
14356 (*minus_minus_sltu<subst_arith>): New insn.
14357 (*negdi2_insn): Split by means of visium_split_double_add.
14358 (*negdi2_insn_flags): Delete.
14360 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
14362 * configure.ac: Treat a --with-headers option without argument
14363 the same as the default (i.e. consult sys-include directory).
14364 * configure: Regenerate.
14366 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14368 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
14369 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
14371 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
14372 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
14374 2016-05-27 Jiong Wang <jiong.wang@arm.com>
14377 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
14378 tree-stdarg analysis results.
14379 (aarch64_setup_incoming_varargs): Likewise.
14381 2016-05-27 Jiong Wang <jiong.wang@arm.com>
14383 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
14384 va_list_gpr_counter_field and va_list_fpr_counter_field.
14386 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
14389 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
14390 * config/aarch64/aarch64.c
14391 (aarch64_cannot_change_mode_class): Remove function.
14392 * config/aarch64/aarch64-protos.h
14393 (aarch64_cannot_change_mode_class): Remove.
14395 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
14397 * cfgloop.c (record_niter_bound): Record likely upper bounds.
14398 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
14399 get_likely_max_loop_iterations_int): New.
14400 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
14401 any_likely_upper_bound.
14402 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
14404 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
14405 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
14407 (unroll_loop_constant_iterations): Likewise.
14408 (unroll_loop_runtime_iterations): Likewise.
14409 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
14410 * lto-streamer-out.c (output_cfg): Likewise.
14411 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
14413 (canonicalize_loop_induction_variables): Dump likely upper bounds.
14414 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
14415 (likely_max_loop_iterations): New.
14416 (likely_max_loop_iterations_int): New.
14417 (likely_max_stmt_executions): New.
14418 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
14419 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
14420 likely_max_stmt_executions): Declare.
14422 2016-05-27 Marek Polacek <polacek@redhat.com>
14424 PR middle-end/71308
14425 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
14427 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14429 * config/s390/s390.md (2x risbg splitters): Use
14430 reg_overlap_mentioned_p instead of rtx_equal_p.
14432 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
14434 * combine.c (make_compound_operation): Take known zero bits into
14435 account when checking for possible zero_extend.
14437 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14439 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
14440 Use const_int_operand for operand 2 predicate. Simplify expand code
14443 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
14445 PR middle-end/71279
14446 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
14449 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14451 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
14452 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
14453 that returns CC_SESWPmode and CC_ZESWPmode.
14454 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
14456 (aarch64_rtx_costs): Likewise.
14458 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14460 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
14461 for ISA 3.0 min/max support.
14462 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
14463 conditional move support.
14464 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
14465 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
14467 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
14468 conditional moves where the comparison type is different from move
14470 (fp_minmax): New code iterator for smin/smax.
14471 (minmax): New code attributes for min/max.
14472 (SMINMAX): Likewise.
14473 (smax<mode>3): Combine min, max insns into one insn using the
14474 fp_minmax code iterator. Add support for ISA 3.0 min/max
14475 instructions that don't need -ffast-math.
14476 (s<minmax><mode>3): Likewise.
14477 (smax<mode>3_vsx): Likewise.
14478 (smin<mode>3): Likewise.
14479 (s<minmax><mode>3_vsx): Likewise.
14480 (smin<mode>3_vsx): Likewise.
14481 (pre-VSX min/max splitters): Likewise.
14482 (s<minmax><mode>3_fpr): Likewise.
14483 (movsfcc): Rewrite floating point conditional moves to combine
14484 SFmode/DFmode into a single insn.
14485 (mov<mode>cc): Likewise.
14486 (movdfcc): Likewise.
14487 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
14488 SFDF2 iterators to handle all combinations.
14489 (fseldfsf4): Likewise.
14490 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
14491 (fseldfdf4): Likewise.
14492 (fselsfdf4): Likewise.
14493 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
14494 comparison instructions that set a 0/-1 mask, and use it for
14495 floating point conditional move via XXSEL.
14496 (fpmask<mode>): Likewise.
14497 (xxsel<mode>): Likewise.
14498 * config/rs6000/predicates.md (min_max_operator): Delete, no
14500 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
14501 instructions that generate a 0/-1 mask for use with XXSEL.
14502 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
14503 say whether floating point min/max is available, either through
14504 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
14505 (TARGET_MINMAX_DF): Likewise.
14507 2016-05-27 Alan Modra <amodra@gmail.com>
14509 PR rtl-optimization/71275
14510 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
14511 for update_equiv_regs and combine_and_move_insns.
14513 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
14515 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
14516 if_then_else or cond RTXes to calculate attribute value.
14517 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
14518 <attr "length_immediate>: Ditto.
14519 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
14520 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
14521 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
14522 <attr "type">: Ditto.
14523 <attr "prefix_data16">: Ditto.
14524 <attr "prefix_extra">: Ditto.
14525 <attr "length_immediate">: Ditto.
14526 <attr "prefix">: Ditto.
14527 (vec_set<mode>_0) <attr "isa">: Ditto.
14528 <attr "prefix_extra">: Ditto.
14529 <attr "length_immediate">: Ditto.
14530 <attr "prefix">: Ditto.
14531 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
14532 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
14533 (sse2_storelpd) <attr "prefix_data16">: Ditto.
14534 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
14535 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
14536 <attr "length_immediate">: Ditto.
14537 <attr "prefix">: Ditto.
14538 (sse2_movsd) <attr "length_immediate">: Ditto.
14539 <attr "prefix">: Ditto.
14540 (vec_concatv2df) <attr "isa">: Ditto.
14541 <attr "prefix">: Ditto.
14542 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
14543 (*vec_extractv2di_1) <attr "isa">: Ditto.
14544 <attr "type">: Ditto.
14545 <attr "length_immediate">: Ditto.
14546 <attr "prefix_rex">: Ditto.
14547 <attr "prefix_extra">: Ditto.
14548 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
14549 <attr "prefix_extra">: Ditto.
14550 <attr "length_immediate">: Ditto.
14551 (vec_concatv2di) <attr "isa">: Ditto.
14552 <attr "prefix_extra">: Ditto.
14553 <attr "length_immediate">: Ditto.
14554 <attr "prefix">: Ditto.
14556 2016-05-26 Martin Liska <mliska@suse.cz>
14558 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
14560 (operator+): Likewise.
14561 (operator-): Likewise.
14562 (comp_cost::operator+=): Likewise.
14563 (comp_cost::operator-=): Likewise.
14564 (comp_cost::operator/=): Likewise.
14565 (comp_cost::operator*=): Likewise.
14566 (operator<): Likewise.
14567 (operator==): Likewise.
14568 (operator<=): Likewise.
14569 (new_cost): Remove.
14570 (infinite_cost_p): Likewise.
14571 (add_costs): Likewise.
14572 (sub_costs): Likewise.
14573 (compare_costs): Likewise.
14574 (set_group_iv_cost): Use the newly introduced functions.
14575 (get_address_cost): Likewise.
14576 (get_shiftadd_cost): Likewise.
14577 (force_expr_to_var_cost): Likewise.
14578 (split_address_cost): Likewise.
14579 (ptr_difference_cost): Likewise.
14580 (difference_cost): Likewise.
14581 (get_computation_cost_at): Likewise.
14582 (determine_group_iv_cost_generic): Likewise.
14583 (determine_group_iv_cost_address): Likewise.
14584 (determine_group_iv_cost_cond): Likewise.
14585 (autoinc_possible_for_pair): Likewise.
14586 (determine_group_iv_costs): Likewise.
14587 (cheaper_cost_pair): Likewise.
14588 (iv_ca_recount_cost): Likewise.
14589 (iv_ca_set_no_cp): Likewise.
14590 (iv_ca_set_cp): Likewise.
14591 (iv_ca_cost): Likewise.
14592 (iv_ca_new): Likewise.
14593 (iv_ca_dump): Likewise.
14594 (iv_ca_narrow): Likewise.
14595 (iv_ca_prune): Likewise.
14596 (iv_ca_replace): Likewise.
14597 (try_add_cand_for): Likewise.
14598 (try_improve_iv_set): Likewise.
14599 (find_optimal_iv_set): Likewise.
14601 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
14603 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
14604 that internal functions will clobber all caller-saved registers.
14606 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
14608 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
14609 Return a better case_values_threshold when optimizing.
14611 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
14613 * config/aarch64/aarch64-simd.md (aarch64_combinez):
14614 Add ? to integer variant.
14615 (aarch64_combinez_be): Likewise.
14617 2016-05-26 Jakub Jelinek <jakub@redhat.com>
14619 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
14620 instead of x constraint.
14621 (vcvtps2ph256<mask_name>): Likewise.
14623 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
14624 alternative. Formatting fix.
14626 * config/i386/sse.md
14627 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
14629 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
14630 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
14631 maybe_evex prefix instead of vex.
14632 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
14633 EXT_REX_SSE_REG_P (op0) case in the splitter.
14635 2016-05-25 Jeff Law <law@redhat.com>
14637 PR tree-optimization/71272
14638 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
14639 Update comments. Add test for empty path.
14641 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14643 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
14644 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
14645 special case builtin.
14646 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
14647 code for ALTIVEC_BUILTIN_VEC_CMPNE.
14648 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
14649 for __builtin_vec_cmpne.
14651 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
14653 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
14654 redundant test and bail out if the type of the new operand is not
14655 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
14657 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
14659 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
14660 (x_ix86_target_flags_explicit): Remove.
14661 * config/i386/i386.c (ix86_function_specific_save): Do not copy
14662 x_ix86_target_flags_explicit.
14663 (ix86_function_specific_restore): Ditto.
14665 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
14666 H.J. Lu <hongjiu.lu@intel.com>
14669 * common/config/i386/i386-common.c
14670 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
14671 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
14672 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
14673 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
14674 (-mgeneral-regs-only): Add new option.
14675 * config/i386/i386.c (ix86_option_override_internal): Don't enable
14676 x87 instructions if only general registers are allowed.
14677 (ix86_target_string): Add ix86_flags argument. Handle additional
14678 flags options through ix86_flags argument. Update all callers.
14679 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
14681 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14683 PR rtl-optimization/66940
14684 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
14685 decrementing desired_val will not overflow before performing these
14688 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
14690 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
14691 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
14692 * config/i386/i386.c (enum ix86_builtins): Add
14693 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
14694 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
14695 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
14696 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
14697 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
14698 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
14699 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
14700 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
14701 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
14702 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
14703 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
14704 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
14705 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
14706 __builtin_ia32_cvtps2dq512_mask.
14707 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
14708 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
14709 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
14710 * config/i386/sse.md
14711 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
14713 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
14714 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
14716 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
14717 (avx512f_vec_pack_sfix_v8df): New define_expand.
14718 (avx512f_roundpd512): Rename to ...
14719 (avx512f_round<castmode>512): ... this. Change iterator.
14720 (avx512f_roundps512_sfix): New define_expand.
14721 (round<mode>2_sfix): Change iterator.
14723 2016-05-25 Nick Clifton <nickc@redhat.com>
14725 * config/msp430/msp430.c (msp430_attr): Produce an error if a
14726 static interrupt handler is detected.
14727 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
14728 default linker script.
14729 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
14730 the low part of a symbolic pointer.
14732 2016-05-25 Richard Biener <rguenther@suse.de>
14734 PR tree-optimization/71261
14735 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
14736 interesting stmt instead of immediate uses when looking
14737 for the use operand to replace.
14739 2016-05-25 Martin Liska <mliska@suse.cz>
14741 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
14743 2016-05-25 Richard Biener <rguenther@suse.de>
14745 PR tree-optimization/71264
14746 * tree-vect-stmts.c (vect_init_vector): Properly deal with
14749 2016-05-25 Martin Liska <mliska@suse.cz>
14751 PR tree-optimization/71239
14752 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
14753 if DECL_SIZE is NULL.
14755 2016-05-25 Richard Biener <rguenther@suse.de>
14757 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
14758 * tree-if-conv.c (pass_data_if_conversion): Use it.
14760 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14762 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
14763 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
14764 * varpool.c (varpool_node::get_availability): Likewise.
14766 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14768 * config/rs6000/altivec.md (VNEG iterator): New iterator for
14769 VNEGW/VNEGD instructions.
14770 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
14771 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
14772 support for ISA 3.0 VNEGW/VNEGD instructions.
14774 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
14776 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
14777 pointers inside OACC_DATA regions.
14778 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
14779 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
14780 (gimplify_adjust_omp_clauses): Fix typo in comment.
14782 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14784 * config/rs6000/altivec.md (VParity): New mode iterator for vector
14785 parity built-in functions.
14786 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
14788 (p9v_parity<mode>2): Likewise.
14789 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
14791 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
14792 (parity<mode>2): ISA 3.0 expander for vector parity.
14793 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
14795 (BU_P9_64BIT_MISC_0): Likewise.
14796 (BU_P9_MISC_0): Likewise.
14797 (BU_P9V_AV_1): Likewise.
14798 (BU_P9V_AV_2): Likewise.
14799 (BU_P9V_AV_3): Likewise.
14800 (BU_P9V_AV_P): Likewise.
14801 (BU_P9V_VSX_1): Likewise.
14802 (BU_P9V_OVERLOAD_1): Likewise.
14803 (BU_P9V_OVERLOAD_2): Likewise.
14804 (BU_P9V_OVERLOAD_3): Likewise.
14805 (VCTZB): Add vector count trailing zeros support.
14809 (VPRTYBD): Add vector parity support.
14810 (VPRTYBQ): Likewise.
14811 (VPRTYBW): Likewise.
14812 (VCTZ): Add overloaded vector count trailing zeros support.
14813 (VPRTYB): Add overloaded vector parity support.
14814 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14815 overloaded vector count trailing zeros and parity instructions.
14816 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
14817 vector parity support.
14818 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
14819 trailing zeros support.
14820 (vec_cntlz): Likewise.
14821 (vec_vctzb): Likewise.
14822 (vec_vctzd): Likewise.
14823 (vec_vctzh): Likewise.
14824 (vec_vctzw): Likewise.
14825 (vec_vprtyb): Add ISA 3.0 vector parity support.
14826 (vec_vprtybd): Likewise.
14827 (vec_vprtybw): Likewise.
14828 (vec_vprtybq): Likewise.
14829 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14830 the ISA 3.0 vector count trailing zeros and vector parity built-in
14833 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14835 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
14836 when there is stmt_to_insert.
14838 2016-05-24 Martin Sebor <msebor@redhat.com>
14841 * tree.h (complete_or_array_type_p): New inline function.
14843 2016-05-24 Jakub Jelinek <jakub@redhat.com>
14845 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
14846 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
14847 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
14849 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
14850 Limit 1st alternative to noavx isa, split 2nd alternative into one
14851 noavx and one avx alternative, use *x and Bm in the former and
14852 x and m in the latter.
14854 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
14855 of sse4 for the first alternative, drop %v from the template
14856 and d operand modifier. Split second alternative into one sse4_noavx
14857 and one avx alternative, use *x instead of *v in the former and v
14858 instead of *v in the latter.
14859 (*sse4_1_extractps): Use noavx isa instead of * for the first
14860 alternative, drop %v from the template. Split second alternative into
14861 one noavx and one avx alternative, use *x instead of *v in the
14862 former and v instead of *v in the latter.
14863 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
14864 with noavx and the last one with avx.
14865 (sse4_1_phminposuw): Guard first alternative with noavx isa,
14866 split the second one into one noavx and one avx alternative,
14867 use *x and Bm in the former and x and m in the latter one.
14868 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
14871 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
14872 first two alternatives to noavx, use *x instead of *v in the second
14873 one, add avx alternative without *.
14874 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
14875 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
14876 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
14878 2016-05-24 Jeff Law <law@redhat.com>
14880 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
14881 New function, extracted from...
14882 (fsm_find_control_statement_thread_paths): Here. Use the new function.
14883 Allow simple copies and constant initializations in the SSA chain.
14885 2016-05-24 Marek Polacek <polacek@redhat.com>
14888 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
14891 2016-05-24 Jakub Jelinek <jakub@redhat.com>
14894 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
14895 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
14896 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
14897 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
14898 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
14900 2016-05-24 Richard Biener <rguenther@suse.de>
14902 PR tree-optimization/71240
14903 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
14906 2016-05-24 Richard Biener <rguenther@suse.de>
14908 PR tree-optimization/71230
14909 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
14911 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14913 * tree-vectorizer.h (vectorizable_comparison): Delete.
14914 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
14915 PURE_SLP_STMT check.
14916 * tree-vect-stmts.c (vectorizable_call): Likewise.
14917 (vectorizable_simd_clone_call): Likewise.
14918 (vectorizable_conversion): Likewise.
14919 (vectorizable_assignment): Likewise.
14920 (vectorizable_shift): Likewise.
14921 (vectorizable_operation): Likewise.
14922 (vectorizable_load): Likewise.
14923 (vectorizable_condition): Likewise.
14924 (vectorizable_store): Likewise. Assert that we don't have
14926 (vectorizable_comparison): Make static. Remove redundant
14927 PURE_SLP_STMT check.
14928 (vect_transform_stmt): Assert that we always have an slp_node
14931 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14933 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
14934 operands[2] against 1 with comparison against CONST1_RTX.
14935 (<shift>di3_neon): Likewise.
14936 * config/arm/predicates.md (const0_operand): Replace with comparison
14937 against CONST0_RTX.
14939 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14941 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
14942 operands[2] against 1 with comparison against CONST1_RTX.
14943 (ashrdi3): Likewise.
14944 (lshrdi3): Likewise.
14945 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
14947 (ashrsi3): Likewise.
14948 (lshrsi3): Likewise.
14949 (rotrsi3): Likewise.
14950 (define_split above *compareqi_eq0): Likewise.
14951 (define_split above "prologue"): Likewise.
14952 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
14953 * config/arm/predicates.md (shift_operator): Likewise.
14954 (shift_nomul_operator): Likewise.
14955 (sat_shift_operator): Likewise.
14956 (thumb1_cmp_operand): Likewise.
14957 (const_neon_scalar_shift_amount_operand): Replace manual range
14958 check with IN_RANGE.
14959 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
14960 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
14962 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14964 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
14965 with HOST_WIDE_INT_1.
14967 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
14968 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
14969 (arm_canonicalize_comparison): Likewise.
14970 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
14972 (thumb1_size_rtx_costs): Likewise.
14973 (vfp_const_double_index): Replace cast of 1 to unsigned
14974 HOST_WIDE_INT with HOST_WIDE_INT_1U.
14975 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
14977 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
14978 HOST_WIDE_INT with HOST_WIDE_INT_1U.
14979 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
14980 HOST_WIDE_INT with HOST_WIDE_INT_1.
14982 2016-05-24 Marek Polacek <polacek@redhat.com>
14984 * tree-cfg.h (should_remove_lhs_p): New predicate.
14985 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
14986 * gimplify.c (gimplify_modify_expr): Likewise.
14987 * tree-cfg.c (verify_gimple_call): Likewise.
14988 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14989 * gimple-fold.c: Include "tree-cfg.h".
14990 (gimple_fold_call): Use should_remove_lhs_p.
14992 2016-05-24 Richard Biener <rguenther@suse.de>
14994 PR tree-optimization/71253
14995 * cfganal.h (control_dependences): Make robust against edge
14997 (control_dependences::control_dependences): Remove edge_list argument.
14998 (control_dependences::get_edge): Remove.
14999 (control_dependences::get_edge_src): Add.
15000 (control_dependences::get_edge_dest): Likewise.
15001 (control_dependences::m_el): Make a vector of edge src/dest index.
15002 * cfganal.c (control_dependences::find_control_dependence): Adjust.
15003 (control_dependences::control_dependences): Likewise.
15004 (control_dependences::~control_dependence): Likewise.
15005 (control_dependences::get_edge): Remove.
15006 (control_dependences::get_edge_src): Add.
15007 (control_dependences::get_edge_dest): Likewise.
15008 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
15010 (perform_tree_ssa_dce): Adjust.
15011 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
15013 (pass_loop_distribution::execute): Adjust. Do loop destroying
15014 conditional on changed.
15016 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15019 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
15020 return. Reindent transformation comment and mention the ARM state
15023 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
15025 PR middle-end/71252
15026 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
15027 after build_and_add_sum creates new use stmt.
15029 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
15031 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
15032 load_lanes/grouped_load classification comes first. Don't check
15033 whether the vectorization factor is a multiple of the group size
15036 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
15038 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
15039 GROUP_GAP for single-element interleaving.
15040 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
15043 2016-05-24 Richard Biener <rguenther@suse.de>
15045 PR middle-end/70434
15047 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
15048 bases which are accessed with non-invariant indices.
15049 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
15050 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
15052 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
15054 PR middle-end/71170
15055 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
15056 (add_to_ops_vec): Add stmt_to_insert.
15057 (add_repeat_to_ops_vec): Init stmt_to_insert.
15058 (insert_stmt_before_use): New.
15059 (transform_add_to_multiply): Remove mult_stmt insertion and add it
15061 (get_ops): Init stmt_to_insert.
15062 (maybe_optimize_range_tests): Likewise.
15063 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
15064 (rewrite_expr_tree_parallel): Likewise.
15065 (reassociate_bb): Likewise.
15067 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15070 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
15071 ISA 3.0 xxperm fusion alternative.
15072 (altivec_vperm_v8hiv16qi): Likewise.
15073 (altivec_vperm_<mode>_uns_internal): Likewise.
15074 (vperm_v8hiv4si): Likewise.
15075 (vperm_v16qiv8hi): Likewise.
15077 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15078 Kelvin Nilsen <kelvin@gcc.gnu.org>
15080 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
15081 vpermr/xxpermr on ISA 3.0.
15082 (altivec_expand_vec_perm_le): Likewise.
15083 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
15084 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
15087 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
15089 * config/i386/i386.h (IS_STACK_MODE): Enable for
15090 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
15091 SSE_FLOAT_MODE_P macros.
15092 * config/i386/i386.c (ix86_preferred_reload_class): Use
15093 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
15094 Cleanup regclass processing for CONST_DOUBLE_P.
15095 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
15096 (ix86_rtx_costs): Remove redundant TARGET_80387 check
15097 with IS_STACK_MODE macro.
15098 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
15100 (*movdf_internal): Use IS_STACK_MODE macro.
15101 (*movsf_internal): Ditto.
15103 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
15105 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
15106 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
15108 2016-05-23 Jeff Law <law@redhat.com>
15110 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
15112 (fsm_find_control_statement_thread_paths): Call it.
15114 2016-05-23 Martin Jambor <mjambor@suse.cz>
15117 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
15118 from_global_constant if t is not NULL.
15120 2016-05-23 Marek Polacek <polacek@redhat.com>
15123 * common.opt (Wswitch-unreachable): New option.
15124 * doc/invoke.texi: Document -Wswitch-unreachable.
15125 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
15128 2016-05-23 Bin Cheng <bin.cheng@arm.com>
15130 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
15131 TMR_INDEX is non-NULL.
15133 2016-05-23 Richard Biener <rguenther@suse.de>
15135 PR tree-optimization/71230
15136 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
15137 (try_special_add_to_ops): ... here. Always test for single-use.
15139 2016-05-23 Martin Jambor <mjambor@suse.cz>
15141 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
15142 default block if a PHI node in the original one would be resized.
15144 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15146 PR tree-optimization/58135
15147 * tree-vect-slp.c: When group size is not multiple
15148 of vector size, allow splitting of store group at
15151 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
15153 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
15155 2016-05-22 Jakub Jelinek <jakub@redhat.com>
15157 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
15158 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
15159 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
15162 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
15163 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
15164 v constraint instead of x and vinserti32x4 insn.
15166 * config/i386/sse.md (i128vldq): New mode iterator.
15167 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
15168 avx512dq and avx512vl alternatives.
15170 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
15171 constraint, use maybe_evex prefix instead of vex.
15172 (vec_dupv4sf): Use v constraint instead of x for output
15173 operand except for noavx alternative, use Yv constraint
15174 instead of x for input. Use maybe_evex prefix instead of vex.
15175 (*vec_dupv4si): Likewise.
15176 (*vec_dupv2di): Likewise.
15178 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15180 PR middle-end/40921
15181 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
15182 (linearize_expr_tree): Call try_special_add_to_ops.
15183 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
15185 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15187 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
15188 to computed stack_usage.
15190 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15193 * config/avr/avr.md (define_expand "mov<mode>"): If the source
15194 operand is subreg (symbol_ref) then move the symbol ref to register.
15196 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
15198 * tree.c (array_at_struct_end_p): Look through MEM_REF.
15200 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
15202 PR middle-end/71179
15203 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
15206 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
15208 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
15209 ranges by calling get_single_symbol and tidy up. Look more closely
15210 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
15212 2016-05-20 Jeff Law <law@redhat.com>
15214 * bitmap.c (bitmap_find_bit): Remove useless test.
15216 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
15218 * function.c (thread_prologue_and_epilogue_insns): Commit the
15219 insertion of the epilogue.
15221 2016-05-20 Martin Jambor <mjambor@suse.cz>
15223 PR tree-optimization/70884
15224 * tree-sra.c (initialize_constant_pool_replacements): Do not check
15225 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
15226 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
15227 of constant pool data as a reason for scalarization.
15229 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
15231 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
15232 for naked functions.
15233 (thumb1_expand_prologue): Likewise.
15235 2016-05-20 Nathan Sidwell <nathan@acm.org>
15237 * config/nvptx/nptx.c (nvptx_option_override): Only set
15238 flag_toplevel_reorder, if not explicitly specified. Set
15239 flag_no_common, unless explicitly specified.
15241 2016-05-20 David Malcolm <dmalcolm@redhat.com>
15243 * calls.c (can_implement_as_sibling_call_p): Mark param
15244 reg_parm_stack_space with ATTRIBUTE_UNUSED.
15246 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
15248 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
15249 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
15250 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
15252 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
15253 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
15254 and CASE_CONST_ANY.
15256 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
15258 * config/nvptx/nvptx.md (sincossf3): New pattern.
15260 2016-05-20 David Malcolm <dmalcolm@redhat.com>
15262 * calls.c (maybe_complain_about_tail_call): New function.
15263 (initialize_argument_information): Call
15264 maybe_complain_about_tail_call when clearing *may_tailcall.
15265 (can_implement_as_sibling_call_p): Call
15266 maybe_complain_about_tail_call when returning false.
15267 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
15268 ensure try_tail_call is set. Call maybe_complain_about_tail_call
15269 if tail-call optimization fails.
15270 * cfgexpand.c (expand_call_stmt): Initialize
15271 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
15272 * gimple-pretty-print.c (dump_gimple_call): Dump
15273 gimple_call_must_tail_p.
15274 * gimple.c (gimple_build_call_from_tree): Call
15275 gimple_call_set_must_tail with the value of
15276 CALL_EXPR_MUST_TAIL_CALL.
15277 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
15278 (gimple_call_set_must_tail): New function.
15279 (gimple_call_must_tail_p): New function.
15280 * print-tree.c (print_node): Update printing of TREE_STATIC
15281 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
15282 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
15283 trailing comment listing applicable flags.
15284 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
15286 2016-05-20 David Malcolm <dmalcolm@redhat.com>
15288 * calls.c (expand_call): Move "Rest of purposes for tail call
15289 optimizations to fail" to...
15290 (can_implement_as_sibling_call_p): ...this new function, and
15291 split into multiple "if" statements.
15293 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
15295 * cfgloop.h (expected_loop_iterations_unbounded,
15296 expected_loop_iterations): Unconstify.
15297 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
15298 profile with known upper bound; return 3 when profile is absent.
15299 (expected_loop_iterations): Update.
15301 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
15303 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
15304 and get_max_loop_iterations_int.
15306 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
15308 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
15309 realistic upper bounds here.
15311 2016-05-20 Jakub Jelinek <jakub@redhat.com>
15314 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
15315 calls if the LHS is variable length or has addressable type.
15316 If targets[0]->decl is a noreturn call with void return type and
15317 zero arguments, adjust fntype and remove lhs in that case.
15319 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
15321 PR tree-optimization/71079
15322 PR tree-optimization/71206
15323 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
15325 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15327 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
15328 (get_vec_alignment_for_array_decl): Likewise.
15329 (get_vec_alignment_for_record_decl): Likewise.
15330 (increase_alignment::execute): Move code to find alignment to
15331 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
15332 (type_align_map): New hash_map.
15334 2016-05-20 Richard Guenther <rguenther@suse.de>
15336 PR tree-optimization/29756
15337 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
15338 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
15339 * fold-const.c (operand_equal_p): Likewise.
15340 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
15341 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
15342 * tree-inline.c (estimate_operator_cost): Likewise.
15343 * tree-pretty-print.c (dump_generic_node): Likewise.
15344 * tree-ssa-operands.c (get_expr_operands): Likewise.
15345 * cfgexpand.c (expand_debug_expr): Likewise.
15346 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
15347 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
15348 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
15349 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
15350 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
15351 (execute_update_addresses_taken): Do it.
15353 2016-05-20 Richard Biener <rguenther@suse.de>
15355 PR tree-optimization/71185
15356 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
15357 register operations.
15359 2016-05-20 Richard Biener <rguenther@suse.de>
15361 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
15362 gimple_seq_add_seq_without_update.
15363 (release_bb_predicate): Assert we have no operands to free.
15364 (if_convertible_loop_p_1): Calculate post dominators later.
15365 Do not free BB predicates here.
15366 (combine_blocks): Do not recompute BB predicates.
15367 (version_loop_for_if_conversion): Save BB predicates around
15370 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15372 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
15373 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
15374 code. Ignore sibcalls on EDGE_IGNORE edges.
15375 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
15376 on edges for sibcalls that run without prologue. The rest of the
15377 function is combined from...
15378 (fix_fake_fallthrough_edge): ... this, and ...
15379 (try_shrink_wrapping): ... a part of this. Remove the bb_with
15380 function argument, make it a local variable.
15382 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
15384 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
15385 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
15386 for 32-bit mode and SEH for 64-bit.
15387 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
15388 TARGET_64BIT_DEFAULT.
15390 2016-05-19 Ryan Burn <contact@rnburn.com>
15392 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
15393 * gengtype.c (open_base_files): Add cilk.h to ifiles.
15395 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
15397 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
15398 force pending loads from memory.
15400 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
15402 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
15403 (UNSPEC_DARN_32): New unspec constant.
15404 (UNSPEC_DARN_RAW): New unspec constant.
15405 (darn_32): New instruction.
15406 (darn_raw): New instruction.
15407 (darn): New instruction.
15408 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
15409 support and documentation for this macro.
15410 (BU_P9_MISC_1): New macro definition.
15411 (BU_P9_64BIT_MISC_0): New macro definition.
15412 (BU_P9_MISC_0): New macro definition.
15413 (darn_32): New builtin definition.
15414 (darn_raw): New builtin definition.
15415 (darn): New builtin definition.
15416 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
15417 RS6000_BUILTIN_0 directives to surround each occurrence of
15418 #include "rs6000-builtin.def".
15419 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
15420 RS6000_BTM_64BIT flags to the returned mask, depending on
15422 (def_builtin): Correct an error in the assignments made to the
15423 debugging variable attr_string.
15424 (rs6000_expand_builtin): Add support for no-operand built-in
15426 (builtin_function_type): Remove fatal_error assertion that is no
15428 (rs6000_common_init_builtins): Add support for no-operand built-in
15430 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
15432 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
15434 (RS6000_BTM_64BIT): New macro definition.
15435 * doc/extend.texi: Document __builtin_darn (void),
15436 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
15439 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
15441 * tree-vect-loop.c (vect_analyze_loop_2): Use also
15442 max_loop_iterations_int.
15444 2016-05-19 Marek Polacek <polacek@redhat.com>
15446 PR tree-optimization/71031
15447 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
15448 condition and adjust the code a bit.
15450 2016-05-19 Martin Liska <mliska@suse.cz>
15452 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
15453 auto_vec instead of vec.
15455 2016-05-19 Martin Liska <mliska@suse.cz>
15457 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
15459 2016-05-19 Martin Liska <mliska@suse.cz>
15461 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
15463 2016-05-19 Martin Liska <mliska@suse.cz>
15465 * ipa-pure-const.c (set_function_state): Remove an existing
15467 (remove_node_data): Do not free it as it's released
15468 in set_function_state.
15470 2016-05-19 Martin Liska <mliska@suse.cz>
15472 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
15475 2016-05-19 Martin Liska <mliska@suse.cz>
15477 * omp-simd-clone.c (simd_clone_adjust): Release vector.
15479 2016-05-19 Martin Liska <mliska@suse.cz>
15481 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
15482 an auto_vec instead of re-creating it.
15484 2016-05-19 Martin Liska <mliska@suse.cz>
15486 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
15487 auto_vec instead of vec.
15489 2016-05-19 Martin Liska <mliska@suse.cz>
15491 * lto-section-in.c (lto_get_section_data): Call
15492 lto_check_version with additional argument.
15493 * lto-streamer.c (lto_check_version): Add new argument.
15494 * lto-streamer.h (lto_check_version): Likewise.
15496 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15498 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
15499 Don't add cost of inner memory when handling sign-extended loads.
15501 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
15503 PR rtl-optimization/71148
15504 * cse.c (cse_main): Free dominance info.
15505 (rest_of_handle_cse): Don't free dominance info.
15506 (rest_of_handle_cse2): Likewise.
15507 (rest_of_handle_cse_after_global_opts): Likewise.
15509 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15512 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
15513 NULL_TREE early if NEON is not available. Remove now redundant check
15514 in ARM_CHECK_BUILTIN_MODE.
15516 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
15519 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
15520 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
15521 * doc/cpp.texi: Document new macros.
15523 2016-05-19 Bin Cheng <bin.cheng@arm.com>
15525 PR tree-optimization/69848
15526 * tree-vect-loop.c (vectorizable_reduction): Don't factor
15527 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
15529 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15531 * function.c (thread_prologue_and_epilogue_insn): Move the
15532 "goto epilogue_done" one block later.
15534 2016-05-19 Richard Biener <rguenther@suse.de>
15536 PR tree-optimization/70729
15537 * passes.def: Move LIM pass before PRE. Remove no longer
15538 required copyprop and move first DCE out of the loop pipeline.
15540 2016-05-18 David Malcolm <dmalcolm@redhat.com>
15543 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
15544 (OBJS-libcommon-target): ...here.
15545 * opts-common.c: Include spellcheck.h.
15546 (cmdline_handle_error): Build a vec of valid options and use it
15547 to suggest provide hints for misspelled arguments.
15549 2016-05-18 Jakub Jelinek <jakub@redhat.com>
15552 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
15553 lhs if it has TREE_ADDRESSABLE type.
15555 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
15558 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
15559 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
15561 2016-05-18 Martin Jambor <mjambor@suse.cz>
15564 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
15565 input for NOP_EXPR pass-through functions.
15566 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
15567 aggregate global constant VAR_DECLs in constant jump functions.
15569 2016-05-18 Martin Jambor <mjambor@suse.cz>
15572 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
15573 from TREE_READONLY parameters.
15575 2016-05-18 Martin Jambor <mjambor@suse.cz>
15578 * cgraph.h (cgraph_indirect_call_info): New field
15579 guaranteed_unmodified.
15580 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
15581 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
15583 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
15584 pass the parameter value to ipa_find_agg_cst_for_param.
15585 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
15586 guaranteed_unmodified, store AA results there instead of bailing out
15588 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
15589 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
15590 (find_constructor_constant_at_offset): New function.
15591 (ipa_find_agg_cst_from_init): Likewise.
15592 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
15593 static initializers of contants, report back through a new paameter
15594 from_global_constant if that was the case.
15595 (try_make_edge_direct_simple_call): Also pass parameter value to
15596 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
15598 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
15599 (ipa_read_indirect_edge_info): Likewise.
15600 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
15601 (ipa_load_from_parm_agg): Likewise.
15603 2016-05-18 Jiong Wang <jiong.wang@arm.com>
15605 PR rtl-optimization/71150
15606 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
15609 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
15612 * config/rs6000/constraints.md (wE constraint): New constraint
15613 for a vector constant that can be loaded with XXSPLTIB.
15614 (wM constraint): New constraint for a vector constant of a 1's.
15615 (wS constraint): New constraint for a vector constant that can be
15616 loaded with XXSPLTIB and a vector sign extend instruction.
15617 * config/rs6000/predicates.md (xxspltib_constant_split): New
15618 predicates for wE/wS constraints.
15619 (xxspltib_constant_nosplit): Likewise.
15620 (easy_vector_constant): Add support for constants that can be
15621 loaded via XXSPLTIB.
15622 (all_ones_constant): New predicate for vector constant with all
15624 (splat_input_operand): Add support for ISA 3.0 word splat operations.
15625 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
15626 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
15627 instruction and possibly with a sign extension.
15628 (output_vec_const_move): Add support for XXSPLTIB. If we are
15629 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
15630 instead of XXLXOR/XXLORC.
15631 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
15633 (rs6000_legitimize_reload_address): Likewise.
15634 (rs6000_output_move_128bit): Use output_vec_const_move to emit
15636 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
15637 combine VSX_M and VSX_M2 into one iterator.
15638 (VSX_M2): Likewise.
15639 (VSINT_84): New iterators for loading constants with XXSPLTIB.
15640 (VSINT_842): Likewise.
15641 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
15642 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
15643 XXSPLTIB instruction.
15644 (xxspltib_<mode>_nosplit): Likewise.
15645 (xxspltib_<mode>_split): New insn to load up constants with
15646 XXSPLTIB and a sign extend instruction.
15647 (vsx_mov<mode>): Replace single move that handled all vector types
15648 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
15649 moves (when -mvsx-timode is in effect) into the main vector
15650 moves. Eliminate separate moves for <VSr> <VSa>, where the
15651 preferred register class (<VSr>) is listed first, and the
15652 secondary register class (<VSa>) is listed second with a '?' to
15653 discourage use. Prefer loading 0/-1 in any VSX register for ISA
15654 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
15655 that if the register was involved in a slow operation, the
15656 clear/set operation does not wait for the slow operation to
15657 finish. Adjust the length attributes for 32-bit mode. Use
15658 rs6000_output_move_128bit and drop the use of the string
15659 instructions for 32-bit movti when -mvsx-timode is in effect. Use
15660 spacing so that the alternatives and attributes don't generate
15661 long lines, and put things in columns, so that it is easier to
15662 match up the operands and attributes with the insn alternatives.
15663 (vsx_mov<mode>_64bit): Likewise.
15664 (vsx_mov<mode>_32bit): Likewise.
15665 (vsx_movti_64bit): Fold movti into normal vector moves.
15666 (vsx_movti_32bit): Likewise.
15667 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
15668 splat instructions.
15669 (vsx_splat_v4si_internal): Likewise.
15670 (vsx_splat_v4sf_internal): Likewise.
15671 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
15672 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
15673 extend vector elements.
15674 (vsx_sign_extend_hi_<mode>): Likewise.
15675 (vsx_sign_extend_si_v2di): Likewise.
15676 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
15678 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
15679 constraints. Add trailing period to wL documentation.
15681 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
15683 PR middle-end/71020
15684 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
15685 * tree-dfa.c (replace_abnormal_ssa_names): New function.
15686 * tree-call-cdce.c: Include tree-dfa.h.
15687 (can_guard_call_p): New function, extracted from...
15688 (can_use_internal_fn): ...here.
15689 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
15691 (shrink_wrap_one_built_in_call): Likewise.
15692 (use_internal_fn): Likewise.
15693 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
15694 and return void. Call replace_abnormal_ssa_names.
15695 (pass_call_cdce::execute): Check can_guard_call_p during the
15696 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
15697 will always change something.
15699 2016-05-18 Martin Jambor <mjambor@suse.cz>
15702 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
15703 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
15705 2016-05-18 Martin Jambor <mjambor@suse.cz>
15708 * ipa-inline.h (condition): New field size.
15709 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
15710 for comaprison and store it into the new condition.
15711 (evaluate_conditions_for_known_args): Use condition size to check
15712 access sizes for all but CHANGED conditions.
15713 (unmodified_parm_1): New parameter size_p, store access size into it.
15714 (unmodified_parm): Likewise.
15715 (unmodified_parm_or_parm_agg_item): Likewise.
15716 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
15717 (set_cond_stmt_execution_predicate): Extract access sizes and store
15718 them to conditions.
15719 (set_switch_stmt_execution_predicate): Likewise.
15720 (will_be_nonconstant_expr_predicate): Likewise.
15721 (will_be_nonconstant_predicate): Likewise.
15722 (inline_read_section): Stream condition size.
15723 (inline_write_summary): Likewise.
15725 2016-05-18 Richard Biener <rguenther@suse.de>
15727 * tree-ssa-loop-im.c (determine_max_movement): Properly add
15728 condition cost to PHI cost instead of total_cost.
15730 2016-05-18 Martin Liska <mliska@suse.cz>
15733 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
15736 2016-05-18 Richard Biener <rguenther@suse.de>
15738 * lto-streamer.h (LTO_major_version): Bump to 6.
15740 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
15742 * function.c (make_split_prologue_seq, make_prologue_seq,
15743 make_epilogue_seq): New functions, factored out from...
15744 (thread_prologue_and_epilogue_insns): Here.
15746 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
15748 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
15749 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
15750 of before. Add a comment.
15752 2016-05-18 Bin Cheng <bin.cheng@arm.com>
15754 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
15755 expression pointer, not pointer to the pointer.
15757 2016-05-18 Jakub Jelinek <jakub@redhat.com>
15759 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
15760 (avx2_pbroadcast<mode>): Add another alternative with v instead
15761 of x constraints in it, using <pbroadcast_evex_isa> isa.
15762 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
15764 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
15765 constraint x instead of v in second alternative, add avx512bw
15768 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
15769 constraint x instead of v in second alternative, add avx512bw
15772 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
15773 constraint x instead of v in second alternative, add avx512bw
15776 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
15777 avx512bw alternative.
15779 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
15781 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
15782 array to 128 chars.
15783 (define_insn "*andnottf3"): Ditto.
15784 (define_insn "*<code><mode>3"/any_logic): Ditto.
15785 (define_insn "*<code>tf3"/any_logic): Ditto.
15786 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
15787 operand to block AVX-512VL insn variant emit when it is not enabled.
15789 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
15791 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
15792 constraint fot SF mode.
15794 2016-05-18 Petr Murzin <petr.murzin@intel.com>
15795 Kirill Yukhin <kirill.yukhin@intel.com>
15797 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
15799 (define_insn "rsqrt14<mode>"): Ditto.
15800 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
15801 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
15802 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
15803 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
15804 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
15806 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
15807 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
15808 * config/i386/i386.c (ix86_print_operand): Expand check for size
15809 override codes for Intel syntax.
15811 2016-05-18 Richard Biener <rguenther@suse.de>
15813 PR tree-optimization/71168
15814 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
15815 initialization earlier.
15817 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
15819 * config/aarch64/aarch64-simd.md
15820 (aarch64_reduc_plus_internal<mode>): Rename to...
15821 (reduc_plus_scal): ...This, and remove previous implementation.
15823 2016-05-18 Richard Biener <rguenther@suse.de>
15825 * passes.def: Put late dse and cd_dce in canonical order.
15827 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
15829 * ipa-inline-transform.c (preserve_function_body_p): Look for
15830 first non-thunk clone.
15831 (save_function_body): Save into first non-thunk.
15832 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
15834 (lto_output_node): Inline thunks don't need body in every
15836 * lto-streamer-in.c: Do not fixup thunk clones.
15837 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
15839 * tree-inline.c (copy_bb): Be prepared for target node to be new after
15842 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15844 PR middle-end/63586
15845 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
15846 (reassociate_bb): Call transform_add_to_multiply.
15848 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15850 * config/aarch64/aarch64.c (all_extensions): Removed unused
15853 2016-05-17 Nathan Sidwell <nathan@acm.org>
15855 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
15856 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
15858 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
15860 PR tree-optimization/54579
15861 PR middle-end/55299
15862 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
15864 2016-05-17 Marek Polacek <polacek@redhat.com>
15867 * tree-inline.c (expand_call_inline): Call
15868 maybe_remove_unused_call_args.
15870 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
15872 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
15873 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
15874 * doc/md.texi (fmin@var{m}3): Likewise.
15876 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15878 * match.pd (X & C): New transformation.
15880 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15882 * match.pd (~X & Y): New transformation.
15884 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15886 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
15887 information for new SSA_NAME.
15888 (simplify_conversion_using_ranges): Get range through get_range_info
15889 instead of get_value_range.
15891 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15893 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
15894 Remove inline assembly.
15895 (vmvn_s16): Likewise.
15896 (vmvn_s32): Likewise.
15897 (vmvn_u8): Likewise.
15898 (vmvn_u16): Likewise.
15899 (vmvn_u32): Likewise.
15900 (vmvnq_s8): Likewise.
15901 (vmvnq_s16): Likewise.
15902 (vmvnq_s32): Likewise.
15903 (vmvnq_u8): Likewise.
15904 (vmvnq_u16): Likewise.
15905 (vmvnq_u32): Likewise.
15906 (vmvn_p8): Likewise.
15907 (vmvnq_p16): Likewise.
15909 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15911 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
15913 (vmul_n_s16): Likewise.
15914 (vmul_n_s32): Likewise.
15915 (vmul_n_u16): Likewise.
15916 (vmul_n_u32): Likewise.
15917 (vmulq_n_f32): Likewise.
15918 (vmulq_n_f64): Likewise.
15919 (vmulq_n_s16): Likewise.
15920 (vmulq_n_s32): Likewise.
15921 (vmulq_n_u16): Likewise.
15922 (vmulq_n_u32): Likewise.
15924 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15926 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
15927 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
15929 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15931 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
15932 to *aarch64_fma4_elt_from_dup<mode>.
15933 (*aarch64_fnma4_elt_to_128df): Rename to
15934 *aarch64_fnma4_elt_from_dup<mode>.
15935 * config/aarch64/arm_neon.h (vfma_n_f64): New.
15936 (vfms_n_f32): Likewise.
15937 (vfms_n_f64): Likewise.
15938 (vfmsq_n_f32): Likewise.
15939 (vfmsq_n_f64): Likewise.
15941 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
15943 * wide-int.h: Change fixed_wide_int_storage from class to struct.
15945 2016-05-17 Richard Biener <rguenther@suse.de>
15947 PR tree-optimization/71132
15948 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
15949 Only add control dependences for blocks in the loop.
15950 (build_rdg): Adjust.
15951 (generate_code_for_partition): Return whether loop should
15952 be destroyed and delay that.
15953 (distribute_loop): Likewise.
15954 (pass_loop_distribution::execute): Record loops to be destroyed
15955 and perform delayed destroying of loops.
15957 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15960 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
15962 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15964 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
15966 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
15969 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
15970 insertion point for instructions generated by validize_mem.
15972 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15974 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
15977 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15979 * config/aarch64/aarch64.c
15980 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
15981 rather than a macro.
15983 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15985 * doc/invoke.texi (AArch64 Options): Various updates.
15987 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15989 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
15990 into instrumentation thunks.
15991 * cif-code.def (CIF_CHKP): New.
15993 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
15995 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
15997 2016-05-16 Martin Jambor <mjambor@suse.cz>
15999 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
16000 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
16002 2016-05-16 Marek Polacek <polacek@redhat.com>
16004 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
16007 2016-05-16 Martin Jambor <mjambor@suse.cz>
16010 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
16011 the outlined kernel function.
16013 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
16015 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
16016 (ISA_HAS_DLSA): Ditto.
16018 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
16020 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
16022 2016-05-16 Nathan Sidwell <nathan@acm.org>
16024 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
16025 (nvptx_name_replacement): Restore. Add comment.
16026 (write_fn_proto, write_fn_proto_from_insn,
16027 nvptx_output_call_insn): Restore
16028 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
16030 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
16032 * config/aarch64/aarch64.md
16033 (add<mode>3_compareC_cconly_imm): Remove use of %w.
16034 (add<mode>3_compareC_imm): Likewise.
16035 (<optab>si3_uxtw): Split into register and immediate variants.
16036 (andsi3_compare0_uxtw): Likewise.
16037 (and<mode>3_compare0): Likewise.
16038 (and<mode>3nr_compare0): Likewise.
16039 (stack_protect_test_<mode>): Don't use %x for memory operands.
16041 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
16043 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
16045 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
16047 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
16048 Split integer shifts into shift_reg and bfm.
16049 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
16050 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
16051 (ror<mode>3_insn): Likewise.
16052 (<optab>si3_insn_uxtw): Likewise.
16053 (<optab><mode>3_insn): Change to rotate_imm.
16054 (extr<mode>5_insn_alt): Likewise.
16055 (extrsi5_insn_uxtw): Likewise.
16056 (extrsi5_insn_uxtw_alt): Likewise.
16058 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
16060 * doc/tm.texi: Regenerate.
16061 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
16062 (TARGET_INVALID_RETURN_TYPE): Remove.
16063 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
16064 TARGET_INVALID_RETURN_TYPE.
16065 * target.def (invalid_parameter_type): Remove.
16066 (invalid_return_type): Remove.
16068 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
16070 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
16071 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
16073 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
16075 (preserve_function_body_p): No need to preserve function body
16076 * cif-codes.def (CIF_THUNK): Remove.
16077 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
16079 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
16081 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
16083 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
16085 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
16088 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
16090 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
16091 (inline_small_functions): Do not look for function symbol when
16094 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
16096 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
16099 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
16100 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16101 Jiong Wang <jiong.wang@arm.com>
16103 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
16104 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
16105 Define __ARM_FP16_ARGS when appropriate.
16106 * config/arm/arm.c (arm_invalid_parameter_type): Remove
16108 (arm_invalid_return_type): Likewise.
16109 (TARGET_INVALID_PARAMETER_TYPE): Remove.
16110 (TARGET_INVALID_RETURN_TYPE): Remove.
16111 (aapcs_vfp_sub_candidate): Allow HFmode.
16112 (aapcs_vfp_allocate): Add comment. Support HFmode.
16113 (aapcs_vfp_allocate_return_reg): Likewise.
16114 (struct aapcs_cp_arg_layout): Slightly reword comments for
16115 is_return_candidate and allocate_return_reg.
16116 (output_mov_vfp): Update assert.
16117 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
16119 (arm_invalid_parameter_type): Remove.
16120 (amr_invalid_return_type): Remove.
16121 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
16122 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
16123 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
16125 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
16127 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16128 * config/aarch64/arch64-protos.h
16129 (aarch64_legitimize_reload_address): Remove.
16130 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
16133 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
16135 * configure.ac: Add ACX_NONCANONICAL_HOST.
16136 * configure: Regenerate.
16137 * Makefile.in: Set host_noncanonical.
16139 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
16142 * config/i386/i386.md (*movtf_internal): Before register allocation,
16143 do not allow FP constants for CM_MEDIUM memory model, allow only
16144 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
16145 (*movxf_internal): Ditto.
16146 (*movdf_internal): Ditto.
16147 (*movsf_internal): Ditto.
16149 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
16151 PR rtl-optimization/67483
16152 * combine.c (make_compound_operation): Don't call extract_left_shift
16153 with negative shift amounts.
16155 2016-05-13 Jakub Jelinek <jakub@redhat.com>
16158 * fold-const.c (fold_checksum_tree): Allow modification
16159 of TYPE_ALIAS_SET during folding.
16161 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
16162 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
16163 (ix86_split_to_parts): Likewise. Fix up formatting.
16165 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
16167 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
16168 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
16171 2016-05-13 Nathan Sidwell <nathan@acm.org>
16173 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
16174 (nvptx_name_replacement): Delete.
16175 (write_fn_proto, write_fn_proto_from_insn,
16176 nvptx_output_call_insn): Remove nvptx_name_replacement call.
16177 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
16178 * langhooks.c (add_builtin_funcction_common): Call
16179 targetm.mangle_decl_assembler_name.
16181 * config/nvptx/nvptx.c (write_fn_proto): Handle
16182 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
16184 2016-05-13 Martin Liska <mliska@suse.cz>
16186 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
16187 and PRIu64 in printf format.
16189 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16191 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
16194 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16196 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
16197 Change --param max-completely-peeled-times to
16198 --param max-completely-peel-times in dump file printing.
16200 2016-05-13 Richard Biener <rguenther@suse.de>
16202 PR tree-optimization/42587
16203 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
16204 (find_bswap_or_nop_1): Likewise.
16205 (bswap_replace): Likewise.
16207 2016-05-13 Martin Liska <mliska@suse.cz>
16209 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
16210 Initialize a variable with default value.
16212 2016-05-13 Martin Liska <mliska@suse.cz>
16214 * doc/invoke.texi: Enhance explanation of error recovery
16217 2016-05-13 Martin Liska <mliska@suse.cz>
16219 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
16220 (struct cost_pair): Change inv_expr_id (int) to inv_expr
16221 (iv_inv_expr_ent *).
16222 (struct iv_inv_expr_ent): Comment struct fields.
16223 (sort_iv_inv_expr_ent): New function.
16224 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
16225 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
16226 a hash_map between iv_inv_expr_ent and number of usages.
16227 (niter_for_exit): Fix coding style.
16228 (tree_ssa_iv_optimize_init): Use renamed variable.
16229 (determine_base_object): Fix coding style.
16230 (alloc_iv): Likewise.
16231 (find_interesting_uses_outside): Likewise.
16232 (add_candidate_1): Likewise.
16233 (add_standard_iv_candidates): Likewise.
16234 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
16235 (prepare_decl_rtl): Fix coding style.
16236 (get_address_cost): Likewise.
16237 (get_shiftadd_cost): Likewise.
16238 (force_expr_to_var_cost): Likewise.
16239 (compare_aff_trees): Likewise.
16240 (get_expr_id): Restructure the function.
16241 (get_loop_invariant_expr_id): Renamed to
16242 get_loop_invariant_expr.
16243 (get_computation_cost_at): Replace usage of inv_expr_id with
16245 (get_computation_cost): Likewise.
16246 (determine_group_iv_cost_generic): Likewise.
16247 (determine_group_iv_cost_address): Likewise.
16248 (iv_period): Fix coding style.
16249 (iv_elimination_compare_lt): Likewise.
16250 (may_eliminate_iv): Likewise.
16251 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
16253 (determine_group_iv_costs): Dump invariant expressions.
16254 (iv_ca_recount_cost): Use the newly added hash_map.
16255 (iv_ca_set_remove_invariants): Fix coding style.
16256 (iv_ca_set_add_invariants): Fix coding style.
16257 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
16259 (iv_ca_set_cp): Likewise.
16260 (iv_ca_new): Initialize the newly added hash_map and remove
16261 initialization of fields.
16262 (iv_ca_free): Delete the hash_map.
16263 (iv_ca_dump): Dump invariant expressions.
16264 (iv_ca_extend): Fix coding style.
16265 (try_add_cand_for): Likewise.
16266 (create_new_ivs): Dump information about # of avg iterations and
16267 # of used invariant expressions.
16268 (rewrite_use_compare): Fix coding style.
16269 (free_loop_data): Set default value for max_inv_expr_id.
16271 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
16273 * cse.c (rest_of_handle_cse): Use cleanup_cfg
16274 returned value cse_cfg_altered computation.
16275 (rest_of_handle_cse2): Likewise.
16276 (rest_of_handle_cse_after_global_opts): Likewise.
16278 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16281 * config/arm/arm.c (arm32_output_mi_thunk): New.
16282 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
16283 to split Thumb1 vs TARGET_32BIT functionality.
16284 (arm_thumb1_mi_thunk): New.
16286 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16288 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
16291 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16294 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
16296 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
16298 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
16299 (expand_builtin_trap): Emit a regular call.
16300 (set_builtin_user_assembler_name): Remove obsolete cases.
16301 * dse.c (scan_insn): Adjust.
16302 * except.c: Include calls.h.
16303 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
16304 emit a regular call to setjmp.
16305 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
16306 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
16307 (emit_block_move_via_libcall): Delete.
16308 (block_move_fn): Delete.
16309 (init_block_move_fn): Likewise.
16310 (emit_block_move_libcall_fn): Likewise.
16311 (emit_block_op_via_libcall): New function.
16312 (set_storage_via_libcall): Tidy up and use memset builtin.
16313 (block_clear_fn): Delete.
16314 (init_block_clear_fn): Likewise.
16315 (clear_storage_libcall_fn): Likewise.
16316 (expand_assignment): Call emit_block_move_via_libcall.
16317 Do not include gt-expr.h.
16318 * expr.h (emit_block_op_via_libcall): Declare.
16319 (emit_block_copy_via_libcall): New inline function.
16320 (emit_block_move_via_libcall): Likewise.
16321 (emit_block_comp_via_libcall): Likewise.
16322 (block_clear_fn): Delete.
16323 (init_block_move_fn): Likewise.
16324 (init_block_clear_fn): Likewise.
16325 (emit_block_move_via_libcall): Likewise.
16326 (set_storage_via_libcall): Add default parameter value.
16327 * libfuncs.h (enum libfunc_index): Remove obsolete values.
16328 (abort_libfunc): Delete.
16329 (memcpy_libfunc): Likewise.
16330 (memmove_libfunc): Likewise.
16331 (memcmp_libfunc): Likewise.
16332 (memset_libfunc): Likewise.
16333 (setbits_libfunc): Likewise.
16334 (setjmp_libfunc): Likewise.
16335 (longjmp_libfunc): Likewise.
16336 (profile_function_entry_libfunc): Likewise.
16337 (profile_function_exit_libfunc): Likewise.
16338 (gcov_flush_libfunc): Likewise.
16339 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
16340 and DECL_VISIBILITY on the declaration.
16341 (init_optabs): Do not initialize obsolete libfuncs.
16342 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
16343 * tree-core.h (ECF_RET1): Define.
16344 (ECF_TM_PURE): Adjust.
16345 (ECF_TM_BUILTIN): Likewise.
16346 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
16347 (build_common_builtin_nodes): Initialize abort builtin.
16348 Add ECF_RET1 on memcpy, memmove and memset builtins.
16349 Pass final flags for alloca and alloca_with_align builtins.
16350 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
16352 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
16353 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
16354 set_storage_via_libcall and call emit_block_copy_via_libcall.
16356 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
16358 * config/i386/i386.md (*call_got_x32): Change operand 0 to
16359 DImode before it is passed to ix86_output_call_operand.
16360 (*call_value_got_x32): Ditto for operand 1.
16362 2016-05-12 Jiong Wang <jiong.wang@arm.com>
16364 PR rtl-optimization/70904
16365 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
16366 reload for wide mode.
16368 2016-05-12 Marek Polacek <polacek@redhat.com>
16371 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
16372 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
16373 * langhooks.h (incomplete_type_error): Likewise.
16374 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
16375 parameter, pass it down to incomplete_type_error.
16376 * tree.h (size_in_bytes): New inline overload.
16377 (size_in_bytes_loc): Renamed from size_in_bytes.
16379 2016-05-12 Richard Biener <rguenther@suse.de>
16381 PR tree-optimization/71059
16382 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
16383 nary before looking up or entering the expression into the VN
16385 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
16386 Make sure to re-use NARYs without result as inserted by
16389 2016-05-12 Richard Biener <rguenther@suse.de>
16391 PR tree-optimization/71062
16392 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
16394 * tree-ssa-structalias.c (set_uids_in_ptset): Set
16395 vars_contains_restrict if the var is a restrict tag.
16396 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
16397 do not disambiguate pointers against it.
16398 (dump_points_to_solution): Re-structure and adjust for new
16399 vars_contains_restrict flag.
16400 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
16402 2016-05-12 Martin Liska <mliska@suse.cz>
16404 * doc/invoke.texi: Explain connection between
16405 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
16407 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
16409 PR tree-optimization/71006
16410 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
16411 consider COND_EXPR as a mask producer.
16413 2016-05-12 Marek Polacek <polacek@redhat.com>
16416 * opts.c (common_handle_option): Detect missing argument for --help^.
16418 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16421 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
16422 when popping the PC and within an interrupt handler routine.
16423 Add missing tab to output of "ldmfd".
16424 (output_return_instruction): Output LDMFD with SP update rather
16425 than POP when returning from interrupt handler.
16427 2016-05-12 Jakub Jelinek <jakub@redhat.com>
16429 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
16430 TARGET_64BIT && TARGET_AVX512DQ.
16431 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
16432 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
16433 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
16434 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
16435 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
16436 (*vec_extractv4si_zext): Add avx512dq alternative.
16437 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
16438 use v instead of x constraint in other alternatives where possible.
16440 * config/i386/sse.md (sse2_loadld): Use v instead of x
16441 constraint in alternatives 0,1,4.
16443 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
16444 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
16445 v constraints instead of x and <pinsr_evex_isa> isa attribute.
16448 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
16449 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
16450 is not emitted unless TARGET_AVX512BW.
16451 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
16452 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
16453 for the result operand.
16455 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
16456 constraint instead of x in avx alternatives. Use maybe_evex instead
16459 * config/i386/constraints.md (Yv): New constraint.
16460 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
16461 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
16462 * config/i386/i386.md (avx512fvecmode): New mode attr.
16463 (*pushtf): Use v constraint instead of x.
16464 (*movtf_internal): Likewise. For TARGET_AVX512VL and
16465 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
16466 (*absneg<mode>2): Use Yv constraint instead of x constraint.
16467 (*absnegtf2_sse): Likewise.
16468 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
16469 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
16470 avx512f alternatives.
16471 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
16473 2016-05-12 Richard Biener <rguenther@suse.de>
16475 PR tree-optimization/71060
16476 * tree-data-ref.c (initialize_data_dependence_relation): Do not
16477 require exact match of DR_BASE_OBJECT but only matching address and
16480 2016-05-12 Richard Biener <rguenther@suse.de>
16482 PR tree-optimization/70986
16483 * cfganal.c: Include cfgloop.h.
16484 (dfs_find_deadend): Prefer to take edges exiting loops.
16486 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16488 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
16489 compile and run time.
16491 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
16494 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
16496 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
16498 * config/i386/i386.c (legitimize_pic_address): Use
16499 copy_to_suggested_reg instead of gen_movsi.
16501 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
16503 * config/rs6000/predicates.md (quad_memory_operand): Move most of
16504 the code into quad_address_p and call it to share code with
16505 vsx_quad_dform_memory_operand.
16506 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
16508 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
16509 bit instead of being a separate word. Split -mpower9-dform into
16510 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
16511 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
16512 for the register class supporting 128-bit quad word memory offsets.
16513 (mode_supports_vsx_dform_quad): Helper function to return if the
16514 register class uses quad word memory offsets.
16515 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
16516 (rs6000_debug_reg_global): Always print if we are using LRA or not.
16517 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
16518 instructions are enabled, set up the appropriate addr_masks for
16520 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
16521 -mpower9-dform-scalar, instead of -mpower9-dform.
16522 (rs6000_option_override_internal): Split -mpower9-dform into two
16523 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
16524 -mpower9-dform switch sets or clears both. If we are not using
16525 the LRA register allocator, do not enable -mpower9-dform-vector by
16526 default. If we are using LRA, enable -mpower9-dform-vector and
16527 -mvsx-timode if it is appropriate. Issue a warning if either
16528 -mpower9-dform-vector or -mvsx-timode are explicitly used without
16530 (quad_address_offset_p): New helper function to return if the
16531 offset is legal for quad word memory instructions.
16532 (quad_address_p): New function to determin if GPR or vector
16533 register quad word memory addresses are legal.
16534 (mem_operand_gpr): Validate quad word address offsets.
16535 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
16536 d-form (register + offset) instructions.
16537 (offsettable_ok_by_alignment): Likewise.
16538 (rs6000_legitimate_offset_address_p): Likewise.
16539 (legitimate_lo_sum_address_p): Likewise.
16540 (rs6000_legitimize_address): Likewise.
16541 (rs6000_legitimize_reload_address): Add more debug statements for
16543 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
16544 d-form instructions.
16545 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
16546 d-form instructions. Distinguish different cases in debug
16547 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
16548 d-form instructions.
16549 (rs6000_preferred_reload_class): Likewise.
16550 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
16551 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
16552 of the ISA 2.06 indexed memory instructions.
16553 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
16554 use them to save/restore the saved vector registers instead of
16555 using Altivec instructions.
16556 (rs6000_emit_epilogue): Likewise.
16557 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
16558 (rs6000_opt_masks): Split -mpower9-dform into
16559 -mpower9-dform-scalar and -mpower9-dform-vector.
16560 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
16562 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
16563 ISA 3.0 vector indexed memory instructions, and fold the code into
16564 the normal mov<mode> patterns.
16565 (p9_vecstore_<mode>): Likewise.
16566 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
16568 (vsx_movti_64bit): Likewise.
16569 (vsx_movti_32bit): Likewise.
16570 * config/rs6000/constraints.md (wO constraint): New constraint for
16571 ISA 3.0 vector d-form support.
16572 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
16573 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
16574 include -mpower9-dform-vector until we switch over to LRA.
16575 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
16576 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
16577 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
16578 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
16579 for -mpower9-dform and -mlra.
16580 * doc/md.texi (wO constraint): Document wO constraint.
16582 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
16584 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
16585 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
16586 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
16587 Move handling of non-insn arguments inline into the sole user:
16588 (output_trans_func): ...here.
16589 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
16590 in emitted function prototype.
16591 (output_internal_insn_latency_func): Ditto. Simplify.
16592 (output_internal_maximal_insn_latency_func): Ditto. Delete
16593 always-unused argument.
16594 (output_insn_latency_func): Ditto.
16595 (output_maximal_insn_latency_func): Ditto.
16597 2016-05-11 Richard Biener <rguenther@suse.de>
16599 PR tree-optimization/71055
16600 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
16601 sth with precision not equal to access size verify we don't chop
16604 2016-05-11 Richard Biener <rguenther@suse.de>
16607 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
16608 (dwarf2out_finish): Move retry_incomplete_types call ...
16609 (dwarf2out_early_finish): ... here.
16611 2016-05-11 Richard Biener <rguenther@suse.de>
16613 PR middle-end/71002
16614 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
16615 if the langhook insists on it.
16616 * fold-const.c (make_bit_field_ref): Add arg for the original
16617 reference and preserve its alias-set.
16618 (decode_field_reference): Take exp by reference and adjust it
16619 to the original memory reference.
16620 (optimize_bit_field_compare): Adjust callers.
16621 (fold_truth_andor_1): Likewise.
16622 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
16624 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
16626 PR middle-end/70807
16627 * cfgrtl.h (delete_insn_and_edges): Now return bool.
16628 * cfgrtl.c (delete_insn_and_edges): Likewise.
16629 * config/i386/i386.c (convert_scalars_to_vector): Remove
16631 * cse.c (cse_insn): Compute cse_cfg_altered.
16632 (delete_trivially_dead_insns): Likewise.
16633 (cse_cc_succs): Likewise.
16634 (rest_of_handle_cse): Free dominance info if required.
16635 (rest_of_handle_cse2): Likewise.
16636 (rest_of_handle_cse_after_global_opts): Likewise.
16638 2016-05-11 Alan Modra <amodra@gmail.com>
16640 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
16641 abi_v4_pass_in_fpr): New functions.
16642 (rs6000_function_arg_boundary): Exclude complex IBM long double
16643 from 64-bit alignment when ABI_V4.
16644 (rs6000_function_arg, rs6000_function_arg_advance_1,
16645 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
16647 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
16649 PR rtl-optimization/71028
16650 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
16651 jump with just a return in the fallthrough block if the branch
16652 block contains just a return as well.
16654 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
16656 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
16657 * match.pd ((X & Y) ^ Y): ... this.
16658 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
16659 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
16661 2016-05-10 David Malcolm <dmalcolm@redhat.com>
16663 * read-md.c (require_char_ws): New function.
16664 (read_string): Simplify using require_char_ws.
16665 (handle_constants): Likewise.
16666 (handle_enum): Likewise.
16667 (handle_file): Likewise.
16668 * read-md.h (require_char_ws): New declaration.
16669 * read-rtl.c (read_conditions): Simplify using require_char_ws.
16670 (read_mapping): Likewise.
16671 (read_rtx_code): Likewise.
16672 (read_nested_rtx): Likewise.
16674 2016-05-10 James Norris <jnorris@codesourcery.com>
16676 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
16677 if offloading is enabled and -fopenacc or -fopenmp is specified.
16678 (CRTOFFLOADEND): Likewise.
16679 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
16680 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
16682 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
16684 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
16685 gotoff_operand code paths. Use copy_to_suggested_regs and
16686 expand_simple_binop where appropriate. Cleanup.
16688 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
16691 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
16693 (dimode_scalar_chain::vector_const_cost): New.
16694 (dimode_scalar_chain::compute_convert_gain): Handle constants.
16695 (dimode_scalar_chain::convert_op): Likewise.
16696 (dimode_scalar_chain::convert_insn): Likewise.
16698 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
16700 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
16701 unary operation, not a binary one.
16703 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
16705 PR middle-end/70877
16706 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
16707 calls with type casted fndecl.
16709 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
16711 PR tree-optimization/70786
16712 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
16713 * calls.c (initialize_argument_information): Bind bounds
16714 with corresponding args passed by reference.
16716 2016-05-10 Jakub Jelinek <jakub@redhat.com>
16719 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
16720 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
16721 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
16724 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16727 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
16728 code for a zero scale factor.
16729 (vsx_xvcvdpuxds_scale): Likewise.
16731 2016-05-10 David Malcolm <dmalcolm@redhat.com>
16733 * diagnostic-show-locus.c (layout::layout): Call show_ruler
16734 if show_ruler_p was set on the context.
16735 (layout::show_ruler): New method.
16736 * diagnostic.h (struct diagnostic_context): Add field
16739 2016-05-10 Richard Biener <rguenther@suse.de>
16741 PR tree-optimization/71039
16742 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
16743 (chk_uses): New function.
16744 (propagate_with_phi): Verify we can safely replicate the lhs of an
16745 aggregate assignment on all incoming edges.
16747 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
16749 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
16751 (rx_atomic_sequence): New class.
16752 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
16753 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
16755 (rx_atomic_sequence::rx_atomic_sequence,
16756 rx_atomic_sequence::~rx_atomic_sequence): New functions.
16757 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
16758 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
16759 CTRLREG_INTB): New constants.
16760 (FETCHOP): New code iterator.
16761 (fethcop_name, fetchop_name2): New iterator code attributes.
16762 (QIHI): New mode iterator.
16763 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
16764 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
16765 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
16767 2016-05-10 Martin Liska <mliska@suse.cz>
16769 * tree-inline.c (remap_dependence_clique): Do not remap
16770 debugging statements.
16772 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16774 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
16775 ("*fixuns_truncdfdi2_z13")
16776 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
16777 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
16778 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
16780 2016-05-10 Richard Biener <rguenther@suse.de>
16782 PR tree-optimization/70497
16783 PR tree-optimization/28367
16784 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
16786 (visit_reference_op_load): ... here.
16787 (vn_reference_lookup_3): Use it to handle subreg-like accesses
16788 with simplified BIT_FIELD_REFs.
16789 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
16790 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
16793 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
16795 * dwarf2out.c (add_abstract_origin_attribute): Adjust
16796 documentation comment. For BLOCK nodes, add a
16797 DW_AT_abstract_origin attribute that points to the DIE generated
16798 for the origin BLOCK.
16799 (gen_lexical_block_die): Call add_abstract_origin_attribute for
16800 blocks from inlined functions.
16802 2016-05-10 Alan Modra <amodra@gmail.com>
16805 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
16806 regrename modifying insns saving lr before __morestack call.
16807 * config/rs6000/rs6000.md (split_stack_return): Similarly for
16808 insns restoring lr after __morestack call.
16810 2016-05-09 Jakub Jelinek <jakub@redhat.com>
16812 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
16813 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
16815 * config/i386/sse.md (vec_interleave_high<mode>,
16816 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
16817 <avx512>_vpermt2var<mode>3_maskz): Likewise.
16819 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
16821 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
16822 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
16823 parallel reassociation for power8 and forward.
16825 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
16827 * config/i386/i386.md (absneg splitters with general regs): Use
16828 general_reg_operand predicate.
16829 (btsq peephole2): Use x86_64_immediate_operand to check if new
16830 value is suitable for immediate operand. Generate emitted insn
16831 using RTL expressions.
16832 (btcq peephole2): Ditto.
16833 (btrq peephole2): Ditto. Generate correct immediate operand
16836 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
16838 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
16841 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
16843 * tree-affine.c (wide_int_constant_multiple_p): Add missing
16844 pointer dereference.
16846 2016-05-09 Richard Biener <rguenther@suse.de>
16848 PR tree-optimization/70985
16849 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
16850 op0 isn't a gimple register.
16852 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
16854 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
16855 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
16856 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
16857 (i6400_fpu_mult): New cpu units.
16858 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
16859 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
16860 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
16861 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
16862 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
16863 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
16864 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
16865 (i6400_msa_long_float4, i6400_msa_long_float5)
16866 (i6400_msa_long_float8, i6400_msa_fdiv_df)
16867 (i6400_msa_fdiv_sf): New reservations.
16868 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
16869 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
16870 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
16871 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
16872 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
16873 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
16874 (msa_short_cmp, msa_short_float2, msa_short_logic3)
16875 (msa_short_store4, msa_long_load, msa_short_store)
16876 (msa_long_logic, msa_long_float2, msa_long_float4)
16877 (msa_long_float5, msa_long_float8, msa_long_mult)
16878 (msa_long_fdiv, msa_long_div): New reservations.
16880 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
16881 Sameera Deshpande <sameera.deshpande@imgtec.com>
16882 Matthew Fortune <matthew.fortune@imgtec.com>
16883 Graham Stott <graham.stott@imgtec.com>
16884 Chao-ying Fu <chao-ying.fu@imgtec.com>
16886 * config.gcc: Add MSA header file for mips*-*-* target.
16887 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
16888 (Ubv8i, Urv8): New constraints.
16889 * config/mips/mips-ftypes.def: Add function types for MSA
16891 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
16892 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
16893 * config/mips/mips-msa.md: New file.
16894 * config/mips/mips-protos.h
16895 (mips_split_128bit_const_insns): New prototype.
16896 (mips_msa_idiv_insns): Likewise.
16897 (mips_split_128bit_move): Likewise.
16898 (mips_split_128bit_move_p): Likewise.
16899 (mips_split_msa_copy_d): Likewise.
16900 (mips_split_msa_insert_d): Likewise.
16901 (mips_split_msa_fill_d): Likewise.
16902 (mips_expand_msa_branch): Likewise.
16903 (mips_const_vector_same_val_p): Likewise.
16904 (mips_const_vector_same_bytes_p): Likewise.
16905 (mips_const_vector_same_int_p): Likewise.
16906 (mips_const_vector_shuffle_set_p): Likewise.
16907 (mips_const_vector_bitimm_set_p): Likewise.
16908 (mips_const_vector_bitimm_clr_p): Likewise.
16909 (mips_msa_vec_parallel_const_half): Likewise.
16910 (mips_msa_output_division): Likewise.
16911 (mips_ldst_scaled_shift): Likewise.
16912 (mips_expand_vec_cond_expr): Likewise.
16913 * config/mips/mips.c (enum mips_builtin_type): Add
16914 MIPS_BUILTIN_MSA_TEST_BRANCH.
16915 (mips_gen_const_int_vector_shuffle): New prototype.
16916 (mips_const_vector_bitimm_set_p): New function.
16917 (mips_const_vector_bitimm_clr_p): Likewise.
16918 (mips_const_vector_same_val_p): Likewise.
16919 (mips_const_vector_same_bytes_p): Likewise.
16920 (mips_const_vector_same_int_p): Likewise.
16921 (mips_const_vector_shuffle_set_p): Likewise.
16922 (mips_symbol_insns): Forbid loading symbols via immediate for
16924 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
16926 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
16928 (mips_lx_address_p): Add support load indexed address for MSA.
16929 (mips_address_insns): Add calculation of instructions needed for
16930 stores and loads for MSA.
16931 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
16932 CONST_VECTOR for MSA and let it fall through.
16933 (mips_ldst_scaled_shift): New function.
16934 (mips_subword_at_byte): Likewise.
16935 (mips_msa_idiv_insns): Likewise.
16936 (mips_legitimize_move): Validate MSA moves.
16937 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
16938 calculation of costs for MSA division.
16939 (mips_split_move_p): Check if MSA moves need splitting.
16940 (mips_split_move): Split MSA moves if necessary.
16941 (mips_split_128bit_move_p): New function.
16942 (mips_split_128bit_move): Likewise.
16943 (mips_split_msa_copy_d): Likewise.
16944 (mips_split_msa_insert_d): Likewise.
16945 (mips_split_msa_fill_d): Likewise.
16946 (mips_output_move): Handle MSA moves.
16947 (mips_expand_msa_branch): New function.
16948 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
16949 Reinstate 'y' modifier.
16950 (mips_file_start): Add MSA .gnu_attribute.
16951 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
16953 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
16954 (mips_class_max_nregs): Add register size for MSA supported mode.
16955 (mips_cannot_change_mode_class): Allow conversion between MSA
16956 vector modes and TImode.
16957 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
16959 (mips_secondary_reload_class): Force MSA loads/stores via memory.
16960 (mips_preferred_simd_mode): Add preffered modes for MSA.
16961 (mips_vector_mode_supported_p): Add MSA supported modes.
16962 (mips_autovectorize_vector_sizes): New function.
16963 (mips_msa_output_division): Likewise.
16964 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
16965 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
16966 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
16967 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
16968 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
16969 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
16970 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
16971 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
16972 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
16973 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
16974 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
16975 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
16976 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
16977 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
16978 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
16979 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
16980 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
16981 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
16982 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
16983 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
16984 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
16985 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
16986 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
16987 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
16988 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
16989 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
16990 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
16991 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
16992 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
16993 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
16994 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
16995 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
16996 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
16997 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
16998 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
16999 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
17000 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
17001 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
17002 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
17003 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
17004 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
17005 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
17006 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
17007 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
17008 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
17009 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
17010 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
17011 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
17012 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
17013 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
17014 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
17015 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
17016 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
17017 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
17018 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
17019 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
17020 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
17021 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
17022 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
17023 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
17024 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
17025 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
17026 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
17027 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
17028 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
17029 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
17030 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
17031 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
17032 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
17033 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
17034 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
17035 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
17036 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
17037 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
17038 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
17039 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
17040 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
17041 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
17042 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
17043 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
17044 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
17045 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
17046 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
17047 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
17048 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
17049 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
17050 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
17051 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
17052 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
17053 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
17054 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
17055 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
17056 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
17057 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
17058 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
17059 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
17060 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
17061 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
17062 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
17063 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
17064 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
17065 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
17066 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
17067 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
17068 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
17069 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
17070 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
17071 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
17072 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
17073 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
17074 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
17075 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
17076 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
17077 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
17078 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
17079 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
17080 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
17081 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
17082 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
17083 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
17084 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
17085 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
17086 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
17087 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
17088 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
17089 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
17090 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
17091 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
17092 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
17093 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
17094 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
17095 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
17096 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
17097 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
17098 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
17099 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
17100 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
17101 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
17102 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
17103 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
17104 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
17105 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
17106 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
17107 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
17108 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
17109 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
17110 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
17111 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
17112 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
17113 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
17114 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
17116 (mips_get_builtin_decl_index): New array.
17117 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
17118 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
17119 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
17120 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
17121 (mips_init_builtins): Initialize mips_get_builtin_decl_index
17123 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
17125 (mips_expand_builtin_insn): Prepare operands for
17126 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
17127 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
17128 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
17129 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
17130 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
17131 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
17132 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
17133 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
17134 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
17135 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
17136 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
17137 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
17138 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
17139 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
17140 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
17141 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
17142 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
17143 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
17144 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
17145 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
17146 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
17147 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
17148 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
17149 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
17150 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
17151 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
17152 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
17153 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
17154 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
17155 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
17156 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
17157 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
17158 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
17159 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
17160 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
17161 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
17162 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
17163 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
17164 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
17165 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
17166 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
17167 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
17168 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
17169 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
17170 These are set implicitly and an error is reported if overridden.
17171 (mips_expand_builtin_msa_test_branch): New function.
17172 (mips_expand_msa_shuffle): Likewise.
17173 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
17174 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
17175 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
17176 (mips_expand_vec_unpack): Add support for MSA.
17177 (mips_expand_vector_init): Likewise.
17178 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
17179 instead of const0_rtx.
17180 (mips_msa_vec_parallel_const_half): New function.
17181 (mips_gen_const_int_vector): Likewise.
17182 (mips_gen_const_int_vector_shuffle): Likewise.
17183 (mips_expand_msa_cmp): Likewise.
17184 (mips_expand_vec_cond_expr): Likewise.
17185 * config/mips/mips.h
17186 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
17187 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
17189 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
17190 (ISA_HAS_MSA): New macro.
17191 (UNITS_PER_MSA_REG): Likewise.
17192 (BITS_PER_MSA_REG): Likewise.
17193 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
17194 (MSA_REG_FIRST): New macro.
17195 (MSA_REG_LAST): Likewise.
17196 (MSA_REG_NUM): Likewise.
17197 (MSA_REG_P): Likewise.
17198 (MSA_REG_RTX_P): Likewise.
17199 (MSA_SUPPORTED_MODE_P): Likewise.
17200 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
17201 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
17202 * config/mips/mips.md: Include mips-msa.md.
17203 (alu_type): Add simd_add.
17204 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
17205 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
17206 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
17207 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
17208 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
17209 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
17210 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
17211 simd_move, simd_load, simd_store. Choose "multi" for moves
17213 (qword_mode): New attribute.
17214 (insn_count): Add instruction count for quad moves.
17215 Increase the count for MIPS SIMD division.
17216 (UNITMODE): Add UNITMODEs for vector types.
17217 (addsub): New code iterator.
17218 * config/mips/mips.opt (mmsa): New option.
17219 * config/mips/msa.h: New file.
17220 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
17222 * config/mips/mti-linux.h: Likewise.
17223 * config/mips/predicates.md
17224 (const_msa_branch_operand): New constraint.
17225 (const_uimm3_operand): Likewise.
17226 (const_uimm4_operand): Likewise.
17227 (const_uimm5_operand): Likewise.
17228 (const_uimm8_operand): Likewise.
17229 (const_imm5_operand): Likewise.
17230 (aq10b_operand): Likewise.
17231 (aq10h_operand): Likewise.
17232 (aq10w_operand): Likewise.
17233 (aq10d_operand): Likewise.
17234 (const_m1_operand): Likewise.
17235 (reg_or_m1_operand): Likewise.
17236 (const_exp_2_operand): Likewise.
17237 (const_exp_4_operand): Likewise.
17238 (const_exp_8_operand): Likewise.
17239 (const_exp_16_operand): Likewise.
17240 (const_vector_same_val_operand): Likewise.
17241 (const_vector_same_simm5_operand): Likewise.
17242 (const_vector_same_uimm5_operand): Likewise.
17243 (const_vector_same_uimm6_operand): Likewise.
17244 (const_vector_same_uimm8_operand): Likewise.
17245 (par_const_vector_shf_set_operand): Likewise.
17246 (reg_or_vector_same_val_operand): Likewise.
17247 (reg_or_vector_same_simm5_operand): Likewise.
17248 (reg_or_vector_same_uimm6_operand): Likewise.
17249 * doc/extend.texi (MIPS SIMD Architecture Functions): New
17251 * doc/invoke.texi (-mmsa): Document new option.
17253 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17255 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
17256 * configure: Regenerate.
17257 * config.in: Regenerate.
17258 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
17259 on -fvtable-verify.
17260 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
17261 (ENDFILE_VTV_SPEC): Define.
17263 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
17265 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
17266 registers in all interrupt handlers if necessary.
17267 (rl78_option_override): Add warning.
17268 (MUST_SAVE_MDUC_REGISTERS): New macro.
17269 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
17270 * config/rl78/rl78.c (check_mduc_usage): New function.
17271 (mduc_regs): New structure to hold MDUC register data.
17272 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
17273 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
17274 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
17275 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
17276 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
17277 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
17279 2016-05-09 Bin Cheng <bin.cheng@arm.com>
17281 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
17282 (tree-ssa-loop-niter.h): Ditto.
17283 (idx_within_array_bound, ref_within_array_bound): New functions.
17284 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
17285 Factor out check on writable base object to ...
17286 (base_object_writable): ... here.
17288 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17290 * config/arm/arm.md (probe_stack): Add modes to set source
17293 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
17295 * regrename.c (base_reg_class_for_rename): New static function.
17296 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
17298 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
17300 * cgraph.c (thunk_adjust): Export.
17301 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
17302 * cgraphunit.c (thunk_adjust): Export.
17303 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
17305 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
17307 * tree-inline.c (expand_call_inline): Expand thunks inline.
17309 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
17312 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
17313 (*sse2_vd_cvtss2sd): Ditto.
17314 * config/i386/i386.md
17315 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
17316 Generate *sse2_vd_cvtsd2ss pattern.
17317 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
17318 Generate *sse2_vd_cvtss2sd pattern.
17320 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
17322 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
17323 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
17326 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
17328 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
17329 * config/sh/sh.c: Define and declare variables on first use throughout
17331 (current_function_interrupt): Change to bool type.
17332 (frame_insn): Rename to emit_frame_insn and update users.
17333 (push_regs): Use bool for 'interrupt_handler' argument.
17334 (save_schedule_s): Remove.
17335 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
17336 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
17337 targetm.asm_out.unaligned_op.di.
17338 (gen_far_branch): Remove redundant forward declaration.
17339 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
17340 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
17341 (sh_set_return_address, sh_function_ok_for_sibcall,
17342 scavenge_reg): Update comments.
17343 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
17344 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
17345 (sh_attr_renesas_p): Remove unnecessary parentheses.
17346 (branch_dest): Simplify.
17347 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
17348 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
17349 (CUMULATIVE_ARGS): Change macro to typedef.
17350 (current_function_interrupt): Change to bool type.
17351 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
17352 Surround with __cplusplus ifdef.
17353 (sh_compare_op0, sh_compare_op1): Remove.
17354 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
17356 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
17358 * config/arm/arm.md: (arch): Add neon.
17359 (arch_enabled): Return yes for arch neon when TARGET_NEON.
17360 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
17361 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
17362 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
17363 attributes for alt renumbering. Mark alt 3 as non-predicable.
17364 (thumb2_movdf_vfp): Likewise.
17366 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
17368 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
17369 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
17370 (*andqi_1): Add preferred_for_speed attribute to disparage
17371 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
17372 (*<code>qi_1): Ditto.
17373 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
17374 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
17375 (*ashlqi3_1): Ditto.
17376 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
17377 Add preferred_for_size attribute to disparage alternative 0 and
17378 preferred_for_speed attribute to disparage alternative 1 for
17379 TARGET_PARTIAL_REG_STALL targets.
17381 2016-05-07 Tom de Vries <tom@codesourcery.com>
17383 PR tree-optimization/70956
17384 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
17387 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17389 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
17390 * config/sh/sh.c (sh_cbranch_distance): Implement it.
17391 * config/sh/sh.md (branch_zero): Remove define_attr.
17392 (define_delay): Disable delay slot if branch distance is one insn.
17394 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
17396 * config/i386/i386.md (LEAMODE): New mode attribute.
17397 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
17398 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
17399 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
17400 operand 2 predicate.
17401 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
17402 (*lea<mode>_general_3): Ditto.
17403 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
17405 2016-05-06 Jakub Jelinek <jakub@redhat.com>
17407 * genmddump.c (main): Convert argv from char ** to const char **.
17409 2016-05-06 David Malcolm <dmalcolm@redhat.com>
17411 * coretypes.h (OVERRIDE): New macro.
17412 (FINAL): New macro.
17414 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
17416 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
17417 allow coalescing if the types are compatible.
17419 2016-05-06 David Malcolm <dmalcolm@redhat.com>
17421 * pass_manager.h (pass_manager::register_pass_name): New method.
17422 (pass_manager::get_pass_by_name): New method.
17423 (pass_manager::create_pass_tab): New method.
17424 (pass_manager::m_name_to_pass_map): New field.
17425 * passes.c (name_to_pass_map): Delete global in favor of field
17426 "m_name_to_pass_map" of pass_manager.
17427 (register_pass_name): Rename from a function to...
17428 (pass_manager::register_pass_name): ...this method, updating
17429 for renaming of global "name_to_pass_map" to field
17430 "m_name_to_pass_map".
17431 (create_pass_tab): Rename from a function to...
17432 (pass_manager::create_pass_tab): ...this method, updating
17433 for renaming of global "name_to_pass_map" to field.
17434 (get_pass_by_name): Rename from a function to...
17435 (pass_manager::get_pass_by_name): ...this method.
17436 (enable_disable_pass): Convert use of get_pass_by_name to
17437 a method call, locating the pass_manager singleton.
17439 2016-05-06 David Malcolm <dmalcolm@redhat.com>
17441 * genattr-common.c (main): Convert argv from char ** to const char **.
17442 * genattr.c (main): Likewise.
17443 * genattrtab.c (main): Likewise.
17444 * genautomata.c (initiate_automaton_gen): Likewise.
17446 * gencodes.c (main): Likewise.
17447 * genconditions.c (main): Likewise.
17448 * genconfig.c (main): Likewise.
17449 * genconstants.c (main): Likewise.
17450 * genemit.c (main): Likewise.
17451 * genenums.c (main): Likewise.
17452 * genextract.c (main): Likewise.
17453 * genflags.c (main): Likewise.
17454 * genmddeps.c (main): Likewise.
17455 * genopinit.c (main): Likewise.
17456 * genoutput.c (main): Likewise.
17457 * genpeep.c (main): Likewise.
17458 * genpreds.c (main): Likewise.
17459 * genrecog.c (main): Likewise.
17460 * gensupport.c (init_rtx_reader_args_cb): Likewise.
17461 (init_rtx_reader_args): Likewise.
17462 * gensupport.h (init_rtx_reader_args_cb): Likewise.
17463 (init_rtx_reader_args): Likewise.
17464 * gentarget-def.c (main): Likewise.
17465 * read-md.c (read_md_files): Likewise.
17466 * read-md.h (read_md_files): Likewise.
17468 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
17470 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
17471 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
17472 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
17473 Remove unused predicate.
17474 (register_and_not_fp_reg_operand): Ditto.
17476 2016-05-06 Martin Liska <mliska@suse.cz>
17478 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
17479 instead of vec as the vector is local to the function.
17481 2016-05-06 Jakub Jelinek <jakub@redhat.com>
17483 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
17484 avx512bw alternative.
17486 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
17487 before the ashr<mode>3 pattern.
17489 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
17490 v instead of x in vex or maybe_vex alternatives, use
17491 maybe_evex instead of vex in prefix.
17493 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
17494 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
17495 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
17496 in vex or maybe_vex alternatives, use maybe_evex instead of vex
17499 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
17500 v instead of x in vex or maybe_vex alternatives, use
17501 maybe_evex instead of vex in prefix.
17503 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
17504 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
17505 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
17506 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
17507 alternatives, use maybe_evex instead of vex in prefix.
17509 * config/i386/sse.md (vec_interleave_lowv4sf,
17510 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
17511 v instead of x in vex or maybe_vex alternatives, use
17512 maybe_evex instead of vex in prefix.
17514 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
17515 v instead of x in vex or maybe_vex alternatives, use
17516 maybe_evex instead of vex in prefix.
17518 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
17519 v constraint instead of x.
17521 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
17523 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
17524 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
17527 2016-05-06 Richard Biener <rguenther@suse.de>
17529 PR tree-optimization/70948
17530 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17531 Properly clobber all fields of va_list for __builtin_va_start.
17533 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
17536 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
17537 loop latch destination.
17539 2016-05-06 Martin Liska <mliska@suse.cz>
17541 * tree-ssa-uninit.c: Apply manual changes
17542 to the GNU coding style.
17543 (prune_uninit_phi_opnds): Rename from
17544 prune_uninit_phi_opnds_in_unrealizable_paths.
17546 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
17548 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
17549 mspace): Remove deprecated options.
17550 * doc/invoke.texi (SH options): Remove -mspace.
17552 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
17554 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
17556 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
17558 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
17559 corresponding combine split pattern.
17561 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
17564 * config/sh/predicates.md (long_displacement_mem_operand): New.
17565 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
17566 Add movi20, movi20s alternatives. Adjust length attribute for
17568 (movsi_ie): Allow for any FPU. Adjust length attribute for
17570 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
17571 attribute for alternatives.
17572 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
17573 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
17574 length attribute for alternatives.
17576 2016-05-06 Richard Biener <rguenther@suse.de>
17578 PR tree-optimization/70960
17579 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
17581 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
17584 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
17585 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
17587 2016-05-06 Marek Polacek <polacek@redhat.com>
17590 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
17592 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
17595 * config/sh/sh.md (*rotcr): Add another variant.
17597 2016-05-06 Richard Biener <rguenther@suse.de>
17599 PR middle-end/70931
17600 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
17602 2016-05-06 Richard Biener <rguenther@suse.de>
17604 PR middle-end/70941
17605 * fold-const.c (split_tree): Always convert to the original type
17608 2016-05-06 Richard Biener <rguenther@suse.de>
17610 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
17611 (fwprop_addr): Likewise.
17613 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
17616 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
17618 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
17619 * config/i386/i386.md (push mem splitter): Use find_constant_src in
17620 the splitter condition.
17621 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
17622 the splitter condition.
17623 (FP float_extend load splitter): Ditto.
17625 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
17627 * config/i386/i386.md (peehole2 patterns): Change true_regnum
17628 to REGNO in all peephole2 patterns.
17629 (post-reload splitters): Change true_regnum to REGNO in
17630 post-reload splitters.
17631 (zero_extend splitters): Use general_reg_operand and
17632 nonimmediate_gr_operand predicates.
17634 2016-05-05 Jakub Jelinek <jakub@redhat.com>
17636 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
17637 v constraint instead of x.
17639 2016-05-05 Alan Modra <amodra@gmail.com>
17642 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
17643 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
17644 TARGET_NO_FP_IN_TOC for -mrelocatable.
17645 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
17646 TARGET_RELOCATABLE test.
17647 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
17648 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
17649 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
17650 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
17651 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
17652 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
17653 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
17654 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
17655 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
17656 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
17658 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
17659 (rs6000_stack_info): Likewise.
17660 (rs6000_elf_asm_out_constructor): Likewise.
17661 (rs6000_elf_asm_out_destructor): Likewise.
17662 (rs6000_elf_declare_function_name): Likewise.
17663 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
17664 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
17667 2016-05-05 Alan Modra <amodra@gmail.com>
17669 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
17671 2016-05-05 Alan Modra <amodra@gmail.com>
17673 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
17674 out-of-line gpr restore for one or two regs if that would add
17677 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
17680 * config/i386/i386.md
17681 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
17682 Change to post-epilogue_completed late splitter. Use sse_reg_operand
17683 as operand 0 predicate.
17684 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
17686 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
17687 Ditto. Emit the pattern using RTX.
17689 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
17690 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
17691 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
17692 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
17694 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
17695 sse_reg_operand as operand 0 predicate.
17697 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
17698 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
17699 instead of gen_rtx_REG.
17700 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
17703 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
17705 * function.c (emit_use_return_register_into_block): Delete.
17706 (gen_return_pattern): Delete.
17707 (emit_return_into_block): Delete.
17708 (active_insn_between): Delete.
17709 (convert_jumps_to_returns): Delete.
17710 (emit_return_for_exit): Delete.
17711 (thread_prologue_and_epilogue_insns): Delete all code dealing with
17712 simple_return for shrink-wrapped blocks.
17713 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
17714 end of blocks that need one.
17715 (get_unconverted_simple_return): Delete.
17716 (convert_to_simple_return): Delete.
17717 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
17718 (convert_to_simple_return): Ditto.
17720 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
17722 * cfgcleanup.c (bb_is_just_return): New function.
17723 (try_optimize_cfg): Simplify jumps to return, branches to return,
17724 and branches around return.
17726 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
17728 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
17729 branch to a return.
17731 2016-05-04 Jakub Jelinek <jakub@redhat.com>
17735 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
17736 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
17737 assert flags & OEP_HASH_CHECK, instead of asserting it
17738 never happens. Handle TARGET_EXPR.
17739 * fold-const.c (operand_equal_p): For hash verification,
17740 or in OEP_HASH_CHECK into flags.
17742 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
17744 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
17746 (compute_samebase_partition_bases): Fix typo.
17748 2016-05-04 Jakub Jelinek <jakub@redhat.com>
17750 * config/i386/sse.md (vec_interleave_highv8sf,
17751 vec_interleave_lowv8sf, vec_interleave_highv4df,
17752 vec_interleave_lowv4df): Remove constraints from expanders.
17754 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
17756 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
17758 * tree-inline.c (expand_call_inline): Fix path dealing with
17759 making lhs of call statement undefined.
17761 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
17763 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17764 Check availability on NODE, too.
17765 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
17766 (cgraph_node::call_for_symbol_and_aliases): Likewise.
17767 (varpool_node::call_for_symbol_and_aliase): Likewise.
17768 * ipa-pure-const.c (add_new_function): Analyze all bodies.
17769 (propagate_pure_const): Propagate across interposable functions, too.
17770 (skip_function_for_local_pure_const): Do not skip interposable bodies
17772 (pass_local_pure_const::execute): Update.
17774 2016-05-04 Marek Polacek <polacek@redhat.com>
17776 * doc/invoke.texi: Document -Wdangling-else.
17778 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
17780 * config.gcc: Error out when conflicting multilib is detected. Do not
17781 loop over multilibs since no combination is legal.
17783 2016-05-04 Alan Modra <amodra@gmail.com>
17785 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
17786 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
17787 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
17790 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
17792 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
17793 Clean up p5600 comments.
17795 2016-05-04 Richard Biener <rguenther@suse.de>
17797 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
17798 constructor simplifications.
17799 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
17801 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
17803 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
17804 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
17805 result.set_rtx is null instead of aborting.
17806 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
17808 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
17809 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
17810 *mov<mode>_store_postinc): New patterns.
17812 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
17814 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
17815 as commutative. Check both conversions are NOP.
17816 ((A & B) OP (C & B)): Remove.
17818 2016-05-04 Alan Modra <amodra@gmail.com>
17820 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
17822 2016-05-04 Alan Modra <amodra@gmail.com>
17825 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
17826 when cr2,3,4 are all fixed regs.
17828 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
17830 PR rtl-optimization/57193
17831 * opts.c (default_options_table): Revert OPT_frename_registers change.
17832 * doc/invoke.texi (-frename-registers, -O2): Likewise.
17834 2016-05-03 Martin Sebor <msebor@redhat.com>
17837 * builtins.c (fold_builtin_FILE): New function.
17838 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
17839 (fold_builtin_0): Call them.
17840 * gimplify.c (gimplify_call_expr): Remove the handling of
17841 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
17844 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
17845 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
17849 * doc/extend.texi (Function Names as Strings): Update __func__,
17850 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
17853 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17854 Richard Biener <rguenther@suse.de>
17856 PR tree-optimization/70916
17857 * tree-if-conv.c: Include cfganal.h.
17858 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
17859 and remove_fake_exit_edges around the optimization pass.
17861 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
17863 * cgraph.c (symbol_table::create_edge): Set inline_failed.
17864 (cgraph_edge::make_direct): Likewise.
17865 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
17866 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
17867 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
17868 (CIF_THUNK): New code.
17869 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
17870 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
17871 (compute_inline_parameters): Set inline_failed for thunks.
17872 (inline_analyze_function): Cleanup.
17873 * ipa-inline.c (can_inline_edge_p): Do not deal with
17874 call_stmt_cannot_inline_p.
17875 (can_early_inline_edge_p): Likewise.
17876 (early_inliner): Initialize inline_failed.
17877 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
17879 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
17881 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
17882 from nonimm_ssenomem_operand.
17883 (nonimm_ssenomem_operand): New predicate.
17884 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
17885 as operand 0 predicate.
17886 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
17887 Disable unsupported alternatives using "enabled" attribute.
17888 Use register_ssemem_operand as operand 0 predicate.
17889 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
17891 2016-05-03 Marek Polacek <polacek@redhat.com>
17894 * input.c (expansion_point_location): New function.
17895 * input.h (expansion_point_location): Declare.
17897 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
17899 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
17900 occurence with frame_offset_ ones.
17902 2016-05-03 Alan Modra <amodra@gmail.com>
17904 PR rtl-optimization/70890
17905 * ira.c (combine_and_move_insns): When moving def_insn, remove
17906 equivs on use_insn.
17908 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
17910 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
17911 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
17912 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
17913 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
17915 2016-05-03 Alan Modra <amodra@gmail.com>
17917 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
17918 for SAVE_MULTIPLE/STORE_MULTIPLE.
17920 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17922 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
17923 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
17925 2016-05-03 Richard Biener <rguenther@suse.de>
17927 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
17929 (gimplify_arg): Likewise.
17930 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
17931 re-writing the result to a decl if required.
17932 (internal_get_tmp_var): Add allow_ssa parameter
17933 and override into_ssa with it.
17934 (get_formal_tmp_var): Adjust.
17935 (get_initialized_tmp_var): Add allow_ssa parameter.
17936 (gimplify_arg): Add allow_ssa parameter and avoid generating
17937 SSA names for the result false.
17938 (gimplify_call_expr): If the call may return twice do not
17939 gimplify parameters into SSA.
17940 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
17941 (gimplify_modify_expr): Adjust assert. For noreturn calls
17942 with a SSA name LHS adjust its def.
17943 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
17944 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
17945 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
17946 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
17947 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
17948 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
17949 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
17950 (optimize_target_teams): Do not allow SSA names for clause operands.
17951 (gimplify_expr): Likewise for where we mark the result addressable.
17952 * passes.def (pass_init_datastructures): Remove.
17953 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
17954 (rewrite_stmt): Likewise.
17955 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
17956 (replace_locals_op): Replace SSA names.
17957 (copy_gimple_seq_and_replace_locals): Init src_cfun.
17958 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
17959 * cgraph.c (release_function_body): Free CFG annotations only
17960 when we have a CFG. Simplify.
17961 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
17962 force_gimple_operand instead of get_initialized_tmp_var.
17963 * tree-pass.h (make_pass_init_datastructures): Remove.
17964 * tree-ssa.c (execute_init_datastructures): Remove.
17965 (pass_data_init_datastructures): Likewise.
17966 (class pass_init_datastructures): Likewise.
17967 (make_pass_init_datastructures): Likewise.
17968 * omp-low.c (create_omp_child_function): Init SSA data structures.
17969 (grid_expand_target_grid_body): Likewise.
17970 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
17971 name before adding it to names_to_release.
17972 (remove_bb): Always release SSA defs.
17973 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
17974 before dereferencing it.
17975 * cgraphunit.c (init_lowered_empty_function): Always
17976 int SSA data structures.
17977 * tree-ssanames.c (release_defs): Remove assert that we are in
17979 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
17981 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17982 Uros Bizjak <ubizjak@gmail.com>
17984 PR rtl-optimization/70467
17985 * config/i386/predicates.md (x86_64_hilo_int_operand,
17986 x86_64_hilo_general_operand): New predicates.
17987 * config/i386/constraints.md (Wd): New constraint.
17988 * config/i386/i386.md (mode attr di): Use Wd instead of e.
17989 (general_hilo_operand): New mode attr.
17990 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
17991 instead of <general_operand>.
17992 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
17993 x86_64_hilo_general_operand instead of <general_operand>.
17995 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17997 PR tree-optimization/70916
17998 * tree-if-conv.c (constant_or_ssa_name): Removed.
17999 (fold_build_cond_expr): Use is_gimple_val instead of
18000 constant_or_ssa_name.
18002 PR tree-optimization/70916
18003 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
18004 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
18007 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
18008 (optimize_atomic_bit_test_and): New function.
18009 (pass_fold_builtins::execute): Use it.
18010 * optabs.def (atomic_bit_test_and_set_optab,
18011 atomic_bit_test_and_complement_optab,
18012 atomic_bit_test_and_reset_optab): New optabs.
18013 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
18014 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
18015 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
18016 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
18017 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
18018 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
18019 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
18020 * doc/md.texi (atomic_bit_test_and_set@var{mode},
18021 atomic_bit_test_and_complement@var{mode},
18022 atomic_bit_test_and_reset@var{mode}): Document.
18023 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
18024 atomic_bit_test_and_complement<mode>,
18025 atomic_bit_test_and_reset<mode>): New expanders.
18026 (atomic_bit_test_and_set<mode>_1,
18027 atomic_bit_test_and_complement<mode>_1,
18028 atomic_bit_test_and_reset<mode>_1): New insns.
18030 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
18032 PR rtl-optimization/70687
18033 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
18034 instead of unsigned HOST_WIDE_INT.
18036 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
18038 PR rtl-optimization/44281
18039 * hard-reg-set.h (struct target_hard_regs): New field
18040 x_fixed_nonglobal_reg_set.
18041 (fixed_nonglobal_reg_set): New macro.
18042 * reginfo.c (init_reg_sets_1): Initialize it.
18043 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
18045 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
18047 2016-05-03 Bin Cheng <bin.cheng@arm.com>
18049 PR tree-optimization/56541
18050 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
18051 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
18052 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
18053 (any_complicated_phi): new static variable.
18054 (aggressive_if_conv): delete.
18055 (if_convertible_phi_p): support phis with more than two arguments.
18056 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
18057 critical pred edges.
18058 (ifcvt_split_critical_edges): support phis with more than two
18059 arguments by checking new parameter. only split critical edges
18061 (tree_if_conversion): handle simd pragma marked loop using new
18062 local variable aggressive_if_conv. check any_complicated_phi.
18064 2016-05-03 Bin Cheng <bin.cheng@arm.com>
18066 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
18069 2016-05-03 Bin Cheng <bin.cheng@arm.com>
18071 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
18074 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18076 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
18077 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
18078 define_insn_and_split.
18079 (mulsi3_i): New define_insn_and_split.
18080 (mulsi3_call): Convert to define_insn.
18081 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
18082 Remove constraints.
18084 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18086 * machmode.h (mode_complex): Add support to give the complex mode
18088 (GET_MODE_COMPLEX_MODE): Likewise.
18089 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
18090 stored by build_complex_type and gfc_build_complex_type instead of
18091 trying to figure out the appropriate mode based on the size. Raise
18092 an assertion error, if the type was not set.
18093 * genmodes.c (struct mode_data): Add field for the complex type of
18095 (blank_mode): Likewise.
18096 (make_complex_modes): Remember the complex mode created in the
18098 (emit_mode_complex): Write out the mode_complex array to map a
18099 type mode to the complex version.
18100 (emit_insn_modes_c): Likewise.
18101 * tree.c (build_complex_type): Set the complex type to use before
18102 calling layout_type.
18103 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
18104 support for __float128 complex datatypes.
18105 (rs6000_hard_regno_mode_ok): Likewise.
18106 (rs6000_setup_reg_addr_masks): Likewise.
18107 (rs6000_complex_function_value): Likewise.
18108 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
18109 __float128 and __ibm128 complex.
18110 (FLOAT128_IBM_P): Likewise.
18111 (ALTIVEC_ARG_MAX_RETURN): Likewise.
18112 * doc/extend.texi (Additional Floating Types): Document that
18113 -mfloat128 must be used to enable __float128. Document complex
18114 __float128 and __ibm128 support.
18116 2016-05-02 Jakub Jelinek <jakub@redhat.com>
18119 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
18120 char/short arguments promoted to int because of promote_prototypes.
18122 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
18124 * config/i386/predicates.md (register_ssemem_operand): New predicate.
18125 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
18126 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
18127 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
18128 alternatives using "enabled" attribute. Use register_ssemem_operand
18129 as operand 1 predicate.
18130 (*cmpi<unord>xf_i387): Split XFmode pattern from
18131 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
18132 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
18133 *absneg<mode>2_i387. Disable unsupported alternatives using
18134 "enabled" attribute.
18135 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
18137 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
18139 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
18141 (oacc_loop_process): Check mask for loop termination.
18143 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
18145 * cif-code.def (CIF_THUNK): Add.
18146 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
18149 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
18151 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
18152 (dump_inline_summary): Dump it.
18153 (fp_expression_p): New predicate.
18154 (estimate_function_body_sizes): Use it.
18155 (inline_merge_summary): Merge fp_expressions.
18156 (inline_read_section): Read fp_expressions.
18157 (inline_write_summary): Write fp_expressions.
18158 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
18159 codegen boundary if either caller or callee is !fp_expressions.
18160 * ipa-inline.h (inline_summary): Add fp_expressions.
18161 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
18162 to fp_expressions be sure the fp generation flags are updated.
18164 2016-05-02 Jakub Jelinek <jakub@redhat.com>
18166 PR rtl-optimization/70467
18167 * cse.c (cse_insn): Handle no-op MEM moves after folding.
18169 PR rtl-optimization/70467
18170 * ipa-pure-const.c (check_call): Handle internal calls even in
18171 ipa mode like in local mode.
18173 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18175 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
18177 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
18179 * match.pd (X u< X, X u> X): New transformations.
18181 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
18183 * flag-types.h (enum warn_strict_overflow_code): Move ...
18184 * coretypes.h: ... here.
18185 * fold-const.h (fold_overflow_warning): Declare.
18186 * fold-const.c (fold_overflow_warning): Make non-static.
18187 (fold_comparison): Move the transformation of X +- C1 CMP C2
18188 into X CMP C2 -+ C1 ...
18189 * match.pd: ... here.
18190 * gimple-fold.c (fold_stmt_1): Protect with
18191 fold_defer_overflow_warnings.
18193 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
18195 * omp-low.c (struct oacc_loop): Add 'inner' field.
18196 (new_oacc_loop_raw): Initialize it to zero.
18197 (oacc_loop_fixed_partitions): Initialize it.
18198 (oacc_loop_auto_partitions): Partition outermost loop to outermost
18199 available partitioning.
18201 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
18203 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
18205 (umulsidi3): Likewise.
18206 (indirect_jump): Fix jump instruction assembly patterns.
18208 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
18211 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
18212 (nvptx_function_value): Assert non-NULL cfun.
18214 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
18216 PR rtl-optimization/70886
18217 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
18219 * cselib.h (rtx_equal_for_cselib_1): Declare.
18220 (rtx_equal_for_cselib_p: New inline function.
18221 * cselib.c (rtx_equal_for_cselib_p): Delete.
18222 (rtx_equal_for_cselib_1): Make public.
18224 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
18226 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
18227 (register_mixssei387nonimm_operand): Remove predicate.
18228 * config/i386/i386.md (*fop_<mode>_comm): Merge from
18229 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
18230 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
18231 for TARGET_MIX_SSE_I387 alternatives.
18232 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
18233 Disable unsupported alternatives using "enabled" attribute. Use
18234 nonimm_ssenomem_operand as operand 1 predicate. Also check
18235 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
18237 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
18239 * tree.c (cst_and_fits_in_hwi): Simplify.
18241 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
18243 * tree.h (wi::to_wide): New function.
18244 * expr.c (expand_expr_real_1): Use wi::to_wide.
18245 * fold-const.c (int_const_binop_1): Likewise.
18246 (extract_muldiv_1): Likewise.
18248 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
18250 * wide-int.h: Update offset_int and widest_int documentation.
18251 (WI_SIGNED_SHIFT_RESULT): New macro.
18252 (wi::binary_shift): Define signed_shift_result_type for
18253 shifts on offset_int- and widest_int-like types.
18254 (generic_wide_int): Support <<= and >>= if << and >> are supported.
18255 * tree.h (int_bit_position): Use shift operators instead of wi::
18257 * alias.c (adjust_offset_for_component_ref): Likewise.
18258 * expr.c (get_inner_reference): Likewise.
18259 * fold-const.c (fold_comparison): Likewise.
18260 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
18261 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
18262 * tree-dfa.c (get_ref_base_and_extent): Likewise.
18263 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
18264 (stmt_kills_ref_p): Likewise.
18265 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
18266 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
18267 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
18268 (ao_ref_init_from_vn_reference): Likewise.
18270 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
18272 * wide-int.h: Update offset_int and widest_int documentation.
18273 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
18274 (wi::binary_traits): Allow ordered comparisons between offset_int and
18275 offset_int, between widest_int and widest_int, and between either
18276 of these types and basic C types.
18277 (operator <, <=, >, >=): Define for the same combinations.
18278 * tree.h (tree_int_cst_lt): Use comparison operators instead
18279 of wi:: comparisons.
18280 (tree_int_cst_le): Likewise.
18281 * gimple-fold.c (fold_array_ctor_reference): Likewise.
18282 (fold_nonarray_ctor_reference): Likewise.
18283 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
18284 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
18285 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
18286 * tree-sra.c (completely_scalarize): Likewise.
18287 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
18288 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
18289 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
18290 (check_for_binary_op_overflow): Likewise.
18291 (search_for_addr_array): Likewise.
18292 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
18294 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
18296 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
18297 (arc_save_restore): Likewise.
18298 (arc_dwarf_register_span): Likewise.
18299 (arc_output_pic_addr_const): Initialize suffix variable.
18301 2016-05-02 Martin Liska <mliska@suse.cz>
18303 * symbol-summary.h (function_summary::function_summary):
18304 Remove checking assert for all cgraph nodes.
18305 (function_summary::get): Check summary_uid.
18306 (symtab_insertion): Check summary_uid.
18308 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
18310 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
18311 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
18312 bmaskn instruction.
18313 (arc_dwarf_register_span): Remove enum keyword.
18314 (compact_memory_operand_p): New function.
18315 * config/arc/arc.h (reg_class): Add code density register classes.
18316 (REG_CLASS_NAMES): Likewise.
18317 (REG_CLASS_CONTENTS): Likewise.
18318 * config/arc/arc.md (*movqi_insn): Add code density instructions.
18319 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
18320 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
18321 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
18322 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
18324 (h, Rcd, Rsd, Rzd): New register constraints.
18325 (T): Use compact_memory_operand_p function.
18326 * config/arc/predicates.md (compact_load_memory_operand): Remove.
18328 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
18330 * config/sh/sh.md (*negnegt, *movtt): Remove.
18332 2016-05-02 Marek Polacek <polacek@redhat.com>
18333 Tom de Vries <tom@codesourcery.com>
18335 PR tree-optimization/70700
18336 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
18337 bigger than FIRST_REF_NODE.
18339 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
18342 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
18344 (prepare_cbranch_operands): Don't use scratch register. Assume that
18345 function is used when pseudos can be created.
18346 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
18347 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
18348 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
18349 define_expand. Allow it only when pseudos can be created.
18350 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
18352 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
18354 * config/i386/constraints.md (BC): Only allow -1 operands.
18355 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
18356 Add "enabled" attribute. Update XI mode attribute calculation.
18357 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
18358 (*movoi_internal_avx): Update XI mode attribute calculation.
18359 (*movti_internal): Ditto.
18361 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
18363 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
18364 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
18366 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
18368 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
18369 statement on instruction code. Remove trailing spaces.
18370 (altivec_expand_stv_builtin): Likewise.
18372 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
18374 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
18375 (TARGET_FPU_DOUBLE): Simplify.
18376 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
18377 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
18378 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
18379 with 'TARGET_FPU_DOUBLE'.
18380 * config/sh/sh.md: Likewise.
18382 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
18384 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
18385 SH_DIV_STR_FOR_SIZE): Remove.
18386 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
18387 SH_DIV_STR_FOR_SIZE): Remove.
18389 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
18391 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
18392 logical_reg_operand): Delete.
18393 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
18394 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
18395 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
18396 match_operand and match_test.
18397 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
18398 variables on their first use. Return bool values.
18399 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
18400 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
18401 arith_reg_operand for input operand. Remove empty constraints.
18403 (*xorsi3_compact): Rename to xorsi3.
18404 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
18405 (*zero_extend<mode>si2_disp_mem): Update comment.
18408 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
18410 * config/sh/t-sh: Remove SH5 support.
18411 * config.gcc: Likewise.
18412 * configure: Likewise.
18414 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18416 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
18418 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
18420 * config/sh/sh.c (register_sh_passes, sh_option_override,
18421 sh_print_operand, prepare_move_operands,
18422 sh_can_follow_jump): Remove TARGET_SH1 checks.
18423 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
18424 PROMOTE_MODE): Likewise.
18425 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
18428 2016-04-30 Alan Modra <amodra@gmail.com>
18430 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
18431 restoring when fixed_reg_p, but allow out-of-line or stmw save.
18432 Check for user regs later to avoid unnecessary looping over regs.
18433 Merge user reg check with non-saved reg check. Don't force
18434 inline VR restore when static chain used.
18435 (rs6000_frame_related): Omit eh_frame info for user regs when
18437 (fixed_regs_p): Delete.
18439 2016-04-30 Alan Modra <amodra@gmail.com>
18441 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
18442 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
18445 2016-04-30 Alan Modra <amodra@gmail.com>
18448 * config/rs6000/rs6000.c (fixed_reg_p): New function.
18449 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
18452 2016-04-30 Alan Modra <amodra@gmail.com>
18454 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
18455 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
18456 flag_pic test for Darwin.
18458 2016-04-30 Alan Modra <amodra@gmail.com>
18460 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
18461 throw_calls_crossed.
18462 (REG_FREQ_CALLS_CROSSED): Delete.
18463 (REG_N_THROWING_CALLS_CROSSED): Delete.
18464 * regstat.c (regstat_bb_compute_ri): Don't calculate
18465 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
18466 (dump_reg_info): Don't print call cross frequency.
18467 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
18468 and REG_N_THROWING_CALLS_CROSSED.
18470 2016-04-30 Alan Modra <amodra@gmail.com>
18472 * regs.h (struct reg_info_t): Delete live_length.
18473 (REG_LIVE_LENGTH): Delete macro.
18474 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
18475 local_live, local_processed and local_live_last_luid params.
18476 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
18478 (regstat_compute_ri): Adjust for above. Don't set
18480 (dump_reg_info): Don't print live length.
18481 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
18482 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
18483 Localize loop_depth var.
18485 2016-04-30 Alan Modra <amodra@gmail.com>
18487 * ira.c (enum valid_equiv): New.
18488 (validate_equiv_mem): Return enum.
18489 (update_equiv_mem): Create replacement in more cases.
18490 (add_store_equivs): Update validate_equiv_mem call.
18492 2016-04-30 Alan Modra <amodra@gmail.com>
18494 * ira.c (combine_and_move_insns): Rather than scanning insns,
18495 use DF infrastucture to find use and def insns.
18497 2016-04-30 Alan Modra <amodra@gmail.com>
18499 ira.c (combine_and_move_insns): Move invariant conditions..
18500 (ira.c): ..to here. Call combine_and_move_insns before
18501 add_store_equivs. Call grow_reg_equivs later. Allocate
18502 req_equiv later using max_reg_num() rather than global max_regno.
18503 (contains_replace_regs): Delete.
18504 (add_store_equivs): Remove contains_replace_regs test.
18506 2016-04-30 Alan Modra <amodra@gmail.com>
18508 * ira.c (struct equiv_mem_data): New.
18509 (equiv_mem, equiv_mem_modified): Delete static vars.
18510 (validate_equiv_mem_from_store): Use "data" param to communicate..
18511 (validate_equiv_mem): ..from here.
18513 2016-04-30 Alan Modra <amodra@gmail.com>
18515 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
18517 (update_reg_equivs): ..here. Move allocation and freeing of
18518 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
18519 end_alias_analysis to..
18522 2016-04-30 Alan Modra <amodra@gmail.com>
18524 * ira.c (pdx_subregs): Delete.
18525 (struct equivalence): Add pdx_subregs field.
18526 (set_paradoxical_subreg): Remove pdx_subregs param. Update
18527 pdx_subregs access.
18528 (update_equiv_regs): Don't create or free pdx_subregs. Update
18529 pdx_subregs access.
18531 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18533 * config/rs6000/altivec.h: Change definitions of vec_xl and
18535 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
18536 (LD_ELEMREV_V2DI): New.
18537 (LD_ELEMREV_V4SF): New.
18538 (LD_ELEMREV_V4SI): New.
18539 (LD_ELEMREV_V8HI): New.
18540 (LD_ELEMREV_V16QI): New.
18541 (ST_ELEMREV_V2DF): New.
18542 (ST_ELEMREV_V2DI): New.
18543 (ST_ELEMREV_V4SF): New.
18544 (ST_ELEMREV_V4SI): New.
18545 (ST_ELEMREV_V8HI): New.
18546 (ST_ELEMREV_V16QI): New.
18549 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18550 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
18551 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
18552 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
18553 (altivec_expand_builtin): Add handling for
18554 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
18555 (rs6000_invalid_builtin): Add error-checking for
18556 RS6000_BTM_P9_VECTOR.
18557 (altivec_init_builtins): Define builtins used to implement vec_xl
18559 (rs6000_builtin_mask_names): Define power9-vector.
18560 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
18561 (RS6000_BTM_P9_VECTOR): Define.
18562 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
18563 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
18564 (vsx_ld_elemrev_v2df): Likewise.
18565 (vsx_ld_elemrev_v4sf): Likewise.
18566 (vsx_ld_elemrev_v4si): Likewise.
18567 (vsx_ld_elemrev_v8hi): Likewise.
18568 (vsx_ld_elemrev_v16qi): Likewise.
18569 (vsx_st_elemrev_v2df): Likewise.
18570 (vsx_st_elemrev_v2di): Likewise.
18571 (vsx_st_elemrev_v4sf): Likewise.
18572 (vsx_st_elemrev_v4si): Likewise.
18573 (vsx_st_elemrev_v8hi): Likewise.
18574 (vsx_st_elemrev_v16qi): Likewise.
18575 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
18578 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
18580 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
18582 (simplify_control_stmt_condition_1): ... here. Recurse into
18583 BIT_AND_EXPRs and BIT_IOR_EXPRs.
18585 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
18588 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
18589 (zero_extendqi<mode>2_dot): Revert earlier conversion from
18590 define_insn_and_split to define_insn.
18591 (zero_extendqi<mode>2_dot2): Same.
18592 (extendqi<mode>2_dot): Same.
18593 (extendqi<mode>2_dot2): Same.
18595 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
18597 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
18598 (probe_stack): New expander.
18599 (probe_stack_<mode>): New insn pattern.
18601 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
18603 * config/i386/i386.md
18604 (operations with memory inputs setting flags peephole2):
18605 Remove uneeded REG_P checks. Cleanup pattern generation.
18607 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
18609 * tree-vect-loop.c (vect_transform_loop): Fix
18610 nb_iterations_upper_bound computation for vectorized loop.
18612 2016-04-29 Marek Polacek <polacek@redhat.com>
18613 Jakub Jelinek <jakub@redhat.com>
18616 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
18617 TARGET_EXPR_SLOT as a base.
18619 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
18621 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
18622 with 'rCm2' constraints to limit possible immediate size.
18623 (*load_zeroextendqisi_update): Likewise.
18624 (*load_signextendqisi_update): Likewise.
18625 (*loadhi_update): Likewise.
18626 (*load_zeroextendhisi_update): Likewise.
18627 (*load_signextendhisi_update): Likewise.
18628 (*loadsi_update): Likewise.
18629 (*loadsf_update): Likewise.
18631 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
18633 * config/i386/predicates.md (constm1_operand): Fix comparison.
18635 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
18637 * testsuite/gcc.target/arc/ieee_eq.c: New test.
18639 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
18641 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
18642 remaining SH5 related settings.
18643 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
18644 shmedia_prepare_call_address): Delete.
18645 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
18646 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
18647 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
18648 UNSUPPORTED_SH2A): Remove m5 checks.
18649 (sh_divide_strategy_e): Remove SH5 division strategies.
18650 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
18651 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
18653 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
18655 * config/s390/s390.c (s390_rtx_costs): Update documentation.
18657 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18659 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
18660 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
18661 Change lder to ldr.
18662 * config/s390/vector.md ("mov<mode>"): Likewise.
18664 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
18666 * config/s390/constraints.md ("U", "W"): Invoke
18667 s390_mem_constraint with "ZR" and "ZT".
18668 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
18669 addresses when using LRA. Accept also short displacements for S
18670 and T constraints. Do not check for long displacement target for
18671 S and T constraints.
18672 (s390_mem_constraint): Remove handling of U and W constraints.
18673 * config/s390/s390.md (various patterns): Remove the short
18674 displacement constraints (Q and R) if a long displacement
18675 constraint is present. Add longdisp as required CPU capability.
18676 * config/s390/vector.md: Likewise.
18677 * config/s390/vx-builtins.md: Likewise.
18679 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18682 * reload1.c (reload): Call finish_spills before
18683 restarting reload loop. Skip select_reload_regs
18684 if update_eliminables_and_spill returns true.
18686 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
18688 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
18689 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
18690 (umulhisi3_imm): Update predicates and constraint letters.
18691 (umulhisi3_reg): Declare instruction as commutative.
18692 * config/arc/constraints.md (J12, J16): New constraints.
18693 * config/arc/predicates.md (short_unsigned_const_operand): New
18695 (arc_short_operand): Likewise.
18696 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
18698 2016-04-29 Richard Biener <rguenther@suse.de>
18700 PR tree-optimization/13962
18701 PR tree-optimization/65686
18702 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
18703 * tree-ssa-alias.c (ptrs_compare_unequal): New function
18704 using PTA to compare pointers.
18705 * match.pd: Add pattern for pointer equality compare simplification
18706 using ptrs_compare_unequal.
18708 2016-04-29 Richard Biener <rguenther@suse.de>
18710 * stor-layout.c (layout_type): Do not build a pointer-to-element
18713 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
18715 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
18716 Use SWI mode iterator. Use general_reg_operand predicate.
18717 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
18718 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
18721 2016-04-29 Jakub Jelinek <jakub@redhat.com>
18723 PR middle-end/70843
18724 * fold-const.c (operand_equal_p): Don't verify hash value equality
18726 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
18729 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18732 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
18733 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
18734 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
18735 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
18736 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
18738 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18740 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
18741 to info. Don't initialize separate fields to 0. Clean up
18744 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18746 * config/i386/i386.md (peephole2s for operations with memory inputs):
18747 Use SWI mode iterator.
18748 (peephole2s for operations with memory outputs): Ditto.
18749 Do not check for stack checking probe.
18751 (probe_stack): Remove expander.
18753 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18754 Andrew Burgess <andrew.burgess@embecosm.com>
18756 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
18757 operands as 32-bits.
18759 2016-04-28 Jason Merrill <jason@redhat.com>
18761 * gdbinit.in: Skip line-map.h.
18763 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18764 Andrew Burgess <andrew.burgess@embecosm.com>
18766 * config/arc/arc.c (arc_conditional_register_usage): Take
18767 TARGET_RRQ_CLASS into account.
18768 (arc_print_operand): Support printing 'p' and 's' operands.
18769 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
18771 (TARGET_RRQ_CLASS): Define.
18772 (IS_POWEROF2_OR_0_P): Define.
18773 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
18775 (*tst_movb): New define_insn.
18776 (*tst): Avoid recognition if it could prevent '*tst_movb'
18777 combination; replace c/CnL with c/Chs alternative.
18778 (*tst_bitfield_tst): New define_insn.
18779 (*tst_bitfield_asr): New define_insn.
18780 (*tst_bitfield): New define_insn.
18781 (andsi3_i): Add Rrq variant.
18782 (extzv): New define_expand.
18783 (insv): New define_expand.
18784 (*insv_i): New define_insn.
18785 (*movb): New define_insn.
18786 (*movb_signed): New define_insn.
18787 (*movb_high): New define_insn.
18788 (*movb_high_signed): New define_insn.
18789 (*movb_high_signed + 1): New define_split pattern.
18790 (*mrgb): New define_insn.
18791 (*mrgb + 1): New define_peephole2 pattern.
18792 (*mrgb + 2): New define_peephole2 pattern.
18793 * config/arc/arc.opt (mbitops): New option for nps400, uses
18794 TARGET_NPS_BITOPS_DEFAULT.
18795 * config/arc/constraints.md (q): Make register class conditional.
18796 (Rrq): New register constraint.
18797 (Chs): New constraint.
18798 (Clo): New constraint.
18799 (Chi): New constraint.
18800 (Cbf): New constraint.
18801 (Cbn): New constraint.
18802 (C18): New constraint.
18803 (Cbi): New constraint.
18805 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18807 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
18809 (bitmap_intersection_of_preds): Ditto.
18810 (bitmap_union_of_succs): Ditto.
18811 (bitmap_union_of_preds): Ditto.
18812 * sbitmap.c (do_popcount): Delete.
18813 (BITMAP_DEBUGGING): Delete.
18814 (sbitmap_verify_popcount): Delete.
18815 (sbitmap_alloc): Don't initialize the popcount field.
18816 (sbitmap_alloc_with_popcount): Delete.
18817 (sbitmap_resize): Don't resize the popcount array.
18818 (sbitmap_vector_alloc): Don't initialize the popcount field.
18819 (bitmap_copy): Don't copy the popcount array.
18820 (bitmap_clear): Don't clear the popcount array.
18821 (bitmap_clear): Delete the popcount array handling.
18822 (bitmap_ior_and_compl): Delete the popcount assert.
18823 (bitmap_not): Ditto.
18824 (bitmap_and_compl): Ditto.
18825 (bitmap_and): Delete the popcount array handling.
18826 (bitmap_xor): Ditto.
18827 (bitmap_ior): Ditto.
18828 (bitmap_or_and): Delete the popcount assert.
18829 (bitmap_and_or): Ditto.
18830 (popcount_table): Delete.
18831 (sbitmap_elt_popcount): Delete.
18832 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
18833 (bitmap_set_bit): Delete the popcount assert.
18834 (bitmap_clear_bit): Ditto.
18835 (sbitmap_free): Don't free the popcount array.
18836 (sbitmap_alloc_with_popcount): Delete declaration.
18837 (sbitmap_popcount): Ditto.
18839 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18840 Andrew Burgess <andrew.burgess@embecosm.com>
18842 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
18843 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
18844 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
18845 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
18846 * config/arc/arc.opt (mcmem): New option.
18847 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
18848 supply length for r/m alternative.
18849 (*extendqisi2_ac): Likewise.
18850 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
18852 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
18853 (movhi_insn): Likewise.
18854 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
18855 (*zero_extendqihi2_i): Add r/Ucm alternative.
18856 (*zero_extendqisi2_ac): Likewise.
18857 (*zero_extendhisi2_i): Likewise.
18858 * config/arc/constraints.md (Uex): New memory constraint.
18859 (Ucm): New define_constraint.
18860 * config/arc/predicates.md (long_immediate_loadstore_operand):
18861 Return 0 for MEM with cmem_address address.
18862 (cmem_address_0): New predicates.
18863 (cmem_address_1): Likewise.
18864 (cmem_address_2): Likewise.
18865 (cmem_address): Likewise.
18867 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18869 * config/rs6000/rs6000.c (machine_function): Rename
18870 insn_chain_scanned_p to spe_insn_chain_scanned_p.
18871 (rs6000_stack_info): Adjust.
18873 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18874 Andrew Burgess <andrew.burgess@embecosm.com>
18876 * config/arc/constraints.md (Usd): Convert to define_constraint.
18880 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18883 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
18884 Add new peephole2 where the first insn is *mov<mode>_or instead of
18885 *mov<mode>_internal.
18887 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
18889 * tracer.c (bb_seen): Make static.
18891 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
18893 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
18894 support, setup defaults.
18895 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
18896 * config/arc/arc.c (arc_init): Add NPS400 support.
18897 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
18898 (TARGET_ARC700): NPS400 is also an ARC700.
18899 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
18901 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18904 * config/nds32/nds32.md (casesi): Don't access the operands array
18907 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18909 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
18910 (or $-1,reg peephole2): Ditto.
18911 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
18913 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
18915 * doc/extend.texi (Common Function Attributes) [optimize]:
18916 Discourage use of the optimize attribute.
18918 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
18920 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
18921 special case builtin.
18922 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
18923 ALTIVEC_BUILTIN_VEC_ADDE.
18924 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18925 support for ALTIVEC_BUILTIN_VEC_ADDE.
18926 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
18927 for __builtin_vec_adde.
18929 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18931 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
18932 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
18934 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18937 * doc/sourcebuild.texi (Effective-Target Keywords, Other
18938 attributes): Document cilkplus_runtime.
18940 2016-04-28 Martin Jambor <mjambor@suse.cz>
18942 * tree-cfg.c (verify_expr): Verify that local declarations belong to
18943 this function. Call verify_expr on MEM_REFs and bases of other
18944 handled_components.
18946 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18948 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
18949 for WORD_REGISTER_OPERATIONS to runtime check.
18951 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18953 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
18955 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18957 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
18958 big-endian compilation.
18959 * config/arc/arc.md (addf3): Likewise.
18960 (subdf3): Likewise.
18961 (muldf3): Likewise.
18963 2016-04-28 Richard Biener <rguenther@suse.de>
18965 PR tree-optimization/70840
18966 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
18967 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
18968 Mark x * pow(x,c) -> pow(x,c+1) commutative.
18969 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
18971 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18973 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
18974 and explain why in a comment.
18976 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18978 * config/arc/arc.md (cpu_facility): Add fpx variant.
18979 (subdf3): Prohibit use reverse sub when assist operations option
18981 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
18982 instructions only when FPX is enabled.
18983 * testsuite/gcc.target/arc/trsub.c: New test.
18985 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18987 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
18988 mult_operator when calculating "type" attribute.
18989 (*fop_<mode>_1_i387): Ditto.
18990 (*fop_xf_1_i387): Ditto.
18991 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
18992 Use std::swap to swap operands. Use RTL expressions to generate
18995 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18996 Joern Rennecke <joern.rennecke@embecosm.com>
18998 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
19000 (emit_pic_move): Remove.
19001 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
19002 * config/arc/arc.c (emit_pic_move): Removed.
19003 (TARGET_HAVE_TLS): Define.
19004 (arc_conditional_register_usage): Test for arc_tp_regno.
19005 (arc_print_operand, arc_print_operand_address): Handle TLS
19007 (arc_needs_pcl_p): New function.
19008 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
19009 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
19010 (arc_raw_symbolic_reference_mentioned_p): Likewise.
19011 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
19012 (arc_legitimize_tls_address): Likewise.
19013 (DTPOFF_ZERO_SYM): Define.
19014 (arc_legitimize_pic_address): Make it static, handle TLS cases.
19015 (arc_output_pic_addr_const): Print TLS unspecs.
19016 (prepare_pic_move): New function, replaces emit_pic_move.
19017 (arc_legitimate_constant_p): Handle TLS unspecs.
19018 (arc_legitimate_address_p): Likewise.
19019 (arc_rewrite_small_data_p): Use assert for TLS constants.
19020 (prepare_move_operands): Use prepare_pic_move.
19021 (arc_legitimize_address): Legitimize tls addresses.
19022 (arc_epilogue_uses): Check for arc_tp_regno.
19023 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
19024 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
19026 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
19028 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
19029 %(arc_tls_extra_start_spec).
19030 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
19031 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
19033 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
19034 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
19035 (UNSPEC_TLS_OFF): Add.
19037 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
19038 (get_thread_pointersi): New patterns.
19039 * config/arc/arc.opt (mtp-regno): New option.
19040 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
19041 (move_dest_operand): Likewise.
19042 * configure: Regenerate.
19043 * configure.ac: Add arc*-*-* case to test for tls.
19044 * doc/invoke.texi (ARC options): Document mtp-regno.
19046 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
19048 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
19049 the new ARC HS SIMD instructions.
19050 (arc_preferred_simd_mode): New function.
19051 (arc_autovectorize_vector_sizes): Likewise.
19052 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
19053 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
19054 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
19055 (arc_init_builtins): Add new SIMD builtin types.
19056 (arc_split_move): Handle 64 bit vector moves.
19057 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
19058 (TARGET_PLUS_QMACW): Define.
19059 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
19060 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
19061 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
19062 (VSUBADD4H): New builtins.
19063 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
19064 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
19066 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
19067 Matthias Klose <doko@debian.org>
19069 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
19071 2016-04-28 Richard Biener <rguenther@suse.de>
19073 PR middle-end/70777
19074 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
19077 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
19079 * common/config/sh/sh-common.c: Remove SH5 support.
19080 * config/sh/constraints.md: Likewise.
19081 * config/sh/config/sh/elf.h: Likewise.
19082 * config/sh/linux.h: Likewise.
19083 * config/sh/netbsd-elf.h: Likewise.
19084 * config/sh/predicates.md: Likewise.
19085 * config/sh/sh-c.c: Likewise.
19086 * config/sh/sh-protos.h: Likewise.
19087 * config/sh/sh.c: Likewise.
19088 * config/sh/sh.h: Likewise.
19089 * config/sh/sh.md: Likewise.
19090 * config/sh/sh.opt: Likewise.
19091 * config/sh/sync.md: Likewise.
19092 * config/sh/sh64.h: Delete.
19093 * config/sh/shmedia.h: Likewise.
19094 * config/sh/shmedia.md: Likewise.
19095 * config/sh/sshmedia.h: Likewise.
19096 * config/sh/t-netbsd-sh5-64: Likewise.
19097 * config/sh/t-sh64: Likewise.
19098 * config/sh/ushmedia.h: Likewise.
19100 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
19102 * config/i386/i386.md (sign_extend to memory peephole2s): Use
19103 general_reg_operand instead of register_operand predicate.
19105 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19107 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
19109 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
19111 * match.pd (A - B > A, A + B < A): New transformations.
19113 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
19115 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
19116 which defaults to true. Emit an outer pair of parentheses only if
19117 EMIT_PARENS. When continuing a chain of && or || (or & or |),
19118 don't emit parentheses for the right-hand operand.
19120 2016-04-27 Jeff Law <law@redhat.com>
19122 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
19124 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19126 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
19127 (altivec_lvx_<mode>_internal): Document.
19128 (altivec_lvx_<mode>_2op): New define_insn.
19129 (altivec_lvx_<mode>_1op): Likewise.
19130 (altivec_lvx_<mode>_2op_si): Likewise.
19131 (altivec_lvx_<mode>_1op_si): Likewise.
19132 (altivec_stvx_<mode>): Remove.
19133 (altivec_stvx_<mode>_internal): Document.
19134 (altivec_stvx_<mode>_2op): New define_insn.
19135 (altivec_stvx_<mode>_1op): Likewise.
19136 (altivec_stvx_<mode>_2op_si): Likewise.
19137 (altivec_stvx_<mode>_1op_si): Likewise.
19138 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19139 Expand vec_ld and vec_st during parsing.
19140 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
19142 (altivec_expand_stvx_be): Likewise.
19143 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
19144 address-masking behavior in RTL.
19145 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
19146 address-masking behavior in RTL.
19147 (altivec_expand_builtin): Change builtin code arguments for calls
19148 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
19149 (insn_is_swappable_p): Avoid incorrect swap optimization in the
19150 presence of lvx/stvx patterns.
19151 (alignment_with_canonical_addr): New function.
19152 (alignment_mask): Likewise.
19153 (find_alignment_op): Likewise.
19154 (recombine_lvx_pattern): Likewise.
19155 (recombine_stvx_pattern): Likewise.
19156 (recombine_lvx_stvx_patterns): Likewise.
19157 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
19158 stvx patterns from expand.
19159 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
19161 (vector_altivec_store_<mode>): Likewise.
19163 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
19165 * config/aarch64/aarch64.md
19166 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
19167 remove the "fp" attributes.
19168 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
19169 add the "simd" attributes.
19170 (*movdf_aarch64): Likewise.
19171 (*movtf_aarch64): Remove the "fp" attributes.
19172 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
19173 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
19175 2016-04-27 David Malcolm <dmalcolm@redhat.com>
19177 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
19178 rtx to rtx_code_label *.
19179 * rtl.h (maybe_set_first_label_num): Likewise.
19181 2016-04-27 David Malcolm <dmalcolm@redhat.com>
19183 * df-core.c (df_add_problem): Make the problem param be const.
19184 (df_remove_problem): Make local "problem" be const.
19185 * df-problems.c (problem_RD): Make const.
19186 (problem_LR): Likewise.
19187 (problem_LIVE): Likewise.
19188 (problem_MIR): Likewise.
19189 (problem_CHAIN): Likewise.
19190 (problem_WORD_LR): Likewise.
19191 (problem_NOTE): Likewise.
19192 (problem_MD): Likewise.
19193 * df-scan.c (problem_SCAN): Likewise.
19194 * df.h (struct df_problem): Make field "dependent_problem" be
19196 (struct dataflow): Likewise for field "problem".
19197 (df_add_problem): Make param const.
19199 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
19201 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
19202 inter-unit moves to/from vector registers are enabled. Do not disable
19205 2016-04-27 David Malcolm <dmalcolm@redhat.com>
19207 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
19208 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
19210 (enum df_problem_id): ...this new enum.
19211 (struct df_problem): Convert field "id" from "int" to
19212 enum df_problem_id.
19214 2016-04-27 David Malcolm <dmalcolm@redhat.com>
19216 * rtl.def: Update comment for "things in the instruction chain" to
19217 reflect the removal of the leading "i" field for INSN_UID in
19218 r210360. Fix bogus apostrophe.
19220 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
19222 * config/i386/i386.md
19223 (lea arith with mem operand + setcc peephole2): Set operator mode.
19225 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
19228 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
19229 (dimode_scalar_to_vector_candidate_p): This.
19230 (timode_scalar_to_vector_candidate_p): New function.
19231 (scalar_to_vector_candidate_p): Likewise.
19232 (timode_check_non_convertible_regs): Likewise.
19233 (timode_remove_non_convertible_regs): Likewise.
19234 (remove_non_convertible_regs): Likewise.
19235 (remove_non_convertible_regs): Renamed to ...
19236 (dimode_remove_non_convertible_regs): This.
19237 (scalar_chain::~scalar_chain): Make it virtual.
19238 (scalar_chain::compute_convert_gain): Make it pure virtual.
19239 (scalar_chain::mark_dual_mode_def): Likewise.
19240 (scalar_chain::convert_insn): Likewise.
19241 (scalar_chain::convert_registers): Likewise.
19242 (scalar_chain::add_to_queue): Make it protected.
19243 (scalar_chain::emit_conversion_insns): Likewise.
19244 (scalar_chain::replace_with_subreg): Likewise.
19245 (scalar_chain::replace_with_subreg_in_insn): Likewise.
19246 (scalar_chain::convert_op): Likewise.
19247 (scalar_chain::convert_reg): Likewise.
19248 (scalar_chain::make_vector_copies): Likewise.
19249 (scalar_chain::convert_registers): New pure virtual function.
19250 (class dimode_scalar_chain): New class.
19251 (class timode_scalar_chain): Likewise.
19252 (scalar_chain::mark_dual_mode_def): Renamed to ...
19253 (dimode_scalar_chain::mark_dual_mode_def): This.
19254 (timode_scalar_chain::mark_dual_mode_def): New function.
19255 (timode_scalar_chain::convert_insn): Likewise.
19256 (dimode_scalar_chain::convert_registers): Likewise.
19257 (scalar_chain::compute_convert_gain): Renamed to ...
19258 (dimode_scalar_chain::compute_convert_gain): This.
19259 (scalar_chain::replace_with_subreg): Renamed to ...
19260 (dimode_scalar_chain::replace_with_subreg): This.
19261 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
19262 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
19263 (scalar_chain::make_vector_copies): Renamed to ...
19264 (dimode_scalar_chain::make_vector_copies): This.
19265 (scalar_chain::convert_reg): Renamed to ...
19266 (dimode_scalar_chain::convert_reg ): This.
19267 (scalar_chain::convert_op): Renamed to ...
19268 (dimode_scalar_chain::convert_op): This.
19269 (scalar_chain::convert_insn): Renamed to ...
19270 (dimode_scalar_chain::convert_insn): This.
19271 (scalar_chain::convert): Call convert_registers.
19272 (convert_scalars_to_vector): Change to scalar_chain pointer to
19273 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
19274 in 32-bit mode. Delete scalar_chain pointer. Call
19275 free_dominance_info in 64-bit mode.
19276 (pass_stv::gate): Remove TARGET_64BIT check.
19277 (ix86_option_override): Put the 64-bit STV pass before the CSE
19280 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
19282 * dwarf2out.h (struct dw_loc_descr_node): Remove the
19283 dw_loc_frame_offset field.
19284 * dwarf2out.c (new_loc_descr): Likewise.
19285 (resolve_args_picking_1): Turn the VISITED hash set into a
19286 FRAME_OFFSET hash map. Use it to associate a frame offset to
19287 visited nodes. Remove uses of the CHECKING_P macro.
19288 (resolve_args_picking): Update call to resolve_args_picking_1.
19290 2016-04-27 Martin Liska <mliska@suse.cz>
19292 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
19293 (free_loop_data): Release vuses of groups.
19295 2016-04-27 Bin Cheng <bin.cheng@arm.com>
19297 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
19298 instead of redundant use_id and boolean have_use_for.
19299 (struct iv_use): Change sub_id into group_id. Remove field next.
19300 Move fields: related_cands, n_map_members, cost_map and selected
19302 (struct iv_group): ... here. New structure.
19303 (struct iv_common_cand): Use structure declaration directly.
19304 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
19305 (MAX_CONSIDERED_USES): Rename macro to ...
19306 (MAX_CONSIDERED_GROUPS): ... here.
19307 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
19308 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
19309 (dump_uses): Rename to ...
19310 (dump_groups): ... here. Update all uses.
19311 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
19312 (find_induction_variables): Refactor format of dump information.
19313 (record_sub_use): Delete.
19314 (record_use): Update all uses.
19315 (record_group): New function.
19316 (record_group_use, find_interesting_uses_op): Call above functions.
19318 (find_interesting_uses_cond): Ditto.
19319 (group_compare_offset): New function.
19320 (split_all_small_groups): Rename to ...
19321 (split_small_address_groups_p): ... here. Update all uses.
19322 (split_address_groups): Update all uses.
19323 (find_interesting_uses): Refactor format of dump information.
19324 (add_candidate_1): Update all uses. Remove redundant check on iv,
19326 (add_candidate, record_common_cand): Remove redundant assert.
19327 (add_iv_candidate_for_biv): Update use.
19328 (add_iv_candidate_derived_from_uses): Update all uses.
19329 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
19330 (alloc_use_cost_map): Ditto.
19331 (set_use_iv_cost, get_use_iv_cost): Rename to ...
19332 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
19333 (determine_use_iv_cost_generic): Ditto.
19334 (determine_group_iv_cost_generic): Ditto.
19335 (determine_use_iv_cost_address): Ditto.
19336 (determine_group_iv_cost_address): Ditto.
19337 (determine_use_iv_cost_condition): Ditto.
19338 (determine_group_iv_cost_cond): Ditto.
19339 (determine_use_iv_cost): Ditto.
19340 (determine_group_iv_cost): Ditto.
19341 (set_autoinc_for_original_candidates): Update all uses.
19342 (find_iv_candidates): Update all uses. Refactor dump information.
19343 (determine_use_iv_costs): Ditto.
19344 (determine_iv_costs): Ditto.
19345 (iv_ca_cand_for_use): Rename to ...
19346 (iv_ca_cand_for_group): ... here. Update all uses.
19347 (iv_ca_add_use, iv_ca_add_group): Ditto.
19348 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
19349 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
19350 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
19351 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
19352 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
19353 (create_new_iv, adjust_iv_update_pos): Ditto.
19354 (rewrite_use_address): Delete.
19355 (rewrite_use_address_1): Rename to ...
19356 (rewrite_use_address): ... here.
19357 (rewrite_use_compare): Update all uses.
19358 (rewrite_use): Delete.
19359 (rewrite_uses): Rename to ...
19360 (rewrite_groups): ... here. Update all uses.
19361 (remove_unused_ivs, free_loop_data): Update all uses.
19362 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
19364 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19366 * rtlanal.c (nonzero_bits1): Convert preprocessor check
19367 for WORD_REGISTER_OPERATIONS to runtime check.
19369 2016-04-27 Richard Biener <rguenther@suse.de>
19372 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
19373 aggregate_value_p to determine if a function result is
19374 returned by reference.
19375 (ipa_pta_execute): Functions having their address taken are
19376 not automatically nonlocal.
19378 2016-04-27 Jakub Jelinek <jakub@redhat.com>
19381 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
19382 * fold-const.c (operand_equal_p): If flag_checking and
19383 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
19384 and if it returns non-zero, assert iterative_hash_expr on both
19387 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
19389 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
19391 2016-04-27 Nick Clifton <nickc@redhat.com>
19393 PR middle-end/49889
19394 * varasm.c (merge_weak): Generate an error if an attempt is made
19395 to convert a non-weak static function into a weak, public function.
19397 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19399 * params.def (MAX_PARTITION_SIZE): New param.
19400 * doc/invoke.texi: Document lto-max-partition.
19402 2016-04-27 Richard Biener <rguenther@suse.de>
19405 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
19406 function cummulating used_from_other_partition, externally_visible
19407 and force_output from aliases.
19408 (refered_from_nonlocal_var): Likewise.
19409 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
19410 node flags properly.
19412 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
19414 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
19415 (-Wmemset-elt-size): New item.
19417 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
19420 * stor-layout.h (internal_reference_types): Delete.
19421 * stor-layout.c (reference_types_internal): Likewise.
19422 (internal_reference_types): Likewise.
19423 (layout_type) <REFERENCE_TYPE>: Adjust.
19425 2016-04-27 Jakub Jelinek <jakub@redhat.com>
19428 * tree.h (inchash::add_expr): Add FLAGS argument.
19429 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
19430 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
19431 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
19432 Formatting fix. Adjust recursive calls. For tcc_comparison,
19433 if swap_tree_comparison (code) is smaller than code, hash that
19434 and arguments in the other order. Hash CONVERT_EXPR the same
19435 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
19436 of ADDR_EXPR of decl as the decl itself. Add or remove
19437 OEP_ADDRESS_OF from recursive flags as needed. For
19438 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
19439 operands commutatively and only the third one normally.
19440 For internal CALL_EXPR hash in CALL_EXPR_IFN.
19442 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
19444 * config/rtems.h (LIB_SPEC): Add -latomic.
19446 2016-04-27 Joel Sherrill <joel@rtems.org>
19448 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
19449 xilink.ld and flags not relevant to RTEMS.
19451 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19453 * toplev.c (backend_init_target): Avoid calling init_reload when using
19456 2016-04-26 Jakub Jelinek <jakub@redhat.com>
19458 * reorg.c (try_merge_delay_insns): Declare i and j inside the
19459 for loops rather than one for the whole function.
19461 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
19463 * match.pd (X + CST CMP X): New transformation.
19465 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
19467 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
19468 * fold-const.c (fold_binary_loc): Remove 2 transformations
19469 superseded by match.pd.
19470 * match.pd (x+x -> x*2): Generalize to integers.
19472 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
19474 * config/i386/i386.md (operation on memory peephole): Duplicate an
19475 existing peephole and adapt it to match lea rather than an operation
19478 PR rtl-optimization/57193
19479 * opts.c (default_options_table): Add OPT_frename_registers at -O2
19481 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
19483 2016-04-26 Bin Cheng <bin.cheng@arm.com>
19485 * tree-if-conv.c (any_pred_load_store): New static variable.
19486 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
19487 any_pred_load_store instead of and_mask_load_store.
19488 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
19489 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
19490 (combine_blocks, tree_if_conversion): Ditto.
19492 2016-04-26 Bin Cheng <bin.cheng@arm.com>
19494 PR tree-optimization/70771
19495 PR tree-optimization/70775
19496 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
19497 virtual PHI nodes. Delete parameter.
19498 (if_convertible_loop_p_1): Delete argument to above function.
19499 (predicate_all_scalar_phis): Delete code handling single-argument
19501 (tree_if_conversion): Mark and update virtual SSA.
19503 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19506 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
19507 (x86_elf_aligned_common): Rename to ...
19508 (x86_elf_aligned_decl_common): ... this.
19509 Add decl arg. Switch to .lbss for largecomm object. Use
19510 LARGECOMM_SECTION_ASM_OP.
19511 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
19513 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
19514 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
19516 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19517 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
19519 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19522 * config/i386/i386.c (SECTION_LARGE): Define.
19523 (x86_64_elf_select_section): Set it for large data/bss sections.
19524 Only clear SECTION_WRITE for .lrodata.
19525 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
19527 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
19528 * varasm.c (default_elf_asm_named_section): Grow flagchars.
19529 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
19531 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
19532 * doc/tm.texi: Regenerate.
19534 2016-04-26 Jakub Jelinek <jakub@redhat.com>
19537 * configure.ac (--enable-checking): Document extra flag, for
19538 non-release builds default to --enable-checking=yes,extra.
19539 If misc checking and extra checking, define CHECKING_P to 2 instead
19541 * common.opt (fchecking=): Add.
19542 * doc/invoke.texi (-fchecking=): Document.
19543 * doc/install.texi: Document --enable-checking changes.
19544 * configure: Regenerated.
19545 * config.in: Regenerated.
19547 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
19549 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
19550 attribute instead of which_alternative.
19551 * config/i386/sse.md (*mov<mode>_internal): Ditto.
19552 Use EXT_REX_SSE_REG_P where appropriate.
19554 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
19556 * config/i386/predicates.md (const0_operand): Do not match
19557 const_wide_int code.
19558 (const1_operand): Ditto.
19560 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
19562 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
19563 for SSE constm1 operands and TARGET_AVX512VL.
19564 (*movti_internal): Ditto.
19565 (*mov<mode>_or): Use constm1_operand predicate.
19566 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
19567 for SSE vector_all_ones operands and TARGET_AVX512VL.
19568 * config/i386/predicates.md (constm1_operand): New predicate.
19569 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
19570 emission of constant -1 load.
19572 2016-04-25 Jason Merrill <jason@redhat.com>
19574 * gdbinit.in: Skip is-a.h.
19576 * attribs.c (register_scoped_attributes): Fix logic.
19577 * attribs.h: Declare register_scoped_attributes.
19579 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19581 * config/rs6000/rs6000-builtin.def: Correct pasto error for
19582 stxvd2x and stxvw4x built-in functions.
19584 2016-04-25 DJ Delorie <dj@redhat.com>
19586 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
19587 (ashrhi3): Likewise.
19588 (lshrhi3): Likewise.
19590 2016-04-25 Richard Biener <rguenther@suse.de>
19592 PR tree-optimization/70780
19593 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
19594 wasn't visited yet.
19595 (compute_antic): Mark blocks with abnormal preds as visited as
19596 they have a final empty antic-in solution already.
19598 2016-04-25 Michael Collison <michael.collison@linaro.org>
19600 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
19602 2016-04-25 Michael Collison <michael.collison@linaro.org>
19604 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
19605 mode is VQI to improve mixed mode vectorization.
19606 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
19607 define_insn to match low half of signed vaddw.
19608 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
19609 define_insn to match high half of signed vaddw.
19610 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
19611 define_insn to match low half of unsigned vaddw.
19612 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
19613 define_insn to match high half of unsigned vaddw.
19614 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
19615 (arm_simd_check_vect_par_cnst_half_p): Likewise.
19616 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
19618 (arm_simd_check_vect_par_cnst_half_p): Likewise.
19619 * config/arm/predicates.md (vect_par_constant_high): Support
19620 big endian and simplify by calling
19621 arm_simd_check_vect_par_cnst_half
19622 (vect_par_constant_low): Likewise.
19624 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
19626 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
19627 predicate for operand 2.
19629 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
19630 H.J. Lu <hongjiu.lu@intel.com>
19632 * config/i386/i386-protos.h (standard_sse_constant_p): Add
19633 machine_mode argument.
19634 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
19635 constm1_rtx operands. For VOIDmode constants, get mode from
19636 pred_mode. Check mode size if the mode is supported by ABI.
19637 (standard_sse_constant_opcode): Do not use standard_constant_p.
19638 Strictly check ABI support for all-ones operands.
19639 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
19640 immediates. Update calls to standard_sse_constant_p.
19641 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
19642 (ix86_rtx_costs): Ditto.
19643 * config/i386/i386.md (*movxi_internal_avx512f): Use
19644 nonimmediate_or_sse_const_operand instead of vector_move_operand.
19645 Use (v,BC) alternative instead of (v,C). Use register_operand
19646 checks instead of MEM_P.
19647 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
19648 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
19649 isa attribute. Use register_operand checks instead of MEM_P.
19650 (*movti_internal): Use nonimmediate_or_sse_const_operand for
19651 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
19652 alternative and corresponding sse2 isa attribute.
19653 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
19654 to standard_sse_constant_p.
19655 (FP constant splitters): Ditto.
19656 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
19658 * config/i386/predicates.md (constm1_operand): Remove.
19659 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
19660 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
19661 vector_all_ones_operand instead of constm1_operand.
19663 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19665 * print-rtl.c (print_rtx_insn_vec): New function.
19666 * print-rtl.h: New prototype.
19667 * store-motion.c (struct st_expr): Make avail_stores a vector.
19668 (st_expr_entry): Adjust.
19669 (free_st_expr_entry): Likewise.
19670 (print_store_motion_mems): Likewise.
19671 (find_moveable_store): Likewise.
19672 (compute_store_table): Likewise.
19673 (delete_store): Likewise.
19674 (build_store_vectors): Likewise.
19676 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19678 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
19680 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19682 * vec.h (vec_safe_contains): New function.
19683 (vec::contains): Likewise.
19684 (vec::begin): Likewise.
19685 (vec::end): Likewise.
19687 2016-04-23 Jakub Jelinek <jakub@redhat.com>
19690 * cfgexpand.c (expand_stack_vars): Fix typo.
19692 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
19694 * system.h (list, map, set, vector): Include conditionally.
19695 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
19696 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
19697 * ipa-icf.c (INCLUDE_LIST): Define.
19698 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
19699 * config/sh/sh.c (INCLUDE_VECTOR): Define.
19700 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
19701 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
19702 * cp/logic.cc (INCLUDE_LIST): Define.
19703 * fortran/trans-common.c (INCLUDE_MAP): Define.
19705 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
19707 * auto-profile.c: Remove <string.h> include.
19708 * ipa-icf-gimple.c: Remove <list> include.
19709 * diagnostic.c: Remove <new> include.
19710 * genmatch.c: Likewise.
19711 * pretty-print.c: Likewise.
19712 * toplev.c: Likewise
19713 * c/c-objc-common.c: Likewise.
19714 * cp/error.c: Likewise.
19715 * fortran/error.c: Likewise.
19717 2016-04-22 Richard Biener <rguenther@suse.de>
19719 * lto-streamer-in.c (input_ssa_names): Do not allocate
19720 GIMPLE_NOP for all SSA names.
19721 * lto-streamer-out.c (output_ssa_names): Do not output
19722 SSA names that should have been released.
19724 2016-04-22 Richard Biener <rguenther@suse.de>
19726 PR tree-optimization/70740
19727 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
19730 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
19733 * config/i386/predicates.md (call_insn_operand): Replace
19734 sibcall_memory_operand with memory_operand.
19736 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
19738 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
19739 has_single_use() tests.
19740 (register_edge_assert_for_1): Likewise.
19741 (find_assert_locations_1): Check the liveness bitmap instead of
19742 checking has_single_use().
19744 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
19747 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
19748 Extract AVX-512BW constraint from AVX.
19750 2016-04-21 Richard Biener <rguenther@suse.de>
19752 PR tree-optimization/70725
19753 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
19754 for phi_convertible_by_degenerating_args.
19755 (predicate_all_scalar_phis): Handle single-argument PHIs.
19757 2016-04-21 Richard Biener <rguenther@suse.de>
19759 PR middle-end/70747
19760 * fold-const.c (fold_comparison): Return properly typed
19763 2016-04-21 Bin Cheng <bin.cheng@arm.com>
19765 PR tree-optimization/70715
19766 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
19767 after expanding BASE using expand_simple_operations.
19769 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
19771 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
19772 New transformations.
19774 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
19776 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
19778 2016-04-20 Jan Hubicka <jh@suse.cz>
19780 * ipa-inline.c (can_inline_edge_p): Pass caller info to
19781 ultiimate_alias_target.
19782 (update_callee_keys): Likewise.
19783 (lookup_recursive_calls): Likewise.
19784 (speculation_useful_p): Likewise.
19786 2016-04-20 Jan Hubicka <jh@suse.cz>
19789 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
19790 (set_nothrow_flag_1): ... this; handle interposition correctly;
19791 recurse on aliases and thunks.
19792 (cgraph_node::set_nothrow_flag): New.
19793 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
19794 functions compiled with non-call exceptions that binds to current
19796 (propagate_nothrow): Be safe WRT interposition.
19797 * cgraph.h (set_nothrow_flag): Update prototype.
19799 2016-04-18 Jan Hubicka <jh@suse.cz>
19801 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19802 max_loop_iterations_int.
19803 (tree_unswitch_outer_loop): Likewise.
19805 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19807 PR tree-optimization/69489
19808 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
19809 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
19810 Revise dump message.
19811 (if_convertible_bb_p): Remove check on edge count of basic block's
19814 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19816 PR tree-optimization/56625
19817 PR tree-optimization/69489
19818 * tree-data-ref.h (DR_INNERMOST): New macro.
19819 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
19820 hashing struct innermost_loop_behavior.
19821 (ref_DR_map): Remove.
19822 (innermost_DR_map): New map.
19823 (baseref_DR_map): Revise comment.
19824 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
19825 to innermost_DR_map accroding to its innermost loop behavior.
19826 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
19827 to its innermost loop behavior.
19828 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
19829 Add initialization for innermost_DR_map. Record memory reference
19830 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
19831 have innermost loop behavior.
19832 (if_convertible_loop_p): Remove release for ref_DR_map. Release
19835 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
19837 * config/i386/i386.md (*lea<mode>_general_1): Rename from
19838 *lea_general_1. Use explicit SWI12 mode interator.
19839 (*lea<mode>_general_2): Rename from *lea_general_2.
19840 Use explicit SWI12 mode interator.
19841 (*lea<mode>_general_3): Rename from *lea_general_3.
19842 Use explicit SWI12 mode interator.
19843 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
19844 Use explicit SWI12 mode interator.
19845 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
19846 Use explicit SWI48 mode interator.
19848 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
19850 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
19851 Short-cut unaligned load and store cases. Handle all integer
19853 (ix86_expand_vector_move_misalign): Short-cut unaligned load
19854 and store cases. Call ix86_avx256_split_vector_move_misalign
19855 directly without checking mode class.
19857 2016-04-20 Andrew Pinski <apinski@cavium.com>
19858 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19861 * config/aarch64/aarch64.md (sibcall): Force call
19862 address to be DImode for ILP32.
19863 (sibcall_value): Likewise.
19865 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
19867 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
19869 2016-04-20 Richard Biener <rguenther@suse.de>
19871 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
19872 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
19873 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
19874 (maybe_push_res_to_seq): Adjust.
19875 * gimple-fold.c (maybe_build_generic_op): Likewise.
19877 2016-04-20 Marek Polacek <polacek@redhat.com>
19879 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
19882 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
19884 * config/i386/sse.md (vec_unpacks_lo_hi): Always
19885 use kmovw to support AVX512F target.
19887 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19889 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
19891 2016-04-20 Marek Polacek <polacek@redhat.com>
19893 PR tree-optimization/70725
19894 * tree-if-conv.c (is_false_predicate): New function.
19895 (predicate_mem_writes): Use it.
19897 2016-04-20 Richard Biener <rguenther@suse.de>
19899 PR tree-optimization/70726
19900 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
19901 shift amounts from a pattern stmt operand.
19903 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19906 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
19907 stack_restore_from_fpr pattern when restoring r15.
19908 (s390_optimize_prologue): Strip away the memory barrier in the
19909 parallel when trying to get rid of restore insns.
19910 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
19911 definition for loading the stack pointer from an FPR. Compared to
19912 the normal move insn this pattern includes a full memory barrier.
19914 2016-04-19 Jakub Jelinek <jakub@redhat.com>
19916 PR middle-end/70680
19917 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
19918 implicitly linear or lastprivate iterator on the outer context.
19920 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
19922 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
19924 * config/i386/i386.md (ssememalign): Removed.
19925 * config/i386/sse.md: Remove ssememalign attribute from patterns.
19927 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
19930 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
19931 const short * to __builtin_ia32_loaddquhi512_mask.
19932 (_mm512_maskz_loadu_epi16): Likewise.
19933 (_mm512_mask_storeu_epi16): Pass short * to
19934 __builtin_ia32_storedquhi512_mask.
19935 (_mm512_mask_loadu_epi8): Pass const char * to
19936 __builtin_ia32_loaddquqi512_mask.
19937 (_mm512_maskz_loadu_epi8): Likewise.
19938 (_mm512_mask_storeu_epi8): Pass char * to
19939 __builtin_ia32_storedquqi512_mask.
19940 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
19941 const double * to __builtin_ia32_loadupd512_mask.
19942 (_mm512_mask_loadu_pd): Likewise.
19943 (_mm512_maskz_loadu_pd): Likewise.
19944 (_mm512_storeu_pd): Pass double * to
19945 __builtin_ia32_storeupd512_mask.
19946 (_mm512_mask_storeu_pd): Likewise.
19947 (_mm512_loadu_ps): Pass const float * to
19948 __builtin_ia32_loadups512_mask.
19949 (_mm512_mask_loadu_ps): Likewise.
19950 (_mm512_maskz_loadu_ps): Likewise.
19951 (_mm512_storeu_ps): Pass float * to
19952 __builtin_ia32_storeups512_mask.
19953 (_mm512_mask_storeu_ps): Likewise.
19954 (_mm512_mask_loadu_epi64): Pass const long long * to
19955 __builtin_ia32_loaddqudi512_mask.
19956 (_mm512_maskz_loadu_epi64): Likewise.
19957 (_mm512_mask_storeu_epi64): Pass long long *
19958 to __builtin_ia32_storedqudi512_mask.
19959 (_mm512_loadu_si512): Pass const int * to
19960 __builtin_ia32_loaddqusi512_mask.
19961 (_mm512_mask_loadu_epi32): Likewise.
19962 (_mm512_maskz_loadu_epi32): Likewise.
19963 (_mm512_storeu_si512): Pass int * to
19964 __builtin_ia32_storedqusi512_mask.
19965 (_mm512_mask_storeu_epi32): Likewise.
19966 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
19967 char * to __builtin_ia32_storedquqi256_mask.
19968 (_mm_mask_storeu_epi8): Likewise.
19969 (_mm256_mask_loadu_epi16): Pass const short * to
19970 __builtin_ia32_loaddquhi256_mask.
19971 (_mm256_maskz_loadu_epi16): Likewise.
19972 (_mm_mask_loadu_epi16): Pass const short * to
19973 __builtin_ia32_loaddquhi128_mask.
19974 (_mm_maskz_loadu_epi16): Likewise.
19975 (_mm256_mask_loadu_epi8): Pass const char * to
19976 __builtin_ia32_loaddquqi256_mask.
19977 (_mm256_maskz_loadu_epi8): Likewise.
19978 (_mm_mask_loadu_epi8): Pass const char * to
19979 __builtin_ia32_loaddquqi128_mask.
19980 (_mm_maskz_loadu_epi8): Likewise.
19981 (_mm256_mask_storeu_epi16): Pass short * to.
19982 __builtin_ia32_storedquhi256_mask.
19983 (_mm_mask_storeu_epi16): Pass short * to.
19984 __builtin_ia32_storedquhi128_mask.
19985 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
19986 const double * to __builtin_ia32_loadupd256_mask.
19987 (_mm256_maskz_loadu_pd): Likewise.
19988 (_mm_mask_loadu_pd): Pass onst double * to
19989 __builtin_ia32_loadupd128_mask.
19990 (_mm_maskz_loadu_pd): Likewise.
19991 (_mm256_mask_storeu_pd): Pass double * to
19992 __builtin_ia32_storeupd256_mask.
19993 (_mm_mask_storeu_pd): Pass double * to
19994 __builtin_ia32_storeupd128_mask.
19995 (_mm256_mask_loadu_ps): Pass const float * to
19996 __builtin_ia32_loadups256_mask.
19997 (_mm256_maskz_loadu_ps): Likewise.
19998 (_mm_mask_loadu_ps): Pass const float * to
19999 __builtin_ia32_loadups128_mask.
20000 (_mm_maskz_loadu_ps): Likewise.
20001 (_mm256_mask_storeu_ps): Pass float * to
20002 __builtin_ia32_storeups256_mask.
20003 (_mm_mask_storeu_ps): ass float * to
20004 __builtin_ia32_storeups128_mask.
20005 (_mm256_mask_loadu_epi64): Pass const long long * to
20006 __builtin_ia32_loaddqudi256_mask.
20007 (_mm256_maskz_loadu_epi64): Likewise.
20008 (_mm_mask_loadu_epi64): Pass const long long * to
20009 __builtin_ia32_loaddqudi128_mask.
20010 (_mm_maskz_loadu_epi64): Likewise.
20011 (_mm256_mask_storeu_epi64): Pass long long * to
20012 __builtin_ia32_storedqudi256_mask.
20013 (_mm_mask_storeu_epi64): Pass long long * to
20014 __builtin_ia32_storedqudi128_mask.
20015 (_mm256_mask_loadu_epi32): Pass const int * to
20016 __builtin_ia32_loaddqusi256_mask.
20017 (_mm256_maskz_loadu_epi32): Likewise.
20018 (_mm_mask_loadu_epi32): Pass const int * to
20019 __builtin_ia32_loaddqusi128_mask.
20020 (_mm_maskz_loadu_epi32): Likewise.
20021 (_mm256_mask_storeu_epi32): Pass int * to
20022 __builtin_ia32_storedqusi256_mask.
20023 (_mm_mask_storeu_epi32): Pass int * to
20024 __builtin_ia32_storedqusi128_mask.
20025 * config/i386/i386-builtin-types.def (PCSHORT): New.
20026 (PINT64): Likewise.
20027 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
20028 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
20029 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
20030 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
20031 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
20032 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
20033 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
20034 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
20035 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
20036 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
20037 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
20038 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
20039 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
20040 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
20041 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
20042 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
20043 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
20044 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
20045 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
20046 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
20047 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
20048 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
20049 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
20050 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
20051 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
20052 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
20053 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
20054 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
20055 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
20056 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
20057 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
20058 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
20059 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
20060 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
20061 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
20062 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
20063 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
20064 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
20065 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
20066 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
20067 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
20068 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
20069 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
20070 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
20071 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
20072 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
20073 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
20074 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
20075 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
20077 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
20078 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
20080 (ix86_expand_vector_move_misalign): Likewise.
20081 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
20082 to scalar function prototype for unaligned load/store builtins.
20083 (ix86_expand_special_args_builtin): Updated.
20084 * config/i386/sse.md (UNSPEC_LOADU): Removed.
20085 (UNSPEC_STOREU): Likewise.
20086 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
20087 (VI_ULOADSTORE_F_AVX512VL): Likewise.
20088 (ssescalarsize): Handle V4TI, V2TI and V1TI.
20089 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
20090 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
20091 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
20092 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
20093 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
20094 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
20095 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
20096 (<avx512>_storedqu<mode>_mask): Likewise.
20097 (*sse4_2_pcmpestr_unaligned): Likewise.
20098 (*sse4_2_pcmpistr_unaligned): Likewise.
20099 (*mov<mode>_internal): Renamed to ...
20100 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
20101 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
20102 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
20103 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
20105 2016-04-19 Richard Biener <rguenther@suse.de>
20107 PR tree-optimization/70171
20108 * tree-ssa-phiprop.c: Include stor-layout.h.
20109 (phiprop_insert_phi): Handle the aggregate copy case.
20110 (propagate_with_phi): Likewise.
20112 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
20114 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
20115 instead of simplify_gen_subreg (... , 0).
20116 (ix86_delegitimize_address): Ditto.
20117 (ix86_split_divmod): Ditto.
20118 (ix86_split_copysign_const): Ditto.
20119 (ix86_split_copysign_var): Ditto.
20120 (ix86_expand_args_builtin): Ditto.
20121 (ix86_expand_round_builtin): Ditto.
20122 (ix86_expand_special_args_builtin): Ditto.
20123 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
20124 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
20125 (udivmodqi4): Ditto.
20126 (absneg splitters): Ditto.
20127 (*jcc_bt<mode>_1): Ditto.
20129 2016-04-19 Richard Biener <rguenther@suse.de>
20131 PR tree-optimization/70724
20132 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
20133 restoring out from ...
20134 (free_scc_vn): ... here.
20135 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
20136 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
20138 (pass_fre::execute): Restore SSA info.
20140 2016-04-19 Richard Biener <rguenther@suse.de>
20142 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
20143 * gimple-walk.c (walk_gimple_op): Initialize it.
20144 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
20145 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
20146 remapping SSA names of defs.
20147 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
20150 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
20152 PR middle-end/70689
20153 * lra-constraints.c (equiv_substition_p): New.
20154 (process_alt_operands): Use it.
20155 (swap_operands): Swap it.
20156 (curr_insn_transform): Update it.
20158 2016-04-18 Michael Matz <matz@suse.de>
20160 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
20161 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
20162 * tree-core.h (tree_type_common.align): Use bit-field.
20163 (tree_type_common.spare): New.
20164 (tree_decl_common.off_align): Make smaller.
20165 (tree_decl_common.align): Use bit-field.
20167 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
20168 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
20169 (scan_sharing_clauses): Ditto.
20170 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
20171 (omp_finish_file): Ditto.
20172 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
20173 (layout_decl): Ditto.
20174 (relayout_decl): Ditto.
20175 (finalize_record_size): Use SET_TYPE_ALIGN.
20176 (finalize_type_size): Ditto.
20177 (finish_builtin_struct): Ditto.
20178 (layout_type): Ditto.
20179 (initialize_sizetypes): Ditto.
20180 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
20181 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
20182 (lookup_field_for_decl): Use SET_DECL_ALIGN.
20183 (get_chain_field): Ditto.
20184 (get_trampoline_type): Ditto.
20185 (get_nl_goto_field): Ditto.
20186 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
20188 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
20189 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
20190 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
20191 (build_qualified_type): Use SET_TYPE_ALIGN.
20192 (build_aligned_type, build_range_type_1): Ditto.
20193 (build_atomic_base): Ditto.
20194 (build_common_tree_nodes): Ditto.
20195 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
20196 (expand_one_stack_var_at): Ditto.
20197 * coverage.c (build_var): Use SET_DECL_ALIGN.
20198 * except.c (init_eh): Ditto.
20199 * function.c (assign_parm_setup_block): Ditto.
20200 * symtab.c (increase_alignment_1): Ditto.
20201 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
20202 * tree-vect-stmts.c (ensure_base_align): Ditto.
20203 * varasm.c (align_variable): Ditto.
20204 (assemble_variable): Ditto.
20205 (build_constant_desc): Ditto.
20206 (output_constant_def_contents): Ditto.
20208 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
20209 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
20210 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
20211 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
20212 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
20214 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
20217 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
20218 replace %vmovsd with "%vmovq".
20219 (vec_concatv2df): Likewise.
20221 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
20223 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
20224 (*vec_extractv2si_0): Ditto.
20225 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
20226 (zero_extended_scalar_load_operand splitters): Ditto.
20227 (vec_extract splitters): Ditto.
20228 (*vec_extractv4si_0_zext): Ditto.
20229 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
20230 and lowpart_subreg.
20231 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
20232 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
20233 (*sse4_1_extractps): Use lowpart_subreg.
20234 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
20236 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20238 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
20240 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
20241 Mention Solaris 11 packaging changes.
20242 Update gas and gld requirements.
20243 Remove reference to pre-Solaris 10 bug.
20244 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
20246 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
20249 2016-04-17 Jan Hubicka <jh@suse.cz>
20251 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
20252 max_loop_iterations_int.
20254 2016-04-18 Richard Biener <rguenther@suse.de>
20256 PR tree-optimization/43434
20257 * tree-ssa-structalias.c (struct vls_data): New.
20258 (visit_loadstore): Handle all pointer-based accesses.
20259 (compute_dependence_clique): Compute a bitmap of restrict tags
20260 assigned bases and pass it to visit_loadstore.
20262 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
20265 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
20266 armv8.1-a and armv8.1-a+crc.
20268 2016-04-18 Richard Biener <rguenther@suse.de>
20270 PR tree-optimization/70701
20271 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
20272 references after translating through a memcpy.
20274 2016-04-18 Richard Biener <rguenther@suse.de>
20276 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
20277 (compute_antic): ... here. For partial antic use regular
20278 postorder and scrap iteration.
20279 (compute_partial_antic_aux): Remove unused return value.
20280 (init_pre): Do not allocate postorder.
20281 (fini_pre): Do not free postorder.
20283 2016-04-18 Richard Biener <rguenther@suse.de>
20285 PR middle-end/37870
20286 * expmed.c (extract_bit_field_1): Remove broken case
20287 using a wider MODE_INT mode.
20289 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
20291 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
20292 unless compiling with at least GCC-4.8.
20294 2016-04-17 Jan Hubicka <jh@suse.cz>
20297 * graphite.c (graphite_finalize): Update call to
20298 tree_estimate_probability.
20299 * predict.h (tree_estimate_probability): Update prototype.
20301 2016-04-17 Jan Hubicka <jh@suse.cz>
20303 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
20304 (tree_estimate_probability): Likewise.
20305 (pass_profile::execute): Update.
20306 (report_predictor_hitrates): New function.
20307 * profile.c (compute_branch_probabilities): Use it.
20308 * predict.h (report_predictor_hitrates): Declare.
20310 2016-04-17 Jan Hubicka <jh@suse.cz>
20313 * cgraph.h (cgraph_node::set_const_flag,
20314 cgraph_node::set_pure_flag): Update prototype to return bool;
20316 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
20317 of interposable symbol are interposable, too.
20318 (cgraph_set_const_flag_1): Rename to ...
20319 (set_const_flag_1): ... this one; change to self recursive function
20320 instead of call_for_symbol_thunks_and_aliases. Handle correctly
20321 clearnig the flag in all variants and also virtual thunks of const
20322 functions are pure; track if any change was done.
20323 (cgraph_node::set_const_flag): Update.
20324 (struct set_pure_flag_info): New struct.
20325 (cgraph_set_pure_flag_1): Rename to ...
20326 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
20327 rather than pointer encoded flags; track if any changes was done;
20328 handle correctly clearning flag and setting flag of aliases already
20330 (cgraph_node::set_pure_flag): Update.
20331 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
20333 2016-04-17 Tom de Vries <tom@codesourcery.com>
20336 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
20337 backslash in label.
20339 2016-04-17 Tom de Vries <tom@codesourcery.com>
20341 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
20342 '{}<> ' as escape-for-record.
20344 2016-04-17 Tom de Vries <tom@codesourcery.com>
20346 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
20349 2016-04-17 Tom de Vries <tom@codesourcery.com>
20352 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
20353 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
20354 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
20355 * passes.c (finish_optimization_passes): Only call
20356 finish_graph_dump_file if dfi->graph_dump_initialized.
20357 (execute_function_dump, pass_init_dump_file): Use
20358 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
20360 2016-04-17 Tom de Vries <tom@codesourcery.com>
20362 PR tree-optimization/70256
20363 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
20364 (debug_varmap): New function.
20366 2016-04-17 Tom de Vries <tom@codesourcery.com>
20369 * passes.c (pass_manager::register_pass): Propagate pflags.
20371 2016-04-17 Tom de Vries <tom@codesourcery.com>
20374 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
20375 * passes.c (pass_manager::pass_manager): Declare and init p_start in
20376 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
20377 check if it's equal to p_start.
20378 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
20380 2016-04-15 Jan Hubicka <jh@suse.cz>
20383 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
20384 function does not bind to current def.
20385 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
20386 handle conservatively calls to functions that does not need to bind
20388 (check_call): Update call of worse_state.
20389 (ignore_edge_for_nothrow): Update.
20390 (ignore_edge_for_pure_const): Likewise.
20391 (propagate_pure_const): Update calls to worse_state.
20392 (skip_function_for_local_pure_const): Reformat comments.
20394 2016-04-15 Jan Hubicka <jh@suse.cz>
20397 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
20398 (cgraph_node::function_symbol): Likewise.
20399 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
20400 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
20401 (symtab_node::ultimate_alias_target): Add REF parameter.
20402 (symtab_node::binds_to_current_def_p): Declare.
20403 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
20404 (cgraph_node::function_symbol): Likewise.
20405 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
20406 (cgraph_node::get_availability): Likewise.
20407 (cgraph_edge::binds_to_current_def_p): New inline function.
20408 (varpool_node::get_availability): Add REF parameter.
20409 (varpool_node::ultimate_alias_target): Likewise.
20410 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
20411 (symtab_node::binds_to_current_def_p): Likewise.
20412 * varpool.c (varpool_node::get_availability): Likewise.
20414 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
20417 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
20418 Fix mode size check.
20420 2016-04-15 Jakub Jelinek <jakub@redhat.com>
20422 * BASE-VER: Set to 7.0.0.
20424 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
20426 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
20428 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20430 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
20431 architecture revisions.
20433 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
20435 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
20436 * config/i386/i386.c (ix86_using_red_zone): No longer static.
20437 * config/i386/i386.md (stack decrement to push peepholes): Guard
20438 with !x86_using_red_zone ().
20440 2016-04-15 Jakub Jelinek <jakub@redhat.com>
20443 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
20444 to dump_generic_node.
20445 (NIY): Pass also flags to do_niy.
20447 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
20449 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
20450 (simd_clone_vector_of_formal_parm_types)
20451 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
20452 (simd_clone_mangle, simd_clone_create)
20453 (simd_clone_adjust_return_type, create_tmp_simd_array)
20454 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
20455 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
20456 (ipa_simd_modify_function_body, simd_clone_linear_addend)
20457 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
20458 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
20459 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
20460 * omp-simd-clone.c: ... this new file.
20461 (simd_clone_vector_of_formal_parm_types): Make it static.
20462 * Makefile.in (OBJS): Add omp-simd-clone.o.
20464 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
20467 * config/i386/sse.md: Use proper memory operand modifiers.
20470 2016-04-15 Richard Biener <rguenther@suse.de>
20471 Alan Modra <amodra@gmail.com>
20473 PR tree-optimization/70130
20474 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
20475 when alignment stays not the same and no not use the realign
20478 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
20481 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
20482 direct move handlers for KFmode. Change TFmode handlers test from
20483 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
20485 2016-04-14 Jakub Jelinek <jakub@redhat.com>
20488 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
20489 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
20490 (inlined_polymorphic_ctor_dtor_block_p): Use it.
20491 * tree-ssa-live.c (remove_unused_scope_block_p): When
20492 in_ctor_dtor_block, avoid discarding not just BLOCKs with
20493 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
20494 block_ultimate_origin is FUNCTION_DECL.
20495 (remove_unused_locals): If current_function_decl is
20496 polymorphic_ctor_dtor_p, pass initial true to
20497 remove_unused_scope_block_p' is_ctor_dtor_block.
20499 2016-04-14 Martin Sebor <msebor@redhat.com>
20504 * doc/extend.texi (Variable Length): Revert.
20506 2016-04-14 Marek Polacek <polacek@redhat.com>
20507 Jan Hubicka <hubicka@ucw.cz>
20510 * tree.c (verify_type): Disable the canonical type of main variant
20513 2016-04-14 Jason Merrill <jason@redhat.com>
20515 * cfgexpand.c, expr.c: Revert previous change.
20517 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
20519 PR middle-end/70643
20520 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
20521 when building a mem ref for the incoming reduction variable.
20523 2016-04-14 Richard Biener <rguenther@suse.de>
20525 PR tree-optimization/70614
20526 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
20527 loop if the evolution dropped to chrec_dont_know.
20528 (interpret_condition_phi): Likewise.
20530 2016-04-14 Richard Biener <rguenther@suse.de>
20532 PR tree-optimization/70623
20533 * tree-ssa-pre.c (changed_blocks): Make global ...
20534 (compute_antic): ... local here. Move and fix worklist
20535 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
20536 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
20537 worklist handling, dump when ANTIC_IN changed.
20538 (compute_partial_antic_aux): Remove worklist handling.
20539 (init_pre): Do not compute post dominators. Add a comment about
20540 the CFG order chosen.
20541 (fini_pre): Do not free post dominators.
20543 2016-04-13 Martin Sebor <msebor@redhat.com>
20548 * doc/extend.texi (Variable Length): Document C++ specifics.
20550 2016-04-13 Jakub Jelinek <jakub@redhat.com>
20553 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
20554 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
20555 eh edges have been purged.
20558 * tree-sra.c (create_access_replacement,
20559 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
20561 * tree-pretty-print.c (dump_fancy_name): New function.
20562 (dump_decl_name, dump_generic_node): Use it.
20564 2016-04-13 Jason Merrill <jason@redhat.com>
20566 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
20567 * expr.c (expand_expr_real_1): Likewise.
20569 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
20571 * config/i386/i386.md (kunpckhi): Swap operands.
20572 (kunpcksi): Likewise.
20573 (kunpckdi): Likewise.
20574 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
20575 (vec_pack_trunc_<mode>): Likewise.
20577 2016-04-13 Jakub Jelinek <jakub@redhat.com>
20580 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
20582 PR middle-end/70633
20583 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
20584 gimplification turns some element into non-constant.
20587 * rtl.h (convert_memory_address_addr_space_1): New prototype.
20588 * explow.c (convert_memory_address_addr_space_1): No longer static,
20589 add NO_EMIT argument and don't call convert_modes if true, pass
20590 it down recursively, remove break after return.
20591 (convert_memory_address_addr_space): Adjust caller.
20592 * simplify-rtx.c (simplify_unary_operation_1): Call
20593 convert_memory_address_addr_space_1 instead of convert_memory_address,
20594 if it returns NULL, don't simplify.
20596 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
20599 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
20601 2016-04-12 Jakub Jelinek <jakub@redhat.com>
20603 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
20604 Bump the upper SIMDLEN limits, so that if the return type or
20605 characteristic type if the return type is void can be passed in
20606 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
20609 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
20612 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
20613 Do not use "=" constraint on an input constraint.
20614 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
20615 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
20616 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
20617 generates (neg (abs ...)) instead of (abs ...).
20619 2016-04-12 Jakub Jelinek <jakub@redhat.com>
20621 PR rtl-optimization/70596
20622 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
20623 just invalidate LRA data and reset them. Adjust dump wording.
20625 2016-04-12 Martin Liska <mliska@suse.cz>
20628 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
20630 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
20632 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
20633 max_loop_iterations_int.
20634 (tree_unswitch_outer_loop): Likewise.
20635 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
20636 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
20638 2016-04-12 Tom de Vries <tom@codesourcery.com>
20640 PR tree-optimization/68756
20641 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
20642 instead of new_name.
20644 2016-04-12 Jakub Jelinek <jakub@redhat.com>
20646 PR tree-optimization/70602
20647 * tree-sra.c (generate_subtree_copies): Don't write anything into
20648 constant pool decls.
20650 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
20651 regardless whether there are depend clauses or not.
20653 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20656 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
20657 target attribute and pragma from changing the -mfloat128
20658 and -mfloat128-hardware options.
20660 * doc/extend.texi (Additional Floating Types): Document PowerPC
20661 __float128 restrictions.
20663 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
20666 * config/aarch64/driver-aarch64.c
20667 (aarch64_get_extension_string_for_isa_flags): New.
20668 (arch_extension): Rename to...
20669 (aarch64_arch_extension): ...This.
20670 (ext_to_feat_string): Rename to...
20671 (aarch64_extensions): ...This.
20672 (aarch64_core_data): Keep track of architecture extension flags.
20673 (cpu_data): Rename to...
20674 (aarch64_cpu_data): ...This.
20675 (aarch64_arch_driver_info): Keep track of architecture extension
20677 (get_arch_name_from_id): Rename to...
20678 (get_arch_from_id): ...This, change return type.
20679 (host_detect_local_cpu): Update and reformat for renames, handle
20680 extensions through common infrastructure.
20682 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
20685 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
20686 track of a canonical flag name.
20687 (all_extensions): Likewise.
20688 (arch_to_arch_name): Also track extension flags enabled by the arch.
20689 (all_architectures): Likewise.
20690 (aarch64_parse_extension): Move to here.
20691 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
20693 (aarch64_rewrite_selected_cpu): Update for above change.
20694 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
20695 are handled, such that the single explicit value enabled by an
20696 extension is kept seperate from the implicit values it also enables.
20697 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
20699 (aarch64_parse_extension): New.
20700 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
20701 here to config/aarch64/aarch64-protos.h.
20702 (aarch64_parse_extension): Move from here to
20703 common/config/aarch64/aarch64-common.c.
20704 (aarch64_option_print): Update.
20705 (aarch64_declare_function_name): Likewise.
20706 (aarch64_start_file): Likewise.
20707 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
20708 the canonical flag for extensions.
20709 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
20712 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
20714 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
20717 2016-04-09 Tom de Vries <tom@codesourcery.com>
20719 PR tree-optimization/68953
20720 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
20721 first to last subscript.
20723 2016-04-09 Jakub Jelinek <jakub@redhat.com>
20725 PR tree-optimization/70586
20726 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
20729 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
20733 PR tree-optimization/70373
20734 PR middle-end/70533
20735 PR middle-end/70534
20736 PR middle-end/70535
20737 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
20738 clauses for acc parallel reductions as necessary. Error on those
20740 * omp-low.c (scan_sharing_clauses): Don't install variables which
20741 are used in acc parallel reductions.
20742 (lower_rec_input_clauses): Remove dead code.
20743 (lower_oacc_reductions): Add support for reference reductions.
20744 (lower_reduction_clauses): Remove dead code.
20745 (lower_omp_target): Don't remap variables appearing in acc parallel
20747 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
20749 2016-04-08 Jakub Jelinek <jakub@redhat.com>
20751 PR middle-end/70593
20752 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
20753 with multiple SSA_NAME defs, force the outputs other than first
20754 to be live before calling live_track_process_def on each output.
20756 PR rtl-optimization/70574
20757 * fwprop.c (forward_propagate_and_simplify): Don't add
20758 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
20759 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
20760 paradoxical subregs within *loc.
20762 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
20764 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
20765 -ftree-parallelize-loops={0,1}.
20766 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
20767 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
20768 * config/ia64/hpux.h (LIB_SPEC): Likewise.
20769 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
20770 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
20772 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
20775 * asan.c (instrument_derefs): If we get unknown location, extract it
20776 with EXPR_LOCATION.
20777 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
20779 2016-04-08 Tom de Vries <tom@codesourcery.com>
20781 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
20782 implicit firstprivate clause.
20784 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20787 * config/arm/thumb2.md (tst + branch-> lsls + branch
20788 peephole below *orsi_not_shiftsi_si): Require that condition
20789 register is dead after the peephole.
20790 (second peephole after the above): Likewise.
20792 2016-04-08 Alan Modra <amodra@gmail.com>
20795 * builtins.c (fold_builtin_classify): For IBM extended precision,
20796 look at just the high-order double to test for NaN.
20797 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
20798 test just the high double for Inf but both doubles for subnormal
20801 2016-04-07 Jakub Jelinek <jakub@redhat.com>
20803 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
20804 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
20805 node->simdclone->mask_mode != VOIDmode masks.
20806 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
20807 earlier, use it instead of node->simdclone.
20808 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
20809 Set clonei->mask_mode.
20811 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
20814 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
20815 Pass it through to cp_parser_already_scoped_statement.
20816 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
20817 it through to cp_parser_statement.
20818 (cp_parser_statement): Pass IF_P through to
20819 cp_parser_iteration_statement.
20820 (cp_parser_pragma): Adjust call to
20821 cp_parser_iteration_statement.
20823 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
20826 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
20827 resolve a future -Wparentheses warning.
20828 * omp-low.c (scan_sharing_clauses): Likewise.
20829 * tree-parloops.c (eliminate_local_variables): Likewise.
20831 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
20833 PR rtl-optimization/70398
20834 * lra-constraints.c (process_address_1): Check zero scale and code
20835 for reloading with zero scale.
20837 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
20839 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
20840 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
20842 2016-04-06 Jakub Jelinek <jakub@redhat.com>
20844 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
20845 Add support for AVX512F clones, include them by default for
20846 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
20847 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
20850 PR middle-end/70550
20851 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
20852 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
20853 firstprivate clauses.
20854 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
20855 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
20856 (lower_omp_target): Set TREE_NO_WARNING for
20857 non-addressable possibly uninitialized vars which are copied into
20858 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
20860 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
20862 * config/pa/predicates.md (integer_store_memory_operand): Accept
20863 REG+D operands with a large offset when reload_in_progress is true.
20864 (floating_point_store_memory_operand): Likewise.
20866 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20869 * match.pd (nested int casts): Limit to GIMPLE.
20871 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
20874 * ipa-devirt.c (maybe_record_node): Fix comment; use
20875 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
20877 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20879 PR rtl-optimization/70542
20880 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
20881 if there are any uses other than insn or debug insns.
20883 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
20884 Jakub Jelinek <jakub@redhat.com>
20886 PR tree-optimization/70509
20887 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
20888 Shift HOST_WIDE_INT_1U instead of 1.
20890 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
20892 PR tree-optimization/70509
20893 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
20894 of the vector base type for index.
20896 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
20899 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
20901 2016-04-05 Richard Biener <rguenther@suse.de>
20903 PR tree-optimization/70526
20904 * tree-sra.c (build_ref_for_offset): Use prev_base to
20905 extract the alias pointer type.
20907 2016-04-05 Richard Biener <rguenther@suse.de>
20909 * dse.c (struct store_info): Remove alias_set member.
20910 (struct read_info_type): Likewise.
20911 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
20912 spill_deleted, clear_alias_set_lookup): Remove.
20913 (get_group_info): Remove dead base == NULL_RTX case.
20914 (dse_step0): Remove initialization of removed variables.
20915 (delete_dead_store_insn): Reomve alias set dumping.
20916 (free_read_records): Remove alias_set handling.
20917 (canon_address): Remove alias_set_out parameter.
20918 (record_store): Remove spill_alias_set, it's always zero.
20919 (check_mem_read_rtx): Likewise.
20920 (dse_step2): Rename from ...
20921 (dse_step2_nospill): ... this. Adjust.
20922 (scan_stores): Rename from ...
20923 (scan_stores_nospill): ... this.
20924 (scan_reads): Rename from ...
20925 (scan_reads_nospill): ... this.
20926 (scan_stores_spill, scan_reads_spill): Remove.
20927 (dse_step3_scan): Remove for_spills argument which is always false.
20928 (dse_step3): Likewise.
20929 (dse_step5): Rename from ...
20930 (dse_step5_nospill): ... this. Remove alias_set handling.
20931 (rest_of_handle_dse): Adjust.
20933 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20936 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
20937 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
20938 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
20939 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
20941 2016-04-05 Richard Biener <rguenther@suse.de>
20943 PR middle-end/70499
20944 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
20945 non-register type temporaries into SSA.
20947 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
20950 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
20951 calls when sanitizing.
20952 (possible_polymorphic_call_target_p): Fix formatting.
20954 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20955 Jakub Jelinek <jakub@redhat.com>
20957 PR middle-end/70457
20958 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
20959 to ensure a call statement is compatible with a built-in's
20961 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
20964 2016-04-04 Richard Biener <rguenther@suse.de>
20966 PR rtl-optimization/70484
20967 * rtl.h (canon_output_dependence): Declare.
20968 * alias.c (canon_output_dependence): New function.
20969 * dse.c (record_store): Use canon_output_dependence rather
20970 than canon_true_dependence.
20972 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
20975 * cgraph.h (symtab_node::copy_visibility_from): New function.
20976 * symtab.c (symtab_node::copy_visibility_from): New function.
20977 * ipa-visibility.c (optimize_weakref): New function.
20978 (function_and_variable_visibility): Use it.
20980 2016-04-04 Martin Liska <mliska@suse.cz>
20983 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
20984 value that is really in range handled by SBR instruction.
20985 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
20986 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
20987 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
20989 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
20993 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
20994 set, but not for SP_REG operands.
20996 2016-04-02 Martin Sebor <msebor@redhat.com>
20999 * fold-const.c (maybe_nonzero_address): New function.
21000 (fold_comparison): Call it. Fold equality and relational
21001 expressions involving null pointers.
21002 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
21004 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
21006 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
21007 the "Y" constraint (scalar FP 0.0 immediate).
21009 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
21010 Add the "const_double" to the list of operand constraints.
21012 2016-04-01 Jakub Jelinek <jakub@redhat.com>
21014 PR rtl-optimization/70467
21015 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
21016 If low word of the last operand is 0, just emit addition/subtraction
21019 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21022 * config/s390/s390.c (s390_expand_insv): Check for everything
21023 constant instead of just VOIDmode stuff.
21025 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21028 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
21030 2016-04-01 Nathan Sidwell <nathan@acm.org>
21032 * tree.def (TRY_CATCH_EXPR): Correct documentation.
21034 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
21036 PR rtl-optimization/70461
21037 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
21040 2016-03-31 Martin Liska <mliska@suse.cz>
21043 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
21044 a tree value or an immediate integer value to a buffer
21045 that is eventually copied to a BRIG section.
21046 (emit_immediate_operand): Call the function here.
21047 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
21048 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
21049 of class' fields that are removed.
21050 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
21051 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
21052 m_brig_repr_size fields.
21054 2016-03-31 Martin Liska <mliska@suse.cz>
21057 * hsa-gen.c (hsa_function_representation::update_dominance): New
21059 (convert_addr_to_flat_segment): Likewise.
21060 (gen_hsa_memory_set): New alignment argument.
21061 (gen_hsa_ctor_assignment): Likewise.
21062 (gen_hsa_insns_for_single_assignment): Provide alignment
21063 to gen_hsa_ctor_assignment.
21064 (gen_hsa_insns_for_direct_call): Add new argument.
21065 (expand_lhs_of_string_op): New function.
21066 (expand_string_operation_builtin): Likewise.
21067 (expand_memory_copy): New function.
21068 (expand_memory_set): New function.
21069 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
21070 (convert_switch_statements): Change signature.
21071 (generate_hsa): Use a return value of the function.
21072 (pass_gen_hsail::execute): Do not call
21073 convert_switch_statements here.
21074 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
21075 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
21076 (hsa_function_representation::update_dominance): New function.
21078 2016-03-31 Martin Liska <mliska@suse.cz>
21081 * hsa-brig.c (emit_directive_variable): Emit alignment
21082 according to hsa_symbol::m_align.
21083 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
21084 (dump_hsa_symbol): Dump alignment of HSA symbols.
21085 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
21086 (gen_hsa_addr_with_align): New function.
21087 (hsa_bitmemref_alignment): Use newly added function.
21088 (gen_hsa_insns_for_load): Likewise.
21089 (gen_hsa_insns_for_store): Likewise.
21090 (gen_hsa_memory_copy): New argument added.
21091 (gen_hsa_insns_for_single_assignment): Respect
21092 alignment for assignments processed via gen_hsa_memory_copy.
21093 (gen_hsa_insns_for_direct_call): Likewise.
21094 (gen_hsa_insns_for_return): Likewise.
21095 (gen_function_def_parameters): Set default alignment.
21096 * hsa.c (hsa_object_alignment): New function.
21097 (hsa_byte_alignment): Pasted function.
21098 * hsa.h (hsa_symbol::m_align): New field.
21100 2016-03-31 Bin Cheng <bin.cheng@arm.com>
21102 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
21103 scratch field for goto case.
21105 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
21107 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
21109 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
21112 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
21113 (scalar_chain::convert_insn): Call convert_op for reg
21114 moves to handle undefined registers.
21116 2016-03-31 Nathan Sidwell <nathan@acm.org>
21119 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
21120 Assert we don't want to move backwards.
21122 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
21125 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
21127 2016-03-31 Jakub Jelinek <jakub@redhat.com>
21129 PR rtl-optimization/70460
21130 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
21131 with operand from REG_LABEL_OPERAND, instead substitute
21132 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
21133 Don't do anything for REG_NON_LOCAL_GOTO jumps.
21135 2016-03-31 Martin Liska <mliska@suse.cz>
21137 * passes.c (execute_one_pass): Do not call
21138 todo_after for a discarded function.
21140 2016-03-31 Bin Cheng <bin.cheng@arm.com>
21142 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
21143 (no_cost, infinite_cost): Initialize the new field.
21144 (get_computation_cost_at): Record setup cost.
21145 (determine_use_iv_cost_address): Skip cost computation for sub
21146 uses if we can estimate it without losing accuracy.
21148 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
21150 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
21152 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
21153 max_loop_iterations_int.
21154 (tree_unswitch_outer_loop): Likewise.
21155 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
21156 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
21158 2016-03-30 Richard Biener <rguenther@suse.de>
21160 PR middle-end/70450
21161 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
21163 2016-03-30 Jakub Jelinek <jakub@redhat.com>
21166 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
21167 in gen_blendm expander.
21169 2016-03-30 Nick Clifton <nickc@redhat.com>
21172 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
21173 case where we are already provided with an SImode SUBREG.
21175 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
21178 * config/i386/i386.c (ix86_expand_epilogue): Properly check
21179 conflict between DRAP register and __builtin_eh_return.
21181 2016-03-30 Michael Matz <matz@suse.de>
21182 Richard Biener <rguenther@suse.de>
21185 * ipa-polymorphic-call.c (struct type_change_info): Change
21186 speculative to an unsigned allowing to limit the work we do.
21187 (csftc_abort_walking_p): New inline function..
21188 (check_stmt_for_type_change): Limit the number of may-defs
21189 skipped for speculative devirtualization to
21190 max-speculative-devirt-maydefs.
21191 * params.def (max-speculative-devirt-maydefs): New param.
21192 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
21194 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
21197 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
21200 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
21202 PR tree-optimization/59124
21203 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
21204 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
21206 2016-03-29 Jeff Law <law@redhat.com>
21208 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
21210 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21212 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
21215 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
21217 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
21218 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
21219 gcrt0.o if linking dynamically.
21221 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21224 * ipa-devirt.c (methods_equal_p): New function.
21225 (compare_virtual_tables): Use it.
21226 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
21227 * cgraphclones.c (clone_function_name_1): Use
21228 symbol_table::symbol_suffix_separator.
21229 * coverage.c (build_var): Likewise.
21230 * symtab.c (symbol_table::symbol_suffix_separator): New.
21232 2016-03-29 Jakub Jelinek <jakub@redhat.com>
21234 PR rtl-optimization/70429
21235 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
21236 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
21237 mode != result_mode.
21240 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
21242 PR tree-optimization/70405
21243 * ssa-iterators.h (num_imm_uses): Add missing braces.
21245 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
21247 PR rtl-optimization/68695
21248 * ira-color.c (allocno_copy_cost_saving): New.
21249 (improve_allocation): Use it.
21251 2016-03-29 Richard Henderson <rth@redhat.com>
21253 PR middle-end/70355
21254 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
21256 2016-03-29 Richard Biener <rguenther@suse.de>
21258 PR middle-end/70424
21259 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
21260 use alignment returned by get_pointer_alignment_1 if it is
21261 bigger than BITS_PER_UNIT.
21262 * builtins.c (get_pointer_alignment_1): Do not return true
21263 for alignment extracted from SSA info.
21265 2016-03-28 James Bowman <james.bowman@ftdichip.com>
21267 * config/ft32/ft32.opt (mnodiv): New.
21268 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
21269 * doc/invoke.texi (FT32 Options -mnodiv): New.
21271 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
21274 * config/i386/i386.md (define_split, andn): Fix modes.
21276 2016-03-26 Richard Biener <rguenther@suse.de>
21277 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21280 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
21282 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
21283 as 2nd argument to cl_optimization_restore().
21285 2016-03-25 Richard Henderson <rth@redhat.com>
21288 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
21289 * config/aarch64/aarch64-protos.h: Declare it.
21290 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
21292 2016-03-25 Alan Modra <amodra@gmail.com>
21295 * config/rs6000/constraints.md (j): Simplify.
21296 * config/rs6000/predicates.md (easy_fp_constant): Exclude
21298 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
21299 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
21300 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
21301 in all constraint alternatives.
21302 (movtd_64bit_nodm): Delete "j" constraint alternative.
21304 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
21306 * tree-ssa-propagate.c: Enhance docs for
21307 SSA_PROP_NOT_INTERESTING.
21309 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
21311 * doc/extend.texi: Fix typo in documentation to pure attribute.
21313 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
21316 * config/pa/pa.md (bswapdi2): Use a scratch register.
21318 2016-03-24 Richard Henderson <rth@redhat.com>
21320 PR middle-end/69845
21321 * fold-const.c (extract_muldiv_1): Correct test for multiplication
21324 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
21326 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
21327 using ix86_expand_binary_operator instead of gen_andsi3.
21329 2016-03-24 Richard Biener <rguenther@suse.de>
21331 PR tree-optimization/70396
21332 * tree-vect-stmts.c (vectorizable_comparison): Use
21333 get_vectype_for_scalar_type.
21335 2016-03-24 Richard Biener <rguenther@suse.de>
21337 PR middle-end/70370
21338 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
21339 with register bases.
21341 2016-03-24 Richard Biener <rguenther@suse.de>
21343 PR tree-optimization/70372
21344 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
21345 build_all_ones_cst to also handle vector types correctly.
21347 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21350 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
21353 2016-03-23 Marek Polacek <polacek@redhat.com>
21356 * doc/invoke.texi: Document -Wignored-attributes.
21358 2016-03-23 Bin Cheng <bin.cheng@arm.com>
21360 PR tree-optimization/69042
21361 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
21362 parameter from 30 to 40.
21364 2016-03-23 Bin Cheng <bin.cheng@arm.com>
21366 PR tree-optimization/69042
21367 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
21368 for use with constant offset stripped in base.
21370 2016-03-23 Richard Biener <rguenther@suse.de>
21372 PR middle-end/70251
21373 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
21374 mode compatibility check.
21375 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
21377 2016-03-23 Jeff Law <law@redhat.com>
21379 PR tree-optimization/64058
21380 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
21382 (struct ssa_conflicts): Move up earlier in the file.
21383 (conflicts_, var_map_): New static variables.
21384 (initialize_conflict_count): New function to initialize the
21385 CONFLICT_COUNT field for each conflict pair.
21386 (compare_pairs): Lazily initialize the conflict count and use it
21387 as the first tie-breaker.
21388 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
21389 and wipe conflicts_ and map_ around the call to qsort. Remove
21390 special case for 2 coalesce pairs.
21391 * bitmap.c (bitmap_count_unique_bits): New function.
21392 (bitmap_count_bits_in_word): New function, extracted from
21394 (bitmap_count_bits): Use bitmap_count_bits_in_word.
21395 * bitmap.h (bitmap_count_unique_bits): Declare it.
21397 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
21400 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
21401 transparent alias chain for decl assembler name.
21402 * config/sol2.c (solaris_assemble_visibility): Likewise.
21404 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21406 * config/arm/arm1020e.md (1020call_op): Reduce reservation
21408 (v10_fdivs): Likewise.
21409 (v10_fdivd): Likewise.
21411 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21414 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
21415 to not call fclose twice on file.
21417 2016-03-23 Jakub Jelinek <jakub@redhat.com>
21419 PR tree-optimization/70354
21420 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
21421 oprnd0 is wider than oprnd1 and there is a cast from the wider
21422 type to oprnd1, mask it with the mask of the narrower type.
21425 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
21426 Optimize TARGET_STV splitters, if high or low word of last argument
21429 2016-03-22 Jeff Law <law@redhat.com>
21432 tree-ssa-threadbackward.c
21433 (fsm_find_control_statement_thread_paths): Correctly distinguish
21434 between old style jump threads vs FSM jump threads.
21436 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
21439 * config/i386/i386.c (scalar_chain::convert_op): Support
21440 uninitialized register usage case.
21442 2016-03-22 Richard Biener <rguenther@suse.de>
21444 PR middle-end/70251
21445 * genmatch.c (gen_transform): Adjust last parameter to a three-state
21447 (capture::gen_transform): ... to change behavior when substituting
21448 a condition into cond or not-cond expr context.
21449 (dt_simplify::gen_1): Adjust.
21450 * gimple-match-head.c: Include gimplify.h for unshare_expr.
21451 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
21452 last change and instead change to
21453 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
21454 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
21456 2016-03-22 Anthony Green <green@moxielogic.com>
21458 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
21459 issue for moxiebox targets.
21460 (CC1PLUS_SPEC): Ditto.
21462 2016-03-22 Richard Biener <rguenther@suse.de>
21464 PR middle-end/70333
21465 * fold-const.c (extract_muldiv_1): Properly perform multiplication
21468 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
21470 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
21472 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
21475 * config/i386/i386.c (def_builtin): Handle
21476 OPTION_MASK_ISA_AVX512VL to be and-ed with other
21478 (const struct builtin_description bdesc_special_args[]):
21479 Remove duplicate ISA bits.
21481 2016-03-22 Jakub Jelinek <jakub@redhat.com>
21484 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
21485 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
21486 in a way that works also for AVX512BW.
21489 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
21490 instead of source if operands[1] is xmm16 and above and
21491 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
21492 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
21495 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
21496 on assign if (*from_p) is a comparison, set it to
21497 TREE_NO_WARNING (*from_p).
21499 2016-03-21 Jakub Jelinek <jakub@redhat.com>
21501 PR middle-end/70326
21502 * lra.c (restore_scratches): Ignore deleted insns.
21504 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
21505 Jakub Jelinek <jakub@redhat.com>
21507 PR tree-optimization/70317
21508 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
21511 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
21514 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
21515 of ix86_expand_move.
21517 (movti): Use general_operand for operand 1 predicate.
21519 2016-03-21 Martin Liska <mliska@suse.cz>
21521 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
21523 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
21525 2016-03-21 Martin Liska <mliska@suse.cz>
21528 * ipa-icf.c (sem_function::parse): Skip static
21529 constructors and destructors.
21531 2016-03-21 Jakub Jelinek <jakub@redhat.com>
21534 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
21535 function-like macro, peek following token(s) if it is followed
21536 by CPP_OPEN_PAREN token with optional padding in between, and
21537 if not, don't treat it like a macro.
21539 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
21540 Alexander Monakov <amonakov@ispras.ru>
21542 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
21543 for the stabs debug format.
21545 2016-03-21 Richard Biener <rguenther@suse.de>
21547 PR tree-optimization/70310
21548 * tree-vect-generic.c (expand_vector_condition): Fold the built
21551 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
21554 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
21555 Block third alternative for AVX-512VL target,
21557 2016-03-21 Martin Liska <mliska@suse.cz>
21560 * hsa-brig.c (emit_function_directives): Mark unemitted
21561 global variables for emission.
21562 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
21563 (get_symbol_for_decl): Likewise.
21564 * hsa.h (struct hsa_symbol): New flag.
21566 2016-03-21 Richard Biener <rguenther@suse.de>
21568 PR tree-optimization/70288
21569 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
21570 we do not estimate unsimplified all-constant conditionals or
21571 switches as optimized away.
21573 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
21575 PR rtl-optimization/69102
21576 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
21577 when we have a readonly dependency context.
21579 2016-03-18 Jeff Law <law@redhat.com>
21581 PR rtl-optimization/70263
21582 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
21583 (update_equiv_regs): When trying to move a store to after the insn
21584 that sets the source of the store, make sure the store occurs after
21585 the insn that sets the source of the store. When successful note
21586 the REG_EQUIV note created in the dump file.
21588 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
21589 Bernd Schmidt <bschmidt@redhat.com>
21591 * doc/extend.texi: Document more potential problems with basic asms.
21593 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
21595 PR rtl-optimization/70278
21596 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
21599 2016-03-18 Jason Merrill <jason@redhat.com>
21601 * calls.c (load_register_parameters): Fix zero size sibcall logic.
21603 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21605 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
21606 values to 128b regs.
21608 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
21610 PR tree-optimization/70252
21611 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
21612 boolean vector has a proper number of elements.
21613 (supportable_narrowing_operation): Likewise.
21615 2016-03-18 Tom de Vries <tom@codesourcery.com>
21618 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
21620 2016-03-18 Jakub Jelinek <jakub@redhat.com>
21622 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
21623 instead of replace_rtx for DEBUG_INSNs.
21625 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21627 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
21628 load type reservations.
21630 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
21633 * config/pa/constraints.md: Revert 2015-02-13 change. Use
21634 define_constraint for "Q" and "T" constraints.
21636 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
21638 Tweak the pipeline model for Exynos M1
21640 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
21643 2016-03-17 David Malcolm <dmalcolm@redhat.com>
21646 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
21647 where one or both locations aren't within a line_map.
21649 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
21652 * opts.c (finish_options): Don't set flag_pie to the default if
21653 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
21656 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
21658 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
21659 true as ALL_REGS argument to replace_rtx.
21661 2016-03-17 Richard Biener <rguenther@suse.de>
21664 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
21667 2016-03-17 Jakub Jelinek <jakub@redhat.com>
21670 * rtl.h (replace_rtx): Add ALL_REGS argument.
21671 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
21672 equality and assert mode is the same, instead of just rtx pointer
21674 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
21675 true as ALL_REGS argument to replace_rtx.
21677 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
21679 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
21680 for boolean vector with vector mode only.
21681 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
21683 2016-03-17 Nick Clifton <nickc@redhat.com>
21686 * config/rx/rx.c (rx_print_integer): Print negative constants in
21689 2016-03-17 Jakub Jelinek <jakub@redhat.com>
21692 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
21694 2016-03-16 Richard Henderson <rth@redhat.com>
21695 Richard Biener <rguenth@suse.de>
21697 PR middle-end/70240
21698 PR middle-end/68215
21700 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
21701 first operand as is_gimple_condexpr.
21703 PR middle-end/70240
21704 PR middle-end/68215
21706 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
21707 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
21708 Do not gimplify the result.
21709 (do_unop): Adjust call to tree_vec_extract.
21710 (do_binop): Likewise.
21711 (do_compare): Likewise.
21712 (do_plus_minus): Likewise.
21713 (do_negate): Likewise.
21714 (expand_vector_condition): Likewise.
21715 (do_cond): Likewise.
21717 2016-03-16 Richard Henderson <rth@redhat.com>
21720 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
21721 (aarch64_classify_address): Use it.
21722 (aarch64_legitimize_address): Force all subexpressions of PLUS
21723 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
21725 2016-03-16 Jakub Jelinek <jakub@redhat.com>
21726 Richard Biener <rguenth@suse.de>
21729 * rtlanal.c (replace_rtx): For REG, if from is a REG,
21730 return to even if only REGNO is equal, and assert
21733 2016-03-11 Jeff Law <law@redhat.com>
21735 PR rtl-optimization/70224
21736 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
21738 2016-03-16 Richard Henderson <rth@redhat.com>
21740 PR middle-end/70199
21741 * function.h (struct function): Add has_forced_label_in_static.
21742 * gimplify.c (force_labels_r): Set it.
21743 * lto-streamer-in.c (input_struct_function_base): Read it.
21744 * lto-streamer-out.c (output_struct_function_base): Write it.
21745 * tree-inline.c (has_label_address_in_static_1): Remove.
21746 (copy_forbidden): Remove fndecl parameter; test
21747 has_forced_label_in_static.
21748 (inline_forbidden_p): Update call to copy_forbidden.
21749 (tree_versionable_function_p): Likewise.
21750 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
21751 (chkp_versioning): Likewise.
21752 * tree-inline.h (copy_forbidden): Update decl.
21754 2016-03-16 Marek Polacek <polacek@redhat.com>
21757 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
21758 function being thunked if the result type doesn't have fixed size.
21759 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
21760 doesn't have fixed size.
21762 2016-03-16 Bin Cheng <bin.cheng@arm.com>
21764 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
21765 reporting malformed loop nest.
21767 2016-03-16 Tom de Vries <tom@codesourcery.com>
21770 * ipa-devirt.c (possible_polymorphic_call_targets): Move
21771 nodes.length () == 1 test to before first nodes[0] access.
21773 2016-03-16 Tom de Vries <tom@codesourcery.com>
21775 PR tree-optimization/68715
21776 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
21777 single_pred_p test.
21779 2016-03-16 Tom de Vries <tom@codesourcery.com>
21781 PR tree-optimization/68809
21782 * graphite-scop-detection.c (same_close_phi_node): Test if result types
21785 2016-03-16 Carlos O'Donell <carlos@redhat.com>
21786 Sandra Loosemore <sandra@codesourcery.com>
21788 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
21789 on leaf attribute. Mention ELF interposition problems.
21791 2016-03-16 Alan Modra <amodra@gmail.com>
21793 PR rtl-optimization/69195
21794 PR rtl-optimization/47992
21795 * ira.c (indirect_jump_optimize): Ignore artificial defs.
21798 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
21801 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
21803 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21805 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
21807 2016-03-15 Jakub Jelinek <jakub@redhat.com>
21809 PR rtl-optimization/70222
21810 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
21811 optimization if mode is different from result_mode, queue up masking
21812 of the result in outer_op. Formatting fix.
21814 PR middle-end/70239
21815 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
21818 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21820 PR rtl-optimization/69032
21821 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
21822 looping backwards over basic block insns.
21824 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21827 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
21828 to non-speculative when propagating trap bits.
21830 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21832 PR rtl-optimization/63384
21833 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
21834 DEBUG_INSN_P insns.
21836 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21839 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
21840 factored out from ...
21841 (sched_analyze_insn): ... here.
21842 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
21843 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
21844 get_implicit_reg_pending_clobbers in it.
21845 (setup_id_reg_sets): Use setup_id_implicit_regs.
21846 (deps_init_id): Ditto.
21848 2016-03-15 Tom de Vries <tom@codesourcery.com>
21851 * cgraph.c (cgraph_node::get_body): Save, reset and restore
21853 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
21854 execute_function_dump.
21855 (execute_one_pass): Don't dump function if it will be dumped after ipa
21858 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21860 * genrecog.c (match_pattern_2): If pred is NULL don't call
21861 safe_predicate_mode on it.
21863 2016-03-14 Jakub Jelinek <jakub@redhat.com>
21865 PR middle-end/70219
21866 * lra-constraints.c (delete_move_and_clobber): Change assertion
21867 to also allow dregno == 0.
21869 2016-03-14 Richard Henderson <rth@redhat.com>
21872 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
21873 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
21874 (reassociate_bb): Use optimize_vec_cond_expr; avoid
21875 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
21878 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
21881 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
21883 (lra_create_live_ranges_1): initialize hard register biggest_mode to
21885 * lra-constraints.c (split_reg): For hard regs, try to find the
21886 biggest single-register mode used in the function.
21888 2016-03-14 Richard Biener <rguenther@suse.de>
21890 PR tree-optimization/56365
21891 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
21892 constants to compare against.
21894 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
21897 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
21898 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
21899 (define_split for the GPR case): Use int_reg_operand instead of
21900 gpc_reg_operand for the output.
21902 2016-03-14 Tom de Vries <tom@codesourcery.com>
21904 PR tree-optimization/70045
21905 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
21906 create_empty_if_region_on_edge argument.
21908 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
21910 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
21911 (STACK_CHECK_PROTECT): Likewise.
21912 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
21913 (STACK_CHECK_PROTECT): Likewise.
21914 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
21915 (STACK_CHECK_PROTECT): Likewise.
21916 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
21917 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21918 (STACK_CHECK_PROTECT): Likewise.
21920 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
21922 PR rtl-optimization/69307
21923 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
21924 registers in modes that span more than one register.
21926 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
21929 * lra-constraints.c (delete_move_and_clobber): New.
21930 (remove_inheritance_pseudos): Use it.
21932 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
21935 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
21936 the libcall is LCT_THROW.
21937 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
21938 for the checking routine.
21940 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21943 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
21944 optimization if we have direct move.
21945 (roundu32<mode>2_fprs): Likewise.
21947 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
21950 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
21952 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
21953 Arguments swapped. All callers changed. Take reg_renumber into
21954 account, and Calculate and compare register ranges for hard regs.
21956 2016-03-11 Jeff Law <law@redhat.com>
21958 PR tree-optimization/70190
21959 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21960 Handle cases where we can not extract the taken edge, even though we
21961 found a constant value.
21963 PR tree-optimization/64058
21964 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
21965 (num_coalesce_pairs): Move up earlier in file.
21966 (find_coalesce_pair): Initialize the INDEX field for each pair
21968 (compare_pairs): No longer sort on the elements in each pair.
21969 Instead break ties with the index of the coalesce pair.
21971 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21974 * config/aarch64/aarch64-protos.h
21975 (aarch64_save_restore_target_globals): New prototype.
21976 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
21977 Call the above when popping pragma.
21978 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
21980 (aarch64_set_current_function): Rewrite using the above.
21982 2016-03-11 Jakub Jelinek <jakub@redhat.com>
21984 PR tree-optimization/70177
21985 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
21986 (extract_ops_from_tree): ... this. In the 2 argument
21987 overload remove _1 suffix.
21988 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
21989 (extract_ops_from_tree): ... this.
21990 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
21992 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
21993 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
21994 extract_ops_from_tree instead of 2 operand one.
21996 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
21998 PR tree-optimization/70013
21999 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
22000 for constant-pool entries.
22002 2016-03-11 Jakub Jelinek <jakub@redhat.com>
22004 PR rtl-optimization/70174
22005 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
22006 followed by gen_lowpart on force_reg instead of just gen_lowpart.
22008 PR tree-optimization/70169
22009 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
22010 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
22013 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
22014 Jakub Jelinek <jakub@redhat.com>
22017 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
22018 of uninitialized values.
22020 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22022 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
22024 ("*trunctddd2"): New pattern definition.
22025 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
22028 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22030 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
22031 definitions for BFP and DFP rounding modes.
22032 ("fixuns_truncdddi2", "fixuns_trunctddi2")
22033 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
22034 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
22035 ("fix_trunctf<mode>2"): Use the new constants instead of magic
22038 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22040 * config/s390/constraints.md: Adjust comment.
22041 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
22042 s390_decompose_addrstyle_without_index.
22043 * config/s390/predicates.md (shift_count_or_setmem_operand):
22044 Rename to setmem_operand.
22045 * config/s390/s390-protos.h
22046 (s390_decompose_shift_count): Rename to
22047 s390_decompose_addrstyle_without_index.
22048 * config/s390/s390.c (s390_decompose_shift_count)
22049 (s390_mem_constraint, print_shift_count_operand)
22050 (print_operand_address, print_operand): Rename
22051 s390_decompose_shift_count to
22052 s390_decompose_addrstyle_without_index and rename
22053 print_shift_count_operand to print_addrstyle_operand troughout the
22055 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
22056 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
22057 Rename shift_count_or_setmem_operand to setmem_operand.
22058 * config/s390/vx-builtins.md ("vec_insert<mode>")
22059 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
22062 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22065 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
22066 Handle overlapping retval and newval.
22068 2016-03-10 Nick Clifton <nickc@redhat.com>
22071 * config/aarch64/aarch64.c
22072 (aarch64_override_options_after_change_1): When forcing
22073 flag_omit_frame_pointer to be true, use a special value that can
22074 be detected if this function is called again, thus preventing
22075 flag_omit_leaf_frame_pointer from being forced to be false.
22077 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22079 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
22080 Set x_flag_omit_leaf_frame_pointer when handling
22081 -momit-leaf-frame-pointer.
22083 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
22086 * cgraph.c (cgraph_node::dump): Dump split_part and
22087 indirect_call_target.
22088 * cgraph.h (cgraph_node): Add indirect_call_target flag.
22089 * ipa.c (has_addr_references_p): Cleanup.
22090 (is_indirect_call_target_p): New.
22091 (walk_polymorphic_call_targets): Do not mark virtuals that may be
22092 called indirectly as local.
22093 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
22095 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
22098 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
22099 on cxa_pure_virtual.
22101 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
22104 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
22106 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
22109 * tree.c (need_assembler_name_p): Only record main variant type names.
22111 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
22114 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
22115 Always define to 0 or 1.
22116 (TARGET_FIX_ERR_A53_843419): New macro.
22117 * config/aarch64/aarch64-elf-raw.h
22118 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
22119 * config/aarch64/aarch64-linux.h: Likewise.
22120 * config/aarch64/aarch64.c
22121 (aarch64_override_options_after_change_1): Do not default
22122 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
22124 (aarch64_attributes): Handle fix-cortex-a53-843419.
22125 (aarch64_can_inline_p): Likewise.
22126 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
22128 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
22129 Jakub Jelinek <jakub@redhat.com>
22131 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
22132 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
22133 DECL_COMMONS if flag_unconstrained_commons is set.
22134 * tree-dfa.c (get_ref_base_and_extent): Likewise.
22135 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
22136 (funconstrained-commons): Document.
22138 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
22140 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
22141 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
22143 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
22145 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
22146 has a proper number of elements.
22148 2016-03-10 Alan Modra <amodra@gmail.com>
22150 PR rtl-optimization/69195
22151 PR rtl-optimization/47992
22152 * ira.c (recorded_label_ref): Delete.
22153 (update_equiv_regs): Return void.
22154 (indirect_jump_optimize): New function.
22155 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
22156 before regstat_compute_ri. Don't rebuild_jump_labels here.
22157 Delete update_regstat.
22159 2016-03-10 Richard Biener <rguenther@suse.de>
22161 PR tree-optimization/70128
22162 * tree-ssa-structalias.c (set_uids_in_ptset): Set
22163 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
22165 2016-03-09 Jakub Jelinek <jakub@redhat.com>
22167 PR tree-optimization/70152
22168 * tree-sra.c (replace_removed_params_ssa_names): Copy over
22169 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
22172 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
22173 instead of gen_sse2_loadlpd.
22174 * config/i386/sse.md (*vec_concatv2df): Rename to...
22175 (vec_concatv2df): ... this.
22177 PR tree-optimization/70127
22178 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
22180 2016-03-09 David Malcolm <dmalcolm@redhat.com>
22184 * diagnostic-show-locus.c (compatible_locations_p): New function.
22185 (layout::layout): Sanitize ranges using compatible_locations_p.
22187 2016-03-09 David Malcolm <dmalcolm@redhat.com>
22191 * diagnostic-show-locus.c (layout_range::layout_range): Replace
22192 location_range param with three const expanded_locations * and a
22194 (layout::layout): Replace call to
22195 rich_location::lazily_expand_location with get_expanded_location.
22196 Extract the range and perform location expansion here, passing
22197 the results to the layout_range ctor.
22198 * diagnostic.c (source_range::debug): Delete.
22199 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
22200 of rich_location::get_expanded_location.
22201 * gcc-rich-location.c (get_range_for_expr): Delete.
22202 (gcc_rich_location::add_expr): Reimplement to avoid the
22203 rich_location::add_range overload that took a location_range,
22204 passing a location_t instead.
22206 2016-03-09 Richard Biener <rguenther@suse.de>
22207 Jakub Jelinek <jakub@redhat.com>
22209 PR tree-optimization/70138
22210 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
22211 Also skip vect_double_reduction_def.
22213 2016-03-09 Jakub Jelinek <jakub@redhat.com>
22216 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
22217 if the operand is "m".
22219 2016-03-09 Nathan Sidwell <nathan@acm.org>
22221 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
22223 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22225 * config/i386/i386.c (processor_target_table): Fix cost table
22226 intialization order for znver1.
22228 2016-03-08 Jakub Jelinek <jakub@redhat.com>
22230 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
22231 - becuase -> because.
22232 * ipa-reference.c (ignore_module_statics): Likewise.
22233 * cgraph.c (cgraph_node::get_body): Likewise.
22234 * ipa-inline.c (early_inliner): Likewise.
22235 * ipa-devirt.c (types_same_for_odr): Likewise.
22236 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
22237 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
22239 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22241 * tree-ssa-math-opts.c: Fix typo in comment.
22243 2016-03-08 Jakub Jelinek <jakub@redhat.com>
22246 * config/i386/i386.c (scalar_chain::make_vector_copies,
22247 scalar_chain::convert_reg): Call end_sequence in between
22248 get_insns and emit_conversion_insns rather than after both
22251 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
22254 * config/i386/i386.h (machine_function): Add
22255 pc_thunk_call_expanded flag.
22256 (ix86_pc_thunk_call_expanded): New define.
22257 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
22258 (*set_got): Rename insn pattern from set_got.
22259 (*set_got_labelled): Rename inst pattern from set_got_labelled.
22260 * config/i386/i386.c (ix86_compute_frame_layout): Use
22261 ix86_pc_thunk_call_expanded to prevent red-zone.
22263 2016-03-07 Martin Jambor <mjambor@suse.cz>
22265 * hsa.h (hsa_get_ctor_statements): Declare.
22266 (hsa_get_dtor_statements): Likewise.
22267 (hsa_get_kernel_dispatch_type): Likewise.
22268 * hsa.c (hsa_get_ctor_statements): New function.
22269 (hsa_get_dtor_statements): Likewise.
22270 (hsa_get_kernel_dispatch_type): Likewise.
22271 * hsa-brig.c (hsa_cdtor_statements): Removed.
22272 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
22273 hsa_get_dtor_statements.
22274 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
22275 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
22277 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
22279 * config/arm/arm-cores.def (cortex-r8): New.
22280 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
22281 * config/arm/arm-tune.md: Likewise.
22282 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
22284 2016-03-07 Martin Sebor <msebor@redhat.com>
22286 PR rtl-optimization/19705
22287 * doc/invoke.texi (Options That Control Optimization): Clarify
22288 -fno-branch-count-reg.
22290 2016-02-26 Richard Biener <rguenther@suse.de>
22291 Jeff Law <law@redhat.com>
22293 PR tree-optimization/69740
22294 * cfghooks.c (remove_edge): Request loop fixups if we delete
22295 an edge that might turn an irreducible loop into a natural
22297 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
22298 Move after definition of loops_state_clear.
22300 2016-03-07 Bin Cheng <bin.cheng@arm.com>
22302 PR rtl-optimization/69052
22303 * rtlanal.c (commutative_operand_precedence): Set higher precedence
22306 2016-03-07 Tom de Vries <tom@codesourcery.com>
22308 PR tree-optimization/70116
22309 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
22310 is_tm_ending stmts and ubsan/asan internal functions.
22311 (find_duplicate): Use it. Don't test is_tm_ending here.
22313 2016-03-07 Richard Biener <rguenther@suse.de>
22315 PR tree-optimization/70115
22316 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
22317 (propagate_constants_for_unrolling): Use replace_uses_by.
22319 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
22321 PR middle-end/69916
22322 * omp-low.c (struct oacc_loop): Add ifns.
22323 (new_oacc_loop_raw): Initialize it.
22324 (finish_oacc_loop): Clear mask & flags if no ifns.
22325 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
22326 (oacc_loop_xform_loop): Add ifns arg & adjust.
22327 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
22329 2016-03-07 Richard Henderson <rth@redhat.com>
22332 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
22333 (insert_value_copy_on_edge): Likewise.
22335 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22337 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
22339 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22342 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
22344 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
22346 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
22348 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
22350 Fix sseimul type attribute.
22351 * config/i386/znver1.md
22352 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
22353 znver1_sseimul_avx256_load) : Fix the type attribute.
22354 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
22355 pipe usage and latency.
22357 2016-03-05 Jakub Jelinek <jakub@redhat.com>
22360 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
22361 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
22364 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
22367 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
22369 PR rtl-optimization/69941
22370 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
22371 the reg share its mode.
22373 2016-03-04 Jeff Law <law@redhat.com>
22375 PR tree-optimization/69196
22376 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22377 If the both SSA_NAMEs are anonymous, then consider them unassociated
22378 and include the PHI in the statement count.
22380 2016-03-05 Tom de Vries <tom@codesourcery.com>
22382 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
22383 construct in oacc routine. Check for oacc region in oacc routine.
22385 2016-03-04 Jakub Jelinek <jakub@redhat.com>
22388 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
22389 2016-02-22 changes, instead don't recurse if RECUR is already true.
22390 Don't change *dynamic_check if RECUR. Adjust recursive caller
22391 to pass true to the new argument.
22392 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
22395 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
22396 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
22398 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
22400 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
22402 PR rtl-optimization/57676
22403 * lra-assigns.c (lra_assign): Guard test for maximum iterations
22404 with flag_checking.
22406 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
22408 * tree-vect-patterns.c (search_type_for_mask): Handle
22409 comparison of booleans.
22411 2016-03-04 Jakub Jelinek <jakub@redhat.com>
22413 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
22417 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
22418 all other ops that have dw_val_class_die_ref operands,
22419 and DW_OP_GNU_entry_value.
22421 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22423 PR rtl-optimization/69904
22424 * config/arm/arm.c (arm_cannot_copy_insn_p):
22425 Return true for load-exclusive instructions.
22427 2016-03-03 Jakub Jelinek <jakub@redhat.com>
22430 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
22431 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
22432 the pattern no matter if it is used just by non-pattern, pattern
22434 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
22435 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
22436 oprnd1 def_stmt is in pattern, don't look through it.
22438 2016-03-03 Marek Polacek <polacek@redhat.com>
22440 PR middle-end/70050
22441 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
22443 2016-03-03 Martin Liska <mliska@suse.cz>
22445 PR tree-optimization/70043
22446 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
22447 previous statement if we see a debug statement.
22449 2016-03-03 Richard Biener <rguenther@suse.de>
22451 PR tree-optimization/55936
22452 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
22453 parameter and guard unsafe equivalence use.
22454 (vrp_evaluate_conditional_warnv_with_ops): Always use
22455 safe equivalences but not via the quadratic compare_names
22458 2016-03-03 Michael Collison <michael.collison@linaro.org>
22461 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
22462 for operand 1 to s_register_operand. Change predicate for operand
22463 2 to arm_not_immediate_operand.
22465 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
22467 * doc/tm.texi: Regenerated.
22469 2016-03-02 Richard Henderson <rth@redhat.com>
22472 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
22473 simplification when all args are positive non-fixed registers.
22475 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22477 * target.def (lra_p): Specify that new ports should use LRA.
22479 2016-03-02 Jakub Jelinek <jakub@redhat.com>
22482 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
22483 gimplify_type_sizes the type they refer to.
22484 (omp_notice_variable): Handle reference vars to VLAs.
22485 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
22486 reference to VLA decls in the second pass instead of first pass.
22488 2016-03-02 Tom de Vries <tom@codesourcery.com>
22490 PR tree-optimization/68659
22491 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
22492 new_expr == NULL_TREE.
22493 (get_new_name): Handle ADDR_EXPR.
22495 2016-03-02 Bin Cheng <bin.cheng@arm.com>
22497 PR rtl-optimization/69052
22498 * loop-invariant.c (canonicalize_address): New function.
22499 (inv_can_prop_to_addr_use): Check validity of address expression
22500 which is canonicalized by above function.
22502 2016-03-02 Alan Modra <amodra@gmail.com>
22505 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
22508 2016-03-02 Jakub Jelinek <jakub@redhat.com>
22511 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
22512 (*movhi_internal): Put mask moves from and to memory separately
22513 from moves from/to GPRs.
22515 2016-03-02 Richard Biener <rguenther@suse.de>
22517 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
22518 GENERIC expressions in GIMPLE.
22520 2016-03-02 Richard Biener <rguenther@suse.de>
22522 * config/i386/i386.c (type_natural_mode): Fix typo.
22524 2016-03-02 Nick Clifton <nickc@redhat.com>
22526 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
22528 2016-03-02 Richard Biener <rguenther@suse.de>
22529 Uros Bizjak <ubizjak@gmail.com>
22532 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
22534 2016-03-02 Richard Biener <rguenther@suse.de>
22536 PR middle-end/67278
22537 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
22539 2016-03-02 Marek Polacek <polacek@redhat.com>
22542 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
22543 "is promoted to" warning.
22545 2016-03-01 DJ Delorie <dj@redhat.com>
22547 * config.gcc: Deprecate mep-*.
22549 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
22551 PR middle-end/70025
22552 * lra-constraints.c (regno_val_use_in): New.
22553 (match_reload): Use it instead of regno_use_in.
22555 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
22557 PR rtl-optimization/70007
22558 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
22559 references present in REG_EQUAL notes attached to non-SET patterns.
22561 2016-03-01 Jeff Law <law@redhat.com>
22563 PR tree-optimization/69196
22564 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22565 Appropriately clamp the number of statements to copy when the
22566 thread path does not traverse a loop backedge.
22568 PR tree-optimization/69196
22569 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22570 Do count some PHIs in the thread path against the insn count. Decrease
22571 final statement count by one as the control statement in the last
22572 block will get removed. Remove special cased code for handling PHIs
22575 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
22578 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
22579 asm dialect alternatives to explicit GOTPCREL calls.
22581 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
22584 * ira.c (do_reload): Issue warning for generic stack checking here...
22585 * reload1.c (reload): ...instead of here and streamline it.
22587 2016-03-01 Nick Clifton <nickc@redhat.com>
22589 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
22591 2016-03-01 Richard Biener <rguenther@suse.de>
22593 PR tree-optimization/69983
22594 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
22595 types and fall back to operand_equal_p.
22597 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22600 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22602 * config/s390/constraints.md ("jm8"): New constraint.
22603 * config/s390/predicates.md ("const_int_8bitset_operand"): New
22605 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
22607 ("*setmem_long<setmem_and>"): New pattern.
22608 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
22610 ("*setmem_long_31z<setmem_and>"): New pattern.
22611 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
22612 New substitution rules with the required attributes.
22615 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22618 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22620 * gensupport.c (process_substs_on_one_elem): Split loop to
22621 complete mark_operands_used_in_match_dup on all expressions in the
22623 (adjust_operands_numbers): Inline into process_substs_on_one_elem
22624 and remove function.
22626 2016-03-01 Richard Biener <rguenther@suse.de>
22628 PR middle-end/70022
22629 * fold-const.c (fold_indirect_ref_1): Fix range checking for
22630 vector BIT_FIELD_REF extract.
22632 2016-03-01 Richard Biener <rguenther@suse.de>
22634 PR tree-optimization/69994
22635 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
22637 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
22639 PR tree-optimization/69956
22640 * tree-vect-stmts.c (supportable_widening_operation): Support
22641 multi-step conversion of boolean vectors.
22642 (supportable_narrowing_operation): Likewise.
22644 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22646 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
22649 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22651 * config/s390/subst.md (DSI_VI): New mode iterator.
22652 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
22653 * config/s390/vector.md ("vec_set<mode>"): Move expander before
22654 the insn definition.
22655 ("*vec_set<mode>"): Change predicate and add alternative to
22656 support only either register or const_int operands as element
22658 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
22660 ("vec_extract<mode>"): New expander.
22661 ("*vec_extract<mode>"): New insn definition supporting reg and
22662 const_int element selectors.
22663 ("*vec_extract<mode>_plus"): New insn definition supporting
22664 reg+const_int element selectors.
22665 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
22666 following expander+insn definition.
22667 ("<vec_shifts_name><mode>3"): New expander.
22668 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
22670 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22672 * config/s390/s390.md ("*tabort_1"): Change predicate to
22673 nonmemory_operand. Add a second alternative to cover
22674 register as well as const int operands.
22675 ("*tabort_1_plus"): New pattern definition.
22677 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22679 * config/s390/s390.md ("*ashrdi3_cc_31")
22680 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
22681 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
22682 Merge insn definitions into ...
22683 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
22684 New pattern definition.
22685 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
22686 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
22687 ("*ashr<mode>3_and"): Merge insn definitions into ...
22688 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
22689 New pattern definition.
22690 * config/s390/subst.md ("addr_style_op_cc_subst")
22691 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
22692 substitutions patterns plus attributes.
22693 Add ashiftrt to SUBST iterator.
22695 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22697 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
22698 op2 to nonmemory_operand.
22699 ("*<shift>di3_31", "*<shift>di3_31_and"):
22700 Merge into single pattern definition ...
22701 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
22702 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
22703 pattern definition ...
22704 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
22705 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
22708 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22710 * config/s390/predicates.md (const_int_6bitset_operand): New
22712 * config/s390/s390.md: Include subst.md.
22713 ("rotl<mode>3"): New expander.
22714 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
22716 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
22717 * config/s390/subst.md: New file.
22719 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22721 * config/s390/s390.md ("op_type", "atype", "length" attributes):
22722 Remove RRR type. It doesn't really exist.
22723 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
22725 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
22726 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
22727 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
22728 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
22729 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
22730 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
22731 `enabled' attribute.
22733 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22735 * gensupport.c (process_substs_on_one_elem): Split loop to
22736 complete mark_operands_used_in_match_dup on all expressions in the
22738 (adjust_operands_numbers): Inline into process_substs_on_one_elem
22739 and remove function.
22741 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
22744 * config/sparc/sparc.c (NWORDS_UP): Rename to...
22745 (CEIL_NWORDS): ...this. Use CEIL macro.
22746 (compute_fp_layout): Adjust to above renaming.
22747 (function_arg_union_value): Likewise.
22748 (sparc_arg_partial_bytes): Likewise.
22749 (sparc_function_arg_advance): Likewise.
22751 2016-02-29 Jeff Law <law@redhat.com>
22753 PR tree-optimization/70005
22754 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
22755 where an object with a boolean range is compared against a value
22758 PR tree-optimization/69999
22759 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
22760 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
22763 2016-02-29 Richard Biener <rguenther@suse.de>
22765 PR tree-optimization/69994
22766 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
22767 (get_unary_op): Look through nop conversions.
22768 (ops_equal_values_p): New function, look for equality diregarding
22770 (eliminate_plus_minus_pair): Use ops_equal_values_p
22771 (repropagate_negates): Do not use get_unary_op here.
22773 2016-02-29 Martin Liska <mliska@suse.cz>
22775 * system.h: Poison ENABLE_CHECKING macro.
22777 2016-02-29 Martin Liska <mliska@suse.cz>
22779 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
22780 is presented in dump flags.
22781 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
22782 (hsa_regalloc): Likewise.
22784 2016-02-19 Richard Biener <rguenther@suse.de>
22786 PR tree-optimization/69980
22787 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
22788 permutation of those we need to keep.
22790 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
22793 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
22794 (NWORDS_UP): ...this
22795 (init_cumulative_args): Minor tweaks.
22796 (sparc_promote_function_mode): Likewise.
22797 (scan_record_type): Delete.
22798 (traverse_record_type): New function template.
22799 (classify_data_t): New structure type.
22800 (classify_registers): New inline function.
22801 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
22802 exhausted. Instantiate traverse_record_type on classify_registers and
22803 deal with the case of a structure passed in slot #15 with no FP field
22805 (assign_data_t): New structure type.
22806 (compute_int_layout): New static function.
22807 (compute_fp_layout): Likewise.
22808 (count_registers): New inline function.
22809 (assign_int_registers): New static function.
22810 (assign_fp_registers): Likewise.
22811 (assign_registers): New inline function.
22812 (function_arg_record_value_1): Delete.
22813 (function_arg_record_value_2): Likewise.
22814 (function_arg_record_value_3): Likewise.
22815 (function_arg_record_value): Adjust to above changes. Instantiate
22816 traverse_record_type on count_registers to first count the number of
22817 registers to be used and then on assign_registers to assign them.
22818 (function_arg_union_value): Adjust to above renaming.
22819 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
22820 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
22821 case of a structure passed in slot #15
22822 (sparc_function_arg_advance): Likewise.
22823 (function_arg_padding): Minor tweak.
22825 2016-02-29 Richard Biener <rguenther@suse.de>
22827 PR tree-optimization/69720
22828 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
22829 the adjustment_def path for possibly vectorized defs.
22830 (vect_create_epilog_for_reduction): Handle vectorized initial
22833 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
22835 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
22837 2016-02-27 Jeff Law <law@redhat.com>
22840 2016-02-26 Richard Biener <rguenther@suse.de>
22841 Jeff Law <law@redhat.com>
22843 PR tree-optimization/69740
22844 * cfghooks.c (remove_edge): Request loop fixups if we delete
22845 an edge that might turn an irreducible loop into a natural
22848 2016-02-27 Jakub Jelinek <jakub@redhat.com>
22850 PR rtl-optimization/69896
22851 * tree-vect-generic.c (get_compute_type): Avoid single element
22854 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
22856 Rename the AArch64 tuning option and related functions to enable the
22857 Newton series for the reciprocal square root to reflect its
22858 approximative characteristic.
22860 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
22861 function to "aarch64_emit_approx_rsqrt".
22862 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
22863 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
22864 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
22865 (xgene1_tunings): Likewise.
22866 (use_rsqrt_p): Likewise.
22867 (aarch64_emit_swrsqrt): Use new function name.
22868 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
22869 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
22870 text explaining this option.
22871 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
22873 2016-02-26 Jakub Jelinek <jakub@redhat.com>
22876 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22877 complain about -mallow-movmisalign without -mvsx if
22878 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
22880 2016-02-26 Joel Sherrill <joel@rtems.org>
22882 * config.gcc: Add x86_64-*-rtems*.
22883 * config/i386/rtems-64.h: New file.
22885 2016-02-26 Joel Sherrill <joel@rtems.org>
22887 * config.gcc: Add aarch64-*-rtems*.
22888 * config/aarch64/rtems.h: New file.
22890 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
22893 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
22894 shift amount using %h. Add comment.
22896 2016-02-26 Richard Biener <rguenther@suse.de>
22897 Jeff Law <law@redhat.com>
22899 PR tree-optimization/69740
22900 * cfghooks.c (remove_edge): Request loop fixups if we delete
22901 an edge that might turn an irreducible loop into a natural
22904 2016-02-26 Martin Jambor <mjambor@suse.cz>
22906 PR middle-end/69920
22907 * tree-sra.c (sra_modify_assign): Do not remove loads of
22908 uninitialized aggregates to SSA_NAMEs.
22910 2016-02-26 Richard Henderson <rth@redhat.com>
22913 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
22914 pseudo in case the target rtx matches the source of the left
22917 2016-02-26 Martin Jambor <mjambor@suse.cz>
22920 * hsa.h (hsa_type_packed_p): Declare.
22921 * hsa.c (hsa_type_packed_p): New function.
22922 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
22924 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
22925 * hsa-brig.c (emit_basic_insn): Likewise.
22927 2016-02-26 Martin Jambor <mjambor@suse.cz>
22930 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
22932 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
22934 2016-02-26 Martin Jambor <mjambor@suse.cz>
22936 * hsa.h (is_a_helper): New overload for hsa_op_immed for
22937 hsa_op_with_type operands.
22938 (hsa_unsigned_type_for_type): Declare.
22939 * hsa.c (hsa_unsigned_type_for_type): New function.
22940 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
22941 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
22942 the finalizer. Do not emit extra move.
22944 2016-02-26 Martin Jambor <mjambor@suse.cz>
22946 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
22947 atomic operations in private segment.
22949 2016-02-26 Martin Jambor <mjambor@suse.cz>
22951 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
22952 statements to wi->info. Also disallow omp simd constructs.
22953 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
22954 for not gridifying. Dump special string for omp_for.
22956 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22959 * config/aarch64/aarch64.c (aarch64_set_current_function):
22960 Save/restore target globals when switching to
22961 target_option_default_node.
22963 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22966 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
22967 Return 0 if !SHIFT_COUNT_TRUNCATED.
22969 2016-02-26 Jakub Jelinek <jakub@redhat.com>
22970 Eric Botcazou <ebotcazou@adacore.com>
22972 PR rtl-optimization/69891
22973 * dse.c (scan_insn): If we can't figure out memset arguments
22974 or they are non-constant, call clear_rhs_from_active_local_stores.
22976 2016-02-26 Martin Liska <mliska@suse.cz>
22978 * doc/extend.texi: Mention clog10, clog10f an clog10l
22979 in Builtins section.
22981 2016-02-26 Martin Liska <mliska@suse.cz>
22983 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
22985 (resolve_args_picking_1): Likewise.
22986 * dwarf2out.h (struct GTY): Likewise.
22988 2016-02-26 Martin Liska <mliska@suse.cz>
22990 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
22991 with flag_checking.
22992 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
22994 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22995 Martin Liska <mliska@suse.cz>
22997 * doc/install.texi: Mention --enable-valgrind-annotations.
22999 2016-02-26 Richard Biener <rguenther@suse.de>
23001 PR tree-optimization/69551
23002 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
23003 looking through aliases adjust DECL_PT_UID to refer to the
23004 ultimate alias target.
23006 2016-02-25 Martin Liska <mliska@suse.cz>
23008 PR middle-end/69919
23009 * alloc-pool.c (after_memory_report): New variable.
23010 * alloc-pool.h (base_pool_allocator ::release): Do not use
23011 the infrastructure if after_memory_report.
23012 * toplev.c (toplev::main): Mark after memory report.
23014 2016-02-25 Richard Biener <rguenther@suse.de>
23016 PR tree-optimization/48795
23017 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
23019 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
23022 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
23023 offloading is enabled and -fopenacc or -fopenmp is specified.
23024 (CRTOFFLOADEND): Likewise.
23025 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
23026 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
23027 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
23028 (offload_objects_file_name): New static var.
23029 (tool_cleanup): Remove offload_objects_file_name file.
23030 (find_offloadbeginend): Replace with ...
23031 (find_crtoffloadtable): ... this.
23032 (run_gcc): Remove offload_argc and offload_argv.
23033 Get offload_objects_file_name from -foffload-objects=... option.
23034 Read names of object files with offload from this file, pass them to
23035 compile_images_for_offload_targets. Don't call find_offloadbeginend and
23036 don't pass offloadbegin and offloadend to the linker. Don't pass
23037 offload non-LTO files to the linker, because now they're not claimed.
23039 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
23042 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
23043 on builtin_unreachable.
23045 2016-02-25 Jakub Jelinek <jakub@redhat.com>
23047 PR rtl-optimization/69896
23048 * regcprop.c: Include cfgrtl.h.
23049 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
23050 than remembered mode, either delete it (if noop_move_p), or
23051 treat like copy_p but not noop_p instruction.
23053 2016-02-24 Jakub Jelinek <jakub@redhat.com>
23056 * dwarf2out.c (gen_variable_die): Work around buggy LTO
23057 - allow NULL decl for Fortran DW_TAG_common_block variables.
23059 2016-02-24 Jason Merrill <jason@redhat.com>
23061 * common.opt (flifetime-dse): Add -flifetime-dse=1.
23063 2016-02-24 Richard Biener <rguenther@suse.de>
23064 Jakub Jelinek <jakub@redhat.com>
23066 PR middle-end/69760
23067 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
23068 conditionally executed ops to well-defined overflow behavior.
23070 2016-02-24 Jakub Jelinek <jakub@redhat.com>
23072 PR middle-end/69915
23073 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
23076 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23078 PR rtl-optimization/69886
23079 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
23080 argument. Use it when checking validity of set instructions.
23081 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
23082 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
23084 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
23085 * store-motion.c (find_moveable_store): Update
23086 can_assign_to_reg_without_clobbers_p callsite.
23088 2016-02-24 Richard Biener <rguenther@suse.de>
23090 PR middle-end/68963
23091 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
23093 (record_nonwrapping_iv): Do not fall back to the low/high bound
23094 for non-constant IV bases if the stmt is not always executed.
23096 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23098 * config/arm/arm-cores.def (cortex-a32): New entry.
23099 * config/arm/arm-tables.opt: Regenerate.
23100 * config/arm/arm-tune.md: Regenerate.
23101 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
23102 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
23103 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
23104 for -mcpu and -mtune.
23106 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23109 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
23110 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
23111 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
23112 (atomic_loaddi_1): Delete.
23113 (atomic_loaddi): Rewrite expander using the above changes.
23115 2016-02-24 Jakub Jelinek <jakub@redhat.com>
23118 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
23121 2016-02-24 Jakub Jelinek <jakub@redhat.com>
23122 Richard Biener <rguenth@suse.de>
23124 PR middle-end/69909
23125 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
23126 set_mem_attributes if tem is SSA_NAME which got expanded
23129 2016-02-24 Richard Biener <rguenther@suse.de>
23131 PR tree-optimization/69907
23132 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
23133 end of permutations for BB vectorization.
23135 2016-02-24 Christian Bruel <christian.bruel@st.com>
23137 * config/arm/arm-c.c (arm_option_override): Initialize
23138 target_option_current_node.
23139 * config/arm/arm.c (arm_pragma_target_parse): Replace
23140 build_target_option_node call by target_option_current_node.
23141 Set target_option_current_node.
23144 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
23147 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
23148 define_insn_and_split to define_insn.
23149 (zero_extendqi<mode>2_dot2): Same.
23150 (extendqi<mode>2_dot): Same.
23151 (extendqi<mode>2_dot2): Same.
23153 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
23155 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
23156 and add bypass for AES{D,E} and AESMC pairs.
23157 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
23160 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
23162 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
23163 series for reciprocal square root in Exynos M1.
23165 2016-02-23 Martin Sebor <msebor@redhat.com>
23168 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
23169 __builtin_alloca_with_align.
23171 2016-02-23 Richard Henderson <rth@redhat.com>
23173 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
23174 (ix86_register_pragmas): Remove __seg_tls.
23175 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
23176 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
23177 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
23178 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
23179 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
23180 * doc/extend.texi (__seg_tls): Remove item.
23182 2016-02-23 Richard Biener <rguenther@suse.de>
23184 * alloc-pool.h (struct allocation_object): Make id member
23185 conditional on CHECKING_P again.
23186 (get_instance): Adjust.
23187 (base_pool_allocator): Likewise.
23189 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
23191 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
23192 (parallelize_loops): In OpenACC kernels mode, set n_threads to
23194 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
23196 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
23198 2016-02-23 Richard Biener <rguenther@suse.de>
23200 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
23201 * bitmap.h (struct bitmap_usage): Likewise.
23202 (bitmap_move): Declare.
23203 * bitmap.c (register_overhead): Take size_t argument.
23204 (bitmap_move): New function.
23205 * df-problems.c (df_rd_transfer_function): Use bitmap_move
23206 to properly account overhead.
23207 * tree.c (free_node): Use tree_size.
23209 2016-02-23 Jakub Jelinek <jakub@redhat.com>
23212 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
23213 when inverting comparison.
23216 * common.opt (Wunreachable-code): Add Warning flag.
23218 2016-02-23 Mark Wielaard <mjw@redhat.com>
23219 Jakub Jelinek <jakub@redhat.com>
23222 * cgraphunit.c (check_global_declaration): Check main_input_filename
23223 and DECL_SOURCE_FILE are not NULL.
23225 2016-02-23 Martin Jambor <mjambor@suse.cz>
23227 PR tree-optimization/69666
23228 * tree-sra.c (sra_modify_assign): Do not attempt to create
23229 default_def replacements for unscalarizable regions.
23231 2016-02-20 Mark Wielaard <mjw@redhat.com>
23234 * cgraphunit.c (check_global_declaration): Check level of
23235 warn_unused_const_variable and main_input_filename.
23236 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
23237 (-Wunused-variable): For C implies -Wunused-const-variable=1.
23238 (-Wunused-const-variable): Explain levels 1 and 2.
23240 2016-02-22 Jakub Jelinek <jakub@redhat.com>
23243 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
23244 identical arguments. Formatting and spelling fixes.
23247 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
23252 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
23253 and m68k-devices.def.
23254 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
23255 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
23257 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
23259 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
23260 and HImode registers.
23262 2016-02-22 Richard Biener <rguenther@suse.de>
23264 PR tree-optimization/69882
23265 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
23266 preserve permutations present because of gaps.
23267 (vect_supported_load_permutation_p): Always continue checking
23268 permutations after vect_attempt_slp_rearrange_stmts.
23270 2016-02-22 Bin Cheng <bin.cheng@arm.com>
23272 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
23273 min_profitable_estimate, rather than min_profitable_iters.
23275 2016-02-22 Jakub Jelinek <jakub@redhat.com>
23278 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
23279 SImode for last match_operand.
23281 2016-02-22 Martin Liska <mliska@suse.cz>
23283 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
23284 return bitsize - 1 as the return value.
23286 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
23290 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
23291 Handle negative shift counts.
23292 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
23293 force_reg on the shift constant.
23294 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
23295 (lshrsi3_d): Handle negative shift counts.
23297 2016-02-22 Richard Biener <rguenther@suse.de>
23298 Tom de Vries <tom@codesourcery.com>
23300 * graph.c: Include dumpfile.h.
23301 (print_graph_cfg): Split into three overloads.
23302 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
23304 2016-02-22 Tom de Vries <tom@codesourcery.com>
23306 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
23309 2016-02-22 Richard Biener <rguenther@suse.de>
23312 * ipa-inline-transform.c (inline_call): When not updating
23313 overall summaries adjust self size by the growth estimate.
23314 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
23315 hash-set, do not update overall summaries here. Renamed from ...
23316 (inline_to_all_callers): ... this which is now wrapping the
23317 above and performing delayed overall summary update.
23318 (early_inline_small_functions): Delay updating of the overall
23321 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
23323 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
23326 2016-02-19 Jakub Jelinek <jakub@redhat.com>
23329 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
23330 :%* in %:gt() argument.
23331 (greater_than_spec_func): Adjust for expecting only numbers,
23332 if there are more than two numbers, compare the last two.
23334 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
23336 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
23337 -Wnarrowing with -std.
23339 2016-02-19 Jakub Jelinek <jakub@redhat.com>
23342 * expr.c (store_field): Don't use bit-field path if exp is
23343 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
23344 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
23345 and the assignment can be performed by bitwise copy. Formatting
23348 PR middle-end/69838
23349 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
23350 call copy_reg_eh_region_note_forward on before and/or after sequences
23351 and remove note from insn if it no longer can throw.
23354 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
23355 if TARGET_AVX512BW.
23357 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23359 * config/s390/vector.md: Add missing commutative operand markers
23360 to the patterns which qualify for one.
23361 * config/s390/vx-builtins.md: Likewise.
23363 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23365 * config/s390/vector.md (VI, VI_QHS): Add single element vector
23366 types to mode iterators.
23367 (vec_double): ... and mode attribute.
23368 * config/s390/vx-builtins.md (non_vec_int): Likewise.
23370 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23372 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
23373 Change the predicate of op2 from nonimmediate to general and let
23374 reload fix it if necessary.
23376 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23378 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
23380 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23382 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
23385 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23387 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
23388 * config/s390/s390.c (s390_expand_vec_movstr): New function.
23389 * config/s390/s390.md ("movstr<P:mode>"): Call
23390 s390_expand_vec_movstr.
23392 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23394 * config/s390/s390.md: Add missing output modifier for operand 1
23395 to print it as address properly.
23397 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23399 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
23400 * config/s390/2964.md: New file.
23401 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
23402 of insn grouping attributes depending on the CPU level.
23403 (s390_get_unit_mask): New function.
23404 (s390_sched_score): Remove the OOO from the scheduling macros.
23405 Add loop to calculate a score for the instruction mix.
23406 (s390_sched_reorder): Likewise plus improve debug output.
23407 (s390_sched_variable_issue): Rename macros as above. Calculate
23408 the unit distances after actually scheduling an insn. Improve
23410 (s390_sched_init): Clear last_scheduled_unit_distance array.
23411 * config/s390/s390.md: Include 2964.md.
23413 2016-02-18 Jakub Jelinek <jakub@redhat.com>
23416 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
23417 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
23418 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
23419 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
23420 *avx512f_<code>v8div16qi2_mask_1): New insns.
23422 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23425 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
23428 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
23429 earlyclobber from target. Use wF constraint for fused memory
23431 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
23433 2016-02-18 Jakub Jelinek <jakub@redhat.com>
23434 Martin Liska <mliska@suse.cz>
23437 * cfgexpand.c (asan_sanitize_stack_p): New function.
23438 (partition_stack_vars): Use the function.
23439 (expand_stack_vars): Likewise.
23440 (defer_stack_allocation): Likewise.
23441 (expand_used_vars): Likewise.
23443 2016-02-18 Richard Biener <rguenther@suse.de>
23445 PR middle-end/69553
23446 * fold-const.c (operand_equal_p): Properly compare offsets for
23447 IMAGPART_EXPR and ARRAY_REF.
23449 2016-02-18 Nick Clifton <nickc@redhat.com>
23453 * config/arm/arm.c (arm_option_override_internal): Disable
23454 interworking if the target does not support thumb instructions.
23455 (arm_reload_in_hi): Handle the case where a register to register
23456 move needs reloading because there is no simple pattern to handle
23458 (arm_reload_out_hi): Likewise.
23460 2016-02-18 Richard Biener <rguenther@suse.de>
23462 PR middle-end/69854
23463 * match.pd: Don't use fold_binary or fold_unary for folding
23466 2016-02-17 Jakub Jelinek <jakub@redhat.com>
23469 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
23470 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
23471 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
23472 warn on gimple_no_warning_p statements.
23474 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
23476 * doc/extend.texi (C++ Attributes): Correct description of
23477 warn_unused type attribute.
23479 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23481 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
23482 correct instruction.
23484 2016-02-17 Richard Biener <rguenther@suse.de>
23486 PR rtl-optimization/69609
23487 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
23488 (find_traces_1_round): When ending a trace update cached priority
23490 (bb_to_key): Use cached priority when available.
23491 (copy_bb): Initialize cached priority.
23492 (reorder_basic_blocks_software_trace_cache): Likewise.
23494 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23497 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
23499 (aarch64_comparison_operator): Break overly long line into two.
23500 (aarch64_comparison_operation): Likewise.
23501 * config/aarch64/aarch64.md (cstorecc4): Use
23502 aarch64_comparison_operator_mode instead of
23503 aarch64_comparison_operator.
23504 (cstore<mode>4): Likewise.
23505 (aarch64_cstore<mode>): Likewise.
23506 (*cstoresi_insn_uxtw): Likewise.
23507 (cstore<mode>_neg): Likewise.
23508 (*cstoresi_neg_uxtw): Likewise.
23510 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23513 * config/arm/predicates.md (arm_comparison_operator_mode):
23515 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
23516 instead of arm_comparison_operator.
23517 (*mov_negscc): Likewise.
23518 (*mov_notscc): Likewise.
23519 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
23520 (*thumb2_mov_negscc): Likewise.
23521 (*thumb2_mov_negscc_strict_it): Likewise.
23522 (*thumb2_mov_notscc): Likewise.
23523 (*thumb2_mov_notscc_strict_it): Likewise.
23525 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
23527 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
23528 Add missing return.
23530 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
23532 * config/visium/visium.c (machine_libfunc_index): New enum.
23533 (machine_libfuncs): New structure.
23534 (visium_libfuncs): New static variable.
23535 (TARGET_INIT_LIBFUNCS): Define to...
23536 (visium_init_libfuncs): ...this. New function.
23537 (expand_block_move_4): Use the appropriate libfunc.
23538 (expand_block_move_2): Likewise.
23539 (expand_block_move_1): Likewise.
23540 (expand_block_set_4): Likewise.
23541 (expand_block_set_2): Likewise.
23542 (expand_block_set_1): Likewise.
23543 (visium_trampoline_init): Likewise.
23545 2016-02-17 Nick Clifton <nickc@redhat.com>
23547 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
23548 TI's devices.csv file as of March 2016.
23550 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
23553 * opts-global.c (handle_common_deferred_options): Introduce and
23554 initialize two global variables to remember command-line options
23555 specifying a stack-limiting register.
23556 * opts.h: Add extern declarations of the two new global variables.
23557 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
23558 variable based on the values of the two new global variables.
23560 2016-02-16 Jakub Jelinek <jakub@redhat.com>
23563 * common.opt (Wnonnull-compare): New warning.
23564 * doc/invoke.texi (-Wnonnull): Remove text about comparison
23565 of arguments against NULL.
23566 (-Wnonnull-compare): Document.
23567 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
23568 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
23569 * passes.def (pass_warn_nonnull_compare): Add.
23570 * gimple-ssa-nonnull-compare.c: New file.
23572 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
23574 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
23575 AARCH64_EXTRA_TUNE_RECIP_SQRT.
23577 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
23579 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
23580 reciprocal sqrt for -mlow-precision-recip-sqrt.
23582 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
23583 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23585 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
23586 always use lane loads to construct non-constant vectors.
23588 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
23590 * config/aarch64/aarch64.md
23591 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
23592 constraints for operand 3.
23593 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
23595 2016-02-16 Jakub Jelinek <jakub@redhat.com>
23596 Richard Biener <rguenther@suse.de>
23598 PR tree-optimization/69820
23599 * tree-vect-patterns.c (type_conversion_p): Return false if
23600 *orig_type is unsigned single precision or boolean.
23601 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
23604 2016-02-16 Jakub Jelinek <jakub@redhat.com>
23606 PR rtl-optimization/69764
23607 PR rtl-optimization/69771
23608 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
23609 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
23611 2016-02-16 Richard Biener <rguenther@suse.de>
23613 PR tree-optimization/69776
23614 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
23616 (indirect_refs_may_alias_p): Likewise.
23617 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
23618 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
23619 according to tbaa_p.
23620 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
23621 (optimize_stmt): For redundant store discovery do not allow tbaa.
23623 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
23625 PR tree-optimization/69714
23626 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
23627 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
23629 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
23631 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
23632 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
23633 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
23634 * config/arc/arc.c (arc_init): Check FPU options.
23635 (get_arc_condition_code): Handle new CC_FPU* modes.
23636 (arc_select_cc_mode): Likewise.
23637 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
23638 register pair only. Allow access for ARCv2 accumulator.
23639 (gen_compare_reg): Whenever we have FPU support use FPU compare
23641 (arc_reorg): Don't generate brcc insns when FPU compare
23642 instructions are involved.
23643 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
23644 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
23645 floating point emulation.
23646 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
23647 (REVERSE_CONDITION): Add new CC_FPU* modes.
23648 (TARGET_FP_SP_BASE): Define.
23649 (TARGET_FP_DP_BASE): Likewise.
23650 (TARGET_FP_SP_FUSED): Likewise.
23651 (TARGET_FP_DP_FUSED): Likewise.
23652 (TARGET_FP_SP_CONV): Likewise.
23653 (TARGET_FP_DP_CONV): Likewise.
23654 (TARGET_FP_SP_SQRT): Likewise.
23655 (TARGET_FP_DP_SQRT): Likewise.
23656 (TARGET_FP_DP_AX): Likewise.
23657 * config/arc/arc.md (ARCV2_ACC): New constant.
23658 (type): New fpu type attribute.
23659 (SDF): Conditional iterator.
23660 (cstore<mode>, cbranch<mode>): Change expand condition.
23661 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
23662 handles FPU/FPX cases as well.
23663 * config/arc/arc.opt (mfpu): New option.
23664 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
23666 (adddf3, muldf3, subdf3): Removed.
23667 * config/arc/predicates.md (proper_comparison_operator): Recognize
23669 * config/arc/fpu.md: New file.
23670 * doc/invoke.texi (ARC Options): Document mfpu option.
23672 2016-02-16 Richard Biener <rguenther@suse.de>
23674 PR rtl-optimization/69291
23675 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
23676 noce_operand_ok check.
23678 2016-02-16 Tom de Vries <tom@codesourcery.com>
23681 * omp-low.c (simd_clone_create): Remove call to
23682 symtab->call_cgraph_insertion_hooks.
23684 2016-02-16 Jakub Jelinek <jakub@redhat.com>
23686 PR tree-optimization/69802
23687 * tree-ssa-reassoc.c (update_range_test): If op is
23688 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
23689 op == 1 test of precision 1 integral op, otherwise handle
23690 that case as op itself. Fix up formatting.
23691 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
23694 2016-02-16 Richard Biener <rguenther@suse.de>
23696 PR tree-optimization/69586
23697 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
23698 types for conversion sources.
23700 2016-02-16 Richard Biener <rguenther@suse.de>
23702 PR middle-end/69801
23703 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
23704 mask OEP_ADDRESS_OF.
23706 2016-02-16 Alan Modra <amodra@gmail.com>
23709 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
23710 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
23711 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
23713 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
23714 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
23715 (p8_fmrgow_<mode>): Likewise.
23716 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
23718 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
23719 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
23720 to use movdi_internal64. Remove op0_di.
23721 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
23723 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
23725 Add support for the FCCMP insn types
23727 * config/aarch64/aarch64.md (fccmp): Change insn type.
23728 (fccmpe): Likewise.
23729 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
23730 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
23731 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
23732 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
23733 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
23734 * config/arm/types.md (fccmps): Add new insn type.
23735 (fccmpd): Likewise.
23737 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
23739 * alias.c (get_alias_set): Fix a typo in comment.
23741 2016-02-15 Richard Biener <rguenther@suse.de>
23743 PR tree-optimization/69595
23744 * match.pd: Complete range test simplification to true.
23746 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
23748 PR rtl-optimization/69648
23749 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
23750 pic_offset_table_rtx.
23752 PR rtl-optimization/69752
23753 * ira.c (update_equiv_regs): When looking for more than a single SET,
23754 also take other side effects into account.
23756 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
23758 * config/s390/s390.c (s390_function_profiler): Add a new sequence
23759 for z900+ CPUs in 31-bit mode.
23761 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
23763 * common/config/s390/s390-common.c (s390_supports_split_stack):
23765 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
23766 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
23767 * config/s390/s390.c (struct machine_function): New field
23768 split_stack_varargs_pointer.
23769 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
23770 in s390_emit_prologue.
23771 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
23773 (morestack_ref): New global.
23774 (SPLIT_STACK_AVAILABLE): New macro.
23775 (s390_expand_split_stack_prologue): New function.
23776 (s390_live_on_entry): New function.
23777 (s390_va_start): Use split-stack vararg pointer if appropriate.
23778 (s390_asm_file_end): Emit the split-stack note sections.
23779 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
23780 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
23781 (UNSPECV_SPLIT_STACK_CALL): New unspec.
23782 (UNSPECV_SPLIT_STACK_DATA): New unspec.
23783 (split_stack_prologue): New expand.
23784 (split_stack_space_check): New expand.
23785 (split_stack_data): New insn.
23786 (split_stack_call): New expand.
23787 (split_stack_call_*): New insn.
23788 (split_stack_cond_call): New expand.
23789 (split_stack_cond_call_*): New insn.
23791 2016-02-15 Richard Biener <rguenther@suse.de>
23793 PR tree-optimization/69783
23794 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23795 Add trivially correct cases.
23797 2016-02-15 Tom de Vries <tom@codesourcery.com>
23800 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
23802 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
23804 2016-02-15 Richard Biener <rguenther@suse.de>
23806 PR tree-optimization/69776
23807 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
23808 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
23809 indicate whether we can use TBAA to disambiguate against stores.
23810 Use alias-set zero if not.
23811 (visit_reference_op_store): Do not use TBAA when looking up
23813 * tree-ssa-pre.c (compute_avail): Use TBAA here.
23814 (eliminate_dom_walker::before_dom_children): But not when looking
23815 up redundant stores.
23817 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
23819 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
23821 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23823 * config/i386/znver1.md
23824 (znver1_pop, znver1_pop_mem,
23825 znver1_load_imov_double_store,
23826 znver1_load_imov_direct_store,
23827 znver1_load_imov_direct_load,
23828 znver1_load_imov_double_load): Add new.
23829 (znver1_insn, znver1_insn_load): Add icmov type.
23830 (znver1_sseavx_fma,
23831 znver1_sseavx_fma_load,
23833 znver1_avx256_fma_load): Fix pipe usage.
23835 2016-02-14 Alan Modra <amodra@gmail.com>
23838 * reload.c (find_reloads_address_1): For pre/post-inc/dec
23839 with an invalid hard reg, reload just the reg not the entire
23840 pre/post-inc/dec address expression.
23842 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
23845 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
23846 fixed R1_REG scratch reg.
23847 (sibcall_value_pcrel_fdpic): Likewise.
23849 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
23853 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
23855 2016-02-12 Walter Lee <walt@tilera.com>
23857 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
23858 * config/tilegx/t-tilegx: Likewise.
23860 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23863 * diagnostic-show-locus.c (struct line_span): New struct.
23864 (layout::get_first_line): Delete.
23865 (layout::get_last_line): Delete.
23866 (layout::get_num_line_spans): New member function.
23867 (layout::get_line_span): Likewise.
23868 (layout::print_heading_for_line_span_index_p): Likewise.
23869 (layout::get_expanded_location): Likewise.
23870 (layout::calculate_line_spans): Likewise.
23871 (layout::m_first_line): Delete.
23872 (layout::m_last_line): Delete.
23873 (layout::m_line_spans): New field.
23874 (layout::layout): Update comment. Replace m_first_line and
23875 m_last_line with m_line_spans, replacing their initialization
23876 with a call to calculate_line_spans.
23877 (diagnostic_show_locus): When printing source lines and
23878 annotations, rather than looping over a single span
23879 of lines, instead loop over each line_span within
23880 the layout, with an inner loop over the lines within them.
23881 Call the context's start_span callback when changing line spans.
23882 * diagnostic.c (diagnostic_initialize): Initialize start_span.
23883 (diagnostic_build_prefix): Break out the building of the location
23884 part of the string into...
23885 (diagnostic_get_location_text): ...this new function, rewriting
23886 it from nested ternary expressions to a sequence of "if"
23888 (default_diagnostic_start_span_fn): New function.
23889 * diagnostic.h (diagnostic_start_span_fn): New typedef.
23890 (diagnostic_context::start_span): New field.
23891 (default_diagnostic_start_span_fn): New prototype.
23893 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23896 * gcc.c (driver::finalize): Fix cleanup of "specs".
23898 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23902 * gcc.c (driver::driver): Initialize m_option_suggestions.
23903 (driver::~driver): Clean up m_option_suggestions.
23904 (suggest_option): Convert to...
23905 (driver::suggest_option): ...this, and split out into
23906 driver::build_option_suggestions and find_closest_string.
23907 (driver::build_option_suggestions): New function, from
23908 first half of suggest_option. Special-case
23909 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
23910 the sanitizer_opts array. For options of enum types, add the
23911 various enum values to the candidate strings.
23912 (driver::handle_unrecognized_options): Remove "const".
23913 * gcc.h (driver::handle_unrecognized_options): Likewise.
23914 (driver::build_option_suggestions): New decl.
23915 (driver::suggest_option): New decl.
23916 (driver::m_option_suggestions): New field.
23917 * opts-common.c (add_misspelling_candidates): New function.
23918 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
23919 and make non-static.
23920 * opts.h (sanitizer_opts): New array decl.
23921 (add_misspelling_candidates): New function decl.
23922 * spellcheck.c (find_closest_string): New function.
23923 * spellcheck.h (find_closest_string): New function decl.
23925 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23927 PR rtl-optimization/69764
23928 PR rtl-optimization/69771
23929 * optabs.c (expand_binop_directly): For shift_optab_p, force
23930 convert_modes with VOIDmode if xop1 has VOIDmode.
23932 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
23935 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
23936 to correctly determine instrumentation thunks.
23938 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23941 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
23942 type by reference, force lhs on the call.
23945 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
23946 Compute retval and retbnd early in all cases if split_part_return_p
23947 and return_bb is not EXIT. Remove all clobber stmts and reset
23948 all debug stmts that refer to SSA_NAMEs defined in split part,
23949 except if it is retval, in that case replace the old retval with the
23950 lhs of the call to the split part.
23952 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23955 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23957 PR middle-end/66726
23958 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
23959 whose result is used in PHI.
23960 (maybe_optimize_range_tests): Likewise.
23961 (final_range_test_p): Likweise.
23963 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23965 PR middle-end/66726
23966 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
23967 whose result is used in PHI.
23968 (maybe_optimize_range_tests): Likewise.
23969 (final_range_test_p): Likweise.
23971 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23973 * cgraph.c: Spelling fixes - behaviour -> behavior and
23974 neighbour -> neighbor.
23975 * target.def: Likewise.
23976 * sel-sched.c: Likewise.
23977 * config/mips/mips.c: Likewise.
23978 * config/arc/arc.md: Likewise.
23979 * config/arm/cortex-a57.md: Likewise.
23980 * config/arm/arm.c: Likewise.
23981 * config/arm/neon.md: Likewise.
23982 * config/arm/arm-c.c: Likewise.
23983 * config/vms/vms-c.c: Likewise.
23984 * config/s390/s390.c: Likewise.
23985 * config/i386/znver1.md: Likewise.
23986 * config/i386/i386.c: Likewise.
23987 * config/ia64/hpux-unix2003.h: Likewise.
23988 * config/msp430/msp430.md: Likewise.
23989 * config/rx/rx.c: Likewise.
23990 * config/rx/rx.md: Likewise.
23991 * config/aarch64/aarch64-simd.md: Likewise.
23992 * config/aarch64/aarch64.c: Likewise.
23993 * config/nvptx/nvptx.c: Likewise.
23994 * config/bfin/bfin.c: Likewise.
23995 * config/cris/cris.opt: Likewise.
23996 * config/rs6000/rs6000.c: Likewise.
23997 * target.h: Likewise.
23998 * spellcheck.c: Likewise.
23999 * ira-build.c: Likewise.
24000 * tree-inline.c: Likewise.
24001 * builtins.c: Likewise.
24002 * lra-constraints.c: Likewise.
24003 * explow.c: Likewise.
24004 * hwint.h: Likewise.
24005 * targhooks.c: Likewise.
24006 * tree-vect-data-refs.c: Likewise.
24007 * expr.c: Likewise.
24008 * doc/tm.texi: Likewise.
24009 * doc/extend.texi: Likewise.
24010 * doc/install.texi: Likewise.
24011 * doc/md.texi: Likewise.
24012 * tree-ssa-tail-merge.c: Likewise.
24013 * sched-int.h: Likewise.
24014 * match.pd: Likewise.
24015 * sched-ebb.c: Likewise.
24016 * target.def (omit_struct_return_reg): Likewise.
24017 * gimple-ssa-isolate-paths.c: Likewise.
24018 (find_implicit_erroneous_behaviour): Renamed to...
24019 (find_implicit_erroneous_behavior): ... this.
24020 (find_explicit_erroneous_behaviour): Renamed to...
24021 (find_explicit_erroneous_behavior): ... this.
24022 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
24024 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
24026 PR rtl-optimization/64682
24027 PR rtl-optimization/69567
24028 PR rtl-optimization/69737
24029 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
24030 in I2 as well, just lose it.
24032 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24034 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
24036 (aarch64_last_printed_tune_string): Likewise.
24037 (aarch64_declare_function_name): Only output .arch assembler
24038 directive if it will be different from the previously output
24039 directive. Same for .tune comment but only if -dA is set.
24040 (aarch64_start_file): New function.
24041 (TARGET_ASM_FILE_START): Define.
24043 2016-02-11 David Malcolm <dmalcolm@redhat.com>
24046 * Makefile.in (PLUGIN_HEADERS): Add params.list.
24048 2016-02-11 Jakub Jelinek <jakub@redhat.com>
24051 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
24052 -Wmaybe-uninitialized warning.
24054 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
24057 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
24059 2016-02-11 Richard Biener <rguenther@suse.de>
24061 PR rtl-optimization/69291
24062 * ifcvt.c (noce_try_store_flag_constants): Do not allow
24063 subexpressions affected by changing the result.
24065 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
24068 * lra-constraints.c (curr_insn_transform): Find in/out operands
24069 for secondary memory moves. Update dups.
24071 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
24073 PR tree-optimization/69652
24074 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
24075 to nested loop, did source re-formatting, skip debug statements,
24076 add check on statement with volatile operand, remove dead scalar
24079 2016-02-10 Jakub Jelinek <jakub@redhat.com>
24080 Patrick Palka <ppalka@gcc.gnu.org>
24084 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
24085 calls if the return type is TREE_ADDRESSABLE.
24086 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
24087 * ipa-split.c (split_function): Fix doubled "we" in comment.
24088 Use void return type for the split part even if
24089 !split_point->split_part_set_retval.
24091 2016-02-10 Bin Cheng <bin.cheng@arm.com>
24093 PR tree-optimization/68021
24094 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
24095 when computing the value of biv cand by itself.
24097 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
24099 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
24100 (cortexa57_tunings): Likewise.
24101 (cortexa72_tunings): Likewise.
24102 (arch_macro_fusion_pair_p): Add support for AES fusion.
24103 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
24104 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
24105 Allow virtual registers before reload so early scheduling works.
24106 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
24107 correct latency and pipeline.
24108 (cortex_a57_crypto_complex): Likewise.
24109 (cortex_a57_crypto_xor): Likewise.
24110 (define_bypass): Add AES bypass.
24112 2016-02-10 Richard Biener <rguenther@suse.de>
24114 PR tree-optimization/69726
24115 * passes.def: Add DCE pass before late uninit.
24116 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
24117 really fixup if-conversions job.
24119 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
24121 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
24122 (arm_cortex_a57_tune): Likewise.
24123 (aarch_macro_fusion_pair_p): Add support for AES fusion.
24124 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
24126 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
24128 * timevar.def (TV_PHASE_DBGINFO): Delete.
24129 (TV_PHASE_CHECK_DBGINFO): Likewise.
24130 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
24132 2016-02-10 Richard Biener <rguenther@suse.de>
24134 PR tree-optimization/69719
24135 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24136 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
24138 2016-02-09 Andrew Pinski <apinski@cavium.com>
24141 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
24142 get_vcond_mask_icode returns false.
24144 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
24147 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
24148 an ADDIS that adds a pointer to a large constant that sets the
24149 upper16 bits with a load operation.
24151 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
24154 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
24156 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
24158 (vzipq_s16): Likewise.
24159 (vzipq_s32): Likewise.
24160 (vzipq_f32): Likewise.
24161 (vzipq_u8): Likewise.
24162 (vzipq_u16): Likewise.
24163 (vzipq_u32): Likewise.
24164 (vzipq_p8): Likewise.
24165 (vzipq_p16): Likewise.
24167 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
24170 * config/arm/arm.c (neon_endian_lane_map): New function.
24171 (neon_vector_pair_endian_lane_map): New function.
24172 (arm_evpc_neon_vuzp): Allow for big endian lane order.
24173 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
24175 (vuzpq_s16): Likewise.
24176 (vuzpq_s32): Likewise.
24177 (vuzpq_f32): Likewise.
24178 (vuzpq_u8): Likewise.
24179 (vuzpq_u16): Likewise.
24180 (vuzpq_u32): Likewise.
24181 (vuzpq_p8): Likewise.
24182 (vuzpq_p16): Likewise.
24184 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
24187 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
24190 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
24192 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
24193 truncate const_int operand 1 to QImode.
24195 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
24197 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
24198 corresponding to an abnormal edge.
24200 2016-02-09 Tom de Vries <tom@codesourcery.com>
24202 PR tree-optimization/69599
24203 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
24205 (find_func_aliases_for_builtin_call, find_func_clobbers)
24206 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
24209 2016-02-09 Richard Biener <rguenther@suse.de>
24211 PR tree-optimization/69715
24212 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
24213 LHS on calls as non-rewritable.
24215 2016-02-09 Tom de Vries <tom@codesourcery.com>
24218 * lto-wrapper.c (append_diag_options): New function.
24219 (compile_offload_image): Call append_diag_options.
24221 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
24224 * doc/extend.texi (Flag Output Operands): Correct sectioning.
24225 Minor copy-edit to fix verb tenses.
24227 2016-02-08 Jakub Jelinek <jakub@redhat.com>
24229 PR tree-optimization/69209
24230 * ipa-split.c (split_function): If split part is not
24231 returning retval, retval has gimple type but is not
24232 gimple value, force it into a SSA_NAME first.
24234 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
24236 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
24239 2016-02-08 Jason Merrill <jason@redhat.com>
24242 * convert.c (convert_to_integer_1): Check dofold on truncation
24244 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
24245 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
24246 Rename from *_nofold.
24247 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
24248 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
24250 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
24253 * tree.c (build_common_tree_nodes): Remove short_double argument.
24254 All callers changed.
24255 * tree.h (build_common_tree_nodes): Adjust declaration.
24256 * doc/invoke.texi (-fshort-double): Remove documentation.
24257 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
24258 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
24259 * lto-wrapper.c (merge_and_complain, append_compiler_options)
24260 (append_linker_options): Don't handle OPT_fshort_double.
24262 PR rtl-optimization/68730
24263 * lra-remat.c (insn_to_cand_activation): New static variable.
24264 (lra_remat): Allocate and free it.
24265 (create_cand): New arg activation. Initialize a field in
24266 insn_to_cand_activation if it is nonnull.
24267 (create_cands): Pass the activation insn to create_cand when making
24268 a candidate involving an output reload. Reorganize code a little.
24269 (do_remat): Keep track of active status of candidates in a separate
24272 2016-02-08 Richard Biener <rguenther@suse.de>
24274 PR tree-optimization/69719
24275 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24276 Properly use absolute of the difference of the two offsets to
24277 compare or adjust the segment length.
24279 2016-02-08 Richard Biener <rguenther@suse.de>
24280 Jeff Law <law@redhat.com>
24283 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
24284 types for anonymous SSA names.
24286 2016-02-08 Richard Biener <rguenther@suse.de>
24288 PR rtl-optimization/69274
24289 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
24291 2016-02-08 Jeff Law <law@redhat.com>
24293 PR tree-optimization/65917
24294 * tree-ssa-dom.c (record_temporary_equivalences): Record both
24295 equivalences from if (x == y) style conditionals.
24296 (loop_depth_of_name): Remove.
24297 (record_equality): Remove loop depth check.
24298 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
24299 (const_and_copies::record_const_or_copy_raw): New member function.
24300 * tree-ssa-scopedtables.c
24301 (const_and_copies::record_const_or_copy_raw): New, factored out of
24302 (const_and_copies::record_const_or_copy): Call new member function.
24304 2016-02-05 Jeff Law <law@redhat.com>
24306 PR tree-optimization/68541
24307 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
24308 (count_stmts_in_block): New function.
24309 (poor_ifcvt_candidate_code): Likewise.
24310 (is_feasible_trace): Add some heuristics to determine when path
24311 splitting is profitable.
24312 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
24313 is a diamond with a single exit.
24315 2016-02-05 Martin Sebor <msebor@redhat.com>
24318 * doc/invoke.texi: Update -Wplacement-new to take an optional
24321 2016-02-06 Richard Henderson <rth@redhat.com>
24324 * tree.c (tree_nop_conversion_p): Do not strip casts into or
24325 out of non-standard address spaces.
24327 2016-02-05 Jakub Jelinek <jakub@redhat.com>
24329 PR rtl-optimization/69691
24330 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
24332 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
24334 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
24335 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
24336 (*ieee128_mfvsrd_64bit): Likewise.
24337 (*ieee128_mfvsrd_32bit): Likewise.
24339 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
24343 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24345 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
24346 instrumented_version.
24348 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
24350 * doc/invoke.texi (Optimize Options): In table of --param options
24351 rename second occurrence of tracer-min-branch-ratio to
24352 tracer-min-branch-probability, rename
24353 tracer-min-branch-ratio-feedback to
24354 tracer-min-branch-probability-feedback and clarify description,
24355 rename sched-spec-state-edge-prob-cutoff to
24356 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
24357 to selsched-insns-to-rename, rename lto-minpartition to
24358 lto-min-partition, delete reorder-blocks-duplicate and
24359 reorder-blocks-duplicate-feedback.
24361 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24363 * config/s390/s390.c (s390_register_info_set_ranges): Remove
24366 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
24368 * doc/extend.texi: S/390: Correct some typos.
24370 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24372 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
24374 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24377 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
24378 (s390_register_info_gprtofpr): Use new macros above.
24379 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
24381 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
24382 its name. Adjust restore and save gpr ranges.
24383 (s390_register_info_set_ranges): New function.
24384 (s390_register_info): Use new macros above. Call
24385 s390_register_info_set_ranges.
24386 (s390_optimize_register_info): Likewise.
24387 (s390_hard_regno_rename_ok): Use new macros.
24388 (s390_hard_regno_scratch_ok): Likewise.
24389 (s390_emit_epilogue): Likewise.
24390 (s390_can_use_return_insn): Likewise.
24391 (s390_optimize_prologue): Likewise.
24392 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
24394 2016-02-05 Jakub Jelinek <jakub@redhat.com>
24397 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
24399 (ix86_option_override_internal): Disable TARGET_STV even for
24400 -m{incoming,preferred}-stack-boundary=3.
24402 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24404 * config.gcc: Mark deprecated rtems targets as obsolete.
24406 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
24408 PR rtl-optimization/64682
24409 PR rtl-optimization/69567
24410 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
24411 before I2 only if the register is both used and set in I2.
24413 2016-02-04 DJ Delorie <dj@redhat.com>
24415 * config/msp430/msp430.c (msp430_start_function): Add function type.
24417 2016-02-04 Jakub Jelinek <jakub@redhat.com>
24420 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
24422 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
24424 PR rtl-optimization/69577
24426 2015-10-29 Richard Henderson <rth@redhat.com>
24430 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
24431 sse check to the exact conditions of PR 67609.
24433 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
24436 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
24437 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
24438 not allowed into the traditional Altivec registers.
24439 (movtd_64bit_nodm): Likewise.
24440 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
24442 2016-02-04 David Malcolm <dmalcolm@redhat.com>
24444 * config/aarch64/cortex-a57-fma-steering.c
24445 (aarch64_register_fma_steering): Remove "static" from arguments
24448 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
24451 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
24452 twice when complex.
24454 2016-02-04 Mike Frysinger <vapier@gentoo.org>
24456 * doc/invoke.texi: Delete -mno-fma4.
24458 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
24460 PR rtl-optimization/69577
24461 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
24462 (find_subregs_of_mode): Update accordingly. Iterate over partial
24465 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
24467 * config/arm/arm-protos.h (neon_reinterpret): Remove.
24468 * config/arm/arm.c (neon_reinterpret): Remove.
24469 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
24470 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
24471 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
24472 vreinterpretti): Remove.
24473 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
24474 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
24475 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
24476 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
24477 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
24478 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
24479 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
24480 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
24481 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
24482 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
24483 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
24484 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
24485 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
24486 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
24487 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
24488 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
24489 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
24490 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
24491 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
24492 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
24493 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
24494 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
24495 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
24496 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
24497 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
24498 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
24499 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
24500 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
24501 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
24502 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
24503 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
24504 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
24505 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
24506 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
24507 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
24508 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
24509 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
24510 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
24511 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
24512 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
24513 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
24514 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
24515 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
24516 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
24517 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
24518 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
24519 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
24520 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
24521 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
24522 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
24523 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
24524 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
24525 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
24526 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
24527 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
24528 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
24529 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
24530 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
24531 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
24532 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
24533 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
24534 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
24535 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
24536 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
24537 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
24538 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
24539 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
24540 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
24541 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
24542 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
24543 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
24544 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
24545 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
24546 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
24547 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
24548 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
24549 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
24550 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
24551 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
24552 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
24553 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
24554 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
24555 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
24556 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
24557 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
24558 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
24559 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
24560 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
24561 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
24562 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
24563 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
24564 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
24565 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
24566 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
24567 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
24568 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
24569 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
24570 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
24571 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
24572 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
24573 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
24574 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
24575 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
24577 2016-02-04 Martin Liska <mliska@suse.cz>
24580 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
24581 that are gimple_store_p.
24582 (maybe_instrument_call): Likewise.
24584 2016-02-04 Bin Cheng <bin.cheng@arm.com>
24586 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
24587 register scaling out of memory reference and comment why.
24589 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24593 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
24594 folding the source of a SET.
24596 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24600 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
24601 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
24603 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
24607 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
24610 2016-02-04 Christian Bruel <christian.bruel@st.com>
24612 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
24613 * config/arm/arm.c (arm_set_current_function): Likewise.
24615 2016-02-04 Jakub Jelinek <jakub@redhat.com>
24616 Ilya Enkovich <enkovich.gnu@gmail.com>
24617 H.J. Lu <hongjiu.lu@intel.com>
24620 * config/i386/i386.c (convert_scalars_to_vector): Remove
24621 stack alignment fixes.
24622 (ix86_option_override_internal): Disable TARGET_STV if stack
24623 might not be aligned enough.
24624 (ix86_minimum_alignment): Assert that TARGET_STV is false.
24626 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
24628 * config/i386/x86-tune.def: Disable default prefetching
24631 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
24632 Vladimir Makarov <vmakarov@redhat.com>
24635 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
24636 in validating fused toc addresses.
24638 2016-02-03 Jakub Jelinek <jakub@redhat.com>
24641 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
24642 range->m_caret fields if range->m_show_caret_p is false.
24645 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
24646 Force oldval into register if it does not satisfy reg_or_short_operand
24647 predicate. Fix up formatting.
24649 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
24650 Alexandre Oliva <aoliva@redhat.com>
24653 * lra-constraints.c (simplify_operand_subreg): Check additionally
24654 address validity after potential reloading.
24655 (process_address_1): Check insns validity. In case of failure do
24658 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
24661 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
24664 2016-02-02 Jakub Jelinek <jakub@redhat.com>
24666 * wide-int.cc (canonize_uhwi): New function.
24667 (wi::divmod_internal): Use it.
24669 2016-02-02 James Norris <jnorris@codesourcery.com>
24671 * gimplify.c (omp_notice_variable): Add usage check.
24673 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
24675 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
24676 like LE, GE, LT, GT when emitting relational operator.
24678 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
24680 * ira-costs.c (find_costs_and_classes): Add extra argument.
24681 * target.def (ira_change_pseudo_allocno_class): Add parameter.
24682 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
24683 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
24684 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
24685 Add best_class parameter, and return it if not ALL_REGS.
24686 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
24688 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
24689 Update target hook.
24691 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
24693 * config/aarch64/aarch64.c
24694 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
24695 (aarch64_ira_change_pseudo_allocno_class): New function.
24697 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
24700 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
24702 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
24704 * config/avr/avr.c (avr_option_override): Set
24705 PARAM_ALLOW_STORE_DATA_RACES to 1.
24707 2016-02-02 Richard Biener <rguenther@suse.de>
24709 PR tree-optimization/69595
24710 * match.pd: Add range test simplifications to true/false.
24712 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
24714 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
24715 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
24718 2016-02-02 Richard Biener <rguenther@suse.de>
24720 PR tree-optimization/69606
24721 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
24722 info on the result before moving a stmt.
24724 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
24726 PR middle-end/68542
24727 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
24728 branch with vector comparison.
24729 * config/i386/sse.md (VI48_AVX): New mode iterator.
24730 (define_expand "cbranch<mode>4): Add support for conditional branch
24731 with vector comparison.
24732 * tree-vect-loop.c (optimize_mask_stores): New function.
24733 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
24734 has_mask_store field of vect_info.
24735 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
24736 vectorized loops having masked stores after vec_info destroy.
24737 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
24738 correspondent macros.
24739 (optimize_mask_stores): Add prototype.
24741 2016-02-02 Alan Modra <amodra@gmail.com>
24744 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
24747 2016-02-02 Alan Modra <amodra@gmail.com>
24750 * config/rs6000/rs6000.c (need_toc_init): New var, set it
24751 whenever toc_label_name used.
24752 (rs6000_file_start): Don't set up toc section here,
24753 (rs6000_output_function_epilogue): do so here instead,
24754 (rs6000_xcoff_file_start): and here.
24755 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
24756 (load_toc_aix_di): Likewise.
24758 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24760 PR rtl-optimization/69592
24761 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
24762 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
24763 (num_sign_bit_copies_binary_arith_p): New inline function.
24764 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
24766 2016-02-01 Jeff Law <law@redhat.com>
24768 PR tree-optimization/69580
24769 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
24770 * tree-ssa-threadbackward.c
24771 (fsm_find_control_statement_thread_paths): Do not try to walk
24772 through large PHI nodes.
24774 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24776 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
24777 when count is incremented above limit, don't analyze further
24780 * omp-low.c (oacc_parse_default_dims): Avoid
24781 -Wsign-compare warning, make sure value fits into int
24782 rather than just unsigned int.
24784 2016-02-01 Bin Cheng <bin.cheng@arm.com>
24786 PR tree-optimization/67921
24787 * fold-const.c (split_tree): New parameters. Convert pointer
24788 type variable part to proper type before negating.
24789 (fold_binary_loc): Pass new arguments to split_tree.
24791 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
24793 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
24794 (nvptx_goacc_validate_dims): Extend to handle global defaults.
24795 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
24796 * doc/tm.texti: Rebuilt.
24797 * doc/invoke.texi (fopenacc-dim): Document.
24798 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
24799 (append_compiler_options): Likewise.
24800 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
24801 (oacc_parse_default_dims): New.
24802 (oacc_validate_dims): Add USED arg. Select non-unity default when
24804 (oacc_loop_fixed_partitions): Return mask of used partitions.
24805 (oacc_loop_auto_partitions): Emit dump info.
24806 (oacc_loop_partition): Return mask of used partitions.
24807 (execute_oacc_device_lower): Parse default dimension arg. Adjust
24808 loop partitioning and validation calls.
24810 2016-02-01 Richard Biener <rguenther@suse.de>
24812 PR middle-end/69556
24813 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
24815 2016-02-01 Richard Biener <rguenther@suse.de>
24817 PR tree-optimization/69574
24818 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
24819 of asserting return chrec_dont_know.
24821 2016-02-01 Martin Liska <mliska@suse.cz>
24823 * mem-stats-traits.h: Add copyright header.
24824 * mem-stats.h: Likewise.
24826 2016-02-01 Richard Biener <rguenther@suse.de>
24828 PR tree-optimization/69579
24829 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
24830 Do not propagate through abnormal PHI results.
24832 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
24834 * postreload.c (reload_cse_simplify): Remove dead code.
24836 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24838 PR rtl-optimization/69570
24839 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
24840 if there is more than one set, not if there is a single set.
24842 2016-02-01 Richard Henderson <rth@redhat.com>
24845 * combine.c (make_compound_operation): When looking through a
24846 subreg, make sure to re-extend to the width of the outer mode.
24848 2016-01-30 Jakub Jelinek <jakub@redhat.com>
24850 PR tree-optimization/69546
24851 * wide-int.cc (wi::divmod_internal): For unsigned division
24852 where both operands fit into uhwi, if o1 is 1 and o0 has
24853 msb set, if divident_prec is larger than bits per hwi,
24854 clear another quotient word and return 2 instead of 1.
24855 Similarly for remainder with msb in HWI set, if dividend_prec
24856 is larger than bits per hwi.
24858 2016-01-29 Martin Jambor <mjambor@suse.cz>
24860 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
24861 Use short lowercase names.
24862 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
24863 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
24864 acq_rel one. Protect warning agains segfaults if
24865 get_memory_order_name returns NULL.
24866 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
24867 with release semantics. Do not warn if get_memory_order already did.
24868 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
24869 semantics. Fix check for relaxed or acquire semantics. Do not warn
24870 if get_memory_order already did.
24872 2016-01-29 Sebastian Pop <s.pop@samsung.com>
24874 * doc/install.texi: Document that isl-0.16 is supported.
24876 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
24879 * config/i386/constraints.md (Bm): Describe as special memory
24881 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
24882 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24883 * genpreds.c (struct constraint_data): Add is_special_memory.
24884 (have_special_memory_constraints, special_memory_start): New
24886 (special_memory_end): Ditto.
24887 (add_constraint): Add new arg is_special_memory. Add code to
24888 process its true value. Update have_special_memory_constraints.
24889 (process_define_constraint): Pass the new arg.
24890 (process_define_register_constraint): Ditto.
24891 (choose_enum_order): Process special memory.
24892 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
24893 function insn_extra_special_memory_constraint.
24894 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24895 * gensupport.c (process_rtx): Process
24896 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24897 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
24898 * ira-lives.c (single_reg_class): Use
24899 insn_extra_special_memory_constraint.
24900 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
24901 * lra-constraints.c (process_alt_operands): Ditto.
24902 (curr_insn_transform): Use insn_extra_special_memory_constraint.
24903 * recog.c (asm_operand_ok, preprocess_constraints): Process
24905 * reload.c (find_reloads): Ditto.
24906 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
24907 * stmt.c (parse_input_constraint): Use
24908 insn_extra_special_memory_constraint.
24910 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
24913 * lra-splill.c (lra_final_code_change): Revert r229087 by
24914 removing all sub-registers.
24916 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
24919 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
24921 2016-01-29 Jakub Jelinek <jakub@redhat.com>
24924 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
24925 SSE1, copy target into the temporary reg first before recursing
24928 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
24930 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
24933 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
24935 * ginclude/stdarg.h: Test __cplusplus instead of
24936 __GXX_EXPERIMENTAL_CXX0X__.
24938 2016-01-29 Richard Biener <rguenther@suse.de>
24940 PR tree-optimization/69547
24941 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
24942 Do not mark clobbers necessary.
24943 (mark_all_reaching_defs_necessary_1): Likewise.
24945 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24947 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
24948 declaration name with %qs and print it in both error messages.
24949 Also fix indentation.
24951 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24954 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
24955 trailing blank line from error message.
24957 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
24960 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
24963 2016-01-29 Richard Biener <rguenther@suse.de>
24965 PR middle-end/69537
24966 * match.pd: Allow all integral types when simplifying a
24967 widening or sign-changing conversion.
24969 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24971 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
24972 back to setting codegen_error to fail codegen.
24974 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
24977 * config/i386/constraints.md (C): Only accept constant zero operand.
24978 (BC): New constraint.
24979 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
24980 instead of C constraint.
24981 * doc/md.texi (Machine Constraints): Update description
24984 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
24987 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
24989 2016-01-28 Jakub Jelinek <jakub@redhat.com>
24991 PR middle-end/69542
24992 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
24995 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
24997 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
24998 branches if using guessed profile.
25000 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
25002 * graphite-optimize-isl.c (optimize_isl): Fix dump.
25004 2016-01-28 Richard Henderson <rth@redhat.com>
25007 * config/aarch64/aarch64-modes.def (CC_Cmode): New
25008 * config/aarch64/aarch64-protos.h: Update.
25009 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
25010 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
25011 (aarch64_get_condition_code_1): Handle CC_Cmode.
25012 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
25013 (*add<mode>3_compareC_cconly_imm): New.
25014 (*add<mode>3_compareC_cconly): New.
25015 (*add<mode>3_compareC_imm): New.
25016 (add<mode>3_compareC): New.
25017 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
25018 to be first. Use aarch64_carry_operation.
25019 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
25020 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
25021 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
25022 (subti3): Use subdi3_compare1.
25023 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
25024 (sub<mode>3_compare1): New.
25025 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
25026 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
25027 (*subsi3_carryin_uxtw): Likewise.
25028 (*ngc<mode>, *ngcsi_uxtw): Likewise.
25029 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
25030 * config/aarch64/iterators.md (DWI): New.
25031 * config/aarch64/predicates.md (aarch64_carry_operation): New.
25032 (aarch64_borrow_operation): New.
25034 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
25036 * graphite-optimize-isl.c (optimize_isl): Print a different debug
25037 message when isl does not return a valid schedule.
25039 2016-01-28 Sebastian Pop <s.pop@samsung.com>
25041 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
25042 Remove comments from class declarations: they are already in the code
25045 2016-01-28 Sebastian Pop <s.pop@samsung.com>
25047 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
25049 (ternary_op_to_tree): Same.
25050 (unary_op_to_tree): Same.
25051 (nary_op_to_tree): Same.
25052 (gcc_expression_from_isl_expr_op): Same.
25053 (gcc_expression_from_isl_expression): Same.
25054 (graphite_create_new_loop): Same.
25055 (graphite_create_new_loop_guard): Same.
25056 (build_iv_mapping): Same.
25057 (graphite_create_new_guard): Same.
25058 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
25059 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
25061 2016-01-28 Sebastian Pop <s.pop@samsung.com>
25063 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
25064 instead of setting codegen_error to fail codegen.
25066 2016-01-28 Jason Merrill <jason@redhat.com>
25068 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
25070 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
25072 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
25073 Remove CONST_INT_P check in CCMP cost calculation.
25075 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
25077 * config/aarch64/aarch64.c (generic_vector_cost):
25078 Set vec_permute_cost.
25079 (cortexa57_vector_cost): Likewise.
25080 (exynosm1_vector_cost): Likewise.
25081 (xgene1_vector_cost): Likewise.
25082 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
25083 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
25084 Add vec_permute_cost entry.
25086 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
25088 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
25090 (add<mode>3_compare0): Likewise.
25091 (addsi3_compare0_uxtw): Likewise.
25092 (add<mode>3nr_compare0): Likewise.
25093 (compare_neg<mode>): Likewise.
25094 (<optab><mode>3): Likewise.
25096 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
25098 * tree-vect-stmts.c (vectorizable_comparison): Add
25099 NULL check for vectype.
25101 2016-01-28 Richard Biener <rguenther@suse.de>
25103 PR tree-optimization/69466
25104 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
25105 Account for PHIs we couldn't duplicate.
25107 2016-01-28 Martin Liska <mliska@suse.cz>
25110 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
25111 instead of ENABLE_VALGRIND_CHECKING.
25113 2016-01-27 Richard Henderson <rth@redhat.com>
25116 * lra-remat.c (subreg_regs): New.
25117 (dump_candidates_and_remat_bb_data): Dump it.
25118 (operand_to_remat): Reject if operand in subreg_regs.
25119 (set_bb_regs): Collect subreg_regs.
25120 (lra_remat): Init and free subreg_regs. Compute
25121 calculate_local_reg_remat_bb_data before create_cands.
25123 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
25126 * config/i386/i386.c (ix86_update_stack_boundary): Don't
25127 change stack_alignment_needed for __tls_get_addr call.
25129 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
25131 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
25133 2016-01-27 Jeff Law <law@redhat.com>
25135 PR tree-optimization/68398
25136 PR tree-optimization/69196
25137 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
25138 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
25139 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
25140 Only count PHIs in the last block in the path. The others will
25141 const/copy propagate away. Add heuristic to allow more irreducible
25142 subloops to be created when it is likely profitable to do so.
25144 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
25145 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
25146 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
25148 2016-01-27 Jakub Jelinek <jakub@redhat.com>
25151 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
25152 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
25153 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
25154 * tree-streamer-in.c: Include asan.h.
25155 (streamer_get_builtin_tree): For builtins in sanitizer
25156 range call initialize_sanitizer_builtins and retry.
25158 2016-01-27 Ian Lance Taylor <iant@google.com>
25160 * common.opt (fkeep-gc-roots-live): New undocumented option.
25161 * tree-ssa-loop-ivopts.c (add_candidate_1): If
25162 -fkeep-gc-roots-live, skip pointers.
25163 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
25166 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
25169 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
25170 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
25172 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
25175 * configure.ac: NetBSD provides SSP in its C library.
25176 * configure: Updated.
25178 2016-01-27 Richard Biener <rguenther@suse.de>
25180 PR tree-optimization/69166
25181 * tree-vect-loop.c (vect_is_simple_reduction): Always check
25182 reduction code for commutativity / associativity.
25184 2016-01-27 Martin Jambor <mjambor@suse.cz>
25186 PR tree-optimization/69355
25187 * tree-sra.c (analyze_access_subtree): Correct hole detection when
25188 total_scalarization fails.
25190 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
25192 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
25195 2016-01-27 Christian Bruel <christian.bruel@st.com>
25198 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
25199 Move arm_reset_previous_fndecl and set_target_option_current_node in
25200 the conditional part. Call save_restore_target_globals.
25201 * config/arm/arm.c (arm_set_current_function):
25202 Refactor to better support #pragma target and attribute mix.
25203 Call save_restore_target_globals.
25204 * config/arm/arm-protos.h (save_restore_target_globals): New function.
25206 2016-01-27 Martin Liska <mliska@suse.cz>
25208 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
25209 reference for an HSA kernel and its host function.
25211 2016-01-27 Jakub Jelinek <jakub@redhat.com>
25213 PR tree-optimization/69399
25214 * wide-int.h (wi::lrshift): For larger precisions, only
25215 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
25217 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
25219 * config/arc/predicates.md (proper_comparison_operator): Reject
25220 constant-constant comparison.
25222 2016-01-26 Tom de Vries <tom@codesourcery.com>
25224 PR tree-optimization/69110
25225 * tree-data-ref.c (initialize_data_dependence_relation): Handle
25226 DR_NUM_DIMENSIONS == 0.
25228 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
25229 Sebastian Pop <s.pop@samsung.com>
25231 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
25232 isl_ast_op_cond and isl_ast_op_select.
25233 (gcc_expression_from_isl_expr_op): Same.
25235 2016-01-26 Jason Merrill <jason@redhat.com>
25238 * tree.c (recompute_constructor_flags): Split out from
25240 (verify_constructor_flags): New.
25241 * tree.h: Declare them.
25243 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
25245 PR rtl-optimization/69217
25246 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
25247 are no TYPE_FIELDS set for the record type.
25249 2016-01-26 Jakub Jelinek <jakub@redhat.com>
25252 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
25253 toc_label_name unconditionally.
25254 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
25255 SYMBOL_REF string. Use toc_label_name instead of constructing
25257 (rs6000_elf_declare_function_name): Use toc_label_name instead of
25258 constructing LCTOC1.
25260 2016-01-26 Martin Sebor <msebor@redhat.com>
25263 * doc/extend.texi (Common Type Attributes): Move text that talks about
25264 attribute packed from attribute aligned to the section discussing
25265 the former attribute for clarity.
25267 2016-01-26 Richard Henderson <rth@redhat.com>
25269 PR middle-end/60908
25270 * trans-mem.c (tm_region_init): Mark entry block as visited.
25272 2016-01-26 David Malcolm <dmalcolm@redhat.com>
25275 * diagnostic-show-locus.c (layout::print_source_line): Replace
25276 call to pp_newline with call to layout::print_newline.
25277 (layout::print_annotation_line): Likewise.
25278 (layout::move_to_column): Likewise.
25279 (layout::print_any_fixits): After printing any fixits, print a
25280 trailing newline, if necessary.
25281 (layout::print_newline): New method, resetting any colorization
25283 (diagnostic_show_locus): Move the pp_newline to before the
25284 early bailout. Remove dummy block enclosing the layout instance.
25285 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
25286 of pp_newline_and_flush with pp_flush.
25287 (diagnostic_append_note): Delete use of pp_newline.
25288 (diagnostic_append_note_at_rich_loc): Delete.
25289 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
25290 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
25291 when newline characters are added to the buffer.
25293 2016-01-26 Michael Matz <matz@suse.de>
25295 * configure.ac (ac_cv_std_swap_in_utility): New test.
25296 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
25297 * configure: Regenerate.
25298 * config.in: Regenerate.
25300 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
25302 * config/arc/arc.md (cstoresi4): Force operand into register.
25303 (arcset<code>): Fix predicate.
25304 (arcsetltu): Likewise.
25305 (arcsetgeu): Likewise.
25306 (arcsethi): Likewise.
25307 (arcsetls): Likewise.
25309 2016-01-26 Jakub Jelinek <jakub@redhat.com>
25311 PR tree-optimization/69483
25312 * gimple-fold.c (canonicalize_constructor_val): Return NULL
25313 if base has error_mark_node type.
25315 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
25318 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
25319 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
25321 (vget_lane_f16): Handle big-endian.
25322 (vgetq_lane_f16): Likewise.
25323 (vset_lane_f16): Likewise.
25324 (vsetq_lane_f16): Likewise.
25325 * config/arm/iterators.md (VQXMOV): Add V8HF.
25326 (VDQ): Add V4HF and V8HF.
25327 (V_reg): Handle V4HF and V8HF.
25328 (Is_float_mode): Likewise.
25329 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
25330 neon_vdup_nv8hf): New patterns.
25331 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
25332 Use VD_LANE iterator.
25333 (neon_vld1_dup<mode>): Use VQ2 iterator.
25335 2016-01-26 Nathan Sidwell <nathan@acm.org>
25337 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
25338 (set_oacc_fn_attrib): Add IS_KERNEL arg.
25339 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
25340 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
25341 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
25342 (oacc_validate_dims): Add LEVEL arg, don't return level.
25343 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
25344 oacc_validate_dims.
25345 (execute_oacc_device_lower): Adjust, add more dump output.
25346 * tree-ssa-loop.c (gate_oacc_kernels): Use
25347 oacc_fn_attrib_kernels_p.
25348 * tree-parloops.c (create_parallel_loop): Adjust
25349 set_oacc_fn_attrib call.
25351 2016-01-26 Jakub Jelinek <jakub@redhat.com>
25354 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
25355 (append_compiler_options): Handle -fcilkplus.
25356 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
25358 2016-01-26 Nick Clifton <nickc@redhat.com>
25361 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
25362 been marked as DECL_ONE_ONLY but we do not the means to make it
25363 so, then do not allow it to bind locally.
25365 2016-01-26 Jakub Jelinek <jakub@redhat.com>
25368 * opts.h (parse_sanitizer_options): New prototype.
25369 * opts.c (sanitizer_opts): New array.
25370 (parse_sanitizer_options): New function.
25371 (common_handle_option): Use parse_sanitizer_options.
25373 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
25376 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
25377 alignment adjustment to ...
25378 (ix86_update_stack_boundary): Here. Don't over-align stack for
25380 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
25381 if __tls_get_addr is called.
25383 2016-01-26 Christian Bruel <christian.bruel@st.com>
25385 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
25387 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
25389 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
25391 2016-01-26 Richard Biener <rguenther@suse.de>
25393 PR middle-end/69467
25394 * match.pd: Guard X * CST CMP 0 pattern with single_use.
25396 2016-01-26 Richard Biener <rguenther@suse.de>
25398 PR tree-optimization/69452
25399 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
25400 (move_computations_dom_walker::before_dom_children): Rename
25402 (move_computations_worker): This.
25403 (move_computations): Perform an RPO rather than a DOM walk.
25405 2016-01-26 Jakub Jelinek <jakub@redhat.com>
25408 * combine.c (combine_instructions): For REG_EQUAL note with
25409 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
25410 to the underlying register.
25411 * doc/rtl.texi (REG_EQUAL): Document the behavior of
25412 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
25414 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
25417 * config/aarch64/aarch64-builtins.c
25418 (aarch64_init_simd_builtin_types): Do not set structural
25419 equality to __Poly{8,16,64,128}_t types.
25421 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
25423 PR tree-optimization/69400
25424 * wide-int.cc (wi_pack): Take the precision as argument and
25425 perform canonicalization here rather than in the callers.
25426 Use the main loop to handle all full-width HWIs. Add a
25427 zero HWI if in_len isn't a full result.
25428 (wi::divmod_internal): Update accordingly.
25429 (wi::mul_internal): Likewise. Simplify.
25431 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
25432 Sebastian Pop <s.pop@samsung.com>
25434 * graphite-poly.c (apply_poly_transforms): Simplify.
25435 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
25436 (print_isl_map): Same.
25437 (print_isl_union_map): Same.
25438 (print_isl_schedule): New.
25439 (debug_isl_schedule): New.
25440 * graphite-dependences.c (scop_get_reads): Do not call
25441 isl_union_map_add_map that is undocumented isl functionality.
25442 (scop_get_must_writes): Same.
25443 (scop_get_may_writes): Same.
25444 (scop_get_original_schedule): Remove.
25445 (scop_get_dependences): Do not call isl_union_map_compute_flow that
25446 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
25447 (compute_deps): Remove.
25448 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
25449 (debug_schedule_ast): New.
25450 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
25451 set_separate_option.
25452 (graphite_regenerate_ast_isl): Add dump.
25453 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
25454 from scop->transformed_schedule.
25455 (graphite_regenerate_ast_isl): Add more dump.
25456 * graphite-optimize-isl.c (optimize_isl): Set
25457 scop->transformed_schedule. Check whether schedules are equal.
25458 (apply_poly_transforms): Move here.
25459 * graphite-poly.c (apply_poly_transforms): ... from here.
25460 (free_poly_bb): Static.
25461 (free_scop): Static.
25462 (pbb_number_of_iterations_at_time): Remove.
25463 (print_isl_ast): New.
25464 (debug_isl_ast): New.
25465 (debug_scop_pbb): New.
25466 * graphite-scop-detection.c (print_edge): Move.
25467 (print_sese): Move.
25468 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
25469 (build_scop_scattering): Remove.
25470 (create_pw_aff_from_tree): Assert instead of bailing out.
25471 (add_condition_to_pbb): Remove unused code, do not fail.
25472 (add_conditions_to_domain): Same.
25473 (add_conditions_to_constraints): Remove.
25474 (build_scop_context): New.
25475 (add_iter_domain_dimension): New.
25476 (build_iteration_domains): Initialize pbb->iterators.
25477 Call add_conditions_to_domain.
25480 (index_outermost_in_loop): New.
25481 (index_pbb_in_loop): New.
25482 (outermost_pbb_in): New.
25483 (add_in_sequence): New.
25484 (add_outer_projection): New.
25485 (outer_projection_mupa): New.
25486 (add_loop_schedule): New.
25487 (build_schedule_pbb): New.
25488 (build_schedule_loop): New.
25489 (embed_in_surrounding_loops): New.
25490 (build_schedule_loop_nest): New.
25491 (build_original_schedule): New.
25492 (build_poly_scop): Call build_original_schedule.
25493 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
25494 (free_poly_dr): Remove.
25495 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
25496 (free_poly_bb): Remove.
25497 (debug_loop_vec): Remove.
25498 (print_isl_ast): Declare.
25499 (debug_isl_ast): Declare.
25500 (scop_do_interchange): Remove.
25501 (scop_do_strip_mine): Remove.
25502 (scop_do_block): Remove.
25503 (flatten_all_loops): Remove.
25504 (optimize_isl): Remove.
25505 (pbb_number_of_iterations_at_time): Remove.
25506 (debug_scop_pbb): Declare.
25507 (print_schedule_ast): Declare.
25508 (debug_schedule_ast): Declare.
25509 (struct scop): Remove schedule. Add original_schedule,
25510 transformed_schedule.
25511 (free_gimple_poly_bb): Remove.
25512 (print_generated_program): Remove.
25513 (debug_generated_program): Remove.
25514 (unify_scattering_dimensions): Remove.
25515 * sese.c (print_edge): ... here.
25516 (print_sese): ... here.
25517 (debug_edge): ... here.
25518 (debug_sese): ... here.
25519 * sese.h (print_edge): Declare.
25520 (print_sese): Declare.
25521 (dump_edge): Declare.
25522 (dump_sese): Declare.
25524 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
25525 Sebastian Pop <s.pop@samsung.com>
25527 * Makefile.in: Set ISLVER in site.exp.
25529 2016-01-25 Jakub Jelinek <jakub@redhat.com>
25531 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
25532 DECL_VALUE_EXPR of new_var even for the non-array case. Look
25533 through DECL_VALUE_EXPR for expansion.
25535 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
25537 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
25538 the frame info after reload completed.
25540 2016-01-25 Jeff Law <law@redhat.com>
25542 PR tree-optimization/69196
25543 PR tree-optimization/68398
25544 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
25545 tree-ssa-threadupdate.c.
25546 (determine_bb_domination_status): Prototype
25547 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
25548 (determine_bb_domination_status): No longer static.
25549 (valid_jump_thread_path): Remove code to detect characteristics
25550 of the jump thread path not associated with correctness.
25551 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
25552 Correct test for thread path length. Count PHIs for real operands as
25553 statements that need to be copied. Do not count ASSERT_EXPRs.
25554 Look at all the blocks in the thread path. Compute and selectively
25555 filter thread paths based on threading through the latch, threading
25556 a multiway branch or crossing a multiway branch.
25558 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25560 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
25561 decl with __attribute__ ((unused)) annotation.
25563 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
25566 * tree-vect-stmts.c (vectorizable_condition): Check vectype
25567 of operands is compatible with a statement vectype.
25569 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
25571 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
25572 improve wording for mixed storage order support.
25574 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
25576 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
25577 (vcvt_u64_f64): Likewise.
25578 (vcvta_s64_f64): Likewise.
25579 (vcvta_u64_f64): Likewise.
25580 (vcvtm_s64_f64): Likewise.
25581 (vcvtm_u64_f64): Likewise.
25582 (vcvtn_s64_f64): Likewise.
25583 (vcvtn_u64_f64): Likewise.
25584 (vcvtp_s64_f64): Likewise.
25585 (vcvtp_u64_f64): Likewise.
25587 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
25589 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
25590 (arc_init): Check validity mll64 option.
25591 (arc_save_restore): Use double load/store instruction.
25592 (arc_expand_movmem): Likewise.
25593 (arc_split_move): Don't split if we have double load/store
25594 instructions. Returns a boolean.
25595 (arc_process_double_reg_moves): Change function to return boolean
25596 instead of a sequence of instructions.
25597 (arc_dwarf_register_span): New function.
25598 * config/arc/arc-protos.h (arc_split_move): Change prototype.
25599 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
25600 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
25601 (*movdf_insn): Likewise.
25602 * config/arc/arc.opt (mll64): New option.
25603 * config/arc/predicates.md (even_register_operand): New predicate.
25604 * doc/invoke.texi (ARC Options): Add mll64 documentation.
25606 2016-01-25 Richard Biener <rguenther@suse.de>
25609 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
25610 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
25612 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
25614 2016-01-25 Richard Biener <rguenther@suse.de>
25616 PR tree-optimization/69376
25617 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
25619 (VN_INFO_ANTI_RANGE_P): New inline.
25620 (VN_INFO_RANGE_TYPE): Likewise.
25621 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
25622 SSA_NAME_ANTI_RANGE_P.
25623 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
25624 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
25625 Properly query VN_INFO_RANGE_TYPE.
25627 2016-01-25 Nick Clifton <nickc@redhat.com>
25630 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
25632 2016-01-23 Tom de Vries <tom@codesourcery.com>
25634 PR tree-optimization/69426
25635 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
25638 2016-01-23 Jakub Jelinek <jakub@redhat.com>
25640 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
25641 "the the" with "the" in the comments.
25642 * ipa-devirt.c (build_type_inheritance_graph,
25643 update_type_inheritance_graph): Likewise.
25644 * tree.c (build_function_type_list_1): Likewise.
25645 * cfgloopmanip.c (scale_loop_profile): Likewise.
25646 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
25647 * gimple-ssa-split-paths.c
25648 (find_block_to_duplicate_for_splitting_paths): Likewise.
25649 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
25650 * expr.c (convert_move): Likewise.
25651 * var-tracking.c (vt_stack_adjustments): Likewise.
25652 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
25653 * tree-vrp.c (test_for_singularity): Likewise.
25655 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
25656 directly instead of building a temporary tree.
25659 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
25660 remove <algorithm> include.
25662 2016-01-22 Jakub Jelinek <jakub@redhat.com>
25665 * config/i386/i386.c: Include dojump.h.
25666 (expand_small_movmem_or_setmem,
25667 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
25669 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
25670 if dynamic_check != -1.
25672 2016-01-21 Jeff Law <law@redhat.com>
25674 PR middle-end/69347
25675 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
25676 record_temporary_equivalences. Rewritten to avoid unnecessary calls
25677 into dominated_by_p.
25678 (cprop_into_successor_phis): Avoid unnecessary tests.
25680 2016-01-22 Richard Henderson <rth@redhat.com>
25683 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
25684 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
25686 2016-01-22 Michael Matz <matz@suse.de>
25688 * system.h (string, algorithm): Include only conditionally.
25689 (new): Include always under C++.
25690 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
25691 * final.c (toplevel): Ditto.
25692 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
25693 * genconditions.c (write_header): Make gencondmd.c define
25695 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
25697 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
25698 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
25700 2016-01-22 Christian Bruel <christian.bruel@st.com>
25703 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
25705 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25708 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
25709 define_insn_and_split. Ensure operands[1] and operands[0] do not
25710 get assigned the same register.
25712 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
25714 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
25716 2016-01-22 Christian Bruel <christian.bruel@st.com>
25718 * config/arm/arm-c.c (arm_pragma_target_parse):
25719 Remove warn_builtin_macro_redefined overwrite.
25721 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
25723 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
25724 flag_non_call_exceptions compatibility.
25726 2016-01-22 Jakub Jelinek <jakub@redhat.com>
25729 * dwarf2out.c (add_child_die_after): New function.
25730 (dwarf_qual_info_t): New type.
25731 (dwarf_qual_info): New variable.
25732 (qualified_die_p): New function.
25733 (modified_type_die): For -fdebug-types-section, ensure
25734 canonical order of qualifiers. Put qualified DIEs adjacent
25735 to the corresponding non-qualified type DIE and search there
25736 for existing qualified DIEs.
25738 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
25740 * doc/extend.texi (scalar_storage_order type attribute): Document
25741 restriction on type punning and aliasing, and remove future tense.
25743 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
25746 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
25749 2016-01-21 Jeff Law <law@redhat.com>
25751 PR middle-end/69347
25752 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
25753 useless call to record_temporary_equivalences.
25754 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
25755 allocate 10 slots in the bb_path vector and let it grow as needed.
25756 (fsm_find_control_statement_thread_paths): Similarly for the next_path
25759 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
25761 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
25763 * configure: Regenerate.
25765 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
25767 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
25768 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
25770 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
25772 PR middle-end/66178
25773 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
25774 drop EXPAND_INITIALIZER.
25775 * rtl.h (contains_symbolic_reference_p): Declare.
25776 * rtlanal.c (contains_symbolic_reference_p): New function.
25777 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
25778 a subtraction into a NOT if symbolic constants are involved.
25780 2016-01-21 Anton Blanchard <anton@samba.org>
25781 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25784 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
25786 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
25789 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
25791 * config/microblaze/microblaze.c
25792 (get_branch_target): New.
25793 (insert_wic_for_ilb_runout): New.
25795 (microblaze_machine_dependent_reorg): New.
25796 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
25797 * config/microblaze/microblaze.md
25798 (UNSPEC_IPREFETCH): Define.
25799 (iprefetch): New pattern
25800 * config/microblaze/microblaze.opt
25801 (mxl-prefetch): New flag.
25803 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
25805 * config/microblaze/microblaze.h
25806 (FIXED_REGISTERS): Update in macro.
25807 (CALL_USED_REGISTERS): Update in macro.
25809 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
25811 PR rtl-optimization/68920
25812 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
25815 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
25817 PR rtl-optimization/68990
25818 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
25819 pseudo instead of inheritance ones.
25821 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25822 Nick Clifton <nickc@redhat.com>
25826 * config/mips/mips.c (mips_compute_frame_info): Initialise
25827 args_size and hard_frame_pointer_offset fields of the frame
25828 structure before calling mips_global_pointer.
25830 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
25832 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
25834 * configure: Regenerate.
25836 2016-01-21 Richard Biener <rguenther@suse.de>
25838 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
25840 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
25842 * config/s390/s390.c (s390_asm_declare_function_size): Add code
25843 to actually emit the .size directive.
25845 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
25846 Jakub Jelinek <jakub@redhat.com>
25850 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
25851 args array size by one to avoid buffer overflow.
25853 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
25855 * config/s390/s390.md (pool_section_start): Use switch_to_section
25856 to select proper read-only data section instead of hardcoding
25858 (pool_section_end): Use switch_to_section to match the above.
25860 2016-01-21 Richard Biener <rguenther@suse.de>
25862 PR tree-optimization/69378
25863 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
25864 (set_ssa_val_to): Use it for dominance checks taking into
25865 account not executable edges.
25867 2016-01-21 Jakub Jelinek <jakub@redhat.com>
25870 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
25871 for bitsize instead of GET_MODE_PRECISION (mode).
25873 2016-01-20 Martin Sebor <msebor@redhat.com>
25876 * extend.texi (__sync Builtins): Clarify the semantics of
25877 __sync_fetch_and_OP built-ins on pointers.
25878 (__atomic Builtins): Same.
25880 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25881 Sebastian Pop <s.pop@samsung.com>
25883 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
25884 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
25885 (is_valid_rename): Same.
25886 (translate_isl_ast_to_gimple::get_rename): Same.
25887 (translate_isl_ast_to_gimple::rename_all_uses): Same.
25888 (translate_isl_ast_to_gimple::rename_uses): Same.
25889 (get_new_name): Check for close_phi nodes.
25890 (copy_loop_phi_args): Use phi_node_kind.
25891 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
25892 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
25894 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25895 Sebastian Pop <s.pop@samsung.com>
25897 Revert commit r229783.
25898 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
25899 Remove use of parameter_rename_map.
25900 (copy_def): Remove.
25901 (copy_internal_parameters): Remove.
25902 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
25903 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
25904 (free_sese_info): Do not free parameter_rename_map.
25905 (set_rename): Do not use parameter_rename_map.
25906 (rename_uses): Update call to set_rename.
25907 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
25908 * sese.h (parameter_rename_map_t): Remove.
25909 (struct sese_info_t): Remove field parameter_rename_map.
25911 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25912 Sebastian Pop <s.pop@samsung.com>
25914 * graphite-isl-ast-to-gimple.c: Fix comment.
25915 * graphite-scop-detection.c (defined_in_loop_p): New.
25916 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
25917 names defined in loop.
25919 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25920 Sebastian Pop <s.pop@samsung.com>
25922 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
25923 Discard unstructured if-then-else regions.
25925 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25926 Sebastian Pop <s.pop@samsung.com>
25928 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
25929 (cleanup_loop_iter_dom): Remove.
25930 (build_loop_iteration_domains): Remove.
25931 (build_scop_context): Remove.
25932 (build_scop_iteration_domain): Remove.
25933 (add_loop_constraints): New.
25934 (build_iteration_domains): New.
25935 (build_poly_scop): Call build_iteration_domains.
25937 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25938 Sebastian Pop <s.pop@samsung.com>
25940 * graphite-scop-detection.c
25941 (scop_detection::harmful_loop_in_region): Free dom and loops.
25942 (scop_detection::loop_body_is_valid_scop): Free bbs.
25944 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25945 Sebastian Pop <s.pop@samsung.com>
25947 * graphite-scop-detection.c (record_loop_in_sese): New.
25948 (gather_bbs::before_dom_children): Call record_loop_in_sese.
25949 (build_scops): Remove call to build_sese_loop_nests.
25950 * sese.c (sese_record_loop): Remove.
25951 (build_sese_loop_nests): Remove.
25952 (new_sese_info): Remove region->loops.
25953 (free_sese_info): Same.
25954 * sese.h (sese_contains_loop): Same.
25955 (build_sese_loop_nests): Remove.
25956 (sese_contains_loop): Remove.
25958 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25959 Sebastian Pop <s.pop@samsung.com>
25961 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
25962 loop_is_valid_in_scop.
25963 (scop_detection::harmful_stmt_in_region): Renamed
25964 harmful_loop_in_region.
25965 Call loop_is_valid_in_scop.
25967 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25968 Sebastian Pop <s.pop@samsung.com>
25970 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
25973 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25974 Sebastian Pop <s.pop@samsung.com>
25976 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
25977 * graphite.h (struct poly_bb): Remove field is_reduction.
25978 (PBB_IS_REDUCTION): Remove.
25980 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25981 Sebastian Pop <s.pop@samsung.com>
25983 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
25984 (add_pdr_constraints): Same.
25985 (scop_get_reads): Same.
25986 (scop_get_must_writes): Same.
25987 (scop_get_may_writes): Same.
25988 (scop_get_original_schedule): Same.
25989 (extend_schedule): Same.
25990 (apply_schedule_on_deps): Same.
25991 (carries_deps): Same.
25992 (compute_deps): Same.
25993 (scop_get_dependences): Same.
25994 * graphite-isl-ast-to-gimple.c
25995 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
25996 * graphite-optimize-isl.c (get_schedule_for_band): Same.
25997 (get_schedule_for_band_list): Same.
25998 (get_schedule_map): Same.
25999 (apply_schedule_map_to_scop): Same.
26000 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
26001 (build_loop_iteration_domains): Same.
26002 (add_condition_to_pbb): Same.
26003 (add_param_constraints): Same.
26004 (pdr_add_memory_accesses): Same.
26005 (pdr_add_data_dimensions): Same.
26007 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
26009 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
26012 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
26014 * common.opt (feliminate-dwarf2-dups): Replace references to
26015 "DWARF 2" with just "DWARF".
26016 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
26017 * doc/extend.texi: Likewise.
26018 * doc/cpp.texi: Likewise.
26019 * doc/invoke.texi: Likewise.
26020 (Option Summary): Add -gdwarf to list of Debugging Options.
26021 (Debugging Options): Document -gdwarf.
26022 * doc/contrib.texi: Spell "DWARF" like that.
26024 2016-01-21 Jakub Jelinek <jakub@redhat.com>
26026 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
26027 warning. Fix up formatting.
26029 PR middle-end/67653
26030 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
26031 attempt to mark memory input operand addressable and
26032 call prepare_gimple_addressable in that case. Don't adjust
26033 input_location for diagnostics, use error_at instead.
26035 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
26037 * config/rs6000/ppc-auxv.h: New file.
26038 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
26039 (cpu_is): Likewise.
26040 (cpu_supports): Likewise.
26041 * config/rs6000/rs6000.c: include "ppc-auxv.h".
26042 (cpu_is_info): New variable.
26043 (cpu_supports_info): Likewise.
26044 (tcb_verification_symbol): Likewise.
26045 (cpu_builtin_p): Likewise.
26046 (cpu_expand_builtin): New function.
26047 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
26048 (rs6000_init_builtins): Likewise.
26049 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
26050 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
26051 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
26052 * configure: Regenerate.
26053 * config.in: Likewise.
26054 * doc/extend.texi (PowerPC Built-in Functions): Document
26055 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
26057 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
26060 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
26062 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
26065 2016-01-20 Richard Henderson <rth@redhat.com>
26071 * tree.c (tm_define_builtin): New.
26072 (find_tm_vector_type): New.
26073 (build_tm_vector_builtins): New.
26074 (build_common_builtin_nodes): Call it.
26076 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
26078 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
26079 (arm_fp_ok): Likewise.
26080 (arm_fp): Likewise.
26081 (arm_crypto): Likewise.
26083 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
26084 Richard Biener <rguenther@suse.de>
26086 PR tree-optimization/69328
26087 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
26088 vectors have same number of elements.
26089 (vectorizable_condition): Fix masked version recognition.
26091 2016-01-20 Richard Biener <rguenther@suse.de>
26093 PR tree-optimization/69345
26094 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
26095 (VN_INFO_PTR_INFO): Likewise.
26096 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
26097 info when it is equal between non-dominating SSA names.
26098 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
26099 Make sure to look at original SSA infos.
26101 2016-01-20 Jeff Law <law@redhat.com>
26104 * config/m68k/predicates.md (pow2_m1_operand): New predicate
26106 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
26107 (pc_or_label_operand): New predicate.
26108 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
26109 tests for small integers that are 2^n - 1.
26111 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
26113 * doc/invoke.texi (Options Summary): Add '.' after @xref.
26115 2016-01-19 Jeff Law <law@redhat.com>
26117 PR middle-end/69347
26118 * tree-ssa-threadbackwards.c
26119 (fsm_find_control_statement_thread_paths): Do not try to lookup
26120 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
26122 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
26124 * doc/lto.texi: Remove text that says only Gold has linker plugin
26127 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
26129 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
26130 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
26131 the DIE accordingly.
26132 (modified_type_die): Add REVERSE parameter and pass it recursively,
26133 as well as to base_type_die. Adjust presence check accordingly.
26134 (base_type_for_mode): Adjust call to modified_type_die.
26135 (add_type_attribute): Add REVERSE parameter and pass it to
26137 (generic_parameter_die): Adjust call to add_type_attribute.
26138 (add_scalar_info): Likewise.
26139 (add_subscript_info): Likewise.
26140 (gen_array_type_die): Likewise.
26141 (gen_descr_array_type_die): Likewise.
26142 (gen_entry_point_die): Likewise.
26143 (gen_enumeration_type_die): Likewise.
26144 (gen_formal_parameter_die): Likewise.
26145 (gen_subprogram_die): Likewise.
26146 (gen_variable_die ): Likewise.
26147 (gen_const_die): Likewise.
26148 (gen_field_die): Likewise.
26149 (gen_pointer_type_die): Likewise.
26150 (gen_reference_type_die): Likewise.
26151 (gen_ptr_to_mbr_type_die): Likewise.
26152 (gen_inheritance_die): Likewise.
26153 (gen_subroutine_type_die): Likewise.
26154 (gen_typedef_die): Likewise.
26155 (force_type_die): Adjust call to modified_type_die.
26157 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
26159 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
26160 flow throughout the file. Fix broken link to Objective-C 2.0
26162 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
26165 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
26167 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
26169 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
26172 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
26173 (maybe_record_node): Record cxa_pure_virtual as the only possible
26174 target if there are not ohter candidates.
26175 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
26177 2016-01-19 Richard Biener <rguenther@suse.de>
26179 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
26180 (get_memory_order): Likewise.
26182 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
26184 * tree-vect-stmts.c (vectorizable_store): Check
26187 2016-01-19 David Malcolm <dmalcolm@redhat.com>
26190 * gcc.c (driver::decode_argv): Add call to
26191 init_opts_obstack before init_options_struct.
26192 * opts.c (init_opts_obstack): Remove idempotency.
26193 (init_options_struct): Replace call to init_opts_obstack
26194 with a gcc_assert to verify that it has already been called.
26195 * toplev.c (toplev::main): Add call to init_opts_obstack before
26196 calls to init_options_struct.
26197 (toplev::finalize): Move cleanup of opts_obstack next to
26198 cleanup of save_decoded_options, clearing the latter, and
26199 save_decoded_options_count.
26201 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26204 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
26205 attribute to unconditional. Remove %? from output template.
26207 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
26208 Jiong Wang <jiong.wang@arm.com>
26210 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
26211 generated from different expand order.
26213 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
26215 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
26216 Add support for CCMP costing.
26218 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
26220 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
26221 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
26222 (fccmpe<mode>): Likewise.
26223 (fcmp): Rename to fcmp and globalize pattern.
26225 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
26226 (aarch64_gen_ccmp_next): Add FP support.
26228 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
26230 * target.def (gen_ccmp_first): Update documentation.
26231 (gen_ccmp_next): Likewise.
26232 * doc/tm.texi (gen_ccmp_first): Update documentation.
26233 (gen_ccmp_next): Likewise.
26234 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
26235 expand_ccmp_expr_1. Improve comments.
26236 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
26237 (ccmp_ior<mode>): Remove pattern.
26238 (cmp<mode>): Remove expand.
26239 (cmp): Globalize pattern.
26240 (cstorecc4): Use cc_register.
26241 (mov<mode>cc): Remove ccmp_cc_register check.
26242 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
26243 Simplify after removal of CC_DNE/* modes.
26244 (aarch64_ccmp_mode_to_code): Remove.
26245 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
26246 In 'k' case use integer as condition.
26247 (aarch64_nzcv_codes): Remove inverted cases.
26248 (aarch64_code_to_ccmode): Remove.
26249 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
26250 comparison with CC register to be used in folowing CCMP/branch/CSEL.
26251 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
26252 pattern. Return the comparison with CC register. Invert conditions
26253 when bitcode is OR.
26254 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
26255 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
26257 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
26259 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
26260 instrumented_version.
26262 2016-01-19 Richard Biener <rguenther@suse.de>
26264 PR tree-optimization/69336
26265 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
26266 handled components with get_ref_base_and_extent.
26267 (equal_mem_array_ref_p): Adjust.
26269 2016-01-19 Jakub Jelinek <jakub@redhat.com>
26272 * shrink-wrap.c: Include valtrack.h.
26273 (move_insn_for_shrink_wrap): Add DEBUG argument. If
26274 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
26275 in between insn and where it will be moved to. Call
26276 dead_debug_insert_temp.
26277 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
26278 first and dead_debug_local_finish at the end.
26279 For uses and defs bitmap, handle all regs in between REGNO and
26280 END_REGNO, not just the first one.
26282 2016-01-19 Richard Biener <rguenther@suse.de>
26284 PR tree-optimization/69352
26285 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
26286 (equal_mem_array_ref_p): Constrain size and max size properly.
26287 Compare the reverse flag.
26289 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
26291 * ira.c (ira): Update regstat data if we deleted insns.
26293 2016-01-19 Jakub Jelinek <jakub@redhat.com>
26295 PR rtl-optimization/68955
26296 PR rtl-optimization/64557
26297 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
26298 here. Fix up formatting.
26299 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
26301 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
26304 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
26305 assume that the node has body.
26306 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
26309 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
26311 * lto-streamer-out.c (lto_output): Do not stream instrumentation
26314 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
26316 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
26317 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
26319 2016-01-19 Martin Jambor <mjambor@suse.cz>
26320 Martin Liska <mliska@suse.cz>
26321 Michael Matz <matz@suse.de>
26323 * Makefile.in (OBJS): Add new source files.
26324 (GTFILES): Add hsa.c.
26325 * common.opt (disable_hsa): New variable.
26326 (-Whsa): New warning.
26327 * config.in (ENABLE_HSA): New.
26328 * configure.ac: Treat hsa differently from other accelerators.
26329 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
26330 $enable_offloading.
26331 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
26332 * doc/install.texi (Configuration): Document --with-hsa-runtime,
26333 --with-hsa-runtime-include, --with-hsa-runtime-lib and
26334 --with-hsa-kmt-lib.
26335 * doc/invoke.texi (-Whsa): Document.
26336 (hsa-gen-debug-stores): Likewise.
26337 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
26338 to invoke offload compiler for hsa acclerator.
26339 * opts.c (common_handle_option): Determine whether HSA offloading
26340 should be performed.
26341 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
26342 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
26343 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
26344 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
26345 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
26346 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
26347 GF_OMP_FOR_KIND_GRID_LOOP.
26348 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
26349 (pp_gimple_stmt_1): Likewise.
26350 * gimple-walk.c (walk_gimple_stmt): Likewise.
26351 * gimple.c (gimple_build_omp_grid_body): New function.
26352 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
26353 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
26354 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
26355 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
26356 GF_OMP_TEAMS_GRID_PHONY.
26357 (gimple_statement_omp_single_layout): Updated comments.
26358 (gimple_build_omp_grid_body): New function.
26359 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
26360 (gimple_omp_for_grid_phony): New function.
26361 (gimple_omp_for_set_grid_phony): Likewise.
26362 (gimple_omp_parallel_grid_phony): Likewise.
26363 (gimple_omp_parallel_set_grid_phony): Likewise.
26364 (gimple_omp_teams_grid_phony): Likewise.
26365 (gimple_omp_teams_set_grid_phony): Likewise.
26366 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
26367 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
26368 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
26369 (BUILT_IN_GOMP_TARGET): Updated type.
26370 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
26371 (adjust_for_condition): New function.
26372 (get_omp_for_step_from_incr): Likewise.
26373 (extract_omp_for_data): Moved parts to adjust_for_condition and
26374 get_omp_for_step_from_incr.
26375 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
26376 (fixup_child_record_type): Bail out if receiver_decl is NULL.
26377 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
26378 (scan_omp_parallel): Do not create child functions for phony
26380 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
26381 (scan_omp_1_op): Checking assert we are not remapping to
26382 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
26383 (parallel_needs_hsa_kernel_p): New function.
26384 (expand_parallel_call): Register apprpriate parallel child
26385 functions as HSA kernels.
26386 (grid_launch_attributes_trees): New type.
26387 (grid_attr_trees): New variable.
26388 (grid_create_kernel_launch_attr_types): New function.
26389 (grid_insert_store_range_dim): Likewise.
26390 (grid_get_kernel_launch_attributes): Likewise.
26391 (get_target_argument_identifier_1): Likewise.
26392 (get_target_argument_identifier): Likewise.
26393 (get_target_argument_value): Likewise.
26394 (push_target_argument_according_to_value): Likewise.
26395 (get_target_arguments): Likewise.
26396 (expand_omp_target): Call get_target_arguments instead of looking
26397 up for teams and thread limit.
26398 (grid_expand_omp_for_loop): New function.
26399 (grid_arg_decl_map): New type.
26400 (grid_remap_kernel_arg_accesses): New function.
26401 (grid_expand_target_kernel_body): New function.
26402 (expand_omp): Call it.
26403 (lower_omp_for): Do not emit phony constructs.
26404 (lower_omp_taskreg): Do not emit phony constructs but create for them
26405 a temporary variable receiver_decl.
26406 (lower_omp_taskreg): Do not emit phony constructs.
26407 (lower_omp_teams): Likewise.
26408 (lower_omp_grid_body): New function.
26409 (lower_omp_1): Call it.
26410 (grid_reg_assignment_to_local_var_p): New function.
26411 (grid_seq_only_contains_local_assignments): Likewise.
26412 (grid_find_single_omp_among_assignments_1): Likewise.
26413 (grid_find_single_omp_among_assignments): Likewise.
26414 (grid_find_ungridifiable_statement): Likewise.
26415 (grid_target_follows_gridifiable_pattern): Likewise.
26416 (grid_remap_prebody_decls): Likewise.
26417 (grid_copy_leading_local_assignments): Likewise.
26418 (grid_process_kernel_body_copy): Likewise.
26419 (grid_attempt_target_gridification): Likewise.
26420 (grid_gridify_all_targets_stmt): Likewise.
26421 (grid_gridify_all_targets): Likewise.
26422 (execute_lower_omp): Call grid_gridify_all_targets.
26423 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
26424 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
26425 (tree_omp_clause): Added union field dimension.
26426 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
26427 * tree.c (omp_clause_num_ops): Added number of arguments of
26428 OMP_CLAUSE__GRIDDIM_.
26429 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
26430 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
26431 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
26432 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
26433 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
26434 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
26435 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
26436 * tree-pass.h (make_pass_gen_hsail): Declare.
26437 (make_pass_ipa_hsa): Likewise.
26438 * ipa-hsa.c: New file.
26439 * lto-section-in.c (lto_section_name): Add hsa section name.
26440 * lto-streamer.h (lto_section_type): Add hsa section.
26441 * timevar.def (TV_IPA_HSA): New.
26442 * hsa-brig-format.h: New file.
26443 * hsa-brig.c: New file.
26444 * hsa-dump.c: Likewise.
26445 * hsa-gen.c: Likewise.
26448 * toplev.c (compile_file): Call hsa_output_brig.
26449 * hsa-regalloc.c: New file.
26451 2016-01-18 Jeff Law <law@redhat.com>
26453 PR tree-optimization/69320
26454 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
26455 ranged object, do nothing if the RHS constant is not [0..1].
26456 (optimize_stmt): Comparing a boolean ranged object against a
26457 constant outside [0..1] results in a compile-time constant.
26459 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
26462 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
26464 * doc/invoke.texi (Invoking GCC): Add new section to menu.
26465 (Option Summary): Update to reflect new section and moved options.
26466 (C++ Dialect Options): Move -fstats to new section.
26467 (Debugging Options): Move all dump, statistics, and other GCC
26468 developer options to new section. Rewrite section introduction
26469 and re-order remaining options to put the more basic ones first.
26470 (Optimization Options): Move -fira-verbose and -flto-report* to
26472 (Developer Options): New section incorporating moved options.
26473 * doc/cppopts.texi (-dM): Update cross-reference.
26475 2016-01-18 Richard Henderson <rth@redhat.com>
26478 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
26479 operands to pseudo only if CSE is expected. Split long immediate
26480 operands only after reload, and for the stack pointer.
26481 (*add<GPI>3_pluslong): Remove.
26482 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
26483 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
26484 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
26485 (*add<GPI>3 peepholes): New.
26486 (*add<GPI>3 splitters): New.
26487 * config/aarch64/constraints.md (Upl): New.
26488 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
26490 2016-01-18 Richard Biener <rguenther@suse.de>
26492 PR tree-optimization/69297
26493 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
26495 (vect_bb_vectorization_profitable_p): Clear visited flag again.
26497 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
26499 PR middle-end/68542
26500 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
26501 of mixind vector and scalar types.
26502 (fold_relational_const): Add handling of vector
26503 comparison with boolean result.
26504 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
26505 comparison of vector operands with boolean result for EQ/NE only.
26506 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
26507 (verify_gimple_cond): Likewise.
26508 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
26511 2016-01-18 Joseph Myers <joseph@codesourcery.com>
26513 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
26516 2016-01-18 Richard Biener <rguenther@suse.de>
26518 PR middle-end/69308
26519 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
26521 2016-01-18 Tom de Vries <tom@codesourcery.com>
26523 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
26525 2016-01-18 Tom de Vries <tom@codesourcery.com>
26527 * omp-low.c (set_oacc_fn_attrib): Make extern.
26528 * omp-low.h (set_oacc_fn_attrib): Declare.
26529 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
26530 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
26531 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
26532 Add and handle function parameter oacc_kernels_p.
26533 (find_reduc_addr, get_omp_data_i_param): New function.
26534 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
26535 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
26536 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
26537 Calculate dominance info. Skip loops that are not in a kernels region
26538 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
26539 (pass_parallelize_loops::execute): Call parallelize_loops with
26540 oacc_kernels_p argument.
26541 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
26542 New member function.
26543 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
26544 * passes.def: Add argument to pass_parallelize_loops instantation.
26546 2016-01-18 Tom de Vries <tom@codesourcery.com>
26548 * tree-parloops.c (pass_parallelize_loops::execute): Allow
26549 pass_parallelize_loops to be run outside the loop pipeline.
26551 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
26553 * tree-scalar-evolution.c (follow_copies_to_constant): New.
26554 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
26556 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
26559 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
26560 using get_ref_base_and_extent.
26561 (equal_mem_array_ref_p): New.
26562 (hashable_expr_equal_p): Add call to previous.
26564 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
26567 * tree-sra.c (disqualified_constants, constant_decl_p): New.
26568 (sra_initialize): Allocate disqualified_constants.
26569 (sra_deinitialize): Free disqualified_constants.
26570 (disqualify_candidate): Update disqualified_constants when appropriate.
26571 (create_access): Scan for constant-pool entries as we go along.
26572 (scalarizable_type_p): Add check against type_contains_placeholder_p.
26573 (maybe_add_sra_candidate): Allow constant-pool entries.
26574 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
26575 (initialize_constant_pool_replacements): New.
26576 (sra_modify_assign): Avoid mangling assignments created by previous,
26577 and don't generate writes into constant pool.
26578 (sra_modify_function_body): Call initialize_constant_pool_replacements.
26580 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26582 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
26583 andnot instruction.
26584 (scalar_chain::convert_op): Likewise.
26585 * config/i386/i386.md (*andndi3_doubleword): New.
26587 2016-01-18 Richard Biener <rguenther@suse.de>
26589 PR tree-optimization/69170
26590 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
26591 building a vector from scalar results of a pattern stmt.
26593 2016-01-18 Jakub Jelinek <jakub@redhat.com>
26595 * haifa-sched.c (autopref_multipass_init): Work around
26596 -Wmaybe-uninitialized warning.
26598 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
26600 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
26601 against the constant 0.
26603 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26605 PR tree-optimization/68799
26606 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
26607 look up phi candidates in the statement-candidate map.
26608 (phi_add_costs): Likewise.
26609 (record_phi_increments): Likewise.
26610 (phi_incr_cost): Likewise.
26611 (ncd_with_phi): Likewise.
26612 (all_phi_incrs_profitable): Likewise.
26614 2016-01-17 Jakub Jelinek <jakub@redhat.com>
26616 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
26617 -Wmaybe-uninitialized warning.
26619 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
26621 * doc/invoke.texi (Invoking GCC): Add new section to menu.
26622 (Option Summary): Update to reflect new section and moved options.
26623 (C++ Dialect Options): Move -fvtable-verify and related options.
26624 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
26625 and profiling-related options.
26626 (Optimization Options): Move profile generation options and
26627 -fstack-protector and related options.
26628 (Instrumentation Options): New section incorporating moved options.
26629 (Code Generation Options): Move -finstrument-functions and
26630 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
26632 2016-01-16 Tom de Vries <tom@codesourcery.com>
26634 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
26636 2016-01-16 Tom de Vries <tom@codesourcery.com>
26638 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
26640 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
26642 * hash-table.h (hash_table::empty): Turn into an inline wrapper
26643 that checks whether the table is already empty. Rename the
26644 original implementation to...
26645 (hash_table::empty_slot): ...this new private function.
26647 2016-01-15 David Malcolm <dmalcolm@redhat.com>
26649 PR diagnostic/68899
26650 * diagnostic-show-locus.c (layout::print_source_line): Move x
26651 offset of line until after call to
26652 get_line_width_without_trailing_whitespace.
26654 2016-01-15 Jeff Law <law@redhat.com>
26656 PR tree-optimization/69270
26657 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
26658 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
26659 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
26660 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
26661 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
26662 ssa_name_has_boolean_range and constant_boolean_node.
26664 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
26666 PR rtl-optimization/69030
26667 * lra-spills.c (remove_pseudos): Check nrefs and make the function
26669 (spill_pseudos): Delete debug insn for dead pseudo.
26670 (lra_spill): Initiate spill_hard_reg and slots memory separately.
26672 2016-01-15 Jiong Wang <jiong.wang@arm.com>
26674 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
26676 (TYPES_UNOPUS): Likewise.
26677 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
26678 builtin type, from UNOP to UNOPUS.
26679 (lbtruncuv4sf): Likewise.
26680 (lbtruncuv2df): Likewise.
26681 (lrounduv2sf): Likewise.
26682 (lrounduv4sf): Likewise.
26683 (lrounduv2df): Likewise.
26684 (lroundusf): Likewise.
26685 (lroundusf): Likewise.
26686 (lceiluv2sf): Likewise.
26687 (lceiluv4sf): Likewise.
26688 (lceiluv2df): Likewise.
26689 (lceilusf): Likewise.
26690 (lceiludf): Likewise.
26691 (lflooruv2sf): Likewise.
26692 (lflooruv4sf): Likewise.
26693 (lflooruv2df): Likewise.
26694 (lfloorusf): Likewise.
26695 (lfloorudf): Likewise.
26696 (lfrintnuv2sf): Likewise.
26697 (lfrintnuv4sf): Likewise.
26698 (lfrintnuv2df): Likewise.
26699 (lfrintnusf): Likewise.
26700 (lfrintnudf): Likewise.
26701 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
26703 (vcvtq_u32_f32): Likewise.
26704 (vcvtq_u64_f64): Likewise.
26705 (vcvta_u32_f32): Likewise.
26706 (vcvtaq_u32_f32): Likewise.
26707 (vcvtaq_u64_f64): Likewise.
26708 (vcvtm_u32_f32): Likewise.
26709 (vcvtmq_u32_f32): Likewise.
26710 (vcvtmq_u64_f64): Likewise.
26711 (vcvtn_u32_f32): Likwise.
26712 (vcvtnq_u32_f32): Likewise.
26713 (vcvtnq_u64_f64): Likewise.
26714 (vcvtp_u32_f32): Likewise.
26715 (vcvtpq_u32_f32): Likewise.
26716 (vcvtpq_u64_f64): Likewise.
26717 (vcvtmd_u64_f64): Likewise.
26718 (vcvtms_u32_f32): Likewise.
26719 (vcvtad_u64_f64): Likewise.
26720 (vcvtas_u32_f32): Likewise.
26721 (vcvtnd_u64_f64): Likewise.
26722 (vcvtns_u32_f32): Likewise.
26723 (vcvtpd_u64_f64): Likewise.
26724 (vcvtps_u32_f32): Likewise.
26726 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26728 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
26729 CSEL of zero_extended registers.
26731 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26733 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
26734 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
26736 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26738 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
26739 false when argument string is not found in the attributes table
26742 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
26745 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
26746 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
26747 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
26748 precision estimate.
26750 2016-01-15 Richard Biener <rguenther@suse.de>
26752 PR tree-optimization/66856
26753 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
26754 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
26755 (vect_create_new_slp_node): Increment stmt reference count.
26756 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
26757 an SLP tree before swapping operands.
26758 (vect_build_slp_tree): Likewise.
26759 (destroy_bb_vec_info): Free stmt info after SLP instances.
26760 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
26761 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
26762 (STMT_VINFO_NUM_SLP_USES): New macro.
26764 2016-01-15 Richard Biener <rguenther@suse.de>
26767 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
26768 (add_linkage_name): ... here.
26769 (gen_typedef_die): Use add_linkage_name_raw instead of
26770 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
26773 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
26775 * gimplify.c (oacc_default_clause): Decode reference and pointer
26776 types for both kernels and parallel regions.
26778 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
26780 PR middle-end/69246
26781 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
26783 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26785 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
26786 (convert_scalars_to_vector): Likewise.
26788 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
26790 * doc/extend.texi (Type Traits): Fix grammar.
26792 2016-01-15 Martin Jambor <mjambor@suse.cz>
26794 * tree-inline.c (remap_decl): Use existing dclarations if
26795 remapping a type and prevent_decl_creation_for_types.
26796 (replace_locals_stmt): Do an initial remapping of non-VLA typed
26797 decls first. Do real remapping with
26798 prevent_decl_creation_for_types set.
26799 * tree-inline.h (copy_body_data): New field
26800 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
26803 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
26805 * config/s390/s390.opt (mmvcle): More verbose help text.
26807 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
26809 * config/s390/s390.opt: Add period to -mzvector option text.
26811 2016-01-15 Richard Biener <rguenther@suse.de>
26813 PR tree-optimization/68961
26814 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
26815 of invariants in stores again.
26817 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26819 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
26821 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26823 * config/i386/i386.c (ix86_expand_branch): Don't split
26824 DI mode xor instruction to SI mode.
26826 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
26829 * ipa-icf.c (sem_function::merge): Virtual functions may become
26830 reachable even if they address is not taken and there are no
26833 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
26835 * lto-streamer-out.c (subtract_estimated_size): New function.
26836 (get_symbol_initial_value): Use it.
26838 2016-01-15 Christian Bruel <christian.bruel@st.com>
26841 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
26842 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
26843 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
26844 use add_builtin_function_ext_scope instead of add_builtin_function.
26845 (neon_set_p, neon_crypto_set_p): Remove.
26846 (arm_init_builtins): Always call arm_init_neon_builtins and
26847 arm_init_crypto_builtins.
26848 (arm_expand_builtin): Check that builtins are allowed for the arch.
26849 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
26850 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
26851 arm_init_neon_builtins call.
26853 2016-01-15 Richard Biener <rguenther@suse.de>
26855 PR tree-optimization/69117
26856 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
26857 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
26858 of the leader conservatively.
26859 (free_scc_vn): Restore original SSA name infos.
26861 2016-01-14 Jeff Law <law@redhat.com>
26863 PR tree-optimization/69270
26864 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
26865 single bit of precision, verify it's also unsigned.
26866 (record_edge_info): Use constant_boolean_node rather than fold_convert
26867 to convert boolean_true/boolean_false to the right type.
26869 2016-01-14 Richard Henderson <rth@redhat.com>
26872 * loop-doloop.c (record_reg_sets): New.
26873 (doloop_optimize): Reject the transform if the sequence
26874 clobbers registers live at the end of the loop block.
26875 (doloop_optimize_loops): Enable df_live if needed.
26877 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26879 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
26880 * config/rs6000/rs6000.c: Likewise.
26881 * config/rs6000/rs6000.h: Likewise.
26882 * config/rs6000/rs6000.md: Likewise.
26883 * doc/extend.texi: Likewsie.
26885 2016-01-14 Jeff Law <law@redhat.com>
26887 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
26890 2016-01-14 Richard Henderson <rth@redhat.com>
26894 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
26895 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
26896 instead of builtin_decl_declared_p to test for declaration.
26898 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
26900 * doc/loop.texi (Loop Analysis and Representation): Document
26901 loop_depth function.
26903 2016-01-14 Tom de Vries <tom@codesourcery.com>
26905 PR tree-optimization/68773
26906 * omp-low.c (expand_omp_target): Don't set force_output.
26907 * varpool.c (varpool_node::get_create): Same.
26908 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
26909 offload_funcs with force_output.
26911 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26914 * lra-eliminations.c (move_plus_up): Don't change anything if either
26915 the outer or inner subreg mode is not MODE_INT.
26916 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
26917 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
26919 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
26921 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
26922 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
26923 reduc_uplus_@var{m}): Remove.
26924 * expr.c (expand_expr_real_2): Remove expansion path for
26925 reduc_[us](min|max|plus) optabs.
26926 * optabs-tree.c (scalar_reduc_to_vector): Remove.
26927 * optabs-tree.h (scalar_reduc_to_vector): Remove.
26928 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
26929 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
26930 * tree-vect-loop.c (vectorizable_reduction): Remove test for
26931 reduc_[us](min|max|plus) optabs.
26933 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
26935 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
26936 (reduc_plus_scal_v2sf): New.
26937 (reduc_smax_v2sf): Rename to...
26938 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
26939 (reduc_smin_v2sf): Rename to...
26940 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
26942 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
26944 * alias.c (compare_base_symbol_refs): New function.
26945 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
26948 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26950 PR middle-end/68146
26951 PR tree-optimization/69155
26952 * tree-complex.c: Include cfganal.h.
26953 (phis_to_revisit): New variable.
26954 (extract_component): Add phiarg_p argument. Assert that returned
26955 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
26956 (update_phi_components): Partly rewrite to use loop over real/imag
26957 components instead of code duplication. If extract_component returns
26958 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
26959 create_tmp_reg into the PHI node instead, and mention the phi triplet
26960 in phis_to_revisit.
26961 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
26962 in phis_to_revisit at the end.
26964 2016-01-14 Richard Biener <rguenther@suse.de>
26966 PR tree-optimization/68060
26967 * tree-vect-loop.c (vect_is_simple_reduction): Check the
26968 outer loop reduction is only used in the inner loop before
26969 detecting a double reduction.
26971 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26974 * combine.c (expand_field_assignment): Punt if compute_mode is
26975 unsupported scalar mode.
26977 2016-01-14 Richard Biener <rguenther@suse.de>
26979 PR tree-optimization/66856
26980 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
26981 SLP node only if it built successfully.
26982 (vect_analyze_slp_instance): Adjust.
26984 2016-01-14 Jeff Law <law@redhat.com>
26986 PR tree-optimization/69270
26987 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
26988 (record_edge_info): Use it. Convert boolean_{true,false}_node
26989 to the type of op0.
26991 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
26994 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
26995 use block_ultimate_origin
26996 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
26998 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
27000 * doc/invoke.texi (Submodel Options): Rename section to
27001 "Machine-Dependent Options" to better reflect its content.
27002 Rewrite introductory text to remove archaic CPU names.
27005 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
27007 * doc/invoke.texi (Code Gen Options): Move section up in file,
27008 before target-specific options. Update menu and option summary
27009 to reflect the new section ordering.
27011 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
27013 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
27014 (C++ Dialect Options): Add cross-reference to -std option.
27015 * doc/standards.texi (C++ Language): Document C++14 support.
27017 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
27019 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
27020 for pack/unpack functions for __ibm128.
27021 (PACK_IF): Likewise.
27022 (UNPACK_IF): Likewise.
27024 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27025 support for __ibm128 pack/unpack functions.
27026 (rs6000_invalid_builtin): Likewise.
27027 (rs6000_init_builtins): Likewise.
27028 (rs6000_opt_masks): Likewise.
27030 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
27031 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
27033 (RS6000_BTM_COMMON): Likewise.
27035 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
27036 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
27037 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
27038 128-bit floating point. Add support for the double values to be
27039 in Altivec registers for TF/IF packing and unpacking, but restrict
27040 TD packing sub-fields to be FPR registers. Don't allow overlapped
27041 register support for packing. Allow pack inputs to be memory
27042 locations. Don't build generator functions for unpack<mode>_dm
27043 and unpack<mode>_nodm.
27044 (unpack<mode>_dm): Likewise.
27045 (unpack<mode>_nodm): Likewise.
27046 (pack<mode>): Likewise.
27048 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
27049 built-in functions to pack/unpack explicit __ibm128 values.
27050 (__builtin_unpack_ibm128): Likewise.
27052 * doc/extend.texi (PowerPC Built-in Functions): Document
27053 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
27055 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
27058 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
27059 Add new arg loc and pass it down as context.
27060 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
27061 to the location to use for the warning.
27062 (check_function_arguments): New arg loc. All callers changed. Pass
27063 it to check_function_nonnull.
27064 * c-common.h (check_function_arguments): Adjust declaration.
27066 2016-01-13 Jakub Jelinek <jakub@redhat.com>
27068 PR tree-optimization/69156
27069 * gimple.c (validate_type): Removed.
27070 (gimple_builtin_call_types_compatible_p): Use
27071 useless_type_conversion_p instead of validate_type.
27072 * value-prof.c (gimple_stringop_fixed_value): Fold
27073 icall_size to correct type.
27075 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
27077 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
27080 2016-01-13 Richard Henderson <rth@redhat.com>
27083 * target.def (builtin_tm_load, builtin_tm_store): Remove.
27084 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
27085 (ix86_builtin_tm_store): Remove.
27086 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
27087 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
27088 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
27089 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
27090 * doc/tm.texi: Rebuild.
27092 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
27093 (BUILT_IN_TM_MEMCPY_RTWN): New.
27094 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
27095 fallback from vector to integer helpers.
27096 (build_tm_load): Handle vector types directly, instead of
27098 (build_tm_store): Likewise.
27099 (expand_assign_tm): Prepare for register types not handled by
27100 the above. Copy them to memory and use memcpy.
27101 * tree.c (tm_define_builtin): New.
27102 (find_tm_vector_type): New.
27103 (build_tm_vector_builtins): New.
27104 (build_common_builtin_nodes): Call it.
27106 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
27108 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
27109 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
27111 2016-01-13 Tom de Vries <tom@codesourcery.com>
27113 PR tree-optimization/69169
27114 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
27115 handled_struct_type param.
27116 (create_variable_info_for, intra_create_variable_infos): Call
27117 create_variable_info_for_1 with extra arg.
27119 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
27121 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
27122 and "armv8.1-a+crc" entries.
27124 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
27127 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
27128 Change first operand predicate from register_or_constm1_operand
27129 to register_operand.
27130 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
27131 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
27132 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
27133 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
27134 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
27135 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
27136 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
27137 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
27138 comparison with constm1_rtx from vec_prefetch_gen part.
27140 2016-01-13 Richard Biener <rguenther@suse.de>
27142 PR tree-optimization/69013
27143 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
27144 Exchange assert for a test.
27146 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27149 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
27151 2016-01-13 Richard Biener <rguenther@suse.de>
27153 PR tree-optimization/69242
27154 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
27155 assert with a check.
27157 2016-01-13 Richard Biener <rguenther@suse.de>
27159 PR tree-optimization/69186
27160 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27161 Properly guard vect_update_misalignment_for_peel call.
27163 2016-01-12 Jeff Law <law@redhat.com>
27165 PR tree-optimization/pr67755
27166 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
27167 "need_profile_correction".
27168 (thread_block_1): Initialize new field to false by default. If we
27169 have multiple thread paths through a common joiner to different
27170 final targets, then set new field to true.
27171 (compute_path_counts): Only do count adjustment when it's really
27174 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
27176 * doc/invoke.texi (Spec Files): Move section down in file, past
27177 all command-line option descriptions.
27179 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27181 PR middle-end/54809
27182 * doc/gty.texi: Remove documentation of mark_hook.
27183 * gengtype.c (struct write_types_data): Remove code to support
27184 mark_hook attribute.
27185 (walk_type): Likewise.
27186 (write_func_for_structure): Likewise.
27188 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
27190 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
27191 Directory Options, and -specs= to Overall Options.
27192 (Overall Options): Adjust similarly. Reorder to group related
27193 options together. Make -specs= cross-reference the spec file details.
27194 (Directory Options): Adjust similarly.
27196 2016-01-12 Jeff Law <law@redhat.com>
27198 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
27200 2016-01-12 Olivier Hainque <hainque@adacore.com>
27202 * gcc.c (spec_undefvar_allowed): New global.
27203 (process_command): Set to true when running for --version or --help,
27205 (getenv_spec_function): When the variable is not defined, use the
27206 variable name as the variable value if we're allowed not to issue
27209 2016-01-12 Bin Cheng <bin.cheng@arm.com>
27211 PR tree-optimization/68911
27212 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
27213 information computed for expression "init + nit * step".
27215 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
27217 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
27218 about name of GCC executable. Remove deleted node from menu.
27219 (Directory Options) <-B>: Remove cross-reference to deleted node.
27220 (Target Options): Delete section.
27222 2016-01-12 Christian Bruel <christian.bruel@st.com>
27225 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
27226 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
27228 2016-01-12 Jakub Jelinek <jakub@redhat.com>
27231 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
27232 aligned_mem is properly set for AVX512-VL floating point masked
27236 * ifcvt.c (cond_exec_process_if_block): When removing the last
27237 insn from then_bb, remove also any possible barriers that follow it.
27239 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
27243 * config/i386/iamcu.h (SIZE_TYPE): New macro.
27244 (PTRDIFF_TYPE): Likewise.
27245 (WCHAR_TYPE): Likewise.
27246 (WCHAR_TYPE_SIZE): Likewise.
27247 (STDINT_LONG32): Likewise.
27249 2016-01-12 Richard Biener <rguenther@suse.de>
27251 PR tree-optimization/69053
27252 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
27253 convert initial value for cond reductions.
27255 2016-01-12 Richard Biener <rguenther@suse.de>
27257 PR tree-optimization/69007
27258 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
27259 widen_sum after dot_prod and sad.
27261 2016-01-12 Richard Biener <rguenther@suse.de>
27263 PR tree-optimization/69168
27264 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
27265 pattern stmt SLP type.
27266 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
27267 end up unused so cope with that case.
27269 2016-01-12 Richard Biener <rguenther@suse.de>
27271 PR tree-optimization/69157
27272 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
27273 stmts def type only during analyze phase.
27274 (vectorizable_call): Likewise.
27275 (vectorizable_simd_clone_call): Likewise.
27276 (vectorizable_conversion): Likewise.
27277 (vectorizable_assignment): Likewise.
27278 (vectorizable_shift): Likewise.
27279 (vectorizable_operation): Likewise.
27280 (vectorizable_store): Likewise.
27281 (vectorizable_load): Likewise.
27283 2016-01-12 Richard Biener <rguenther@suse.de>
27285 PR tree-optimization/69174
27286 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
27288 (vectorizable_load): Properly compute the number of loads needed
27289 for permuted strided SLP loads and do not spuriously assign
27290 to SLP_TREE_VEC_STMTS.
27292 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
27294 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
27295 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
27296 (MD_EXEC_PREFIX): Remove.
27297 (MD_STARTFILE_PREFIX) Removee.
27298 (FILE_NAME_ABSOLUTE_P): Remove.
27299 (CPP_SPEC): Do not read macros from sys/version.h.
27300 (LINK_COMMAND_SPEC): Remove.
27301 (LOCAL_INCLUDE_DIR): Remove.
27302 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
27303 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
27304 (POST_LINK_SPEC): Define to invoke stubify after linker
27305 (LIBSTDCXX): Remove define
27306 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
27307 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
27308 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
27309 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
27310 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
27311 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
27312 (i386_djgpp_asm_named_section): Add propotype of new procedure
27314 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
27315 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
27316 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
27317 in config/i386/djgpp.h).
27318 (STANDARD_STARTFILE_PREFIX_2): Define identical to
27319 STANDARD_STARTFILE_PREFIX_1.
27320 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
27321 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
27322 installation errors.
27323 (MAX_OFILE_ALIGNMENT): Define to 128.
27324 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
27326 * config/i386/djgpp.c: New file. Add implementation of
27327 i386_djgpp_asm_named_section.
27329 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
27331 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
27332 Add rule for building djgpp.o.
27334 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27336 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
27337 (rtx_is_swappable_p): Reductions are swappable.
27338 (insn_is_swappable_p): V2DF reductions are swappable.
27340 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
27342 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
27343 reloads for other unsupported memory operands.
27345 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
27346 Jim Wilson <jim.wilson@linaro.org>
27349 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
27350 copy_to_mode_reg instead of force_reg.
27352 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
27355 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
27356 TARGET_80387 is true.
27358 2016-01-11 Jakub Jelinek <jakub@redhat.com>
27361 * lra-eliminations.c (move_plus_up): Only move plus up
27362 if subreg of the constant can be simplified into constant
27363 and use the simplified subreg of the constant instead of
27364 the original constant.
27366 * fold-const.c (fold_convertible_p): Don't return true
27367 for conversion of VECTOR_TYPE to same sized integral type.
27368 (fold_convert_loc): Fix up formatting. Fold conversion of
27369 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
27370 instead of NOP_EXPR.
27372 PR tree-optimization/69214
27373 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
27374 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27377 PR tree-optimization/69207
27378 * tree-vect-slp.c (vect_get_constant_vectors): For
27379 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
27380 fold_convertible_p to vector_type's element type, and always
27381 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
27383 2016-01-11 Richard Biener <rguenther@suse.de>
27385 PR tree-optimization/69173
27386 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
27387 fixup the cycle if all stmts are in a pattern.
27389 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
27391 PR middle-end/68999
27392 * alias.c (base_alias_check): Move check for addresses with
27393 alignment ANDs before the call for compare_base_decls.
27394 (memrefs_conflict_p): Return -1 for different decls
27395 that went through alignment adjustments.
27397 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27399 PR rtl-optimization/68796
27400 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
27401 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
27402 and QImode comparisons against zero with CC_NZmode.
27403 * config/aarch64/iterators.md (short_mask): New mode_attr.
27405 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
27407 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
27408 (<avx512>_store<mode>_mask): Likewise.
27410 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
27411 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27413 PR rtl-optimization/68841
27414 * ifcvt.c (struct noce_if_info): Add orig_x field.
27415 (bbs_ok_for_cmove_arith): Add to_rename parameter.
27416 Don't record conflicts on to_rename if it's present.
27417 Allow memory destinations in sets.
27418 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
27419 blocks, passing orig_x to the checks.
27420 (noce_process_if_block): Set if_info->orig_x appropriately.
27422 2016-01-11 Tom de Vries <tom@codesourcery.com>
27424 PR tree-optimization/69069
27425 * tree-parloops.c (create_parallel_loop): Add missing phi args.
27427 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
27429 PR rtl-optimization/68920
27430 * config/i386/i386.c (ix86_option_override_internal): Restrict number
27431 of conditional moves for RTL if-conversion to 1 for
27432 TARGET_ONE_IF_CONV_INSN.
27433 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
27434 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
27435 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
27436 parameter to restirct number of conditional moves for
27438 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
27439 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
27442 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
27445 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
27446 onepart vars. Fix typo in comment. Fix reversed condition in
27448 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
27451 * var-tracking.c (dump_onepart_variable_differences): New.
27452 (dataflow_set_different): If a detailed dump is requested,
27453 delay early returns and dump differences between onepart
27454 variables present before and after, and added variables.
27456 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
27459 * expr.c (expand_expr_real_1): For boolean vector constants
27460 with a scalar mode use const_scalar_mask_from_tree.
27461 (const_scalar_mask_from_tree): New.
27462 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
27463 assigned to a mask type to handle constants.
27465 2016-01-11 Martin Jambor <mjambor@suse.cz>
27468 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
27469 useless parameters if we cannot change function signature.
27471 2016-01-11 Martin Jambor <mjambor@suse.cz>
27474 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
27477 2016-01-11 Tom de Vries <tom@codesourcery.com>
27479 PR tree-optimization/69109
27480 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
27483 2016-01-11 Tom de Vries <tom@codesourcery.com>
27485 PR tree-optimization/69108
27486 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
27487 res is not used in a phi.
27489 2016-01-11 Yury Gribov <y.gribov@samsung.com>
27492 * common.opt (frandom-seed): Fix parameter name.
27493 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
27495 2016-01-11 Tom de Vries <tom@codesourcery.com>
27497 PR tree-optimization/69058
27498 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
27501 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
27503 * config/arc/arc.opt (mdiv-rem): Add period to the end.
27504 (mcode-density): Likewise.
27506 2016-01-10 Tom de Vries <tom@codesourcery.com>
27508 PR tree-optimization/69062
27509 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
27510 (parallelize_loops): Don't paralelize loop that has phi with address
27513 2016-01-10 Tom de Vries <tom@codesourcery.com>
27515 PR tree-optimization/69039
27516 * tree-parloops.c (try_create_reduction_list): Only allow single exit
27519 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
27521 PR middle-end/68743
27522 * match.pd: Require target has function_c99_misc before doing
27523 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
27525 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
27527 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
27529 * configure: Regenerate.
27531 2016-01-09 Jakub Jelinek <jakub@redhat.com>
27533 PR middle-end/50865
27534 PR tree-optimization/69097
27535 * fold-const.h (expr_not_equal_to): New prototype.
27536 * fold-const.c: Include stringpool.h and tree-ssanames.h.
27537 (expr_not_equal_to): New function.
27538 * match.pd (X % -Y is the same as X % Y): Don't optimize
27539 unless X is known not to be equal to minimum or Y is known
27540 not to be equal to -1.
27541 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
27542 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
27543 (simplify_stmt_using_ranges): Adjust caller.
27544 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
27545 substitute_and_fold.
27547 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
27549 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
27552 2016-01-08 Jakub Jelinek <jakub@redhat.com>
27554 PR tree-optimization/69167
27555 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
27556 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
27558 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
27560 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
27561 Richard Biener <rguenther@suse.de>
27563 PR tree-optimization/68707
27564 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
27565 instances that can be handled via vect_load_lanes.
27567 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
27569 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
27570 if we can't determine address equivalence.
27571 * alias.c (compare_base_decl): Update for changed return value of
27572 symtab_node::equal_address_to.
27574 2016-01-08 Jason Merrill <jason@redhat.com>
27578 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
27579 * expr.c (store_field): Not here.
27580 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
27581 call with TREE_ADDRESSABLE type.
27582 * tree-cfg.c (verify_gimple_call): Adjust.
27584 2016-01-08 Olivier Hainque <hainque@adacore.com>
27586 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
27589 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
27591 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
27592 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
27593 (reduc_smin_v2sf): Rename to...
27594 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
27595 (reduc_splus_v2sf): Rename to...
27596 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
27598 2016-01-08 Jakub Jelinek <jakub@redhat.com>
27600 PR tree-optimization/69162
27601 * gimplify.c (gimplify_va_arg_expr): Encode original type of
27602 valist argument in another argument.
27603 (gimplify_modify_expr): Adjust for the above change. Cleanup.
27604 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
27605 to determine the va_list type, build a MEM_REF instead of
27606 build_fold_indirect_ref.
27608 PR tree-optimization/69172
27609 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
27612 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
27614 PR tree-optimization/67781
27615 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
27616 and cmpnop in two steps: first the ones not accessed in original
27617 gimple expression in a endian independent way and then the ones not
27618 accessed in the final result in an endian-specific way.
27620 2016-01-08 Jakub Jelinek <jakub@redhat.com>
27622 PR tree-optimization/69083
27623 * tree-vect-slp.c (vect_get_constant_vectors): For
27624 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
27625 element type. If op is fold_convertible_p to vector_type's element
27626 type, use NOP_EXPR instead of VCE.
27628 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
27630 PR rtl-optimization/67778
27631 PR rtl-optimization/68634
27632 PR rtl-optimization/68909
27633 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
27634 block from the stack until done with it. Remove a superfluous
27635 bitmap set. Remove a superfluous bitmap test.
27637 2016-01-07 Martin Sebor <msebor@redhat.com>
27640 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
27641 constraint on the type of arguments.
27643 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
27645 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
27646 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
27647 unaligned_access on the gcc_options set.
27648 * config/arm/arm.c (arm_option_override_internal): Use
27649 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
27651 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
27654 * config/i386/i386.c (ix86_frame_pointer_required): Enable
27655 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
27657 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
27660 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
27663 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
27664 depending on frame_pointer_needed before remaining integer and SSE
27665 registers are saved.
27667 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
27670 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
27672 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
27675 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
27676 Use the "xBm" constraint.
27677 (float<sseintvecmodelower><mode>2<mask_name><round_name):
27679 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
27680 (sse_cvtsi2ssq<round_name>): Likewise.
27681 (sse_cvtss2si<round_name>): Likewise.
27682 (sse_cvtss2siq<round_name>): Likewise.
27683 (sse2_cvtsi2sdq<round_name>): Likewise.
27684 (sse2_cvtsd2si<round_name>): Likewise.
27685 (sse2_cvtsd2siq<round_name>): Likewise.
27686 * config/i386/subst.md (round_nimm_scalar_predicate): New
27689 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
27691 PR middle-end/67639
27692 * varasm.c (make_decl_rtl): Mark invalid register vars as
27695 PR rtl-optimization/66206
27696 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
27697 All callers changed.
27699 2016-01-07 Jakub Jelinek <jakub@redhat.com>
27701 PR tree-optimization/69141
27702 * tree-ssa-pre.c: Include langhooks.h.
27703 (eliminate_dom_walker::before_dom_children): Use
27704 lang_hooks.decl_printable_name instead of
27705 cgraph_node::get ()->name ().
27707 PR middle-end/68960
27708 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
27709 it and DECL_ALIGN too.
27711 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
27713 * config/mips/mips-ftypes.def: Sort to lexicographical order.
27715 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
27718 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
27719 depending on frame_pointer_needed before remaining integer and SSE
27720 registers are saved.
27722 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27724 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
27725 mode iterator with VSX_M2.
27726 (*p9_vecstore_<mode>): Likewise.
27727 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
27728 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
27729 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
27730 (define_split for VSX_LE128 stores): Likewise.
27731 (define_peephole2 for TImode LE swaps): Likewise.
27732 (define_split for VSX_LE128 post-reload stores): Likewise.
27734 2016-01-06 Marek Polacek <polacek@redhat.com>
27737 * convert.c (convert_to_integer_1): Adjust call to
27738 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
27739 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
27740 EXPR instead of ARG.
27741 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
27743 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27746 * doc/extend.texi (RL78 Variable Attributes): New section.
27748 2016-01-05 Marek Polacek <polacek@redhat.com>
27751 * builtins.c (get_memmodel): Use expansion point location rather than
27752 the input location. Call warning_at rather than warning.
27753 (expand_builtin_atomic_compare_exchange): Likewise.
27754 (expand_builtin_atomic_load): Likewise.
27755 (expand_builtin_atomic_store): Likewise.
27756 (expand_builtin_atomic_clear): Likewise.
27758 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
27761 * config/i386/i386.c (ix86_expand_vector_logical_operator):
27762 Replace nonimmediate_operand with vector_operand.
27763 * config/i386/predicates.md (vector_operand): New predicate.
27764 (general_vector_operand): Replace nonimmediate_operand with
27766 * config/i386/sse.md: Replace nonimmediate_operand with
27767 vector_operand and m constraint with Bm constraint on SSE
27768 patterns with 16-byte memory operand.
27769 * config/i386/subst.md (round_nimm_predicate): Replace
27770 nonimmediate_operand with vector_operand.
27771 (round_saeonly_nimm_predicate): Likewise.
27772 (round_saeonly_nimm_scalar_predicate): New.
27774 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
27777 * config/i386/constraints.md (Bm): New constraint.
27778 * config/i386/predicates.md (vector_memory_operand): New
27780 * config/i386/sse.md: Replace xm with xBm in plusminus and
27781 any_logic patterns.
27783 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27786 * doc/extend.texi (V850 Function Attributes): New section.
27787 (V850 Variable Attributes): New section.
27789 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27792 * doc/extend.texi (MicroBlaze Function Attributes): Document
27793 interrupt_handler and fast_interrupt attributes.
27795 2016-01-05 Sergei Trofimovich <siarheit@google.com>
27798 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
27799 for local symbolic operands.
27800 * config/ia64/predicates.md (local_symbolic_operand64): New
27803 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27805 PR rtl-optimization/68651
27806 * combine.c (combine_simplify_rtx): Canonicalize x + x into
27809 2016-01-05 Nathan Sidwell <nathan@acm.org>
27811 * alias.c (compare_base_decls): Use symtab_node::get.
27813 2016-01-05 Nick Clifton <nickc@redhat.com>
27816 * ira-costs.c (copy_cost): Initialise the t_icode field of the
27817 secondary_reload_info structure.
27820 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
27821 decls if weak support is available.
27823 2016-01-04 Martin Sebor <msebor@redhat.com>
27825 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
27827 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
27829 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
27830 OPTION_MASK_P9_DFORM.
27832 * config/rs6000/constraints.md (wo constraint): New constraint for
27835 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
27837 (rs6000_init_hard_regno_mode_ok): Likewise.
27839 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
27842 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
27843 expanders not to have constraints. Add support for ISA 3.0 xxperm
27844 instruction. Add support for fusing xxlor with xxperm.
27845 (altivec_vperm_<mode>_internal): Likewise.
27846 (altivec_vperm_v8hiv16qi): Likewise.
27847 (altivec_vperm_<mode>v16q): Likewise.
27848 (altivec_vperm_<mode>_uns): Likewise.
27849 (vperm_v8hiv4si): Likewise.
27850 (vperm_v16qiv8hi): Likewise.
27852 * doc/md.texi (RS/6000 constraints): Document wo constraint.
27854 2016-01-04 Jakub Jelinek <jakub@redhat.com>
27856 Update copyright years.
27858 * gcc.c (process_command): Update copyright notice dates.
27859 * gcov-dump.c (print_version): Ditto.
27860 * gcov.c (print_version): Ditto.
27861 * gcov-tool.c (print_version): Ditto.
27862 * gengtype.c (create_file): Ditto.
27863 * doc/cpp.texi: Bump @copying's copyright year.
27864 * doc/cppinternals.texi: Ditto.
27865 * doc/gcc.texi: Ditto.
27866 * doc/gccint.texi: Ditto.
27867 * doc/gcov.texi: Ditto.
27868 * doc/install.texi: Ditto.
27869 * doc/invoke.texi: Ditto.
27871 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27873 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
27874 modes larger than TImode as TImode if NEON is not enabled.
27876 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27879 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
27880 mode for %f0-%f31 only if TARGET_FPU.
27882 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27885 * config/sparc/sparc.c (scan_record_type): Take into account subfields
27886 to compute the PACKED_P predicate.
27887 (function_arg_record_value): Minor tweaks.
27889 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
27891 * doc/install.texi (--with-multilib-list): Describe the meaning of the
27892 option for arm*-*-* targets.
27894 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
27896 * doc/extend.texi (Common Function Attributes): Move docs for
27897 MSP430-specific attributes to....
27898 (MSP430 Function Attributes): ...here. Delete the redundant
27899 entries and copy-edit the remaining text.
27900 (MSP430 Variable Attributes): Use uniform format for index
27901 entries and add a cross-reference to the corresponding function
27904 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
27906 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
27908 (x86 Options): Likewise.
27910 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
27914 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
27915 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
27916 to corresponding attribute.
27918 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
27920 * doc/extend.texi (Common Function Attributes) <noplt>: Move
27921 to correct alphabetization of table. Copy-edit and correct
27923 <stack_protect>: Likewise.
27924 <target_clones>: Likewise.
27926 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
27927 Correct punctuation.
27928 (Code Gen Options) <-fno-plt>: Copy-edit.
27930 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
27933 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
27934 SI values. Explicitly convert SI to DI and vice-versa.
27936 2016-01-01 Jakub Jelinek <jakub@redhat.com>
27938 PR tree-optimization/69070
27939 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
27940 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
27943 * ubsan.c (ubsan_instrument_float_cast): Call
27944 initialize_sanitizer_builtins.
27947 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
27949 Copyright (C) 2016 Free Software Foundation, Inc.
27951 Copying and distribution of this file, with or without modification,
27952 are permitted in any medium without royalty provided the copyright
27953 notice and this notice are preserved.